@legioncodeinc/hive 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -661
- package/README.md +262 -262
- package/dist/daemon/dashboard/app.js +25 -25
- package/dist/dashboard/web/hive-graph-projection.d.ts +46 -0
- package/dist/dashboard/web/hive-graph-projection.js +41 -0
- package/dist/dashboard/web/hive-graph-projection.js.map +1 -0
- package/dist/dashboard/web/pages/graph.d.ts +49 -3
- package/dist/dashboard/web/pages/graph.js +2 -2
- package/dist/dashboard/web/pages/graph.js.map +1 -1
- package/dist/dashboard/web/pages/hive-graph.d.ts +11 -0
- package/dist/dashboard/web/pages/hive-graph.js +241 -0
- package/dist/dashboard/web/pages/hive-graph.js.map +1 -0
- package/dist/dashboard/web/registry.js +6 -0
- package/dist/dashboard/web/registry.js.map +1 -1
- package/dist/dashboard/web/wire.d.ts +120 -0
- package/dist/dashboard/web/wire.js +187 -0
- package/dist/dashboard/web/wire.js.map +1 -1
- package/dist/service/templates.js +78 -78
- package/dist/telemetry/emit.js +2 -2
- package/package.json +54 -50
- package/dist/dashboard/web/readiness-splash.d.ts +0 -39
- package/dist/dashboard/web/readiness-splash.js +0 -201
- package/dist/dashboard/web/readiness-splash.js.map +0 -1
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
var zw=Object.create;var od=Object.defineProperty;var Iw=Object.getOwnPropertyDescriptor;var Pw=Object.getOwnPropertyNames;var Ew=Object.getPrototypeOf,Rw=Object.prototype.hasOwnProperty;var Fn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},An=(e,t)=>{for(var r in t)od(e,r,{get:t[r],enumerable:!0})},Cw=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Pw(t))!Rw.call(e,n)&&n!==r&&od(e,n,{get:()=>t[n],enumerable:!(o=Iw(t,n))||o.enumerable});return e};var L=(e,t,r)=>(r=e!=null?zw(Ew(e)):{},Cw(t||!e||!e.__esModule?od(r,"default",{value:e,enumerable:!0}):r,e));var xx=Fn(ce=>{"use strict";var Ni=Symbol.for("react.element"),Tw=Symbol.for("react.portal"),jw=Symbol.for("react.fragment"),Ow=Symbol.for("react.strict_mode"),Dw=Symbol.for("react.profiler"),Nw=Symbol.for("react.provider"),Lw=Symbol.for("react.context"),Fw=Symbol.for("react.forward_ref"),Aw=Symbol.for("react.suspense"),Uw=Symbol.for("react.memo"),Ww=Symbol.for("react.lazy"),sx=Symbol.iterator;function Mw(e){return e===null||typeof e!="object"?null:(e=sx&&e[sx]||e["@@iterator"],typeof e=="function"?e:null)}var dx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},px=Object.assign,fx={};function fo(e,t,r){this.props=e,this.context=t,this.refs=fx,this.updater=r||dx}fo.prototype.isReactComponent={};fo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};fo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mx(){}mx.prototype=fo.prototype;function ad(e,t,r){this.props=e,this.context=t,this.refs=fx,this.updater=r||dx}var ld=ad.prototype=new mx;ld.constructor=ad;px(ld,fo.prototype);ld.isPureReactComponent=!0;var cx=Array.isArray,gx=Object.prototype.hasOwnProperty,sd={current:null},vx={key:!0,ref:!0,__self:!0,__source:!0};function yx(e,t,r){var o,n={},i=null,a=null;if(t!=null)for(o in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)gx.call(t,o)&&!vx.hasOwnProperty(o)&&(n[o]=t[o]);var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)n[o]===void 0&&(n[o]=l[o]);return{$$typeof:Ni,type:e,key:i,ref:a,props:n,_owner:sd.current}}function Bw(e,t){return{$$typeof:Ni,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function cd(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ni}function Zw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var ux=/\/+/g;function id(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Zw(""+e.key):t.toString(36)}function Sl(e,t,r,o,n){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Ni:case Tw:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+id(a,0):o,cx(n)?(r="",e!=null&&(r=e.replace(ux,"$&/")+"/"),Sl(n,t,r,"",function(c){return c})):n!=null&&(cd(n)&&(n=Bw(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(ux,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",cx(e))for(var l=0;l<e.length;l++){i=e[l];var s=o+id(i,l);a+=Sl(i,t,r,s,n)}else if(s=Mw(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=o+id(i,l++),a+=Sl(i,t,r,s,n);else if(i==="object")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 xl(e,t,r){if(e==null)return e;var o=[],n=0;return Sl(e,o,"","",function(i){return t.call(r,i,n++)}),o}function Vw(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var gt={current:null},bl={transition:null},Hw={ReactCurrentDispatcher:gt,ReactCurrentBatchConfig:bl,ReactCurrentOwner:sd};function hx(){throw Error("act(...) is not supported in production builds of React.")}ce.Children={map:xl,forEach:function(e,t,r){xl(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return xl(e,function(){t++}),t},toArray:function(e){return xl(e,function(t){return t})||[]},only:function(e){if(!cd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Component=fo;ce.Fragment=jw;ce.Profiler=Dw;ce.PureComponent=ad;ce.StrictMode=Ow;ce.Suspense=Aw;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hw;ce.act=hx;ce.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=px({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=sd.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)gx.call(t,s)&&!vx.hasOwnProperty(s)&&(o[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:Ni,type:e.type,key:n,ref:i,props:o,_owner:a}};ce.createContext=function(e){return e={$$typeof:Lw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Nw,_context:e},e.Consumer=e};ce.createElement=yx;ce.createFactory=function(e){var t=yx.bind(null,e);return t.type=e,t};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:Fw,render:e}};ce.isValidElement=cd;ce.lazy=function(e){return{$$typeof:Ww,_payload:{_status:-1,_result:e},_init:Vw}};ce.memo=function(e,t){return{$$typeof:Uw,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=bl.transition;bl.transition={};try{e()}finally{bl.transition=t}};ce.unstable_act=hx;ce.useCallback=function(e,t){return gt.current.useCallback(e,t)};ce.useContext=function(e){return gt.current.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e){return gt.current.useDeferredValue(e)};ce.useEffect=function(e,t){return gt.current.useEffect(e,t)};ce.useId=function(){return gt.current.useId()};ce.useImperativeHandle=function(e,t,r){return gt.current.useImperativeHandle(e,t,r)};ce.useInsertionEffect=function(e,t){return gt.current.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return gt.current.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return gt.current.useMemo(e,t)};ce.useReducer=function(e,t,r){return gt.current.useReducer(e,t,r)};ce.useRef=function(e){return gt.current.useRef(e)};ce.useState=function(e){return gt.current.useState(e)};ce.useSyncExternalStore=function(e,t,r){return gt.current.useSyncExternalStore(e,t,r)};ce.useTransition=function(){return gt.current.useTransition()};ce.version="18.3.1"});var he=Fn((lO,Sx)=>{"use strict";Sx.exports=xx()});var Rx=Fn(ze=>{"use strict";function fd(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<kl(n,t))e[o]=t,e[r]=n,r=o;else break e}}function rn(e){return e.length===0?null:e[0]}function $l(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,n=e.length,i=n>>>1;o<i;){var a=2*(o+1)-1,l=e[a],s=a+1,c=e[s];if(0>kl(l,r))s<n&&0>kl(c,l)?(e[o]=c,e[s]=r,o=s):(e[o]=l,e[a]=r,o=a);else if(s<n&&0>kl(c,r))e[o]=c,e[s]=r,o=s;else break e}}return t}function kl(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(bx=performance,ze.unstable_now=function(){return bx.now()}):(ud=Date,kx=ud.now(),ze.unstable_now=function(){return ud.now()-kx});var bx,ud,kx,Sn=[],tr=[],Jw=1,Zt=null,st=3,wl=!1,Nr=!1,Fi=!1,wx=typeof setTimeout=="function"?setTimeout:null,zx=typeof clearTimeout=="function"?clearTimeout:null,_x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function md(e){for(var t=rn(tr);t!==null;){if(t.callback===null)$l(tr);else if(t.startTime<=e)$l(tr),t.sortIndex=t.expirationTime,fd(Sn,t);else break;t=rn(tr)}}function gd(e){if(Fi=!1,md(e),!Nr)if(rn(Sn)!==null)Nr=!0,yd(vd);else{var t=rn(tr);t!==null&&hd(gd,t.startTime-e)}}function vd(e,t){Nr=!1,Fi&&(Fi=!1,zx(Ai),Ai=-1),wl=!0;var r=st;try{for(md(t),Zt=rn(Sn);Zt!==null&&(!(Zt.expirationTime>t)||e&&!Ex());){var o=Zt.callback;if(typeof o=="function"){Zt.callback=null,st=Zt.priorityLevel;var n=o(Zt.expirationTime<=t);t=ze.unstable_now(),typeof n=="function"?Zt.callback=n:Zt===rn(Sn)&&$l(Sn),md(t)}else $l(Sn);Zt=rn(Sn)}if(Zt!==null)var i=!0;else{var a=rn(tr);a!==null&&hd(gd,a.startTime-t),i=!1}return i}finally{Zt=null,st=r,wl=!1}}var zl=!1,_l=null,Ai=-1,Ix=5,Px=-1;function Ex(){return!(ze.unstable_now()-Px<Ix)}function dd(){if(_l!==null){var e=ze.unstable_now();Px=e;var t=!0;try{t=_l(!0,e)}finally{t?Li():(zl=!1,_l=null)}}else zl=!1}var Li;typeof _x=="function"?Li=function(){_x(dd)}:typeof MessageChannel<"u"?(pd=new MessageChannel,$x=pd.port2,pd.port1.onmessage=dd,Li=function(){$x.postMessage(null)}):Li=function(){wx(dd,0)};var pd,$x;function yd(e){_l=e,zl||(zl=!0,Li())}function hd(e,t){Ai=wx(function(){e(ze.unstable_now())},t)}ze.unstable_IdlePriority=5;ze.unstable_ImmediatePriority=1;ze.unstable_LowPriority=4;ze.unstable_NormalPriority=3;ze.unstable_Profiling=null;ze.unstable_UserBlockingPriority=2;ze.unstable_cancelCallback=function(e){e.callback=null};ze.unstable_continueExecution=function(){Nr||wl||(Nr=!0,yd(vd))};ze.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"):Ix=0<e?Math.floor(1e3/e):5};ze.unstable_getCurrentPriorityLevel=function(){return st};ze.unstable_getFirstCallbackNode=function(){return rn(Sn)};ze.unstable_next=function(e){switch(st){case 1:case 2:case 3:var t=3;break;default:t=st}var r=st;st=t;try{return e()}finally{st=r}};ze.unstable_pauseExecution=function(){};ze.unstable_requestPaint=function(){};ze.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=st;st=e;try{return t()}finally{st=r}};ze.unstable_scheduleCallback=function(e,t,r){var o=ze.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:Jw++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,fd(tr,e),rn(Sn)===null&&e===rn(tr)&&(Fi?(zx(Ai),Ai=-1):Fi=!0,hd(gd,r-o))):(e.sortIndex=n,fd(Sn,e),Nr||wl||(Nr=!0,yd(vd))),e};ze.unstable_shouldYield=Ex;ze.unstable_wrapCallback=function(e){var t=st;return function(){var r=st;st=t;try{return e.apply(this,arguments)}finally{st=r}}}});var Tx=Fn((cO,Cx)=>{"use strict";Cx.exports=Rx()});var Nk=Fn(Lt=>{"use strict";var Gw=he(),Dt=Tx();function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}var AS=new Set,la={};function Xr(e,t){Oo(e,t),Oo(e+"Capture",t)}function Oo(e,t){for(la[e]=t,e=0;e<t.length;e++)AS.add(t[e])}var Vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wd=Object.prototype.hasOwnProperty,Xw=/^[: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]*$/,jx={},Ox={};function Kw(e){return Wd.call(Ox,e)?!0:Wd.call(jx,e)?!1:Xw.test(e)?Ox[e]=!0:(jx[e]=!0,!1)}function Yw(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qw(e,t,r,o){if(t===null||typeof t>"u"||Yw(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ht(e,t,r,o,n,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var it={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){it[e]=new ht(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];it[t]=new ht(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){it[e]=new ht(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){it[e]=new ht(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){it[e]=new ht(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){it[e]=new ht(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){it[e]=new ht(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){it[e]=new ht(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){it[e]=new ht(e,5,!1,e.toLowerCase(),null,!1,!1)});var jp=/[\-:]([a-z])/g;function Op(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(jp,Op);it[t]=new ht(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(jp,Op);it[t]=new ht(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(jp,Op);it[t]=new ht(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){it[e]=new ht(e,1,!1,e.toLowerCase(),null,!1,!1)});it.xlinkHref=new ht("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){it[e]=new ht(e,1,!1,e.toLowerCase(),null,!0,!0)});function Dp(e,t,r,o){var n=it.hasOwnProperty(t)?it[t]:null;(n!==null?n.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(qw(t,r,n,o)&&(r=null),o||n===null?Kw(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,o=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var Xn=Gw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Il=Symbol.for("react.element"),vo=Symbol.for("react.portal"),yo=Symbol.for("react.fragment"),Np=Symbol.for("react.strict_mode"),Md=Symbol.for("react.profiler"),US=Symbol.for("react.provider"),WS=Symbol.for("react.context"),Lp=Symbol.for("react.forward_ref"),Bd=Symbol.for("react.suspense"),Zd=Symbol.for("react.suspense_list"),Fp=Symbol.for("react.memo"),rr=Symbol.for("react.lazy"),MS=Symbol.for("react.offscreen"),Dx=Symbol.iterator;function Ui(e){return e===null||typeof e!="object"?null:(e=Dx&&e[Dx]||e["@@iterator"],typeof e=="function"?e:null)}var De=Object.assign,xd;function Gi(e){if(xd===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);xd=t&&t[1]||""}return`
|
|
2
|
-
`+
|
|
1
|
+
var Uw=Object.create;var pd=Object.defineProperty;var Ww=Object.getOwnPropertyDescriptor;var Mw=Object.getOwnPropertyNames;var Bw=Object.getPrototypeOf,Zw=Object.prototype.hasOwnProperty;var Jn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Gn=(e,t)=>{for(var r in t)pd(e,r,{get:t[r],enumerable:!0})},Vw=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Mw(t))!Zw.call(e,n)&&n!==r&&pd(e,n,{get:()=>t[n],enumerable:!(o=Ww(t,n))||o.enumerable});return e};var L=(e,t,r)=>(r=e!=null?Uw(Bw(e)):{},Vw(t||!e||!e.__esModule?pd(r,"default",{value:e,enumerable:!0}):r,e));var Rx=Jn(fe=>{"use strict";var Gi=Symbol.for("react.element"),Hw=Symbol.for("react.portal"),Jw=Symbol.for("react.fragment"),Gw=Symbol.for("react.strict_mode"),Xw=Symbol.for("react.profiler"),Kw=Symbol.for("react.provider"),Yw=Symbol.for("react.context"),qw=Symbol.for("react.forward_ref"),Qw=Symbol.for("react.suspense"),ez=Symbol.for("react.memo"),tz=Symbol.for("react.lazy"),xx=Symbol.iterator;function nz(e){return e===null||typeof e!="object"?null:(e=xx&&e[xx]||e["@@iterator"],typeof e=="function"?e:null)}var kx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_x=Object.assign,$x={};function wo(e,t,r){this.props=e,this.context=t,this.refs=$x,this.updater=r||kx}wo.prototype.isReactComponent={};wo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};wo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wx(){}wx.prototype=wo.prototype;function md(e,t,r){this.props=e,this.context=t,this.refs=$x,this.updater=r||kx}var gd=md.prototype=new wx;gd.constructor=md;_x(gd,wo.prototype);gd.isPureReactComponent=!0;var bx=Array.isArray,zx=Object.prototype.hasOwnProperty,vd={current:null},Px={key:!0,ref:!0,__self:!0,__source:!0};function Ix(e,t,r){var o,n={},i=null,a=null;if(t!=null)for(o in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)zx.call(t,o)&&!Px.hasOwnProperty(o)&&(n[o]=t[o]);var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)n[o]===void 0&&(n[o]=l[o]);return{$$typeof:Gi,type:e,key:i,ref:a,props:n,_owner:vd.current}}function rz(e,t){return{$$typeof:Gi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yd(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gi}function oz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Sx=/\/+/g;function fd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?oz(""+e.key):t.toString(36)}function Ol(e,t,r,o,n){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Gi:case Hw:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+fd(a,0):o,bx(n)?(r="",e!=null&&(r=e.replace(Sx,"$&/")+"/"),Ol(n,t,r,"",function(c){return c})):n!=null&&(yd(n)&&(n=rz(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(Sx,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",bx(e))for(var l=0;l<e.length;l++){i=e[l];var s=o+fd(i,l);a+=Ol(i,t,r,s,n)}else if(s=nz(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=o+fd(i,l++),a+=Ol(i,t,r,s,n);else if(i==="object")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 jl(e,t,r){if(e==null)return e;var o=[],n=0;return Ol(e,o,"","",function(i){return t.call(r,i,n++)}),o}function iz(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var St={current:null},Dl={transition:null},az={ReactCurrentDispatcher:St,ReactCurrentBatchConfig:Dl,ReactCurrentOwner:vd};function Ex(){throw Error("act(...) is not supported in production builds of React.")}fe.Children={map:jl,forEach:function(e,t,r){jl(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return jl(e,function(){t++}),t},toArray:function(e){return jl(e,function(t){return t})||[]},only:function(e){if(!yd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};fe.Component=wo;fe.Fragment=Jw;fe.Profiler=Xw;fe.PureComponent=md;fe.StrictMode=Gw;fe.Suspense=Qw;fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=az;fe.act=Ex;fe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=_x({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=vd.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)zx.call(t,s)&&!Px.hasOwnProperty(s)&&(o[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:Gi,type:e.type,key:n,ref:i,props:o,_owner:a}};fe.createContext=function(e){return e={$$typeof:Yw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Kw,_context:e},e.Consumer=e};fe.createElement=Ix;fe.createFactory=function(e){var t=Ix.bind(null,e);return t.type=e,t};fe.createRef=function(){return{current:null}};fe.forwardRef=function(e){return{$$typeof:qw,render:e}};fe.isValidElement=yd;fe.lazy=function(e){return{$$typeof:tz,_payload:{_status:-1,_result:e},_init:iz}};fe.memo=function(e,t){return{$$typeof:ez,type:e,compare:t===void 0?null:t}};fe.startTransition=function(e){var t=Dl.transition;Dl.transition={};try{e()}finally{Dl.transition=t}};fe.unstable_act=Ex;fe.useCallback=function(e,t){return St.current.useCallback(e,t)};fe.useContext=function(e){return St.current.useContext(e)};fe.useDebugValue=function(){};fe.useDeferredValue=function(e){return St.current.useDeferredValue(e)};fe.useEffect=function(e,t){return St.current.useEffect(e,t)};fe.useId=function(){return St.current.useId()};fe.useImperativeHandle=function(e,t,r){return St.current.useImperativeHandle(e,t,r)};fe.useInsertionEffect=function(e,t){return St.current.useInsertionEffect(e,t)};fe.useLayoutEffect=function(e,t){return St.current.useLayoutEffect(e,t)};fe.useMemo=function(e,t){return St.current.useMemo(e,t)};fe.useReducer=function(e,t,r){return St.current.useReducer(e,t,r)};fe.useRef=function(e){return St.current.useRef(e)};fe.useState=function(e){return St.current.useState(e)};fe.useSyncExternalStore=function(e,t,r){return St.current.useSyncExternalStore(e,t,r)};fe.useTransition=function(){return St.current.useTransition()};fe.version="18.3.1"});var ye=Jn((RO,Cx)=>{"use strict";Cx.exports=Rx()});var Wx=Jn(Re=>{"use strict";function Sd(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<Nl(n,t))e[o]=t,e[r]=n,r=o;else break e}}function fn(e){return e.length===0?null:e[0]}function Fl(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,n=e.length,i=n>>>1;o<i;){var a=2*(o+1)-1,l=e[a],s=a+1,c=e[s];if(0>Nl(l,r))s<n&&0>Nl(c,l)?(e[o]=c,e[s]=r,o=s):(e[o]=l,e[a]=r,o=a);else if(s<n&&0>Nl(c,r))e[o]=c,e[s]=r,o=s;else break e}}return t}function Nl(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Tx=performance,Re.unstable_now=function(){return Tx.now()}):(hd=Date,jx=hd.now(),Re.unstable_now=function(){return hd.now()-jx});var Tx,hd,jx,Tn=[],ur=[],lz=1,qt=null,pt=3,Al=!1,Gr=!1,Ki=!1,Nx=typeof setTimeout=="function"?setTimeout:null,Lx=typeof clearTimeout=="function"?clearTimeout:null,Ox=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function kd(e){for(var t=fn(ur);t!==null;){if(t.callback===null)Fl(ur);else if(t.startTime<=e)Fl(ur),t.sortIndex=t.expirationTime,Sd(Tn,t);else break;t=fn(ur)}}function _d(e){if(Ki=!1,kd(e),!Gr)if(fn(Tn)!==null)Gr=!0,wd($d);else{var t=fn(ur);t!==null&&zd(_d,t.startTime-e)}}function $d(e,t){Gr=!1,Ki&&(Ki=!1,Lx(Yi),Yi=-1),Al=!0;var r=pt;try{for(kd(t),qt=fn(Tn);qt!==null&&(!(qt.expirationTime>t)||e&&!Ux());){var o=qt.callback;if(typeof o=="function"){qt.callback=null,pt=qt.priorityLevel;var n=o(qt.expirationTime<=t);t=Re.unstable_now(),typeof n=="function"?qt.callback=n:qt===fn(Tn)&&Fl(Tn),kd(t)}else Fl(Tn);qt=fn(Tn)}if(qt!==null)var i=!0;else{var a=fn(ur);a!==null&&zd(_d,a.startTime-t),i=!1}return i}finally{qt=null,pt=r,Al=!1}}var Ul=!1,Ll=null,Yi=-1,Fx=5,Ax=-1;function Ux(){return!(Re.unstable_now()-Ax<Fx)}function xd(){if(Ll!==null){var e=Re.unstable_now();Ax=e;var t=!0;try{t=Ll(!0,e)}finally{t?Xi():(Ul=!1,Ll=null)}}else Ul=!1}var Xi;typeof Ox=="function"?Xi=function(){Ox(xd)}:typeof MessageChannel<"u"?(bd=new MessageChannel,Dx=bd.port2,bd.port1.onmessage=xd,Xi=function(){Dx.postMessage(null)}):Xi=function(){Nx(xd,0)};var bd,Dx;function wd(e){Ll=e,Ul||(Ul=!0,Xi())}function zd(e,t){Yi=Nx(function(){e(Re.unstable_now())},t)}Re.unstable_IdlePriority=5;Re.unstable_ImmediatePriority=1;Re.unstable_LowPriority=4;Re.unstable_NormalPriority=3;Re.unstable_Profiling=null;Re.unstable_UserBlockingPriority=2;Re.unstable_cancelCallback=function(e){e.callback=null};Re.unstable_continueExecution=function(){Gr||Al||(Gr=!0,wd($d))};Re.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"):Fx=0<e?Math.floor(1e3/e):5};Re.unstable_getCurrentPriorityLevel=function(){return pt};Re.unstable_getFirstCallbackNode=function(){return fn(Tn)};Re.unstable_next=function(e){switch(pt){case 1:case 2:case 3:var t=3;break;default:t=pt}var r=pt;pt=t;try{return e()}finally{pt=r}};Re.unstable_pauseExecution=function(){};Re.unstable_requestPaint=function(){};Re.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=pt;pt=e;try{return t()}finally{pt=r}};Re.unstable_scheduleCallback=function(e,t,r){var o=Re.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:lz++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,Sd(ur,e),fn(Tn)===null&&e===fn(ur)&&(Ki?(Lx(Yi),Yi=-1):Ki=!0,zd(_d,r-o))):(e.sortIndex=n,Sd(Tn,e),Gr||Al||(Gr=!0,wd($d))),e};Re.unstable_shouldYield=Ux;Re.unstable_wrapCallback=function(e){var t=pt;return function(){var r=pt;pt=t;try{return e.apply(this,arguments)}finally{pt=r}}}});var Bx=Jn((TO,Mx)=>{"use strict";Mx.exports=Wx()});var Jk=Jn(Zt=>{"use strict";var sz=ye(),Mt=Bx();function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}var Kb=new Set,xa={};function lo(e,t){Ho(e,t),Ho(e+"Capture",t)}function Ho(e,t){for(xa[e]=t,e=0;e<t.length;e++)Kb.add(t[e])}var er=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xd=Object.prototype.hasOwnProperty,cz=/^[: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]*$/,Zx={},Vx={};function uz(e){return Xd.call(Vx,e)?!0:Xd.call(Zx,e)?!1:cz.test(e)?Vx[e]=!0:(Zx[e]=!0,!1)}function dz(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pz(e,t,r,o){if(t===null||typeof t>"u"||dz(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $t(e,t,r,o,n,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var st={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){st[e]=new $t(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];st[t]=new $t(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){st[e]=new $t(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){st[e]=new $t(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){st[e]=new $t(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){st[e]=new $t(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){st[e]=new $t(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){st[e]=new $t(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){st[e]=new $t(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wp=/[\-:]([a-z])/g;function Mp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Wp,Mp);st[t]=new $t(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wp,Mp);st[t]=new $t(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wp,Mp);st[t]=new $t(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){st[e]=new $t(e,1,!1,e.toLowerCase(),null,!1,!1)});st.xlinkHref=new $t("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){st[e]=new $t(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bp(e,t,r,o){var n=st.hasOwnProperty(t)?st[t]:null;(n!==null?n.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(pz(t,r,n,o)&&(r=null),o||n===null?uz(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,o=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var or=sz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wl=Symbol.for("react.element"),Io=Symbol.for("react.portal"),Eo=Symbol.for("react.fragment"),Zp=Symbol.for("react.strict_mode"),Kd=Symbol.for("react.profiler"),Yb=Symbol.for("react.provider"),qb=Symbol.for("react.context"),Vp=Symbol.for("react.forward_ref"),Yd=Symbol.for("react.suspense"),qd=Symbol.for("react.suspense_list"),Hp=Symbol.for("react.memo"),pr=Symbol.for("react.lazy"),Qb=Symbol.for("react.offscreen"),Hx=Symbol.iterator;function qi(e){return e===null||typeof e!="object"?null:(e=Hx&&e[Hx]||e["@@iterator"],typeof e=="function"?e:null)}var Ae=Object.assign,Pd;function aa(e){if(Pd===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Pd=t&&t[1]||""}return`
|
|
2
|
+
`+Pd+e}var Id=!1;function Ed(e,t){if(!e||Id)return"";Id=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var o=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){o=c}e.call(t.prototype)}else{try{throw Error()}catch(c){o=c}e()}}catch(c){if(c&&o&&typeof c.stack=="string"){for(var n=c.stack.split(`
|
|
3
3
|
`),i=o.stack.split(`
|
|
4
4
|
`),a=n.length-1,l=i.length-1;1<=a&&0<=l&&n[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(n[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||n[a]!==i[l]){var s=`
|
|
5
|
-
`+n[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Sd=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Gi(e):""}function Qw(e){switch(e.tag){case 5:return Gi(e.type);case 16:return Gi("Lazy");case 13:return Gi("Suspense");case 19:return Gi("SuspenseList");case 0:case 2:case 15:return e=bd(e.type,!1),e;case 11:return e=bd(e.type.render,!1),e;case 1:return e=bd(e.type,!0),e;default:return""}}function Vd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yo:return"Fragment";case vo:return"Portal";case Md:return"Profiler";case Np:return"StrictMode";case Bd:return"Suspense";case Zd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case WS:return(e.displayName||"Context")+".Consumer";case US:return(e._context.displayName||"Context")+".Provider";case Lp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fp:return t=e.displayName||null,t!==null?t:Vd(e.type)||"Memo";case rr:t=e._payload,e=e._init;try{return Vd(e(t))}catch{}}return null}function ez(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Vd(t);case 8:return t===Np?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function yr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function BS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tz(e){var t=BS(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pl(e){e._valueTracker||(e._valueTracker=tz(e))}function ZS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=BS(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function ns(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}}function Hd(e,t){var r=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Nx(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=yr(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function VS(e,t){t=t.checked,t!=null&&Dp(e,"checked",t,!1)}function Jd(e,t){VS(e,t);var r=yr(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Gd(e,t.type,r):t.hasOwnProperty("defaultValue")&&Gd(e,t.type,yr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lx(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Gd(e,t,r){(t!=="number"||ns(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Xi=Array.isArray;function Po(e,t,r,o){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&o&&(e[r].defaultSelected=!0)}else{for(r=""+yr(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Xd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return De({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fx(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(R(92));if(Xi(r)){if(1<r.length)throw Error(R(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:yr(r)}}function HS(e,t){var r=yr(t.value),o=yr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function Ax(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function JS(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Kd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?JS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var El,GS=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,n)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(El=El||document.createElement("div"),El.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=El.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sa(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var qi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nz=["Webkit","ms","Moz","O"];Object.keys(qi).forEach(function(e){nz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qi[t]=qi[e]})});function XS(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||qi.hasOwnProperty(e)&&qi[e]?(""+t).trim():t+"px"}function KS(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=XS(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var rz=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Yd(e,t){if(t){if(rz[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function qd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Qd=null;function Ap(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ep=null,Eo=null,Ro=null;function Ux(e){if(e=za(e)){if(typeof ep!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Rs(t),ep(e.stateNode,e.type,t))}}function YS(e){Eo?Ro?Ro.push(e):Ro=[e]:Eo=e}function qS(){if(Eo){var e=Eo,t=Ro;if(Ro=Eo=null,Ux(e),t)for(e=0;e<t.length;e++)Ux(t[e])}}function QS(e,t){return e(t)}function eb(){}var kd=!1;function tb(e,t,r){if(kd)return e(t,r);kd=!0;try{return QS(e,t,r)}finally{kd=!1,(Eo!==null||Ro!==null)&&(eb(),qS())}}function ca(e,t){var r=e.stateNode;if(r===null)return null;var o=Rs(r);if(o===null)return null;r=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(R(231,t,typeof r));return r}var tp=!1;if(Vn)try{mo={},Object.defineProperty(mo,"passive",{get:function(){tp=!0}}),window.addEventListener("test",mo,mo),window.removeEventListener("test",mo,mo)}catch{tp=!1}var mo;function oz(e,t,r,o,n,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var Qi=!1,rs=null,os=!1,np=null,iz={onError:function(e){Qi=!0,rs=e}};function az(e,t,r,o,n,i,a,l,s){Qi=!1,rs=null,oz.apply(iz,arguments)}function lz(e,t,r,o,n,i,a,l,s){if(az.apply(this,arguments),Qi){if(Qi){var c=rs;Qi=!1,rs=null}else throw Error(R(198));os||(os=!0,np=c)}}function Kr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function nb(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 Wx(e){if(Kr(e)!==e)throw Error(R(188))}function sz(e){var t=e.alternate;if(!t){if(t=Kr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var r=e,o=t;;){var n=r.return;if(n===null)break;var i=n.alternate;if(i===null){if(o=n.return,o!==null){r=o;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===r)return Wx(n),e;if(i===o)return Wx(n),t;i=i.sibling}throw Error(R(188))}if(r.return!==o.return)r=n,o=i;else{for(var a=!1,l=n.child;l;){if(l===r){a=!0,r=n,o=i;break}if(l===o){a=!0,o=n,r=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===r){a=!0,r=i,o=n;break}if(l===o){a=!0,o=i,r=n;break}l=l.sibling}if(!a)throw Error(R(189))}}if(r.alternate!==o)throw Error(R(190))}if(r.tag!==3)throw Error(R(188));return r.stateNode.current===r?e:t}function rb(e){return e=sz(e),e!==null?ob(e):null}function ob(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ob(e);if(t!==null)return t;e=e.sibling}return null}var ib=Dt.unstable_scheduleCallback,Mx=Dt.unstable_cancelCallback,cz=Dt.unstable_shouldYield,uz=Dt.unstable_requestPaint,Ue=Dt.unstable_now,dz=Dt.unstable_getCurrentPriorityLevel,Up=Dt.unstable_ImmediatePriority,ab=Dt.unstable_UserBlockingPriority,is=Dt.unstable_NormalPriority,pz=Dt.unstable_LowPriority,lb=Dt.unstable_IdlePriority,zs=null,$n=null;function fz(e){if($n&&typeof $n.onCommitFiberRoot=="function")try{$n.onCommitFiberRoot(zs,e,void 0,(e.current.flags&128)===128)}catch{}}var cn=Math.clz32?Math.clz32:vz,mz=Math.log,gz=Math.LN2;function vz(e){return e>>>=0,e===0?32:31-(mz(e)/gz|0)|0}var Rl=64,Cl=4194304;function Ki(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function as(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,n=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~n;l!==0?o=Ki(l):(i&=a,i!==0&&(o=Ki(i)))}else a=r&~n,a!==0?o=Ki(a):i!==0&&(o=Ki(i));if(o===0)return 0;if(t!==0&&t!==o&&(t&n)===0&&(n=o&-o,i=t&-t,n>=i||n===16&&(i&4194240)!==0))return t;if((o&4)!==0&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-cn(t),n=1<<r,o|=e[r],t&=~n;return o}function yz(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hz(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-cn(i),l=1<<a,s=n[a];s===-1?((l&r)===0||(l&o)!==0)&&(n[a]=yz(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function rp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function sb(){var e=Rl;return Rl<<=1,(Rl&4194240)===0&&(Rl=64),e}function _d(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function $a(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-cn(t),e[t]=r}function xz(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-cn(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function Wp(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-cn(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var xe=0;function cb(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ub,Mp,db,pb,fb,op=!1,Tl=[],cr=null,ur=null,dr=null,ua=new Map,da=new Map,ir=[],Sz="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 submit".split(" ");function Bx(e,t){switch(e){case"focusin":case"focusout":cr=null;break;case"dragenter":case"dragleave":ur=null;break;case"mouseover":case"mouseout":dr=null;break;case"pointerover":case"pointerout":ua.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":da.delete(t.pointerId)}}function Wi(e,t,r,o,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:i,targetContainers:[n]},t!==null&&(t=za(t),t!==null&&Mp(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function bz(e,t,r,o,n){switch(t){case"focusin":return cr=Wi(cr,e,t,r,o,n),!0;case"dragenter":return ur=Wi(ur,e,t,r,o,n),!0;case"mouseover":return dr=Wi(dr,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return ua.set(i,Wi(ua.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,da.set(i,Wi(da.get(i)||null,e,t,r,o,n)),!0}return!1}function mb(e){var t=Ar(e.target);if(t!==null){var r=Kr(t);if(r!==null){if(t=r.tag,t===13){if(t=nb(r),t!==null){e.blockedOn=t,fb(e.priority,function(){db(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=ip(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Qd=o,r.target.dispatchEvent(o),Qd=null}else return t=za(r),t!==null&&Mp(t),e.blockedOn=r,!1;t.shift()}return!0}function Zx(e,t,r){Hl(e)&&r.delete(t)}function kz(){op=!1,cr!==null&&Hl(cr)&&(cr=null),ur!==null&&Hl(ur)&&(ur=null),dr!==null&&Hl(dr)&&(dr=null),ua.forEach(Zx),da.forEach(Zx)}function Mi(e,t){e.blockedOn===t&&(e.blockedOn=null,op||(op=!0,Dt.unstable_scheduleCallback(Dt.unstable_NormalPriority,kz)))}function pa(e){function t(n){return Mi(n,e)}if(0<Tl.length){Mi(Tl[0],e);for(var r=1;r<Tl.length;r++){var o=Tl[r];o.blockedOn===e&&(o.blockedOn=null)}}for(cr!==null&&Mi(cr,e),ur!==null&&Mi(ur,e),dr!==null&&Mi(dr,e),ua.forEach(t),da.forEach(t),r=0;r<ir.length;r++)o=ir[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<ir.length&&(r=ir[0],r.blockedOn===null);)mb(r),r.blockedOn===null&&ir.shift()}var Co=Xn.ReactCurrentBatchConfig,ls=!0;function _z(e,t,r,o){var n=xe,i=Co.transition;Co.transition=null;try{xe=1,Bp(e,t,r,o)}finally{xe=n,Co.transition=i}}function $z(e,t,r,o){var n=xe,i=Co.transition;Co.transition=null;try{xe=4,Bp(e,t,r,o)}finally{xe=n,Co.transition=i}}function Bp(e,t,r,o){if(ls){var n=ip(e,t,r,o);if(n===null)Rd(e,t,o,ss,r),Bx(e,o);else if(bz(n,e,t,r,o))o.stopPropagation();else if(Bx(e,o),t&4&&-1<Sz.indexOf(e)){for(;n!==null;){var i=za(n);if(i!==null&&ub(i),i=ip(e,t,r,o),i===null&&Rd(e,t,o,ss,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else Rd(e,t,o,null,r)}}var ss=null;function ip(e,t,r,o){if(ss=null,e=Ap(o),e=Ar(e),e!==null)if(t=Kr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=nb(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ss=e,null}function gb(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(dz()){case Up:return 1;case ab:return 4;case is:case pz:return 16;case lb:return 536870912;default:return 16}default:return 16}}var lr=null,Zp=null,Jl=null;function vb(){if(Jl)return Jl;var e,t=Zp,r=t.length,o,n="value"in lr?lr.value:lr.textContent,i=n.length;for(e=0;e<r&&t[e]===n[e];e++);var a=r-e;for(o=1;o<=a&&t[r-o]===n[i-o];o++);return Jl=n.slice(e,1<o?1-o:void 0)}function Gl(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 jl(){return!0}function Vx(){return!1}function Nt(e){function t(r,o,n,i,a){this._reactName=r,this._targetInst=n,this.type=o,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?jl:Vx,this.isPropagationStopped=Vx,this}return De(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=jl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),t}var Wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vp=Nt(Wo),wa=De({},Wo,{view:0,detail:0}),wz=Nt(wa),$d,wd,Bi,Is=De({},wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hp,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!==Bi&&(Bi&&e.type==="mousemove"?($d=e.screenX-Bi.screenX,wd=e.screenY-Bi.screenY):wd=$d=0,Bi=e),$d)},movementY:function(e){return"movementY"in e?e.movementY:wd}}),Hx=Nt(Is),zz=De({},Is,{dataTransfer:0}),Iz=Nt(zz),Pz=De({},wa,{relatedTarget:0}),zd=Nt(Pz),Ez=De({},Wo,{animationName:0,elapsedTime:0,pseudoElement:0}),Rz=Nt(Ez),Cz=De({},Wo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tz=Nt(Cz),jz=De({},Wo,{data:0}),Jx=Nt(jz),Oz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dz={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"},Nz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nz[e])?!!t[e]:!1}function Hp(){return Lz}var Fz=De({},wa,{key:function(e){if(e.key){var t=Oz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Dz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hp,charCode:function(e){return e.type==="keypress"?Gl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Az=Nt(Fz),Uz=De({},Is,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gx=Nt(Uz),Wz=De({},wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hp}),Mz=Nt(Wz),Bz=De({},Wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zz=Nt(Bz),Vz=De({},Is,{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}),Hz=Nt(Vz),Jz=[9,13,27,32],Jp=Vn&&"CompositionEvent"in window,ea=null;Vn&&"documentMode"in document&&(ea=document.documentMode);var Gz=Vn&&"TextEvent"in window&&!ea,yb=Vn&&(!Jp||ea&&8<ea&&11>=ea),Xx=" ",Kx=!1;function hb(e,t){switch(e){case"keyup":return Jz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ho=!1;function Xz(e,t){switch(e){case"compositionend":return xb(t);case"keypress":return t.which!==32?null:(Kx=!0,Xx);case"textInput":return e=t.data,e===Xx&&Kx?null:e;default:return null}}function Kz(e,t){if(ho)return e==="compositionend"||!Jp&&hb(e,t)?(e=vb(),Jl=Zp=lr=null,ho=!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 yb&&t.locale!=="ko"?null:t.data;default:return null}}var Yz={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 Yx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Yz[e.type]:t==="textarea"}function Sb(e,t,r,o){YS(o),t=cs(t,"onChange"),0<t.length&&(r=new Vp("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var ta=null,fa=null;function qz(e){Cb(e,0)}function Ps(e){var t=bo(e);if(ZS(t))return e}function Qz(e,t){if(e==="change")return t}var bb=!1;Vn&&(Vn?(Dl="oninput"in document,Dl||(Id=document.createElement("div"),Id.setAttribute("oninput","return;"),Dl=typeof Id.oninput=="function"),Ol=Dl):Ol=!1,bb=Ol&&(!document.documentMode||9<document.documentMode));var Ol,Dl,Id;function qx(){ta&&(ta.detachEvent("onpropertychange",kb),fa=ta=null)}function kb(e){if(e.propertyName==="value"&&Ps(fa)){var t=[];Sb(t,fa,e,Ap(e)),tb(qz,t)}}function eI(e,t,r){e==="focusin"?(qx(),ta=t,fa=r,ta.attachEvent("onpropertychange",kb)):e==="focusout"&&qx()}function tI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ps(fa)}function nI(e,t){if(e==="click")return Ps(t)}function rI(e,t){if(e==="input"||e==="change")return Ps(t)}function oI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dn=typeof Object.is=="function"?Object.is:oI;function ma(e,t){if(dn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var n=r[o];if(!Wd.call(t,n)||!dn(e[n],t[n]))return!1}return!0}function Qx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function eS(e,t){var r=Qx(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Qx(r)}}function _b(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_b(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $b(){for(var e=window,t=ns();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ns(e.document)}return t}function Gp(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")}function iI(e){var t=$b(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&_b(r.ownerDocument.documentElement,r)){if(o!==null&&Gp(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!e.extend&&i>o&&(n=o,o=i,i=n),n=eS(r,i);var a=eS(r,o);n&&a&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var aI=Vn&&"documentMode"in document&&11>=document.documentMode,xo=null,ap=null,na=null,lp=!1;function tS(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;lp||xo==null||xo!==ns(o)||(o=xo,"selectionStart"in o&&Gp(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),na&&ma(na,o)||(na=o,o=cs(ap,"onSelect"),0<o.length&&(t=new Vp("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=xo)))}function Nl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var So={animationend:Nl("Animation","AnimationEnd"),animationiteration:Nl("Animation","AnimationIteration"),animationstart:Nl("Animation","AnimationStart"),transitionend:Nl("Transition","TransitionEnd")},Pd={},wb={};Vn&&(wb=document.createElement("div").style,"AnimationEvent"in window||(delete So.animationend.animation,delete So.animationiteration.animation,delete So.animationstart.animation),"TransitionEvent"in window||delete So.transitionend.transition);function Es(e){if(Pd[e])return Pd[e];if(!So[e])return e;var t=So[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in wb)return Pd[e]=t[r];return e}var zb=Es("animationend"),Ib=Es("animationiteration"),Pb=Es("animationstart"),Eb=Es("transitionend"),Rb=new Map,nS="abort auxClick 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(" ");function xr(e,t){Rb.set(e,t),Xr(t,[e])}for(Ll=0;Ll<nS.length;Ll++)Fl=nS[Ll],rS=Fl.toLowerCase(),oS=Fl[0].toUpperCase()+Fl.slice(1),xr(rS,"on"+oS);var Fl,rS,oS,Ll;xr(zb,"onAnimationEnd");xr(Ib,"onAnimationIteration");xr(Pb,"onAnimationStart");xr("dblclick","onDoubleClick");xr("focusin","onFocus");xr("focusout","onBlur");xr(Eb,"onTransitionEnd");Oo("onMouseEnter",["mouseout","mouseover"]);Oo("onMouseLeave",["mouseout","mouseover"]);Oo("onPointerEnter",["pointerout","pointerover"]);Oo("onPointerLeave",["pointerout","pointerover"]);Xr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yi="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(" "),lI=new Set("cancel close invalid load scroll toggle".split(" ").concat(Yi));function iS(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,lz(o,t,void 0,e),e.currentTarget=null}function Cb(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],n=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var l=o[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&n.isPropagationStopped())break e;iS(n,l,c),i=s}else for(a=0;a<o.length;a++){if(l=o[a],s=l.instance,c=l.currentTarget,l=l.listener,s!==i&&n.isPropagationStopped())break e;iS(n,l,c),i=s}}}if(os)throw e=np,os=!1,np=null,e}function Ee(e,t){var r=t[pp];r===void 0&&(r=t[pp]=new Set);var o=e+"__bubble";r.has(o)||(Tb(t,e,2,!1),r.add(o))}function Ed(e,t,r){var o=0;t&&(o|=4),Tb(r,e,o,t)}var Al="_reactListening"+Math.random().toString(36).slice(2);function ga(e){if(!e[Al]){e[Al]=!0,AS.forEach(function(r){r!=="selectionchange"&&(lI.has(r)||Ed(r,!1,e),Ed(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Al]||(t[Al]=!0,Ed("selectionchange",!1,t))}}function Tb(e,t,r,o){switch(gb(t)){case 1:var n=_z;break;case 4:n=$z;break;default:n=Bp}r=n.bind(null,t,r,e),n=void 0,!tp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function Rd(e,t,r,o,n){var i=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var a=o.tag;if(a===3||a===4){var l=o.stateNode.containerInfo;if(l===n||l.nodeType===8&&l.parentNode===n)break;if(a===4)for(a=o.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===n||s.nodeType===8&&s.parentNode===n))return;a=a.return}for(;l!==null;){if(a=Ar(l),a===null)return;if(s=a.tag,s===5||s===6){o=i=a;continue e}l=l.parentNode}}o=o.return}tb(function(){var c=i,d=Ap(r),p=[];e:{var f=Rb.get(e);if(f!==void 0){var g=Vp,x=e;switch(e){case"keypress":if(Gl(r)===0)break e;case"keydown":case"keyup":g=Az;break;case"focusin":x="focus",g=zd;break;case"focusout":x="blur",g=zd;break;case"beforeblur":case"afterblur":g=zd;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Hx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Iz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Mz;break;case zb:case Ib:case Pb:g=Rz;break;case Eb:g=Zz;break;case"scroll":g=wz;break;case"wheel":g=Hz;break;case"copy":case"cut":case"paste":g=Tz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Gx}var h=(t&4)!==0,_=!h&&e==="scroll",v=h?f!==null?f+"Capture":null:f;h=[];for(var m=c,y;m!==null;){y=m;var b=y.stateNode;if(y.tag===5&&b!==null&&(y=b,v!==null&&(b=ca(m,v),b!=null&&h.push(va(m,b,y)))),_)break;m=m.return}0<h.length&&(f=new g(f,x,null,r,d),p.push({event:f,listeners:h}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&r!==Qd&&(x=r.relatedTarget||r.fromElement)&&(Ar(x)||x[Hn]))break e;if((g||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,g?(x=r.relatedTarget||r.toElement,g=c,x=x?Ar(x):null,x!==null&&(_=Kr(x),x!==_||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=c),g!==x)){if(h=Hx,b="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(h=Gx,b="onPointerLeave",v="onPointerEnter",m="pointer"),_=g==null?f:bo(g),y=x==null?f:bo(x),f=new h(b,m+"leave",g,r,d),f.target=_,f.relatedTarget=y,b=null,Ar(d)===c&&(h=new h(v,m+"enter",x,r,d),h.target=y,h.relatedTarget=_,b=h),_=b,g&&x)t:{for(h=g,v=x,m=0,y=h;y;y=go(y))m++;for(y=0,b=v;b;b=go(b))y++;for(;0<m-y;)h=go(h),m--;for(;0<y-m;)v=go(v),y--;for(;m--;){if(h===v||v!==null&&h===v.alternate)break t;h=go(h),v=go(v)}h=null}else h=null;g!==null&&aS(p,f,g,h,!1),x!==null&&_!==null&&aS(p,_,x,h,!0)}}e:{if(f=c?bo(c):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var P=Qz;else if(Yx(f))if(bb)P=rI;else{P=tI;var O=eI}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(P=nI);if(P&&(P=P(e,c))){Sb(p,P,r,d);break e}O&&O(e,f,c),e==="focusout"&&(O=f._wrapperState)&&O.controlled&&f.type==="number"&&Gd(f,"number",f.value)}switch(O=c?bo(c):window,e){case"focusin":(Yx(O)||O.contentEditable==="true")&&(xo=O,ap=c,na=null);break;case"focusout":na=ap=xo=null;break;case"mousedown":lp=!0;break;case"contextmenu":case"mouseup":case"dragend":lp=!1,tS(p,r,d);break;case"selectionchange":if(aI)break;case"keydown":case"keyup":tS(p,r,d)}var T;if(Jp)e:{switch(e){case"compositionstart":var Z="onCompositionStart";break e;case"compositionend":Z="onCompositionEnd";break e;case"compositionupdate":Z="onCompositionUpdate";break e}Z=void 0}else ho?hb(e,r)&&(Z="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Z="onCompositionStart");Z&&(yb&&r.locale!=="ko"&&(ho||Z!=="onCompositionStart"?Z==="onCompositionEnd"&&ho&&(T=vb()):(lr=d,Zp="value"in lr?lr.value:lr.textContent,ho=!0)),O=cs(c,Z),0<O.length&&(Z=new Jx(Z,e,null,r,d),p.push({event:Z,listeners:O}),T?Z.data=T:(T=xb(r),T!==null&&(Z.data=T)))),(T=Gz?Xz(e,r):Kz(e,r))&&(c=cs(c,"onBeforeInput"),0<c.length&&(d=new Jx("onBeforeInput","beforeinput",null,r,d),p.push({event:d,listeners:c}),d.data=T))}Cb(p,t)})}function va(e,t,r){return{instance:e,listener:t,currentTarget:r}}function cs(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n.tag===5&&i!==null&&(n=i,i=ca(e,r),i!=null&&o.unshift(va(e,i,n)),i=ca(e,t),i!=null&&o.push(va(e,i,n))),e=e.return}return o}function go(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function aS(e,t,r,o,n){for(var i=t._reactName,a=[];r!==null&&r!==o;){var l=r,s=l.alternate,c=l.stateNode;if(s!==null&&s===o)break;l.tag===5&&c!==null&&(l=c,n?(s=ca(r,i),s!=null&&a.unshift(va(r,s,l))):n||(s=ca(r,i),s!=null&&a.push(va(r,s,l)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var sI=/\r\n?/g,cI=/\u0000|\uFFFD/g;function lS(e){return(typeof e=="string"?e:""+e).replace(sI,`
|
|
6
|
-
`).replace(cI,"")}function Ul(e,t,r){if(t=lS(t),lS(e)!==t&&r)throw Error(R(425))}function us(){}var sp=null,cp=null;function up(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var dp=typeof setTimeout=="function"?setTimeout:void 0,uI=typeof clearTimeout=="function"?clearTimeout:void 0,sS=typeof Promise=="function"?Promise:void 0,dI=typeof queueMicrotask=="function"?queueMicrotask:typeof sS<"u"?function(e){return sS.resolve(null).then(e).catch(pI)}:dp;function pI(e){setTimeout(function(){throw e})}function Cd(e,t){var r=t,o=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(o===0){e.removeChild(n),pa(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);pa(t)}function pr(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==="$?")break;if(t==="/$")return null}}return e}function cS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Mo=Math.random().toString(36).slice(2),_n="__reactFiber$"+Mo,ya="__reactProps$"+Mo,Hn="__reactContainer$"+Mo,pp="__reactEvents$"+Mo,fI="__reactListeners$"+Mo,mI="__reactHandles$"+Mo;function Ar(e){var t=e[_n];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Hn]||r[_n]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=cS(e);e!==null;){if(r=e[_n])return r;e=cS(e)}return t}e=r,r=e.parentNode}return null}function za(e){return e=e[_n]||e[Hn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function Rs(e){return e[ya]||null}var fp=[],ko=-1;function Sr(e){return{current:e}}function Re(e){0>ko||(e.current=fp[ko],fp[ko]=null,ko--)}function Ie(e,t){ko++,fp[ko]=e.current,e.current=t}var hr={},pt=Sr(hr),zt=Sr(!1),Zr=hr;function Do(e,t){var r=e.type.contextTypes;if(!r)return hr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function It(e){return e=e.childContextTypes,e!=null}function ds(){Re(zt),Re(pt)}function uS(e,t,r){if(pt.current!==hr)throw Error(R(168));Ie(pt,t),Ie(zt,r)}function jb(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in t))throw Error(R(108,ez(e)||"Unknown",n));return De({},r,o)}function ps(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hr,Zr=pt.current,Ie(pt,e),Ie(zt,zt.current),!0}function dS(e,t,r){var o=e.stateNode;if(!o)throw Error(R(169));r?(e=jb(e,t,Zr),o.__reactInternalMemoizedMergedChildContext=e,Re(zt),Re(pt),Ie(pt,e)):Re(zt),Ie(zt,r)}var Wn=null,Cs=!1,Td=!1;function Ob(e){Wn===null?Wn=[e]:Wn.push(e)}function gI(e){Cs=!0,Ob(e)}function br(){if(!Td&&Wn!==null){Td=!0;var e=0,t=xe;try{var r=Wn;for(xe=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}Wn=null,Cs=!1}catch(n){throw Wn!==null&&(Wn=Wn.slice(e+1)),ib(Up,br),n}finally{xe=t,Td=!1}}return null}var _o=[],$o=0,fs=null,ms=0,Vt=[],Ht=0,Vr=null,Mn=1,Bn="";function Lr(e,t){_o[$o++]=ms,_o[$o++]=fs,fs=e,ms=t}function Db(e,t,r){Vt[Ht++]=Mn,Vt[Ht++]=Bn,Vt[Ht++]=Vr,Vr=e;var o=Mn;e=Bn;var n=32-cn(o)-1;o&=~(1<<n),r+=1;var i=32-cn(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,Mn=1<<32-cn(t)+n|r<<n|o,Bn=i+e}else Mn=1<<i|r<<n|o,Bn=e}function Xp(e){e.return!==null&&(Lr(e,1),Db(e,1,0))}function Kp(e){for(;e===fs;)fs=_o[--$o],_o[$o]=null,ms=_o[--$o],_o[$o]=null;for(;e===Vr;)Vr=Vt[--Ht],Vt[Ht]=null,Bn=Vt[--Ht],Vt[Ht]=null,Mn=Vt[--Ht],Vt[Ht]=null}var Ot=null,jt=null,Ce=!1,sn=null;function Nb(e,t){var r=Jt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function pS(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ot=e,jt=pr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ot=e,jt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Vr!==null?{id:Mn,overflow:Bn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Jt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Ot=e,jt=null,!0):!1;default:return!1}}function mp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function gp(e){if(Ce){var t=jt;if(t){var r=t;if(!pS(e,t)){if(mp(e))throw Error(R(418));t=pr(r.nextSibling);var o=Ot;t&&pS(e,t)?Nb(o,r):(e.flags=e.flags&-4097|2,Ce=!1,Ot=e)}}else{if(mp(e))throw Error(R(418));e.flags=e.flags&-4097|2,Ce=!1,Ot=e}}}function fS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ot=e}function Wl(e){if(e!==Ot)return!1;if(!Ce)return fS(e),Ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!up(e.type,e.memoizedProps)),t&&(t=jt)){if(mp(e))throw Lb(),Error(R(418));for(;t;)Nb(e,t),t=pr(t.nextSibling)}if(fS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){jt=pr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}jt=null}}else jt=Ot?pr(e.stateNode.nextSibling):null;return!0}function Lb(){for(var e=jt;e;)e=pr(e.nextSibling)}function No(){jt=Ot=null,Ce=!1}function Yp(e){sn===null?sn=[e]:sn.push(e)}var vI=Xn.ReactCurrentBatchConfig;function Zi(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(R(309));var o=r.stateNode}if(!o)throw Error(R(147,e));var n=o,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=n.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(R(284));if(!r._owner)throw Error(R(290,e))}return e}function Ml(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mS(e){var t=e._init;return t(e._payload)}function Fb(e){function t(v,m){if(e){var y=v.deletions;y===null?(v.deletions=[m],v.flags|=16):y.push(m)}}function r(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function o(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function n(v,m){return v=vr(v,m),v.index=0,v.sibling=null,v}function i(v,m,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<m?(v.flags|=2,m):y):(v.flags|=2,m)):(v.flags|=1048576,m)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,m,y,b){return m===null||m.tag!==6?(m=Ad(y,v.mode,b),m.return=v,m):(m=n(m,y),m.return=v,m)}function s(v,m,y,b){var P=y.type;return P===yo?d(v,m,y.props.children,b,y.key):m!==null&&(m.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===rr&&mS(P)===m.type)?(b=n(m,y.props),b.ref=Zi(v,m,y),b.return=v,b):(b=ts(y.type,y.key,y.props,null,v.mode,b),b.ref=Zi(v,m,y),b.return=v,b)}function c(v,m,y,b){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=Ud(y,v.mode,b),m.return=v,m):(m=n(m,y.children||[]),m.return=v,m)}function d(v,m,y,b,P){return m===null||m.tag!==7?(m=Br(y,v.mode,b,P),m.return=v,m):(m=n(m,y),m.return=v,m)}function p(v,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Ad(""+m,v.mode,y),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Il:return y=ts(m.type,m.key,m.props,null,v.mode,y),y.ref=Zi(v,null,m),y.return=v,y;case vo:return m=Ud(m,v.mode,y),m.return=v,m;case rr:var b=m._init;return p(v,b(m._payload),y)}if(Xi(m)||Ui(m))return m=Br(m,v.mode,y,null),m.return=v,m;Ml(v,m)}return null}function f(v,m,y,b){var P=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return P!==null?null:l(v,m,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Il:return y.key===P?s(v,m,y,b):null;case vo:return y.key===P?c(v,m,y,b):null;case rr:return P=y._init,f(v,m,P(y._payload),b)}if(Xi(y)||Ui(y))return P!==null?null:d(v,m,y,b,null);Ml(v,y)}return null}function g(v,m,y,b,P){if(typeof b=="string"&&b!==""||typeof b=="number")return v=v.get(y)||null,l(m,v,""+b,P);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Il:return v=v.get(b.key===null?y:b.key)||null,s(m,v,b,P);case vo:return v=v.get(b.key===null?y:b.key)||null,c(m,v,b,P);case rr:var O=b._init;return g(v,m,y,O(b._payload),P)}if(Xi(b)||Ui(b))return v=v.get(y)||null,d(m,v,b,P,null);Ml(m,b)}return null}function x(v,m,y,b){for(var P=null,O=null,T=m,Z=m=0,K=null;T!==null&&Z<y.length;Z++){T.index>Z?(K=T,T=null):K=T.sibling;var M=f(v,T,y[Z],b);if(M===null){T===null&&(T=K);break}e&&T&&M.alternate===null&&t(v,T),m=i(M,m,Z),O===null?P=M:O.sibling=M,O=M,T=K}if(Z===y.length)return r(v,T),Ce&&Lr(v,Z),P;if(T===null){for(;Z<y.length;Z++)T=p(v,y[Z],b),T!==null&&(m=i(T,m,Z),O===null?P=T:O.sibling=T,O=T);return Ce&&Lr(v,Z),P}for(T=o(v,T);Z<y.length;Z++)K=g(T,v,Z,y[Z],b),K!==null&&(e&&K.alternate!==null&&T.delete(K.key===null?Z:K.key),m=i(K,m,Z),O===null?P=K:O.sibling=K,O=K);return e&&T.forEach(function(Ge){return t(v,Ge)}),Ce&&Lr(v,Z),P}function h(v,m,y,b){var P=Ui(y);if(typeof P!="function")throw Error(R(150));if(y=P.call(y),y==null)throw Error(R(151));for(var O=P=null,T=m,Z=m=0,K=null,M=y.next();T!==null&&!M.done;Z++,M=y.next()){T.index>Z?(K=T,T=null):K=T.sibling;var Ge=f(v,T,M.value,b);if(Ge===null){T===null&&(T=K);break}e&&T&&Ge.alternate===null&&t(v,T),m=i(Ge,m,Z),O===null?P=Ge:O.sibling=Ge,O=Ge,T=K}if(M.done)return r(v,T),Ce&&Lr(v,Z),P;if(T===null){for(;!M.done;Z++,M=y.next())M=p(v,M.value,b),M!==null&&(m=i(M,m,Z),O===null?P=M:O.sibling=M,O=M);return Ce&&Lr(v,Z),P}for(T=o(v,T);!M.done;Z++,M=y.next())M=g(T,v,Z,M.value,b),M!==null&&(e&&M.alternate!==null&&T.delete(M.key===null?Z:M.key),m=i(M,m,Z),O===null?P=M:O.sibling=M,O=M);return e&&T.forEach(function(oe){return t(v,oe)}),Ce&&Lr(v,Z),P}function _(v,m,y,b){if(typeof y=="object"&&y!==null&&y.type===yo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Il:e:{for(var P=y.key,O=m;O!==null;){if(O.key===P){if(P=y.type,P===yo){if(O.tag===7){r(v,O.sibling),m=n(O,y.props.children),m.return=v,v=m;break e}}else if(O.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===rr&&mS(P)===O.type){r(v,O.sibling),m=n(O,y.props),m.ref=Zi(v,O,y),m.return=v,v=m;break e}r(v,O);break}else t(v,O);O=O.sibling}y.type===yo?(m=Br(y.props.children,v.mode,b,y.key),m.return=v,v=m):(b=ts(y.type,y.key,y.props,null,v.mode,b),b.ref=Zi(v,m,y),b.return=v,v=b)}return a(v);case vo:e:{for(O=y.key;m!==null;){if(m.key===O)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(v,m.sibling),m=n(m,y.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=Ud(y,v.mode,b),m.return=v,v=m}return a(v);case rr:return O=y._init,_(v,m,O(y._payload),b)}if(Xi(y))return x(v,m,y,b);if(Ui(y))return h(v,m,y,b);Ml(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(r(v,m.sibling),m=n(m,y),m.return=v,v=m):(r(v,m),m=Ad(y,v.mode,b),m.return=v,v=m),a(v)):r(v,m)}return _}var Lo=Fb(!0),Ab=Fb(!1),gs=Sr(null),vs=null,wo=null,qp=null;function Qp(){qp=wo=vs=null}function ef(e){var t=gs.current;Re(gs),e._currentValue=t}function vp(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function To(e,t){vs=e,qp=wo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(wt=!0),e.firstContext=null)}function Xt(e){var t=e._currentValue;if(qp!==e)if(e={context:e,memoizedValue:t,next:null},wo===null){if(vs===null)throw Error(R(308));wo=e,vs.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Ur=null;function tf(e){Ur===null?Ur=[e]:Ur.push(e)}function Ub(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,tf(t)):(r.next=n.next,n.next=r),t.interleaved=r,Jn(e,o)}function Jn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var or=!1;function nf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fr(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(me&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,Jn(e,r)}return n=o.interleaved,n===null?(t.next=t,tf(o)):(t.next=n.next,n.next=t),o.interleaved=t,Jn(e,r)}function Xl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Wp(e,r)}}function gS(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var n=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?n=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?n=i=t:i=i.next=t}else n=i=t;r={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ys(e,t,r,o){var n=e.updateQueue;or=!1;var i=n.firstBaseUpdate,a=n.lastBaseUpdate,l=n.shared.pending;if(l!==null){n.shared.pending=null;var s=l,c=s.next;s.next=null,a===null?i=c:a.next=c,a=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s))}if(i!==null){var p=n.baseState;a=0,d=c=s=null,l=i;do{var f=l.lane,g=l.eventTime;if((o&f)===f){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,h=l;switch(f=t,g=r,h.tag){case 1:if(x=h.payload,typeof x=="function"){p=x.call(g,p,f);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=h.payload,f=typeof x=="function"?x.call(g,p,f):x,f==null)break e;p=De({},p,f);break e;case 2:or=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=n.effects,f===null?n.effects=[l]:f.push(l))}else g={eventTime:g,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,s=p):d=d.next=g,a|=f;if(l=l.next,l===null){if(l=n.shared.pending,l===null)break;f=l,l=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(d===null&&(s=p),n.baseState=s,n.firstBaseUpdate=c,n.lastBaseUpdate=d,t=n.shared.interleaved,t!==null){n=t;do a|=n.lane,n=n.next;while(n!==t)}else i===null&&(n.shared.lanes=0);Jr|=a,e.lanes=a,e.memoizedState=p}}function vS(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],n=o.callback;if(n!==null){if(o.callback=null,o=r,typeof n!="function")throw Error(R(191,n));n.call(o)}}}var Ia={},wn=Sr(Ia),ha=Sr(Ia),xa=Sr(Ia);function Wr(e){if(e===Ia)throw Error(R(174));return e}function rf(e,t){switch(Ie(xa,t),Ie(ha,e),Ie(wn,Ia),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kd(t,e)}Re(wn),Ie(wn,t)}function Fo(){Re(wn),Re(ha),Re(xa)}function Mb(e){Wr(xa.current);var t=Wr(wn.current),r=Kd(t,e.type);t!==r&&(Ie(ha,e),Ie(wn,r))}function of(e){ha.current===e&&(Re(wn),Re(ha))}var je=Sr(0);function hs(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 jd=[];function af(){for(var e=0;e<jd.length;e++)jd[e]._workInProgressVersionPrimary=null;jd.length=0}var Kl=Xn.ReactCurrentDispatcher,Od=Xn.ReactCurrentBatchConfig,Hr=0,Oe=null,Ke=null,et=null,xs=!1,ra=!1,Sa=0,yI=0;function ct(){throw Error(R(321))}function lf(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!dn(e[r],t[r]))return!1;return!0}function sf(e,t,r,o,n,i){if(Hr=i,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kl.current=e===null||e.memoizedState===null?bI:kI,e=r(o,n),ra){i=0;do{if(ra=!1,Sa=0,25<=i)throw Error(R(301));i+=1,et=Ke=null,t.updateQueue=null,Kl.current=_I,e=r(o,n)}while(ra)}if(Kl.current=Ss,t=Ke!==null&&Ke.next!==null,Hr=0,et=Ke=Oe=null,xs=!1,t)throw Error(R(300));return e}function cf(){var e=Sa!==0;return Sa=0,e}function kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?Oe.memoizedState=et=e:et=et.next=e,et}function Kt(){if(Ke===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=et===null?Oe.memoizedState:et.next;if(t!==null)et=t,Ke=e;else{if(e===null)throw Error(R(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},et===null?Oe.memoizedState=et=e:et=et.next=e}return et}function ba(e,t){return typeof t=="function"?t(e):t}function Dd(e){var t=Kt(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var o=Ke,n=o.baseQueue,i=r.pending;if(i!==null){if(n!==null){var a=n.next;n.next=i.next,i.next=a}o.baseQueue=n=i,r.pending=null}if(n!==null){i=n.next,o=o.baseState;var l=a=null,s=null,c=i;do{var d=c.lane;if((Hr&d)===d)s!==null&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};s===null?(l=s=p,a=o):s=s.next=p,Oe.lanes|=d,Jr|=d}c=c.next}while(c!==null&&c!==i);s===null?a=o:s.next=l,dn(o,t.memoizedState)||(wt=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=s,r.lastRenderedState=o}if(e=r.interleaved,e!==null){n=e;do i=n.lane,Oe.lanes|=i,Jr|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Nd(e){var t=Kt(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var o=r.dispatch,n=r.pending,i=t.memoizedState;if(n!==null){r.pending=null;var a=n=n.next;do i=e(i,a.action),a=a.next;while(a!==n);dn(i,t.memoizedState)||(wt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function Bb(){}function Zb(e,t){var r=Oe,o=Kt(),n=t(),i=!dn(o.memoizedState,n);if(i&&(o.memoizedState=n,wt=!0),o=o.queue,uf(Jb.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||et!==null&&et.memoizedState.tag&1){if(r.flags|=2048,ka(9,Hb.bind(null,r,o,n,t),void 0,null),tt===null)throw Error(R(349));(Hr&30)!==0||Vb(r,t,n)}return n}function Vb(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Hb(e,t,r,o){t.value=r,t.getSnapshot=o,Gb(t)&&Xb(e)}function Jb(e,t,r){return r(function(){Gb(t)&&Xb(e)})}function Gb(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!dn(e,r)}catch{return!0}}function Xb(e){var t=Jn(e,1);t!==null&&un(t,e,1,-1)}function yS(e){var t=kn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t.queue=e,e=e.dispatch=SI.bind(null,Oe,e),[t.memoizedState,e]}function ka(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function Kb(){return Kt().memoizedState}function Yl(e,t,r,o){var n=kn();Oe.flags|=e,n.memoizedState=ka(1|t,r,void 0,o===void 0?null:o)}function Ts(e,t,r,o){var n=Kt();o=o===void 0?null:o;var i=void 0;if(Ke!==null){var a=Ke.memoizedState;if(i=a.destroy,o!==null&&lf(o,a.deps)){n.memoizedState=ka(t,r,i,o);return}}Oe.flags|=e,n.memoizedState=ka(1|t,r,i,o)}function hS(e,t){return Yl(8390656,8,e,t)}function uf(e,t){return Ts(2048,8,e,t)}function Yb(e,t){return Ts(4,2,e,t)}function qb(e,t){return Ts(4,4,e,t)}function Qb(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ek(e,t,r){return r=r!=null?r.concat([e]):null,Ts(4,4,Qb.bind(null,t,e),r)}function df(){}function tk(e,t){var r=Kt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&lf(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function nk(e,t){var r=Kt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&lf(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function rk(e,t,r){return(Hr&21)===0?(e.baseState&&(e.baseState=!1,wt=!0),e.memoizedState=r):(dn(r,t)||(r=sb(),Oe.lanes|=r,Jr|=r,e.baseState=!0),t)}function hI(e,t){var r=xe;xe=r!==0&&4>r?r:4,e(!0);var o=Od.transition;Od.transition={};try{e(!1),t()}finally{xe=r,Od.transition=o}}function ok(){return Kt().memoizedState}function xI(e,t,r){var o=gr(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},ik(e))ak(t,r);else if(r=Ub(e,t,r,o),r!==null){var n=yt();un(r,e,o,n),lk(r,t,o)}}function SI(e,t,r){var o=gr(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(ik(e))ak(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(n.hasEagerState=!0,n.eagerState=l,dn(l,a)){var s=t.interleaved;s===null?(n.next=n,tf(t)):(n.next=s.next,s.next=n),t.interleaved=n;return}}catch{}r=Ub(e,t,n,o),r!==null&&(n=yt(),un(r,e,o,n),lk(r,t,o))}}function ik(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function ak(e,t){ra=xs=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function lk(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Wp(e,r)}}var Ss={readContext:Xt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},bI={readContext:Xt,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:Xt,useEffect:hS,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Yl(4194308,4,Qb.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yl(4,2,e,t)},useMemo:function(e,t){var r=kn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=kn();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=xI.bind(null,Oe,e),[o.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:yS,useDebugValue:df,useDeferredValue:function(e){return kn().memoizedState=e},useTransition:function(){var e=yS(!1),t=e[0];return e=hI.bind(null,e[1]),kn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Oe,n=kn();if(Ce){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),tt===null)throw Error(R(349));(Hr&30)!==0||Vb(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,hS(Jb.bind(null,o,i,e),[e]),o.flags|=2048,ka(9,Hb.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=kn(),t=tt.identifierPrefix;if(Ce){var r=Bn,o=Mn;r=(o&~(1<<32-cn(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=Sa++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=yI++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kI={readContext:Xt,useCallback:tk,useContext:Xt,useEffect:uf,useImperativeHandle:ek,useInsertionEffect:Yb,useLayoutEffect:qb,useMemo:nk,useReducer:Dd,useRef:Kb,useState:function(){return Dd(ba)},useDebugValue:df,useDeferredValue:function(e){var t=Kt();return rk(t,Ke.memoizedState,e)},useTransition:function(){var e=Dd(ba)[0],t=Kt().memoizedState;return[e,t]},useMutableSource:Bb,useSyncExternalStore:Zb,useId:ok,unstable_isNewReconciler:!1},_I={readContext:Xt,useCallback:tk,useContext:Xt,useEffect:uf,useImperativeHandle:ek,useInsertionEffect:Yb,useLayoutEffect:qb,useMemo:nk,useReducer:Nd,useRef:Kb,useState:function(){return Nd(ba)},useDebugValue:df,useDeferredValue:function(e){var t=Kt();return Ke===null?t.memoizedState=e:rk(t,Ke.memoizedState,e)},useTransition:function(){var e=Nd(ba)[0],t=Kt().memoizedState;return[e,t]},useMutableSource:Bb,useSyncExternalStore:Zb,useId:ok,unstable_isNewReconciler:!1};function an(e,t){if(e&&e.defaultProps){t=De({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function yp(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:De({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var js={isMounted:function(e){return(e=e._reactInternals)?Kr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=yt(),n=gr(e),i=Zn(o,n);i.payload=t,r!=null&&(i.callback=r),t=fr(e,i,n),t!==null&&(un(t,e,n,o),Xl(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=yt(),n=gr(e),i=Zn(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=fr(e,i,n),t!==null&&(un(t,e,n,o),Xl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=yt(),o=gr(e),n=Zn(r,o);n.tag=2,t!=null&&(n.callback=t),t=fr(e,n,o),t!==null&&(un(t,e,o,r),Xl(t,e,o))}};function xS(e,t,r,o,n,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,i,a):t.prototype&&t.prototype.isPureReactComponent?!ma(r,o)||!ma(n,i):!0}function sk(e,t,r){var o=!1,n=hr,i=t.contextType;return typeof i=="object"&&i!==null?i=Xt(i):(n=It(t)?Zr:pt.current,o=t.contextTypes,i=(o=o!=null)?Do(e,n):hr),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=js,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function SS(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&js.enqueueReplaceState(t,t.state,null)}function hp(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},nf(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=Xt(i):(i=It(t)?Zr:pt.current,n.context=Do(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(yp(e,t,i,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&js.enqueueReplaceState(n,n.state,null),ys(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function Ao(e,t){try{var r="",o=t;do r+=Qw(o),o=o.return;while(o);var n=r}catch(i){n=`
|
|
5
|
+
`+n[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Id=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?aa(e):""}function fz(e){switch(e.tag){case 5:return aa(e.type);case 16:return aa("Lazy");case 13:return aa("Suspense");case 19:return aa("SuspenseList");case 0:case 2:case 15:return e=Ed(e.type,!1),e;case 11:return e=Ed(e.type.render,!1),e;case 1:return e=Ed(e.type,!0),e;default:return""}}function Qd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Eo:return"Fragment";case Io:return"Portal";case Kd:return"Profiler";case Zp:return"StrictMode";case Yd:return"Suspense";case qd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qb:return(e.displayName||"Context")+".Consumer";case Yb:return(e._context.displayName||"Context")+".Provider";case Vp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hp:return t=e.displayName||null,t!==null?t:Qd(e.type)||"Memo";case pr:t=e._payload,e=e._init;try{return Qd(e(t))}catch{}}return null}function mz(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qd(t);case 8:return t===Zp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gz(e){var t=eS(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ml(e){e._valueTracker||(e._valueTracker=gz(e))}function tS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=eS(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function vs(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}}function ep(e,t){var r=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Jx(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=zr(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nS(e,t){t=t.checked,t!=null&&Bp(e,"checked",t,!1)}function tp(e,t){nS(e,t);var r=zr(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?np(e,t.type,r):t.hasOwnProperty("defaultValue")&&np(e,t.type,zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gx(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function np(e,t,r){(t!=="number"||vs(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var la=Array.isArray;function Uo(e,t,r,o){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&o&&(e[r].defaultSelected=!0)}else{for(r=""+zr(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function rp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return Ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xx(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(C(92));if(la(r)){if(1<r.length)throw Error(C(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:zr(r)}}function rS(e,t){var r=zr(t.value),o=zr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function Kx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function oS(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function op(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?oS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bl,iS=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,n)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Bl=Bl||document.createElement("div"),Bl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ba(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ua={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vz=["Webkit","ms","Moz","O"];Object.keys(ua).forEach(function(e){vz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ua[t]=ua[e]})});function aS(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ua.hasOwnProperty(e)&&ua[e]?(""+t).trim():t+"px"}function lS(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=aS(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var yz=Ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ip(e,t){if(t){if(yz[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function ap(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 lp=null;function Jp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sp=null,Wo=null,Mo=null;function Yx(e){if(e=Fa(e)){if(typeof sp!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Zs(t),sp(e.stateNode,e.type,t))}}function sS(e){Wo?Mo?Mo.push(e):Mo=[e]:Wo=e}function cS(){if(Wo){var e=Wo,t=Mo;if(Mo=Wo=null,Yx(e),t)for(e=0;e<t.length;e++)Yx(t[e])}}function uS(e,t){return e(t)}function dS(){}var Rd=!1;function pS(e,t,r){if(Rd)return e(t,r);Rd=!0;try{return uS(e,t,r)}finally{Rd=!1,(Wo!==null||Mo!==null)&&(dS(),cS())}}function Sa(e,t){var r=e.stateNode;if(r===null)return null;var o=Zs(r);if(o===null)return null;r=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(C(231,t,typeof r));return r}var cp=!1;if(er)try{zo={},Object.defineProperty(zo,"passive",{get:function(){cp=!0}}),window.addEventListener("test",zo,zo),window.removeEventListener("test",zo,zo)}catch{cp=!1}var zo;function hz(e,t,r,o,n,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var da=!1,ys=null,hs=!1,up=null,xz={onError:function(e){da=!0,ys=e}};function bz(e,t,r,o,n,i,a,l,s){da=!1,ys=null,hz.apply(xz,arguments)}function Sz(e,t,r,o,n,i,a,l,s){if(bz.apply(this,arguments),da){if(da){var c=ys;da=!1,ys=null}else throw Error(C(198));hs||(hs=!0,up=c)}}function so(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function fS(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 qx(e){if(so(e)!==e)throw Error(C(188))}function kz(e){var t=e.alternate;if(!t){if(t=so(e),t===null)throw Error(C(188));return t!==e?null:e}for(var r=e,o=t;;){var n=r.return;if(n===null)break;var i=n.alternate;if(i===null){if(o=n.return,o!==null){r=o;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===r)return qx(n),e;if(i===o)return qx(n),t;i=i.sibling}throw Error(C(188))}if(r.return!==o.return)r=n,o=i;else{for(var a=!1,l=n.child;l;){if(l===r){a=!0,r=n,o=i;break}if(l===o){a=!0,o=n,r=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===r){a=!0,r=i,o=n;break}if(l===o){a=!0,o=i,r=n;break}l=l.sibling}if(!a)throw Error(C(189))}}if(r.alternate!==o)throw Error(C(190))}if(r.tag!==3)throw Error(C(188));return r.stateNode.current===r?e:t}function mS(e){return e=kz(e),e!==null?gS(e):null}function gS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gS(e);if(t!==null)return t;e=e.sibling}return null}var vS=Mt.unstable_scheduleCallback,Qx=Mt.unstable_cancelCallback,_z=Mt.unstable_shouldYield,$z=Mt.unstable_requestPaint,He=Mt.unstable_now,wz=Mt.unstable_getCurrentPriorityLevel,Gp=Mt.unstable_ImmediatePriority,yS=Mt.unstable_UserBlockingPriority,xs=Mt.unstable_NormalPriority,zz=Mt.unstable_LowPriority,hS=Mt.unstable_IdlePriority,Us=null,Nn=null;function Pz(e){if(Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(Us,e,void 0,(e.current.flags&128)===128)}catch{}}var hn=Math.clz32?Math.clz32:Rz,Iz=Math.log,Ez=Math.LN2;function Rz(e){return e>>>=0,e===0?32:31-(Iz(e)/Ez|0)|0}var Zl=64,Vl=4194304;function sa(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bs(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,n=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~n;l!==0?o=sa(l):(i&=a,i!==0&&(o=sa(i)))}else a=r&~n,a!==0?o=sa(a):i!==0&&(o=sa(i));if(o===0)return 0;if(t!==0&&t!==o&&(t&n)===0&&(n=o&-o,i=t&-t,n>=i||n===16&&(i&4194240)!==0))return t;if((o&4)!==0&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-hn(t),n=1<<r,o|=e[r],t&=~n;return o}function Cz(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Tz(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-hn(i),l=1<<a,s=n[a];s===-1?((l&r)===0||(l&o)!==0)&&(n[a]=Cz(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function dp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xS(){var e=Zl;return Zl<<=1,(Zl&4194240)===0&&(Zl=64),e}function Cd(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Na(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-hn(t),e[t]=r}function jz(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-hn(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function Xp(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-hn(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var Se=0;function bS(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var SS,Kp,kS,_S,$S,pp=!1,Hl=[],hr=null,xr=null,br=null,ka=new Map,_a=new Map,mr=[],Oz="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 submit".split(" ");function eb(e,t){switch(e){case"focusin":case"focusout":hr=null;break;case"dragenter":case"dragleave":xr=null;break;case"mouseover":case"mouseout":br=null;break;case"pointerover":case"pointerout":ka.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_a.delete(t.pointerId)}}function Qi(e,t,r,o,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:i,targetContainers:[n]},t!==null&&(t=Fa(t),t!==null&&Kp(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Dz(e,t,r,o,n){switch(t){case"focusin":return hr=Qi(hr,e,t,r,o,n),!0;case"dragenter":return xr=Qi(xr,e,t,r,o,n),!0;case"mouseover":return br=Qi(br,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return ka.set(i,Qi(ka.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,_a.set(i,Qi(_a.get(i)||null,e,t,r,o,n)),!0}return!1}function wS(e){var t=Yr(e.target);if(t!==null){var r=so(t);if(r!==null){if(t=r.tag,t===13){if(t=fS(r),t!==null){e.blockedOn=t,$S(e.priority,function(){kS(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function as(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=fp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);lp=o,r.target.dispatchEvent(o),lp=null}else return t=Fa(r),t!==null&&Kp(t),e.blockedOn=r,!1;t.shift()}return!0}function tb(e,t,r){as(e)&&r.delete(t)}function Nz(){pp=!1,hr!==null&&as(hr)&&(hr=null),xr!==null&&as(xr)&&(xr=null),br!==null&&as(br)&&(br=null),ka.forEach(tb),_a.forEach(tb)}function ea(e,t){e.blockedOn===t&&(e.blockedOn=null,pp||(pp=!0,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,Nz)))}function $a(e){function t(n){return ea(n,e)}if(0<Hl.length){ea(Hl[0],e);for(var r=1;r<Hl.length;r++){var o=Hl[r];o.blockedOn===e&&(o.blockedOn=null)}}for(hr!==null&&ea(hr,e),xr!==null&&ea(xr,e),br!==null&&ea(br,e),ka.forEach(t),_a.forEach(t),r=0;r<mr.length;r++)o=mr[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<mr.length&&(r=mr[0],r.blockedOn===null);)wS(r),r.blockedOn===null&&mr.shift()}var Bo=or.ReactCurrentBatchConfig,Ss=!0;function Lz(e,t,r,o){var n=Se,i=Bo.transition;Bo.transition=null;try{Se=1,Yp(e,t,r,o)}finally{Se=n,Bo.transition=i}}function Fz(e,t,r,o){var n=Se,i=Bo.transition;Bo.transition=null;try{Se=4,Yp(e,t,r,o)}finally{Se=n,Bo.transition=i}}function Yp(e,t,r,o){if(Ss){var n=fp(e,t,r,o);if(n===null)Fd(e,t,o,ks,r),eb(e,o);else if(Dz(n,e,t,r,o))o.stopPropagation();else if(eb(e,o),t&4&&-1<Oz.indexOf(e)){for(;n!==null;){var i=Fa(n);if(i!==null&&SS(i),i=fp(e,t,r,o),i===null&&Fd(e,t,o,ks,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else Fd(e,t,o,null,r)}}var ks=null;function fp(e,t,r,o){if(ks=null,e=Jp(o),e=Yr(e),e!==null)if(t=so(e),t===null)e=null;else if(r=t.tag,r===13){if(e=fS(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ks=e,null}function zS(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(wz()){case Gp:return 1;case yS:return 4;case xs:case zz:return 16;case hS:return 536870912;default:return 16}default:return 16}}var vr=null,qp=null,ls=null;function PS(){if(ls)return ls;var e,t=qp,r=t.length,o,n="value"in vr?vr.value:vr.textContent,i=n.length;for(e=0;e<r&&t[e]===n[e];e++);var a=r-e;for(o=1;o<=a&&t[r-o]===n[i-o];o++);return ls=n.slice(e,1<o?1-o:void 0)}function ss(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 Jl(){return!0}function nb(){return!1}function Bt(e){function t(r,o,n,i,a){this._reactName=r,this._targetInst=n,this.type=o,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Jl:nb,this.isPropagationStopped=nb,this}return Ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Jl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Jl)},persist:function(){},isPersistent:Jl}),t}var Qo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qp=Bt(Qo),La=Ae({},Qo,{view:0,detail:0}),Az=Bt(La),Td,jd,ta,Ws=Ae({},La,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ef,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!==ta&&(ta&&e.type==="mousemove"?(Td=e.screenX-ta.screenX,jd=e.screenY-ta.screenY):jd=Td=0,ta=e),Td)},movementY:function(e){return"movementY"in e?e.movementY:jd}}),rb=Bt(Ws),Uz=Ae({},Ws,{dataTransfer:0}),Wz=Bt(Uz),Mz=Ae({},La,{relatedTarget:0}),Od=Bt(Mz),Bz=Ae({},Qo,{animationName:0,elapsedTime:0,pseudoElement:0}),Zz=Bt(Bz),Vz=Ae({},Qo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hz=Bt(Vz),Jz=Ae({},Qo,{data:0}),ob=Bt(Jz),Gz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xz={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"},Kz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kz[e])?!!t[e]:!1}function ef(){return Yz}var qz=Ae({},La,{key:function(e){if(e.key){var t=Gz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ef,charCode:function(e){return e.type==="keypress"?ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qz=Bt(qz),eP=Ae({},Ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ib=Bt(eP),tP=Ae({},La,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ef}),nP=Bt(tP),rP=Ae({},Qo,{propertyName:0,elapsedTime:0,pseudoElement:0}),oP=Bt(rP),iP=Ae({},Ws,{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}),aP=Bt(iP),lP=[9,13,27,32],tf=er&&"CompositionEvent"in window,pa=null;er&&"documentMode"in document&&(pa=document.documentMode);var sP=er&&"TextEvent"in window&&!pa,IS=er&&(!tf||pa&&8<pa&&11>=pa),ab=" ",lb=!1;function ES(e,t){switch(e){case"keyup":return lP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ro=!1;function cP(e,t){switch(e){case"compositionend":return RS(t);case"keypress":return t.which!==32?null:(lb=!0,ab);case"textInput":return e=t.data,e===ab&&lb?null:e;default:return null}}function uP(e,t){if(Ro)return e==="compositionend"||!tf&&ES(e,t)?(e=PS(),ls=qp=vr=null,Ro=!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 IS&&t.locale!=="ko"?null:t.data;default:return null}}var dP={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 sb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dP[e.type]:t==="textarea"}function CS(e,t,r,o){sS(o),t=_s(t,"onChange"),0<t.length&&(r=new Qp("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var fa=null,wa=null;function pP(e){MS(e,0)}function Ms(e){var t=jo(e);if(tS(t))return e}function fP(e,t){if(e==="change")return t}var TS=!1;er&&(er?(Xl="oninput"in document,Xl||(Dd=document.createElement("div"),Dd.setAttribute("oninput","return;"),Xl=typeof Dd.oninput=="function"),Gl=Xl):Gl=!1,TS=Gl&&(!document.documentMode||9<document.documentMode));var Gl,Xl,Dd;function cb(){fa&&(fa.detachEvent("onpropertychange",jS),wa=fa=null)}function jS(e){if(e.propertyName==="value"&&Ms(wa)){var t=[];CS(t,wa,e,Jp(e)),pS(pP,t)}}function mP(e,t,r){e==="focusin"?(cb(),fa=t,wa=r,fa.attachEvent("onpropertychange",jS)):e==="focusout"&&cb()}function gP(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ms(wa)}function vP(e,t){if(e==="click")return Ms(t)}function yP(e,t){if(e==="input"||e==="change")return Ms(t)}function hP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bn=typeof Object.is=="function"?Object.is:hP;function za(e,t){if(bn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var n=r[o];if(!Xd.call(t,n)||!bn(e[n],t[n]))return!1}return!0}function ub(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function db(e,t){var r=ub(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ub(r)}}function OS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?OS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function DS(){for(var e=window,t=vs();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=vs(e.document)}return t}function nf(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")}function xP(e){var t=DS(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&OS(r.ownerDocument.documentElement,r)){if(o!==null&&nf(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!e.extend&&i>o&&(n=o,o=i,i=n),n=db(r,i);var a=db(r,o);n&&a&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var bP=er&&"documentMode"in document&&11>=document.documentMode,Co=null,mp=null,ma=null,gp=!1;function pb(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;gp||Co==null||Co!==vs(o)||(o=Co,"selectionStart"in o&&nf(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ma&&za(ma,o)||(ma=o,o=_s(mp,"onSelect"),0<o.length&&(t=new Qp("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Co)))}function Kl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var To={animationend:Kl("Animation","AnimationEnd"),animationiteration:Kl("Animation","AnimationIteration"),animationstart:Kl("Animation","AnimationStart"),transitionend:Kl("Transition","TransitionEnd")},Nd={},NS={};er&&(NS=document.createElement("div").style,"AnimationEvent"in window||(delete To.animationend.animation,delete To.animationiteration.animation,delete To.animationstart.animation),"TransitionEvent"in window||delete To.transitionend.transition);function Bs(e){if(Nd[e])return Nd[e];if(!To[e])return e;var t=To[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in NS)return Nd[e]=t[r];return e}var LS=Bs("animationend"),FS=Bs("animationiteration"),AS=Bs("animationstart"),US=Bs("transitionend"),WS=new Map,fb="abort auxClick 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(" ");function Ir(e,t){WS.set(e,t),lo(t,[e])}for(Yl=0;Yl<fb.length;Yl++)ql=fb[Yl],mb=ql.toLowerCase(),gb=ql[0].toUpperCase()+ql.slice(1),Ir(mb,"on"+gb);var ql,mb,gb,Yl;Ir(LS,"onAnimationEnd");Ir(FS,"onAnimationIteration");Ir(AS,"onAnimationStart");Ir("dblclick","onDoubleClick");Ir("focusin","onFocus");Ir("focusout","onBlur");Ir(US,"onTransitionEnd");Ho("onMouseEnter",["mouseout","mouseover"]);Ho("onMouseLeave",["mouseout","mouseover"]);Ho("onPointerEnter",["pointerout","pointerover"]);Ho("onPointerLeave",["pointerout","pointerover"]);lo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));lo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));lo("onBeforeInput",["compositionend","keypress","textInput","paste"]);lo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));lo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));lo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ca="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(" "),SP=new Set("cancel close invalid load scroll toggle".split(" ").concat(ca));function vb(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,Sz(o,t,void 0,e),e.currentTarget=null}function MS(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],n=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var l=o[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&n.isPropagationStopped())break e;vb(n,l,c),i=s}else for(a=0;a<o.length;a++){if(l=o[a],s=l.instance,c=l.currentTarget,l=l.listener,s!==i&&n.isPropagationStopped())break e;vb(n,l,c),i=s}}}if(hs)throw e=up,hs=!1,up=null,e}function je(e,t){var r=t[bp];r===void 0&&(r=t[bp]=new Set);var o=e+"__bubble";r.has(o)||(BS(t,e,2,!1),r.add(o))}function Ld(e,t,r){var o=0;t&&(o|=4),BS(r,e,o,t)}var Ql="_reactListening"+Math.random().toString(36).slice(2);function Pa(e){if(!e[Ql]){e[Ql]=!0,Kb.forEach(function(r){r!=="selectionchange"&&(SP.has(r)||Ld(r,!1,e),Ld(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ql]||(t[Ql]=!0,Ld("selectionchange",!1,t))}}function BS(e,t,r,o){switch(zS(t)){case 1:var n=Lz;break;case 4:n=Fz;break;default:n=Yp}r=n.bind(null,t,r,e),n=void 0,!cp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function Fd(e,t,r,o,n){var i=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var a=o.tag;if(a===3||a===4){var l=o.stateNode.containerInfo;if(l===n||l.nodeType===8&&l.parentNode===n)break;if(a===4)for(a=o.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===n||s.nodeType===8&&s.parentNode===n))return;a=a.return}for(;l!==null;){if(a=Yr(l),a===null)return;if(s=a.tag,s===5||s===6){o=i=a;continue e}l=l.parentNode}}o=o.return}pS(function(){var c=i,d=Jp(r),p=[];e:{var f=WS.get(e);if(f!==void 0){var g=Qp,x=e;switch(e){case"keypress":if(ss(r)===0)break e;case"keydown":case"keyup":g=Qz;break;case"focusin":x="focus",g=Od;break;case"focusout":x="blur",g=Od;break;case"beforeblur":case"afterblur":g=Od;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=rb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Wz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=nP;break;case LS:case FS:case AS:g=Zz;break;case US:g=oP;break;case"scroll":g=Az;break;case"wheel":g=aP;break;case"copy":case"cut":case"paste":g=Hz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=ib}var h=(t&4)!==0,_=!h&&e==="scroll",v=h?f!==null?f+"Capture":null:f;h=[];for(var m=c,y;m!==null;){y=m;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,v!==null&&(S=Sa(m,v),S!=null&&h.push(Ia(m,S,y)))),_)break;m=m.return}0<h.length&&(f=new g(f,x,null,r,d),p.push({event:f,listeners:h}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&r!==lp&&(x=r.relatedTarget||r.fromElement)&&(Yr(x)||x[tr]))break e;if((g||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,g?(x=r.relatedTarget||r.toElement,g=c,x=x?Yr(x):null,x!==null&&(_=so(x),x!==_||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=c),g!==x)){if(h=rb,S="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(h=ib,S="onPointerLeave",v="onPointerEnter",m="pointer"),_=g==null?f:jo(g),y=x==null?f:jo(x),f=new h(S,m+"leave",g,r,d),f.target=_,f.relatedTarget=y,S=null,Yr(d)===c&&(h=new h(v,m+"enter",x,r,d),h.target=y,h.relatedTarget=_,S=h),_=S,g&&x)t:{for(h=g,v=x,m=0,y=h;y;y=Po(y))m++;for(y=0,S=v;S;S=Po(S))y++;for(;0<m-y;)h=Po(h),m--;for(;0<y-m;)v=Po(v),y--;for(;m--;){if(h===v||v!==null&&h===v.alternate)break t;h=Po(h),v=Po(v)}h=null}else h=null;g!==null&&yb(p,f,g,h,!1),x!==null&&_!==null&&yb(p,_,x,h,!0)}}e:{if(f=c?jo(c):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var P=fP;else if(sb(f))if(TS)P=yP;else{P=gP;var j=mP}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(P=vP);if(P&&(P=P(e,c))){CS(p,P,r,d);break e}j&&j(e,f,c),e==="focusout"&&(j=f._wrapperState)&&j.controlled&&f.type==="number"&&np(f,"number",f.value)}switch(j=c?jo(c):window,e){case"focusin":(sb(j)||j.contentEditable==="true")&&(Co=j,mp=c,ma=null);break;case"focusout":ma=mp=Co=null;break;case"mousedown":gp=!0;break;case"contextmenu":case"mouseup":case"dragend":gp=!1,pb(p,r,d);break;case"selectionchange":if(bP)break;case"keydown":case"keyup":pb(p,r,d)}var R;if(tf)e:{switch(e){case"compositionstart":var B="onCompositionStart";break e;case"compositionend":B="onCompositionEnd";break e;case"compositionupdate":B="onCompositionUpdate";break e}B=void 0}else Ro?ES(e,r)&&(B="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(B="onCompositionStart");B&&(IS&&r.locale!=="ko"&&(Ro||B!=="onCompositionStart"?B==="onCompositionEnd"&&Ro&&(R=PS()):(vr=d,qp="value"in vr?vr.value:vr.textContent,Ro=!0)),j=_s(c,B),0<j.length&&(B=new ob(B,e,null,r,d),p.push({event:B,listeners:j}),R?B.data=R:(R=RS(r),R!==null&&(B.data=R)))),(R=sP?cP(e,r):uP(e,r))&&(c=_s(c,"onBeforeInput"),0<c.length&&(d=new ob("onBeforeInput","beforeinput",null,r,d),p.push({event:d,listeners:c}),d.data=R))}MS(p,t)})}function Ia(e,t,r){return{instance:e,listener:t,currentTarget:r}}function _s(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n.tag===5&&i!==null&&(n=i,i=Sa(e,r),i!=null&&o.unshift(Ia(e,i,n)),i=Sa(e,t),i!=null&&o.push(Ia(e,i,n))),e=e.return}return o}function Po(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yb(e,t,r,o,n){for(var i=t._reactName,a=[];r!==null&&r!==o;){var l=r,s=l.alternate,c=l.stateNode;if(s!==null&&s===o)break;l.tag===5&&c!==null&&(l=c,n?(s=Sa(r,i),s!=null&&a.unshift(Ia(r,s,l))):n||(s=Sa(r,i),s!=null&&a.push(Ia(r,s,l)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var kP=/\r\n?/g,_P=/\u0000|\uFFFD/g;function hb(e){return(typeof e=="string"?e:""+e).replace(kP,`
|
|
6
|
+
`).replace(_P,"")}function es(e,t,r){if(t=hb(t),hb(e)!==t&&r)throw Error(C(425))}function $s(){}var vp=null,yp=null;function hp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xp=typeof setTimeout=="function"?setTimeout:void 0,$P=typeof clearTimeout=="function"?clearTimeout:void 0,xb=typeof Promise=="function"?Promise:void 0,wP=typeof queueMicrotask=="function"?queueMicrotask:typeof xb<"u"?function(e){return xb.resolve(null).then(e).catch(zP)}:xp;function zP(e){setTimeout(function(){throw e})}function Ad(e,t){var r=t,o=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(o===0){e.removeChild(n),$a(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);$a(t)}function Sr(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==="$?")break;if(t==="/$")return null}}return e}function bb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var ei=Math.random().toString(36).slice(2),Dn="__reactFiber$"+ei,Ea="__reactProps$"+ei,tr="__reactContainer$"+ei,bp="__reactEvents$"+ei,PP="__reactListeners$"+ei,IP="__reactHandles$"+ei;function Yr(e){var t=e[Dn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[tr]||r[Dn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=bb(e);e!==null;){if(r=e[Dn])return r;e=bb(e)}return t}e=r,r=e.parentNode}return null}function Fa(e){return e=e[Dn]||e[tr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function jo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Zs(e){return e[Ea]||null}var Sp=[],Oo=-1;function Er(e){return{current:e}}function Oe(e){0>Oo||(e.current=Sp[Oo],Sp[Oo]=null,Oo--)}function Ce(e,t){Oo++,Sp[Oo]=e.current,e.current=t}var Pr={},vt=Er(Pr),Tt=Er(!1),no=Pr;function Jo(e,t){var r=e.type.contextTypes;if(!r)return Pr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function jt(e){return e=e.childContextTypes,e!=null}function ws(){Oe(Tt),Oe(vt)}function Sb(e,t,r){if(vt.current!==Pr)throw Error(C(168));Ce(vt,t),Ce(Tt,r)}function ZS(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in t))throw Error(C(108,mz(e)||"Unknown",n));return Ae({},r,o)}function zs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pr,no=vt.current,Ce(vt,e),Ce(Tt,Tt.current),!0}function kb(e,t,r){var o=e.stateNode;if(!o)throw Error(C(169));r?(e=ZS(e,t,no),o.__reactInternalMemoizedMergedChildContext=e,Oe(Tt),Oe(vt),Ce(vt,e)):Oe(Tt),Ce(Tt,r)}var Kn=null,Vs=!1,Ud=!1;function VS(e){Kn===null?Kn=[e]:Kn.push(e)}function EP(e){Vs=!0,VS(e)}function Rr(){if(!Ud&&Kn!==null){Ud=!0;var e=0,t=Se;try{var r=Kn;for(Se=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}Kn=null,Vs=!1}catch(n){throw Kn!==null&&(Kn=Kn.slice(e+1)),vS(Gp,Rr),n}finally{Se=t,Ud=!1}}return null}var Do=[],No=0,Ps=null,Is=0,Qt=[],en=0,ro=null,Yn=1,qn="";function Xr(e,t){Do[No++]=Is,Do[No++]=Ps,Ps=e,Is=t}function HS(e,t,r){Qt[en++]=Yn,Qt[en++]=qn,Qt[en++]=ro,ro=e;var o=Yn;e=qn;var n=32-hn(o)-1;o&=~(1<<n),r+=1;var i=32-hn(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,Yn=1<<32-hn(t)+n|r<<n|o,qn=i+e}else Yn=1<<i|r<<n|o,qn=e}function rf(e){e.return!==null&&(Xr(e,1),HS(e,1,0))}function of(e){for(;e===Ps;)Ps=Do[--No],Do[No]=null,Is=Do[--No],Do[No]=null;for(;e===ro;)ro=Qt[--en],Qt[en]=null,qn=Qt[--en],Qt[en]=null,Yn=Qt[--en],Qt[en]=null}var Wt=null,Ut=null,De=!1,yn=null;function JS(e,t){var r=tn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function _b(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Wt=e,Ut=Sr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Wt=e,Ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=ro!==null?{id:Yn,overflow:qn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=tn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Wt=e,Ut=null,!0):!1;default:return!1}}function kp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _p(e){if(De){var t=Ut;if(t){var r=t;if(!_b(e,t)){if(kp(e))throw Error(C(418));t=Sr(r.nextSibling);var o=Wt;t&&_b(e,t)?JS(o,r):(e.flags=e.flags&-4097|2,De=!1,Wt=e)}}else{if(kp(e))throw Error(C(418));e.flags=e.flags&-4097|2,De=!1,Wt=e}}}function $b(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Wt=e}function ts(e){if(e!==Wt)return!1;if(!De)return $b(e),De=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hp(e.type,e.memoizedProps)),t&&(t=Ut)){if(kp(e))throw GS(),Error(C(418));for(;t;)JS(e,t),t=Sr(t.nextSibling)}if($b(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ut=Sr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ut=null}}else Ut=Wt?Sr(e.stateNode.nextSibling):null;return!0}function GS(){for(var e=Ut;e;)e=Sr(e.nextSibling)}function Go(){Ut=Wt=null,De=!1}function af(e){yn===null?yn=[e]:yn.push(e)}var RP=or.ReactCurrentBatchConfig;function na(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(C(309));var o=r.stateNode}if(!o)throw Error(C(147,e));var n=o,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=n.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(C(284));if(!r._owner)throw Error(C(290,e))}return e}function ns(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wb(e){var t=e._init;return t(e._payload)}function XS(e){function t(v,m){if(e){var y=v.deletions;y===null?(v.deletions=[m],v.flags|=16):y.push(m)}}function r(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function o(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function n(v,m){return v=wr(v,m),v.index=0,v.sibling=null,v}function i(v,m,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<m?(v.flags|=2,m):y):(v.flags|=2,m)):(v.flags|=1048576,m)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,m,y,S){return m===null||m.tag!==6?(m=Jd(y,v.mode,S),m.return=v,m):(m=n(m,y),m.return=v,m)}function s(v,m,y,S){var P=y.type;return P===Eo?d(v,m,y.props.children,S,y.key):m!==null&&(m.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===pr&&wb(P)===m.type)?(S=n(m,y.props),S.ref=na(v,m,y),S.return=v,S):(S=gs(y.type,y.key,y.props,null,v.mode,S),S.ref=na(v,m,y),S.return=v,S)}function c(v,m,y,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=Gd(y,v.mode,S),m.return=v,m):(m=n(m,y.children||[]),m.return=v,m)}function d(v,m,y,S,P){return m===null||m.tag!==7?(m=to(y,v.mode,S,P),m.return=v,m):(m=n(m,y),m.return=v,m)}function p(v,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Jd(""+m,v.mode,y),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Wl:return y=gs(m.type,m.key,m.props,null,v.mode,y),y.ref=na(v,null,m),y.return=v,y;case Io:return m=Gd(m,v.mode,y),m.return=v,m;case pr:var S=m._init;return p(v,S(m._payload),y)}if(la(m)||qi(m))return m=to(m,v.mode,y,null),m.return=v,m;ns(v,m)}return null}function f(v,m,y,S){var P=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return P!==null?null:l(v,m,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Wl:return y.key===P?s(v,m,y,S):null;case Io:return y.key===P?c(v,m,y,S):null;case pr:return P=y._init,f(v,m,P(y._payload),S)}if(la(y)||qi(y))return P!==null?null:d(v,m,y,S,null);ns(v,y)}return null}function g(v,m,y,S,P){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(y)||null,l(m,v,""+S,P);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Wl:return v=v.get(S.key===null?y:S.key)||null,s(m,v,S,P);case Io:return v=v.get(S.key===null?y:S.key)||null,c(m,v,S,P);case pr:var j=S._init;return g(v,m,y,j(S._payload),P)}if(la(S)||qi(S))return v=v.get(y)||null,d(m,v,S,P,null);ns(m,S)}return null}function x(v,m,y,S){for(var P=null,j=null,R=m,B=m=0,K=null;R!==null&&B<y.length;B++){R.index>B?(K=R,R=null):K=R.sibling;var M=f(v,R,y[B],S);if(M===null){R===null&&(R=K);break}e&&R&&M.alternate===null&&t(v,R),m=i(M,m,B),j===null?P=M:j.sibling=M,j=M,R=K}if(B===y.length)return r(v,R),De&&Xr(v,B),P;if(R===null){for(;B<y.length;B++)R=p(v,y[B],S),R!==null&&(m=i(R,m,B),j===null?P=R:j.sibling=R,j=R);return De&&Xr(v,B),P}for(R=o(v,R);B<y.length;B++)K=g(R,v,B,y[B],S),K!==null&&(e&&K.alternate!==null&&R.delete(K.key===null?B:K.key),m=i(K,m,B),j===null?P=K:j.sibling=K,j=K);return e&&R.forEach(function(Ve){return t(v,Ve)}),De&&Xr(v,B),P}function h(v,m,y,S){var P=qi(y);if(typeof P!="function")throw Error(C(150));if(y=P.call(y),y==null)throw Error(C(151));for(var j=P=null,R=m,B=m=0,K=null,M=y.next();R!==null&&!M.done;B++,M=y.next()){R.index>B?(K=R,R=null):K=R.sibling;var Ve=f(v,R,M.value,S);if(Ve===null){R===null&&(R=K);break}e&&R&&Ve.alternate===null&&t(v,R),m=i(Ve,m,B),j===null?P=Ve:j.sibling=Ve,j=Ve,R=K}if(M.done)return r(v,R),De&&Xr(v,B),P;if(R===null){for(;!M.done;B++,M=y.next())M=p(v,M.value,S),M!==null&&(m=i(M,m,B),j===null?P=M:j.sibling=M,j=M);return De&&Xr(v,B),P}for(R=o(v,R);!M.done;B++,M=y.next())M=g(R,v,B,M.value,S),M!==null&&(e&&M.alternate!==null&&R.delete(M.key===null?B:M.key),m=i(M,m,B),j===null?P=M:j.sibling=M,j=M);return e&&R.forEach(function(re){return t(v,re)}),De&&Xr(v,B),P}function _(v,m,y,S){if(typeof y=="object"&&y!==null&&y.type===Eo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Wl:e:{for(var P=y.key,j=m;j!==null;){if(j.key===P){if(P=y.type,P===Eo){if(j.tag===7){r(v,j.sibling),m=n(j,y.props.children),m.return=v,v=m;break e}}else if(j.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===pr&&wb(P)===j.type){r(v,j.sibling),m=n(j,y.props),m.ref=na(v,j,y),m.return=v,v=m;break e}r(v,j);break}else t(v,j);j=j.sibling}y.type===Eo?(m=to(y.props.children,v.mode,S,y.key),m.return=v,v=m):(S=gs(y.type,y.key,y.props,null,v.mode,S),S.ref=na(v,m,y),S.return=v,v=S)}return a(v);case Io:e:{for(j=y.key;m!==null;){if(m.key===j)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(v,m.sibling),m=n(m,y.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=Gd(y,v.mode,S),m.return=v,v=m}return a(v);case pr:return j=y._init,_(v,m,j(y._payload),S)}if(la(y))return x(v,m,y,S);if(qi(y))return h(v,m,y,S);ns(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(r(v,m.sibling),m=n(m,y),m.return=v,v=m):(r(v,m),m=Jd(y,v.mode,S),m.return=v,v=m),a(v)):r(v,m)}return _}var Xo=XS(!0),KS=XS(!1),Es=Er(null),Rs=null,Lo=null,lf=null;function sf(){lf=Lo=Rs=null}function cf(e){var t=Es.current;Oe(Es),e._currentValue=t}function $p(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function Zo(e,t){Rs=e,lf=Lo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ct=!0),e.firstContext=null)}function rn(e){var t=e._currentValue;if(lf!==e)if(e={context:e,memoizedValue:t,next:null},Lo===null){if(Rs===null)throw Error(C(308));Lo=e,Rs.dependencies={lanes:0,firstContext:e}}else Lo=Lo.next=e;return t}var qr=null;function uf(e){qr===null?qr=[e]:qr.push(e)}function YS(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,uf(t)):(r.next=n.next,n.next=r),t.interleaved=r,nr(e,o)}function nr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var fr=!1;function df(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qS(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kr(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ve&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,nr(e,r)}return n=o.interleaved,n===null?(t.next=t,uf(o)):(t.next=n.next,n.next=t),o.interleaved=t,nr(e,r)}function cs(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Xp(e,r)}}function zb(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var n=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?n=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?n=i=t:i=i.next=t}else n=i=t;r={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Cs(e,t,r,o){var n=e.updateQueue;fr=!1;var i=n.firstBaseUpdate,a=n.lastBaseUpdate,l=n.shared.pending;if(l!==null){n.shared.pending=null;var s=l,c=s.next;s.next=null,a===null?i=c:a.next=c,a=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s))}if(i!==null){var p=n.baseState;a=0,d=c=s=null,l=i;do{var f=l.lane,g=l.eventTime;if((o&f)===f){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,h=l;switch(f=t,g=r,h.tag){case 1:if(x=h.payload,typeof x=="function"){p=x.call(g,p,f);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=h.payload,f=typeof x=="function"?x.call(g,p,f):x,f==null)break e;p=Ae({},p,f);break e;case 2:fr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=n.effects,f===null?n.effects=[l]:f.push(l))}else g={eventTime:g,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,s=p):d=d.next=g,a|=f;if(l=l.next,l===null){if(l=n.shared.pending,l===null)break;f=l,l=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(d===null&&(s=p),n.baseState=s,n.firstBaseUpdate=c,n.lastBaseUpdate=d,t=n.shared.interleaved,t!==null){n=t;do a|=n.lane,n=n.next;while(n!==t)}else i===null&&(n.shared.lanes=0);io|=a,e.lanes=a,e.memoizedState=p}}function Pb(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],n=o.callback;if(n!==null){if(o.callback=null,o=r,typeof n!="function")throw Error(C(191,n));n.call(o)}}}var Aa={},Ln=Er(Aa),Ra=Er(Aa),Ca=Er(Aa);function Qr(e){if(e===Aa)throw Error(C(174));return e}function pf(e,t){switch(Ce(Ca,t),Ce(Ra,e),Ce(Ln,Aa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:op(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=op(t,e)}Oe(Ln),Ce(Ln,t)}function Ko(){Oe(Ln),Oe(Ra),Oe(Ca)}function QS(e){Qr(Ca.current);var t=Qr(Ln.current),r=op(t,e.type);t!==r&&(Ce(Ra,e),Ce(Ln,r))}function ff(e){Ra.current===e&&(Oe(Ln),Oe(Ra))}var Le=Er(0);function Ts(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 Wd=[];function mf(){for(var e=0;e<Wd.length;e++)Wd[e]._workInProgressVersionPrimary=null;Wd.length=0}var us=or.ReactCurrentDispatcher,Md=or.ReactCurrentBatchConfig,oo=0,Fe=null,Qe=null,rt=null,js=!1,ga=!1,Ta=0,CP=0;function ft(){throw Error(C(321))}function gf(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!bn(e[r],t[r]))return!1;return!0}function vf(e,t,r,o,n,i){if(oo=i,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,us.current=e===null||e.memoizedState===null?DP:NP,e=r(o,n),ga){i=0;do{if(ga=!1,Ta=0,25<=i)throw Error(C(301));i+=1,rt=Qe=null,t.updateQueue=null,us.current=LP,e=r(o,n)}while(ga)}if(us.current=Os,t=Qe!==null&&Qe.next!==null,oo=0,rt=Qe=Fe=null,js=!1,t)throw Error(C(300));return e}function yf(){var e=Ta!==0;return Ta=0,e}function On(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?Fe.memoizedState=rt=e:rt=rt.next=e,rt}function on(){if(Qe===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=rt===null?Fe.memoizedState:rt.next;if(t!==null)rt=t,Qe=e;else{if(e===null)throw Error(C(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},rt===null?Fe.memoizedState=rt=e:rt=rt.next=e}return rt}function ja(e,t){return typeof t=="function"?t(e):t}function Bd(e){var t=on(),r=t.queue;if(r===null)throw Error(C(311));r.lastRenderedReducer=e;var o=Qe,n=o.baseQueue,i=r.pending;if(i!==null){if(n!==null){var a=n.next;n.next=i.next,i.next=a}o.baseQueue=n=i,r.pending=null}if(n!==null){i=n.next,o=o.baseState;var l=a=null,s=null,c=i;do{var d=c.lane;if((oo&d)===d)s!==null&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};s===null?(l=s=p,a=o):s=s.next=p,Fe.lanes|=d,io|=d}c=c.next}while(c!==null&&c!==i);s===null?a=o:s.next=l,bn(o,t.memoizedState)||(Ct=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=s,r.lastRenderedState=o}if(e=r.interleaved,e!==null){n=e;do i=n.lane,Fe.lanes|=i,io|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Zd(e){var t=on(),r=t.queue;if(r===null)throw Error(C(311));r.lastRenderedReducer=e;var o=r.dispatch,n=r.pending,i=t.memoizedState;if(n!==null){r.pending=null;var a=n=n.next;do i=e(i,a.action),a=a.next;while(a!==n);bn(i,t.memoizedState)||(Ct=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function ek(){}function tk(e,t){var r=Fe,o=on(),n=t(),i=!bn(o.memoizedState,n);if(i&&(o.memoizedState=n,Ct=!0),o=o.queue,hf(ok.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||rt!==null&&rt.memoizedState.tag&1){if(r.flags|=2048,Oa(9,rk.bind(null,r,o,n,t),void 0,null),ot===null)throw Error(C(349));(oo&30)!==0||nk(r,t,n)}return n}function nk(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function rk(e,t,r,o){t.value=r,t.getSnapshot=o,ik(t)&&ak(e)}function ok(e,t,r){return r(function(){ik(t)&&ak(e)})}function ik(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!bn(e,r)}catch{return!0}}function ak(e){var t=nr(e,1);t!==null&&xn(t,e,1,-1)}function Ib(e){var t=On();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:e},t.queue=e,e=e.dispatch=OP.bind(null,Fe,e),[t.memoizedState,e]}function Oa(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function lk(){return on().memoizedState}function ds(e,t,r,o){var n=On();Fe.flags|=e,n.memoizedState=Oa(1|t,r,void 0,o===void 0?null:o)}function Hs(e,t,r,o){var n=on();o=o===void 0?null:o;var i=void 0;if(Qe!==null){var a=Qe.memoizedState;if(i=a.destroy,o!==null&&gf(o,a.deps)){n.memoizedState=Oa(t,r,i,o);return}}Fe.flags|=e,n.memoizedState=Oa(1|t,r,i,o)}function Eb(e,t){return ds(8390656,8,e,t)}function hf(e,t){return Hs(2048,8,e,t)}function sk(e,t){return Hs(4,2,e,t)}function ck(e,t){return Hs(4,4,e,t)}function uk(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dk(e,t,r){return r=r!=null?r.concat([e]):null,Hs(4,4,uk.bind(null,t,e),r)}function xf(){}function pk(e,t){var r=on();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&gf(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function fk(e,t){var r=on();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&gf(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function mk(e,t,r){return(oo&21)===0?(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=r):(bn(r,t)||(r=xS(),Fe.lanes|=r,io|=r,e.baseState=!0),t)}function TP(e,t){var r=Se;Se=r!==0&&4>r?r:4,e(!0);var o=Md.transition;Md.transition={};try{e(!1),t()}finally{Se=r,Md.transition=o}}function gk(){return on().memoizedState}function jP(e,t,r){var o=$r(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},vk(e))yk(t,r);else if(r=YS(e,t,r,o),r!==null){var n=_t();xn(r,e,o,n),hk(r,t,o)}}function OP(e,t,r){var o=$r(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(vk(e))yk(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(n.hasEagerState=!0,n.eagerState=l,bn(l,a)){var s=t.interleaved;s===null?(n.next=n,uf(t)):(n.next=s.next,s.next=n),t.interleaved=n;return}}catch{}r=YS(e,t,n,o),r!==null&&(n=_t(),xn(r,e,o,n),hk(r,t,o))}}function vk(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function yk(e,t){ga=js=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function hk(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Xp(e,r)}}var Os={readContext:rn,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useInsertionEffect:ft,useLayoutEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useMutableSource:ft,useSyncExternalStore:ft,useId:ft,unstable_isNewReconciler:!1},DP={readContext:rn,useCallback:function(e,t){return On().memoizedState=[e,t===void 0?null:t],e},useContext:rn,useEffect:Eb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ds(4194308,4,uk.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ds(4194308,4,e,t)},useInsertionEffect:function(e,t){return ds(4,2,e,t)},useMemo:function(e,t){var r=On();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=On();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=jP.bind(null,Fe,e),[o.memoizedState,e]},useRef:function(e){var t=On();return e={current:e},t.memoizedState=e},useState:Ib,useDebugValue:xf,useDeferredValue:function(e){return On().memoizedState=e},useTransition:function(){var e=Ib(!1),t=e[0];return e=TP.bind(null,e[1]),On().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Fe,n=On();if(De){if(r===void 0)throw Error(C(407));r=r()}else{if(r=t(),ot===null)throw Error(C(349));(oo&30)!==0||nk(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,Eb(ok.bind(null,o,i,e),[e]),o.flags|=2048,Oa(9,rk.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=On(),t=ot.identifierPrefix;if(De){var r=qn,o=Yn;r=(o&~(1<<32-hn(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ta++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=CP++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},NP={readContext:rn,useCallback:pk,useContext:rn,useEffect:hf,useImperativeHandle:dk,useInsertionEffect:sk,useLayoutEffect:ck,useMemo:fk,useReducer:Bd,useRef:lk,useState:function(){return Bd(ja)},useDebugValue:xf,useDeferredValue:function(e){var t=on();return mk(t,Qe.memoizedState,e)},useTransition:function(){var e=Bd(ja)[0],t=on().memoizedState;return[e,t]},useMutableSource:ek,useSyncExternalStore:tk,useId:gk,unstable_isNewReconciler:!1},LP={readContext:rn,useCallback:pk,useContext:rn,useEffect:hf,useImperativeHandle:dk,useInsertionEffect:sk,useLayoutEffect:ck,useMemo:fk,useReducer:Zd,useRef:lk,useState:function(){return Zd(ja)},useDebugValue:xf,useDeferredValue:function(e){var t=on();return Qe===null?t.memoizedState=e:mk(t,Qe.memoizedState,e)},useTransition:function(){var e=Zd(ja)[0],t=on().memoizedState;return[e,t]},useMutableSource:ek,useSyncExternalStore:tk,useId:gk,unstable_isNewReconciler:!1};function gn(e,t){if(e&&e.defaultProps){t=Ae({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function wp(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:Ae({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Js={isMounted:function(e){return(e=e._reactInternals)?so(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=_t(),n=$r(e),i=Qn(o,n);i.payload=t,r!=null&&(i.callback=r),t=kr(e,i,n),t!==null&&(xn(t,e,n,o),cs(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=_t(),n=$r(e),i=Qn(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=kr(e,i,n),t!==null&&(xn(t,e,n,o),cs(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=_t(),o=$r(e),n=Qn(r,o);n.tag=2,t!=null&&(n.callback=t),t=kr(e,n,o),t!==null&&(xn(t,e,o,r),cs(t,e,o))}};function Rb(e,t,r,o,n,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,i,a):t.prototype&&t.prototype.isPureReactComponent?!za(r,o)||!za(n,i):!0}function xk(e,t,r){var o=!1,n=Pr,i=t.contextType;return typeof i=="object"&&i!==null?i=rn(i):(n=jt(t)?no:vt.current,o=t.contextTypes,i=(o=o!=null)?Jo(e,n):Pr),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Js,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function Cb(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&Js.enqueueReplaceState(t,t.state,null)}function zp(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},df(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=rn(i):(i=jt(t)?no:vt.current,n.context=Jo(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(wp(e,t,i,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&Js.enqueueReplaceState(n,n.state,null),Cs(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function Yo(e,t){try{var r="",o=t;do r+=fz(o),o=o.return;while(o);var n=r}catch(i){n=`
|
|
7
7
|
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}return{value:e,source:t,stack:n,digest:null}}function Ld(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function xp(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var $I=typeof WeakMap=="function"?WeakMap:Map;function ck(e,t,r){r=Zn(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){ks||(ks=!0,Ep=o),xp(e,t)},r}function uk(e,t,r){r=Zn(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var n=t.value;r.payload=function(){return o(n)},r.callback=function(){xp(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){xp(e,t),typeof o!="function"&&(mr===null?mr=new Set([this]):mr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function bS(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new $I;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(r)||(n.add(r),e=FI.bind(null,e,t,r),t.then(e,e))}function kS(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function _S(e,t,r,o,n){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Zn(-1,1),t.tag=2,fr(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var wI=Xn.ReactCurrentOwner,wt=!1;function vt(e,t,r,o){t.child=e===null?Ab(t,null,r,o):Lo(t,e.child,r,o)}function $S(e,t,r,o,n){r=r.render;var i=t.ref;return To(t,n),o=sf(e,t,r,o,i,n),r=cf(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Gn(e,t,n)):(Ce&&r&&Xp(t),t.flags|=1,vt(e,t,o,n),t.child)}function wS(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!xf(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,dk(e,t,i,o,n)):(e=ts(r.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&n)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:ma,r(a,o)&&e.ref===t.ref)return Gn(e,t,n)}return t.flags|=1,e=vr(i,o),e.ref=t.ref,e.return=t,t.child=e}function dk(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(ma(i,o)&&e.ref===t.ref)if(wt=!1,t.pendingProps=o=i,(e.lanes&n)!==0)(e.flags&131072)!==0&&(wt=!0);else return t.lanes=e.lanes,Gn(e,t,n)}return Sp(e,t,r,o,n)}function pk(e,t,r){var o=t.pendingProps,n=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ie(Io,Tt),Tt|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ie(Io,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,Ie(Io,Tt),Tt|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,Ie(Io,Tt),Tt|=o;return vt(e,t,n,r),t.child}function fk(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Sp(e,t,r,o,n){var i=It(r)?Zr:pt.current;return i=Do(t,i),To(t,n),r=sf(e,t,r,o,i,n),o=cf(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Gn(e,t,n)):(Ce&&o&&Xp(t),t.flags|=1,vt(e,t,r,n),t.child)}function zS(e,t,r,o,n){if(It(r)){var i=!0;ps(t)}else i=!1;if(To(t,n),t.stateNode===null)ql(e,t),sk(t,r,o),hp(t,r,o,n),o=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Xt(c):(c=It(r)?Zr:pt.current,c=Do(t,c));var d=r.getDerivedStateFromProps,p=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==o||s!==c)&&SS(t,a,o,c),or=!1;var f=t.memoizedState;a.state=f,ys(t,o,a,n),s=t.memoizedState,l!==o||f!==s||zt.current||or?(typeof d=="function"&&(yp(t,r,d,o),s=t.memoizedState),(l=or||xS(t,r,l,o,f,s,c))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=s),a.props=o,a.state=s,a.context=c,o=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,Wb(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:an(t.type,l),a.props=c,p=t.pendingProps,f=a.context,s=r.contextType,typeof s=="object"&&s!==null?s=Xt(s):(s=It(r)?Zr:pt.current,s=Do(t,s));var g=r.getDerivedStateFromProps;(d=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==p||f!==s)&&SS(t,a,o,s),or=!1,f=t.memoizedState,a.state=f,ys(t,o,a,n);var x=t.memoizedState;l!==p||f!==x||zt.current||or?(typeof g=="function"&&(yp(t,r,g,o),x=t.memoizedState),(c=or||xS(t,r,c,o,f,x,s)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,x,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,x,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=x),a.props=o,a.state=x,a.context=s,o=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return bp(e,t,r,o,i,n)}function bp(e,t,r,o,n,i){fk(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&dS(t,r,!1),Gn(e,t,i);o=t.stateNode,wI.current=t;var l=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=Lo(t,e.child,null,i),t.child=Lo(t,null,l,i)):vt(e,t,l,i),t.memoizedState=o.state,n&&dS(t,r,!0),t.child}function mk(e){var t=e.stateNode;t.pendingContext?uS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&uS(e,t.context,!1),rf(e,t.containerInfo)}function IS(e,t,r,o,n){return No(),Yp(n),t.flags|=256,vt(e,t,r,o),t.child}var kp={dehydrated:null,treeContext:null,retryLane:0};function _p(e){return{baseLanes:e,cachePool:null,transitions:null}}function gk(e,t,r){var o=t.pendingProps,n=je.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(n&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),Ie(je,n&1),e===null)return gp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=o.children,e=o.fallback,i?(o=t.mode,i=t.child,a={mode:"hidden",children:a},(o&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Ns(a,o,0,null),e=Br(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=_p(r),t.memoizedState=kp,e):pf(t,a));if(n=e.memoizedState,n!==null&&(l=n.dehydrated,l!==null))return zI(e,t,a,o,l,n,r);if(i){i=o.fallback,a=t.mode,n=e.child,l=n.sibling;var s={mode:"hidden",children:o.children};return(a&1)===0&&t.child!==n?(o=t.child,o.childLanes=0,o.pendingProps=s,t.deletions=null):(o=vr(n,s),o.subtreeFlags=n.subtreeFlags&14680064),l!==null?i=vr(l,i):(i=Br(i,a,r,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,a=e.child.memoizedState,a=a===null?_p(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=kp,o}return i=e.child,e=i.sibling,o=vr(i,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function pf(e,t){return t=Ns({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bl(e,t,r,o){return o!==null&&Yp(o),Lo(t,e.child,null,r),e=pf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zI(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=Ld(Error(R(422))),Bl(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=Ns({mode:"visible",children:o.children},n,0,null),i=Br(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,(t.mode&1)!==0&&Lo(t,e.child,null,a),t.child.memoizedState=_p(a),t.memoizedState=kp,i);if((t.mode&1)===0)return Bl(e,t,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var l=o.dgst;return o=l,i=Error(R(419)),o=Ld(i,o,void 0),Bl(e,t,a,o)}if(l=(a&e.childLanes)!==0,wt||l){if(o=tt,o!==null){switch(a&-a){case 4:n=2;break;case 16:n=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=(n&(o.suspendedLanes|a))!==0?0:n,n!==0&&n!==i.retryLane&&(i.retryLane=n,Jn(e,n),un(o,e,n,-1))}return hf(),o=Ld(Error(R(421))),Bl(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=AI.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,jt=pr(n.nextSibling),Ot=t,Ce=!0,sn=null,e!==null&&(Vt[Ht++]=Mn,Vt[Ht++]=Bn,Vt[Ht++]=Vr,Mn=e.id,Bn=e.overflow,Vr=t),t=pf(t,o.children),t.flags|=4096,t)}function PS(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),vp(e.return,t,r)}function Fd(e,t,r,o,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=n)}function vk(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(vt(e,t,o.children,r),o=je.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&PS(e,r,t);else if(e.tag===19)PS(e,r,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}o&=1}if(Ie(je,o),(t.mode&1)===0)t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&hs(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),Fd(t,!1,n,r,i);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&hs(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}Fd(t,!0,r,null,i);break;case"together":Fd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ql(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Jr|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,r=vr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=vr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function II(e,t,r){switch(t.tag){case 3:mk(t),No();break;case 5:Mb(t);break;case 1:It(t.type)&&ps(t);break;case 4:rf(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;Ie(gs,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Ie(je,je.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?gk(e,t,r):(Ie(je,je.current&1),e=Gn(e,t,r),e!==null?e.sibling:null);Ie(je,je.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return vk(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Ie(je,je.current),o)break;return null;case 22:case 23:return t.lanes=0,pk(e,t,r)}return Gn(e,t,r)}var yk,$p,hk,xk;yk=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};$p=function(){};hk=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,Wr(wn.current);var i=null;switch(r){case"input":n=Hd(e,n),o=Hd(e,o),i=[];break;case"select":n=De({},n,{value:void 0}),o=De({},o,{value:void 0}),i=[];break;case"textarea":n=Xd(e,n),o=Xd(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=us)}Yd(r,o);var a;r=null;for(c in n)if(!o.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var l=n[c];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(la.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var s=o[c];if(l=n?.[c],o.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(r||(r={}),r[a]=s[a])}else r||(i||(i=[]),i.push(c,r)),r=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(la.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&Ee("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};xk=function(e,t,r,o){r!==o&&(t.flags|=4)};function Vi(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags&14680064,o|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function PI(e,t,r){var o=t.pendingProps;switch(Kp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return It(t.type)&&ds(),ut(t),null;case 3:return o=t.stateNode,Fo(),Re(zt),Re(pt),af(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Wl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sn!==null&&(Tp(sn),sn=null))),$p(e,t),ut(t),null;case 5:of(t);var n=Wr(xa.current);if(r=t.type,e!==null&&t.stateNode!=null)hk(e,t,r,o,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(R(166));return ut(t),null}if(e=Wr(wn.current),Wl(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[_n]=t,o[ya]=i,e=(t.mode&1)!==0,r){case"dialog":Ee("cancel",o),Ee("close",o);break;case"iframe":case"object":case"embed":Ee("load",o);break;case"video":case"audio":for(n=0;n<Yi.length;n++)Ee(Yi[n],o);break;case"source":Ee("error",o);break;case"img":case"image":case"link":Ee("error",o),Ee("load",o);break;case"details":Ee("toggle",o);break;case"input":Nx(o,i),Ee("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},Ee("invalid",o);break;case"textarea":Fx(o,i),Ee("invalid",o)}Yd(r,i),n=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?o.textContent!==l&&(i.suppressHydrationWarning!==!0&&Ul(o.textContent,l,e),n=["children",l]):typeof l=="number"&&o.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Ul(o.textContent,l,e),n=["children",""+l]):la.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Ee("scroll",o)}switch(r){case"input":Pl(o),Lx(o,i,!0);break;case"textarea":Pl(o),Ax(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=us)}o=n,t.updateQueue=o,o!==null&&(t.flags|=4)}else{a=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=JS(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(r,{is:o.is}):(e=a.createElement(r),r==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,r),e[_n]=t,e[ya]=o,yk(e,t,!1,!1),t.stateNode=e;e:{switch(a=qd(r,o),r){case"dialog":Ee("cancel",e),Ee("close",e),n=o;break;case"iframe":case"object":case"embed":Ee("load",e),n=o;break;case"video":case"audio":for(n=0;n<Yi.length;n++)Ee(Yi[n],e);n=o;break;case"source":Ee("error",e),n=o;break;case"img":case"image":case"link":Ee("error",e),Ee("load",e),n=o;break;case"details":Ee("toggle",e),n=o;break;case"input":Nx(e,o),n=Hd(e,o),Ee("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=De({},o,{value:void 0}),Ee("invalid",e);break;case"textarea":Fx(e,o),n=Xd(e,o),Ee("invalid",e);break;default:n=o}Yd(r,n),l=n;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?KS(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&GS(e,s)):i==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&sa(e,s):typeof s=="number"&&sa(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(la.hasOwnProperty(i)?s!=null&&i==="onScroll"&&Ee("scroll",e):s!=null&&Dp(e,i,s,a))}switch(r){case"input":Pl(e),Lx(e,o,!1);break;case"textarea":Pl(e),Ax(e);break;case"option":o.value!=null&&e.setAttribute("value",""+yr(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?Po(e,!!o.multiple,i,!1):o.defaultValue!=null&&Po(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=us)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ut(t),null;case 6:if(e&&t.stateNode!=null)xk(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(R(166));if(r=Wr(xa.current),Wr(wn.current),Wl(t)){if(o=t.stateNode,r=t.memoizedProps,o[_n]=t,(i=o.nodeValue!==r)&&(e=Ot,e!==null))switch(e.tag){case 3:Ul(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ul(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[_n]=t,t.stateNode=o}return ut(t),null;case 13:if(Re(je),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ce&&jt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Lb(),No(),t.flags|=98560,i=!1;else if(i=Wl(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(R(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(R(317));i[_n]=t}else No(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),i=!1}else sn!==null&&(Tp(sn),sn=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(je.current&1)!==0?Ye===0&&(Ye=3):hf())),t.updateQueue!==null&&(t.flags|=4),ut(t),null);case 4:return Fo(),$p(e,t),e===null&&ga(t.stateNode.containerInfo),ut(t),null;case 10:return ef(t.type._context),ut(t),null;case 17:return It(t.type)&&ds(),ut(t),null;case 19:if(Re(je),i=t.memoizedState,i===null)return ut(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)Vi(i,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=hs(e),a!==null){for(t.flags|=128,Vi(i,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)i=r,e=o,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ie(je,je.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ue()>Uo&&(t.flags|=128,o=!0,Vi(i,!1),t.lanes=4194304)}else{if(!o)if(e=hs(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Vi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ce)return ut(t),null}else 2*Ue()-i.renderingStartTime>Uo&&r!==1073741824&&(t.flags|=128,o=!0,Vi(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ue(),t.sibling=null,r=je.current,Ie(je,o?r&1|2:r&1),t):(ut(t),null);case 22:case 23:return yf(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(Tt&1073741824)!==0&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function EI(e,t){switch(Kp(t),t.tag){case 1:return It(t.type)&&ds(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fo(),Re(zt),Re(pt),af(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return of(t),null;case 13:if(Re(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));No()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(je),null;case 4:return Fo(),null;case 10:return ef(t.type._context),null;case 22:case 23:return yf(),null;case 24:return null;default:return null}}var Zl=!1,dt=!1,RI=typeof WeakSet=="function"?WeakSet:Set,B=null;function zo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){Le(e,t,o)}else r.current=null}function wp(e,t,r){try{r()}catch(o){Le(e,t,o)}}var ES=!1;function CI(e,t){if(sp=ls,e=$b(),Gp(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var g;p!==r||n!==0&&p.nodeType!==3||(l=a+n),p!==i||o!==0&&p.nodeType!==3||(s=a+o),p.nodeType===3&&(a+=p.nodeValue.length),(g=p.firstChild)!==null;)f=p,p=g;for(;;){if(p===e)break t;if(f===r&&++c===n&&(l=a),f===i&&++d===o&&(s=a),(g=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=g}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(cp={focusedElem:e,selectionRange:r},ls=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var x=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var h=x.memoizedProps,_=x.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:an(t.type,h),_);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(b){Le(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return x=ES,ES=!1,x}function oa(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,i!==void 0&&wp(t,r,i)}n=n.next}while(n!==o)}}function Os(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function zp(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function Sk(e){var t=e.alternate;t!==null&&(e.alternate=null,Sk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_n],delete t[ya],delete t[pp],delete t[fI],delete t[mI])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bk(e){return e.tag===5||e.tag===3||e.tag===4}function RS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bk(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.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 Ip(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=us));else if(o!==4&&(e=e.child,e!==null))for(Ip(e,t,r),e=e.sibling;e!==null;)Ip(e,t,r),e=e.sibling}function Pp(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Pp(e,t,r),e=e.sibling;e!==null;)Pp(e,t,r),e=e.sibling}var rt=null,ln=!1;function nr(e,t,r){for(r=r.child;r!==null;)kk(e,t,r),r=r.sibling}function kk(e,t,r){if($n&&typeof $n.onCommitFiberUnmount=="function")try{$n.onCommitFiberUnmount(zs,r)}catch{}switch(r.tag){case 5:dt||zo(r,t);case 6:var o=rt,n=ln;rt=null,nr(e,t,r),rt=o,ln=n,rt!==null&&(ln?(e=rt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):rt.removeChild(r.stateNode));break;case 18:rt!==null&&(ln?(e=rt,r=r.stateNode,e.nodeType===8?Cd(e.parentNode,r):e.nodeType===1&&Cd(e,r),pa(e)):Cd(rt,r.stateNode));break;case 4:o=rt,n=ln,rt=r.stateNode.containerInfo,ln=!0,nr(e,t,r),rt=o,ln=n;break;case 0:case 11:case 14:case 15:if(!dt&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&wp(r,t,a),n=n.next}while(n!==o)}nr(e,t,r);break;case 1:if(!dt&&(zo(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(l){Le(r,t,l)}nr(e,t,r);break;case 21:nr(e,t,r);break;case 22:r.mode&1?(dt=(o=dt)||r.memoizedState!==null,nr(e,t,r),dt=o):nr(e,t,r);break;default:nr(e,t,r)}}function CS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new RI),t.forEach(function(o){var n=UI.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function on(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var n=r[o];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:rt=l.stateNode,ln=!1;break e;case 3:rt=l.stateNode.containerInfo,ln=!0;break e;case 4:rt=l.stateNode.containerInfo,ln=!0;break e}l=l.return}if(rt===null)throw Error(R(160));kk(i,a,n),rt=null,ln=!1;var s=n.alternate;s!==null&&(s.return=null),n.return=null}catch(c){Le(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)_k(t,e),t=t.sibling}function _k(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(on(t,e),bn(e),o&4){try{oa(3,e,e.return),Os(3,e)}catch(h){Le(e,e.return,h)}try{oa(5,e,e.return)}catch(h){Le(e,e.return,h)}}break;case 1:on(t,e),bn(e),o&512&&r!==null&&zo(r,r.return);break;case 5:if(on(t,e),bn(e),o&512&&r!==null&&zo(r,r.return),e.flags&32){var n=e.stateNode;try{sa(n,"")}catch(h){Le(e,e.return,h)}}if(o&4&&(n=e.stateNode,n!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&VS(n,i),qd(l,a);var c=qd(l,i);for(a=0;a<s.length;a+=2){var d=s[a],p=s[a+1];d==="style"?KS(n,p):d==="dangerouslySetInnerHTML"?GS(n,p):d==="children"?sa(n,p):Dp(n,d,p,c)}switch(l){case"input":Jd(n,i);break;case"textarea":HS(n,i);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?Po(n,!!i.multiple,g,!1):f!==!!i.multiple&&(i.defaultValue!=null?Po(n,!!i.multiple,i.defaultValue,!0):Po(n,!!i.multiple,i.multiple?[]:"",!1))}n[ya]=i}catch(h){Le(e,e.return,h)}}break;case 6:if(on(t,e),bn(e),o&4){if(e.stateNode===null)throw Error(R(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(h){Le(e,e.return,h)}}break;case 3:if(on(t,e),bn(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{pa(t.containerInfo)}catch(h){Le(e,e.return,h)}break;case 4:on(t,e),bn(e);break;case 13:on(t,e),bn(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(gf=Ue())),o&4&&CS(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(dt=(c=dt)||d,on(t,e),dt=c):on(t,e),bn(e),o&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&(e.mode&1)!==0)for(B=e,d=e.child;d!==null;){for(p=B=d;B!==null;){switch(f=B,g=f.child,f.tag){case 0:case 11:case 14:case 15:oa(4,f,f.return);break;case 1:zo(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){o=f,r=f.return;try{t=o,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(h){Le(o,r,h)}}break;case 5:zo(f,f.return);break;case 22:if(f.memoizedState!==null){jS(p);continue}}g!==null?(g.return=f,B=g):jS(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{n=p.stateNode,c?(i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=p.stateNode,s=p.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=XS("display",a))}catch(h){Le(e,e.return,h)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(h){Le(e,e.return,h)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:on(t,e),bn(e),o&4&&CS(e);break;case 21:break;default:on(t,e),bn(e)}}function bn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(bk(r)){var o=r;break e}r=r.return}throw Error(R(160))}switch(o.tag){case 5:var n=o.stateNode;o.flags&32&&(sa(n,""),o.flags&=-33);var i=RS(e);Pp(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,l=RS(e);Ip(e,l,a);break;default:throw Error(R(161))}}catch(s){Le(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function TI(e,t,r){B=e,$k(e,t,r)}function $k(e,t,r){for(var o=(e.mode&1)!==0;B!==null;){var n=B,i=n.child;if(n.tag===22&&o){var a=n.memoizedState!==null||Zl;if(!a){var l=n.alternate,s=l!==null&&l.memoizedState!==null||dt;l=Zl;var c=dt;if(Zl=a,(dt=s)&&!c)for(B=n;B!==null;)a=B,s=a.child,a.tag===22&&a.memoizedState!==null?OS(n):s!==null?(s.return=a,B=s):OS(n);for(;i!==null;)B=i,$k(i,t,r),i=i.sibling;B=n,Zl=l,dt=c}TS(e,t,r)}else(n.subtreeFlags&8772)!==0&&i!==null?(i.return=n,B=i):TS(e,t,r)}}function TS(e){for(;B!==null;){var t=B;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:dt||Os(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!dt)if(r===null)o.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:an(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&vS(t,i,o);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}vS(t,a,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&pa(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}dt||t.flags&512&&zp(t)}catch(f){Le(t,t.return,f)}}if(t===e){B=null;break}if(r=t.sibling,r!==null){r.return=t.return,B=r;break}B=t.return}}function jS(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var r=t.sibling;if(r!==null){r.return=t.return,B=r;break}B=t.return}}function OS(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Os(4,t)}catch(s){Le(t,r,s)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(s){Le(t,n,s)}}var i=t.return;try{zp(t)}catch(s){Le(t,i,s)}break;case 5:var a=t.return;try{zp(t)}catch(s){Le(t,a,s)}}}catch(s){Le(t,t.return,s)}if(t===e){B=null;break}var l=t.sibling;if(l!==null){l.return=t.return,B=l;break}B=t.return}}var jI=Math.ceil,bs=Xn.ReactCurrentDispatcher,ff=Xn.ReactCurrentOwner,Gt=Xn.ReactCurrentBatchConfig,me=0,tt=null,Me=null,ot=0,Tt=0,Io=Sr(0),Ye=0,_a=null,Jr=0,Ds=0,mf=0,ia=null,$t=null,gf=0,Uo=1/0,Un=null,ks=!1,Ep=null,mr=null,Vl=!1,sr=null,_s=0,aa=0,Rp=null,Ql=-1,es=0;function yt(){return(me&6)!==0?Ue():Ql!==-1?Ql:Ql=Ue()}function gr(e){return(e.mode&1)===0?1:(me&2)!==0&&ot!==0?ot&-ot:vI.transition!==null?(es===0&&(es=sb()),es):(e=xe,e!==0||(e=window.event,e=e===void 0?16:gb(e.type)),e)}function un(e,t,r,o){if(50<aa)throw aa=0,Rp=null,Error(R(185));$a(e,r,o),((me&2)===0||e!==tt)&&(e===tt&&((me&2)===0&&(Ds|=r),Ye===4&&ar(e,ot)),Pt(e,o),r===1&&me===0&&(t.mode&1)===0&&(Uo=Ue()+500,Cs&&br()))}function Pt(e,t){var r=e.callbackNode;hz(e,t);var o=as(e,e===tt?ot:0);if(o===0)r!==null&&Mx(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&Mx(r),t===1)e.tag===0?gI(DS.bind(null,e)):Ob(DS.bind(null,e)),dI(function(){(me&6)===0&&br()}),r=null;else{switch(cb(o)){case 1:r=Up;break;case 4:r=ab;break;case 16:r=is;break;case 536870912:r=lb;break;default:r=is}r=Tk(r,wk.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function wk(e,t){if(Ql=-1,es=0,(me&6)!==0)throw Error(R(327));var r=e.callbackNode;if(jo()&&e.callbackNode!==r)return null;var o=as(e,e===tt?ot:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=$s(e,o);else{t=o;var n=me;me|=2;var i=Ik();(tt!==e||ot!==t)&&(Un=null,Uo=Ue()+500,Mr(e,t));do try{NI();break}catch(l){zk(e,l)}while(!0);Qp(),bs.current=i,me=n,Me!==null?t=0:(tt=null,ot=0,t=Ye)}if(t!==0){if(t===2&&(n=rp(e),n!==0&&(o=n,t=Cp(e,n))),t===1)throw r=_a,Mr(e,0),ar(e,o),Pt(e,Ue()),r;if(t===6)ar(e,o);else{if(n=e.current.alternate,(o&30)===0&&!OI(n)&&(t=$s(e,o),t===2&&(i=rp(e),i!==0&&(o=i,t=Cp(e,i))),t===1))throw r=_a,Mr(e,0),ar(e,o),Pt(e,Ue()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(R(345));case 2:Fr(e,$t,Un);break;case 3:if(ar(e,o),(o&130023424)===o&&(t=gf+500-Ue(),10<t)){if(as(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){yt(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=dp(Fr.bind(null,e,$t,Un),t);break}Fr(e,$t,Un);break;case 4:if(ar(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-cn(o);i=1<<a,a=t[a],a>n&&(n=a),o&=~i}if(o=n,o=Ue()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*jI(o/1960))-o,10<o){e.timeoutHandle=dp(Fr.bind(null,e,$t,Un),o);break}Fr(e,$t,Un);break;case 5:Fr(e,$t,Un);break;default:throw Error(R(329))}}}return Pt(e,Ue()),e.callbackNode===r?wk.bind(null,e):null}function Cp(e,t){var r=ia;return e.current.memoizedState.isDehydrated&&(Mr(e,t).flags|=256),e=$s(e,t),e!==2&&(t=$t,$t=r,t!==null&&Tp(t)),e}function Tp(e){$t===null?$t=e:$t.push.apply($t,e)}function OI(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var n=r[o],i=n.getSnapshot;n=n.value;try{if(!dn(i(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 ar(e,t){for(t&=~mf,t&=~Ds,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-cn(t),o=1<<r;e[r]=-1,t&=~o}}function DS(e){if((me&6)!==0)throw Error(R(327));jo();var t=as(e,0);if((t&1)===0)return Pt(e,Ue()),null;var r=$s(e,t);if(e.tag!==0&&r===2){var o=rp(e);o!==0&&(t=o,r=Cp(e,o))}if(r===1)throw r=_a,Mr(e,0),ar(e,t),Pt(e,Ue()),r;if(r===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fr(e,$t,Un),Pt(e,Ue()),null}function vf(e,t){var r=me;me|=1;try{return e(t)}finally{me=r,me===0&&(Uo=Ue()+500,Cs&&br())}}function Gr(e){sr!==null&&sr.tag===0&&(me&6)===0&&jo();var t=me;me|=1;var r=Gt.transition,o=xe;try{if(Gt.transition=null,xe=1,e)return e()}finally{xe=o,Gt.transition=r,me=t,(me&6)===0&&br()}}function yf(){Tt=Io.current,Re(Io)}function Mr(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,uI(r)),Me!==null)for(r=Me.return;r!==null;){var o=r;switch(Kp(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&ds();break;case 3:Fo(),Re(zt),Re(pt),af();break;case 5:of(o);break;case 4:Fo();break;case 13:Re(je);break;case 19:Re(je);break;case 10:ef(o.type._context);break;case 22:case 23:yf()}r=r.return}if(tt=e,Me=e=vr(e.current,null),ot=Tt=t,Ye=0,_a=null,mf=Ds=Jr=0,$t=ia=null,Ur!==null){for(t=0;t<Ur.length;t++)if(r=Ur[t],o=r.interleaved,o!==null){r.interleaved=null;var n=o.next,i=r.pending;if(i!==null){var a=i.next;i.next=n,o.next=a}r.pending=o}Ur=null}return e}function zk(e,t){do{var r=Me;try{if(Qp(),Kl.current=Ss,xs){for(var o=Oe.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}xs=!1}if(Hr=0,et=Ke=Oe=null,ra=!1,Sa=0,ff.current=null,r===null||r.return===null){Ye=1,_a=t,Me=null;break}e:{var i=e,a=r.return,l=r,s=t;if(t=ot,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,d=l,p=d.tag;if((d.mode&1)===0&&(p===0||p===11||p===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=kS(a);if(g!==null){g.flags&=-257,_S(g,a,l,i,t),g.mode&1&&bS(i,c,t),t=g,s=c;var x=t.updateQueue;if(x===null){var h=new Set;h.add(s),t.updateQueue=h}else x.add(s);break e}else{if((t&1)===0){bS(i,c,t),hf();break e}s=Error(R(426))}}else if(Ce&&l.mode&1){var _=kS(a);if(_!==null){(_.flags&65536)===0&&(_.flags|=256),_S(_,a,l,i,t),Yp(Ao(s,l));break e}}i=s=Ao(s,l),Ye!==4&&(Ye=2),ia===null?ia=[i]:ia.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=ck(i,s,t);gS(i,v);break e;case 1:l=s;var m=i.type,y=i.stateNode;if((i.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(mr===null||!mr.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=uk(i,l,t);gS(i,b);break e}}i=i.return}while(i!==null)}Ek(r)}catch(P){t=P,Me===r&&r!==null&&(Me=r=r.return);continue}break}while(!0)}function Ik(){var e=bs.current;return bs.current=Ss,e===null?Ss:e}function hf(){(Ye===0||Ye===3||Ye===2)&&(Ye=4),tt===null||(Jr&268435455)===0&&(Ds&268435455)===0||ar(tt,ot)}function $s(e,t){var r=me;me|=2;var o=Ik();(tt!==e||ot!==t)&&(Un=null,Mr(e,t));do try{DI();break}catch(n){zk(e,n)}while(!0);if(Qp(),me=r,bs.current=o,Me!==null)throw Error(R(261));return tt=null,ot=0,Ye}function DI(){for(;Me!==null;)Pk(Me)}function NI(){for(;Me!==null&&!cz();)Pk(Me)}function Pk(e){var t=Ck(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?Ek(e):Me=t,ff.current=null}function Ek(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=PI(r,t,Tt),r!==null){Me=r;return}}else{if(r=EI(r,t),r!==null){r.flags&=32767,Me=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ye=6,Me=null;return}}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);Ye===0&&(Ye=5)}function Fr(e,t,r){var o=xe,n=Gt.transition;try{Gt.transition=null,xe=1,LI(e,t,r,o)}finally{Gt.transition=n,xe=o}return null}function LI(e,t,r,o){do jo();while(sr!==null);if((me&6)!==0)throw Error(R(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(xz(e,i),e===tt&&(Me=tt=null,ot=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Vl||(Vl=!0,Tk(is,function(){return jo(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=Gt.transition,Gt.transition=null;var a=xe;xe=1;var l=me;me|=4,ff.current=null,CI(e,r),_k(r,e),iI(cp),ls=!!sp,cp=sp=null,e.current=r,TI(r,e,n),uz(),me=l,xe=a,Gt.transition=i}else e.current=r;if(Vl&&(Vl=!1,sr=e,_s=n),i=e.pendingLanes,i===0&&(mr=null),fz(r.stateNode,o),Pt(e,Ue()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],o(n.value,{componentStack:n.stack,digest:n.digest});if(ks)throw ks=!1,e=Ep,Ep=null,e;return(_s&1)!==0&&e.tag!==0&&jo(),i=e.pendingLanes,(i&1)!==0?e===Rp?aa++:(aa=0,Rp=e):aa=0,br(),null}function jo(){if(sr!==null){var e=cb(_s),t=Gt.transition,r=xe;try{if(Gt.transition=null,xe=16>e?16:e,sr===null)var o=!1;else{if(e=sr,sr=null,_s=0,(me&6)!==0)throw Error(R(331));var n=me;for(me|=4,B=e.current;B!==null;){var i=B,a=i.child;if((B.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var c=l[s];for(B=c;B!==null;){var d=B;switch(d.tag){case 0:case 11:case 15:oa(8,d,i)}var p=d.child;if(p!==null)p.return=d,B=p;else for(;B!==null;){d=B;var f=d.sibling,g=d.return;if(Sk(d),d===c){B=null;break}if(f!==null){f.return=g,B=f;break}B=g}}}var x=i.alternate;if(x!==null){var h=x.child;if(h!==null){x.child=null;do{var _=h.sibling;h.sibling=null,h=_}while(h!==null)}}B=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,B=a;else e:for(;B!==null;){if(i=B,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:oa(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,B=v;break e}B=i.return}}var m=e.current;for(B=m;B!==null;){a=B;var y=a.child;if((a.subtreeFlags&2064)!==0&&y!==null)y.return=a,B=y;else e:for(a=m;B!==null;){if(l=B,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:Os(9,l)}}catch(P){Le(l,l.return,P)}if(l===a){B=null;break e}var b=l.sibling;if(b!==null){b.return=l.return,B=b;break e}B=l.return}}if(me=n,br(),$n&&typeof $n.onPostCommitFiberRoot=="function")try{$n.onPostCommitFiberRoot(zs,e)}catch{}o=!0}return o}finally{xe=r,Gt.transition=t}}return!1}function NS(e,t,r){t=Ao(r,t),t=ck(e,t,1),e=fr(e,t,1),t=yt(),e!==null&&($a(e,1,t),Pt(e,t))}function Le(e,t,r){if(e.tag===3)NS(e,e,r);else for(;t!==null;){if(t.tag===3){NS(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(mr===null||!mr.has(o))){e=Ao(r,e),e=uk(t,e,1),t=fr(t,e,1),e=yt(),t!==null&&($a(t,1,e),Pt(t,e));break}}t=t.return}}function FI(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=yt(),e.pingedLanes|=e.suspendedLanes&r,tt===e&&(ot&r)===r&&(Ye===4||Ye===3&&(ot&130023424)===ot&&500>Ue()-gf?Mr(e,0):mf|=r),Pt(e,t)}function Rk(e,t){t===0&&((e.mode&1)===0?t=1:(t=Cl,Cl<<=1,(Cl&130023424)===0&&(Cl=4194304)));var r=yt();e=Jn(e,t),e!==null&&($a(e,t,r),Pt(e,r))}function AI(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Rk(e,r)}function UI(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(R(314))}o!==null&&o.delete(t),Rk(e,r)}var Ck;Ck=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||zt.current)wt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return wt=!1,II(e,t,r);wt=(e.flags&131072)!==0}else wt=!1,Ce&&(t.flags&1048576)!==0&&Db(t,ms,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ql(e,t),e=t.pendingProps;var n=Do(t,pt.current);To(t,r),n=sf(null,t,o,e,n,r);var i=cf();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,It(o)?(i=!0,ps(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,nf(t),n.updater=js,t.stateNode=n,n._reactInternals=t,hp(t,o,e,r),t=bp(null,t,o,!0,i,r)):(t.tag=0,Ce&&i&&Xp(t),vt(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(ql(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=MI(o),e=an(o,e),n){case 0:t=Sp(null,t,o,e,r);break e;case 1:t=zS(null,t,o,e,r);break e;case 11:t=$S(null,t,o,e,r);break e;case 14:t=wS(null,t,o,an(o.type,e),r);break e}throw Error(R(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:an(o,n),Sp(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:an(o,n),zS(e,t,o,n,r);case 3:e:{if(mk(t),e===null)throw Error(R(387));o=t.pendingProps,i=t.memoizedState,n=i.element,Wb(e,t),ys(t,o,null,r);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){n=Ao(Error(R(423)),t),t=IS(e,t,o,r,n);break e}else if(o!==n){n=Ao(Error(R(424)),t),t=IS(e,t,o,r,n);break e}else for(jt=pr(t.stateNode.containerInfo.firstChild),Ot=t,Ce=!0,sn=null,r=Ab(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(No(),o===n){t=Gn(e,t,r);break e}vt(e,t,o,r)}t=t.child}return t;case 5:return Mb(t),e===null&&gp(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,up(o,n)?a=null:i!==null&&up(o,i)&&(t.flags|=32),fk(e,t),vt(e,t,a,r),t.child;case 6:return e===null&&gp(t),null;case 13:return gk(e,t,r);case 4:return rf(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Lo(t,null,o,r):vt(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:an(o,n),$S(e,t,o,n,r);case 7:return vt(e,t,t.pendingProps,r),t.child;case 8:return vt(e,t,t.pendingProps.children,r),t.child;case 12:return vt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,n=t.pendingProps,i=t.memoizedProps,a=n.value,Ie(gs,o._currentValue),o._currentValue=a,i!==null)if(dn(i.value,a)){if(i.children===n.children&&!zt.current){t=Gn(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===o){if(i.tag===1){s=Zn(-1,r&-r),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),vp(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(R(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),vp(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}vt(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,To(t,r),n=Xt(n),o=o(n),t.flags|=1,vt(e,t,o,r),t.child;case 14:return o=t.type,n=an(o,t.pendingProps),n=an(o.type,n),wS(e,t,o,n,r);case 15:return dk(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:an(o,n),ql(e,t),t.tag=1,It(o)?(e=!0,ps(t)):e=!1,To(t,r),sk(t,o,n),hp(t,o,n,r),bp(null,t,o,!0,e,r);case 19:return vk(e,t,r);case 22:return pk(e,t,r)}throw Error(R(156,t.tag))};function Tk(e,t){return ib(e,t)}function WI(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,t,r,o){return new WI(e,t,r,o)}function xf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function MI(e){if(typeof e=="function")return xf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lp)return 11;if(e===Fp)return 14}return 2}function vr(e,t){var r=e.alternate;return r===null?(r=Jt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ts(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")xf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case yo:return Br(r.children,n,i,t);case Np:a=8,n|=8;break;case Md:return e=Jt(12,r,t,n|2),e.elementType=Md,e.lanes=i,e;case Bd:return e=Jt(13,r,t,n),e.elementType=Bd,e.lanes=i,e;case Zd:return e=Jt(19,r,t,n),e.elementType=Zd,e.lanes=i,e;case MS:return Ns(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case US:a=10;break e;case WS:a=9;break e;case Lp:a=11;break e;case Fp:a=14;break e;case rr:a=16,o=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Jt(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function Br(e,t,r,o){return e=Jt(7,e,o,t),e.lanes=r,e}function Ns(e,t,r,o){return e=Jt(22,e,o,t),e.elementType=MS,e.lanes=r,e.stateNode={isHidden:!1},e}function Ad(e,t,r){return e=Jt(6,e,null,t),e.lanes=r,e}function Ud(e,t,r){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function BI(e,t,r,o,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_d(0),this.expirationTimes=_d(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_d(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function Sf(e,t,r,o,n,i,a,l,s){return e=new BI(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nf(i),e}function ZI(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:vo,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function jk(e){if(!e)return hr;e=e._reactInternals;e:{if(Kr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(It(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var r=e.type;if(It(r))return jb(e,r,t)}return t}function Ok(e,t,r,o,n,i,a,l,s){return e=Sf(r,o,!0,e,n,i,a,l,s),e.context=jk(null),r=e.current,o=yt(),n=gr(r),i=Zn(o,n),i.callback=t??null,fr(r,i,n),e.current.lanes=n,$a(e,n,o),Pt(e,o),e}function Ls(e,t,r,o){var n=t.current,i=yt(),a=gr(n);return r=jk(r),t.context===null?t.context=r:t.pendingContext=r,t=Zn(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=fr(n,t,a),e!==null&&(un(e,n,a,i),Xl(e,n,a)),a}function ws(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function LS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function bf(e,t){LS(e,t),(e=e.alternate)&&LS(e,t)}function VI(){return null}var Dk=typeof reportError=="function"?reportError:function(e){console.error(e)};function kf(e){this._internalRoot=e}Fs.prototype.render=kf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));Ls(e,t,null,null)};Fs.prototype.unmount=kf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gr(function(){Ls(null,e,null,null)}),t[Hn]=null}};function Fs(e){this._internalRoot=e}Fs.prototype.unstable_scheduleHydration=function(e){if(e){var t=pb();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ir.length&&t!==0&&t<ir[r].priority;r++);ir.splice(r,0,e),r===0&&mb(e)}};function _f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function As(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function FS(){}function HI(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var c=ws(a);i.call(c)}}var a=Ok(t,o,e,0,null,!1,!1,"",FS);return e._reactRootContainer=a,e[Hn]=a.current,ga(e.nodeType===8?e.parentNode:e),Gr(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var l=o;o=function(){var c=ws(s);l.call(c)}}var s=Sf(e,0,!1,null,null,!1,!1,"",FS);return e._reactRootContainer=s,e[Hn]=s.current,ga(e.nodeType===8?e.parentNode:e),Gr(function(){Ls(t,s,r,o)}),s}function Us(e,t,r,o,n){var i=r._reactRootContainer;if(i){var a=i;if(typeof n=="function"){var l=n;n=function(){var s=ws(a);l.call(s)}}Ls(t,a,e,n)}else a=HI(r,t,e,n,o);return ws(a)}ub=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Ki(t.pendingLanes);r!==0&&(Wp(t,r|1),Pt(t,Ue()),(me&6)===0&&(Uo=Ue()+500,br()))}break;case 13:Gr(function(){var o=Jn(e,1);if(o!==null){var n=yt();un(o,e,1,n)}}),bf(e,1)}};Mp=function(e){if(e.tag===13){var t=Jn(e,134217728);if(t!==null){var r=yt();un(t,e,134217728,r)}bf(e,134217728)}};db=function(e){if(e.tag===13){var t=gr(e),r=Jn(e,t);if(r!==null){var o=yt();un(r,e,t,o)}bf(e,t)}};pb=function(){return xe};fb=function(e,t){var r=xe;try{return xe=e,t()}finally{xe=r}};ep=function(e,t,r){switch(t){case"input":if(Jd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var n=Rs(o);if(!n)throw Error(R(90));ZS(o),Jd(o,n)}}}break;case"textarea":HS(e,r);break;case"select":t=r.value,t!=null&&Po(e,!!r.multiple,t,!1)}};QS=vf;eb=Gr;var JI={usingClientEntryPoint:!1,Events:[za,bo,Rs,YS,qS,vf]},Hi={findFiberByHostInstance:Ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},GI={bundleType:Hi.bundleType,version:Hi.version,rendererPackageName:Hi.rendererPackageName,rendererConfig:Hi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=rb(e),e===null?null:e.stateNode},findFiberByHostInstance:Hi.findFiberByHostInstance||VI,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ji.isDisabled&&Ji.supportsFiber))try{zs=Ji.inject(GI),$n=Ji}catch{}var Ji;Lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JI;Lt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_f(t))throw Error(R(200));return ZI(e,t,null,r)};Lt.createRoot=function(e,t){if(!_f(e))throw Error(R(299));var r=!1,o="",n=Dk;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=Sf(e,1,!1,null,null,r,!1,o,n),e[Hn]=t.current,ga(e.nodeType===8?e.parentNode:e),new kf(t)};Lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=rb(t),e=e===null?null:e.stateNode,e};Lt.flushSync=function(e){return Gr(e)};Lt.hydrate=function(e,t,r){if(!As(t))throw Error(R(200));return Us(null,e,t,!0,r)};Lt.hydrateRoot=function(e,t,r){if(!_f(e))throw Error(R(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=Dk;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=Ok(t,null,e,1,r??null,n,!1,i,a),e[Hn]=t.current,ga(e),o)for(e=0;e<o.length;e++)r=o[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new Fs(t)};Lt.render=function(e,t,r){if(!As(t))throw Error(R(200));return Us(null,e,t,!1,r)};Lt.unmountComponentAtNode=function(e){if(!As(e))throw Error(R(40));return e._reactRootContainer?(Gr(function(){Us(null,null,e,!1,function(){e._reactRootContainer=null,e[Hn]=null})}),!0):!1};Lt.unstable_batchedUpdates=vf;Lt.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!As(r))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Us(e,t,r,!1,o)};Lt.version="18.3.1-next-f1338f8080-20240426"});var Ak=Fn((dO,Fk)=>{"use strict";function Lk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lk)}catch(e){console.error(e)}}Lk(),Fk.exports=Nk()});var Wk=Fn($f=>{"use strict";var Uk=Ak();$f.createRoot=Uk.createRoot,$f.hydrateRoot=Uk.hydrateRoot;var pO});var Bk=Fn(Ws=>{"use strict";var XI=he(),KI=Symbol.for("react.element"),YI=Symbol.for("react.fragment"),qI=Object.prototype.hasOwnProperty,QI=XI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eP={key:!0,ref:!0,__self:!0,__source:!0};function Mk(e,t,r){var o,n={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(o in t)qI.call(t,o)&&!eP.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)n[o]===void 0&&(n[o]=t[o]);return{$$typeof:KI,type:e,key:i,ref:a,props:n,_owner:QI.current}}Ws.Fragment=YI;Ws.jsx=Mk;Ws.jsxs=Mk});var H=Fn((gO,Zk)=>{"use strict";Zk.exports=Bk()});var _w=L(he(),1),$w=L(Wk(),1);var mt=L(he(),1);var Vk=L(he(),1),ge=L(H(),1);function U({children:e,variant:t="primary",size:r="md",disabled:o=!1,iconLeft:n,iconRight:i,onClick:a,type:l="button",style:s,...c}){let d={sm:{height:32,padding:"0 12px",font:"var(--text-sm)",gap:6},md:{height:40,padding:"0 16px",font:"var(--text-sm)",gap:8},lg:{height:48,padding:"0 22px",font:"var(--text-base)",gap:8}},p=d[r]??d.md,f={primary:{background:"var(--honey)",color:"var(--honey-on)",border:"1px solid transparent"},secondary:{background:"var(--bg-elevated)",color:"var(--text-primary)",border:"1px solid var(--border-strong)"},ghost:{background:"transparent",color:"var(--text-secondary)",border:"1px solid transparent"},pollinate:{background:"var(--pollinate)",color:"#FFFFFF",border:"1px solid transparent"},danger:{background:"var(--severity-critical-bg)",color:"var(--severity-critical)",border:"1px solid var(--severity-critical)"}},g=f[t]??f.primary,x={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:p.gap,height:p.height,padding:p.padding,fontFamily:"var(--font-sans)",fontSize:p.font,fontWeight:600,letterSpacing:"-0.01em",lineHeight:1,borderRadius:"var(--radius-md)",cursor:o?"not-allowed":"pointer",opacity:o?.45:1,transition:"background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out)",whiteSpace:"nowrap",userSelect:"none",...g,...s},h={primary:"var(--honey-hover)",secondary:"var(--bg-subtle)",ghost:"var(--bg-elevated)",pollinate:"var(--pollinate-hover)",danger:"var(--severity-critical-bg)"};return(0,ge.jsxs)("button",{type:l,disabled:o,onClick:a,style:x,onMouseEnter:b=>{o||(b.currentTarget.style.background=h[t]??h.primary)},onMouseLeave:b=>{o||(b.currentTarget.style.background=String(g.background))},onMouseDown:b=>{o||(b.currentTarget.style.transform="translateY(1px)")},onMouseUp:b=>{o||(b.currentTarget.style.transform="none")},...c,children:[n,e,i]})}function Q({children:e,tone:t="neutral",mono:r=!1,dot:o=!1,style:n}){let i={neutral:{bg:"var(--bg-subtle)",fg:"var(--text-secondary)",bd:"var(--border-strong)"},honey:{bg:"var(--honey-subtle)",fg:"var(--honey)",bd:"var(--honey-border)"},verified:{bg:"var(--severity-success-bg)",fg:"var(--verified)",bd:"var(--verified)"},pollinate:{bg:"var(--pollinate-subtle)",fg:"var(--pollinate)",bd:"var(--pollinate-border)"},info:{bg:"var(--severity-info-bg)",fg:"var(--severity-info)",bd:"var(--severity-info)"},warning:{bg:"var(--severity-warning-bg)",fg:"var(--severity-warning)",bd:"var(--severity-warning)"},critical:{bg:"var(--severity-critical-bg)",fg:"var(--severity-critical)",bd:"var(--severity-critical)"}},a=i[t]??i.neutral;return(0,ge.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6,height:22,padding:"0 9px",background:a.bg,color:a.fg,border:`1px solid ${a.bd}`,borderRadius:"var(--radius-full)",fontFamily:r?"var(--font-mono)":"var(--font-sans)",fontSize:"var(--text-xs)",fontWeight:600,letterSpacing:r?"0.02em":"0",lineHeight:1,whiteSpace:"nowrap",...n},children:[o&&(0,ge.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",background:a.fg,flex:"none"}}),e]})}function pn({value:e,defaultValue:t,onChange:r,placeholder:o,mono:n=!1,size:i="md",disabled:a=!1,iconLeft:l,type:s="text",style:c,...d}){let[p,f]=Vk.default.useState(!1),x={sm:32,md:40,lg:48}[i]??40;return(0,ge.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,height:x,padding:"0 12px",background:"var(--bg-surface)",border:`1px solid ${p?"var(--honey)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",boxShadow:p?"0 0 0 3px var(--honey-subtle)":"none",transition:"border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out)",opacity:a?.5:1,...c},children:[l&&(0,ge.jsx)("span",{style:{display:"inline-flex",color:"var(--text-tertiary)",flex:"none"},children:l}),(0,ge.jsx)("input",{type:s,value:e,defaultValue:t,onChange:r,placeholder:o,disabled:a,onFocus:()=>f(!0),onBlur:()=>f(!1),style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",color:"var(--text-primary)",fontFamily:n?"var(--font-mono)":"var(--font-sans)",fontSize:n?"var(--text-sm)":"var(--text-base)",letterSpacing:n?"0.01em":"0"},...d})]})}function Yt({label:e,value:t,unit:r,delta:o,accent:n="honey",style:i}){let a={honey:"var(--honey)",pollinate:"var(--pollinate)",verified:"var(--verified)",neutral:"var(--text-primary)"},l=a[n]??a.honey,s=typeof o=="number"?o>=0:null;return(0,ge.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,padding:18,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",...i},children:[(0,ge.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,ge.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[(0,ge.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:700,lineHeight:1,color:l,letterSpacing:"-0.01em"},children:t}),r&&(0,ge.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",color:"var(--text-tertiary)"},children:r})]}),o!=null&&(0,ge.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:s?"var(--verified)":"var(--severity-critical)"},children:[s?"\u25B2":"\u25BC"," ",Math.abs(o)," this week"]})]})}function Ms({memoryKey:e,snippet:t,source:r,score:o,scope:n="personal",verified:i=!1,pollinating:a=!1,kind:l,secondary:s=!1,style:c}){let d=a?"var(--pollinate)":i?"var(--verified)":"var(--honey)";return(0,ge.jsxs)("div",{style:{display:"flex",gap:14,padding:16,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",transition:"border-color var(--dur-base) var(--ease-out)",opacity:s?.72:1,...c},children:[(0,ge.jsx)("div",{style:{flex:"none",paddingTop:2},children:(0,ge.jsx)("div",{style:{width:34,height:38,clipPath:"polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%)",background:d,opacity:a?.9:1,animation:a?"hc-pollinate-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate":"none"}})}),(0,ge.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:7},children:[(0,ge.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,ge.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",fontWeight:600,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e}),i&&!a&&(0,ge.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)",flex:"none"},children:"\u2713 verified"}),(s||l==="session")&&!a&&(0,ge.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",flex:"none"},children:"session"}),a&&(0,ge.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--pollinate)",flex:"none"},children:"pollinating\u2026"})]}),(0,ge.jsx)("div",{style:{fontSize:"var(--text-sm)",lineHeight:"20px",color:"var(--text-primary)"},children:t}),(0,ge.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginTop:1},children:[r&&(0,ge.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:220},children:r}),(0,ge.jsx)("span",{style:{flex:1}}),(0,ge.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:n}),typeof o=="number"&&(0,ge.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,fontWeight:600,color:"var(--text-secondary)"},children:o.toFixed(2)})]})]}),(0,ge.jsx)("style",{children:"@keyframes hc-pollinate-pulse { from { opacity: .5 } to { opacity: 1 } }"})]})}var Cn=L(he(),1);var tP=L(he(),1);var Hk=L(H(),1);function nP(e,t){let r=new Map,o=e.length,n=Math.ceil(Math.sqrt(o)),i=Math.ceil(o/n),a=Math.max(1,t.width-56),l=Math.max(1,t.height-56),s=n>1?a/(n-1):0,c=i>1?l/(i-1):0;for(let d=0;d<o;d++){let p=e[d];if(p===void 0)continue;let f=d%n,g=Math.floor(d/n);r.set(p.id,{x:n>1?28+f*s:t.width/2,y:i>1?28+g*c:t.height/2})}return r}function Bs(e,t,r){let o=new Map,n=e.length;if(n===0)return o;let i=r.width/2,a=r.height/2;if(n===1){let c=e[0];return c!==void 0&&o.set(c.id,{x:i,y:a}),o}if(n>36)return nP(e,r);let l=Math.max(0,Math.min(i,a)-28),s=n-1;for(let c=0;c<n;c++){let d=e[c];if(d===void 0)continue;if(c===0){o.set(d.id,{x:i,y:a});continue}let p=-Math.PI/2+2*Math.PI*(c-1)/s;o.set(d.id,{x:i+l*Math.cos(p),y:a+l*Math.sin(p)})}return o}function Jk(e,t){let r=new Map,o=new Map,n=new Set,i=new Set,a=[],l=[];for(let s of t){if(s.from===e&&s.to!==e){let c=`${s.kind}\0${s.to}`;n.has(c)||(n.add(c),r.has(s.kind)||(r.set(s.kind,[]),a.push(s.kind)),r.get(s.kind)?.push(s.to))}if(s.to===e&&s.from!==e){let c=`${s.kind}\0${s.from}`;i.has(c)||(i.add(c),o.has(s.kind)||(o.set(s.kind,[]),l.push(s.kind)),o.get(s.kind)?.push(s.from))}}return{outgoing:a.map(s=>({kind:s,ids:r.get(s)??[]})),incoming:l.map(s=>({kind:s,ids:o.get(s)??[]}))}}var u={};An(u,{$brand:()=>zf,$input:()=>Jg,$output:()=>Hg,NEVER:()=>wf,TimePrecision:()=>Yg,ZodAny:()=>Uy,ZodArray:()=>Zy,ZodBase64:()=>vu,ZodBase64URL:()=>yu,ZodBigInt:()=>xi,ZodBigIntFormat:()=>Su,ZodBoolean:()=>hi,ZodCIDRv4:()=>mu,ZodCIDRv6:()=>gu,ZodCUID:()=>lu,ZodCUID2:()=>su,ZodCatch:()=>ph,ZodCodec:()=>il,ZodCustom:()=>al,ZodCustomStringFormat:()=>vi,ZodDate:()=>el,ZodDefault:()=>ah,ZodDiscriminatedUnion:()=>Hy,ZodE164:()=>hu,ZodEmail:()=>ou,ZodEmoji:()=>iu,ZodEnum:()=>mi,ZodError:()=>jR,ZodExactOptional:()=>rh,ZodFile:()=>th,ZodFirstPartyTypeKind:()=>wh,ZodFunction:()=>kh,ZodGUID:()=>Xa,ZodIPv4:()=>pu,ZodIPv6:()=>fu,ZodISODate:()=>qc,ZodISODateTime:()=>Yc,ZodISODuration:()=>eu,ZodISOTime:()=>Qc,ZodIntersection:()=>Jy,ZodIssueCode:()=>DR,ZodJWT:()=>xu,ZodKSUID:()=>du,ZodLazy:()=>xh,ZodLiteral:()=>eh,ZodMAC:()=>jy,ZodMap:()=>qy,ZodNaN:()=>mh,ZodNanoID:()=>au,ZodNever:()=>My,ZodNonOptional:()=>zu,ZodNull:()=>Fy,ZodNullable:()=>ih,ZodNumber:()=>yi,ZodNumberFormat:()=>io,ZodObject:()=>nl,ZodOptional:()=>wu,ZodPipe:()=>ol,ZodPrefault:()=>sh,ZodPreprocess:()=>gh,ZodPromise:()=>bh,ZodReadonly:()=>vh,ZodRealError:()=>Ct,ZodRecord:()=>fi,ZodSet:()=>Qy,ZodString:()=>gi,ZodStringFormat:()=>be,ZodSuccess:()=>dh,ZodSymbol:()=>Ny,ZodTemplateLiteral:()=>hh,ZodTransform:()=>nh,ZodTuple:()=>Xy,ZodType:()=>ie,ZodULID:()=>cu,ZodURL:()=>Qa,ZodUUID:()=>En,ZodUndefined:()=>Ly,ZodUnion:()=>rl,ZodUnknown:()=>Wy,ZodVoid:()=>By,ZodXID:()=>uu,ZodXor:()=>Vy,_ZodString:()=>ru,_default:()=>lh,_function:()=>D0,any:()=>p0,array:()=>tl,base64:()=>X$,base64url:()=>K$,bigint:()=>l0,boolean:()=>Dy,catch:()=>fh,check:()=>N0,cidrv4:()=>J$,cidrv6:()=>G$,clone:()=>xt,codec:()=>C0,coerce:()=>zh,config:()=>Fe,core:()=>qn,cuid:()=>A$,cuid2:()=>U$,custom:()=>L0,date:()=>m0,decode:()=>zy,decodeAsync:()=>Py,describe:()=>F0,discriminatedUnion:()=>S0,e164:()=>Y$,email:()=>E$,emoji:()=>L$,encode:()=>wy,encodeAsync:()=>Iy,endsWith:()=>ri,enum:()=>_u,exactOptional:()=>oh,file:()=>I0,flattenError:()=>Da,float32:()=>r0,float64:()=>o0,formatError:()=>Na,fromJSONSchema:()=>V0,function:()=>D0,getErrorMap:()=>LR,globalRegistry:()=>at,gt:()=>In,gte:()=>bt,guid:()=>R$,hash:()=>n0,hex:()=>t0,hostname:()=>e0,httpUrl:()=>N$,includes:()=>ti,instanceof:()=>U0,int:()=>tu,int32:()=>i0,int64:()=>s0,intersection:()=>Gy,invertCodec:()=>T0,ipv4:()=>Z$,ipv6:()=>H$,iso:()=>pi,json:()=>M0,jwt:()=>q$,keyof:()=>g0,ksuid:()=>B$,lazy:()=>Sh,length:()=>ro,literal:()=>z0,locales:()=>Za,looseObject:()=>h0,looseRecord:()=>k0,lowercase:()=>Qo,lt:()=>zn,lte:()=>At,mac:()=>V$,map:()=>_0,maxLength:()=>no,maxSize:()=>Pr,meta:()=>A0,mime:()=>oi,minLength:()=>Yn,minSize:()=>Pn,multipleOf:()=>Ir,nan:()=>R0,nanoid:()=>F$,nativeEnum:()=>w0,negative:()=>Wc,never:()=>bu,nonnegative:()=>Bc,nonoptional:()=>uh,nonpositive:()=>Mc,normalize:()=>ii,null:()=>Ay,nullable:()=>Ya,nullish:()=>P0,number:()=>Oy,object:()=>v0,optional:()=>Ka,overwrite:()=>mn,parse:()=>by,parseAsync:()=>ky,partialRecord:()=>b0,pipe:()=>nu,positive:()=>Uc,prefault:()=>ch,preprocess:()=>B0,prettifyError:()=>Af,promise:()=>O0,property:()=>Zc,readonly:()=>yh,record:()=>Yy,refine:()=>_h,regex:()=>qo,regexes:()=>Ft,registry:()=>xc,safeDecode:()=>Ry,safeDecodeAsync:()=>Ty,safeEncode:()=>Ey,safeEncodeAsync:()=>Cy,safeParse:()=>_y,safeParseAsync:()=>$y,set:()=>$0,setErrorMap:()=>NR,size:()=>to,slugify:()=>ci,startsWith:()=>ni,strictObject:()=>y0,string:()=>Ga,stringFormat:()=>Q$,stringbool:()=>W0,success:()=>E0,superRefine:()=>$h,symbol:()=>u0,templateLiteral:()=>j0,toJSONSchema:()=>Gc,toLowerCase:()=>li,toUpperCase:()=>si,transform:()=>$u,treeifyError:()=>Ff,trim:()=>ai,tuple:()=>Ky,uint32:()=>a0,uint64:()=>c0,ulid:()=>W$,undefined:()=>d0,union:()=>ku,unknown:()=>oo,uppercase:()=>ei,url:()=>D$,util:()=>E,uuid:()=>C$,uuidv4:()=>T$,uuidv6:()=>j$,uuidv7:()=>O$,void:()=>f0,xid:()=>M$,xor:()=>x0});var qn={};An(qn,{$ZodAny:()=>mg,$ZodArray:()=>xg,$ZodAsyncError:()=>fn,$ZodBase64:()=>og,$ZodBase64URL:()=>ig,$ZodBigInt:()=>dc,$ZodBigIntFormat:()=>ug,$ZodBoolean:()=>Ua,$ZodCIDRv4:()=>tg,$ZodCIDRv6:()=>ng,$ZodCUID:()=>Bm,$ZodCUID2:()=>Zm,$ZodCatch:()=>Lg,$ZodCheck:()=>_e,$ZodCheckBigIntFormat:()=>xm,$ZodCheckEndsWith:()=>Cm,$ZodCheckGreaterThan:()=>ic,$ZodCheckIncludes:()=>Em,$ZodCheckLengthEquals:()=>wm,$ZodCheckLessThan:()=>oc,$ZodCheckLowerCase:()=>Im,$ZodCheckMaxLength:()=>_m,$ZodCheckMaxSize:()=>Sm,$ZodCheckMimeType:()=>jm,$ZodCheckMinLength:()=>$m,$ZodCheckMinSize:()=>bm,$ZodCheckMultipleOf:()=>ym,$ZodCheckNumberFormat:()=>hm,$ZodCheckOverwrite:()=>Om,$ZodCheckProperty:()=>Tm,$ZodCheckRegex:()=>zm,$ZodCheckSizeEquals:()=>km,$ZodCheckStartsWith:()=>Rm,$ZodCheckStringFormat:()=>Ko,$ZodCheckUpperCase:()=>Pm,$ZodCodec:()=>Ma,$ZodCustom:()=>Vg,$ZodCustomStringFormat:()=>sg,$ZodDate:()=>hg,$ZodDefault:()=>jg,$ZodDiscriminatedUnion:()=>kg,$ZodE164:()=>ag,$ZodEmail:()=>Am,$ZodEmoji:()=>Wm,$ZodEncodeError:()=>kr,$ZodEnum:()=>Ig,$ZodError:()=>Oa,$ZodExactOptional:()=>Cg,$ZodFile:()=>Eg,$ZodFunction:()=>Mg,$ZodGUID:()=>Lm,$ZodIPv4:()=>qm,$ZodIPv6:()=>Qm,$ZodISODate:()=>Xm,$ZodISODateTime:()=>Gm,$ZodISODuration:()=>Ym,$ZodISOTime:()=>Km,$ZodIntersection:()=>_g,$ZodJWT:()=>lg,$ZodKSUID:()=>Jm,$ZodLazy:()=>Zg,$ZodLiteral:()=>Pg,$ZodMAC:()=>eg,$ZodMap:()=>wg,$ZodNaN:()=>Fg,$ZodNanoID:()=>Mm,$ZodNever:()=>vg,$ZodNonOptional:()=>Dg,$ZodNull:()=>fg,$ZodNullable:()=>Tg,$ZodNumber:()=>uc,$ZodNumberFormat:()=>cg,$ZodObject:()=>$_,$ZodObjectJIT:()=>Sg,$ZodOptional:()=>fc,$ZodPipe:()=>mc,$ZodPrefault:()=>Og,$ZodPreprocess:()=>Ag,$ZodPromise:()=>Bg,$ZodReadonly:()=>Ug,$ZodRealError:()=>Rt,$ZodRecord:()=>$g,$ZodRegistry:()=>hc,$ZodSet:()=>zg,$ZodString:()=>eo,$ZodStringFormat:()=>Se,$ZodSuccess:()=>Ng,$ZodSymbol:()=>dg,$ZodTemplateLiteral:()=>Wg,$ZodTransform:()=>Rg,$ZodTuple:()=>pc,$ZodType:()=>ee,$ZodULID:()=>Vm,$ZodURL:()=>Um,$ZodUUID:()=>Fm,$ZodUndefined:()=>pg,$ZodUnion:()=>Wa,$ZodUnknown:()=>gg,$ZodVoid:()=>yg,$ZodXID:()=>Hm,$ZodXor:()=>bg,$brand:()=>zf,$constructor:()=>S,$input:()=>Jg,$output:()=>Hg,Doc:()=>Aa,JSONSchema:()=>z$,JSONSchemaGenerator:()=>Xc,NEVER:()=>wf,TimePrecision:()=>Yg,_any:()=>hv,_array:()=>wv,_base64:()=>Nc,_base64url:()=>Lc,_bigint:()=>dv,_boolean:()=>cv,_catch:()=>wR,_check:()=>w$,_cidrv4:()=>Oc,_cidrv6:()=>Dc,_coercedBigint:()=>pv,_coercedBoolean:()=>uv,_coercedDate:()=>_v,_coercedNumber:()=>rv,_coercedString:()=>Xg,_cuid:()=>Ic,_cuid2:()=>Pc,_custom:()=>Iv,_date:()=>kv,_decode:()=>Xs,_decodeAsync:()=>Ys,_default:()=>kR,_discriminatedUnion:()=>uR,_e164:()=>Fc,_email:()=>Sc,_emoji:()=>wc,_encode:()=>Gs,_encodeAsync:()=>Ks,_endsWith:()=>ri,_enum:()=>vR,_file:()=>zv,_float32:()=>iv,_float64:()=>av,_gt:()=>In,_gte:()=>bt,_guid:()=>Va,_includes:()=>ti,_int:()=>ov,_int32:()=>lv,_int64:()=>fv,_intersection:()=>dR,_ipv4:()=>Tc,_ipv6:()=>jc,_isoDate:()=>Qg,_isoDateTime:()=>qg,_isoDuration:()=>tv,_isoTime:()=>ev,_jwt:()=>Ac,_ksuid:()=>Cc,_lazy:()=>ER,_length:()=>ro,_literal:()=>hR,_lowercase:()=>Qo,_lt:()=>zn,_lte:()=>At,_mac:()=>Kg,_map:()=>mR,_max:()=>At,_maxLength:()=>no,_maxSize:()=>Pr,_mime:()=>oi,_min:()=>bt,_minLength:()=>Yn,_minSize:()=>Pn,_multipleOf:()=>Ir,_nan:()=>$v,_nanoid:()=>zc,_nativeEnum:()=>yR,_negative:()=>Wc,_never:()=>Sv,_nonnegative:()=>Bc,_nonoptional:()=>_R,_nonpositive:()=>Mc,_normalize:()=>ii,_null:()=>yv,_nullable:()=>bR,_number:()=>nv,_optional:()=>SR,_overwrite:()=>mn,_parse:()=>Ho,_parseAsync:()=>Jo,_pipe:()=>zR,_positive:()=>Uc,_promise:()=>RR,_property:()=>Zc,_readonly:()=>IR,_record:()=>fR,_refine:()=>Pv,_regex:()=>qo,_safeDecode:()=>Qs,_safeDecodeAsync:()=>tc,_safeEncode:()=>qs,_safeEncodeAsync:()=>ec,_safeParse:()=>Go,_safeParseAsync:()=>Xo,_set:()=>gR,_size:()=>to,_slugify:()=>ci,_startsWith:()=>ni,_string:()=>Gg,_stringFormat:()=>ui,_stringbool:()=>Tv,_success:()=>$R,_superRefine:()=>Ev,_symbol:()=>gv,_templateLiteral:()=>PR,_toLowerCase:()=>li,_toUpperCase:()=>si,_transform:()=>xR,_trim:()=>ai,_tuple:()=>pR,_uint32:()=>sv,_uint64:()=>mv,_ulid:()=>Ec,_undefined:()=>vv,_union:()=>sR,_unknown:()=>xv,_uppercase:()=>ei,_url:()=>Ha,_uuid:()=>bc,_uuidv4:()=>kc,_uuidv6:()=>_c,_uuidv7:()=>$c,_void:()=>bv,_xid:()=>Rc,_xor:()=>cR,clone:()=>xt,config:()=>Fe,createStandardJSONSchemaMethod:()=>di,createToJSONSchemaMethod:()=>jv,decode:()=>RP,decodeAsync:()=>TP,describe:()=>Rv,encode:()=>EP,encodeAsync:()=>CP,extractDefs:()=>Rr,finalize:()=>Cr,flattenError:()=>Da,formatError:()=>Na,globalConfig:()=>Yr,globalRegistry:()=>at,initializeContext:()=>Er,isValidBase64:()=>rg,isValidBase64URL:()=>S_,isValidJWT:()=>b_,locales:()=>Za,meta:()=>Cv,parse:()=>Hs,parseAsync:()=>Js,prettifyError:()=>Af,process:()=>ve,regexes:()=>Ft,registry:()=>xc,safeDecode:()=>OP,safeDecodeAsync:()=>NP,safeEncode:()=>jP,safeEncodeAsync:()=>DP,safeParse:()=>Uf,safeParseAsync:()=>Wf,toDotPath:()=>Qk,toJSONSchema:()=>Gc,treeifyError:()=>Ff,util:()=>E,version:()=>Dm});var Gk,wf=Object.freeze({status:"aborted"});function S(e,t,r){function o(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 c=a.prototype,d=Object.keys(c);for(let p=0;p<d.length;p++){let f=d[p];f in l||(l[f]=c[f].bind(l))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(l){var s;let c=r?.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(let d of c._zod.deferred)d();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var zf=Symbol("zod_brand"),fn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},kr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(Gk=globalThis).__zod_globalConfig??(Gk.__zod_globalConfig={});var Yr=globalThis.__zod_globalConfig;function Fe(e){return e&&Object.assign(Yr,e),Yr}var E={};An(E,{BIGINT_FORMAT_RANGES:()=>Nf,Class:()=>Pf,NUMBER_FORMAT_RANGES:()=>Df,aborted:()=>zr,allowsEval:()=>Cf,assert:()=>lP,assertEqual:()=>rP,assertIs:()=>iP,assertNever:()=>aP,assertNotEqual:()=>oP,assignProp:()=>$r,base64ToUint8Array:()=>Kk,base64urlToUint8Array:()=>$P,cached:()=>Zo,captureStackTrace:()=>Vs,cleanEnum:()=>_P,cleanRegex:()=>Ra,clone:()=>xt,cloneDef:()=>cP,createTransparentProxy:()=>gP,defineLazy:()=>se,esc:()=>Zs,escapeRegex:()=>qt,explicitlyAborted:()=>Lf,extend:()=>hP,finalizeIssue:()=>St,floatSafeRemainder:()=>Ef,getElementAtPath:()=>uP,getEnumValues:()=>Ea,getLengthableOrigin:()=>ja,getParsedType:()=>mP,getSizableOrigin:()=>Ta,hexToUint8Array:()=>zP,isObject:()=>qr,isPlainObject:()=>wr,issue:()=>Vo,joinValues:()=>k,jsonStringifyReplacer:()=>Bo,merge:()=>SP,mergeDefs:()=>Kn,normalizeParams:()=>j,nullish:()=>_r,numKeys:()=>fP,objectClone:()=>sP,omit:()=>yP,optionalKeys:()=>Of,parsedType:()=>I,partial:()=>bP,pick:()=>vP,prefixIssues:()=>Et,primitiveTypes:()=>jf,promiseAllObject:()=>dP,propertyKeyTypes:()=>Ca,randomString:()=>pP,required:()=>kP,safeExtend:()=>xP,shallowClone:()=>Tf,slugify:()=>Rf,stringifyPrimitive:()=>z,uint8ArrayToBase64:()=>Yk,uint8ArrayToBase64url:()=>wP,uint8ArrayToHex:()=>IP,unwrapMessage:()=>Pa});function rP(e){return e}function oP(e){return e}function iP(e){}function aP(e){throw new Error("Unexpected value in exhaustive check")}function lP(e){}function Ea(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function k(e,t="|"){return e.map(r=>z(r)).join(t)}function Bo(e,t){return typeof t=="bigint"?t.toString():t}function Zo(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function _r(e){return e==null}function Ra(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Ef(e,t){let r=e/t,o=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var Xk=Symbol("evaluating");function se(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Xk)return o===void 0&&(o=Xk,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function sP(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function $r(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Kn(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function cP(e){return Kn(e._zod.def)}function uP(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function dP(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function pP(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Zs(e){return JSON.stringify(e)}function Rf(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Vs="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function qr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Cf=Zo(()=>{if(Yr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function wr(e){if(qr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(qr(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Tf(e){return wr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function fP(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var mP=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}`)}},Ca=new Set(["string","number","symbol"]),jf=new Set(["string","number","bigint","boolean","symbol","undefined"]);function qt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xt(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function j(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 gP(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Of(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Df={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]},Nf={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function vP(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Kn(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=r.shape[l])}return $r(this,"shape",a),a},checks:[]});return xt(e,i)}function yP(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Kn(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return $r(this,"shape",a),a},checks:[]});return xt(e,i)}function hP(e,t){if(!wr(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Kn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return $r(this,"shape",i),i}});return xt(e,n)}function xP(e,t){if(!wr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Kn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return $r(this,"shape",o),o}});return xt(e,r)}function SP(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Kn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return $r(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return xt(e,r)}function bP(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Kn(t._zod.def,{get shape(){let l=t._zod.def.shape,s={...l};if(r)for(let c in r){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(let c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return $r(this,"shape",s),s},checks:[]});return xt(t,a)}function kP(e,t,r){let o=Kn(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return $r(this,"shape",i),i}});return xt(t,o)}function zr(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Lf(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function Et(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Pa(e){return typeof e=="string"?e:e?.message}function St(e,t,r){let o=e.message?e.message:Pa(e.inst?._zod.def?.error?.(e))??Pa(t?.error?.(e))??Pa(r.customError?.(e))??Pa(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t?.reportInput&&(l.input=a),l}function Ta(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ja(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function I(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 r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Vo(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function _P(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Kk(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function Yk(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function $P(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return Kk(t+r)}function wP(e){return Yk(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function zP(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function IP(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Pf=class{constructor(...t){}};var qk=(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,Bo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Oa=S("$ZodError",qk),Rt=S("$ZodError",qk,{Parent:Error});function Da(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function Na(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let l=[...i,...a.path];if(l.length===0)r._errors.push(t(a));else{let s=r,c=0;for(;c<l.length;){let d=l[c];c===l.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(t(a))):s[d]=s[d]||{_errors:[]},s=s[d],c++}}}};return o(e),r}function Ff(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,l;for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>o({issues:c},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let c=[...i,...s.path];if(c.length===0){r.errors.push(t(s));continue}let d=r,p=0;for(;p<c.length;){let f=c[p],g=p===c.length-1;typeof f=="string"?(d.properties??(d.properties={}),(a=d.properties)[f]??(a[f]={errors:[]}),d=d.properties[f]):(d.items??(d.items=[]),(l=d.items)[f]??(l[f]={errors:[]}),d=d.items[f]),g&&d.errors.push(t(s)),p++}}};return o(e),r}function Qk(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function Af(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${Qk(o.path)}`);return t.join(`
|
|
9
|
-
`)}var Ho=e=>(t,r,o,n)=>{let i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new fn;if(a.issues.length){let l=new(n?.Err??e)(a.issues.map(s=>St(s,i,Fe())));throw Vs(l,n?.callee),l}return a.value},Hs=Ho(Rt),Jo=e=>async(t,r,o,n)=>{let i=o?{...o,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(n?.Err??e)(a.issues.map(s=>St(s,i,Fe())));throw Vs(l,n?.callee),l}return a.value},Js=Jo(Rt),Go=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new fn;return i.issues.length?{success:!1,error:new(e??Oa)(i.issues.map(a=>St(a,n,Fe())))}:{success:!0,data:i.value}},Uf=Go(Rt),Xo=e=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>St(a,n,Fe())))}:{success:!0,data:i.value}},Wf=Xo(Rt),Gs=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Ho(e)(t,r,n)},EP=Gs(Rt),Xs=e=>(t,r,o)=>Ho(e)(t,r,o),RP=Xs(Rt),Ks=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Jo(e)(t,r,n)},CP=Ks(Rt),Ys=e=>async(t,r,o)=>Jo(e)(t,r,o),TP=Ys(Rt),qs=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Go(e)(t,r,n)},jP=qs(Rt),Qs=e=>(t,r,o)=>Go(e)(t,r,o),OP=Qs(Rt),ec=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Xo(e)(t,r,n)},DP=ec(Rt),tc=e=>async(t,r,o)=>Xo(e)(t,r,o),NP=tc(Rt);var Ft={};An(Ft,{base64:()=>rm,base64url:()=>nc,bigint:()=>um,boolean:()=>pm,browserEmail:()=>ZP,cidrv4:()=>tm,cidrv6:()=>nm,cuid:()=>Mf,cuid2:()=>Bf,date:()=>am,datetime:()=>sm,domain:()=>JP,duration:()=>Gf,e164:()=>im,email:()=>Kf,emoji:()=>Yf,extendedDuration:()=>LP,guid:()=>Xf,hex:()=>GP,hostname:()=>HP,html5Email:()=>WP,httpProtocol:()=>om,idnEmail:()=>BP,integer:()=>dm,ipv4:()=>qf,ipv6:()=>Qf,ksuid:()=>Hf,lowercase:()=>gm,mac:()=>em,md5_base64:()=>KP,md5_base64url:()=>YP,md5_hex:()=>XP,nanoid:()=>Jf,null:()=>fm,number:()=>rc,rfc5322Email:()=>MP,sha1_base64:()=>QP,sha1_base64url:()=>eE,sha1_hex:()=>qP,sha256_base64:()=>nE,sha256_base64url:()=>rE,sha256_hex:()=>tE,sha384_base64:()=>iE,sha384_base64url:()=>aE,sha384_hex:()=>oE,sha512_base64:()=>sE,sha512_base64url:()=>cE,sha512_hex:()=>lE,string:()=>cm,time:()=>lm,ulid:()=>Zf,undefined:()=>mm,unicodeEmail:()=>e_,uppercase:()=>vm,uuid:()=>Qr,uuid4:()=>FP,uuid6:()=>AP,uuid7:()=>UP,xid:()=>Vf});var Mf=/^[cC][0-9a-z]{6,}$/,Bf=/^[0-9a-z]+$/,Zf=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Vf=/^[0-9a-vA-V]{20}$/,Hf=/^[A-Za-z0-9]{27}$/,Jf=/^[a-zA-Z0-9_-]{21}$/,Gf=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,LP=/^[-+]?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)?)??$/,Xf=/^([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})$/,Qr=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)$/,FP=Qr(4),AP=Qr(6),UP=Qr(7),Kf=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,WP=/^[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])?)*$/,MP=/^(([^<>()\[\]\\.,;:\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,}))$/,e_=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,BP=e_,ZP=/^[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])?)*$/,VP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Yf(){return new RegExp(VP,"u")}var qf=/^(?:(?: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])$/,Qf=/^(([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}|:))$/,em=e=>{let t=qt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},tm=/^((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])$/,nm=/^(([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])$/,rm=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,nc=/^[A-Za-z0-9_-]*$/,HP=/^(?=.{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])?)*\.?$/,JP=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,om=/^https?$/,im=/^\+[1-9]\d{6,14}$/,t_="(?:(?:\\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])))",am=new RegExp(`^${t_}$`);function n_(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 lm(e){return new RegExp(`^${n_(e)}$`)}function sm(e){let t=n_({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${t_}T(?:${o})$`)}var cm=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},um=/^-?\d+n?$/,dm=/^-?\d+$/,rc=/^-?\d+(?:\.\d+)?$/,pm=/^(?:true|false)$/i,fm=/^null$/i;var mm=/^undefined$/i;var gm=/^[^A-Z]*$/,vm=/^[^a-z]*$/,GP=/^[0-9a-fA-F]*$/;function La(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Fa(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var XP=/^[0-9a-fA-F]{32}$/,KP=La(22,"=="),YP=Fa(22),qP=/^[0-9a-fA-F]{40}$/,QP=La(27,"="),eE=Fa(27),tE=/^[0-9a-fA-F]{64}$/,nE=La(43,"="),rE=Fa(43),oE=/^[0-9a-fA-F]{96}$/,iE=La(64,""),aE=Fa(64),lE=/^[0-9a-fA-F]{128}$/,sE=La(86,"=="),cE=Fa(86);var _e=S("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),o_={number:"number",bigint:"bigint",object:"date"},oc=S("$ZodCheckLessThan",(e,t)=>{_e.init(e,t);let r=o_[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ic=S("$ZodCheckGreaterThan",(e,t)=>{_e.init(e,t);let r=o_[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ym=S("$ZodCheckMultipleOf",(e,t)=>{_e.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Ef(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),hm=S("$ZodCheckNumberFormat",(e,t)=>{_e.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=Df[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=n,l.maximum=i,r&&(l.pattern=dm)}),e._zod.check=a=>{let l=a.value;if(r){if(!Number.isInteger(l)){a.issues.push({expected:o,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:o,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:o,inclusive:!0,continue:!t.abort});return}}l<n&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),xm=S("$ZodCheckBigIntFormat",(e,t)=>{_e.init(e,t);let[r,o]=Nf[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Sm=S("$ZodCheckMaxSize",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!_r(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:Ta(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),bm=S("$ZodCheckMinSize",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!_r(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:Ta(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),km=S("$ZodCheckSizeEquals",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!_r(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:Ta(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),_m=S("$ZodCheckMaxLength",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!_r(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=ja(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),$m=S("$ZodCheckMinLength",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!_r(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=ja(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),wm=S("$ZodCheckLengthEquals",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!_r(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=ja(n),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Ko=S("$ZodCheckStringFormat",(e,t)=>{var r,o;_e.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),zm=S("$ZodCheckRegex",(e,t)=>{Ko.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Im=S("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=gm),Ko.init(e,t)}),Pm=S("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=vm),Ko.init(e,t)}),Em=S("$ZodCheckIncludes",(e,t)=>{_e.init(e,t);let r=qt(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Rm=S("$ZodCheckStartsWith",(e,t)=>{_e.init(e,t);let r=new RegExp(`^${qt(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Cm=S("$ZodCheckEndsWith",(e,t)=>{_e.init(e,t);let r=new RegExp(`.*${qt(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function r_(e,t,r){e.issues.length&&t.issues.push(...Et(r,e.issues))}var Tm=S("$ZodCheckProperty",(e,t)=>{_e.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>r_(n,r,t.property));r_(o,r,t.property)}}),jm=S("$ZodCheckMimeType",(e,t)=>{_e.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),Om=S("$ZodCheckOverwrite",(e,t)=>{_e.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Aa=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 o=t.split(`
|
|
8
|
+
`+i.stack}return{value:e,source:t,stack:n,digest:null}}function Vd(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Pp(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var FP=typeof WeakMap=="function"?WeakMap:Map;function bk(e,t,r){r=Qn(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){Ns||(Ns=!0,Lp=o),Pp(e,t)},r}function Sk(e,t,r){r=Qn(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var n=t.value;r.payload=function(){return o(n)},r.callback=function(){Pp(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Pp(e,t),typeof o!="function"&&(_r===null?_r=new Set([this]):_r.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function Tb(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new FP;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(r)||(n.add(r),e=qP.bind(null,e,t,r),t.then(e,e))}function jb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ob(e,t,r,o,n){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Qn(-1,1),t.tag=2,kr(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var AP=or.ReactCurrentOwner,Ct=!1;function kt(e,t,r,o){t.child=e===null?KS(t,null,r,o):Xo(t,e.child,r,o)}function Db(e,t,r,o,n){r=r.render;var i=t.ref;return Zo(t,n),o=vf(e,t,r,o,i,n),r=yf(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,rr(e,t,n)):(De&&r&&rf(t),t.flags|=1,kt(e,t,o,n),t.child)}function Nb(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!Pf(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,kk(e,t,i,o,n)):(e=gs(r.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&n)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:za,r(a,o)&&e.ref===t.ref)return rr(e,t,n)}return t.flags|=1,e=wr(i,o),e.ref=t.ref,e.return=t,t.child=e}function kk(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(za(i,o)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=o=i,(e.lanes&n)!==0)(e.flags&131072)!==0&&(Ct=!0);else return t.lanes=e.lanes,rr(e,t,n)}return Ip(e,t,r,o,n)}function _k(e,t,r){var o=t.pendingProps,n=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ce(Ao,At),At|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ce(Ao,At),At|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,Ce(Ao,At),At|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,Ce(Ao,At),At|=o;return kt(e,t,n,r),t.child}function $k(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ip(e,t,r,o,n){var i=jt(r)?no:vt.current;return i=Jo(t,i),Zo(t,n),r=vf(e,t,r,o,i,n),o=yf(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,rr(e,t,n)):(De&&o&&rf(t),t.flags|=1,kt(e,t,r,n),t.child)}function Lb(e,t,r,o,n){if(jt(r)){var i=!0;zs(t)}else i=!1;if(Zo(t,n),t.stateNode===null)ps(e,t),xk(t,r,o),zp(t,r,o,n),o=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=rn(c):(c=jt(r)?no:vt.current,c=Jo(t,c));var d=r.getDerivedStateFromProps,p=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==o||s!==c)&&Cb(t,a,o,c),fr=!1;var f=t.memoizedState;a.state=f,Cs(t,o,a,n),s=t.memoizedState,l!==o||f!==s||Tt.current||fr?(typeof d=="function"&&(wp(t,r,d,o),s=t.memoizedState),(l=fr||Rb(t,r,l,o,f,s,c))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=s),a.props=o,a.state=s,a.context=c,o=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,qS(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:gn(t.type,l),a.props=c,p=t.pendingProps,f=a.context,s=r.contextType,typeof s=="object"&&s!==null?s=rn(s):(s=jt(r)?no:vt.current,s=Jo(t,s));var g=r.getDerivedStateFromProps;(d=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==p||f!==s)&&Cb(t,a,o,s),fr=!1,f=t.memoizedState,a.state=f,Cs(t,o,a,n);var x=t.memoizedState;l!==p||f!==x||Tt.current||fr?(typeof g=="function"&&(wp(t,r,g,o),x=t.memoizedState),(c=fr||Rb(t,r,c,o,f,x,s)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,x,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,x,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=x),a.props=o,a.state=x,a.context=s,o=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return Ep(e,t,r,o,i,n)}function Ep(e,t,r,o,n,i){$k(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&kb(t,r,!1),rr(e,t,i);o=t.stateNode,AP.current=t;var l=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=Xo(t,e.child,null,i),t.child=Xo(t,null,l,i)):kt(e,t,l,i),t.memoizedState=o.state,n&&kb(t,r,!0),t.child}function wk(e){var t=e.stateNode;t.pendingContext?Sb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Sb(e,t.context,!1),pf(e,t.containerInfo)}function Fb(e,t,r,o,n){return Go(),af(n),t.flags|=256,kt(e,t,r,o),t.child}var Rp={dehydrated:null,treeContext:null,retryLane:0};function Cp(e){return{baseLanes:e,cachePool:null,transitions:null}}function zk(e,t,r){var o=t.pendingProps,n=Le.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(n&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),Ce(Le,n&1),e===null)return _p(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=o.children,e=o.fallback,i?(o=t.mode,i=t.child,a={mode:"hidden",children:a},(o&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Ks(a,o,0,null),e=to(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Cp(r),t.memoizedState=Rp,e):bf(t,a));if(n=e.memoizedState,n!==null&&(l=n.dehydrated,l!==null))return UP(e,t,a,o,l,n,r);if(i){i=o.fallback,a=t.mode,n=e.child,l=n.sibling;var s={mode:"hidden",children:o.children};return(a&1)===0&&t.child!==n?(o=t.child,o.childLanes=0,o.pendingProps=s,t.deletions=null):(o=wr(n,s),o.subtreeFlags=n.subtreeFlags&14680064),l!==null?i=wr(l,i):(i=to(i,a,r,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,a=e.child.memoizedState,a=a===null?Cp(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=Rp,o}return i=e.child,e=i.sibling,o=wr(i,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function bf(e,t){return t=Ks({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function rs(e,t,r,o){return o!==null&&af(o),Xo(t,e.child,null,r),e=bf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function UP(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=Vd(Error(C(422))),rs(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=Ks({mode:"visible",children:o.children},n,0,null),i=to(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,(t.mode&1)!==0&&Xo(t,e.child,null,a),t.child.memoizedState=Cp(a),t.memoizedState=Rp,i);if((t.mode&1)===0)return rs(e,t,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var l=o.dgst;return o=l,i=Error(C(419)),o=Vd(i,o,void 0),rs(e,t,a,o)}if(l=(a&e.childLanes)!==0,Ct||l){if(o=ot,o!==null){switch(a&-a){case 4:n=2;break;case 16:n=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=(n&(o.suspendedLanes|a))!==0?0:n,n!==0&&n!==i.retryLane&&(i.retryLane=n,nr(e,n),xn(o,e,n,-1))}return zf(),o=Vd(Error(C(421))),rs(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=QP.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,Ut=Sr(n.nextSibling),Wt=t,De=!0,yn=null,e!==null&&(Qt[en++]=Yn,Qt[en++]=qn,Qt[en++]=ro,Yn=e.id,qn=e.overflow,ro=t),t=bf(t,o.children),t.flags|=4096,t)}function Ab(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),$p(e.return,t,r)}function Hd(e,t,r,o,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=n)}function Pk(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(kt(e,t,o.children,r),o=Le.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ab(e,r,t);else if(e.tag===19)Ab(e,r,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}o&=1}if(Ce(Le,o),(t.mode&1)===0)t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&Ts(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),Hd(t,!1,n,r,i);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Ts(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}Hd(t,!0,r,null,i);break;case"together":Hd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ps(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),io|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,r=wr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=wr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function WP(e,t,r){switch(t.tag){case 3:wk(t),Go();break;case 5:QS(t);break;case 1:jt(t.type)&&zs(t);break;case 4:pf(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;Ce(Es,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Ce(Le,Le.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?zk(e,t,r):(Ce(Le,Le.current&1),e=rr(e,t,r),e!==null?e.sibling:null);Ce(Le,Le.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return Pk(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Ce(Le,Le.current),o)break;return null;case 22:case 23:return t.lanes=0,_k(e,t,r)}return rr(e,t,r)}var Ik,Tp,Ek,Rk;Ik=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Tp=function(){};Ek=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,Qr(Ln.current);var i=null;switch(r){case"input":n=ep(e,n),o=ep(e,o),i=[];break;case"select":n=Ae({},n,{value:void 0}),o=Ae({},o,{value:void 0}),i=[];break;case"textarea":n=rp(e,n),o=rp(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=$s)}ip(r,o);var a;r=null;for(c in n)if(!o.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var l=n[c];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(xa.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var s=o[c];if(l=n?.[c],o.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(r||(r={}),r[a]=s[a])}else r||(i||(i=[]),i.push(c,r)),r=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(xa.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&je("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Rk=function(e,t,r,o){r!==o&&(t.flags|=4)};function ra(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags&14680064,o|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function MP(e,t,r){var o=t.pendingProps;switch(of(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return jt(t.type)&&ws(),mt(t),null;case 3:return o=t.stateNode,Ko(),Oe(Tt),Oe(vt),mf(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(ts(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,yn!==null&&(Up(yn),yn=null))),Tp(e,t),mt(t),null;case 5:ff(t);var n=Qr(Ca.current);if(r=t.type,e!==null&&t.stateNode!=null)Ek(e,t,r,o,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(C(166));return mt(t),null}if(e=Qr(Ln.current),ts(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[Dn]=t,o[Ea]=i,e=(t.mode&1)!==0,r){case"dialog":je("cancel",o),je("close",o);break;case"iframe":case"object":case"embed":je("load",o);break;case"video":case"audio":for(n=0;n<ca.length;n++)je(ca[n],o);break;case"source":je("error",o);break;case"img":case"image":case"link":je("error",o),je("load",o);break;case"details":je("toggle",o);break;case"input":Jx(o,i),je("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},je("invalid",o);break;case"textarea":Xx(o,i),je("invalid",o)}ip(r,i),n=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?o.textContent!==l&&(i.suppressHydrationWarning!==!0&&es(o.textContent,l,e),n=["children",l]):typeof l=="number"&&o.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&es(o.textContent,l,e),n=["children",""+l]):xa.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&je("scroll",o)}switch(r){case"input":Ml(o),Gx(o,i,!0);break;case"textarea":Ml(o),Kx(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=$s)}o=n,t.updateQueue=o,o!==null&&(t.flags|=4)}else{a=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=oS(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(r,{is:o.is}):(e=a.createElement(r),r==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,r),e[Dn]=t,e[Ea]=o,Ik(e,t,!1,!1),t.stateNode=e;e:{switch(a=ap(r,o),r){case"dialog":je("cancel",e),je("close",e),n=o;break;case"iframe":case"object":case"embed":je("load",e),n=o;break;case"video":case"audio":for(n=0;n<ca.length;n++)je(ca[n],e);n=o;break;case"source":je("error",e),n=o;break;case"img":case"image":case"link":je("error",e),je("load",e),n=o;break;case"details":je("toggle",e),n=o;break;case"input":Jx(e,o),n=ep(e,o),je("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=Ae({},o,{value:void 0}),je("invalid",e);break;case"textarea":Xx(e,o),n=rp(e,o),je("invalid",e);break;default:n=o}ip(r,n),l=n;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?lS(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&iS(e,s)):i==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&ba(e,s):typeof s=="number"&&ba(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(xa.hasOwnProperty(i)?s!=null&&i==="onScroll"&&je("scroll",e):s!=null&&Bp(e,i,s,a))}switch(r){case"input":Ml(e),Gx(e,o,!1);break;case"textarea":Ml(e),Kx(e);break;case"option":o.value!=null&&e.setAttribute("value",""+zr(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?Uo(e,!!o.multiple,i,!1):o.defaultValue!=null&&Uo(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=$s)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return mt(t),null;case 6:if(e&&t.stateNode!=null)Rk(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(C(166));if(r=Qr(Ca.current),Qr(Ln.current),ts(t)){if(o=t.stateNode,r=t.memoizedProps,o[Dn]=t,(i=o.nodeValue!==r)&&(e=Wt,e!==null))switch(e.tag){case 3:es(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&es(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Dn]=t,t.stateNode=o}return mt(t),null;case 13:if(Oe(Le),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(De&&Ut!==null&&(t.mode&1)!==0&&(t.flags&128)===0)GS(),Go(),t.flags|=98560,i=!1;else if(i=ts(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(C(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(C(317));i[Dn]=t}else Go(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;mt(t),i=!1}else yn!==null&&(Up(yn),yn=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Le.current&1)!==0?et===0&&(et=3):zf())),t.updateQueue!==null&&(t.flags|=4),mt(t),null);case 4:return Ko(),Tp(e,t),e===null&&Pa(t.stateNode.containerInfo),mt(t),null;case 10:return cf(t.type._context),mt(t),null;case 17:return jt(t.type)&&ws(),mt(t),null;case 19:if(Oe(Le),i=t.memoizedState,i===null)return mt(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)ra(i,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=Ts(e),a!==null){for(t.flags|=128,ra(i,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)i=r,e=o,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ce(Le,Le.current&1|2),t.child}e=e.sibling}i.tail!==null&&He()>qo&&(t.flags|=128,o=!0,ra(i,!1),t.lanes=4194304)}else{if(!o)if(e=Ts(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ra(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!De)return mt(t),null}else 2*He()-i.renderingStartTime>qo&&r!==1073741824&&(t.flags|=128,o=!0,ra(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=He(),t.sibling=null,r=Le.current,Ce(Le,o?r&1|2:r&1),t):(mt(t),null);case 22:case 23:return wf(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(At&1073741824)!==0&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function BP(e,t){switch(of(t),t.tag){case 1:return jt(t.type)&&ws(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ko(),Oe(Tt),Oe(vt),mf(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ff(t),null;case 13:if(Oe(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Go()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(Le),null;case 4:return Ko(),null;case 10:return cf(t.type._context),null;case 22:case 23:return wf(),null;case 24:return null;default:return null}}var os=!1,gt=!1,ZP=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Fo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){We(e,t,o)}else r.current=null}function jp(e,t,r){try{r()}catch(o){We(e,t,o)}}var Ub=!1;function VP(e,t){if(vp=Ss,e=DS(),nf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var g;p!==r||n!==0&&p.nodeType!==3||(l=a+n),p!==i||o!==0&&p.nodeType!==3||(s=a+o),p.nodeType===3&&(a+=p.nodeValue.length),(g=p.firstChild)!==null;)f=p,p=g;for(;;){if(p===e)break t;if(f===r&&++c===n&&(l=a),f===i&&++d===o&&(s=a),(g=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=g}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(yp={focusedElem:e,selectionRange:r},Ss=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var x=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var h=x.memoizedProps,_=x.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:gn(t.type,h),_);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(S){We(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return x=Ub,Ub=!1,x}function va(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,i!==void 0&&jp(t,r,i)}n=n.next}while(n!==o)}}function Gs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function Op(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function Ck(e){var t=e.alternate;t!==null&&(e.alternate=null,Ck(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dn],delete t[Ea],delete t[bp],delete t[PP],delete t[IP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tk(e){return e.tag===5||e.tag===3||e.tag===4}function Wb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tk(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.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 Dp(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=$s));else if(o!==4&&(e=e.child,e!==null))for(Dp(e,t,r),e=e.sibling;e!==null;)Dp(e,t,r),e=e.sibling}function Np(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Np(e,t,r),e=e.sibling;e!==null;)Np(e,t,r),e=e.sibling}var at=null,vn=!1;function dr(e,t,r){for(r=r.child;r!==null;)jk(e,t,r),r=r.sibling}function jk(e,t,r){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(Us,r)}catch{}switch(r.tag){case 5:gt||Fo(r,t);case 6:var o=at,n=vn;at=null,dr(e,t,r),at=o,vn=n,at!==null&&(vn?(e=at,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):at.removeChild(r.stateNode));break;case 18:at!==null&&(vn?(e=at,r=r.stateNode,e.nodeType===8?Ad(e.parentNode,r):e.nodeType===1&&Ad(e,r),$a(e)):Ad(at,r.stateNode));break;case 4:o=at,n=vn,at=r.stateNode.containerInfo,vn=!0,dr(e,t,r),at=o,vn=n;break;case 0:case 11:case 14:case 15:if(!gt&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&jp(r,t,a),n=n.next}while(n!==o)}dr(e,t,r);break;case 1:if(!gt&&(Fo(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(l){We(r,t,l)}dr(e,t,r);break;case 21:dr(e,t,r);break;case 22:r.mode&1?(gt=(o=gt)||r.memoizedState!==null,dr(e,t,r),gt=o):dr(e,t,r);break;default:dr(e,t,r)}}function Mb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new ZP),t.forEach(function(o){var n=eI.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function mn(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var n=r[o];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:at=l.stateNode,vn=!1;break e;case 3:at=l.stateNode.containerInfo,vn=!0;break e;case 4:at=l.stateNode.containerInfo,vn=!0;break e}l=l.return}if(at===null)throw Error(C(160));jk(i,a,n),at=null,vn=!1;var s=n.alternate;s!==null&&(s.return=null),n.return=null}catch(c){We(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ok(t,e),t=t.sibling}function Ok(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mn(t,e),jn(e),o&4){try{va(3,e,e.return),Gs(3,e)}catch(h){We(e,e.return,h)}try{va(5,e,e.return)}catch(h){We(e,e.return,h)}}break;case 1:mn(t,e),jn(e),o&512&&r!==null&&Fo(r,r.return);break;case 5:if(mn(t,e),jn(e),o&512&&r!==null&&Fo(r,r.return),e.flags&32){var n=e.stateNode;try{ba(n,"")}catch(h){We(e,e.return,h)}}if(o&4&&(n=e.stateNode,n!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&nS(n,i),ap(l,a);var c=ap(l,i);for(a=0;a<s.length;a+=2){var d=s[a],p=s[a+1];d==="style"?lS(n,p):d==="dangerouslySetInnerHTML"?iS(n,p):d==="children"?ba(n,p):Bp(n,d,p,c)}switch(l){case"input":tp(n,i);break;case"textarea":rS(n,i);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?Uo(n,!!i.multiple,g,!1):f!==!!i.multiple&&(i.defaultValue!=null?Uo(n,!!i.multiple,i.defaultValue,!0):Uo(n,!!i.multiple,i.multiple?[]:"",!1))}n[Ea]=i}catch(h){We(e,e.return,h)}}break;case 6:if(mn(t,e),jn(e),o&4){if(e.stateNode===null)throw Error(C(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(h){We(e,e.return,h)}}break;case 3:if(mn(t,e),jn(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{$a(t.containerInfo)}catch(h){We(e,e.return,h)}break;case 4:mn(t,e),jn(e);break;case 13:mn(t,e),jn(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(_f=He())),o&4&&Mb(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(gt=(c=gt)||d,mn(t,e),gt=c):mn(t,e),jn(e),o&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&(e.mode&1)!==0)for(Z=e,d=e.child;d!==null;){for(p=Z=d;Z!==null;){switch(f=Z,g=f.child,f.tag){case 0:case 11:case 14:case 15:va(4,f,f.return);break;case 1:Fo(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){o=f,r=f.return;try{t=o,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(h){We(o,r,h)}}break;case 5:Fo(f,f.return);break;case 22:if(f.memoizedState!==null){Zb(p);continue}}g!==null?(g.return=f,Z=g):Zb(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{n=p.stateNode,c?(i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=p.stateNode,s=p.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=aS("display",a))}catch(h){We(e,e.return,h)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(h){We(e,e.return,h)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:mn(t,e),jn(e),o&4&&Mb(e);break;case 21:break;default:mn(t,e),jn(e)}}function jn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Tk(r)){var o=r;break e}r=r.return}throw Error(C(160))}switch(o.tag){case 5:var n=o.stateNode;o.flags&32&&(ba(n,""),o.flags&=-33);var i=Wb(e);Np(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,l=Wb(e);Dp(e,l,a);break;default:throw Error(C(161))}}catch(s){We(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function HP(e,t,r){Z=e,Dk(e,t,r)}function Dk(e,t,r){for(var o=(e.mode&1)!==0;Z!==null;){var n=Z,i=n.child;if(n.tag===22&&o){var a=n.memoizedState!==null||os;if(!a){var l=n.alternate,s=l!==null&&l.memoizedState!==null||gt;l=os;var c=gt;if(os=a,(gt=s)&&!c)for(Z=n;Z!==null;)a=Z,s=a.child,a.tag===22&&a.memoizedState!==null?Vb(n):s!==null?(s.return=a,Z=s):Vb(n);for(;i!==null;)Z=i,Dk(i,t,r),i=i.sibling;Z=n,os=l,gt=c}Bb(e,t,r)}else(n.subtreeFlags&8772)!==0&&i!==null?(i.return=n,Z=i):Bb(e,t,r)}}function Bb(e){for(;Z!==null;){var t=Z;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:gt||Gs(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!gt)if(r===null)o.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:gn(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Pb(t,i,o);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Pb(t,a,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&$a(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}gt||t.flags&512&&Op(t)}catch(f){We(t,t.return,f)}}if(t===e){Z=null;break}if(r=t.sibling,r!==null){r.return=t.return,Z=r;break}Z=t.return}}function Zb(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Z=r;break}Z=t.return}}function Vb(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Gs(4,t)}catch(s){We(t,r,s)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(s){We(t,n,s)}}var i=t.return;try{Op(t)}catch(s){We(t,i,s)}break;case 5:var a=t.return;try{Op(t)}catch(s){We(t,a,s)}}}catch(s){We(t,t.return,s)}if(t===e){Z=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Z=l;break}Z=t.return}}var JP=Math.ceil,Ds=or.ReactCurrentDispatcher,Sf=or.ReactCurrentOwner,nn=or.ReactCurrentBatchConfig,ve=0,ot=null,Ge=null,lt=0,At=0,Ao=Er(0),et=0,Da=null,io=0,Xs=0,kf=0,ya=null,Rt=null,_f=0,qo=1/0,Xn=null,Ns=!1,Lp=null,_r=null,is=!1,yr=null,Ls=0,ha=0,Fp=null,fs=-1,ms=0;function _t(){return(ve&6)!==0?He():fs!==-1?fs:fs=He()}function $r(e){return(e.mode&1)===0?1:(ve&2)!==0&<!==0?lt&-lt:RP.transition!==null?(ms===0&&(ms=xS()),ms):(e=Se,e!==0||(e=window.event,e=e===void 0?16:zS(e.type)),e)}function xn(e,t,r,o){if(50<ha)throw ha=0,Fp=null,Error(C(185));Na(e,r,o),((ve&2)===0||e!==ot)&&(e===ot&&((ve&2)===0&&(Xs|=r),et===4&&gr(e,lt)),Ot(e,o),r===1&&ve===0&&(t.mode&1)===0&&(qo=He()+500,Vs&&Rr()))}function Ot(e,t){var r=e.callbackNode;Tz(e,t);var o=bs(e,e===ot?lt:0);if(o===0)r!==null&&Qx(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&Qx(r),t===1)e.tag===0?EP(Hb.bind(null,e)):VS(Hb.bind(null,e)),wP(function(){(ve&6)===0&&Rr()}),r=null;else{switch(bS(o)){case 1:r=Gp;break;case 4:r=yS;break;case 16:r=xs;break;case 536870912:r=hS;break;default:r=xs}r=Bk(r,Nk.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Nk(e,t){if(fs=-1,ms=0,(ve&6)!==0)throw Error(C(327));var r=e.callbackNode;if(Vo()&&e.callbackNode!==r)return null;var o=bs(e,e===ot?lt:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=Fs(e,o);else{t=o;var n=ve;ve|=2;var i=Fk();(ot!==e||lt!==t)&&(Xn=null,qo=He()+500,eo(e,t));do try{KP();break}catch(l){Lk(e,l)}while(!0);sf(),Ds.current=i,ve=n,Ge!==null?t=0:(ot=null,lt=0,t=et)}if(t!==0){if(t===2&&(n=dp(e),n!==0&&(o=n,t=Ap(e,n))),t===1)throw r=Da,eo(e,0),gr(e,o),Ot(e,He()),r;if(t===6)gr(e,o);else{if(n=e.current.alternate,(o&30)===0&&!GP(n)&&(t=Fs(e,o),t===2&&(i=dp(e),i!==0&&(o=i,t=Ap(e,i))),t===1))throw r=Da,eo(e,0),gr(e,o),Ot(e,He()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(C(345));case 2:Kr(e,Rt,Xn);break;case 3:if(gr(e,o),(o&130023424)===o&&(t=_f+500-He(),10<t)){if(bs(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){_t(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=xp(Kr.bind(null,e,Rt,Xn),t);break}Kr(e,Rt,Xn);break;case 4:if(gr(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-hn(o);i=1<<a,a=t[a],a>n&&(n=a),o&=~i}if(o=n,o=He()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*JP(o/1960))-o,10<o){e.timeoutHandle=xp(Kr.bind(null,e,Rt,Xn),o);break}Kr(e,Rt,Xn);break;case 5:Kr(e,Rt,Xn);break;default:throw Error(C(329))}}}return Ot(e,He()),e.callbackNode===r?Nk.bind(null,e):null}function Ap(e,t){var r=ya;return e.current.memoizedState.isDehydrated&&(eo(e,t).flags|=256),e=Fs(e,t),e!==2&&(t=Rt,Rt=r,t!==null&&Up(t)),e}function Up(e){Rt===null?Rt=e:Rt.push.apply(Rt,e)}function GP(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var n=r[o],i=n.getSnapshot;n=n.value;try{if(!bn(i(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 gr(e,t){for(t&=~kf,t&=~Xs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-hn(t),o=1<<r;e[r]=-1,t&=~o}}function Hb(e){if((ve&6)!==0)throw Error(C(327));Vo();var t=bs(e,0);if((t&1)===0)return Ot(e,He()),null;var r=Fs(e,t);if(e.tag!==0&&r===2){var o=dp(e);o!==0&&(t=o,r=Ap(e,o))}if(r===1)throw r=Da,eo(e,0),gr(e,t),Ot(e,He()),r;if(r===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Kr(e,Rt,Xn),Ot(e,He()),null}function $f(e,t){var r=ve;ve|=1;try{return e(t)}finally{ve=r,ve===0&&(qo=He()+500,Vs&&Rr())}}function ao(e){yr!==null&&yr.tag===0&&(ve&6)===0&&Vo();var t=ve;ve|=1;var r=nn.transition,o=Se;try{if(nn.transition=null,Se=1,e)return e()}finally{Se=o,nn.transition=r,ve=t,(ve&6)===0&&Rr()}}function wf(){At=Ao.current,Oe(Ao)}function eo(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,$P(r)),Ge!==null)for(r=Ge.return;r!==null;){var o=r;switch(of(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&ws();break;case 3:Ko(),Oe(Tt),Oe(vt),mf();break;case 5:ff(o);break;case 4:Ko();break;case 13:Oe(Le);break;case 19:Oe(Le);break;case 10:cf(o.type._context);break;case 22:case 23:wf()}r=r.return}if(ot=e,Ge=e=wr(e.current,null),lt=At=t,et=0,Da=null,kf=Xs=io=0,Rt=ya=null,qr!==null){for(t=0;t<qr.length;t++)if(r=qr[t],o=r.interleaved,o!==null){r.interleaved=null;var n=o.next,i=r.pending;if(i!==null){var a=i.next;i.next=n,o.next=a}r.pending=o}qr=null}return e}function Lk(e,t){do{var r=Ge;try{if(sf(),us.current=Os,js){for(var o=Fe.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}js=!1}if(oo=0,rt=Qe=Fe=null,ga=!1,Ta=0,Sf.current=null,r===null||r.return===null){et=1,Da=t,Ge=null;break}e:{var i=e,a=r.return,l=r,s=t;if(t=lt,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,d=l,p=d.tag;if((d.mode&1)===0&&(p===0||p===11||p===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=jb(a);if(g!==null){g.flags&=-257,Ob(g,a,l,i,t),g.mode&1&&Tb(i,c,t),t=g,s=c;var x=t.updateQueue;if(x===null){var h=new Set;h.add(s),t.updateQueue=h}else x.add(s);break e}else{if((t&1)===0){Tb(i,c,t),zf();break e}s=Error(C(426))}}else if(De&&l.mode&1){var _=jb(a);if(_!==null){(_.flags&65536)===0&&(_.flags|=256),Ob(_,a,l,i,t),af(Yo(s,l));break e}}i=s=Yo(s,l),et!==4&&(et=2),ya===null?ya=[i]:ya.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=bk(i,s,t);zb(i,v);break e;case 1:l=s;var m=i.type,y=i.stateNode;if((i.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(_r===null||!_r.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=Sk(i,l,t);zb(i,S);break e}}i=i.return}while(i!==null)}Uk(r)}catch(P){t=P,Ge===r&&r!==null&&(Ge=r=r.return);continue}break}while(!0)}function Fk(){var e=Ds.current;return Ds.current=Os,e===null?Os:e}function zf(){(et===0||et===3||et===2)&&(et=4),ot===null||(io&268435455)===0&&(Xs&268435455)===0||gr(ot,lt)}function Fs(e,t){var r=ve;ve|=2;var o=Fk();(ot!==e||lt!==t)&&(Xn=null,eo(e,t));do try{XP();break}catch(n){Lk(e,n)}while(!0);if(sf(),ve=r,Ds.current=o,Ge!==null)throw Error(C(261));return ot=null,lt=0,et}function XP(){for(;Ge!==null;)Ak(Ge)}function KP(){for(;Ge!==null&&!_z();)Ak(Ge)}function Ak(e){var t=Mk(e.alternate,e,At);e.memoizedProps=e.pendingProps,t===null?Uk(e):Ge=t,Sf.current=null}function Uk(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=MP(r,t,At),r!==null){Ge=r;return}}else{if(r=BP(r,t),r!==null){r.flags&=32767,Ge=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{et=6,Ge=null;return}}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);et===0&&(et=5)}function Kr(e,t,r){var o=Se,n=nn.transition;try{nn.transition=null,Se=1,YP(e,t,r,o)}finally{nn.transition=n,Se=o}return null}function YP(e,t,r,o){do Vo();while(yr!==null);if((ve&6)!==0)throw Error(C(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(C(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(jz(e,i),e===ot&&(Ge=ot=null,lt=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||is||(is=!0,Bk(xs,function(){return Vo(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=nn.transition,nn.transition=null;var a=Se;Se=1;var l=ve;ve|=4,Sf.current=null,VP(e,r),Ok(r,e),xP(yp),Ss=!!vp,yp=vp=null,e.current=r,HP(r,e,n),$z(),ve=l,Se=a,nn.transition=i}else e.current=r;if(is&&(is=!1,yr=e,Ls=n),i=e.pendingLanes,i===0&&(_r=null),Pz(r.stateNode,o),Ot(e,He()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],o(n.value,{componentStack:n.stack,digest:n.digest});if(Ns)throw Ns=!1,e=Lp,Lp=null,e;return(Ls&1)!==0&&e.tag!==0&&Vo(),i=e.pendingLanes,(i&1)!==0?e===Fp?ha++:(ha=0,Fp=e):ha=0,Rr(),null}function Vo(){if(yr!==null){var e=bS(Ls),t=nn.transition,r=Se;try{if(nn.transition=null,Se=16>e?16:e,yr===null)var o=!1;else{if(e=yr,yr=null,Ls=0,(ve&6)!==0)throw Error(C(331));var n=ve;for(ve|=4,Z=e.current;Z!==null;){var i=Z,a=i.child;if((Z.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var c=l[s];for(Z=c;Z!==null;){var d=Z;switch(d.tag){case 0:case 11:case 15:va(8,d,i)}var p=d.child;if(p!==null)p.return=d,Z=p;else for(;Z!==null;){d=Z;var f=d.sibling,g=d.return;if(Ck(d),d===c){Z=null;break}if(f!==null){f.return=g,Z=f;break}Z=g}}}var x=i.alternate;if(x!==null){var h=x.child;if(h!==null){x.child=null;do{var _=h.sibling;h.sibling=null,h=_}while(h!==null)}}Z=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,Z=a;else e:for(;Z!==null;){if(i=Z,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:va(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,Z=v;break e}Z=i.return}}var m=e.current;for(Z=m;Z!==null;){a=Z;var y=a.child;if((a.subtreeFlags&2064)!==0&&y!==null)y.return=a,Z=y;else e:for(a=m;Z!==null;){if(l=Z,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:Gs(9,l)}}catch(P){We(l,l.return,P)}if(l===a){Z=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,Z=S;break e}Z=l.return}}if(ve=n,Rr(),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(Us,e)}catch{}o=!0}return o}finally{Se=r,nn.transition=t}}return!1}function Jb(e,t,r){t=Yo(r,t),t=bk(e,t,1),e=kr(e,t,1),t=_t(),e!==null&&(Na(e,1,t),Ot(e,t))}function We(e,t,r){if(e.tag===3)Jb(e,e,r);else for(;t!==null;){if(t.tag===3){Jb(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(_r===null||!_r.has(o))){e=Yo(r,e),e=Sk(t,e,1),t=kr(t,e,1),e=_t(),t!==null&&(Na(t,1,e),Ot(t,e));break}}t=t.return}}function qP(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=_t(),e.pingedLanes|=e.suspendedLanes&r,ot===e&&(lt&r)===r&&(et===4||et===3&&(lt&130023424)===lt&&500>He()-_f?eo(e,0):kf|=r),Ot(e,t)}function Wk(e,t){t===0&&((e.mode&1)===0?t=1:(t=Vl,Vl<<=1,(Vl&130023424)===0&&(Vl=4194304)));var r=_t();e=nr(e,t),e!==null&&(Na(e,t,r),Ot(e,r))}function QP(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Wk(e,r)}function eI(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(C(314))}o!==null&&o.delete(t),Wk(e,r)}var Mk;Mk=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tt.current)Ct=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ct=!1,WP(e,t,r);Ct=(e.flags&131072)!==0}else Ct=!1,De&&(t.flags&1048576)!==0&&HS(t,Is,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ps(e,t),e=t.pendingProps;var n=Jo(t,vt.current);Zo(t,r),n=vf(null,t,o,e,n,r);var i=yf();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jt(o)?(i=!0,zs(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,df(t),n.updater=Js,t.stateNode=n,n._reactInternals=t,zp(t,o,e,r),t=Ep(null,t,o,!0,i,r)):(t.tag=0,De&&i&&rf(t),kt(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(ps(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=nI(o),e=gn(o,e),n){case 0:t=Ip(null,t,o,e,r);break e;case 1:t=Lb(null,t,o,e,r);break e;case 11:t=Db(null,t,o,e,r);break e;case 14:t=Nb(null,t,o,gn(o.type,e),r);break e}throw Error(C(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:gn(o,n),Ip(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:gn(o,n),Lb(e,t,o,n,r);case 3:e:{if(wk(t),e===null)throw Error(C(387));o=t.pendingProps,i=t.memoizedState,n=i.element,qS(e,t),Cs(t,o,null,r);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){n=Yo(Error(C(423)),t),t=Fb(e,t,o,r,n);break e}else if(o!==n){n=Yo(Error(C(424)),t),t=Fb(e,t,o,r,n);break e}else for(Ut=Sr(t.stateNode.containerInfo.firstChild),Wt=t,De=!0,yn=null,r=KS(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Go(),o===n){t=rr(e,t,r);break e}kt(e,t,o,r)}t=t.child}return t;case 5:return QS(t),e===null&&_p(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,hp(o,n)?a=null:i!==null&&hp(o,i)&&(t.flags|=32),$k(e,t),kt(e,t,a,r),t.child;case 6:return e===null&&_p(t),null;case 13:return zk(e,t,r);case 4:return pf(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Xo(t,null,o,r):kt(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:gn(o,n),Db(e,t,o,n,r);case 7:return kt(e,t,t.pendingProps,r),t.child;case 8:return kt(e,t,t.pendingProps.children,r),t.child;case 12:return kt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,n=t.pendingProps,i=t.memoizedProps,a=n.value,Ce(Es,o._currentValue),o._currentValue=a,i!==null)if(bn(i.value,a)){if(i.children===n.children&&!Tt.current){t=rr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===o){if(i.tag===1){s=Qn(-1,r&-r),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),$p(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(C(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),$p(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}kt(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,Zo(t,r),n=rn(n),o=o(n),t.flags|=1,kt(e,t,o,r),t.child;case 14:return o=t.type,n=gn(o,t.pendingProps),n=gn(o.type,n),Nb(e,t,o,n,r);case 15:return kk(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:gn(o,n),ps(e,t),t.tag=1,jt(o)?(e=!0,zs(t)):e=!1,Zo(t,r),xk(t,o,n),zp(t,o,n,r),Ep(null,t,o,!0,e,r);case 19:return Pk(e,t,r);case 22:return _k(e,t,r)}throw Error(C(156,t.tag))};function Bk(e,t){return vS(e,t)}function tI(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tn(e,t,r,o){return new tI(e,t,r,o)}function Pf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nI(e){if(typeof e=="function")return Pf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vp)return 11;if(e===Hp)return 14}return 2}function wr(e,t){var r=e.alternate;return r===null?(r=tn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function gs(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")Pf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Eo:return to(r.children,n,i,t);case Zp:a=8,n|=8;break;case Kd:return e=tn(12,r,t,n|2),e.elementType=Kd,e.lanes=i,e;case Yd:return e=tn(13,r,t,n),e.elementType=Yd,e.lanes=i,e;case qd:return e=tn(19,r,t,n),e.elementType=qd,e.lanes=i,e;case Qb:return Ks(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yb:a=10;break e;case qb:a=9;break e;case Vp:a=11;break e;case Hp:a=14;break e;case pr:a=16,o=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=tn(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function to(e,t,r,o){return e=tn(7,e,o,t),e.lanes=r,e}function Ks(e,t,r,o){return e=tn(22,e,o,t),e.elementType=Qb,e.lanes=r,e.stateNode={isHidden:!1},e}function Jd(e,t,r){return e=tn(6,e,null,t),e.lanes=r,e}function Gd(e,t,r){return t=tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rI(e,t,r,o,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cd(0),this.expirationTimes=Cd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cd(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function If(e,t,r,o,n,i,a,l,s){return e=new rI(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=tn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},df(i),e}function oI(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Io,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function Zk(e){if(!e)return Pr;e=e._reactInternals;e:{if(so(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var r=e.type;if(jt(r))return ZS(e,r,t)}return t}function Vk(e,t,r,o,n,i,a,l,s){return e=If(r,o,!0,e,n,i,a,l,s),e.context=Zk(null),r=e.current,o=_t(),n=$r(r),i=Qn(o,n),i.callback=t??null,kr(r,i,n),e.current.lanes=n,Na(e,n,o),Ot(e,o),e}function Ys(e,t,r,o){var n=t.current,i=_t(),a=$r(n);return r=Zk(r),t.context===null?t.context=r:t.pendingContext=r,t=Qn(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=kr(n,t,a),e!==null&&(xn(e,n,a,i),cs(e,n,a)),a}function As(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Gb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Ef(e,t){Gb(e,t),(e=e.alternate)&&Gb(e,t)}function iI(){return null}var Hk=typeof reportError=="function"?reportError:function(e){console.error(e)};function Rf(e){this._internalRoot=e}qs.prototype.render=Rf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Ys(e,t,null,null)};qs.prototype.unmount=Rf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ao(function(){Ys(null,e,null,null)}),t[tr]=null}};function qs(e){this._internalRoot=e}qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=_S();e={blockedOn:null,target:e,priority:t};for(var r=0;r<mr.length&&t!==0&&t<mr[r].priority;r++);mr.splice(r,0,e),r===0&&wS(e)}};function Cf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xb(){}function aI(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var c=As(a);i.call(c)}}var a=Vk(t,o,e,0,null,!1,!1,"",Xb);return e._reactRootContainer=a,e[tr]=a.current,Pa(e.nodeType===8?e.parentNode:e),ao(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var l=o;o=function(){var c=As(s);l.call(c)}}var s=If(e,0,!1,null,null,!1,!1,"",Xb);return e._reactRootContainer=s,e[tr]=s.current,Pa(e.nodeType===8?e.parentNode:e),ao(function(){Ys(t,s,r,o)}),s}function ec(e,t,r,o,n){var i=r._reactRootContainer;if(i){var a=i;if(typeof n=="function"){var l=n;n=function(){var s=As(a);l.call(s)}}Ys(t,a,e,n)}else a=aI(r,t,e,n,o);return As(a)}SS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=sa(t.pendingLanes);r!==0&&(Xp(t,r|1),Ot(t,He()),(ve&6)===0&&(qo=He()+500,Rr()))}break;case 13:ao(function(){var o=nr(e,1);if(o!==null){var n=_t();xn(o,e,1,n)}}),Ef(e,1)}};Kp=function(e){if(e.tag===13){var t=nr(e,134217728);if(t!==null){var r=_t();xn(t,e,134217728,r)}Ef(e,134217728)}};kS=function(e){if(e.tag===13){var t=$r(e),r=nr(e,t);if(r!==null){var o=_t();xn(r,e,t,o)}Ef(e,t)}};_S=function(){return Se};$S=function(e,t){var r=Se;try{return Se=e,t()}finally{Se=r}};sp=function(e,t,r){switch(t){case"input":if(tp(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var n=Zs(o);if(!n)throw Error(C(90));tS(o),tp(o,n)}}}break;case"textarea":rS(e,r);break;case"select":t=r.value,t!=null&&Uo(e,!!r.multiple,t,!1)}};uS=$f;dS=ao;var lI={usingClientEntryPoint:!1,Events:[Fa,jo,Zs,sS,cS,$f]},oa={findFiberByHostInstance:Yr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},sI={bundleType:oa.bundleType,version:oa.version,rendererPackageName:oa.rendererPackageName,rendererConfig:oa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:or.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=mS(e),e===null?null:e.stateNode},findFiberByHostInstance:oa.findFiberByHostInstance||iI,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ia=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ia.isDisabled&&ia.supportsFiber))try{Us=ia.inject(sI),Nn=ia}catch{}var ia;Zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lI;Zt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cf(t))throw Error(C(200));return oI(e,t,null,r)};Zt.createRoot=function(e,t){if(!Cf(e))throw Error(C(299));var r=!1,o="",n=Hk;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=If(e,1,!1,null,null,r,!1,o,n),e[tr]=t.current,Pa(e.nodeType===8?e.parentNode:e),new Rf(t)};Zt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=mS(t),e=e===null?null:e.stateNode,e};Zt.flushSync=function(e){return ao(e)};Zt.hydrate=function(e,t,r){if(!Qs(t))throw Error(C(200));return ec(null,e,t,!0,r)};Zt.hydrateRoot=function(e,t,r){if(!Cf(e))throw Error(C(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=Hk;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=Vk(t,null,e,1,r??null,n,!1,i,a),e[tr]=t.current,Pa(e),o)for(e=0;e<o.length;e++)r=o[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new qs(t)};Zt.render=function(e,t,r){if(!Qs(t))throw Error(C(200));return ec(null,e,t,!1,r)};Zt.unmountComponentAtNode=function(e){if(!Qs(e))throw Error(C(40));return e._reactRootContainer?(ao(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[tr]=null})}),!0):!1};Zt.unstable_batchedUpdates=$f;Zt.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Qs(r))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return ec(e,t,r,!1,o)};Zt.version="18.3.1-next-f1338f8080-20240426"});var Kk=Jn((OO,Xk)=>{"use strict";function Gk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gk)}catch(e){console.error(e)}}Gk(),Xk.exports=Jk()});var qk=Jn(Tf=>{"use strict";var Yk=Kk();Tf.createRoot=Yk.createRoot,Tf.hydrateRoot=Yk.hydrateRoot;var DO});var e_=Jn(tc=>{"use strict";var cI=ye(),uI=Symbol.for("react.element"),dI=Symbol.for("react.fragment"),pI=Object.prototype.hasOwnProperty,fI=cI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mI={key:!0,ref:!0,__self:!0,__source:!0};function Qk(e,t,r){var o,n={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(o in t)pI.call(t,o)&&!mI.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)n[o]===void 0&&(n[o]=t[o]);return{$$typeof:uI,type:e,key:i,ref:a,props:n,_owner:fI.current}}tc.Fragment=dI;tc.jsx=Qk;tc.jsxs=Qk});var H=Jn((FO,t_)=>{"use strict";t_.exports=e_()});var Lw=L(ye(),1),Fw=L(qk(),1);var ht=L(ye(),1);var n_=L(ye(),1),he=L(H(),1);function F({children:e,variant:t="primary",size:r="md",disabled:o=!1,iconLeft:n,iconRight:i,onClick:a,type:l="button",style:s,...c}){let d={sm:{height:32,padding:"0 12px",font:"var(--text-sm)",gap:6},md:{height:40,padding:"0 16px",font:"var(--text-sm)",gap:8},lg:{height:48,padding:"0 22px",font:"var(--text-base)",gap:8}},p=d[r]??d.md,f={primary:{background:"var(--honey)",color:"var(--honey-on)",border:"1px solid transparent"},secondary:{background:"var(--bg-elevated)",color:"var(--text-primary)",border:"1px solid var(--border-strong)"},ghost:{background:"transparent",color:"var(--text-secondary)",border:"1px solid transparent"},pollinate:{background:"var(--pollinate)",color:"#FFFFFF",border:"1px solid transparent"},danger:{background:"var(--severity-critical-bg)",color:"var(--severity-critical)",border:"1px solid var(--severity-critical)"}},g=f[t]??f.primary,x={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:p.gap,height:p.height,padding:p.padding,fontFamily:"var(--font-sans)",fontSize:p.font,fontWeight:600,letterSpacing:"-0.01em",lineHeight:1,borderRadius:"var(--radius-md)",cursor:o?"not-allowed":"pointer",opacity:o?.45:1,transition:"background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out)",whiteSpace:"nowrap",userSelect:"none",...g,...s},h={primary:"var(--honey-hover)",secondary:"var(--bg-subtle)",ghost:"var(--bg-elevated)",pollinate:"var(--pollinate-hover)",danger:"var(--severity-critical-bg)"};return(0,he.jsxs)("button",{type:l,disabled:o,onClick:a,style:x,onMouseEnter:S=>{o||(S.currentTarget.style.background=h[t]??h.primary)},onMouseLeave:S=>{o||(S.currentTarget.style.background=String(g.background))},onMouseDown:S=>{o||(S.currentTarget.style.transform="translateY(1px)")},onMouseUp:S=>{o||(S.currentTarget.style.transform="none")},...c,children:[n,e,i]})}function Y({children:e,tone:t="neutral",mono:r=!1,dot:o=!1,style:n}){let i={neutral:{bg:"var(--bg-subtle)",fg:"var(--text-secondary)",bd:"var(--border-strong)"},honey:{bg:"var(--honey-subtle)",fg:"var(--honey)",bd:"var(--honey-border)"},verified:{bg:"var(--severity-success-bg)",fg:"var(--verified)",bd:"var(--verified)"},pollinate:{bg:"var(--pollinate-subtle)",fg:"var(--pollinate)",bd:"var(--pollinate-border)"},info:{bg:"var(--severity-info-bg)",fg:"var(--severity-info)",bd:"var(--severity-info)"},warning:{bg:"var(--severity-warning-bg)",fg:"var(--severity-warning)",bd:"var(--severity-warning)"},critical:{bg:"var(--severity-critical-bg)",fg:"var(--severity-critical)",bd:"var(--severity-critical)"}},a=i[t]??i.neutral;return(0,he.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6,height:22,padding:"0 9px",background:a.bg,color:a.fg,border:`1px solid ${a.bd}`,borderRadius:"var(--radius-full)",fontFamily:r?"var(--font-mono)":"var(--font-sans)",fontSize:"var(--text-xs)",fontWeight:600,letterSpacing:r?"0.02em":"0",lineHeight:1,whiteSpace:"nowrap",...n},children:[o&&(0,he.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",background:a.fg,flex:"none"}}),e]})}function Sn({value:e,defaultValue:t,onChange:r,placeholder:o,mono:n=!1,size:i="md",disabled:a=!1,iconLeft:l,type:s="text",style:c,...d}){let[p,f]=n_.default.useState(!1),x={sm:32,md:40,lg:48}[i]??40;return(0,he.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,height:x,padding:"0 12px",background:"var(--bg-surface)",border:`1px solid ${p?"var(--honey)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",boxShadow:p?"0 0 0 3px var(--honey-subtle)":"none",transition:"border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out)",opacity:a?.5:1,...c},children:[l&&(0,he.jsx)("span",{style:{display:"inline-flex",color:"var(--text-tertiary)",flex:"none"},children:l}),(0,he.jsx)("input",{type:s,value:e,defaultValue:t,onChange:r,placeholder:o,disabled:a,onFocus:()=>f(!0),onBlur:()=>f(!1),style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",color:"var(--text-primary)",fontFamily:n?"var(--font-mono)":"var(--font-sans)",fontSize:n?"var(--text-sm)":"var(--text-base)",letterSpacing:n?"0.01em":"0"},...d})]})}function an({label:e,value:t,unit:r,delta:o,accent:n="honey",style:i}){let a={honey:"var(--honey)",pollinate:"var(--pollinate)",verified:"var(--verified)",neutral:"var(--text-primary)"},l=a[n]??a.honey,s=typeof o=="number"?o>=0:null;return(0,he.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,padding:18,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",...i},children:[(0,he.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,he.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[(0,he.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:700,lineHeight:1,color:l,letterSpacing:"-0.01em"},children:t}),r&&(0,he.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",color:"var(--text-tertiary)"},children:r})]}),o!=null&&(0,he.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:s?"var(--verified)":"var(--severity-critical)"},children:[s?"\u25B2":"\u25BC"," ",Math.abs(o)," this week"]})]})}function nc({memoryKey:e,snippet:t,source:r,score:o,scope:n="personal",verified:i=!1,pollinating:a=!1,kind:l,secondary:s=!1,style:c}){let d=a?"var(--pollinate)":i?"var(--verified)":"var(--honey)";return(0,he.jsxs)("div",{style:{display:"flex",gap:14,padding:16,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",transition:"border-color var(--dur-base) var(--ease-out)",opacity:s?.72:1,...c},children:[(0,he.jsx)("div",{style:{flex:"none",paddingTop:2},children:(0,he.jsx)("div",{style:{width:34,height:38,clipPath:"polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%)",background:d,opacity:a?.9:1,animation:a?"hc-pollinate-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate":"none"}})}),(0,he.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:7},children:[(0,he.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,he.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",fontWeight:600,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e}),i&&!a&&(0,he.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)",flex:"none"},children:"\u2713 verified"}),(s||l==="session")&&!a&&(0,he.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",flex:"none"},children:"session"}),a&&(0,he.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--pollinate)",flex:"none"},children:"pollinating\u2026"})]}),(0,he.jsx)("div",{style:{fontSize:"var(--text-sm)",lineHeight:"20px",color:"var(--text-primary)"},children:t}),(0,he.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginTop:1},children:[r&&(0,he.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:220},children:r}),(0,he.jsx)("span",{style:{flex:1}}),(0,he.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:n}),typeof o=="number"&&(0,he.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,fontWeight:600,color:"var(--text-secondary)"},children:o.toFixed(2)})]})]}),(0,he.jsx)("style",{children:"@keyframes hc-pollinate-pulse { from { opacity: .5 } to { opacity: 1 } }"})]})}var Bn=L(ye(),1);var gI=L(ye(),1);var r_=L(H(),1);function vI(e,t){let r=new Map,o=e.length,n=Math.ceil(Math.sqrt(o)),i=Math.ceil(o/n),a=Math.max(1,t.width-56),l=Math.max(1,t.height-56),s=n>1?a/(n-1):0,c=i>1?l/(i-1):0;for(let d=0;d<o;d++){let p=e[d];if(p===void 0)continue;let f=d%n,g=Math.floor(d/n);r.set(p.id,{x:n>1?28+f*s:t.width/2,y:i>1?28+g*c:t.height/2})}return r}function ti(e,t,r){let o=new Map,n=e.length;if(n===0)return o;let i=r.width/2,a=r.height/2;if(n===1){let c=e[0];return c!==void 0&&o.set(c.id,{x:i,y:a}),o}if(n>36)return vI(e,r);let l=Math.max(0,Math.min(i,a)-28),s=n-1;for(let c=0;c<n;c++){let d=e[c];if(d===void 0)continue;if(c===0){o.set(d.id,{x:i,y:a});continue}let p=-Math.PI/2+2*Math.PI*(c-1)/s;o.set(d.id,{x:i+l*Math.cos(p),y:a+l*Math.sin(p)})}return o}function o_(e,t){let r=new Map,o=new Map,n=new Set,i=new Set,a=[],l=[];for(let s of t){if(s.from===e&&s.to!==e){let c=`${s.kind}\0${s.to}`;n.has(c)||(n.add(c),r.has(s.kind)||(r.set(s.kind,[]),a.push(s.kind)),r.get(s.kind)?.push(s.to))}if(s.to===e&&s.from!==e){let c=`${s.kind}\0${s.from}`;i.has(c)||(i.add(c),o.has(s.kind)||(o.set(s.kind,[]),l.push(s.kind)),o.get(s.kind)?.push(s.from))}}return{outgoing:a.map(s=>({kind:s,ids:r.get(s)??[]})),incoming:l.map(s=>({kind:s,ids:o.get(s)??[]}))}}var u={};Gn(u,{$brand:()=>Of,$input:()=>tv,$output:()=>ev,NEVER:()=>jf,TimePrecision:()=>iv,ZodAny:()=>Gy,ZodArray:()=>qy,ZodBase64:()=>Eu,ZodBase64URL:()=>Ru,ZodBigInt:()=>Ti,ZodBigIntFormat:()=>ju,ZodBoolean:()=>Ci,ZodCIDRv4:()=>Pu,ZodCIDRv6:()=>Iu,ZodCUID:()=>bu,ZodCUID2:()=>Su,ZodCatch:()=>bh,ZodCodec:()=>yl,ZodCustom:()=>hl,ZodCustomStringFormat:()=>Ei,ZodDate:()=>pl,ZodDefault:()=>mh,ZodDiscriminatedUnion:()=>eh,ZodE164:()=>Cu,ZodEmail:()=>yu,ZodEmoji:()=>hu,ZodEnum:()=>Pi,ZodError:()=>JR,ZodExactOptional:()=>dh,ZodFile:()=>ch,ZodFirstPartyTypeKind:()=>jh,ZodFunction:()=>Rh,ZodGUID:()=>ll,ZodIPv4:()=>wu,ZodIPv6:()=>zu,ZodISODate:()=>du,ZodISODateTime:()=>uu,ZodISODuration:()=>fu,ZodISOTime:()=>pu,ZodIntersection:()=>th,ZodIssueCode:()=>XR,ZodJWT:()=>Tu,ZodKSUID:()=>$u,ZodLazy:()=>Ph,ZodLiteral:()=>sh,ZodMAC:()=>Wy,ZodMap:()=>ah,ZodNaN:()=>kh,ZodNanoID:()=>xu,ZodNever:()=>Ky,ZodNonOptional:()=>Au,ZodNull:()=>Hy,ZodNullable:()=>fh,ZodNumber:()=>Ri,ZodNumberFormat:()=>ho,ZodObject:()=>ml,ZodOptional:()=>Fu,ZodPipe:()=>vl,ZodPrefault:()=>vh,ZodPreprocess:()=>_h,ZodPromise:()=>Eh,ZodReadonly:()=>$h,ZodRealError:()=>Lt,ZodRecord:()=>zi,ZodSet:()=>lh,ZodString:()=>Ii,ZodStringFormat:()=>ze,ZodSuccess:()=>xh,ZodSymbol:()=>Zy,ZodTemplateLiteral:()=>zh,ZodTransform:()=>uh,ZodTuple:()=>rh,ZodType:()=>ae,ZodULID:()=>ku,ZodURL:()=>dl,ZodUUID:()=>Wn,ZodUndefined:()=>Vy,ZodUnion:()=>gl,ZodUnknown:()=>Xy,ZodVoid:()=>Yy,ZodXID:()=>_u,ZodXor:()=>Qy,_ZodString:()=>vu,_default:()=>gh,_function:()=>H0,any:()=>_0,array:()=>fl,base64:()=>a0,base64url:()=>l0,bigint:()=>h0,boolean:()=>By,catch:()=>Sh,check:()=>J0,cidrv4:()=>o0,cidrv6:()=>i0,clone:()=>wt,codec:()=>M0,coerce:()=>Oh,config:()=>Me,core:()=>lr,cuid:()=>K$,cuid2:()=>Y$,custom:()=>G0,date:()=>w0,decode:()=>Oy,decodeAsync:()=>Ny,describe:()=>X0,discriminatedUnion:()=>C0,e164:()=>s0,email:()=>U$,emoji:()=>G$,encode:()=>jy,encodeAsync:()=>Dy,endsWith:()=>vi,enum:()=>Nu,exactOptional:()=>ph,file:()=>F0,flattenError:()=>Ja,float32:()=>m0,float64:()=>g0,formatError:()=>Ga,fromJSONSchema:()=>n1,function:()=>H0,getErrorMap:()=>YR,globalRegistry:()=>ct,gt:()=>An,gte:()=>Pt,guid:()=>W$,hash:()=>f0,hex:()=>p0,hostname:()=>d0,httpUrl:()=>J$,includes:()=>mi,instanceof:()=>Y0,int:()=>mu,int32:()=>v0,int64:()=>x0,intersection:()=>nh,invertCodec:()=>B0,ipv4:()=>t0,ipv6:()=>r0,iso:()=>wi,json:()=>Q0,jwt:()=>c0,keyof:()=>z0,ksuid:()=>e0,lazy:()=>Ih,length:()=>vo,literal:()=>L0,locales:()=>nl,looseObject:()=>E0,looseRecord:()=>j0,lowercase:()=>pi,lt:()=>Fn,lte:()=>Ht,mac:()=>n0,map:()=>O0,maxLength:()=>go,maxSize:()=>Lr,meta:()=>K0,mime:()=>yi,minLength:()=>ar,minSize:()=>Un,multipleOf:()=>Nr,nan:()=>W0,nanoid:()=>X$,nativeEnum:()=>N0,negative:()=>eu,never:()=>Ou,nonnegative:()=>nu,nonoptional:()=>hh,nonpositive:()=>tu,normalize:()=>hi,null:()=>Jy,nullable:()=>cl,nullish:()=>A0,number:()=>My,object:()=>P0,optional:()=>sl,overwrite:()=>_n,parse:()=>Ey,parseAsync:()=>Ry,partialRecord:()=>T0,pipe:()=>gu,positive:()=>Qc,prefault:()=>yh,preprocess:()=>e1,prettifyError:()=>Jf,promise:()=>V0,property:()=>ru,readonly:()=>wh,record:()=>ih,refine:()=>Ch,regex:()=>di,regexes:()=>Vt,registry:()=>Tc,safeDecode:()=>Fy,safeDecodeAsync:()=>Uy,safeEncode:()=>Ly,safeEncodeAsync:()=>Ay,safeParse:()=>Cy,safeParseAsync:()=>Ty,set:()=>D0,setErrorMap:()=>KR,size:()=>mo,slugify:()=>ki,startsWith:()=>gi,strictObject:()=>I0,string:()=>al,stringFormat:()=>u0,stringbool:()=>q0,success:()=>U0,superRefine:()=>Th,symbol:()=>S0,templateLiteral:()=>Z0,toJSONSchema:()=>lu,toLowerCase:()=>bi,toUpperCase:()=>Si,transform:()=>Lu,treeifyError:()=>Hf,trim:()=>xi,tuple:()=>oh,uint32:()=>y0,uint64:()=>b0,ulid:()=>q$,undefined:()=>k0,union:()=>Du,unknown:()=>yo,uppercase:()=>fi,url:()=>H$,util:()=>E,uuid:()=>M$,uuidv4:()=>B$,uuidv6:()=>Z$,uuidv7:()=>V$,void:()=>$0,xid:()=>Q$,xor:()=>R0});var lr={};Gn(lr,{$ZodAny:()=>kg,$ZodArray:()=>Pg,$ZodAsyncError:()=>kn,$ZodBase64:()=>pg,$ZodBase64URL:()=>fg,$ZodBigInt:()=>$c,$ZodBigIntFormat:()=>hg,$ZodBoolean:()=>qa,$ZodCIDRv4:()=>cg,$ZodCIDRv6:()=>ug,$ZodCUID:()=>Ym,$ZodCUID2:()=>qm,$ZodCatch:()=>Vg,$ZodCheck:()=>Ie,$ZodCheckBigIntFormat:()=>Pm,$ZodCheckEndsWith:()=>Am,$ZodCheckGreaterThan:()=>hc,$ZodCheckIncludes:()=>Lm,$ZodCheckLengthEquals:()=>jm,$ZodCheckLessThan:()=>yc,$ZodCheckLowerCase:()=>Dm,$ZodCheckMaxLength:()=>Cm,$ZodCheckMaxSize:()=>Im,$ZodCheckMimeType:()=>Wm,$ZodCheckMinLength:()=>Tm,$ZodCheckMinSize:()=>Em,$ZodCheckMultipleOf:()=>wm,$ZodCheckNumberFormat:()=>zm,$ZodCheckOverwrite:()=>Mm,$ZodCheckProperty:()=>Um,$ZodCheckRegex:()=>Om,$ZodCheckSizeEquals:()=>Rm,$ZodCheckStartsWith:()=>Fm,$ZodCheckStringFormat:()=>ci,$ZodCheckUpperCase:()=>Nm,$ZodCodec:()=>el,$ZodCustom:()=>Qg,$ZodCustomStringFormat:()=>vg,$ZodDate:()=>zg,$ZodDefault:()=>Wg,$ZodDiscriminatedUnion:()=>Rg,$ZodE164:()=>mg,$ZodEmail:()=>Jm,$ZodEmoji:()=>Xm,$ZodEncodeError:()=>Cr,$ZodEnum:()=>Dg,$ZodError:()=>Ha,$ZodExactOptional:()=>Ag,$ZodFile:()=>Lg,$ZodFunction:()=>Kg,$ZodGUID:()=>Vm,$ZodIPv4:()=>ag,$ZodIPv6:()=>lg,$ZodISODate:()=>rg,$ZodISODateTime:()=>ng,$ZodISODuration:()=>ig,$ZodISOTime:()=>og,$ZodIntersection:()=>Cg,$ZodJWT:()=>gg,$ZodKSUID:()=>tg,$ZodLazy:()=>qg,$ZodLiteral:()=>Ng,$ZodMAC:()=>sg,$ZodMap:()=>jg,$ZodNaN:()=>Hg,$ZodNanoID:()=>Km,$ZodNever:()=>$g,$ZodNonOptional:()=>Bg,$ZodNull:()=>Sg,$ZodNullable:()=>Ug,$ZodNumber:()=>_c,$ZodNumberFormat:()=>yg,$ZodObject:()=>D_,$ZodObjectJIT:()=>Ig,$ZodOptional:()=>zc,$ZodPipe:()=>Pc,$ZodPrefault:()=>Mg,$ZodPreprocess:()=>Jg,$ZodPromise:()=>Yg,$ZodReadonly:()=>Gg,$ZodRealError:()=>Nt,$ZodRecord:()=>Tg,$ZodRegistry:()=>Cc,$ZodSet:()=>Og,$ZodString:()=>fo,$ZodStringFormat:()=>we,$ZodSuccess:()=>Zg,$ZodSymbol:()=>xg,$ZodTemplateLiteral:()=>Xg,$ZodTransform:()=>Fg,$ZodTuple:()=>wc,$ZodType:()=>ne,$ZodULID:()=>Qm,$ZodURL:()=>Gm,$ZodUUID:()=>Hm,$ZodUndefined:()=>bg,$ZodUnion:()=>Qa,$ZodUnknown:()=>_g,$ZodVoid:()=>wg,$ZodXID:()=>eg,$ZodXor:()=>Eg,$brand:()=>Of,$constructor:()=>b,$input:()=>tv,$output:()=>ev,Doc:()=>Ya,JSONSchema:()=>L$,JSONSchemaGenerator:()=>su,NEVER:()=>jf,TimePrecision:()=>iv,_any:()=>zv,_array:()=>jv,_base64:()=>Xc,_base64url:()=>Kc,_bigint:()=>xv,_boolean:()=>yv,_catch:()=>AR,_check:()=>N$,_cidrv4:()=>Jc,_cidrv6:()=>Gc,_coercedBigint:()=>bv,_coercedBoolean:()=>hv,_coercedDate:()=>Cv,_coercedNumber:()=>dv,_coercedString:()=>rv,_cuid:()=>Uc,_cuid2:()=>Wc,_custom:()=>Dv,_date:()=>Rv,_decode:()=>sc,_decodeAsync:()=>uc,_default:()=>NR,_discriminatedUnion:()=>$R,_e164:()=>Yc,_email:()=>jc,_emoji:()=>Fc,_encode:()=>lc,_encodeAsync:()=>cc,_endsWith:()=>vi,_enum:()=>RR,_file:()=>Ov,_float32:()=>fv,_float64:()=>mv,_gt:()=>An,_gte:()=>Pt,_guid:()=>rl,_includes:()=>mi,_int:()=>pv,_int32:()=>gv,_int64:()=>Sv,_intersection:()=>wR,_ipv4:()=>Vc,_ipv6:()=>Hc,_isoDate:()=>lv,_isoDateTime:()=>av,_isoDuration:()=>cv,_isoTime:()=>sv,_jwt:()=>qc,_ksuid:()=>Zc,_lazy:()=>BR,_length:()=>vo,_literal:()=>TR,_lowercase:()=>pi,_lt:()=>Fn,_lte:()=>Ht,_mac:()=>ov,_map:()=>IR,_max:()=>Ht,_maxLength:()=>go,_maxSize:()=>Lr,_mime:()=>yi,_min:()=>Pt,_minLength:()=>ar,_minSize:()=>Un,_multipleOf:()=>Nr,_nan:()=>Tv,_nanoid:()=>Ac,_nativeEnum:()=>CR,_negative:()=>eu,_never:()=>Iv,_nonnegative:()=>nu,_nonoptional:()=>LR,_nonpositive:()=>tu,_normalize:()=>hi,_null:()=>wv,_nullable:()=>DR,_number:()=>uv,_optional:()=>OR,_overwrite:()=>_n,_parse:()=>ii,_parseAsync:()=>ai,_pipe:()=>UR,_positive:()=>Qc,_promise:()=>ZR,_property:()=>ru,_readonly:()=>WR,_record:()=>PR,_refine:()=>Nv,_regex:()=>di,_safeDecode:()=>pc,_safeDecodeAsync:()=>mc,_safeEncode:()=>dc,_safeEncodeAsync:()=>fc,_safeParse:()=>li,_safeParseAsync:()=>si,_set:()=>ER,_size:()=>mo,_slugify:()=>ki,_startsWith:()=>gi,_string:()=>nv,_stringFormat:()=>_i,_stringbool:()=>Uv,_success:()=>FR,_superRefine:()=>Lv,_symbol:()=>_v,_templateLiteral:()=>MR,_toLowerCase:()=>bi,_toUpperCase:()=>Si,_transform:()=>jR,_trim:()=>xi,_tuple:()=>zR,_uint32:()=>vv,_uint64:()=>kv,_ulid:()=>Mc,_undefined:()=>$v,_union:()=>kR,_unknown:()=>Pv,_uppercase:()=>fi,_url:()=>ol,_uuid:()=>Oc,_uuidv4:()=>Dc,_uuidv6:()=>Nc,_uuidv7:()=>Lc,_void:()=>Ev,_xid:()=>Bc,_xor:()=>_R,clone:()=>wt,config:()=>Me,createStandardJSONSchemaMethod:()=>$i,createToJSONSchemaMethod:()=>Wv,decode:()=>ZI,decodeAsync:()=>HI,describe:()=>Fv,encode:()=>BI,encodeAsync:()=>VI,extractDefs:()=>Ar,finalize:()=>Ur,flattenError:()=>Ja,formatError:()=>Ga,globalConfig:()=>co,globalRegistry:()=>ct,initializeContext:()=>Fr,isValidBase64:()=>dg,isValidBase64URL:()=>C_,isValidJWT:()=>T_,locales:()=>nl,meta:()=>Av,parse:()=>ic,parseAsync:()=>ac,prettifyError:()=>Jf,process:()=>xe,regexes:()=>Vt,registry:()=>Tc,safeDecode:()=>GI,safeDecodeAsync:()=>KI,safeEncode:()=>JI,safeEncodeAsync:()=>XI,safeParse:()=>Gf,safeParseAsync:()=>Xf,toDotPath:()=>u_,toJSONSchema:()=>lu,treeifyError:()=>Hf,util:()=>E,version:()=>Bm});var i_,jf=Object.freeze({status:"aborted"});function b(e,t,r){function o(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 c=a.prototype,d=Object.keys(c);for(let p=0;p<d.length;p++){let f=d[p];f in l||(l[f]=c[f].bind(l))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(l){var s;let c=r?.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(let d of c._zod.deferred)d();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Of=Symbol("zod_brand"),kn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Cr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(i_=globalThis).__zod_globalConfig??(i_.__zod_globalConfig={});var co=globalThis.__zod_globalConfig;function Me(e){return e&&Object.assign(co,e),co}var E={};Gn(E,{BIGINT_FORMAT_RANGES:()=>Zf,Class:()=>Nf,NUMBER_FORMAT_RANGES:()=>Bf,aborted:()=>Dr,allowsEval:()=>Af,assert:()=>SI,assertEqual:()=>yI,assertIs:()=>xI,assertNever:()=>bI,assertNotEqual:()=>hI,assignProp:()=>jr,base64ToUint8Array:()=>l_,base64urlToUint8Array:()=>FI,cached:()=>ri,captureStackTrace:()=>oc,cleanEnum:()=>LI,cleanRegex:()=>Ma,clone:()=>wt,cloneDef:()=>_I,createTransparentProxy:()=>EI,defineLazy:()=>ue,esc:()=>rc,escapeRegex:()=>ln,explicitlyAborted:()=>Vf,extend:()=>TI,finalizeIssue:()=>zt,floatSafeRemainder:()=>Lf,getElementAtPath:()=>$I,getEnumValues:()=>Wa,getLengthableOrigin:()=>Va,getParsedType:()=>II,getSizableOrigin:()=>Za,hexToUint8Array:()=>UI,isObject:()=>uo,isPlainObject:()=>Or,issue:()=>oi,joinValues:()=>k,jsonStringifyReplacer:()=>ni,merge:()=>OI,mergeDefs:()=>ir,normalizeParams:()=>O,nullish:()=>Tr,numKeys:()=>PI,objectClone:()=>kI,omit:()=>CI,optionalKeys:()=>Mf,parsedType:()=>I,partial:()=>DI,pick:()=>RI,prefixIssues:()=>Dt,primitiveTypes:()=>Wf,promiseAllObject:()=>wI,propertyKeyTypes:()=>Ba,randomString:()=>zI,required:()=>NI,safeExtend:()=>jI,shallowClone:()=>Uf,slugify:()=>Ff,stringifyPrimitive:()=>z,uint8ArrayToBase64:()=>s_,uint8ArrayToBase64url:()=>AI,uint8ArrayToHex:()=>WI,unwrapMessage:()=>Ua});function yI(e){return e}function hI(e){return e}function xI(e){}function bI(e){throw new Error("Unexpected value in exhaustive check")}function SI(e){}function Wa(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function k(e,t="|"){return e.map(r=>z(r)).join(t)}function ni(e,t){return typeof t=="bigint"?t.toString():t}function ri(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Tr(e){return e==null}function Ma(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Lf(e,t){let r=e/t,o=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var a_=Symbol("evaluating");function ue(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==a_)return o===void 0&&(o=a_,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function kI(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function jr(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ir(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function _I(e){return ir(e._zod.def)}function $I(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function wI(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function zI(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function rc(e){return JSON.stringify(e)}function Ff(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var oc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function uo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Af=ri(()=>{if(co.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Or(e){if(uo(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(uo(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Uf(e){return Or(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function PI(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var II=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}`)}},Ba=new Set(["string","number","symbol"]),Wf=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ln(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wt(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function O(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(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Mf(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Bf={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]},Zf={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function RI(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=ir(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=r.shape[l])}return jr(this,"shape",a),a},checks:[]});return wt(e,i)}function CI(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=ir(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return jr(this,"shape",a),a},checks:[]});return wt(e,i)}function TI(e,t){if(!Or(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=ir(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return jr(this,"shape",i),i}});return wt(e,n)}function jI(e,t){if(!Or(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=ir(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return jr(this,"shape",o),o}});return wt(e,r)}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 r=ir(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return jr(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return wt(e,r)}function DI(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=ir(t._zod.def,{get shape(){let l=t._zod.def.shape,s={...l};if(r)for(let c in r){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(let c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return jr(this,"shape",s),s},checks:[]});return wt(t,a)}function NI(e,t,r){let o=ir(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return jr(this,"shape",i),i}});return wt(t,o)}function Dr(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Vf(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function Dt(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Ua(e){return typeof e=="string"?e:e?.message}function zt(e,t,r){let o=e.message?e.message:Ua(e.inst?._zod.def?.error?.(e))??Ua(t?.error?.(e))??Ua(r.customError?.(e))??Ua(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t?.reportInput&&(l.input=a),l}function Za(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Va(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function I(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 r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function oi(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function LI(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function l_(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function s_(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function FI(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return l_(t+r)}function AI(e){return s_(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function UI(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function WI(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Nf=class{constructor(...t){}};var c_=(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,ni,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ha=b("$ZodError",c_),Nt=b("$ZodError",c_,{Parent:Error});function Ja(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function Ga(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let l=[...i,...a.path];if(l.length===0)r._errors.push(t(a));else{let s=r,c=0;for(;c<l.length;){let d=l[c];c===l.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(t(a))):s[d]=s[d]||{_errors:[]},s=s[d],c++}}}};return o(e),r}function Hf(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,l;for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>o({issues:c},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let c=[...i,...s.path];if(c.length===0){r.errors.push(t(s));continue}let d=r,p=0;for(;p<c.length;){let f=c[p],g=p===c.length-1;typeof f=="string"?(d.properties??(d.properties={}),(a=d.properties)[f]??(a[f]={errors:[]}),d=d.properties[f]):(d.items??(d.items=[]),(l=d.items)[f]??(l[f]={errors:[]}),d=d.items[f]),g&&d.errors.push(t(s)),p++}}};return o(e),r}function u_(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function Jf(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${u_(o.path)}`);return t.join(`
|
|
9
|
+
`)}var ii=e=>(t,r,o,n)=>{let i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new kn;if(a.issues.length){let l=new(n?.Err??e)(a.issues.map(s=>zt(s,i,Me())));throw oc(l,n?.callee),l}return a.value},ic=ii(Nt),ai=e=>async(t,r,o,n)=>{let i=o?{...o,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(n?.Err??e)(a.issues.map(s=>zt(s,i,Me())));throw oc(l,n?.callee),l}return a.value},ac=ai(Nt),li=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new kn;return i.issues.length?{success:!1,error:new(e??Ha)(i.issues.map(a=>zt(a,n,Me())))}:{success:!0,data:i.value}},Gf=li(Nt),si=e=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>zt(a,n,Me())))}:{success:!0,data:i.value}},Xf=si(Nt),lc=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return ii(e)(t,r,n)},BI=lc(Nt),sc=e=>(t,r,o)=>ii(e)(t,r,o),ZI=sc(Nt),cc=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return ai(e)(t,r,n)},VI=cc(Nt),uc=e=>async(t,r,o)=>ai(e)(t,r,o),HI=uc(Nt),dc=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return li(e)(t,r,n)},JI=dc(Nt),pc=e=>(t,r,o)=>li(e)(t,r,o),GI=pc(Nt),fc=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return si(e)(t,r,n)},XI=fc(Nt),mc=e=>async(t,r,o)=>si(e)(t,r,o),KI=mc(Nt);var Vt={};Gn(Vt,{base64:()=>dm,base64url:()=>gc,bigint:()=>hm,boolean:()=>bm,browserEmail:()=>oE,cidrv4:()=>cm,cidrv6:()=>um,cuid:()=>Kf,cuid2:()=>Yf,date:()=>mm,datetime:()=>vm,domain:()=>lE,duration:()=>nm,e164:()=>fm,email:()=>om,emoji:()=>im,extendedDuration:()=>YI,guid:()=>rm,hex:()=>sE,hostname:()=>aE,html5Email:()=>tE,httpProtocol:()=>pm,idnEmail:()=>rE,integer:()=>xm,ipv4:()=>am,ipv6:()=>lm,ksuid:()=>em,lowercase:()=>_m,mac:()=>sm,md5_base64:()=>uE,md5_base64url:()=>dE,md5_hex:()=>cE,nanoid:()=>tm,null:()=>Sm,number:()=>vc,rfc5322Email:()=>nE,sha1_base64:()=>fE,sha1_base64url:()=>mE,sha1_hex:()=>pE,sha256_base64:()=>vE,sha256_base64url:()=>yE,sha256_hex:()=>gE,sha384_base64:()=>xE,sha384_base64url:()=>bE,sha384_hex:()=>hE,sha512_base64:()=>kE,sha512_base64url:()=>_E,sha512_hex:()=>SE,string:()=>ym,time:()=>gm,ulid:()=>qf,undefined:()=>km,unicodeEmail:()=>d_,uppercase:()=>$m,uuid:()=>po,uuid4:()=>qI,uuid6:()=>QI,uuid7:()=>eE,xid:()=>Qf});var Kf=/^[cC][0-9a-z]{6,}$/,Yf=/^[0-9a-z]+$/,qf=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Qf=/^[0-9a-vA-V]{20}$/,em=/^[A-Za-z0-9]{27}$/,tm=/^[a-zA-Z0-9_-]{21}$/,nm=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,YI=/^[-+]?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)?)??$/,rm=/^([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})$/,po=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)$/,qI=po(4),QI=po(6),eE=po(7),om=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tE=/^[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])?)*$/,nE=/^(([^<>()\[\]\\.,;:\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,}))$/,d_=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,rE=d_,oE=/^[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])?)*$/,iE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function im(){return new RegExp(iE,"u")}var am=/^(?:(?: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])$/,lm=/^(([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}|:))$/,sm=e=>{let t=ln(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},cm=/^((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])$/,um=/^(([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])$/,dm=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,gc=/^[A-Za-z0-9_-]*$/,aE=/^(?=.{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])?)*\.?$/,lE=/^([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}$/,p_="(?:(?:\\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])))",mm=new RegExp(`^${p_}$`);function f_(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 gm(e){return new RegExp(`^${f_(e)}$`)}function vm(e){let t=f_({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${p_}T(?:${o})$`)}var ym=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},hm=/^-?\d+n?$/,xm=/^-?\d+$/,vc=/^-?\d+(?:\.\d+)?$/,bm=/^(?:true|false)$/i,Sm=/^null$/i;var km=/^undefined$/i;var _m=/^[^A-Z]*$/,$m=/^[^a-z]*$/,sE=/^[0-9a-fA-F]*$/;function Xa(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ka(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var cE=/^[0-9a-fA-F]{32}$/,uE=Xa(22,"=="),dE=Ka(22),pE=/^[0-9a-fA-F]{40}$/,fE=Xa(27,"="),mE=Ka(27),gE=/^[0-9a-fA-F]{64}$/,vE=Xa(43,"="),yE=Ka(43),hE=/^[0-9a-fA-F]{96}$/,xE=Xa(64,""),bE=Ka(64),SE=/^[0-9a-fA-F]{128}$/,kE=Xa(86,"=="),_E=Ka(86);var Ie=b("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),g_={number:"number",bigint:"bigint",object:"date"},yc=b("$ZodCheckLessThan",(e,t)=>{Ie.init(e,t);let r=g_[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hc=b("$ZodCheckGreaterThan",(e,t)=>{Ie.init(e,t);let r=g_[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wm=b("$ZodCheckMultipleOf",(e,t)=>{Ie.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Lf(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),zm=b("$ZodCheckNumberFormat",(e,t)=>{Ie.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=Bf[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=n,l.maximum=i,r&&(l.pattern=xm)}),e._zod.check=a=>{let l=a.value;if(r){if(!Number.isInteger(l)){a.issues.push({expected:o,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:o,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:o,inclusive:!0,continue:!t.abort});return}}l<n&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Pm=b("$ZodCheckBigIntFormat",(e,t)=>{Ie.init(e,t);let[r,o]=Zf[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Im=b("$ZodCheckMaxSize",(e,t)=>{var r;Ie.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Tr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:Za(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Em=b("$ZodCheckMinSize",(e,t)=>{var r;Ie.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Tr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:Za(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Rm=b("$ZodCheckSizeEquals",(e,t)=>{var r;Ie.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Tr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:Za(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Cm=b("$ZodCheckMaxLength",(e,t)=>{var r;Ie.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Tr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=Va(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Tm=b("$ZodCheckMinLength",(e,t)=>{var r;Ie.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Tr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=Va(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),jm=b("$ZodCheckLengthEquals",(e,t)=>{var r;Ie.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Tr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=Va(n),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),ci=b("$ZodCheckStringFormat",(e,t)=>{var r,o;Ie.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Om=b("$ZodCheckRegex",(e,t)=>{ci.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Dm=b("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=_m),ci.init(e,t)}),Nm=b("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=$m),ci.init(e,t)}),Lm=b("$ZodCheckIncludes",(e,t)=>{Ie.init(e,t);let r=ln(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Fm=b("$ZodCheckStartsWith",(e,t)=>{Ie.init(e,t);let r=new RegExp(`^${ln(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Am=b("$ZodCheckEndsWith",(e,t)=>{Ie.init(e,t);let r=new RegExp(`.*${ln(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function m_(e,t,r){e.issues.length&&t.issues.push(...Dt(r,e.issues))}var Um=b("$ZodCheckProperty",(e,t)=>{Ie.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>m_(n,r,t.property));m_(o,r,t.property)}}),Wm=b("$ZodCheckMimeType",(e,t)=>{Ie.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),Mm=b("$ZodCheckOverwrite",(e,t)=>{Ie.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Ya=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 o=t.split(`
|
|
10
10
|
`).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(`
|
|
11
|
-
`))}};var Dm={major:4,minor:4,patch:3};var ee=S("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Dm;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,l,s)=>{let c=zr(a),d;for(let p of l){if(p._zod.def.when){if(Lf(a)||!p._zod.def.when(a))continue}else if(c)continue;let f=a.issues.length,g=p._zod.check(a);if(g instanceof Promise&&s?.async===!1)throw new fn;if(d||g instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await g,a.issues.length!==f&&(c||(c=zr(a,f)))});else{if(a.issues.length===f)continue;c||(c=zr(a,f))}}return d?d.then(()=>a):a},i=(a,l,s)=>{if(zr(a))return a.aborted=!0,a;let c=n(l,o,s);if(c instanceof Promise){if(s.async===!1)throw new fn;return c.then(d=>e._zod.parse(d,s))}return e._zod.parse(c,s)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return c instanceof Promise?c.then(d=>i(d,a,l)):i(c,a,l)}let s=e._zod.parse(a,l);if(s instanceof Promise){if(l.async===!1)throw new fn;return s.then(c=>n(c,o,l))}return n(s,o,l)}}se(e,"~standard",()=>({validate:n=>{try{let i=Uf(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Wf(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),eo=S("$ZodString",(e,t)=>{ee.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??cm(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Se=S("$ZodStringFormat",(e,t)=>{Ko.init(e,t),eo.init(e,t)}),Lm=S("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Xf),Se.init(e,t)}),Fm=S("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Qr(o))}else t.pattern??(t.pattern=Qr());Se.init(e,t)}),Am=S("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Kf),Se.init(e,t)}),Um=S("$ZodURL",(e,t)=>{Se.init(e,t),e._zod.check=r=>{try{let o=r.value.trim();if(!t.normalize&&t.protocol?.source===om.source&&!/^https?:\/\//i.test(o)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Wm=S("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Yf()),Se.init(e,t)}),Mm=S("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Jf),Se.init(e,t)}),Bm=S("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Mf),Se.init(e,t)}),Zm=S("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Bf),Se.init(e,t)}),Vm=S("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Zf),Se.init(e,t)}),Hm=S("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Vf),Se.init(e,t)}),Jm=S("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Hf),Se.init(e,t)}),Gm=S("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=sm(t)),Se.init(e,t)}),Xm=S("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=am),Se.init(e,t)}),Km=S("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=lm(t)),Se.init(e,t)}),Ym=S("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Gf),Se.init(e,t)}),qm=S("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=qf),Se.init(e,t),e._zod.bag.format="ipv4"}),Qm=S("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Qf),Se.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),eg=S("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=em(t.delimiter)),Se.init(e,t),e._zod.bag.format="mac"}),tg=S("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=tm),Se.init(e,t)}),ng=S("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=nm),Se.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function rg(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var og=S("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=rm),Se.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{rg(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function S_(e){if(!nc.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return rg(r)}var ig=S("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=nc),Se.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{S_(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),ag=S("$ZodE164",(e,t)=>{t.pattern??(t.pattern=im),Se.init(e,t)});function b_(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var lg=S("$ZodJWT",(e,t)=>{Se.init(e,t),e._zod.check=r=>{b_(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),sg=S("$ZodCustomStringFormat",(e,t)=>{Se.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),uc=S("$ZodNumber",(e,t)=>{ee.init(e,t),e._zod.pattern=e._zod.bag.pattern??rc,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),cg=S("$ZodNumberFormat",(e,t)=>{hm.init(e,t),uc.init(e,t)}),Ua=S("$ZodBoolean",(e,t)=>{ee.init(e,t),e._zod.pattern=pm,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),dc=S("$ZodBigInt",(e,t)=>{ee.init(e,t),e._zod.pattern=um,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),ug=S("$ZodBigIntFormat",(e,t)=>{xm.init(e,t),dc.init(e,t)}),dg=S("$ZodSymbol",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),pg=S("$ZodUndefined",(e,t)=>{ee.init(e,t),e._zod.pattern=mm,e._zod.values=new Set([void 0]),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),fg=S("$ZodNull",(e,t)=>{ee.init(e,t),e._zod.pattern=fm,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),mg=S("$ZodAny",(e,t)=>{ee.init(e,t),e._zod.parse=r=>r}),gg=S("$ZodUnknown",(e,t)=>{ee.init(e,t),e._zod.parse=r=>r}),vg=S("$ZodNever",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),yg=S("$ZodVoid",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),hg=S("$ZodDate",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function a_(e,t,r){e.issues.length&&t.issues.push(...Et(r,e.issues)),t.value[r]=e.value}var xg=S("$ZodArray",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let l=n[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>a_(c,r,a))):a_(s,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function cc(e,t,r,o,n,i){let a=r in o;if(e.issues.length){if(n&&i&&!a)return;t.issues.push(...Et(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function k_(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=Of(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function __(e,t,r,o,n,i){let a=[],l=n.keySet,s=n.catchall._zod,c=s.def.type,d=s.optin==="optional",p=s.optout==="optional";for(let f in t){if(f==="__proto__"||l.has(f))continue;if(c==="never"){a.push(f);continue}let g=s.run({value:t[f],issues:[]},o);g instanceof Promise?e.push(g.then(x=>cc(x,r,f,t,d,p))):cc(g,r,f,t,d,p)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var $_=S("$ZodObject",(e,t)=>{if(ee.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 o=Zo(()=>k_(t));se(e._zod,"propValues",()=>{let l=t.shape,s={};for(let c in l){let d=l[c]._zod;if(d.values){s[c]??(s[c]=new Set);for(let p of d.values)s[c].add(p)}}return s});let n=qr,i=t.catchall,a;e._zod.parse=(l,s)=>{a??(a=o.value);let c=l.value;if(!n(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};let d=[],p=a.shape;for(let f of a.keys){let g=p[f],x=g._zod.optin==="optional",h=g._zod.optout==="optional",_=g._zod.run({value:c[f],issues:[]},s);_ instanceof Promise?d.push(_.then(v=>cc(v,l,f,c,x,h))):cc(_,l,f,c,x,h)}return i?__(d,c,l,s,o.value,e):d.length?Promise.all(d).then(()=>l):l}}),Sg=S("$ZodObjectJIT",(e,t)=>{$_.init(e,t);let r=e._zod.parse,o=Zo(()=>k_(t)),n=f=>{let g=new Aa(["shape","payload","ctx"]),x=o.value,h=y=>{let b=Zs(y);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};g.write("const input = payload.value;");let _=Object.create(null),v=0;for(let y of x.keys)_[y]=`key_${v++}`;g.write("const newResult = {};");for(let y of x.keys){let b=_[y],P=Zs(y),O=f[y],T=O?._zod?.optin==="optional",Z=O?._zod?.optout==="optional";g.write(`const ${b} = ${h(y)};`),T&&Z?g.write(`
|
|
12
|
-
if (${
|
|
11
|
+
`))}};var Bm={major:4,minor:4,patch:3};var ne=b("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Bm;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,l,s)=>{let c=Dr(a),d;for(let p of l){if(p._zod.def.when){if(Vf(a)||!p._zod.def.when(a))continue}else if(c)continue;let f=a.issues.length,g=p._zod.check(a);if(g instanceof Promise&&s?.async===!1)throw new kn;if(d||g instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await g,a.issues.length!==f&&(c||(c=Dr(a,f)))});else{if(a.issues.length===f)continue;c||(c=Dr(a,f))}}return d?d.then(()=>a):a},i=(a,l,s)=>{if(Dr(a))return a.aborted=!0,a;let c=n(l,o,s);if(c instanceof Promise){if(s.async===!1)throw new kn;return c.then(d=>e._zod.parse(d,s))}return e._zod.parse(c,s)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return c instanceof Promise?c.then(d=>i(d,a,l)):i(c,a,l)}let s=e._zod.parse(a,l);if(s instanceof Promise){if(l.async===!1)throw new kn;return s.then(c=>n(c,o,l))}return n(s,o,l)}}ue(e,"~standard",()=>({validate:n=>{try{let i=Gf(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Xf(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),fo=b("$ZodString",(e,t)=>{ne.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ym(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),we=b("$ZodStringFormat",(e,t)=>{ci.init(e,t),fo.init(e,t)}),Vm=b("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=rm),we.init(e,t)}),Hm=b("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=po(o))}else t.pattern??(t.pattern=po());we.init(e,t)}),Jm=b("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=om),we.init(e,t)}),Gm=b("$ZodURL",(e,t)=>{we.init(e,t),e._zod.check=r=>{try{let o=r.value.trim();if(!t.normalize&&t.protocol?.source===pm.source&&!/^https?:\/\//i.test(o)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Xm=b("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=im()),we.init(e,t)}),Km=b("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=tm),we.init(e,t)}),Ym=b("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Kf),we.init(e,t)}),qm=b("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Yf),we.init(e,t)}),Qm=b("$ZodULID",(e,t)=>{t.pattern??(t.pattern=qf),we.init(e,t)}),eg=b("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Qf),we.init(e,t)}),tg=b("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=em),we.init(e,t)}),ng=b("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=vm(t)),we.init(e,t)}),rg=b("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=mm),we.init(e,t)}),og=b("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=gm(t)),we.init(e,t)}),ig=b("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=nm),we.init(e,t)}),ag=b("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=am),we.init(e,t),e._zod.bag.format="ipv4"}),lg=b("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=lm),we.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),sg=b("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=sm(t.delimiter)),we.init(e,t),e._zod.bag.format="mac"}),cg=b("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=cm),we.init(e,t)}),ug=b("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=um),we.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function dg(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var pg=b("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=dm),we.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{dg(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function C_(e){if(!gc.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return dg(r)}var fg=b("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=gc),we.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{C_(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),mg=b("$ZodE164",(e,t)=>{t.pattern??(t.pattern=fm),we.init(e,t)});function T_(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var gg=b("$ZodJWT",(e,t)=>{we.init(e,t),e._zod.check=r=>{T_(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),vg=b("$ZodCustomStringFormat",(e,t)=>{we.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),_c=b("$ZodNumber",(e,t)=>{ne.init(e,t),e._zod.pattern=e._zod.bag.pattern??vc,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),yg=b("$ZodNumberFormat",(e,t)=>{zm.init(e,t),_c.init(e,t)}),qa=b("$ZodBoolean",(e,t)=>{ne.init(e,t),e._zod.pattern=bm,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),$c=b("$ZodBigInt",(e,t)=>{ne.init(e,t),e._zod.pattern=hm,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),hg=b("$ZodBigIntFormat",(e,t)=>{Pm.init(e,t),$c.init(e,t)}),xg=b("$ZodSymbol",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),bg=b("$ZodUndefined",(e,t)=>{ne.init(e,t),e._zod.pattern=km,e._zod.values=new Set([void 0]),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Sg=b("$ZodNull",(e,t)=>{ne.init(e,t),e._zod.pattern=Sm,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),kg=b("$ZodAny",(e,t)=>{ne.init(e,t),e._zod.parse=r=>r}),_g=b("$ZodUnknown",(e,t)=>{ne.init(e,t),e._zod.parse=r=>r}),$g=b("$ZodNever",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),wg=b("$ZodVoid",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),zg=b("$ZodDate",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function y_(e,t,r){e.issues.length&&t.issues.push(...Dt(r,e.issues)),t.value[r]=e.value}var Pg=b("$ZodArray",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let l=n[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>y_(c,r,a))):y_(s,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function kc(e,t,r,o,n,i){let a=r in o;if(e.issues.length){if(n&&i&&!a)return;t.issues.push(...Dt(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function j_(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=Mf(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function O_(e,t,r,o,n,i){let a=[],l=n.keySet,s=n.catchall._zod,c=s.def.type,d=s.optin==="optional",p=s.optout==="optional";for(let f in t){if(f==="__proto__"||l.has(f))continue;if(c==="never"){a.push(f);continue}let g=s.run({value:t[f],issues:[]},o);g instanceof Promise?e.push(g.then(x=>kc(x,r,f,t,d,p))):kc(g,r,f,t,d,p)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var D_=b("$ZodObject",(e,t)=>{if(ne.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 o=ri(()=>j_(t));ue(e._zod,"propValues",()=>{let l=t.shape,s={};for(let c in l){let d=l[c]._zod;if(d.values){s[c]??(s[c]=new Set);for(let p of d.values)s[c].add(p)}}return s});let n=uo,i=t.catchall,a;e._zod.parse=(l,s)=>{a??(a=o.value);let c=l.value;if(!n(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};let d=[],p=a.shape;for(let f of a.keys){let g=p[f],x=g._zod.optin==="optional",h=g._zod.optout==="optional",_=g._zod.run({value:c[f],issues:[]},s);_ instanceof Promise?d.push(_.then(v=>kc(v,l,f,c,x,h))):kc(_,l,f,c,x,h)}return i?O_(d,c,l,s,o.value,e):d.length?Promise.all(d).then(()=>l):l}}),Ig=b("$ZodObjectJIT",(e,t)=>{D_.init(e,t);let r=e._zod.parse,o=ri(()=>j_(t)),n=f=>{let g=new Ya(["shape","payload","ctx"]),x=o.value,h=y=>{let S=rc(y);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};g.write("const input = payload.value;");let _=Object.create(null),v=0;for(let y of x.keys)_[y]=`key_${v++}`;g.write("const newResult = {};");for(let y of x.keys){let S=_[y],P=rc(y),j=f[y],R=j?._zod?.optin==="optional",B=j?._zod?.optout==="optional";g.write(`const ${S} = ${h(y)};`),R&&B?g.write(`
|
|
12
|
+
if (${S}.issues.length) {
|
|
13
13
|
if (${P} in input) {
|
|
14
|
-
payload.issues = payload.issues.concat(${
|
|
14
|
+
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
15
15
|
...iss,
|
|
16
16
|
path: iss.path ? [${P}, ...iss.path] : [${P}]
|
|
17
17
|
})));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
if (${
|
|
21
|
+
if (${S}.value === undefined) {
|
|
22
22
|
if (${P} in input) {
|
|
23
23
|
newResult[${P}] = undefined;
|
|
24
24
|
}
|
|
25
25
|
} else {
|
|
26
|
-
newResult[${P}] = ${
|
|
26
|
+
newResult[${P}] = ${S}.value;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
`):
|
|
30
|
-
if (${
|
|
31
|
-
payload.issues = payload.issues.concat(${
|
|
29
|
+
`):R?g.write(`
|
|
30
|
+
if (${S}.issues.length) {
|
|
31
|
+
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
32
32
|
...iss,
|
|
33
33
|
path: iss.path ? [${P}, ...iss.path] : [${P}]
|
|
34
34
|
})));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
if (${
|
|
37
|
+
if (${S}.value === undefined) {
|
|
38
38
|
if (${P} in input) {
|
|
39
39
|
newResult[${P}] = undefined;
|
|
40
40
|
}
|
|
41
41
|
} else {
|
|
42
|
-
newResult[${P}] = ${
|
|
42
|
+
newResult[${P}] = ${S}.value;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
`):g.write(`
|
|
46
|
-
const ${
|
|
47
|
-
if (${
|
|
48
|
-
payload.issues = payload.issues.concat(${
|
|
46
|
+
const ${S}_present = ${P} in input;
|
|
47
|
+
if (${S}.issues.length) {
|
|
48
|
+
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
49
49
|
...iss,
|
|
50
50
|
path: iss.path ? [${P}, ...iss.path] : [${P}]
|
|
51
51
|
})));
|
|
52
52
|
}
|
|
53
|
-
if (!${
|
|
53
|
+
if (!${S}_present && !${S}.issues.length) {
|
|
54
54
|
payload.issues.push({
|
|
55
55
|
code: "invalid_type",
|
|
56
56
|
expected: "nonoptional",
|
|
@@ -59,17 +59,17 @@ Error generating stack: `+i.message+`
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
if (${
|
|
63
|
-
if (${
|
|
62
|
+
if (${S}_present) {
|
|
63
|
+
if (${S}.value === undefined) {
|
|
64
64
|
newResult[${P}] = undefined;
|
|
65
65
|
} else {
|
|
66
|
-
newResult[${P}] = ${
|
|
66
|
+
newResult[${P}] = ${S}.value;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
`)}g.write("payload.value = newResult;"),g.write("return payload;");let m=g.compile();return(y,b)=>m(f,y,b)},i,a=qr,l=!Yr.jitless,c=l&&Cf.value,d=t.catchall,p;e._zod.parse=(f,g)=>{p??(p=o.value);let x=f.value;return a(x)?l&&c&&g?.async===!1&&g.jitless!==!0?(i||(i=n(t.shape)),f=i(f,g),d?__([],x,f,g,p,e):f):r(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),f)}});function l_(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!zr(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>St(a,o,Fe())))}),t)}var Wa=S("$ZodUnion",(e,t)=>{ee.init(e,t),se(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),se(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),se(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),se(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${o.map(n=>Ra(n.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let l of t.options){let s=l._zod.run({value:o.value,issues:[]},n);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>l_(l,o,e,n)):l_(a,o,e,n)}});function s_(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>St(a,o,Fe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var bg=S("$ZodXor",(e,t)=>{Wa.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let l of t.options){let s=l._zod.run({value:o.value,issues:[]},n);s instanceof Promise?(a.push(s),i=!0):a.push(s)}return i?Promise.all(a).then(l=>s_(l,o,e,n)):s_(a,o,e,n)}}),kg=S("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Wa.init(e,t);let r=e._zod.parse;se(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[l,s]of Object.entries(a)){n[l]||(n[l]=new Set);for(let c of s)n[l].add(c)}}return n});let o=Zo(()=>{let n=t.options,i=new Map;for(let a of n){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(i.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);i.set(s,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!qr(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let l=o.value.get(a?.[t.discriminator]);return l?l._zod.run(n,i):t.unionFallback||i.direction==="backward"?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),_g=S("$ZodIntersection",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>c_(r,s,c)):c_(r,i,a)}});function Nm(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(wr(e)&&wr(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=Nm(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=Nm(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function c_(e,t,r){let o=new Map,n;for(let l of t.issues)if(l.code==="unrecognized_keys"){n??(n=l);for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(let l of r.issues)if(l.code==="unrecognized_keys")for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);let i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&n&&e.issues.push({...n,keys:i}),zr(e))return e;let a=Nm(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var pc=S("$ZodTuple",(e,t)=>{ee.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],l=u_(r,"optin"),s=u_(r,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>r.length&&o.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:i,inst:e,origin:"array"})}let c=new Array(r.length);for(let d=0;d<r.length;d++){let p=r[d]._zod.run({value:i[d],issues:[]},n);p instanceof Promise?a.push(p.then(f=>{c[d]=f})):c[d]=p}if(t.rest){let d=r.length-1,p=i.slice(r.length);for(let f of p){d++;let g=t.rest._zod.run({value:f,issues:[]},n);g instanceof Promise?a.push(g.then(x=>d_(x,o,d))):d_(g,o,d)}}return a.length?Promise.all(a).then(()=>p_(c,o,r,i,s)):p_(c,o,r,i,s)}});function u_(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function d_(e,t,r){e.issues.length&&t.issues.push(...Et(r,e.issues)),t.value[r]=e.value}function p_(e,t,r,o,n){for(let i=0;i<r.length;i++){let a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=n){t.value.length=i;break}t.issues.push(...Et(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(r[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var $g=S("$ZodRecord",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!wr(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let l=new Set;for(let c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);let d=t.keyType._zod.run({value:c,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(g=>St(g,o,Fe())),input:c,path:[c],inst:e});continue}let p=d.value,f=t.valueType._zod.run({value:n[c],issues:[]},o);f instanceof Promise?i.push(f.then(g=>{g.issues.length&&r.issues.push(...Et(c,g.issues)),r.value[p]=g.value})):(f.issues.length&&r.issues.push(...Et(c,f.issues)),r.value[p]=f.value)}let s;for(let c in n)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:s})}else{r.value={};for(let l of Reflect.ownKeys(n)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&rc.test(l)&&s.issues.length){let p=t.keyType._zod.run({value:Number(l),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(s=p)}if(s.issues.length){t.mode==="loose"?r.value[l]=n[l]:r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(p=>St(p,o,Fe())),input:l,path:[l],inst:e});continue}let d=t.valueType._zod.run({value:n[l],issues:[]},o);d instanceof Promise?i.push(d.then(p=>{p.issues.length&&r.issues.push(...Et(l,p.issues)),r.value[s.value]=p.value})):(d.issues.length&&r.issues.push(...Et(l,d.issues)),r.value[s.value]=d.value)}}return i.length?Promise.all(i).then(()=>r):r}}),wg=S("$ZodMap",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,l]of n){let s=t.keyType._zod.run({value:a,issues:[]},o),c=t.valueType._zod.run({value:l,issues:[]},o);s instanceof Promise||c instanceof Promise?i.push(Promise.all([s,c]).then(([d,p])=>{f_(d,p,r,a,n,e,o)})):f_(s,c,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function f_(e,t,r,o,n,i,a){e.issues.length&&(Ca.has(typeof o)?r.issues.push(...Et(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(l=>St(l,a,Fe()))})),t.issues.length&&(Ca.has(typeof o)?r.issues.push(...Et(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(l=>St(l,a,Fe()))})),r.value.set(e.value,t.value)}var zg=S("$ZodSet",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let l=t.valueType._zod.run({value:a,issues:[]},o);l instanceof Promise?i.push(l.then(s=>m_(s,r))):m_(l,r)}return i.length?Promise.all(i).then(()=>r):r}});function m_(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Ig=S("$ZodEnum",(e,t)=>{ee.init(e,t);let r=Ea(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>Ca.has(typeof n)).map(n=>typeof n=="string"?qt(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),Pg=S("$ZodLiteral",(e,t)=>{if(ee.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?qt(o):o?qt(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Eg=S("$ZodFile",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),Rg=S("$ZodTransform",(e,t)=>{ee.init(e,t),e._zod.optin="optional",e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new kr(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new fn;return r.value=n,r.fallback=!0,r}});function g_(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var fc=S("$ZodOptional",(e,t)=>{ee.init(e,t),e._zod.optin="optional",e._zod.optout="optional",se(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),se(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ra(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=r.value,i=t.innerType._zod.run(r,o);return i instanceof Promise?i.then(a=>g_(a,n)):g_(i,n)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),Cg=S("$ZodExactOptional",(e,t)=>{fc.init(e,t),se(e._zod,"values",()=>t.innerType._zod.values),se(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),Tg=S("$ZodNullable",(e,t)=>{ee.init(e,t),se(e._zod,"optin",()=>t.innerType._zod.optin),se(e._zod,"optout",()=>t.innerType._zod.optout),se(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ra(r.source)}|null)$`):void 0}),se(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),jg=S("$ZodDefault",(e,t)=>{ee.init(e,t),e._zod.optin="optional",se(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>v_(i,t)):v_(n,t)}});function v_(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Og=S("$ZodPrefault",(e,t)=>{ee.init(e,t),e._zod.optin="optional",se(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),Dg=S("$ZodNonOptional",(e,t)=>{ee.init(e,t),se(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>y_(i,e)):y_(n,e)}});function y_(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 Ng=S("$ZodSuccess",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new kr("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),Lg=S("$ZodCatch",(e,t)=>{ee.init(e,t),e._zod.optin="optional",se(e._zod,"optout",()=>t.innerType._zod.optout),se(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>St(a,o,Fe()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>St(i,o,Fe()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),Fg=S("$ZodNaN",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),mc=S("$ZodPipe",(e,t)=>{ee.init(e,t),se(e._zod,"values",()=>t.in._zod.values),se(e._zod,"optin",()=>t.in._zod.optin),se(e._zod,"optout",()=>t.out._zod.optout),se(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>ac(a,t.in,o)):ac(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>ac(i,t.out,o)):ac(n,t.out,o)}});function ac(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var Ma=S("$ZodCodec",(e,t)=>{ee.init(e,t),se(e._zod,"values",()=>t.in._zod.values),se(e._zod,"optin",()=>t.in._zod.optin),se(e._zod,"optout",()=>t.out._zod.optout),se(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>lc(a,t,o)):lc(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>lc(a,t,o)):lc(i,t,o)}}});function lc(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>sc(e,i,t.out,r)):sc(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>sc(e,i,t.in,r)):sc(e,n,t.in,r)}}function sc(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var Ag=S("$ZodPreprocess",(e,t)=>{mc.init(e,t)}),Ug=S("$ZodReadonly",(e,t)=>{ee.init(e,t),se(e._zod,"propValues",()=>t.innerType._zod.propValues),se(e._zod,"values",()=>t.innerType._zod.values),se(e._zod,"optin",()=>t.innerType?._zod?.optin),se(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(h_):h_(n)}});function h_(e){return e.value=Object.freeze(e.value),e}var Wg=S("$ZodTemplateLiteral",(e,t)=>{ee.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||jf.has(typeof o))r.push(qt(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),Mg=S("$ZodFunction",(e,t)=>(ee.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?Hs(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Hs(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Js(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Js(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new pc({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),Bg=S("$ZodPromise",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),Zg=S("$ZodLazy",(e,t)=>{ee.init(e,t),se(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),se(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),se(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),se(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),se(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),Vg=S("$ZodCustom",(e,t)=>{_e.init(e,t),ee.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>x_(i,r,o,e));x_(n,r,o,e)}});function x_(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(Vo(n))}}var Za={};An(Za,{ar:()=>w_,az:()=>z_,be:()=>P_,bg:()=>E_,ca:()=>R_,cs:()=>C_,da:()=>T_,de:()=>j_,el:()=>O_,en:()=>gc,eo:()=>D_,es:()=>N_,fa:()=>L_,fi:()=>F_,fr:()=>A_,frCA:()=>U_,he:()=>W_,hr:()=>M_,hu:()=>B_,hy:()=>V_,id:()=>H_,is:()=>J_,it:()=>G_,ja:()=>X_,ka:()=>K_,kh:()=>Y_,km:()=>vc,ko:()=>q_,lt:()=>e$,mk:()=>t$,ms:()=>n$,nl:()=>r$,no:()=>o$,ota:()=>i$,pl:()=>l$,ps:()=>a$,pt:()=>s$,ro:()=>c$,ru:()=>d$,sl:()=>p$,sv:()=>f$,ta:()=>m$,th:()=>g$,tr:()=>v$,ua:()=>y$,uk:()=>yc,ur:()=>h$,uz:()=>x$,vi:()=>S$,yo:()=>_$,zhCN:()=>b$,zhTW:()=>k$});var dE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return n.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 ${z(n.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: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${n.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.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 ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function w_(){return{localeError:dE()}}var pE=()=>{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(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${l}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${z(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function z_(){return{localeError:pE()}}function I_(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var fE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.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 ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=I_(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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=I_(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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function P_(){return{localeError:fE()}}var mE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.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 ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.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 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.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 "${i.prefix}"`;if(i.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 "${i.suffix}"`;if(i.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 "${i.includes}"`;if(i.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 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function E_(){return{localeError:mE()}}var gE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${l}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${z(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${k(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function R_(){return{localeError:gE()}}var vE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${l}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${z(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${k(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function C_(){return{localeError:vE()}}var yE=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${l}`:`Ugyldigt input: forventede ${i}, fik ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${z(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For stor: forventede ${l??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For lille: forventede ${l} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${l} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function T_(){return{localeError:yE()}}var hE=()=>{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(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${l}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${z(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function j_(){return{localeError:hE()}}var xE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.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 ${n.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 ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.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 ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.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 ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function O_(){return{localeError:xE()}}var SE=()=>{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(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return`Invalid input: expected ${i}, received ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.values[0])}`:`Invalid option: expected one of ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function gc(){return{localeError:SE()}}var bE=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${l}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${z(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function D_(){return{localeError:bE()}}var kE=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${z(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function N_(){return{localeError:kE()}}var _E=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.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 ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${z(n.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 ${k(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.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 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${k(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.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 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function L_(){return{localeError:_E()}}var $E=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${l}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${z(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${k(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function F_(){return{localeError:$E()}}var wE=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${l} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${z(n.values[0])} attendu`:`Option invalide : une valeur parmi ${k(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function A_(){return{localeError:wE()}}var zE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${l}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${z(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function U_(){return{localeError:zE()}}var IE=()=>{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"}},r=c=>c?e[c]:void 0,o=c=>{let d=r(c);return d?d.label:c??e.unknown.label},n=c=>`\u05D4${o(c)}`,i=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??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 c=>{switch(c.code){case"invalid_type":{let d=c.expected,p=s[d??""]??o(d),f=I(c.input),g=s[f]??e[f]?.label??f;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}case"invalid_value":{if(c.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 ${z(c.values[0])}`;let d=c.values.map(g=>z(g));if(c.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 p=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 ${p}`}case"too_big":{let d=a(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let x=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(c.origin==="array"||c.origin==="set"){let x=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=c.inclusive?`${c.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?"<=":"<",g=i(c.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.maximum.toString()}`}case"too_small":{let d=a(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let x=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(c.origin==="array"||c.origin==="set"){let x=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let _=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`}let h=c.inclusive?`${c.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?">=":">",g=i(c.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.minimum.toString()}`}case"invalid_format":{let d=c;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 p=l[d.format],f=p?.label??d.format,x=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \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 ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${k(c.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${n(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function W_(){return{localeError:IE()}}var PE=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${l}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${l}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${z(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${l??"vrijednost"} ima ${i}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${l??"vrijednost"} bude ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${l} ima ${i}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${l} bude ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${r[i.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function M_(){return{localeError:PE()}}var EE=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${z(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function B_(){return{localeError:EE()}}function Z_(e,t,r){return Math.abs(e)===1?t:r}function Yo(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var RE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=Z_(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 ${Yo(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.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 ${Yo(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=Z_(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 ${Yo(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.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 ${Yo(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.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 ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.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 ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${k(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Yo(n.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 ${Yo(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function V_(){return{localeError:RE()}}var CE=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${z(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function H_(){return{localeError:CE()}}var TE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${z(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${k(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function J_(){return{localeError:TE()}}var jE=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${l}`:`Input non valido: atteso ${i}, ricevuto ${l}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${z(n.values[0])}`:`Opzione non valida: atteso uno tra ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${k(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function G_(){return{localeError:jE()}}var OE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.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: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${z(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${k(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.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${n.keys.length>1?"\u7FA4":""}: ${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function X_(){return{localeError:OE()}}var DE=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${i}${n.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 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"-\u10D8\u10D7`:i.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 "${i.suffix}"-\u10D8\u10D7`:i.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 "${i.includes}"-\u10E1`:i.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 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.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 ${n.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${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.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 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function K_(){return{localeError:DE()}}var NE=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${k(n.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 ${n.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 ${n.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 vc(){return{localeError:NE()}}function Y_(){return vc()}var LE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${z(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${k(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),s=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${s} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${a}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),s=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${s} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${k(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function q_(){return{localeError:LE()}}var Ba=e=>e.charAt(0).toUpperCase()+e.slice(1);function Q_(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var FE=()=>{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(n,i,a,l){let s=e[n]??null;return s===null?s:{unit:s.unit[i],verb:s.verb[l][a?"inclusive":"notInclusive"]}}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${z(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${k(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,Q_(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${Ba(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Ba(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,Q_(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${Ba(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Ba(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${k(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${Ba(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function e$(){return{localeError:FE()}}var AE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.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 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`Invalid ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`${n.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"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.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 ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function t$(){return{localeError:AE()}}var UE=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${l}`:`Input tidak sah: dijangka ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${z(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function n$(){return{localeError:UE()}}var WE=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${i}, ontving ${l}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${z(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function r$(){return{localeError:WE()}}var ME=()=>{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(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\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"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${l}`:`Ugyldig input: forventet ${i}, fikk ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${z(n.values[0])}`:`Ugyldig valg: forventet en av ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function o$(){return{localeError:ME()}}var BE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${z(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function i$(){return{localeError:BE()}}var ZE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.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 ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${z(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${k(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.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 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function a$(){return{localeError:ZE()}}var VE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${l}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${z(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function l$(){return{localeError:VE()}}var HE=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${z(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function s$(){return{localeError:HE()}}var JE=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${l}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${z(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${r[i.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${k(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function c$(){return{localeError:JE()}}function u$(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var GE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.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 ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=u$(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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=u$(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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.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 d$(){return{localeError:GE()}}var XE=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${l}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${z(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function p$(){return{localeError:XE()}}var KE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${l}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${z(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function f$(){return{localeError:KE()}}var YE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${i}${n.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 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.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${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.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`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function m$(){return{localeError:YE()}}var qE=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.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 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.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 ${n.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: ${k(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.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 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function g$(){return{localeError:qE()}}var QE=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${z(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function v$(){return{localeError:QE()}}var eR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${i}${n.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 ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.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 yc(){return{localeError:eR()}}function y$(){return yc()}var tR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.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: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${z(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${k(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.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: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.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${n.keys.length>1?"\u0632":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function h$(){return{localeError:tR()}}var nR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${l}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${z(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function x$(){return{localeError:nR()}}var rR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${z(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${k(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.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 ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function S$(){return{localeError:rR()}}var oR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${z(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function b$(){return{localeError:oR()}}var iR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${z(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function k$(){return{localeError:iR()}}var aR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${z(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${k(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.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 ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function _$(){return{localeError:aR()}}var $$,Hg=Symbol("ZodOutput"),Jg=Symbol("ZodInput"),hc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function xc(){return new hc}($$=globalThis).__zod_globalRegistry??($$.__zod_globalRegistry=xc());var at=globalThis.__zod_globalRegistry;function Gg(e,t){return new e({type:"string",...j(t)})}function Xg(e,t){return new e({type:"string",coerce:!0,...j(t)})}function Sc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...j(t)})}function Va(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...j(t)})}function bc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...j(t)})}function kc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...j(t)})}function _c(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...j(t)})}function $c(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...j(t)})}function Ha(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...j(t)})}function wc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...j(t)})}function zc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...j(t)})}function Ic(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...j(t)})}function Pc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...j(t)})}function Ec(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...j(t)})}function Rc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...j(t)})}function Cc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...j(t)})}function Tc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...j(t)})}function jc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...j(t)})}function Kg(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...j(t)})}function Oc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...j(t)})}function Dc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...j(t)})}function Nc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...j(t)})}function Lc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...j(t)})}function Fc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...j(t)})}function Ac(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...j(t)})}var Yg={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function qg(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...j(t)})}function Qg(e,t){return new e({type:"string",format:"date",check:"string_format",...j(t)})}function ev(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...j(t)})}function tv(e,t){return new e({type:"string",format:"duration",check:"string_format",...j(t)})}function nv(e,t){return new e({type:"number",checks:[],...j(t)})}function rv(e,t){return new e({type:"number",coerce:!0,checks:[],...j(t)})}function ov(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...j(t)})}function iv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...j(t)})}function av(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...j(t)})}function lv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...j(t)})}function sv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...j(t)})}function cv(e,t){return new e({type:"boolean",...j(t)})}function uv(e,t){return new e({type:"boolean",coerce:!0,...j(t)})}function dv(e,t){return new e({type:"bigint",...j(t)})}function pv(e,t){return new e({type:"bigint",coerce:!0,...j(t)})}function fv(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...j(t)})}function mv(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...j(t)})}function gv(e,t){return new e({type:"symbol",...j(t)})}function vv(e,t){return new e({type:"undefined",...j(t)})}function yv(e,t){return new e({type:"null",...j(t)})}function hv(e){return new e({type:"any"})}function xv(e){return new e({type:"unknown"})}function Sv(e,t){return new e({type:"never",...j(t)})}function bv(e,t){return new e({type:"void",...j(t)})}function kv(e,t){return new e({type:"date",...j(t)})}function _v(e,t){return new e({type:"date",coerce:!0,...j(t)})}function $v(e,t){return new e({type:"nan",...j(t)})}function zn(e,t){return new oc({check:"less_than",...j(t),value:e,inclusive:!1})}function At(e,t){return new oc({check:"less_than",...j(t),value:e,inclusive:!0})}function In(e,t){return new ic({check:"greater_than",...j(t),value:e,inclusive:!1})}function bt(e,t){return new ic({check:"greater_than",...j(t),value:e,inclusive:!0})}function Uc(e){return In(0,e)}function Wc(e){return zn(0,e)}function Mc(e){return At(0,e)}function Bc(e){return bt(0,e)}function Ir(e,t){return new ym({check:"multiple_of",...j(t),value:e})}function Pr(e,t){return new Sm({check:"max_size",...j(t),maximum:e})}function Pn(e,t){return new bm({check:"min_size",...j(t),minimum:e})}function to(e,t){return new km({check:"size_equals",...j(t),size:e})}function no(e,t){return new _m({check:"max_length",...j(t),maximum:e})}function Yn(e,t){return new $m({check:"min_length",...j(t),minimum:e})}function ro(e,t){return new wm({check:"length_equals",...j(t),length:e})}function qo(e,t){return new zm({check:"string_format",format:"regex",...j(t),pattern:e})}function Qo(e){return new Im({check:"string_format",format:"lowercase",...j(e)})}function ei(e){return new Pm({check:"string_format",format:"uppercase",...j(e)})}function ti(e,t){return new Em({check:"string_format",format:"includes",...j(t),includes:e})}function ni(e,t){return new Rm({check:"string_format",format:"starts_with",...j(t),prefix:e})}function ri(e,t){return new Cm({check:"string_format",format:"ends_with",...j(t),suffix:e})}function Zc(e,t,r){return new Tm({check:"property",property:e,schema:t,...j(r)})}function oi(e,t){return new jm({check:"mime_type",mime:e,...j(t)})}function mn(e){return new Om({check:"overwrite",tx:e})}function ii(e){return mn(t=>t.normalize(e))}function ai(){return mn(e=>e.trim())}function li(){return mn(e=>e.toLowerCase())}function si(){return mn(e=>e.toUpperCase())}function ci(){return mn(e=>Rf(e))}function wv(e,t,r){return new e({type:"array",element:t,...j(r)})}function sR(e,t,r){return new e({type:"union",options:t,...j(r)})}function cR(e,t,r){return new e({type:"union",options:t,inclusive:!1,...j(r)})}function uR(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...j(o)})}function dR(e,t,r){return new e({type:"intersection",left:t,right:r})}function pR(e,t,r,o){let n=r instanceof ee,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...j(i)})}function fR(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...j(o)})}function mR(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...j(o)})}function gR(e,t,r){return new e({type:"set",valueType:t,...j(r)})}function vR(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...j(r)})}function yR(e,t,r){return new e({type:"enum",entries:t,...j(r)})}function hR(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...j(r)})}function zv(e,t){return new e({type:"file",...j(t)})}function xR(e,t){return new e({type:"transform",transform:t})}function SR(e,t){return new e({type:"optional",innerType:t})}function bR(e,t){return new e({type:"nullable",innerType:t})}function kR(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Tf(r)}})}function _R(e,t,r){return new e({type:"nonoptional",innerType:t,...j(r)})}function $R(e,t){return new e({type:"success",innerType:t})}function wR(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function zR(e,t,r){return new e({type:"pipe",in:t,out:r})}function IR(e,t){return new e({type:"readonly",innerType:t})}function PR(e,t,r){return new e({type:"template_literal",parts:t,...j(r)})}function ER(e,t){return new e({type:"lazy",getter:t})}function RR(e,t){return new e({type:"promise",innerType:t})}function Iv(e,t,r){let o=j(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Pv(e,t,r){return new e({type:"custom",check:"custom",fn:t,...j(r)})}function Ev(e,t){let r=w$(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(Vo(n,o.value,r._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),o.issues.push(Vo(i))}},e(o.value,o)),t);return r}function w$(e,t){let r=new _e({check:"custom",...j(t)});return r._zod.check=e,r}function Rv(e){let t=new _e({check:"describe"});return t._zod.onattach=[r=>{let o=at.get(r)??{};at.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function Cv(e){let t=new _e({check:"meta"});return t._zod.onattach=[r=>{let o=at.get(r)??{};at.add(r,{...o,...e})}],t._zod.check=()=>{},t}function Tv(e,t){let r=j(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let i=new Set(o),a=new Set(n),l=e.Codec??Ma,s=e.Boolean??Ua,c=e.String??eo,d=new c({type:"string",error:r.error}),p=new s({type:"boolean",error:r.error}),f=new l({type:"pipe",in:d,out:p,transform:((g,x)=>{let h=g;return r.case!=="sensitive"&&(h=h.toLowerCase()),i.has(h)?!0:a.has(h)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:x.value,inst:f,continue:!1}),{})}),reverseTransform:((g,x)=>g===!0?o[0]||"true":n[0]||"false"),error:r.error});return f}function ui(e,t,r,o={}){let n=j(o),i={...j(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:l=>r.test(l),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function Er(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 ve(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let f=a.schema,g=t.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(e,t,f,d)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),ve(p,t,d),t.seen.get(p).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&kt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Rr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let s=o.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.`);o.set(l,a[0])}}let n=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,f=e.external.uri??(x=>x);if(p)return{ref:f(p)};let g=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=g,{defId:g,ref:`${f("__shared")}#/${l}/${g}`}}if(a[1]===r)return{ref:"#"};let c=`#/${l}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:c+d}},i=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:s,defId:c}=n(a);l.def={...l.schema},c&&(l.defId=c);let d=l.schema;for(let p in d)delete d[p];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>
|
|
70
|
+
`)}g.write("payload.value = newResult;"),g.write("return payload;");let m=g.compile();return(y,S)=>m(f,y,S)},i,a=uo,l=!co.jitless,c=l&&Af.value,d=t.catchall,p;e._zod.parse=(f,g)=>{p??(p=o.value);let x=f.value;return a(x)?l&&c&&g?.async===!1&&g.jitless!==!0?(i||(i=n(t.shape)),f=i(f,g),d?O_([],x,f,g,p,e):f):r(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),f)}});function h_(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!Dr(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>zt(a,o,Me())))}),t)}var Qa=b("$ZodUnion",(e,t)=>{ne.init(e,t),ue(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ue(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ue(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ue(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${o.map(n=>Ma(n.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let l of t.options){let s=l._zod.run({value:o.value,issues:[]},n);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>h_(l,o,e,n)):h_(a,o,e,n)}});function x_(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>zt(a,o,Me())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Eg=b("$ZodXor",(e,t)=>{Qa.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let l of t.options){let s=l._zod.run({value:o.value,issues:[]},n);s instanceof Promise?(a.push(s),i=!0):a.push(s)}return i?Promise.all(a).then(l=>x_(l,o,e,n)):x_(a,o,e,n)}}),Rg=b("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Qa.init(e,t);let r=e._zod.parse;ue(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[l,s]of Object.entries(a)){n[l]||(n[l]=new Set);for(let c of s)n[l].add(c)}}return n});let o=ri(()=>{let n=t.options,i=new Map;for(let a of n){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(i.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);i.set(s,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!uo(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let l=o.value.get(a?.[t.discriminator]);return l?l._zod.run(n,i):t.unionFallback||i.direction==="backward"?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),Cg=b("$ZodIntersection",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>b_(r,s,c)):b_(r,i,a)}});function Zm(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(Or(e)&&Or(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=Zm(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=Zm(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function b_(e,t,r){let o=new Map,n;for(let l of t.issues)if(l.code==="unrecognized_keys"){n??(n=l);for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(let l of r.issues)if(l.code==="unrecognized_keys")for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);let i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&n&&e.issues.push({...n,keys:i}),Dr(e))return e;let a=Zm(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var wc=b("$ZodTuple",(e,t)=>{ne.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],l=S_(r,"optin"),s=S_(r,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>r.length&&o.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:i,inst:e,origin:"array"})}let c=new Array(r.length);for(let d=0;d<r.length;d++){let p=r[d]._zod.run({value:i[d],issues:[]},n);p instanceof Promise?a.push(p.then(f=>{c[d]=f})):c[d]=p}if(t.rest){let d=r.length-1,p=i.slice(r.length);for(let f of p){d++;let g=t.rest._zod.run({value:f,issues:[]},n);g instanceof Promise?a.push(g.then(x=>k_(x,o,d))):k_(g,o,d)}}return a.length?Promise.all(a).then(()=>__(c,o,r,i,s)):__(c,o,r,i,s)}});function S_(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function k_(e,t,r){e.issues.length&&t.issues.push(...Dt(r,e.issues)),t.value[r]=e.value}function __(e,t,r,o,n){for(let i=0;i<r.length;i++){let a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=n){t.value.length=i;break}t.issues.push(...Dt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(r[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var Tg=b("$ZodRecord",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Or(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let l=new Set;for(let c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);let d=t.keyType._zod.run({value:c,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(g=>zt(g,o,Me())),input:c,path:[c],inst:e});continue}let p=d.value,f=t.valueType._zod.run({value:n[c],issues:[]},o);f instanceof Promise?i.push(f.then(g=>{g.issues.length&&r.issues.push(...Dt(c,g.issues)),r.value[p]=g.value})):(f.issues.length&&r.issues.push(...Dt(c,f.issues)),r.value[p]=f.value)}let s;for(let c in n)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:s})}else{r.value={};for(let l of Reflect.ownKeys(n)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&vc.test(l)&&s.issues.length){let p=t.keyType._zod.run({value:Number(l),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(s=p)}if(s.issues.length){t.mode==="loose"?r.value[l]=n[l]:r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(p=>zt(p,o,Me())),input:l,path:[l],inst:e});continue}let d=t.valueType._zod.run({value:n[l],issues:[]},o);d instanceof Promise?i.push(d.then(p=>{p.issues.length&&r.issues.push(...Dt(l,p.issues)),r.value[s.value]=p.value})):(d.issues.length&&r.issues.push(...Dt(l,d.issues)),r.value[s.value]=d.value)}}return i.length?Promise.all(i).then(()=>r):r}}),jg=b("$ZodMap",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,l]of n){let s=t.keyType._zod.run({value:a,issues:[]},o),c=t.valueType._zod.run({value:l,issues:[]},o);s instanceof Promise||c instanceof Promise?i.push(Promise.all([s,c]).then(([d,p])=>{$_(d,p,r,a,n,e,o)})):$_(s,c,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function $_(e,t,r,o,n,i,a){e.issues.length&&(Ba.has(typeof o)?r.issues.push(...Dt(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(l=>zt(l,a,Me()))})),t.issues.length&&(Ba.has(typeof o)?r.issues.push(...Dt(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(l=>zt(l,a,Me()))})),r.value.set(e.value,t.value)}var Og=b("$ZodSet",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let l=t.valueType._zod.run({value:a,issues:[]},o);l instanceof Promise?i.push(l.then(s=>w_(s,r))):w_(l,r)}return i.length?Promise.all(i).then(()=>r):r}});function w_(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Dg=b("$ZodEnum",(e,t)=>{ne.init(e,t);let r=Wa(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>Ba.has(typeof n)).map(n=>typeof n=="string"?ln(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),Ng=b("$ZodLiteral",(e,t)=>{if(ne.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?ln(o):o?ln(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Lg=b("$ZodFile",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),Fg=b("$ZodTransform",(e,t)=>{ne.init(e,t),e._zod.optin="optional",e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Cr(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new kn;return r.value=n,r.fallback=!0,r}});function z_(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var zc=b("$ZodOptional",(e,t)=>{ne.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ue(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ue(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ma(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=r.value,i=t.innerType._zod.run(r,o);return i instanceof Promise?i.then(a=>z_(a,n)):z_(i,n)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),Ag=b("$ZodExactOptional",(e,t)=>{zc.init(e,t),ue(e._zod,"values",()=>t.innerType._zod.values),ue(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),Ug=b("$ZodNullable",(e,t)=>{ne.init(e,t),ue(e._zod,"optin",()=>t.innerType._zod.optin),ue(e._zod,"optout",()=>t.innerType._zod.optout),ue(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ma(r.source)}|null)$`):void 0}),ue(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),Wg=b("$ZodDefault",(e,t)=>{ne.init(e,t),e._zod.optin="optional",ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>P_(i,t)):P_(n,t)}});function P_(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Mg=b("$ZodPrefault",(e,t)=>{ne.init(e,t),e._zod.optin="optional",ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),Bg=b("$ZodNonOptional",(e,t)=>{ne.init(e,t),ue(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>I_(i,e)):I_(n,e)}});function I_(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 Zg=b("$ZodSuccess",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Cr("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),Vg=b("$ZodCatch",(e,t)=>{ne.init(e,t),e._zod.optin="optional",ue(e._zod,"optout",()=>t.innerType._zod.optout),ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>zt(a,o,Me()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>zt(i,o,Me()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),Hg=b("$ZodNaN",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Pc=b("$ZodPipe",(e,t)=>{ne.init(e,t),ue(e._zod,"values",()=>t.in._zod.values),ue(e._zod,"optin",()=>t.in._zod.optin),ue(e._zod,"optout",()=>t.out._zod.optout),ue(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>xc(a,t.in,o)):xc(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>xc(i,t.out,o)):xc(n,t.out,o)}});function xc(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var el=b("$ZodCodec",(e,t)=>{ne.init(e,t),ue(e._zod,"values",()=>t.in._zod.values),ue(e._zod,"optin",()=>t.in._zod.optin),ue(e._zod,"optout",()=>t.out._zod.optout),ue(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>bc(a,t,o)):bc(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>bc(a,t,o)):bc(i,t,o)}}});function bc(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>Sc(e,i,t.out,r)):Sc(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>Sc(e,i,t.in,r)):Sc(e,n,t.in,r)}}function Sc(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var Jg=b("$ZodPreprocess",(e,t)=>{Pc.init(e,t)}),Gg=b("$ZodReadonly",(e,t)=>{ne.init(e,t),ue(e._zod,"propValues",()=>t.innerType._zod.propValues),ue(e._zod,"values",()=>t.innerType._zod.values),ue(e._zod,"optin",()=>t.innerType?._zod?.optin),ue(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(E_):E_(n)}});function E_(e){return e.value=Object.freeze(e.value),e}var Xg=b("$ZodTemplateLiteral",(e,t)=>{ne.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||Wf.has(typeof o))r.push(ln(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),Kg=b("$ZodFunction",(e,t)=>(ne.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?ic(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?ic(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await ac(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await ac(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new wc({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),Yg=b("$ZodPromise",(e,t)=>{ne.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),qg=b("$ZodLazy",(e,t)=>{ne.init(e,t),ue(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),ue(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ue(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ue(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ue(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),Qg=b("$ZodCustom",(e,t)=>{Ie.init(e,t),ne.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>R_(i,r,o,e));R_(n,r,o,e)}});function R_(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(oi(n))}}var nl={};Gn(nl,{ar:()=>N_,az:()=>L_,be:()=>A_,bg:()=>U_,ca:()=>W_,cs:()=>M_,da:()=>B_,de:()=>Z_,el:()=>V_,en:()=>Ic,eo:()=>H_,es:()=>J_,fa:()=>G_,fi:()=>X_,fr:()=>K_,frCA:()=>Y_,he:()=>q_,hr:()=>Q_,hu:()=>e$,hy:()=>n$,id:()=>r$,is:()=>o$,it:()=>i$,ja:()=>a$,ka:()=>l$,kh:()=>s$,km:()=>Ec,ko:()=>c$,lt:()=>d$,mk:()=>p$,ms:()=>f$,nl:()=>m$,no:()=>g$,ota:()=>v$,pl:()=>h$,ps:()=>y$,pt:()=>x$,ro:()=>b$,ru:()=>k$,sl:()=>_$,sv:()=>$$,ta:()=>w$,th:()=>z$,tr:()=>P$,ua:()=>I$,uk:()=>Rc,ur:()=>E$,uz:()=>R$,vi:()=>C$,yo:()=>O$,zhCN:()=>T$,zhTW:()=>j$});var wE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return n.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 ${z(n.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: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${n.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.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 ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function N_(){return{localeError:wE()}}var zE=()=>{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(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${l}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${z(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function L_(){return{localeError:zE()}}function F_(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var PE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.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 ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=F_(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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=F_(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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function A_(){return{localeError:PE()}}var IE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.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 ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.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 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.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 "${i.prefix}"`;if(i.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 "${i.suffix}"`;if(i.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 "${i.includes}"`;if(i.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 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function U_(){return{localeError:IE()}}var EE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${l}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${z(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${k(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function W_(){return{localeError:EE()}}var RE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${l}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${z(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${k(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function M_(){return{localeError:RE()}}var CE=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${l}`:`Ugyldigt input: forventede ${i}, fik ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${z(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For stor: forventede ${l??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For lille: forventede ${l} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${l} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function B_(){return{localeError:CE()}}var TE=()=>{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(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${l}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${z(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Z_(){return{localeError:TE()}}var jE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.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 ${n.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 ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.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 ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.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 ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function V_(){return{localeError:jE()}}var OE=()=>{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(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return`Invalid input: expected ${i}, received ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.values[0])}`:`Invalid option: expected one of ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Ic(){return{localeError:OE()}}var DE=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${l}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${z(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function H_(){return{localeError:DE()}}var NE=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${z(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function J_(){return{localeError:NE()}}var LE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.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 ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${z(n.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 ${k(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.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 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${k(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.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 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function G_(){return{localeError:LE()}}var FE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${l}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${z(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${k(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function X_(){return{localeError:FE()}}var AE=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${l} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${z(n.values[0])} attendu`:`Option invalide : une valeur parmi ${k(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function K_(){return{localeError:AE()}}var UE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${l}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${z(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function Y_(){return{localeError:UE()}}var WE=()=>{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"}},r=c=>c?e[c]:void 0,o=c=>{let d=r(c);return d?d.label:c??e.unknown.label},n=c=>`\u05D4${o(c)}`,i=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??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 c=>{switch(c.code){case"invalid_type":{let d=c.expected,p=s[d??""]??o(d),f=I(c.input),g=s[f]??e[f]?.label??f;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}case"invalid_value":{if(c.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 ${z(c.values[0])}`;let d=c.values.map(g=>z(g));if(c.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 p=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 ${p}`}case"too_big":{let d=a(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let x=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(c.origin==="array"||c.origin==="set"){let x=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=c.inclusive?`${c.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?"<=":"<",g=i(c.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.maximum.toString()}`}case"too_small":{let d=a(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let x=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(c.origin==="array"||c.origin==="set"){let x=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let _=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`}let h=c.inclusive?`${c.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?">=":">",g=i(c.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.minimum.toString()}`}case"invalid_format":{let d=c;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 p=l[d.format],f=p?.label??d.format,x=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \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 ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${k(c.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${n(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function q_(){return{localeError:WE()}}var ME=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${l}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${l}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${z(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${l??"vrijednost"} ima ${i}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${l??"vrijednost"} bude ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${l} ima ${i}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${l} bude ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${r[i.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function Q_(){return{localeError:ME()}}var BE=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${z(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function e$(){return{localeError:BE()}}function t$(e,t,r){return Math.abs(e)===1?t:r}function ui(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var ZE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=t$(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 ${ui(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.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 ${ui(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=t$(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 ${ui(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.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 ${ui(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.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 ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.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 ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${k(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${ui(n.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 ${ui(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function n$(){return{localeError:ZE()}}var VE=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${z(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function r$(){return{localeError:VE()}}var HE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${z(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${k(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function o$(){return{localeError:HE()}}var JE=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${l}`:`Input non valido: atteso ${i}, ricevuto ${l}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${z(n.values[0])}`:`Opzione non valida: atteso uno tra ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${k(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function i$(){return{localeError:JE()}}var GE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.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: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${z(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${k(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.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${n.keys.length>1?"\u7FA4":""}: ${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function a$(){return{localeError:GE()}}var XE=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${i}${n.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 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"-\u10D8\u10D7`:i.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 "${i.suffix}"-\u10D8\u10D7`:i.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 "${i.includes}"-\u10E1`:i.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 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.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 ${n.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${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.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 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function l$(){return{localeError:XE()}}var KE=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${k(n.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 ${n.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 ${n.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 Ec(){return{localeError:KE()}}function s$(){return Ec()}var YE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${z(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${k(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),s=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${s} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${a}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),s=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${s} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${k(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function c$(){return{localeError:YE()}}var tl=e=>e.charAt(0).toUpperCase()+e.slice(1);function u$(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var qE=()=>{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(n,i,a,l){let s=e[n]??null;return s===null?s:{unit:s.unit[i],verb:s.verb[l][a?"inclusive":"notInclusive"]}}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${z(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${k(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,u$(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${tl(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${tl(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,u$(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${tl(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${tl(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${k(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${tl(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function d$(){return{localeError:qE()}}var QE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.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 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`Invalid ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`${n.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"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.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 ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function p$(){return{localeError:QE()}}var eR=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${l}`:`Input tidak sah: dijangka ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${z(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function f$(){return{localeError:eR()}}var tR=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${i}, ontving ${l}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${z(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function m$(){return{localeError:tR()}}var nR=()=>{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(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\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"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${l}`:`Ugyldig input: forventet ${i}, fikk ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${z(n.values[0])}`:`Ugyldig valg: forventet en av ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function g$(){return{localeError:nR()}}var rR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${z(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function v$(){return{localeError:rR()}}var oR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.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 ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${z(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${k(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.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 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function y$(){return{localeError:oR()}}var iR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${l}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${z(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function h$(){return{localeError:iR()}}var aR=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${z(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function x$(){return{localeError:aR()}}var lR=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${l}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${z(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${r[i.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${k(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function b$(){return{localeError:lR()}}function S$(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var sR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.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 ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=S$(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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=S$(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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.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 k$(){return{localeError:sR()}}var cR=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${l}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${z(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function _$(){return{localeError:cR()}}var uR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${l}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${z(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function $$(){return{localeError:uR()}}var dR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${i}${n.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 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.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${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.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`${n.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 w$(){return{localeError:dR()}}var pR=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.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 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.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 ${n.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: ${k(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.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 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function z$(){return{localeError:pR()}}var fR=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${z(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function P$(){return{localeError:fR()}}var mR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${i}${n.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 ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.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 Rc(){return{localeError:mR()}}function I$(){return Rc()}var gR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.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: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${z(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${k(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.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: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.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${n.keys.length>1?"\u0632":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function E$(){return{localeError:gR()}}var vR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${l}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${z(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function R$(){return{localeError:vR()}}var yR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${z(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${k(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.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 ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function C$(){return{localeError:yR()}}var hR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${z(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function T$(){return{localeError:hR()}}var xR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${z(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function j$(){return{localeError:xR()}}var bR=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${z(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${k(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.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 ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function O$(){return{localeError:bR()}}var D$,ev=Symbol("ZodOutput"),tv=Symbol("ZodInput"),Cc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Tc(){return new Cc}(D$=globalThis).__zod_globalRegistry??(D$.__zod_globalRegistry=Tc());var ct=globalThis.__zod_globalRegistry;function nv(e,t){return new e({type:"string",...O(t)})}function rv(e,t){return new e({type:"string",coerce:!0,...O(t)})}function jc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...O(t)})}function rl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...O(t)})}function Oc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...O(t)})}function Dc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...O(t)})}function Nc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...O(t)})}function Lc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...O(t)})}function ol(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...O(t)})}function Fc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...O(t)})}function Ac(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...O(t)})}function Uc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...O(t)})}function Wc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...O(t)})}function Mc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...O(t)})}function Bc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...O(t)})}function Zc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...O(t)})}function Vc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...O(t)})}function Hc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...O(t)})}function ov(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...O(t)})}function Jc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...O(t)})}function Gc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...O(t)})}function Xc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...O(t)})}function Kc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...O(t)})}function Yc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...O(t)})}function qc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...O(t)})}var iv={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function av(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...O(t)})}function lv(e,t){return new e({type:"string",format:"date",check:"string_format",...O(t)})}function sv(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...O(t)})}function cv(e,t){return new e({type:"string",format:"duration",check:"string_format",...O(t)})}function uv(e,t){return new e({type:"number",checks:[],...O(t)})}function dv(e,t){return new e({type:"number",coerce:!0,checks:[],...O(t)})}function pv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...O(t)})}function fv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...O(t)})}function mv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...O(t)})}function gv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...O(t)})}function vv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...O(t)})}function yv(e,t){return new e({type:"boolean",...O(t)})}function hv(e,t){return new e({type:"boolean",coerce:!0,...O(t)})}function xv(e,t){return new e({type:"bigint",...O(t)})}function bv(e,t){return new e({type:"bigint",coerce:!0,...O(t)})}function Sv(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...O(t)})}function kv(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...O(t)})}function _v(e,t){return new e({type:"symbol",...O(t)})}function $v(e,t){return new e({type:"undefined",...O(t)})}function wv(e,t){return new e({type:"null",...O(t)})}function zv(e){return new e({type:"any"})}function Pv(e){return new e({type:"unknown"})}function Iv(e,t){return new e({type:"never",...O(t)})}function Ev(e,t){return new e({type:"void",...O(t)})}function Rv(e,t){return new e({type:"date",...O(t)})}function Cv(e,t){return new e({type:"date",coerce:!0,...O(t)})}function Tv(e,t){return new e({type:"nan",...O(t)})}function Fn(e,t){return new yc({check:"less_than",...O(t),value:e,inclusive:!1})}function Ht(e,t){return new yc({check:"less_than",...O(t),value:e,inclusive:!0})}function An(e,t){return new hc({check:"greater_than",...O(t),value:e,inclusive:!1})}function Pt(e,t){return new hc({check:"greater_than",...O(t),value:e,inclusive:!0})}function Qc(e){return An(0,e)}function eu(e){return Fn(0,e)}function tu(e){return Ht(0,e)}function nu(e){return Pt(0,e)}function Nr(e,t){return new wm({check:"multiple_of",...O(t),value:e})}function Lr(e,t){return new Im({check:"max_size",...O(t),maximum:e})}function Un(e,t){return new Em({check:"min_size",...O(t),minimum:e})}function mo(e,t){return new Rm({check:"size_equals",...O(t),size:e})}function go(e,t){return new Cm({check:"max_length",...O(t),maximum:e})}function ar(e,t){return new Tm({check:"min_length",...O(t),minimum:e})}function vo(e,t){return new jm({check:"length_equals",...O(t),length:e})}function di(e,t){return new Om({check:"string_format",format:"regex",...O(t),pattern:e})}function pi(e){return new Dm({check:"string_format",format:"lowercase",...O(e)})}function fi(e){return new Nm({check:"string_format",format:"uppercase",...O(e)})}function mi(e,t){return new Lm({check:"string_format",format:"includes",...O(t),includes:e})}function gi(e,t){return new Fm({check:"string_format",format:"starts_with",...O(t),prefix:e})}function vi(e,t){return new Am({check:"string_format",format:"ends_with",...O(t),suffix:e})}function ru(e,t,r){return new Um({check:"property",property:e,schema:t,...O(r)})}function yi(e,t){return new Wm({check:"mime_type",mime:e,...O(t)})}function _n(e){return new Mm({check:"overwrite",tx:e})}function hi(e){return _n(t=>t.normalize(e))}function xi(){return _n(e=>e.trim())}function bi(){return _n(e=>e.toLowerCase())}function Si(){return _n(e=>e.toUpperCase())}function ki(){return _n(e=>Ff(e))}function jv(e,t,r){return new e({type:"array",element:t,...O(r)})}function kR(e,t,r){return new e({type:"union",options:t,...O(r)})}function _R(e,t,r){return new e({type:"union",options:t,inclusive:!1,...O(r)})}function $R(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...O(o)})}function wR(e,t,r){return new e({type:"intersection",left:t,right:r})}function zR(e,t,r,o){let n=r instanceof ne,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...O(i)})}function PR(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...O(o)})}function IR(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...O(o)})}function ER(e,t,r){return new e({type:"set",valueType:t,...O(r)})}function RR(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...O(r)})}function CR(e,t,r){return new e({type:"enum",entries:t,...O(r)})}function TR(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...O(r)})}function Ov(e,t){return new e({type:"file",...O(t)})}function jR(e,t){return new e({type:"transform",transform:t})}function OR(e,t){return new e({type:"optional",innerType:t})}function DR(e,t){return new e({type:"nullable",innerType:t})}function NR(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Uf(r)}})}function LR(e,t,r){return new e({type:"nonoptional",innerType:t,...O(r)})}function FR(e,t){return new e({type:"success",innerType:t})}function AR(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function UR(e,t,r){return new e({type:"pipe",in:t,out:r})}function WR(e,t){return new e({type:"readonly",innerType:t})}function MR(e,t,r){return new e({type:"template_literal",parts:t,...O(r)})}function BR(e,t){return new e({type:"lazy",getter:t})}function ZR(e,t){return new e({type:"promise",innerType:t})}function Dv(e,t,r){let o=O(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Nv(e,t,r){return new e({type:"custom",check:"custom",fn:t,...O(r)})}function Lv(e,t){let r=N$(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(oi(n,o.value,r._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),o.issues.push(oi(i))}},e(o.value,o)),t);return r}function N$(e,t){let r=new Ie({check:"custom",...O(t)});return r._zod.check=e,r}function Fv(e){let t=new Ie({check:"describe"});return t._zod.onattach=[r=>{let o=ct.get(r)??{};ct.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function Av(e){let t=new Ie({check:"meta"});return t._zod.onattach=[r=>{let o=ct.get(r)??{};ct.add(r,{...o,...e})}],t._zod.check=()=>{},t}function Uv(e,t){let r=O(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let i=new Set(o),a=new Set(n),l=e.Codec??el,s=e.Boolean??qa,c=e.String??fo,d=new c({type:"string",error:r.error}),p=new s({type:"boolean",error:r.error}),f=new l({type:"pipe",in:d,out:p,transform:((g,x)=>{let h=g;return r.case!=="sensitive"&&(h=h.toLowerCase()),i.has(h)?!0:a.has(h)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:x.value,inst:f,continue:!1}),{})}),reverseTransform:((g,x)=>g===!0?o[0]||"true":n[0]||"false"),error:r.error});return f}function _i(e,t,r,o={}){let n=O(o),i={...O(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:l=>r.test(l),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function Fr(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 xe(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let f=a.schema,g=t.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(e,t,f,d)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),xe(p,t,d),t.seen.get(p).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&It(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Ar(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let s=o.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.`);o.set(l,a[0])}}let n=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,f=e.external.uri??(x=>x);if(p)return{ref:f(p)};let g=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=g,{defId:g,ref:`${f("__shared")}#/${l}/${g}`}}if(a[1]===r)return{ref:"#"};let c=`#/${l}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:c+d}},i=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:s,defId:c}=n(a);l.def={...l.schema},c&&(l.defId=c);let d=l.schema;for(let p in d)delete d[p];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>
|
|
71
71
|
|
|
72
|
-
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]){i(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(l.cycle){i(a);continue}if(l.count>1&&e.reused==="ref"){i(a);continue}}}function Cr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=l=>{let s=e.seen.get(l);if(s.ref===null)return;let c=s.def??s.schema,d={...c},p=s.ref;if(s.ref=null,p){o(p);let g=e.seen.get(p),x=g.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(x)):Object.assign(c,x),Object.assign(c,d),l._zod.parent===p)for(let _ in c)_==="$ref"||_==="allOf"||_ in d||delete c[_];if(x.$ref&&g.def)for(let _ in c)_==="$ref"||_==="allOf"||_ in g.def&&JSON.stringify(c[_])===JSON.stringify(g.def[_])&&delete c[_]}let f=l._zod.parent;if(f&&f!==p){o(f);let g=e.seen.get(f);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let x in c)x==="$ref"||x==="allOf"||x in g.def&&JSON.stringify(c[x])===JSON.stringify(g.def[x])&&delete c[x]}e.override({zodSchema:l,jsonSchema:c,path:s.path??[]})};for(let l of[...e.seen.entries()].reverse())o(l[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$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");n.$id=e.external.uri(l)}Object.assign(n,r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&n.id===i&&delete n.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"?n.$defs=a:n.definitions=a);try{let l=JSON.parse(JSON.stringify(n));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:di(t,"input",e.processors),output:di(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function kt(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return kt(o.element,r);if(o.type==="set")return kt(o.valueType,r);if(o.type==="lazy")return kt(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return kt(o.innerType,r);if(o.type==="intersection")return kt(o.left,r)||kt(o.right,r);if(o.type==="record"||o.type==="map")return kt(o.keyType,r)||kt(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:kt(o.in,r)||kt(o.out,r);if(o.type==="object"){for(let n in o.shape)if(kt(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(kt(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(kt(n,r))return!0;return!!(o.rest&&kt(o.rest,r))}return!1}var jv=(e,t={})=>r=>{let o=Er({...r,processors:t});return ve(e,o),Rr(o,e),Cr(o,e)},di=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=Er({...n??{},target:i,io:t,processors:r});return ve(e,a),Rr(a,e),Cr(a,e)};var CR={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ov=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),l&&(n.format=CR[l]??l,n.format===""&&delete n.format,l==="time"&&delete n.format),c&&(n.contentEncoding=c),s&&s.size>0){let d=[...s];d.length===1?n.pattern=d[0].source:d.length>1&&(n.allOf=[...d.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},Dv=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof l=="string"&&l.includes("int")?n.type="integer":n.type="number";let p=typeof d=="number"&&d>=(i??Number.NEGATIVE_INFINITY),f=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),g=t.target==="draft-04"||t.target==="openapi-3.0";p?g?(n.minimum=d,n.exclusiveMinimum=!0):n.exclusiveMinimum=d:typeof i=="number"&&(n.minimum=i),f?g?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof a=="number"&&(n.maximum=a),typeof s=="number"&&(n.multipleOf=s)},Nv=(e,t,r,o)=>{r.type="boolean"},Lv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Fv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Av=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Uv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Wv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Mv=(e,t,r,o)=>{r.not={}},Bv=(e,t,r,o)=>{},Zv=(e,t,r,o)=>{},Vv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Hv=(e,t,r,o)=>{let n=e._zod.def,i=Ea(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},Jv=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.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");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},Gv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Xv=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},Kv=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:s}=e._zod.bag;a!==void 0&&(i.minLength=a),l!==void 0&&(i.maxLength=l),s?s.length===1?(i.contentMediaType=s[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(n,i)},Yv=(e,t,r,o)=>{r.type="boolean"},qv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Qv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},ey=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},ty=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},ny=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},ry=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof l=="number"&&(n.maxItems=l),n.type="array",n.items=ve(i.element,t,{...o,path:[...o.path,"items"]})},oy=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let c in a)n.properties[c]=ve(a[c],t,{...o,path:[...o.path,"properties",c]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(c=>{let d=i.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));s.size>0&&(n.required=Array.from(s)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=ve(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Hc=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((l,s)=>ve(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?r.oneOf=a:r.anyOf=a},iy=(e,t,r,o)=>{let n=e._zod.def,i=ve(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=ve(n.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];r.allOf=s},ay=(e,t,r,o)=>{let n=r,i=e._zod.def;n.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=i.items.map((f,g)=>ve(f,t,{...o,path:[...o.path,a,g]})),c=i.rest?ve(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=s,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:s},c&&n.items.anyOf.push(c),n.minItems=s.length,c||(n.maxItems=s.length)):(n.items=s,c&&(n.additionalItems=c));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(n.minItems=d),typeof p=="number"&&(n.maxItems=p)},ly=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,s=a._zod.bag?.patterns;if(i.mode==="loose"&&s&&s.size>0){let d=ve(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let p of s)n.patternProperties[p.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=ve(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=ve(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=a._zod.values;if(c){let d=[...c].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(n.required=d)}},sy=(e,t,r,o)=>{let n=e._zod.def,i=ve(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},cy=(e,t,r,o)=>{let n=e._zod.def;ve(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},uy=(e,t,r,o)=>{let n=e._zod.def;ve(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},dy=(e,t,r,o)=>{let n=e._zod.def;ve(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},py=(e,t,r,o)=>{let n=e._zod.def;ve(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},fy=(e,t,r,o)=>{let n=e._zod.def,i=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?n.out:n.in:n.out;ve(a,t,o);let l=t.seen.get(e);l.ref=a},my=(e,t,r,o)=>{let n=e._zod.def;ve(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},gy=(e,t,r,o)=>{let n=e._zod.def;ve(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Jc=(e,t,r,o)=>{let n=e._zod.def;ve(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},vy=(e,t,r,o)=>{let n=e._zod.innerType;ve(n,t,o);let i=t.seen.get(e);i.ref=n},Vc={string:Ov,number:Dv,boolean:Nv,bigint:Lv,symbol:Fv,null:Av,undefined:Uv,void:Wv,never:Mv,any:Bv,unknown:Zv,date:Vv,enum:Hv,literal:Jv,nan:Gv,template_literal:Xv,file:Kv,success:Yv,custom:qv,function:Qv,transform:ey,map:ty,set:ny,array:ry,object:oy,union:Hc,intersection:iy,tuple:ay,record:ly,nullable:sy,nonoptional:cy,default:uy,prefault:dy,catch:py,pipe:fy,readonly:my,promise:gy,optional:Jc,lazy:vy};function Gc(e,t){if("_idmap"in e){let o=e,n=Er({...t,processors:Vc}),i={};for(let s of o._idmap.entries()){let[c,d]=s;ve(d,n)}let a={},l={registry:o,uri:t?.uri,defs:i};n.external=l;for(let s of o._idmap.entries()){let[c,d]=s;Rr(n,d),a[c]=Cr(n,d)}if(Object.keys(i).length>0){let s=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[s]:i}}return{schemas:a}}let r=Er({...t,processors:Vc});return ve(e,r),Rr(r,e),Cr(r,e)}var Xc=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 r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Er({processors:Vc,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return ve(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Rr(this.ctx,t);let o=Cr(this.ctx,t),{"~standard":n,...i}=o;return i}};var z$={};var Ja={};An(Ja,{ZodAny:()=>Uy,ZodArray:()=>Zy,ZodBase64:()=>vu,ZodBase64URL:()=>yu,ZodBigInt:()=>xi,ZodBigIntFormat:()=>Su,ZodBoolean:()=>hi,ZodCIDRv4:()=>mu,ZodCIDRv6:()=>gu,ZodCUID:()=>lu,ZodCUID2:()=>su,ZodCatch:()=>ph,ZodCodec:()=>il,ZodCustom:()=>al,ZodCustomStringFormat:()=>vi,ZodDate:()=>el,ZodDefault:()=>ah,ZodDiscriminatedUnion:()=>Hy,ZodE164:()=>hu,ZodEmail:()=>ou,ZodEmoji:()=>iu,ZodEnum:()=>mi,ZodExactOptional:()=>rh,ZodFile:()=>th,ZodFunction:()=>kh,ZodGUID:()=>Xa,ZodIPv4:()=>pu,ZodIPv6:()=>fu,ZodIntersection:()=>Jy,ZodJWT:()=>xu,ZodKSUID:()=>du,ZodLazy:()=>xh,ZodLiteral:()=>eh,ZodMAC:()=>jy,ZodMap:()=>qy,ZodNaN:()=>mh,ZodNanoID:()=>au,ZodNever:()=>My,ZodNonOptional:()=>zu,ZodNull:()=>Fy,ZodNullable:()=>ih,ZodNumber:()=>yi,ZodNumberFormat:()=>io,ZodObject:()=>nl,ZodOptional:()=>wu,ZodPipe:()=>ol,ZodPrefault:()=>sh,ZodPreprocess:()=>gh,ZodPromise:()=>bh,ZodReadonly:()=>vh,ZodRecord:()=>fi,ZodSet:()=>Qy,ZodString:()=>gi,ZodStringFormat:()=>be,ZodSuccess:()=>dh,ZodSymbol:()=>Ny,ZodTemplateLiteral:()=>hh,ZodTransform:()=>nh,ZodTuple:()=>Xy,ZodType:()=>ie,ZodULID:()=>cu,ZodURL:()=>Qa,ZodUUID:()=>En,ZodUndefined:()=>Ly,ZodUnion:()=>rl,ZodUnknown:()=>Wy,ZodVoid:()=>By,ZodXID:()=>uu,ZodXor:()=>Vy,_ZodString:()=>ru,_default:()=>lh,_function:()=>D0,any:()=>p0,array:()=>tl,base64:()=>X$,base64url:()=>K$,bigint:()=>l0,boolean:()=>Dy,catch:()=>fh,check:()=>N0,cidrv4:()=>J$,cidrv6:()=>G$,codec:()=>C0,cuid:()=>A$,cuid2:()=>U$,custom:()=>L0,date:()=>m0,describe:()=>F0,discriminatedUnion:()=>S0,e164:()=>Y$,email:()=>E$,emoji:()=>L$,enum:()=>_u,exactOptional:()=>oh,file:()=>I0,float32:()=>r0,float64:()=>o0,function:()=>D0,guid:()=>R$,hash:()=>n0,hex:()=>t0,hostname:()=>e0,httpUrl:()=>N$,instanceof:()=>U0,int:()=>tu,int32:()=>i0,int64:()=>s0,intersection:()=>Gy,invertCodec:()=>T0,ipv4:()=>Z$,ipv6:()=>H$,json:()=>M0,jwt:()=>q$,keyof:()=>g0,ksuid:()=>B$,lazy:()=>Sh,literal:()=>z0,looseObject:()=>h0,looseRecord:()=>k0,mac:()=>V$,map:()=>_0,meta:()=>A0,nan:()=>R0,nanoid:()=>F$,nativeEnum:()=>w0,never:()=>bu,nonoptional:()=>uh,null:()=>Ay,nullable:()=>Ya,nullish:()=>P0,number:()=>Oy,object:()=>v0,optional:()=>Ka,partialRecord:()=>b0,pipe:()=>nu,prefault:()=>ch,preprocess:()=>B0,promise:()=>O0,readonly:()=>yh,record:()=>Yy,refine:()=>_h,set:()=>$0,strictObject:()=>y0,string:()=>Ga,stringFormat:()=>Q$,stringbool:()=>W0,success:()=>E0,superRefine:()=>$h,symbol:()=>u0,templateLiteral:()=>j0,transform:()=>$u,tuple:()=>Ky,uint32:()=>a0,uint64:()=>c0,ulid:()=>W$,undefined:()=>d0,union:()=>ku,unknown:()=>oo,url:()=>D$,uuid:()=>C$,uuidv4:()=>T$,uuidv6:()=>j$,uuidv7:()=>O$,void:()=>f0,xid:()=>M$,xor:()=>x0});var Kc={};An(Kc,{endsWith:()=>ri,gt:()=>In,gte:()=>bt,includes:()=>ti,length:()=>ro,lowercase:()=>Qo,lt:()=>zn,lte:()=>At,maxLength:()=>no,maxSize:()=>Pr,mime:()=>oi,minLength:()=>Yn,minSize:()=>Pn,multipleOf:()=>Ir,negative:()=>Wc,nonnegative:()=>Bc,nonpositive:()=>Mc,normalize:()=>ii,overwrite:()=>mn,positive:()=>Uc,property:()=>Zc,regex:()=>qo,size:()=>to,slugify:()=>ci,startsWith:()=>ni,toLowerCase:()=>li,toUpperCase:()=>si,trim:()=>ai,uppercase:()=>ei});var pi={};An(pi,{ZodISODate:()=>qc,ZodISODateTime:()=>Yc,ZodISODuration:()=>eu,ZodISOTime:()=>Qc,date:()=>hy,datetime:()=>yy,duration:()=>Sy,time:()=>xy});var Yc=S("ZodISODateTime",(e,t)=>{Gm.init(e,t),be.init(e,t)});function yy(e){return qg(Yc,e)}var qc=S("ZodISODate",(e,t)=>{Xm.init(e,t),be.init(e,t)});function hy(e){return Qg(qc,e)}var Qc=S("ZodISOTime",(e,t)=>{Km.init(e,t),be.init(e,t)});function xy(e){return ev(Qc,e)}var eu=S("ZodISODuration",(e,t)=>{Ym.init(e,t),be.init(e,t)});function Sy(e){return tv(eu,e)}var I$=(e,t)=>{Oa.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Na(e,r)},flatten:{value:r=>Da(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Bo,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Bo,2)}},isEmpty:{get(){return e.issues.length===0}}})},jR=S("ZodError",I$),Ct=S("ZodError",I$,{Parent:Error});var by=Ho(Ct),ky=Jo(Ct),_y=Go(Ct),$y=Xo(Ct),wy=Gs(Ct),zy=Xs(Ct),Iy=Ks(Ct),Py=Ys(Ct),Ey=qs(Ct),Ry=Qs(Ct),Cy=ec(Ct),Ty=tc(Ct);var P$=new WeakMap;function qa(e,t,r){let o=Object.getPrototypeOf(e),n=P$.get(o);if(n||(n=new Set,P$.set(o,n)),!n.has(t)){n.add(t);for(let i in r){let a=r[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}var ie=S("ZodType",(e,t)=>(ee.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:di(e,"input"),output:di(e,"output")}}),e.toJSONSchema=jv(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,o)=>by(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>_y(e,r,o),e.parseAsync=async(r,o)=>ky(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>$y(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>wy(e,r,o),e.decode=(r,o)=>zy(e,r,o),e.encodeAsync=async(r,o)=>Iy(e,r,o),e.decodeAsync=async(r,o)=>Py(e,r,o),e.safeEncode=(r,o)=>Ey(e,r,o),e.safeDecode=(r,o)=>Ry(e,r,o),e.safeEncodeAsync=async(r,o)=>Cy(e,r,o),e.safeDecodeAsync=async(r,o)=>Ty(e,r,o),qa(e,"ZodType",{check(...r){let o=this.def;return this.clone(E.mergeDefs(o,{checks:[...o.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,o){return xt(this,r,o)},brand(){return this},register(r,o){return r.add(this,o),this},refine(r,o){return this.check(_h(r,o))},superRefine(r,o){return this.check($h(r,o))},overwrite(r){return this.check(mn(r))},optional(){return Ka(this)},exactOptional(){return oh(this)},nullable(){return Ya(this)},nullish(){return Ka(Ya(this))},nonoptional(r){return uh(this,r)},array(){return tl(this)},or(r){return ku([this,r])},and(r){return Gy(this,r)},transform(r){return nu(this,$u(r))},default(r){return lh(this,r)},prefault(r){return ch(this,r)},catch(r){return fh(this,r)},pipe(r){return nu(this,r)},readonly(){return yh(this)},describe(r){let o=this.clone();return at.add(o,{description:r}),o},meta(...r){if(r.length===0)return at.get(this);let o=this.clone();return at.add(o,r[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return at.get(e)?.description},configurable:!0}),e)),ru=S("_ZodString",(e,t)=>{eo.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Ov(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,qa(e,"_ZodString",{regex(...o){return this.check(qo(...o))},includes(...o){return this.check(ti(...o))},startsWith(...o){return this.check(ni(...o))},endsWith(...o){return this.check(ri(...o))},min(...o){return this.check(Yn(...o))},max(...o){return this.check(no(...o))},length(...o){return this.check(ro(...o))},nonempty(...o){return this.check(Yn(1,...o))},lowercase(o){return this.check(Qo(o))},uppercase(o){return this.check(ei(o))},trim(){return this.check(ai())},normalize(...o){return this.check(ii(...o))},toLowerCase(){return this.check(li())},toUpperCase(){return this.check(si())},slugify(){return this.check(ci())}})}),gi=S("ZodString",(e,t)=>{eo.init(e,t),ru.init(e,t),e.email=r=>e.check(Sc(ou,r)),e.url=r=>e.check(Ha(Qa,r)),e.jwt=r=>e.check(Ac(xu,r)),e.emoji=r=>e.check(wc(iu,r)),e.guid=r=>e.check(Va(Xa,r)),e.uuid=r=>e.check(bc(En,r)),e.uuidv4=r=>e.check(kc(En,r)),e.uuidv6=r=>e.check(_c(En,r)),e.uuidv7=r=>e.check($c(En,r)),e.nanoid=r=>e.check(zc(au,r)),e.guid=r=>e.check(Va(Xa,r)),e.cuid=r=>e.check(Ic(lu,r)),e.cuid2=r=>e.check(Pc(su,r)),e.ulid=r=>e.check(Ec(cu,r)),e.base64=r=>e.check(Nc(vu,r)),e.base64url=r=>e.check(Lc(yu,r)),e.xid=r=>e.check(Rc(uu,r)),e.ksuid=r=>e.check(Cc(du,r)),e.ipv4=r=>e.check(Tc(pu,r)),e.ipv6=r=>e.check(jc(fu,r)),e.cidrv4=r=>e.check(Oc(mu,r)),e.cidrv6=r=>e.check(Dc(gu,r)),e.e164=r=>e.check(Fc(hu,r)),e.datetime=r=>e.check(yy(r)),e.date=r=>e.check(hy(r)),e.time=r=>e.check(xy(r)),e.duration=r=>e.check(Sy(r))});function Ga(e){return Gg(gi,e)}var be=S("ZodStringFormat",(e,t)=>{Se.init(e,t),ru.init(e,t)}),ou=S("ZodEmail",(e,t)=>{Am.init(e,t),be.init(e,t)});function E$(e){return Sc(ou,e)}var Xa=S("ZodGUID",(e,t)=>{Lm.init(e,t),be.init(e,t)});function R$(e){return Va(Xa,e)}var En=S("ZodUUID",(e,t)=>{Fm.init(e,t),be.init(e,t)});function C$(e){return bc(En,e)}function T$(e){return kc(En,e)}function j$(e){return _c(En,e)}function O$(e){return $c(En,e)}var Qa=S("ZodURL",(e,t)=>{Um.init(e,t),be.init(e,t)});function D$(e){return Ha(Qa,e)}function N$(e){return Ha(Qa,{protocol:Ft.httpProtocol,hostname:Ft.domain,...E.normalizeParams(e)})}var iu=S("ZodEmoji",(e,t)=>{Wm.init(e,t),be.init(e,t)});function L$(e){return wc(iu,e)}var au=S("ZodNanoID",(e,t)=>{Mm.init(e,t),be.init(e,t)});function F$(e){return zc(au,e)}var lu=S("ZodCUID",(e,t)=>{Bm.init(e,t),be.init(e,t)});function A$(e){return Ic(lu,e)}var su=S("ZodCUID2",(e,t)=>{Zm.init(e,t),be.init(e,t)});function U$(e){return Pc(su,e)}var cu=S("ZodULID",(e,t)=>{Vm.init(e,t),be.init(e,t)});function W$(e){return Ec(cu,e)}var uu=S("ZodXID",(e,t)=>{Hm.init(e,t),be.init(e,t)});function M$(e){return Rc(uu,e)}var du=S("ZodKSUID",(e,t)=>{Jm.init(e,t),be.init(e,t)});function B$(e){return Cc(du,e)}var pu=S("ZodIPv4",(e,t)=>{qm.init(e,t),be.init(e,t)});function Z$(e){return Tc(pu,e)}var jy=S("ZodMAC",(e,t)=>{eg.init(e,t),be.init(e,t)});function V$(e){return Kg(jy,e)}var fu=S("ZodIPv6",(e,t)=>{Qm.init(e,t),be.init(e,t)});function H$(e){return jc(fu,e)}var mu=S("ZodCIDRv4",(e,t)=>{tg.init(e,t),be.init(e,t)});function J$(e){return Oc(mu,e)}var gu=S("ZodCIDRv6",(e,t)=>{ng.init(e,t),be.init(e,t)});function G$(e){return Dc(gu,e)}var vu=S("ZodBase64",(e,t)=>{og.init(e,t),be.init(e,t)});function X$(e){return Nc(vu,e)}var yu=S("ZodBase64URL",(e,t)=>{ig.init(e,t),be.init(e,t)});function K$(e){return Lc(yu,e)}var hu=S("ZodE164",(e,t)=>{ag.init(e,t),be.init(e,t)});function Y$(e){return Fc(hu,e)}var xu=S("ZodJWT",(e,t)=>{lg.init(e,t),be.init(e,t)});function q$(e){return Ac(xu,e)}var vi=S("ZodCustomStringFormat",(e,t)=>{sg.init(e,t),be.init(e,t)});function Q$(e,t,r={}){return ui(vi,e,t,r)}function e0(e){return ui(vi,"hostname",Ft.hostname,e)}function t0(e){return ui(vi,"hex",Ft.hex,e)}function n0(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Ft[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return ui(vi,o,n,t)}var yi=S("ZodNumber",(e,t)=>{uc.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Dv(e,o,n,i),qa(e,"ZodNumber",{gt(o,n){return this.check(In(o,n))},gte(o,n){return this.check(bt(o,n))},min(o,n){return this.check(bt(o,n))},lt(o,n){return this.check(zn(o,n))},lte(o,n){return this.check(At(o,n))},max(o,n){return this.check(At(o,n))},int(o){return this.check(tu(o))},safe(o){return this.check(tu(o))},positive(o){return this.check(In(0,o))},nonnegative(o){return this.check(bt(0,o))},negative(o){return this.check(zn(0,o))},nonpositive(o){return this.check(At(0,o))},multipleOf(o,n){return this.check(Ir(o,n))},step(o,n){return this.check(Ir(o,n))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function Oy(e){return nv(yi,e)}var io=S("ZodNumberFormat",(e,t)=>{cg.init(e,t),yi.init(e,t)});function tu(e){return ov(io,e)}function r0(e){return iv(io,e)}function o0(e){return av(io,e)}function i0(e){return lv(io,e)}function a0(e){return sv(io,e)}var hi=S("ZodBoolean",(e,t)=>{Ua.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nv(e,r,o,n)});function Dy(e){return cv(hi,e)}var xi=S("ZodBigInt",(e,t)=>{dc.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Lv(e,o,n,i),e.gte=(o,n)=>e.check(bt(o,n)),e.min=(o,n)=>e.check(bt(o,n)),e.gt=(o,n)=>e.check(In(o,n)),e.gte=(o,n)=>e.check(bt(o,n)),e.min=(o,n)=>e.check(bt(o,n)),e.lt=(o,n)=>e.check(zn(o,n)),e.lte=(o,n)=>e.check(At(o,n)),e.max=(o,n)=>e.check(At(o,n)),e.positive=o=>e.check(In(BigInt(0),o)),e.negative=o=>e.check(zn(BigInt(0),o)),e.nonpositive=o=>e.check(At(BigInt(0),o)),e.nonnegative=o=>e.check(bt(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(Ir(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function l0(e){return dv(xi,e)}var Su=S("ZodBigIntFormat",(e,t)=>{ug.init(e,t),xi.init(e,t)});function s0(e){return fv(Su,e)}function c0(e){return mv(Su,e)}var Ny=S("ZodSymbol",(e,t)=>{dg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Fv(e,r,o,n)});function u0(e){return gv(Ny,e)}var Ly=S("ZodUndefined",(e,t)=>{pg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Uv(e,r,o,n)});function d0(e){return vv(Ly,e)}var Fy=S("ZodNull",(e,t)=>{fg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Av(e,r,o,n)});function Ay(e){return yv(Fy,e)}var Uy=S("ZodAny",(e,t)=>{mg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Bv(e,r,o,n)});function p0(){return hv(Uy)}var Wy=S("ZodUnknown",(e,t)=>{gg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zv(e,r,o,n)});function oo(){return xv(Wy)}var My=S("ZodNever",(e,t)=>{vg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Mv(e,r,o,n)});function bu(e){return Sv(My,e)}var By=S("ZodVoid",(e,t)=>{yg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Wv(e,r,o,n)});function f0(e){return bv(By,e)}var el=S("ZodDate",(e,t)=>{hg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Vv(e,o,n,i),e.min=(o,n)=>e.check(bt(o,n)),e.max=(o,n)=>e.check(At(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function m0(e){return kv(el,e)}var Zy=S("ZodArray",(e,t)=>{xg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ry(e,r,o,n),e.element=t.element,qa(e,"ZodArray",{min(r,o){return this.check(Yn(r,o))},nonempty(r){return this.check(Yn(1,r))},max(r,o){return this.check(no(r,o))},length(r,o){return this.check(ro(r,o))},unwrap(){return this.element}})});function tl(e,t){return wv(Zy,e,t)}function g0(e){let t=e._zod.def.shape;return _u(Object.keys(t))}var nl=S("ZodObject",(e,t)=>{Sg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>oy(e,r,o,n),E.defineLazy(e,"shape",()=>t.shape),qa(e,"ZodObject",{keyof(){return _u(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:oo()})},loose(){return this.clone({...this._zod.def,catchall:oo()})},strict(){return this.clone({...this._zod.def,catchall:bu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return E.extend(this,r)},safeExtend(r){return E.safeExtend(this,r)},merge(r){return E.merge(this,r)},pick(r){return E.pick(this,r)},omit(r){return E.omit(this,r)},partial(...r){return E.partial(wu,this,r[0])},required(...r){return E.required(zu,this,r[0])}})});function v0(e,t){let r={type:"object",shape:e??{},...E.normalizeParams(t)};return new nl(r)}function y0(e,t){return new nl({type:"object",shape:e,catchall:bu(),...E.normalizeParams(t)})}function h0(e,t){return new nl({type:"object",shape:e,catchall:oo(),...E.normalizeParams(t)})}var rl=S("ZodUnion",(e,t)=>{Wa.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Hc(e,r,o,n),e.options=t.options});function ku(e,t){return new rl({type:"union",options:e,...E.normalizeParams(t)})}var Vy=S("ZodXor",(e,t)=>{rl.init(e,t),bg.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Hc(e,r,o,n),e.options=t.options});function x0(e,t){return new Vy({type:"union",options:e,inclusive:!1,...E.normalizeParams(t)})}var Hy=S("ZodDiscriminatedUnion",(e,t)=>{rl.init(e,t),kg.init(e,t)});function S0(e,t,r){return new Hy({type:"union",options:t,discriminator:e,...E.normalizeParams(r)})}var Jy=S("ZodIntersection",(e,t)=>{_g.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>iy(e,r,o,n)});function Gy(e,t){return new Jy({type:"intersection",left:e,right:t})}var Xy=S("ZodTuple",(e,t)=>{pc.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ay(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Ky(e,t,r){let o=t instanceof ee,n=o?r:t,i=o?t:null;return new Xy({type:"tuple",items:e,rest:i,...E.normalizeParams(n)})}var fi=S("ZodRecord",(e,t)=>{$g.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ly(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function Yy(e,t,r){return!t||!t._zod?new fi({type:"record",keyType:Ga(),valueType:e,...E.normalizeParams(t)}):new fi({type:"record",keyType:e,valueType:t,...E.normalizeParams(r)})}function b0(e,t,r){let o=xt(e);return o._zod.values=void 0,new fi({type:"record",keyType:o,valueType:t,...E.normalizeParams(r)})}function k0(e,t,r){return new fi({type:"record",keyType:e,valueType:t,mode:"loose",...E.normalizeParams(r)})}var qy=S("ZodMap",(e,t)=>{wg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ty(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Pn(...r)),e.nonempty=r=>e.check(Pn(1,r)),e.max=(...r)=>e.check(Pr(...r)),e.size=(...r)=>e.check(to(...r))});function _0(e,t,r){return new qy({type:"map",keyType:e,valueType:t,...E.normalizeParams(r)})}var Qy=S("ZodSet",(e,t)=>{zg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ny(e,r,o,n),e.min=(...r)=>e.check(Pn(...r)),e.nonempty=r=>e.check(Pn(1,r)),e.max=(...r)=>e.check(Pr(...r)),e.size=(...r)=>e.check(to(...r))});function $0(e,t){return new Qy({type:"set",valueType:e,...E.normalizeParams(t)})}var mi=S("ZodEnum",(e,t)=>{Ig.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Hv(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new mi({...t,checks:[],...E.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new mi({...t,checks:[],...E.normalizeParams(n),entries:i})}});function _u(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new mi({type:"enum",entries:r,...E.normalizeParams(t)})}function w0(e,t){return new mi({type:"enum",entries:e,...E.normalizeParams(t)})}var eh=S("ZodLiteral",(e,t)=>{Pg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jv(e,r,o,n),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 z0(e,t){return new eh({type:"literal",values:Array.isArray(e)?e:[e],...E.normalizeParams(t)})}var th=S("ZodFile",(e,t)=>{Eg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Kv(e,r,o,n),e.min=(r,o)=>e.check(Pn(r,o)),e.max=(r,o)=>e.check(Pr(r,o)),e.mime=(r,o)=>e.check(oi(Array.isArray(r)?r:[r],o))});function I0(e){return zv(th,e)}var nh=S("ZodTransform",(e,t)=>{Rg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ey(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new kr(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(E.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(E.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function $u(e){return new nh({type:"transform",transform:e})}var wu=S("ZodOptional",(e,t)=>{fc.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jc(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ka(e){return new wu({type:"optional",innerType:e})}var rh=S("ZodExactOptional",(e,t)=>{Cg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jc(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function oh(e){return new rh({type:"optional",innerType:e})}var ih=S("ZodNullable",(e,t)=>{Tg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ya(e){return new ih({type:"nullable",innerType:e})}function P0(e){return Ka(Ya(e))}var ah=S("ZodDefault",(e,t)=>{jg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>uy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lh(e,t){return new ah({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():E.shallowClone(t)}})}var sh=S("ZodPrefault",(e,t)=>{Og.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>dy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function ch(e,t){return new sh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():E.shallowClone(t)}})}var zu=S("ZodNonOptional",(e,t)=>{Dg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>cy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function uh(e,t){return new zu({type:"nonoptional",innerType:e,...E.normalizeParams(t)})}var dh=S("ZodSuccess",(e,t)=>{Ng.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function E0(e){return new dh({type:"success",innerType:e})}var ph=S("ZodCatch",(e,t)=>{Lg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>py(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function fh(e,t){return new ph({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var mh=S("ZodNaN",(e,t)=>{Fg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gv(e,r,o,n)});function R0(e){return $v(mh,e)}var ol=S("ZodPipe",(e,t)=>{mc.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fy(e,r,o,n),e.in=t.in,e.out=t.out});function nu(e,t){return new ol({type:"pipe",in:e,out:t})}var il=S("ZodCodec",(e,t)=>{ol.init(e,t),Ma.init(e,t)});function C0(e,t,r){return new il({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function T0(e){let t=e._zod.def;return new il({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var gh=S("ZodPreprocess",(e,t)=>{ol.init(e,t),Ag.init(e,t)}),vh=S("ZodReadonly",(e,t)=>{Ug.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>my(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function yh(e){return new vh({type:"readonly",innerType:e})}var hh=S("ZodTemplateLiteral",(e,t)=>{Wg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xv(e,r,o,n)});function j0(e,t){return new hh({type:"template_literal",parts:e,...E.normalizeParams(t)})}var xh=S("ZodLazy",(e,t)=>{Zg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>vy(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function Sh(e){return new xh({type:"lazy",getter:e})}var bh=S("ZodPromise",(e,t)=>{Bg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>gy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function O0(e){return new bh({type:"promise",innerType:e})}var kh=S("ZodFunction",(e,t)=>{Mg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qv(e,r,o,n)});function D0(e){return new kh({type:"function",input:Array.isArray(e?.input)?Ky(e?.input):e?.input??tl(oo()),output:e?.output??oo()})}var al=S("ZodCustom",(e,t)=>{Vg.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(r,o,n)=>qv(e,r,o,n)});function N0(e){let t=new _e({check:"custom"});return t._zod.check=e,t}function L0(e,t){return Iv(al,e??(()=>!0),t)}function _h(e,t={}){return Pv(al,e,t)}function $h(e,t){return Ev(e,t)}var F0=Rv,A0=Cv;function U0(e,t={}){let r=new al({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...E.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var W0=(...e)=>Tv({Codec:il,Boolean:hi,String:gi},...e);function M0(e){let t=Sh(()=>ku([Ga(e),Oy(),Dy(),Ay(),tl(t),Yy(Ga(),t)]));return t}function B0(e,t){return new gh({type:"pipe",in:$u(e),out:t})}var DR={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 NR(e){Fe({customError:e})}function LR(){return Fe().customError}var wh;wh||(wh={});var W={...Ja,...Kc,iso:pi},FR=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 AR(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function UR(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function Z0(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return W.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 n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return W.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=UR(n,t),a=ft(i,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return W.null();if(n.length===0)return W.never();if(n.length===1)return W.literal(n[0]);if(n.every(a=>typeof a=="string"))return W.enum(n);let i=n.map(a=>W.literal(a));return i.length<2?i[0]:W.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return W.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return Z0(a,t)});return n.length===0?W.never():n.length===1?n[0]:W.union(n)}if(!r)return W.any();let o;switch(r){case"string":{let n=W.string();if(e.format){let i=e.format;i==="email"?n=n.check(W.email()):i==="uri"||i==="uri-reference"?n=n.check(W.url()):i==="uuid"||i==="guid"?n=n.check(W.uuid()):i==="date-time"?n=n.check(W.iso.datetime()):i==="date"?n=n.check(W.iso.date()):i==="time"?n=n.check(W.iso.time()):i==="duration"?n=n.check(W.iso.duration()):i==="ipv4"?n=n.check(W.ipv4()):i==="ipv6"?n=n.check(W.ipv6()):i==="mac"?n=n.check(W.mac()):i==="cidr"?n=n.check(W.cidrv4()):i==="cidr-v6"?n=n.check(W.cidrv6()):i==="base64"?n=n.check(W.base64()):i==="base64url"?n=n.check(W.base64url()):i==="e164"?n=n.check(W.e164()):i==="jwt"?n=n.check(W.jwt()):i==="emoji"?n=n.check(W.emoji()):i==="nanoid"?n=n.check(W.nanoid()):i==="cuid"?n=n.check(W.cuid()):i==="cuid2"?n=n.check(W.cuid2()):i==="ulid"?n=n.check(W.ulid()):i==="xid"?n=n.check(W.xid()):i==="ksuid"&&(n=n.check(W.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?W.number().int():W.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=W.boolean();break}case"null":{o=W.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[s,c]of Object.entries(i)){let d=ft(c,t);n[s]=a.has(s)?d:d.optional()}if(e.propertyNames){let s=ft(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?ft(e.additionalProperties,t):W.any();if(Object.keys(n).length===0){o=W.record(s,c);break}let d=W.object(n).passthrough(),p=W.looseRecord(s,c);o=W.intersection(d,p);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),d=[];for(let f of c){let g=ft(s[f],t),x=W.string().regex(new RegExp(f));d.push(W.looseRecord(x,g))}let p=[];if(Object.keys(n).length>0&&p.push(W.object(n).passthrough()),p.push(...d),p.length===0)o=W.object({}).passthrough();else if(p.length===1)o=p[0];else{let f=W.intersection(p[0],p[1]);for(let g=2;g<p.length;g++)f=W.intersection(f,p[g]);o=f}break}let l=W.object(n);e.additionalProperties===!1?o=l.strict():typeof e.additionalProperties=="object"?o=l.catchall(ft(e.additionalProperties,t)):o=l.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(s=>ft(s,t)),l=i&&typeof i=="object"&&!Array.isArray(i)?ft(i,t):void 0;l?o=W.tuple(a).rest(l):o=W.tuple(a),typeof e.minItems=="number"&&(o=o.check(W.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(W.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(s=>ft(s,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?ft(e.additionalItems,t):void 0;l?o=W.tuple(a).rest(l):o=W.tuple(a),typeof e.minItems=="number"&&(o=o.check(W.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(W.maxLength(e.maxItems)))}else if(i!==void 0){let a=ft(i,t),l=W.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),o=l}else o=W.array(W.any());break}default:throw new Error(`Unsupported type: ${r}`)}return o}function ft(e,t){if(typeof e=="boolean")return e?W.any():W.never();let r=Z0(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(c=>ft(c,t)),s=W.union(l);r=o?W.intersection(r,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(c=>ft(c,t)),s=W.xor(l);r=o?W.intersection(r,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:W.any();else{let l=o?r:ft(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)l=W.intersection(l,ft(e.allOf[c],t));r=l}e.nullable===!0&&t.version==="openapi-3.0"&&(r=W.nullable(r)),e.readOnly===!0&&(r=W.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of i)l in e&&(n[l]=e[l]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let l of a)l in e&&(n[l]=e[l]);for(let l of Object.keys(e))FR.has(l)||(n[l]=e[l]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function V0(e,t){if(typeof e=="boolean")return e?W.any():W.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=AR(r,t?.defaultTarget),n=r.$defs||r.definitions||{},i={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??at};return ft(r,i)}var zh={};An(zh,{bigint:()=>ZR,boolean:()=>BR,date:()=>VR,number:()=>MR,string:()=>WR});function WR(e){return Xg(gi,e)}function MR(e){return rv(yi,e)}function BR(e){return uv(hi,e)}function ZR(e){return pv(xi,e)}function VR(e){return _v(el,e)}Fe(gc());var Iu=Object.freeze({savings:{status:"absent",measuredCents:0,modeledCents:0,assumption:{kind:"",assumptionText:"",signedOff:!1},blendedCentsPerMtok:null},infra:{status:"absent",cents:0,costBasis:"none"},pollination:{status:"absent",cents:0,lines:[]},net:{status:"absent",computed:!1,netCents:0,modeled:!0,costBasis:"none"},rollups:[],perUserAvailable:!1,scopedAcrossDevices:!1,ratesAsOf:""}),Pu=Object.freeze({status:"absent",series:[],startedAt:""});var X=Object.freeze({kpis:"/api/diagnostics/kpis",sessions:"/api/diagnostics/sessions",settings:"/api/diagnostics/settings",rules:"/api/diagnostics/rules",skills:"/api/diagnostics/skills",graph:"/api/graph",graphBuild:"/api/graph/build",memoryGraph:"/api/diagnostics/memory-graph",recall:"/api/memories/recall",memories:"/api/memories",compact:"/api/diagnostics/compact",lifecycleConflicts:"/api/memories/conflicts",lifecycleStaleRefs:"/api/memories/stale-refs",lifecycleHistory:"/api/memories/history",calibration:"/api/memories/calibration",logs:"/api/logs",logsStream:"/api/logs/stream",harnesses:"/api/diagnostics/harnesses",assets:"/api/diagnostics/assets",syncAction:"/api/diagnostics/sync",health:"/health",pollinate:"/api/diagnostics/pollinate",vaultSettings:"/api/settings",secrets:"/api/secrets",authStatus:"/api/auth/status",setupState:"/setup/state",setupLogin:"/setup/login",setupMigrate:"/setup/migrate-from-hivemind",setupMigrateRollback:"/setup/migrate-from-hivemind/rollback",scopeOrgs:"/api/diagnostics/scope/orgs",scopeWorkspaces:"/api/diagnostics/scope/workspaces",scopeProjects:"/api/diagnostics/scope/projects",fsBrowse:"/api/diagnostics/fs/browse",projectsBind:"/api/diagnostics/projects/bind",projectsBindExisting:"/api/diagnostics/projects/bind-existing",projectsUnbind:"/api/diagnostics/projects/unbind",scopeOrgSwitch:"/api/diagnostics/scope/org-switch",scopeWorkspaceSwitch:"/api/diagnostics/scope/workspace-switch",roi:"/api/diagnostics/roi",roiTrend:"/api/diagnostics/roi/trend",actionsLogout:"/api/actions/logout",actionsEmbeddings:"/api/actions/embeddings",actionsRestart:"/api/actions/restart",actionsUninstall:"/api/actions/uninstall"}),HR="x-honeycomb-project";function ao(e){return e!==void 0&&e!==""?{[HR]:e}:{}}var JR=50,GR=u.object({memoryCount:u.number().catch(0),sessionCount:u.number().catch(0),turnCount:u.number().catch(0),estimatedSavings:u.number().catch(0),teamSkillCount:u.number().catch(0)}),Q0=u.object({sessionId:u.string().catch(""),project:u.string().catch(""),startedAt:u.string().catch(""),eventCount:u.number().catch(0),status:u.string().catch("captured")}),XR=u.object({sessions:u.array(Q0).catch([])}),KR=u.object({orgId:u.string().catch(""),orgName:u.string().catch(""),workspace:u.string().catch(""),settings:u.record(u.string(),u.string()).catch({})}),YR=u.object({id:u.string().catch(""),label:u.string().catch(""),kind:u.string().catch("")}),qR=u.object({from:u.string().catch(""),to:u.string().catch(""),kind:u.string().catch("")}),QR=u.object({totalNodes:u.number().catch(0),totalEdges:u.number().catch(0),shownNodes:u.number().catch(0),shownEdges:u.number().catch(0),truncated:u.boolean().catch(!1)}),H0=u.object({built:u.boolean().catch(!1),nodes:u.array(YR).catch([]),edges:u.array(qR).catch([]),meta:QR.optional().catch(void 0)}),eC=u.object({id:u.string().catch(""),title:u.string().catch(""),active:u.boolean().catch(!1)}),tC=u.object({rules:u.array(eC).catch([])}),nC=u.object({name:u.string().catch(""),scope:u.string().catch(""),syncState:u.string().catch("pending")}),rC=u.object({skills:u.array(nC).catch([])}),Rn=u.number().int().catch(0),Ph=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("absent"),e1=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("unreachable"),Eh=u.enum(["measured","allocated","none"]).catch("none"),oC=u.object({kind:u.string().catch(""),assumptionText:u.string().catch(""),signedOff:u.boolean().catch(!1)}),iC=u.object({status:Ph,measuredCents:Rn,modeledCents:Rn,assumption:oC.catch({kind:"",assumptionText:"",signedOff:!1}),blendedCentsPerMtok:u.number().int().nullable().catch(null)}),aC=u.object({status:e1,cents:Rn,costBasis:Eh}),lC=u.object({label:u.string().catch(""),cents:Rn}),sC=u.object({status:e1,cents:Rn,lines:u.array(lC).catch([])}),cC=u.object({status:Ph,computed:u.boolean().catch(!1),netCents:Rn,modeled:u.boolean().catch(!0),costBasis:Eh}),uC=u.object({key:u.string().catch(""),label:u.string().catch(""),measuredSavingsCents:Rn,netCents:Rn,infraCostCents:Rn,costBasis:Eh,sessions:u.number().int().catch(0)}),dC=u.object({dimension:u.enum(["org","team","agent","project"]).catch("org"),rows:u.array(uC).catch([]),mixedBasis:u.boolean().catch(!1)}),pC=u.object({savings:iC.catch({status:"absent",measuredCents:0,modeledCents:0,assumption:{kind:"",assumptionText:"",signedOff:!1},blendedCentsPerMtok:null}),infra:aC.catch({status:"unreachable",cents:0,costBasis:"none"}),pollination:sC.catch({status:"unreachable",cents:0,lines:[]}),net:cC.catch({status:"absent",computed:!1,netCents:0,modeled:!0,costBasis:"none"}),rollups:u.array(dC).catch([]),perUserAvailable:u.boolean().catch(!1),scopedAcrossDevices:u.boolean().catch(!1),ratesAsOf:u.string().catch("")}),fC=u.object({period:u.string().catch(""),cents:Rn}),mC=u.object({label:u.string().catch(""),modeled:u.boolean().catch(!1),points:u.array(fC).catch([])}),gC=u.object({status:Ph,series:u.array(mC).catch([]),startedAt:u.string().catch("")}),J0=u.object({assetType:u.enum(["skill","agent"]).catch("skill"),name:u.string().catch(""),description:u.string().catch(""),state:u.enum(["local","pulled","shared"]).catch("local"),scope:u.string().catch(""),sourceHarness:u.string().catch(""),tier:u.string().catch(""),style:u.string().catch(""),version:u.number().catch(0),honeycombId:u.string().catch(""),authoredByMe:u.boolean().catch(!1)}),vC=u.object({skills:u.array(J0).catch([]),agents:u.array(J0).catch([])}),yC=u.object({ok:u.boolean().catch(!1),action:u.enum(["promote","pull","demote","enable","disable"]).catch("promote"),assetType:u.enum(["skill","agent"]).catch("skill"),honeycombId:u.string().catch(""),state:u.enum(["local","pulled","shared",""]).catch(""),version:u.number().catch(0)}),Eu=Object.freeze({skills:[],agents:[]}),hC=u.object({source:u.string().catch(""),id:u.string().catch(""),text:u.string().catch(""),score:u.number().catch(0),kind:u.enum(["memory","session"]).catch("memory"),secondary:u.boolean().catch(!1)}),xC=u.object({hits:u.array(hC).catch([]),sources:u.array(u.string()).catch([]),degraded:u.boolean().catch(!0)}),t1=u.object({id:u.string().catch(""),type:u.string().catch(""),content:u.string().catch(""),confidence:u.number().catch(0),agentId:u.string().catch(""),createdAt:u.string().catch(""),updatedAt:u.string().catch(""),visibility:u.string().catch(""),sourceType:u.string().catch(""),sourceId:u.string().catch(""),version:u.number().catch(0),hasEmbedding:u.boolean().catch(!1)}),SC=u.object({memories:u.array(t1).catch([])}),bC=u.object({memory:t1}),kC=u.object({id:u.string().nullable().catch(null),action:u.string().catch("")}),G0=u.object({id:u.string().nullable().catch(null),action:u.string().catch(""),audited:u.boolean().catch(!1)}),_C=u.object({table:u.string().catch(""),keysScanned:u.number().catch(0),keysCompacted:u.number().catch(0),rowsReaped:u.number().catch(0),keysSkipped:u.number().catch(0),errored:u.number().catch(0)}),$C=u.object({ok:u.boolean().catch(!1),summaries:u.array(_C).catch([]),skippedTables:u.array(u.string()).catch([])}),wC=u.object({id:u.string().catch(""),memoryAId:u.string().catch(""),memoryBId:u.string().catch(""),verdict:u.string().catch("review"),winnerId:u.string().nullable().catch(null),status:u.string().catch("open"),contraScore:u.number().catch(0)}),zC=u.object({conflicts:u.array(wC).catch([]),status:u.string().catch("open")}),IC=u.object({memoryId:u.string().catch(""),refStatus:u.string().catch("stale"),staleRefs:u.array(u.string()).catch([]),verifiedAt:u.string().nullable().catch(null)}),PC=u.object({staleRefs:u.array(IC).catch([])}),EC=u.object({id:u.string().catch(""),memoryId:u.string().catch(""),actor:u.string().catch("pipeline"),operation:u.string().catch(""),reason:u.string().catch(""),confidence:u.number().catch(0),timestamp:u.string().catch("")}),RC=u.object({history:u.array(EC).catch([]),type:u.string().catch("lifecycle")}),CC=u.object({lower:u.number().catch(0),upper:u.number().catch(0),meanConfidence:u.number().catch(0),accuracy:u.number().catch(0),count:u.number().catch(0)}),TC=u.object({ece:u.number().catch(0),brier:u.number().catch(0),nSamples:u.number().catch(0),fitAt:u.string().nullable().catch(null),identity:u.boolean().catch(!0),reliabilityDiagram:u.array(CC).catch([])}),Ru=Object.freeze({ece:0,brier:0,nSamples:0,fitAt:null,identity:!0,reliabilityDiagram:[]}),Rh=u.object({time:u.string().catch(""),method:u.string().catch(""),path:u.string().catch(""),status:u.number().catch(0),durationMs:u.number().optional(),mode:u.string().optional(),org:u.string().optional(),workspace:u.string().optional()}),jC=u.object({records:u.array(Rh).catch([]),count:u.number().catch(0)}),OC=u.object({records:u.array(Rh).catch([]),count:u.number().catch(0),nextCursor:u.string().nullable().catch(null),persistent:u.boolean().catch(!1)}),DC=u.object({sessions:u.array(Q0).catch([]),nextCursor:u.string().nullable().catch(null)}),NC=u.object({kind:u.string().catch(""),binary:u.string().catch(""),fallbackBin:u.string().optional()}),LC=u.object({bin:u.string().catch(""),args:u.array(u.string()).catch([]),fallbackBin:u.string().optional()}),FC=u.object({name:u.string().catch(""),runtimePath:u.string().catch(""),contextChannel:u.string().catch(""),hostCli:LC.catch({bin:"",args:[]}),lifecycleEvents:u.array(u.string()).catch([]),agents:NC.optional(),workspaceRoots:u.boolean().optional(),mcpRegistration:u.boolean().optional(),contractedTools:u.boolean().optional(),agentsMdContext:u.boolean().optional(),userVisibleLogin:u.boolean().optional()}),AC=u.object({name:u.string().catch(""),installed:u.boolean().catch(!1),active:u.boolean().catch(!1),lastSeen:u.string().nullable().catch(null),turnsCaptured:u.number().catch(0),runtimePath:u.string().catch(""),capabilities:FC.catch({name:"",runtimePath:"",contextChannel:"",hostCli:{bin:"",args:[]},lifecycleEvents:[]})}),UC=u.object({harnesses:u.array(AC).catch([])}),WC=u.object({triggered:u.boolean().catch(!1),status:u.string().catch("skipped"),reason:u.string().optional()}),MC=u.object({built:u.boolean().catch(!1),nodeCount:u.number().catch(0),edgeCount:u.number().catch(0),fileCount:u.number().catch(0)}),Ih=Object.freeze({built:!1,nodeCount:0,edgeCount:0,fileCount:0}),BC=12e4,ZC=u.object({ok:u.boolean().catch(!1)}),VC=u.object({ok:u.boolean(),enabled:u.boolean()}),HC=u.object({ok:u.boolean().catch(!1),restarting:u.boolean().catch(!1)}),JC=u.object({ok:u.boolean().catch(!1),harnesses:u.array(u.string()).catch([]),removed:u.boolean().catch(!1),command:u.string().catch("honeycomb uninstall"),note:u.string().catch("")}),GC=u.object({storage:u.enum(["reachable","unreachable"]).catch("reachable"),embeddings:u.enum(["on","off"]).catch("on"),schema:u.enum(["ok","missing_table"]).catch("ok"),portkey:u.enum(["off","ok","unconfigured","unreachable"]).catch("off")}),XC=u.object({status:u.string().catch("ok"),reasons:GC.optional()}),KC=u.object({id:u.string().catch(""),label:u.string().catch(""),models:u.array(u.string()).catch([]),openEnded:u.boolean().catch(!1)}),YC=u.union([u.string(),u.number(),u.boolean()]).catch(""),qC=u.object({settings:u.record(u.string(),YC).catch({}),catalog:u.array(KC).catch([])}),QC=u.object({names:u.array(u.string()).catch([])}),sl=Object.freeze({settings:{},catalog:[]}),eT=u.object({connected:u.boolean().catch(!1),orgId:u.string().catch(""),orgName:u.string().catch(""),workspace:u.string().catch(""),agentId:u.string().catch(""),source:u.enum(["env","file","none"]).catch("none"),savedAt:u.string().catch(""),expiresAt:u.number().optional()}),Ch=Object.freeze({connected:!1,orgId:"",orgName:"",workspace:"",agentId:"",source:"none",savedAt:""}),tT=u.object({deeplake:u.boolean().catch(!1),honeycomb:u.boolean().catch(!1),hivemind:u.boolean().catch(!1)}),nT=u.object({enabled:u.boolean().catch(!1),live:u.boolean().catch(!1),warm:u.boolean().catch(!1)}),rT=u.object({credentials:tT.catch({deeplake:!1,honeycomb:!1,hivemind:!1}),phase:u.enum(["fresh","installed","linking","linked","migrating","migrated"]).catch("fresh"),priorTool:u.object({hivemind:u.enum(["absent","present","migrated"]).catch("absent")}).catch({hivemind:"absent"}),firstTimeSetupComplete:u.boolean().catch(!1),authenticated:u.boolean().catch(!1),warmup:nT.catch({enabled:!1,live:!1,warm:!1}),migration:u.object({phase:u.enum(["backup","uninstall","link","done","rolled_back"]).catch("backup"),startedAt:u.string().catch(""),backupPath:u.string().optional()}).optional()}),Th=Object.freeze({credentials:{deeplake:!1,honeycomb:!1,hivemind:!1},phase:"fresh",priorTool:{hivemind:"absent"},firstTimeSetupComplete:!1,authenticated:!1,warmup:{enabled:!1,live:!1,warm:!1}}),oT=u.object({user_code:u.string().catch(""),verification_uri:u.string().catch(""),verification_uri_complete:u.string().optional()}),iT=u.object({ok:u.boolean().catch(!1),phase:u.enum(["backup","uninstall","link","done","rolled_back"]).catch("backup"),message:u.string().catch(""),backupPath:u.string().optional(),needsLogin:u.boolean().optional(),migrated:u.boolean().optional()}),aT=Object.freeze({ok:!1,phase:"backup",message:"Migration is unavailable right now. Retry, or run the uninstall + `honeycomb login` in your terminal."}),lT=u.object({ok:u.boolean().catch(!1),phase:u.literal("rolled_back").catch("rolled_back"),message:u.string().catch("")}),sT=Object.freeze({ok:!1,phase:"rolled_back",message:"Rollback is unavailable right now. Retry."}),cT=u.object({id:u.string().catch(""),name:u.string().catch("")}),uT=u.object({orgs:u.array(cT).catch([])}),dT=u.object({id:u.string().catch(""),name:u.string().catch("")}),pT=u.object({workspaces:u.array(dT).catch([]),org:u.string().catch(""),reminted:u.boolean().catch(!1)}),fT=u.object({projectId:u.string().catch(""),name:u.string().catch(""),boundLocally:u.boolean().catch(!1),boundPaths:u.array(u.string()).catch([]),remote:u.string().catch(""),memoryCount:u.number().catch(0),sessionCount:u.number().catch(0),lastCapture:u.string().nullable().catch(null)}),mT=u.object({projects:u.array(fT).catch([]),org:u.string().catch(""),workspace:u.string().catch("")}),gT=u.object({name:u.string().catch(""),path:u.string().catch(""),isGitRepo:u.boolean().catch(!1)}),vT=u.object({path:u.string().catch(""),root:u.string().catch(""),parent:u.string().nullable().catch(null),children:u.array(gT).catch([]),error:u.string().optional()}),jh=Object.freeze({path:"",root:"",parent:null,children:[]}),X0=u.object({bound:u.boolean().catch(!1),path:u.string().catch(""),projectId:u.string().catch(""),error:u.string().optional()}),K0=Object.freeze({bound:!1,path:"",projectId:"",error:"unavailable"}),yT=u.object({unbound:u.boolean().catch(!1),path:u.string().catch("")}),hT=Object.freeze({unbound:!1,path:""}),xT=u.object({switched:u.boolean().catch(!1),org:u.string().catch(""),orgName:u.string().optional(),reminted:u.boolean().catch(!1),error:u.string().optional()}),ST=Object.freeze({switched:!1,org:"",reminted:!1,error:"unavailable"}),bT=u.object({switched:u.boolean().catch(!1),workspace:u.string().catch(""),error:u.string().optional()}),kT=Object.freeze({switched:!1,workspace:"",error:"unavailable"}),Qn=Object.freeze({"x-honeycomb-runtime-path":"plugin","x-honeycomb-session":"dashboard-web"});async function ke(e,t,r,o={}){try{let n=await e(t,{headers:{accept:"application/json",...Qn,...o}});if(!n.ok)return null;let i=await n.json(),a=r.safeParse(i);return a.success?a.data:null}catch{return null}}async function lt(e,t,r,o){try{let n=await e(t,{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Qn},body:JSON.stringify(r)});if(!n.ok)return null;let i=o.safeParse(await n.json());return i.success?i.data:null}catch{return null}}function _T(e){return e==="memories"?"team":e==="memory"?"org":"session"}var Y0=280;function $T(e){if(typeof e!="object"||e===null)return"";let t=e;for(let r of["file_path","path","command","pattern","query","url","prompt","description"]){let o=t[r];if(typeof o=="string"&&o.trim()!=="")return o.trim()}return""}function wT(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null)return null;let r=t,o=l=>typeof l=="string"?l.trim():"",n=o(r.kind)||o(r.type),i=o(r.tool)||o(r.tool_name),a=o(r.text)||o(r.prompt)||o(r.message);if(n.startsWith("assistant")&&a!=="")return`assistant: ${a}`;if(n.startsWith("user")&&a!=="")return`user: ${a}`;if(i!==""||n==="tool_call"){let l=$T(r.input??r.tool_input),s=i!==""?i:"tool";return l!==""?`${s} \xB7 ${l}`:s}return a!==""?a:null}function zT(e,t){let r=e.trim(),o=r;if(t==="session"||r.startsWith("{")||r.startsWith("[")){let n=wT(r);n!==null&&(o=n)}return o=o.replace(/\s+/g," ").trim(),o.length<=Y0?o:`${o.slice(0,Y0-1).trimEnd()}\u2026`}var Oh={memoryCount:0,sessionCount:0,turnCount:0,estimatedSavings:0,teamSkillCount:0},Dh={orgId:"",orgName:"",workspace:"",settings:{}},ll={built:!1,nodes:[],edges:[]},Cu=1500,q0=5e3;function Nh(e,t){let r=e.nodes.length>t,o=e.edges.length>q0;if(!r&&!o)return{graph:e,capped:!1};let n=r?e.nodes.slice(0,t):e.nodes,i=new Set(n.map(l=>l.id)),a=[];for(let l of e.edges)if(!(!i.has(l.from)||!i.has(l.to))&&(a.push(l),a.length>=q0))break;return{graph:{...e,nodes:n,edges:a},capped:!0}}var Lh=Object.freeze({records:[],count:0,nextCursor:null,persistent:!1}),IT=Object.freeze({sessions:[],nextCursor:null});function PT(e){let t=[],r=(o,n)=>{n===void 0||n===""||t.push(`${o}=${encodeURIComponent(String(n))}`)};return r("since",e.since),r("until",e.until),r("status",e.status),r("path",e.path),r("org",e.org),r("limit",e.limit),r("cursor",e.cursor),t.length>0?`?${t.join("&")}`:""}function Tu(e={}){let t=e.origin??"",r=e.fetchImpl??fetch,o=n=>`${t}${n}`;return{async kpis(n){return await ke(r,o(X.kpis),GR,ao(n))??Oh},async sessions(){return(await ke(r,o(X.sessions),XR))?.sessions??[]},async settings(){return await ke(r,o(X.settings),KR)??Dh},async rules(){return(await ke(r,o(X.rules),tC))?.rules??[]},async skills(){return(await ke(r,o(X.skills),rC))?.skills??[]},async graph(n){return await ke(r,o(X.graph),H0,ao(n))??ll},async memoryGraph(n){return await ke(r,o(X.memoryGraph),H0,ao(n))??ll},async roi(n){return await ke(r,o(X.roi),pC,ao(n))??Iu},async roiTrend(n,i){let a=n!==""?`?range=${encodeURIComponent(n)}`:"";return await ke(r,o(`${X.roiTrend}${a}`),gC,ao(i))??Pu},async recall(n,i){try{let a=await r(o(X.recall),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Qn,...ao(i)},body:JSON.stringify({query:n})});if(!a.ok)return{memories:[],degraded:!0};let l=xC.safeParse(await a.json());return l.success?{memories:l.data.hits.map((c,d)=>({memoryKey:c.id!==""?c.id:`hit-${d+1}`,snippet:zT(c.text,c.kind),source:c.source,score:c.score,scope:_T(c.source),verified:c.source==="memories",kind:c.kind,secondary:c.secondary})),degraded:l.data.degraded}:{memories:[],degraded:!0}}catch{return{memories:[],degraded:!0}}},async listMemories(n=JR,i){return(await ke(r,o(`${X.memories}?limit=${n}`),SC,ao(i)))?.memories??[]},async getMemory(n){return(await ke(r,o(`${X.memories}/${encodeURIComponent(n)}`),bC))?.memory??null},async addMemory(n){let i={content:n.content};return n.type!==void 0&&(i.type=n.type),n.agentId!==void 0&&(i.agentId=n.agentId),lt(r,o(X.memories),i,kC)},async modifyMemory(n,i){let a={content:i.content,reason:i.reason};return i.agentId!==void 0&&(a.agentId=i.agentId),lt(r,o(`${X.memories}/${encodeURIComponent(n)}/modify`),a,G0)},async forgetMemory(n,i){return lt(r,o(`${X.memories}/${encodeURIComponent(n)}/forget`),{reason:i.reason},G0)},async compact(n){let i=n!==void 0&&n!==""?{table:n}:{};return lt(r,o(X.compact),i,$C)},async lifecycleConflicts(n="open"){return(await ke(r,o(`${X.lifecycleConflicts}?status=${encodeURIComponent(n)}`),zC))?.conflicts??[]},async resolveConflict(n,i){try{let a={verdict:i.verdict};return i.winnerId!==void 0&&i.winnerId!==""&&(a.winnerId=i.winnerId),i.reason!==void 0&&i.reason!==""&&(a.reason=i.reason),(await r(o(`${X.lifecycleConflicts}/${encodeURIComponent(n)}/resolve`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Qn},body:JSON.stringify(a)})).ok}catch{return!1}},async lifecycleStaleRefs(){return(await ke(r,o(X.lifecycleStaleRefs),PC))?.staleRefs??[]},async lifecycleHistory(){return(await ke(r,o(`${X.lifecycleHistory}?type=lifecycle`),RC))?.history??[]},async calibration(){return await ke(r,o(X.calibration),TC)??Ru},async logs(n=40){return(await ke(r,o(`${X.logs}?limit=${n}`),jC))?.records??[]},logsStream(n){let i=globalThis.EventSource;if(i===void 0)return()=>{};let a=null,l=s=>{let c=ET(s.data);c!==null&&n(c)};try{a=new i(o(X.logsStream)),a.addEventListener("log",l)}catch{}return()=>{try{a?.removeEventListener("log",l),a?.close()}catch{}}},async logsHistory(n={}){let i=PT(n);return await ke(r,o(`${X.logs}/history${i}`),OC)??Lh},async turnsHistory(n={}){let i=[];n.limit!==void 0&&i.push(`limit=${encodeURIComponent(String(n.limit))}`),n.cursor!==void 0&&n.cursor!==""&&i.push(`cursor=${encodeURIComponent(n.cursor)}`);let a=i.length>0?`?${i.join("&")}`:"";return await ke(r,o(`${X.sessions}${a}`),DC)??IT},async harnesses(){return(await ke(r,o(X.harnesses),UC))?.harnesses??[]},async assetsView(){return await ke(r,o(X.assets),vC)??Eu},async syncAction(n,i){let a={assetType:i.assetType,name:i.name};return i.native!==void 0&&(a.native=i.native),i.honeycombId!==void 0&&i.honeycombId!==""&&(a.honeycombId=i.honeycombId),i.harness!==void 0&&i.harness!==""&&(a.harness=i.harness),lt(r,o(`${X.syncAction}/${n}`),a,yC)},async health(){try{let n=await r(o(X.health),{headers:{accept:"application/json",...Qn}}),i=n.ok,a=null;try{let l=await n.json(),s=XC.safeParse(l);a=s.success?s.data.reasons??null:null}catch{a=null}return{up:i,reasons:a}}catch{return{up:!1,reasons:null}}},async pollinate(){try{let n=await r(o(X.pollinate),{method:"POST",headers:{...Qn}}),i=WC.safeParse(await n.json());return i.success?i.data:{triggered:!1,status:"skipped",reason:"unavailable"}}catch{return{triggered:!1,status:"skipped",reason:"unavailable"}}},async buildGraph(){let n=new AbortController,i=setTimeout(()=>n.abort(),BC);try{let a=await r(o(X.graphBuild),{method:"POST",headers:{accept:"application/json",...Qn},signal:n.signal});if(!a.ok)return Ih;let l=MC.safeParse(await a.json());return l.success?l.data:Ih}catch{return Ih}finally{clearTimeout(i)}},async vaultSettings(){return await ke(r,o(X.vaultSettings),qC)??sl},async setSetting(n,i){try{return(await r(o(`${X.vaultSettings}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Qn},body:JSON.stringify({value:i})})).ok}catch{return!1}},async secretNames(){return(await ke(r,o(X.secrets),QC))?.names??[]},async setSecret(n,i){try{return(await r(o(`${X.secrets}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Qn},body:JSON.stringify({value:i})})).ok}catch{return!1}},async logout(){return(await lt(r,o(X.actionsLogout),{},ZC))?.ok===!0},async setEmbeddings(n){let i=await lt(r,o(X.actionsEmbeddings),{enabled:n},VC);return i?.ok===!0&&i.enabled===n},async restartDaemon(){return(await lt(r,o(X.actionsRestart),{},HC))?.restarting===!0},async uninstall(){return lt(r,o(X.actionsUninstall),{},JC)},async authStatus(){return await ke(r,o(X.authStatus),eT)??Ch},async setupState(){return await ke(r,o(X.setupState),rT)??Th},async setupLogin(){return lt(r,o(X.setupLogin),{},oT)},async migrateFromHivemind(){return await lt(r,o(X.setupMigrate),{},iT)??aT},async rollbackMigration(){return await lt(r,o(X.setupMigrateRollback),{},lT)??sT},async scopeOrgs(){return(await ke(r,o(X.scopeOrgs),uT))?.orgs??[]},async scopeWorkspaces(n){let i=n!==void 0&&n!==""?`?org=${encodeURIComponent(n)}`:"";return await ke(r,o(`${X.scopeWorkspaces}${i}`),pT)??{workspaces:[],org:n??"",reminted:!1}},async scopeProjects(n={}){let i=n.unbound===!0?"?unbound=1":"";return(await ke(r,o(`${X.scopeProjects}${i}`),mT))?.projects??[]},async fsBrowse(n){let i=n!==void 0&&n!==""?`?path=${encodeURIComponent(n)}`:"";return await ke(r,o(`${X.fsBrowse}${i}`),vT)??jh},async bindProject(n){let i={path:n.path};return n.name!==void 0&&n.name!==""&&(i.name=n.name),await lt(r,o(X.projectsBind),i,X0)??K0},async bindExistingProject(n){let i={path:n.path,projectId:n.projectId};return await lt(r,o(X.projectsBindExisting),i,X0)??K0},async unbindProject(n){return await lt(r,o(X.projectsUnbind),{path:n.path},yT)??hT},async switchOrg(n){return await lt(r,o(X.scopeOrgSwitch),{org:n},xT)??ST},async switchWorkspace(n){return await lt(r,o(X.scopeWorkspaceSwitch),{workspace:n},bT)??kT}}}function ET(e){if(typeof e!="string")return null;try{let t=Rh.safeParse(JSON.parse(e));return t.success?t.data:null}catch{return null}}function Tr(e){let t=(e.time||"").slice(11,19)||(e.time||"").slice(0,8),r=e.status>0?` ${e.status}`:"";return`${t} ${e.method} ${e.path}${r}`.trimEnd()}var n1="/api/diagnostics/sync/";function ju(e){return(e.path??"").startsWith(n1)}function r1(e){let t=(e.path??"").slice(n1.length).split("/")[0]??"";switch(t){case"promote":return"published";case"pull":return"pulled";case"demote":return"tombstoned";case"enable":return"enabled";case"disable":return"disabled";default:return t}}var N=L(H(),1);function te({title:e,eyebrow:t,right:r,children:o,style:n}){return(0,N.jsxs)("section",{style:{background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden",display:"flex",flexDirection:"column",...n},children:[(0,N.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:10,padding:"13px 16px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,N.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:600,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em"},children:e}),t&&(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t}),(0,N.jsx)("span",{style:{flex:1}}),r]}),(0,N.jsx)("div",{style:{padding:16,flex:1},children:o})]})}function Ah({children:e}){return(0,N.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:e})}var ul={cursor:"var(--severity-info)","claude-code":"var(--honey)",codex:"var(--pollinate)",openclaw:"var(--verified)",hermes:"var(--severity-warning)",pi:"var(--severity-critical)"},dl="var(--text-tertiary)",cl=5;function o1({label:e,onClick:t,disabled:r}){return(0,N.jsx)("button",{type:"button",onClick:t,disabled:r,style:{width:22,height:22,padding:0,background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1,cursor:r?"default":"pointer",opacity:r?.4:1},children:e})}function a1({sessions:e}){let t=e.length,r=Math.max(1,Math.ceil(t/cl)),[o,n]=Cn.default.useState(0),i=Math.min(o,r-1),a=i*cl,l=e.slice(a,a+cl),s=t===0?0:a+1,c=Math.min(a+cl,t),d=t>cl?(0,N.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,N.jsx)(o1,{label:"\u2039",onClick:()=>n(p=>Math.max(0,p-1)),disabled:i===0}),(0,N.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap"},children:[s,"\u2013",c," of ",t]}),(0,N.jsx)(o1,{label:"\u203A",onClick:()=>n(p=>Math.min(r-1,p+1)),disabled:i>=r-1})]}):void 0;return(0,N.jsx)(te,{title:"Turns",eyebrow:`${t} captured`,right:d,children:t===0?(0,N.jsx)(Ah,{children:"No turns captured yet."}):(0,N.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:l.map((p,f)=>(0,N.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"84px 1fr auto auto",alignItems:"center",gap:12,padding:"10px 6px",borderTop:f===0?"none":"1px solid var(--border-subtle)"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:p.sessionId}),(0,N.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,N.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--text-tertiary)",flex:"none"}}),(0,N.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:p.project})]}),(0,N.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[p.startedAt,p.eventCount>0?` \xB7 ${p.eventCount}e`:""]}),(0,N.jsx)(Q,{tone:p.status==="summarized"?"verified":"neutral",mono:!0,children:p.status})]},p.sessionId||f))})})}function l1({rules:e}){return(0,N.jsx)(te,{title:"Rules",eyebrow:"org-wide",children:e.length===0?(0,N.jsx)(Ah,{children:"No rules defined."}):(0,N.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map((t,r)=>(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"9px 6px"},children:[(0,N.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:t.active?"var(--verified)":"var(--text-disabled)",flex:"none"}}),(0,N.jsx)("span",{style:{fontSize:14,color:t.active?"var(--text-primary)":"var(--text-tertiary)"},children:t.title}),(0,N.jsx)("span",{style:{flex:1}}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.id})]},t.id||r))})})}var Uh={shared:"verified",synced:"verified",pulled:"honey",pending:"warning",local:"neutral"};function s1({skills:e}){return(0,N.jsx)(te,{title:"Skill-sync",eyebrow:`${e.length} skills`,children:e.length===0?(0,N.jsx)(Ah,{children:"No skills synced."}):(0,N.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:e.map((t,r)=>(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name}),(0,N.jsx)("span",{style:{flex:1}}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.scope}),(0,N.jsx)(Q,{tone:Uh[t.syncState]??"neutral",mono:!0,dot:!0,children:t.syncState})]},t.name||r))})})}var Ou={file:"var(--honey)",function:"var(--severity-info)",class:"var(--pollinate)"},Du="var(--text-tertiary)";function jr({lines:e}){return(0,N.jsx)(te,{title:"Live log",right:(0,N.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,N.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"streaming"})]}),children:(0,N.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:e.length===0?(0,N.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for daemon activity\u2026"}):e.map((t,r)=>(0,N.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:r===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:t},r))})})}var Be=Object.freeze({activeProvider:"activeProvider",activeModel:"activeModel",pollinatingEnabled:"pollinating.enabled",recallMode:"recallMode",portkeyEnabled:"portkey.enabled",portkeyConfig:"portkey.config",portkeyFallbackToProvider:"portkey.fallbackToProvider"}),bi=Object.freeze({anthropic:"ANTHROPIC_API_KEY",openai:"OPENAI_API_KEY",openrouter:"OPENROUTER_API_KEY",cohere:"COHERE_API_KEY",portkey:"PORTKEY_API_KEY"});function i1({value:e,onChange:t,options:r,ariaLabel:o}){return(0,N.jsx)("select",{"aria-label":o,value:e,onChange:n=>t(n.target.value),style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:180},children:r.map(n=>(0,N.jsx)("option",{value:n.value,children:n.label},n.value))})}function Fh({on:e,onToggle:t,ariaLabel:r}){return(0,N.jsxs)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":r,onClick:t,style:{display:"inline-flex",alignItems:"center",gap:8,height:36,padding:"0 14px",background:e?"var(--pollinate-subtle)":"var(--bg-elevated)",border:`1px solid ${e?"var(--pollinate-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:e?"var(--pollinate)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,cursor:"pointer"},children:[(0,N.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:e?"var(--pollinate)":"var(--text-disabled)"}}),e?"on":"off"]})}function Si({label:e,hint:t,children:r}){return(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,N.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,N.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:e}),t&&(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t})]}),(0,N.jsx)("span",{style:{flex:1}}),r]})}function Nu({catalog:e,settings:t,secretNames:r,onSave:o}){let n=String(t[Be.activeProvider]??""),i=String(t[Be.activeModel]??""),a=t[Be.pollinatingEnabled]===!0||t[Be.pollinatingEnabled]==="true",l=e.find(h=>h.id===n),[s,c]=Cn.default.useState(i);Cn.default.useEffect(()=>c(i),[i]);let d=[{value:"",label:"\u2014 select \u2014"},...e.map(h=>({value:h.id,label:h.label||h.id}))],p=[{value:"",label:"\u2014 select \u2014"},...(l?.models??[]).map(h=>({value:h,label:h}))],f=h=>{o(Be.activeProvider,h)},g=h=>{h.length!==0&&o(Be.activeModel,h)},x=()=>{let h=s.trim();h.length>0&&h!==i&&o(Be.activeModel,h)};return(0,N.jsx)(te,{title:"Settings",eyebrow:"provider \xB7 model \xB7 pollinating",children:(0,N.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,N.jsxs)(Si,{label:"Provider",hint:"inference provider",children:[(0,N.jsx)(i1,{ariaLabel:"provider",value:n,onChange:f,options:d}),n.length>0&&(0,N.jsx)(CT,{provider:n,secretNames:r})]}),(0,N.jsx)(Si,{label:"Model",hint:l?.openEnded?"free-form id":"from catalog",children:l===void 0?(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"pick a provider first"}):l.openEnded?(0,N.jsx)("input",{"aria-label":"model",type:"text",value:s,placeholder:"vendor/model",onChange:h=>c(h.target.value),onBlur:x,onKeyDown:h=>{h.key==="Enter"&&x()},style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:200}}):(0,N.jsx)(i1,{ariaLabel:"model",value:i,onChange:g,options:p})}),(0,N.jsx)(Si,{label:"Pollinating",hint:"background consolidation",children:(0,N.jsx)(Fh,{ariaLabel:"pollinating",on:a,onToggle:()=>{o(Be.pollinatingEnabled,!a)}})})]})})}function CT({provider:e,secretNames:t}){let r=bi[e],o=r!==void 0&&t.includes(r);return(0,N.jsx)(Q,{tone:o?"verified":"neutral",mono:!0,dot:!0,children:o?"key set \u2713":"not set"})}function c1({settings:e,secretNames:t,onSaveSetting:r,onSaveKey:o}){let n=e[Be.portkeyEnabled]===!0||e[Be.portkeyEnabled]==="true",i=String(e[Be.portkeyConfig]??""),a=e[Be.portkeyFallbackToProvider]===!0||e[Be.portkeyFallbackToProvider]==="true",[l,s]=Cn.default.useState(i);Cn.default.useEffect(()=>s(i),[i]);let[c,d]=Cn.default.useState(""),[p,f]=Cn.default.useState(!1),[g,x]=Cn.default.useState(!1),h=()=>{let y=l.trim();y!==i&&r(Be.portkeyConfig,y)},_=Cn.default.useCallback(async()=>{let y=c;if(y.length===0){x(!0);return}f(!0),x(!1);let b=await o(y);f(!1),b?d(""):x(!0)},[c,o]),v=bi.portkey??"PORTKEY_API_KEY",m=t.includes(v);return(0,N.jsx)(te,{title:"Portkey gateway",eyebrow:"portkey.enabled \xB7 config \xB7 API key \xB7 fallback",children:(0,N.jsxs)("div",{"data-testid":"portkey-gateway-section",style:{display:"flex",flexDirection:"column",gap:2},children:[(0,N.jsx)(Si,{label:"Use Portkey gateway",hint:"routes all inference through Portkey",children:(0,N.jsx)(Fh,{ariaLabel:"portkey enabled",on:n,onToggle:()=>{r(Be.portkeyEnabled,!n)}})}),(0,N.jsx)(Si,{label:"Portkey config",hint:"config id or virtual key from your Portkey dashboard",children:(0,N.jsx)("input",{"aria-label":"portkey config","data-testid":"portkey-config-input",type:"text",value:l,placeholder:"pk-\u2026",onChange:y=>s(y.target.value),onBlur:h,onKeyDown:y=>{y.key==="Enter"&&h()},style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:240}})}),(0,N.jsxs)("div",{"data-testid":"portkey-key-row",style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",flexWrap:"wrap"},children:[(0,N.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:"Portkey API key"}),(0,N.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,N.jsx)("input",{"aria-label":"portkey api key","data-testid":"portkey-key-input",type:"password",value:c,placeholder:m?"replace key\u2026":"paste key\u2026",onChange:y=>{d(y.target.value),g&&x(!1)},onKeyDown:y=>{y.key==="Enter"&&_()},style:{height:36,padding:"0 10px",width:"100%",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13}})}),(0,N.jsx)("button",{type:"button",disabled:p,"data-testid":"portkey-key-save",onClick:()=>{_()},style:{height:36,padding:"0 14px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,cursor:p?"default":"pointer",opacity:p?.6:1},children:p?"saving\u2026":"Save key"}),(0,N.jsx)(Q,{tone:m?"verified":"neutral",mono:!0,dot:!0,children:m?"key set \u2713":"not set"}),g&&(0,N.jsx)("span",{"data-testid":"portkey-key-rejected",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]}),(0,N.jsx)(Si,{label:"Fallback to provider",hint:"use per-provider key if Portkey is unreachable",children:(0,N.jsx)(Fh,{ariaLabel:"portkey fallback to provider",on:a,onToggle:()=>{r(Be.portkeyFallbackToProvider,!a)}})})]})})}function u1({url:e,onRetry:t}){return(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,padding:"14px 18px",background:"var(--severity-critical-bg)",border:"1px solid var(--severity-critical)",borderRadius:"var(--radius-lg)"},children:[(0,N.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:"var(--severity-critical)",flex:"none"}}),(0,N.jsxs)("div",{style:{flex:1},children:[(0,N.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Daemon not reachable"}),(0,N.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:e})]}),(0,N.jsx)("button",{onClick:t,style:{height:34,padding:"0 16px",background:"transparent",border:"1px solid var(--severity-critical)",color:"var(--severity-critical)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:"Retry"})]})}var TT=["error","degraded","starting","warming","active"];function d1(e){return TT.includes(e)}function p1(e){return{health:e.health,lastSeen:e.lastSeen,telemetryFault:e.telemetryFault}}function f1(e){return{health:e.health,lastSeen:null,telemetryFault:null}}var jT=1e4,OT=2e4;function m1(e){let{signal:t,now:r,firstActiveAt:o}=e,n=e.warmingGraceMs??jT,i=e.staleAfterMs??OT;if(t===null)return"starting";if(t.telemetryFault!==null)return"degraded";if(t.health==="unreachable")return"error";if(t.lastSeen!==null){let a=Date.parse(t.lastSeen);if(Number.isFinite(a)&&r-a>i)return"error"}switch(t.health){case"degraded":return"degraded";case"unknown":return"starting";case"ok":return o!==null&&r-o<n?"warming":"active";default:return t.health}}function Wh(e,t,r){return e!=="ok"?null:t??r}var fe=L(H(),1);function Lu(){return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)("ellipse",{cx:12,cy:13,rx:4.4,ry:5.4,fill:"none",stroke:"currentColor",strokeWidth:1.6}),(0,fe.jsx)("path",{d:"M8.4 11.2h7.2M8.1 14.4h7.8",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"}),(0,fe.jsx)("circle",{cx:12,cy:6.6,r:2.1,fill:"none",stroke:"currentColor",strokeWidth:1.6}),(0,fe.jsx)("path",{d:"M10.8 5.2 9.6 3.2M13.2 5.2l1.2-2",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round"})]})}var ki={width:22,height:22,viewBox:"0 0 24 24","aria-hidden":!0,focusable:!1};function DT(){return(0,fe.jsxs)("svg",{...ki,"data-service-state":"starting",children:[(0,fe.jsx)("path",{d:"M12 3.5 19 7.75v8.5L12 20.5 5 16.25v-8.5z",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeDasharray:"2.5 2.5",strokeLinejoin:"round"}),(0,fe.jsx)("circle",{cx:12,cy:12,r:1.6,fill:"currentColor",opacity:.6})]})}function NT(){return(0,fe.jsxs)("svg",{...ki,"data-service-state":"warming",children:[(0,fe.jsx)(Lu,{}),(0,fe.jsx)("path",{d:"M8.2 12.4c-1.6-.6-2.6-.2-3-.7M15.8 12.4c1.6-.6 2.6-.2 3-.7",fill:"none",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round",opacity:.65})]})}function LT(){return(0,fe.jsxs)("svg",{...ki,"data-service-state":"active",children:[(0,fe.jsx)(Lu,{}),(0,fe.jsx)("ellipse",{cx:5.6,cy:10.4,rx:2.6,ry:1.7,fill:"none",stroke:"currentColor",strokeWidth:1.3,transform:"rotate(-24 5.6 10.4)"}),(0,fe.jsx)("ellipse",{cx:18.4,cy:10.4,rx:2.6,ry:1.7,fill:"none",stroke:"currentColor",strokeWidth:1.3,transform:"rotate(24 18.4 10.4)"})]})}function FT(){return(0,fe.jsxs)("svg",{...ki,"data-service-state":"degraded",children:[(0,fe.jsx)(Lu,{}),(0,fe.jsx)("ellipse",{cx:18.4,cy:10.4,rx:2.6,ry:1.7,fill:"none",stroke:"currentColor",strokeWidth:1.3,transform:"rotate(24 18.4 10.4)"}),(0,fe.jsx)("path",{d:"M18.4 2.4v3.6M18.4 7.4v.01",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round"})]})}function AT(){return(0,fe.jsxs)("svg",{...ki,"data-service-state":"error",children:[(0,fe.jsx)("g",{transform:"rotate(180 12 12)",children:(0,fe.jsx)(Lu,{})}),(0,fe.jsx)("path",{d:"M8.6 9.6l3.4 3.4-3.4 3.4M15.4 9.6l-3.4 3.4 3.4 3.4",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round",opacity:.85})]})}function UT(){return(0,fe.jsxs)("svg",{...ki,"data-service-state":"unknown",children:[(0,fe.jsx)("circle",{cx:12,cy:12,r:8,fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeDasharray:"3 3"}),(0,fe.jsx)("path",{d:"M12 9v4M12 15.5v.01",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round"})]})}function _i({state:e}){if(!d1(e))return(0,fe.jsx)(UT,{});let t=e;switch(t){case"starting":return(0,fe.jsx)(DT,{});case"warming":return(0,fe.jsx)(NT,{});case"active":return(0,fe.jsx)(LT,{});case"degraded":return(0,fe.jsx)(FT,{});case"error":return(0,fe.jsx)(AT,{});default:return t}}var lo={starting:"starting",warming:"warming up",active:"active",degraded:"degraded",error:"error"},$i={starting:"var(--text-tertiary)",warming:"var(--severity-warning)",active:"var(--verified)",degraded:"var(--severity-warning)",error:"var(--severity-critical)"};var so=L(he(),1);var Mh="fleet-telemetry",WT=u.enum(["ok","degraded","unreachable","unknown"]),MT=u.enum(["missing","locked","malformed","read-error"]),BT=u.object({connected:u.boolean().nullable(),lastCommunicationAt:u.string().nullable()}),ZT=u.object({name:u.string().min(1),health:WT,lastSeen:u.string().nullable(),metrics:u.record(u.string(),u.number()),deeplake:BT.nullable(),telemetryFault:MT.nullable()}),VT=u.object({service:u.string().min(1),ts:u.string().min(1),level:u.string().min(1),message:u.string()}),HT=u.object({asOf:u.string().min(1),services:u.array(ZT),logs:u.array(VT)});function g1(e){let t;try{t=JSON.parse(e)}catch{return null}let r=HT.safeParse(t);return r.success?r.data:null}var JT="/api/registered-services",GT="/api/telemetry/stream",XT="/api/fleet-status",KT=2e3,v1=500;function YT(e=[]){return{registeredNames:e,services:new Map,logs:[],source:"none",asOf:null}}function Bh(e,t){return e.includes(t)?e:[...e,t]}function qT(e,t){let r=e.registeredNames;for(let o of t)r=Bh(r,o);return r===e.registeredNames?e:{...e,registeredNames:r}}function QT(e,t){if(t.length===0)return e;let r=[...e,...t];return r.length>v1?r.slice(r.length-v1):r}function e4(e,t,r){let o=e.registeredNames,n=new Map(e.services);for(let i of t.services){o=Bh(o,i.name);let a=p1(i),l=n.get(i.name);n.set(i.name,{signal:a,metrics:i.metrics,deeplake:i.deeplake,firstActiveAt:Wh(i.health,l?.firstActiveAt??null,r)})}return{registeredNames:o,services:n,logs:QT(e.logs,t.logs),source:"sse",asOf:t.asOf}}function t4(e,t,r){if(t.supervisor!=="reachable")return{...e,source:"rest"};let o=e.registeredNames,n=new Map;for(let i of t.daemons){o=Bh(o,i.name);let a=f1(i),l=e.services.get(i.name);n.set(i.name,{signal:a,metrics:l?.metrics??{},deeplake:l?.deeplake??null,firstActiveAt:Wh(i.health,l?.firstActiveAt??null,r)})}return{registeredNames:o,services:n,logs:e.logs,source:"rest",asOf:t.asOf}}function n4(e,t){return e.registeredNames.map(r=>{let o=e.services.get(r),n=m1({signal:o?.signal??null,now:t,firstActiveAt:o?.firstActiveAt??null});return{name:r,state:n,health:o?.signal.health??null,lastSeen:o?.signal.lastSeen??null,metrics:o?.metrics??{},deeplake:o?.deeplake??null,telemetryFault:o?.signal.telemetryFault??null}})}function r4(e,t){return{services:n4(e,t),logs:e.logs,source:e.source,asOf:e.asOf}}function wi(e={}){let t=e.restPollMs??KT,[r,o]=so.default.useState(()=>YT()),[n,i]=so.default.useState(()=>Date.now());return so.default.useEffect(()=>{let a=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(a)},[]),so.default.useEffect(()=>{let a=!0;return(async()=>{try{let l=await fetch(JT);if(!l.ok)return;let s=await l.json();if(!a||!Array.isArray(s.names))return;let c=s.names.filter(d=>typeof d=="string");c.length>0&&o(d=>qT(d,c))}catch{}})(),()=>{a=!1}},[]),so.default.useEffect(()=>{let a=!0,l=null;function s(){l!==null&&(clearInterval(l),l=null)}function c(){if(l!==null)return;let x=async()=>{try{let _=await(await fetch(XT)).json();if(!a)return;o(v=>t4(v,_,Date.now()))}catch{}};x(),l=setInterval(()=>{x()},t)}let d=globalThis.EventSource;if(d===void 0)return c(),()=>{a=!1,s()};let p=null,f=x=>{if(!a)return;let h=typeof x.data=="string"?x.data:String(x.data),_=g1(h);_!==null&&(s(),o(v=>e4(v,_,Date.now())))},g=()=>c();try{p=new d(GT),p.addEventListener(Mh,f),p.addEventListener("error",g)}catch{c()}return()=>{a=!1,s();try{p?.removeEventListener(Mh,f),p?.removeEventListener("error",g),p?.close()}catch{}}},[t]),so.default.useMemo(()=>r4(r,n),[r,n])}var pl=["debug","info","warn","error"];function o4(e){let t=pl.indexOf(e.trim().toLowerCase());return t===-1?pl.indexOf("info"):t}function y1(e,t){let r=pl.indexOf(t);return e.filter(o=>o4(o.level)>=r)}var Qt=L(H(),1),h1="/health",i4={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0};function a4({service:e}){let t=`${e.name}: ${lo[e.state]}`;return(0,Qt.jsxs)("span",{"data-testid":`health-rail-pill-${e.name}`,"data-state":e.state,title:t,style:{display:"inline-flex",alignItems:"center",gap:6,height:26,padding:"0 10px",borderRadius:"var(--radius-full)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)",flex:"none"},children:[(0,Qt.jsx)("span",{style:{color:$i[e.state],display:"inline-flex",width:14,height:14},"aria-hidden":"true",children:(0,Qt.jsx)(_i,{state:e.state})}),(0,Qt.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-secondary)",whiteSpace:"nowrap"},children:[e.name,(0,Qt.jsxs)("span",{style:i4,children:[": ",lo[e.state]]})]})]})}function x1({onOpenHealth:e}={}){let t=wi();return(0,Qt.jsxs)("div",{"data-testid":"health-rail",role:"status","aria-live":"polite","aria-label":"Fleet health",style:{display:"flex",alignItems:"center",gap:8,padding:"8px 28px",borderBottom:"1px solid var(--border-subtle)",overflowX:"auto"},children:[t.services.length===0?(0,Qt.jsx)("span",{"data-testid":"health-rail-empty",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"no services registered"}):t.services.map(r=>(0,Qt.jsx)(a4,{service:r},r.name)),(0,Qt.jsx)("span",{style:{flex:1}}),e!==void 0&&(0,Qt.jsx)("button",{type:"button","data-testid":"health-rail-open-health",onClick:e,style:{background:"transparent",border:"none",color:"var(--text-tertiary)",fontFamily:"var(--font-mono)",fontSize:11,cursor:"pointer",padding:0},children:"health details \u2192"})]})}var Pe=L(he(),1);var E1=L(he(),1);var fl=L(he(),1);var Fu=L(he(),1),er=L(H(),1),Au=1180;function Ze({title:e,eyebrow:t,right:r,children:o}){return(0,er.jsxs)("div",{style:{maxWidth:Au,margin:"0 auto",width:"100%"},children:[(0,er.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:18},children:[(0,er.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0},children:[t!==void 0&&t!==""&&(0,er.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:t}),(0,er.jsx)("h1",{style:{fontSize:"var(--text-lg)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em",lineHeight:1.1},children:e})]}),(0,er.jsx)("span",{style:{flex:1}}),r]}),(0,er.jsx)("div",{children:o})]})}function Tn(){return typeof document<"u"&&document.visibilityState==="hidden"}function gn(e,t){let r=Fu.default.useRef(e);Fu.default.useEffect(()=>{r.current=e},[e]),Fu.default.useEffect(()=>{let o=!0,n=async()=>{!o||Tn()||await r.current()};n();let i=setInterval(()=>{n()},t),a=()=>{Tn()||n()};return typeof document<"u"&&document.addEventListener("visibilitychange",a),()=>{o=!1,clearInterval(i),typeof document<"u"&&document.removeEventListener("visibilitychange",a)}},[t])}var Uu=L(he(),1);function S1(e){let t=e.trim();return t===""?"/":t}var Zh="hive:pathchange";function Wu(){let[e,t]=Uu.default.useState(()=>typeof window>"u"?"/":S1(window.location.pathname));Uu.default.useEffect(()=>{if(typeof window>"u")return;let o=()=>t(S1(window.location.pathname));return o(),window.addEventListener("popstate",o),window.addEventListener(Zh,o),()=>{window.removeEventListener("popstate",o),window.removeEventListener(Zh,o)}},[]);let r=Uu.default.useCallback(o=>{if(typeof window>"u")return;let n=o.startsWith("/")?o:`/${o}`;window.location.pathname!==n&&window.history.pushState(null,"",n),window.dispatchEvent(new Event(Zh))},[]);return{route:e,navigate:r}}var F=L(H(),1),l4=5e3,s4=2500,b1=12,k1="/harnesses/";function c4(e){if(!e.startsWith(k1))return null;let t=e.slice(k1.length).split("/")[0]??"";return t===""?null:t}function Vh({name:e}){return(0,F.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",flex:"none",background:ul[e]??dl}})}function Mu(e){return e.installed?e.active?"active":"idle":"not installed"}var $1={active:"verified",idle:"neutral","not installed":"neutral"};function zi(e,t=Date.now()){if(e===null||e==="")return"never";let r=Date.parse(e);if(!Number.isFinite(r))return e;let o=Math.max(0,t-r),n=Math.floor(o/1e3);if(n<60)return`${n}s ago`;let i=Math.floor(n/60);if(i<60)return`${i}m ago`;let a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}var w1={active:"active",idle:"idle","not installed":"not installed"};function u4({h:e,onOpen:t}){let r=Mu(e),o=r==="not installed";return(0,F.jsxs)("button",{type:"button","data-testid":`harness-card-${e.name}`,"data-harness":e.name,onClick:()=>t(e.name),style:{display:"flex",flexDirection:"column",gap:12,padding:16,textAlign:"left",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",cursor:"pointer",opacity:o?.6:1},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:9},children:[(0,F.jsx)(Vh,{name:e.name}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:e.name}),(0,F.jsx)("span",{style:{flex:1}}),(0,F.jsx)(Q,{tone:$1[r],mono:!0,dot:!0,children:w1[r]})]}),(0,F.jsx)(Yt,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,F.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",zi(e.lastSeen)]})]})}function _1({on:e}){return(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:e?"var(--verified)":"var(--text-tertiary)"},children:e?"\u2713":"\u2014"})}function d4({harnesses:e,onOpen:t}){return(0,F.jsx)(te,{title:"Fleet",eyebrow:`${e.length} harnesses`,children:(0,F.jsxs)("div",{role:"table","aria-label":"installed/active matrix",style:{display:"flex",flexDirection:"column"},children:[(0,F.jsx)("div",{role:"row",style:{display:"grid",gridTemplateColumns:"1.6fr 0.8fr 0.8fr 1.2fr 0.8fr",gap:10,padding:"6px 6px",borderBottom:"1px solid var(--border-subtle)"},children:["harness","installed","active","last seen","turns"].map(r=>(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:r},r))}),e.map(r=>(0,F.jsxs)("div",{role:"row","data-testid":`harness-row-${r.name}`,"data-harness":r.name,onClick:()=>t(r.name),style:{display:"grid",gridTemplateColumns:"1.6fr 0.8fr 0.8fr 1.2fr 0.8fr",gap:10,alignItems:"center",padding:"9px 6px",cursor:"pointer",borderTop:"1px solid var(--border-subtle)",opacity:r.installed?1:.6},children:[(0,F.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,F.jsx)(Vh,{name:r.name}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)"},children:r.name})]}),(0,F.jsx)(_1,{on:r.installed}),(0,F.jsx)(_1,{on:r.active}),(0,F.jsx)("span",{title:r.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:zi(r.lastSeen)}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:r.turnsCaptured.toLocaleString()})]},r.name))]})})}function p4({harnesses:e,onOpen:t}){return(0,F.jsx)(Ze,{title:"Harnesses",eyebrow:`${e.length} \xB7 fleet`,children:e.length===0?(0,F.jsx)(te,{title:"Harnesses",children:(0,F.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harness telemetry yet."})}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:12,marginBottom:16},children:e.map(r=>(0,F.jsx)(u4,{h:r,onOpen:t},r.name))}),(0,F.jsx)(d4,{harnesses:e,onOpen:t})]})})}function Ut({label:e,children:t}){return(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,F.jsx)("span",{style:{flex:1}}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right"},children:t})]})}function f4({cap:e}){let t=`${e.hostCli.bin}${e.hostCli.args.length>0?" "+e.hostCli.args.join(" "):""}`.trim();return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(te,{title:"Runtime",eyebrow:e.runtimePath||"\u2014",style:{marginBottom:16},children:[(0,F.jsx)(Ut,{label:"runtime path",children:e.runtimePath||"\u2014"}),(0,F.jsx)(Ut,{label:"context channel",children:e.contextChannel||"\u2014"}),(0,F.jsx)(Ut,{label:"host CLI",children:t||"\u2014"}),e.hostCli.fallbackBin!==void 0&&e.hostCli.fallbackBin!==""&&(0,F.jsx)(Ut,{label:"fallback CLI",children:e.hostCli.fallbackBin}),(0,F.jsx)(Ut,{label:"lifecycle events",children:e.lifecycleEvents.length>0?e.lifecycleEvents.join(", "):"\u2014"})]}),e.agents!==void 0&&(0,F.jsx)("div",{"data-testid":"cap-agents",style:{marginBottom:16},children:(0,F.jsxs)(te,{title:"Agents",eyebrow:"cursor-agent",children:[(0,F.jsx)(Ut,{label:"agent kind",children:e.agents.kind}),(0,F.jsx)(Ut,{label:"binary",children:e.agents.binary}),e.agents.fallbackBin!==void 0&&e.agents.fallbackBin!==""&&(0,F.jsx)(Ut,{label:"fallback",children:e.agents.fallbackBin}),e.workspaceRoots===!0&&(0,F.jsx)(Ut,{label:"workspace roots",children:"yes"})]})}),e.mcpRegistration===!0&&(0,F.jsx)("div",{"data-testid":"cap-mcp",style:{marginBottom:16},children:(0,F.jsx)(te,{title:"MCP",eyebrow:"registered",children:(0,F.jsx)(Ut,{label:"honeycomb tools",children:"honeycomb_search \xB7 honeycomb_read \xB7 honeycomb_index"})})}),e.contractedTools===!0&&(0,F.jsx)("div",{"data-testid":"cap-contracted",style:{marginBottom:16},children:(0,F.jsx)(te,{title:"Contracted tools",eyebrow:"registered",children:(0,F.jsx)(Ut,{label:"tool registration",children:"contracted (no pre-tool hook)"})})}),e.agentsMdContext===!0&&(0,F.jsx)("div",{"data-testid":"cap-agentsmd",style:{marginBottom:16},children:(0,F.jsx)(te,{title:"Context surface",eyebrow:"AGENTS.md",children:(0,F.jsx)(Ut,{label:"injection",children:"static AGENTS.md block"})})}),e.userVisibleLogin===!0&&(0,F.jsx)("div",{"data-testid":"cap-login",style:{marginBottom:16},children:(0,F.jsx)(te,{title:"Context surface",eyebrow:"login line",children:(0,F.jsx)(Ut,{label:"injection",children:"user-visible login line"})})})]})}function m4(e,t){if(t==="")return[];let r=t.toLowerCase();return e.filter(o=>(o.path??"").toLowerCase().includes(r))}function g4({name:e,status:t,lines:r,onBack:o}){let n=(0,F.jsx)("button",{type:"button",onClick:o,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"\u2039 Harnesses"});if(t===null)return(0,F.jsx)(Ze,{title:e,eyebrow:"harness",right:n,children:(0,F.jsx)(te,{title:"Unknown harness",children:(0,F.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No telemetry for ",(0,F.jsx)("code",{style:{fontFamily:"var(--font-mono)",color:"var(--text-secondary)"},children:e})," \u2014 it is not one of the six canonical harnesses."]})})});let i=Mu(t);return(0,F.jsxs)(Ze,{title:e,eyebrow:"harness",right:n,children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,F.jsx)(Vh,{name:e}),(0,F.jsx)(Q,{tone:$1[i],mono:!0,dot:!0,children:w1[i]}),(0,F.jsx)("span",{style:{flex:1}}),(0,F.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},title:t.lastSeen??"never",children:["last seen ",zi(t.lastSeen)]})]}),(0,F.jsxs)("div",{className:"kpirow",style:{marginBottom:18},children:[(0,F.jsx)(Yt,{label:"Turns",value:t.turnsCaptured.toLocaleString(),accent:t.active?"verified":"neutral"}),(0,F.jsx)(Yt,{label:"Installed",value:t.installed?"yes":"no",accent:t.installed?"honey":"neutral"}),(0,F.jsx)(Yt,{label:"Runtime",value:t.runtimePath||"\u2014",accent:"pollinate"})]}),(0,F.jsx)(f4,{cap:t.capabilities}),(0,F.jsx)(jr,{lines:r})]})}function z1({wire:e}){let{route:t,navigate:r}=Wu(),o=c4(t),[n,i]=fl.default.useState([]),[a,l]=fl.default.useState([]);gn(async()=>i(await e.harnesses()),l4),gn(async()=>{if(o===null){l([]);return}let d=await e.logs(b1*4),p=m4(d,o);l(p.slice(-b1).reverse().map(Tr))},s4);let s=fl.default.useCallback(d=>r(`/harnesses/${d}`),[r]),c=fl.default.useCallback(()=>r("/harnesses"),[r]);if(o!==null){let d=n.find(p=>p.name===o)??null;return(0,F.jsx)(g4,{name:o,status:d,lines:a,onBack:c})}return(0,F.jsx)(p4,{harnesses:n,onOpen:s})}function I1(e){return Array.isArray(e)?e.map(t=>t!==null&&typeof t=="object"&&"name"in t?String(t.name):"").filter(t=>t!=="").map(t=>({route:`/harnesses/${t}`,label:t})):[]}var Ve=L(H(),1),P1={active:"verified",idle:"neutral"};function v4({h:e}){let r=Mu(e)==="active"?P1.active:P1.idle;return(0,Ve.jsx)("span",{"data-testid":`harness-chip-${e.name}`,"data-harness":e.name,title:`${e.name} \xB7 last seen ${zi(e.lastSeen)}`,style:{display:"inline-flex"},children:(0,Ve.jsxs)(Q,{tone:r,mono:!0,dot:!0,style:{background:"transparent"},children:[(0,Ve.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",flex:"none",background:ul[e.name]??dl}}),e.name]})})}function y4({h:e}){return(0,Ve.jsxs)("div",{"data-testid":`harness-tile-${e.name}`,"data-harness":e.name,style:{display:"flex",flexDirection:"column",gap:10,padding:14,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,Ve.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Ve.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:ul[e.name]??dl}}),(0,Ve.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e.name})]}),(0,Ve.jsx)(Yt,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,Ve.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",zi(e.lastSeen)]})]})}function R1({harnesses:e,streamLines:t}){let r=E1.default.useMemo(()=>e.filter(o=>o.installed),[e]);return(0,Ve.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,Ve.jsx)(te,{title:"Harnesses",eyebrow:`${r.length} wired in`,children:r.length===0?(0,Ve.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harnesses wired in yet."}):(0,Ve.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,Ve.jsx)("div",{"data-testid":"harness-chips",style:{display:"flex",flexWrap:"wrap",gap:8},children:r.map(o=>(0,Ve.jsx)(v4,{h:o},o.name))}),(0,Ve.jsx)("div",{"data-testid":"harness-tiles",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12},children:r.map(o=>(0,Ve.jsx)(y4,{h:o},o.name))})]})}),(0,Ve.jsx)(jr,{lines:t})]})}var Ae=L(he(),1),qe=L(H(),1),Gh=Object.freeze({org:"local",workspace:"default"}),C1="honeycomb.dashboard.scope",T1=Ae.default.createContext({scope:Gh,setScope:()=>{}});function Wt(){return Ae.default.useContext(T1)}var h4=Object.freeze({orgs:[],workspaces:[],projects:[],projectsHydrated:!1,loadingWorkspaces:!1,switchFeedback:null,selectOrg:()=>{},selectWorkspace:()=>{},selectProject:()=>{}}),j1=Ae.default.createContext(h4);function Xh(){return Ae.default.useContext(j1)}function x4(){try{if(typeof localStorage>"u")return null;let e=localStorage.getItem(C1);if(e===null||e==="")return null;let t=JSON.parse(e);if(typeof t!="object"||t===null)return null;let r=t,o=typeof r.org=="string"?r.org:"",n=typeof r.workspace=="string"?r.workspace:"";if(o===""||n==="")return null;let i=typeof r.project=="string"&&r.project!==""?r.project:void 0;return i!==void 0?{org:o,workspace:n,project:i}:{org:o,workspace:n}}catch{return null}}function S4(e){try{if(typeof localStorage>"u")return;localStorage.setItem(C1,JSON.stringify(e))}catch{}}function O1({wire:e,children:t}){let r=Ae.default.useMemo(()=>x4(),[]),[o,n]=Ae.default.useState(r??Gh),[i,a]=Ae.default.useState([]),[l,s]=Ae.default.useState([]),[c,d]=Ae.default.useState([]),[p,f]=Ae.default.useState(!1),[g,x]=Ae.default.useState(!1),[h,_]=Ae.default.useState(null),v=Ae.default.useCallback(K=>{n(K),S4(K)},[]),m=Ae.default.useCallback(K=>v(K),[v]),y=Ae.default.useCallback(async()=>{let K=await e.scopeProjects();d(K),f(!0)},[e]);Ae.default.useEffect(()=>{let K=!0;return(async()=>{let M=await e.scopeOrgs();K&&a(M)})(),(async()=>{let M=await e.scopeWorkspaces();K&&s(M.workspaces)})(),y(),()=>{K=!1}},[e,y]);let b=Ae.default.useCallback(K=>{x(!0),_({kind:"persisted",message:"switching org\u2026",pending:!0}),(async()=>{try{let M=await e.switchOrg(K);if(!M.switched){_({kind:"error",message:M.error!==void 0&&M.error!==""?`could not switch: ${M.error}`:"could not switch org"});return}v({org:M.org,workspace:Gh.workspace,project:void 0});let Ge=await e.scopeWorkspaces(M.org);s(Ge.workspaces),d([]),f(!0),_({kind:"persisted",message:M.reminted?`switched to ${M.orgName??M.org} \xB7 re-minted`:`switched to ${M.orgName??M.org}`})}finally{x(!1)}})()},[e,v]),P=Ae.default.useCallback(K=>{_({kind:"persisted",message:"switching workspace\u2026",pending:!0}),(async()=>{let M=await e.switchWorkspace(K);if(!M.switched){_({kind:"error",message:M.error!==void 0&&M.error!==""?`could not switch: ${M.error}`:"could not switch workspace"});return}v({org:o.org,workspace:M.workspace,project:void 0}),await y(),_({kind:"persisted",message:`switched to ${M.workspace}`})})()},[e,v,o.org,y]),O=Ae.default.useCallback(K=>{v({org:o.org,workspace:o.workspace,...K!==void 0?{project:K}:{}}),_({kind:"view",message:K!==void 0?"view filter \u2014 capture is set by folder binding":"view cleared"})},[v,o.org,o.workspace]),T=Ae.default.useMemo(()=>({scope:o,setScope:m}),[o,m]),Z=Ae.default.useMemo(()=>({orgs:i,workspaces:l,projects:c,projectsHydrated:p,loadingWorkspaces:g,switchFeedback:h,selectOrg:b,selectWorkspace:P,selectProject:O}),[i,l,c,p,g,h,b,P,O]);return(0,qe.jsx)(T1.Provider,{value:T,children:(0,qe.jsx)(j1.Provider,{value:Z,children:t})})}var b4={width:"100%",height:30,padding:"0 8px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"};function Hh({label:e,testId:t,value:r,disabled:o,onChange:n,children:i}){return(0,qe.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:3},children:[(0,qe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:e}),(0,qe.jsx)("select",{"data-testid":t,value:r,disabled:o,onChange:a=>n(a.target.value),style:{...b4,opacity:o?.6:1},children:i})]})}var k4="__unsorted__",Jh="";function D1({collapsed:e}){let{scope:t}=Wt(),r=Xh();return e?null:(0,qe.jsxs)("div",{"data-testid":"scope-switcher",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,qe.jsxs)(Hh,{label:"org",testId:"scope-org",value:t.org,onChange:r.selectOrg,children:[r.orgs.length===0&&(0,qe.jsx)("option",{value:t.org,children:t.org}),r.orgs.map(o=>(0,qe.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,qe.jsxs)(Hh,{label:"workspace",testId:"scope-workspace",value:t.workspace,disabled:r.loadingWorkspaces,onChange:r.selectWorkspace,children:[r.workspaces.length===0&&(0,qe.jsx)("option",{value:t.workspace,children:r.loadingWorkspaces?"loading\u2026":t.workspace}),r.workspaces.map(o=>(0,qe.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,qe.jsxs)(Hh,{label:"project \xB7 view filter",testId:"scope-project",value:t.project??Jh,onChange:o=>r.selectProject(o===Jh?void 0:o),children:[(0,qe.jsx)("option",{value:Jh,children:"\u2014 select a project \u2014"}),r.projects.map(o=>(0,qe.jsx)("option",{value:o.projectId,children:o.projectId===k4?"(unsorted inbox)":o.name!==""?o.name:o.projectId},o.projectId))]}),(0,qe.jsx)("span",{"data-testid":"project-view-hint",style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",lineHeight:1.4},children:"Filters what you VIEW. To set where Honeycomb captures, bind a folder in Projects."}),r.switchFeedback!==null&&(0,qe.jsxs)("span",{"data-testid":"switch-feedback","data-kind":r.switchFeedback.kind,style:{fontFamily:"var(--font-mono)",fontSize:10,color:r.switchFeedback.kind==="error"?"var(--severity-critical)":r.switchFeedback.kind==="persisted"?"var(--verified)":"var(--text-tertiary)"},children:[r.switchFeedback.pending===!0?"\u27F3 ":r.switchFeedback.kind==="persisted"?"\u2713 ":"",r.switchFeedback.message]})]})}var re=L(H(),1),_4=2500,$4=5e3,Bu=8,w4=5;function z4(){return new Date().toTimeString().slice(0,8)}function I4({query:e,setQuery:t,onRecall:r,busy:o}){return(0,re.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:18},children:[(0,re.jsx)("div",{style:{flex:1},children:(0,re.jsx)(pn,{mono:!0,size:"lg",value:e,placeholder:"recall\u2026 e.g. how do we deploy",onChange:n=>t(n.target.value),onKeyDown:n=>{n.key==="Enter"&&r()}})}),(0,re.jsx)(U,{variant:"primary",size:"lg",onClick:r,disabled:o,children:o?"\u2026":"Recall"})]})}function P4(){return(0,re.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",style:{display:"inline-flex"},children:(0,re.jsx)(Q,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})}var E4=[{key:"storage",label:"storage",degraded:e=>e.storage==="unreachable"},{key:"embeddings",label:"semantic",degraded:e=>e.embeddings==="off"},{key:"schema",label:"schema",degraded:e=>e.schema==="missing_table"},{key:"portkey",label:"portkey",degraded:e=>e.portkey==="unconfigured"||e.portkey==="unreachable"}];function R4({reasons:e}){return e===null?null:(0,re.jsxs)("div",{"data-testid":"health-strip",style:{display:"flex",alignItems:"center",gap:8,marginBottom:18,flexWrap:"wrap"},children:[(0,re.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"subsystems"}),E4.map(t=>{let r=t.degraded(e),o=String(e[t.key]);return(0,re.jsxs)(Q,{tone:r?"critical":"verified",mono:!0,dot:!0,children:[t.label,": ",o]},t.key)})]})}function N1({wire:e,pollinating:t=!1,healthReasons:r=null}){let{scope:o}=Wt(),[n,i]=Pe.default.useState(Oh),[a,l]=Pe.default.useState([]),[s,c]=Pe.default.useState([]),[d,p]=Pe.default.useState([]),[f,g]=Pe.default.useState(sl),[x,h]=Pe.default.useState([]),[_,v]=Pe.default.useState([]),[m,y]=Pe.default.useState("how do we deploy"),[b,P]=Pe.default.useState([]),[O,T]=Pe.default.useState(!1),[Z,K]=Pe.default.useState(!1),[M,Ge]=Pe.default.useState(0),[oe,Xe]=Pe.default.useState(!1),[$e,tn]=Pe.default.useState([]),[uo,Oi]=Pe.default.useState([]),Nn=Pe.default.useCallback(q=>{Oi(pe=>[`${z4()} ${q}`,...pe].slice(0,Bu))},[]),po=Pe.default.useRef(0),we=Pe.default.useCallback(async()=>{let q=++po.current,[pe,Te,nn,xn,Ln,ww]=await Promise.all([e.kpis(o.project),e.sessions(),e.rules(),e.skills(),e.vaultSettings(),e.secretNames()]);q===po.current&&(i(pe),l(Te),c(nn),p(xn),g(Ln),h(ww))},[e,o.project]),_t=Pe.default.useCallback(async(q,pe)=>{let Te=await e.setSetting(q,pe),[nn,xn]=await Promise.all([e.vaultSettings(),e.secretNames()]);return g(nn),h(xn),Te},[e]);Pe.default.useEffect(()=>{we()},[we]);let[Dr,Di]=Pe.default.useState(!1);Pe.default.useEffect(()=>{Di(!0)},[]),gn(async()=>{let q=await e.logs(Bu);tn(q.slice(-Bu).reverse().map(Tr))},_4),gn(async()=>v(await e.harnesses()),$4);let td=Pe.default.useCallback(async()=>{let q=m.trim();if(q===""||O)return;T(!0);let{memories:pe,degraded:Te}=await e.recall(q);P(pe),K(!0),Xe(Te),Ge(xn=>xn+1);let nn=pe.length>0?` \xB7 ${pe[0]?.score.toFixed(2)} top`:"";Nn(`recall "${q}" \u2192 ${pe.length} hits${nn}`),T(!1)},[m,O,e,Nn]),nd=Pe.default.useMemo(()=>[...uo,...$e].slice(0,Bu),[uo,$e]),rd=Pe.default.useMemo(()=>$e.slice(0,w4),[$e]);return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)("section",{"data-area":"kpi-band","aria-label":"Key metrics",style:{marginBottom:22},children:[(0,re.jsx)(R4,{reasons:r}),(0,re.jsxs)("div",{className:"kpirow",children:[(0,re.jsx)(Yt,{label:"Memories",value:n.memoryCount.toLocaleString(),accent:"honey"}),(0,re.jsx)(Yt,{label:"Turns",value:n.turnCount||n.sessionCount,accent:"neutral"}),(0,re.jsx)(Yt,{label:"Est. savings",value:n.estimatedSavings.toLocaleString(),unit:"tok",accent:"verified"}),(0,re.jsx)(Yt,{label:"Team skills",value:n.teamSkillCount,accent:"pollinate"})]})]}),(0,re.jsxs)("section",{"data-area":"recall-area","aria-label":"Memory search",style:{marginBottom:22},children:[(0,re.jsx)(I4,{query:m,setQuery:y,onRecall:td,busy:O}),Z&&oe&&(0,re.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,re.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,re.jsx)(P4,{})]}),(0,re.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:b.length===0?Z&&(0,re.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):b.map((q,pe)=>(0,re.jsx)("div",{className:"mem-enter",style:{animationDelay:`${pe*55}ms`},children:(0,re.jsx)(Ms,{...q,pollinating:t&&pe===1})},q.memoryKey))},M)]}),(0,re.jsx)("section",{"data-area":"harness-area","aria-label":"Harnesses and activity",children:Dr&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("div",{style:{marginBottom:16},children:(0,re.jsx)(R1,{harnesses:_,streamLines:rd})}),(0,re.jsxs)("div",{className:"grid2",style:{marginBottom:16},children:[(0,re.jsxs)("div",{className:"col",children:[(0,re.jsx)(a1,{sessions:a}),(0,re.jsx)(l1,{rules:s})]}),(0,re.jsxs)("div",{className:"col",children:[(0,re.jsx)(Nu,{catalog:f.catalog,settings:f.settings,secretNames:x,onSave:_t}),(0,re.jsx)(s1,{skills:d})]})]}),(0,re.jsx)(jr,{lines:nd})]})})]})}var Qe=L(he(),1);var Kh=L(he(),1);var Mt=L(he(),1);var le=L(H(),1),C4="honeycomb project bind";function L1(e){let r=e.replace(/[\\/]+$/,"").split(/[\\/]/);return r[r.length-1]??""}function T4({child:e,onDescend:t}){return(0,le.jsxs)("button",{type:"button","data-testid":"browse-row","data-path":e.path,onClick:()=>t(e.path),style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)"},children:[(0,le.jsx)("svg",{width:15,height:15,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none",color:"var(--text-tertiary)"},children:(0,le.jsx)("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})}),(0,le.jsx)("span",{style:{flex:1,fontFamily:"var(--font-mono)",fontSize:13,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:e.name}),e.isGitRepo&&(0,le.jsx)(Q,{tone:"honey",mono:!0,children:"git"})]})}function Zu({wire:e,onBound:t,onCancel:r}){let[o,n]=Mt.default.useState(jh),[i,a]=Mt.default.useState(!1),[l,s]=Mt.default.useState(null),[c,d]=Mt.default.useState(""),[p,f]=Mt.default.useState(!1),[g,x]=Mt.default.useState(""),h=Mt.default.useRef(!1),_=Mt.default.useCallback(async O=>{let T=await e.fsBrowse(O);n(T),a(!0)},[e]);Mt.default.useEffect(()=>{_(void 0)},[_]);let v=i&&o.path===""&&o.children.length===0,m=o.error!==void 0&&o.error!=="",y=Mt.default.useCallback(()=>{o.path!==""&&(s({path:o.path,isGitRepo:!1}),d(L1(o.path)),x(""))},[o.path]),b=Mt.default.useCallback(O=>{s({path:O.path,isGitRepo:O.isGitRepo}),d(L1(O.path)),x("")},[]),P=Mt.default.useCallback(async()=>{if(l===null||h.current)return;h.current=!0,f(!0),x("");let O=await e.bindProject({path:l.path,...c.trim()!==""?{name:c.trim()}:{}});if(f(!1),h.current=!1,O.bound){t(O);return}x(O.error!==void 0&&O.error!==""?O.error:"Could not bind that folder.")},[l,c,e,t]);return(0,le.jsx)("div",{"data-testid":"folder-picker",style:{display:"flex",flexDirection:"column",gap:14},children:v?(0,le.jsxs)("div",{"data-testid":"picker-unavailable",style:{display:"flex",flexDirection:"column",gap:8,padding:"16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,le.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)"},children:"The folder browser isn\u2019t available right now."}),(0,le.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["Bind a folder from your terminal instead: ",(0,le.jsx)("code",{style:{color:"var(--honey)"},children:C4})]}),r!==void 0&&(0,le.jsx)("div",{children:(0,le.jsx)(U,{variant:"ghost",size:"sm",onClick:r,children:"Close"})})]}):(0,le.jsxs)(le.Fragment,{children:[(0,le.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,le.jsx)("span",{"data-testid":"picker-path",style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o.path!==""?o.path:"loading\u2026"}),(0,le.jsx)(U,{variant:"ghost",size:"sm",onClick:()=>{_(o.parent??void 0)},disabled:o.parent===null,title:o.parent===null?"at the allowed root":"up one level",children:"\u2191 up"}),(0,le.jsx)(U,{variant:"secondary",size:"sm",onClick:y,disabled:o.path==="","data-testid":"select-current",children:"Use this folder"})]}),(0,le.jsx)("div",{"data-testid":"browse-list",style:{display:"flex",flexDirection:"column",gap:6,maxHeight:280,overflowY:"auto"},children:i?o.children.length===0?(0,le.jsx)("div",{style:{padding:"10px 4px",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:m?"This folder couldn\u2019t be read.":"No sub-folders here \u2014 use this folder, or go up."}):o.children.map(O=>(0,le.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,le.jsx)("div",{style:{flex:1,minWidth:0},children:(0,le.jsx)(T4,{child:O,onDescend:T=>{_(T)}})}),(0,le.jsx)(U,{variant:"ghost",size:"sm",onClick:()=>b(O),"data-testid":"select-child",title:"select this folder to bind",children:"select"})]},O.path)):(0,le.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),l!==null&&(0,le.jsxs)("div",{"data-testid":"picker-confirm",style:{display:"flex",flexDirection:"column",gap:10,padding:14,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,le.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,le.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"folder"}),(0,le.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:l.path}),l.isGitRepo&&(0,le.jsx)(Q,{tone:"honey",mono:!0,children:"git"})]}),(0,le.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,le.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"project name"}),(0,le.jsx)(pn,{mono:!0,value:c,placeholder:"project name",onChange:O=>d(O.target.value),"data-testid":"picker-name"})]}),(0,le.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,le.jsx)(U,{variant:"primary",onClick:()=>{P()},disabled:p||c.trim()==="","data-testid":"picker-bind",children:p?"Binding\u2026":"Bind project"}),r!==void 0&&(0,le.jsx)(U,{variant:"ghost",onClick:r,disabled:p,children:"Cancel"}),g!==""&&(0,le.jsx)("span",{"data-testid":"picker-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:g})]})]})]})})}var Bt=L(H(),1);function Ii({surface:e}){return(0,Bt.jsxs)("div",{"data-testid":"needs-project-selection",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:320,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,Bt.jsx)("div",{style:{fontSize:15,color:"var(--text-secondary)"},children:"No project selected."}),(0,Bt.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:["Pick a project in the scope switcher (top of the sidebar) to view its ",e,"."]})]})}function F1({wire:e,navigate:t,assetBase:r}){let[o,n]=Kh.default.useState(!1),i=Kh.default.useCallback(a=>{t(Yh)},[t]);return(0,Bt.jsxs)("div",{"data-testid":"first-run-bind",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:16,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,Bt.jsx)("img",{src:`${r}/honeycomb-memory-cluster.svg`,width:48,height:48,alt:""}),(0,Bt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:480},children:[(0,Bt.jsx)("div",{style:{fontSize:17,fontWeight:700,color:"var(--text-primary)",letterSpacing:"-0.02em"},children:"No active projects?"}),(0,Bt.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)",lineHeight:1.5},children:"Pick a folder to start \u2014 point Honeycomb at the repo or folder you want it to remember, and it begins capturing there."})]}),o?(0,Bt.jsx)("div",{style:{width:"100%",maxWidth:620,textAlign:"left"},children:(0,Bt.jsx)(Zu,{wire:e,onBound:i,onCancel:()=>n(!1)})}):(0,Bt.jsx)(U,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"first-run-pick",children:"Pick a folder to start"})]})}var J=L(H(),1),j4=8e3,Pi={width:1600,height:1e3},qh=.25,Qh=4,Vu=1.15,A1={scale:1,tx:0,ty:0};function ex(e,t,r){return Math.min(r,Math.max(t,e))}function O4(e){let t=Pi.width/e.scale,r=Pi.height/e.scale;return`${e.tx} ${e.ty} ${t} ${r}`}function D4(e){let t=new Set,r=[];for(let o of e.nodes)t.has(o.kind)||(t.add(o.kind),r.push(o.kind));return r}function N4(e,t){if(t.size===0)return e;let r=e.nodes.filter(i=>!t.has(i.kind)),o=new Set(r.map(i=>i.id)),n=e.edges.filter(i=>o.has(i.from)&&o.has(i.to));return{built:e.built,nodes:r,edges:n}}function L4(e,t){let r=t.trim().toLowerCase();return r===""?null:e.nodes.find(n=>n.id.toLowerCase().includes(r)||n.label.toLowerCase().includes(r))?.id??null}function F4(e,t){let r=Pi.width/t,o=Pi.height/t;return{scale:t,tx:e.x-r/2,ty:e.y-o/2}}function A4({kind:e,count:t,hidden:r,onToggle:o}){let n=Ou[e]??Du;return(0,J.jsxs)("button",{type:"button",role:"switch","aria-checked":!r,"data-testid":`kind-toggle-${e}`,"data-hidden":r,onClick:o,style:{display:"inline-flex",alignItems:"center",gap:7,height:28,padding:"0 11px",background:r?"var(--bg-elevated)":"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-full)",color:r?"var(--text-tertiary)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",opacity:r?.55:1},children:[(0,J.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:n,flex:"none"}}),e||"node",(0,J.jsx)("span",{style:{color:"var(--text-tertiary)"},children:t})]})}function U1({kind:e,labels:t}){return(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:3,marginBottom:8},children:[(0,J.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:[e||"\u2014"," \xB7 ",t.length]}),(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-word"},children:t.join(", ")})]})}function U4({node:e,graph:t,onClear:r}){let{outgoing:o,incoming:n}=Jk(e.id,t.edges),i=s=>t.nodes.find(c=>c.id===s)?.label||s,a=s=>s.map(i),l=o.length>0||n.length>0;return(0,J.jsxs)("aside",{"data-testid":"graph-detail-panel",style:{width:320,flex:"none",alignSelf:"stretch",padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",display:"flex",flexDirection:"column",gap:10,overflow:"auto"},children:[(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,J.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:Ou[e.kind]??Du,flex:"none"}}),(0,J.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:0,wordBreak:"break-word"},children:e.label}),(0,J.jsx)("span",{style:{flex:1}}),(0,J.jsx)(Q,{tone:"neutral",mono:!0,children:e.kind||"node"})]}),(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",wordBreak:"break-all"},children:e.id}),(0,J.jsx)("div",{style:{height:1,background:"var(--border-subtle)",margin:"2px 0"}}),!l&&(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no neighbors"}),o.length>0&&(0,J.jsxs)("div",{"data-testid":"detail-outgoing",children:[(0,J.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Outgoing"}),o.map(s=>(0,J.jsx)(U1,{kind:s.kind,labels:a(s.ids)},`out-${s.kind}`))]}),n.length>0&&(0,J.jsxs)("div",{"data-testid":"detail-incoming",children:[(0,J.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Incoming"}),n.map(s=>(0,J.jsx)(U1,{kind:s.kind,labels:a(s.ids)},`in-${s.kind}`))]}),(0,J.jsx)("button",{type:"button",onClick:r,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",alignSelf:"flex-start",marginTop:"auto"},children:"clear selection"})]})}function W4({graph:e,selected:t,transform:r,onSelect:o,onClear:n,onPanZoom:i}){let a=Qe.default.useMemo(()=>Bs(e.nodes,e.edges,Pi),[e]),l=Qe.default.useRef(null),s=f=>{l.current={x:f.clientX,y:f.clientY,tx:r.tx,ty:r.ty},f.currentTarget.setPointerCapture?.(f.pointerId)},c=f=>{let g=l.current;if(g===null)return;let x=(f.clientX-g.x)/r.scale,h=(f.clientY-g.y)/r.scale;i({scale:r.scale,tx:g.tx-x,ty:g.ty-h})},d=()=>{l.current=null},p=f=>{let g=f.deltaY<0?Vu:1/Vu,x=ex(r.scale*g,qh,Qh);i({scale:x,tx:r.tx,ty:r.ty})};return(0,J.jsxs)("svg",{"data-testid":"graph-canvas",viewBox:O4(r),onPointerDown:s,onPointerMove:c,onPointerUp:d,onPointerLeave:d,onWheel:p,onClick:n,style:{width:"100%",height:"100%",display:"block",cursor:"grab",touchAction:"none",background:"var(--bg-canvas)"},children:[e.edges.map((f,g)=>{let x=a.get(f.from),h=a.get(f.to);return x===void 0||h===void 0?null:(0,J.jsx)("line",{x1:x.x,y1:x.y,x2:h.x,y2:h.y,stroke:"var(--border-strong)",strokeWidth:1.5},g)}),e.nodes.map(f=>{let g=a.get(f.id);if(g===void 0)return null;let x=f.id===t;return(0,J.jsxs)("g",{role:"button",tabIndex:0,"aria-label":`node ${f.label}`,"aria-pressed":x,"data-node-id":f.id,style:{cursor:"pointer"},onClick:h=>{h.stopPropagation(),o(f.id)},children:[x&&(0,J.jsx)("circle",{cx:g.x,cy:g.y,r:16,fill:"none",stroke:"var(--honey)",strokeWidth:2}),(0,J.jsx)("circle",{cx:g.x,cy:g.y,r:x?12:9,fill:Ou[f.kind]??Du}),(0,J.jsx)("text",{x:g.x+15,y:g.y+4,fontFamily:"var(--font-mono)",fontSize:13,fill:"var(--text-secondary)",children:f.label})]},f.id)})]})}function M4(){return(0,J.jsxs)("div",{"data-testid":"graph-empty-state",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:360,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,J.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:"No memory graph yet for this workspace."}),(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:"The knowledge graph is populated automatically as memories and entities accrue."})]})}function W1({label:e,ariaLabel:t,onClick:r}){return(0,J.jsx)("button",{type:"button","aria-label":t,onClick:r,style:{width:30,height:30,padding:0,background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:14,lineHeight:1,cursor:"pointer"},children:e})}function M1({wire:e}){let{scope:t}=Wt(),r=t.project,[o,n]=Qe.default.useState(ll),[i,a]=Qe.default.useState(null),[l,s]=Qe.default.useState(new Set),[c,d]=Qe.default.useState(""),[p,f]=Qe.default.useState(A1);Qe.default.useEffect(()=>{if(r===void 0){n(ll);return}let oe=!0,Xe=async()=>{if(!oe||Tn())return;let tn=await e.memoryGraph(r);oe&&n(tn)};Xe();let $e=setInterval(()=>{Xe()},j4);return()=>{oe=!1,clearInterval($e)}},[e,r]);let g=Qe.default.useMemo(()=>D4(o),[o]),x=Qe.default.useMemo(()=>N4(o,l),[o,l]),{graph:h,capped:_}=Qe.default.useMemo(()=>Nh(x,Cu),[x]),v=o.meta?.truncated??!1,m=v||_,y=i!==null?h.nodes.find(oe=>oe.id===i)??null:null,b=Qe.default.useCallback(oe=>{s(Xe=>{let $e=new Set(Xe);return $e.has(oe)?$e.delete(oe):$e.add(oe),$e})},[]),P=Qe.default.useCallback(oe=>{d(oe);let Xe=L4(h,oe);if(Xe===null)return;a(Xe);let tn=Bs(h.nodes,h.edges,Pi).get(Xe);tn!==void 0&&f(F4(tn,Math.max(p.scale,1.4)))},[h,p.scale]),O=Qe.default.useCallback(()=>f(A1),[]),T=Qe.default.useCallback(()=>f(oe=>({...oe,scale:ex(oe.scale*Vu,qh,Qh)})),[]),Z=Qe.default.useCallback(()=>f(oe=>({...oe,scale:ex(oe.scale/Vu,qh,Qh)})),[]),K=Qe.default.useCallback(oe=>a(Xe=>Xe===oe?null:oe),[]),M=Qe.default.useCallback(()=>a(null),[]),Ge=`${h.nodes.length} nodes \xB7 ${h.edges.length} edges`;return(0,J.jsx)(Ze,{title:"Memory Graph",eyebrow:r===void 0?"memory graph":Ge,children:r===void 0?(0,J.jsx)(Ii,{surface:"memory graph"}):o.built?(0,J.jsxs)(J.Fragment,{children:[m&&(0,J.jsxs)("div",{"data-testid":"graph-truncation-notice",style:{display:"flex",alignItems:"center",gap:8,marginBottom:14,padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[(0,J.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--severity-warning)",flex:"none"}}),v?`Showing the ${(o.meta?.shownNodes??o.nodes.length).toLocaleString()} most-connected of ${(o.meta?.totalNodes??o.nodes.length).toLocaleString()} nodes. Use search and kind filters to focus.`:`Rendering is capped at ${Cu.toLocaleString()} nodes. Use search and kind filters to focus.`]}),(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:14,flexWrap:"wrap"},children:[(0,J.jsx)("input",{"aria-label":"search nodes","data-testid":"graph-search",type:"text",value:c,placeholder:"search id or label\u2026",onChange:oe=>P(oe.target.value),style:{height:30,padding:"0 12px",minWidth:220,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13}}),(0,J.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:g.map(oe=>{let Xe=o.nodes.filter($e=>$e.kind===oe).length;return(0,J.jsx)(A4,{kind:oe,count:Xe,hidden:l.has(oe),onToggle:()=>b(oe)},oe)})}),(0,J.jsx)("span",{style:{flex:1}}),(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,J.jsx)(W1,{label:"\u2212",ariaLabel:"zoom out",onClick:Z}),(0,J.jsx)(W1,{label:"+",ariaLabel:"zoom in",onClick:T}),(0,J.jsx)("button",{type:"button","data-testid":"fit-view",onClick:O,style:{height:30,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"fit"})]})]}),(0,J.jsxs)("div",{style:{display:"flex",gap:16,alignItems:"stretch"},children:[(0,J.jsx)("div",{style:{flex:1,minWidth:0,height:"70vh",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden"},children:(0,J.jsx)(W4,{graph:h,selected:y?.id??null,transform:p,onSelect:K,onClear:M,onPanZoom:f})}),y!==null&&(0,J.jsx)(U4,{node:y,graph:o,onClear:M})]})]}):(0,J.jsx)(M4,{})})}var tx=L(he(),1);var ae=L(H(),1),B4=200;function Z4(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase()}function V4({service:e}){let t=Object.entries(e.metrics);return(0,ae.jsxs)("div",{"data-testid":`health-service-${e.name}`,style:{display:"flex",flexDirection:"column",gap:10,padding:"14px 16px",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:[(0,ae.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,ae.jsx)("span",{style:{color:$i[e.state],display:"inline-flex",flex:"none"},children:(0,ae.jsx)(_i,{state:e.state})}),(0,ae.jsx)("span",{style:{fontWeight:600,fontSize:"var(--text-base)",color:"var(--text-primary)"},children:e.name}),(0,ae.jsx)("span",{"data-testid":`health-service-state-${e.name}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"lowercase"},children:lo[e.state]})]}),t.length===0?(0,ae.jsx)("div",{"data-testid":`health-metrics-empty-${e.name}`,style:{fontSize:12,color:"var(--text-tertiary)"},children:"No metrics reported yet."}):(0,ae.jsx)("div",{"data-testid":`health-metrics-${e.name}`,style:{display:"grid",gridTemplateColumns:"1fr auto",rowGap:4,columnGap:12},children:t.map(([r,o])=>(0,ae.jsxs)(tx.default.Fragment,{children:[(0,ae.jsx)("span",{style:{fontSize:12,color:"var(--text-secondary)",textTransform:"capitalize"},children:Z4(r)}),(0,ae.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)",textAlign:"right"},children:o})]},r))}),(0,ae.jsxs)("div",{"data-testid":`health-deeplake-${e.name}`,style:{display:"flex",alignItems:"center",gap:8,paddingTop:8,borderTop:"1px solid var(--border-subtle)"},children:[(0,ae.jsx)("span",{style:{fontSize:12,color:"var(--text-secondary)"},children:"Deep Lake"}),e.deeplake===null?(0,ae.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"not reported"}):(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)("span",{"data-testid":`health-deeplake-state-${e.name}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:e.deeplake.connected===!0?"var(--verified)":"var(--severity-critical)"},children:e.deeplake.connected===!0?"connected":e.deeplake.connected===!1?"unreachable":"unknown"}),(0,ae.jsx)("span",{style:{flex:1}}),(0,ae.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["last comm: ",e.deeplake.lastCommunicationAt??"never"]})]})]})]})}function H4({entry:e}){return(0,ae.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"auto auto 1fr",gap:10,padding:"4px 0",fontFamily:"var(--font-mono)",fontSize:12},children:[(0,ae.jsx)("span",{style:{color:"var(--text-tertiary)"},children:(e.ts||"").slice(11,19)||e.ts}),(0,ae.jsx)("span",{style:{color:"var(--text-secondary)",textTransform:"uppercase"},children:e.level}),(0,ae.jsxs)("span",{style:{color:"var(--text-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[(0,ae.jsxs)("span",{style:{color:"var(--text-tertiary)"},children:["[",e.service,"]"]})," ",e.message]})]})}function J4({value:e,onChange:t}){return(0,ae.jsx)("select",{"aria-label":"log verbosity","data-testid":"log-verbosity-select",value:e,onChange:r=>t(r.target.value),style:{height:30,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12},children:pl.map(r=>(0,ae.jsxs)("option",{value:r,children:[r,"+"]},r))})}function G4({logs:e}){let[t,r]=tx.default.useState("info"),o=y1(e,t),n=o.slice(Math.max(0,o.length-B4)).reverse();return(0,ae.jsx)(te,{title:"Live logs",eyebrow:`${o.length} of ${e.length} lines`,right:(0,ae.jsx)(J4,{value:t,onChange:r}),children:n.length===0?(0,ae.jsx)("div",{"data-testid":"health-logs-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No log lines at this verbosity yet."}):(0,ae.jsx)("div",{"data-testid":"health-logs-list",style:{maxHeight:360,overflowY:"auto"},children:n.map((i,a)=>(0,ae.jsx)(H4,{entry:i},`${i.ts}-${i.service}-${a}`))})})}function X4(e){return e.services.length===0}function B1(e){let t=wi();return(0,ae.jsx)(Ze,{title:"Health",eyebrow:t.source==="sse"?"live":t.source==="rest"?"fallback":"unavailable",children:(0,ae.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[X4(t)?(0,ae.jsx)(te,{title:"Fleet metrics",children:(0,ae.jsx)("div",{"data-testid":"health-telemetry-unavailable",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"Telemetry unavailable. Waiting for doctor to report the fleet."})}):(0,ae.jsx)("div",{"data-testid":"health-service-grid",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gap:12},children:t.services.map(r=>(0,ae.jsx)(V4,{service:r},r.name))}),(0,ae.jsx)(G4,{logs:t.logs})]})})}var Ne=L(he(),1);var A=L(H(),1),Z1=30,K4=50,V1=50;function Y4(e){return e>=500?"critical":e>=400?"warning":e>=200&&e<300?"verified":"neutral"}function q4(e){return(e||"").slice(11,19)||(e||"").slice(0,8)}function G1({record:e,live:t}){let r=e.status,o=e.org??"",n=e.durationMs;return(0,A.jsxs)("div",{"data-testid":"log-row",style:{display:"grid",gridTemplateColumns:"76px 64px 1fr auto auto auto",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:t?"var(--text-primary)":"var(--text-tertiary)"},children:q4(e.time)}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:"var(--text-secondary)"},children:e.method}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:e.path,children:e.path}),(0,A.jsx)(Q,{tone:Y4(r),mono:!0,children:r>0?r:"\u2014"}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:48},children:typeof n=="number"?`${Math.round(n)}ms`:""}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:60},children:o})]})}function Q4(){let e=(t,r="left")=>(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:r},children:t});return(0,A.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"76px 64px 1fr auto auto auto",alignItems:"center",gap:12,padding:"4px 6px 8px"},children:[e("time"),e("method"),e("path"),e("status"),e("dur","right"),e("org","right")]})}var Ei={since:"",until:"",status:"",path:"",org:""};function H1(e){let t={limit:K4};return e.since!==""&&(t.since=e.since),e.until!==""&&(t.until=e.until),e.status!==""&&(t.status=e.status),e.path!==""&&(t.path=e.path),e.org!==""&&(t.org=e.org),t}function ml({label:e,value:t,placeholder:r,onChange:o,testid:n}){return(0,A.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:130,flex:"1 1 130px"},children:[(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)"},children:e}),(0,A.jsx)(pn,{mono:!0,size:"sm",value:t,placeholder:r,onChange:i=>o(i.target.value),"data-testid":n})]})}function e6({draft:e,onChangeField:t,onApply:r,onClear:o}){return(0,A.jsx)(te,{title:"Filters",eyebrow:"time \xB7 status \xB7 path \xB7 harness",children:(0,A.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:12,alignItems:"flex-end"},children:[(0,A.jsx)(ml,{label:"since (ISO)",value:e.since,placeholder:"2026-06-22T00:00:00Z",onChange:n=>t("since",n),testid:"filter-since"}),(0,A.jsx)(ml,{label:"until (ISO)",value:e.until,placeholder:"2026-06-22T23:59:59Z",onChange:n=>t("until",n),testid:"filter-until"}),(0,A.jsx)(ml,{label:"status / level",value:e.status,placeholder:"5xx or 404",onChange:n=>t("status",n),testid:"filter-status"}),(0,A.jsx)(ml,{label:"path",value:e.path,placeholder:"/api/memories",onChange:n=>t("path",n),testid:"filter-path"}),(0,A.jsx)(ml,{label:"harness / org",value:e.org,placeholder:"org id",onChange:n=>t("org",n),testid:"filter-org"}),(0,A.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,A.jsx)(U,{variant:"primary",size:"sm","data-testid":"filter-apply",onClick:r,children:"Apply"}),(0,A.jsx)(U,{variant:"ghost",size:"sm","data-testid":"filter-clear",onClick:o,children:"Clear"})]})]})})}function t6(e,t){let r=[t,...e];return r.length>Z1?r.slice(0,Z1):r}function n6({records:e,open:t,onToggle:r}){return(0,A.jsx)(te,{title:"Live tail",eyebrow:`${e.length} streaming`,right:(0,A.jsx)("button",{type:"button","data-testid":"live-toggle","aria-expanded":t,onClick:r,style:{background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:11,padding:"4px 10px",cursor:"pointer"},children:t?"collapse":"expand"}),children:t?e.length===0?(0,A.jsx)("div",{"data-testid":"live-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"waiting for daemon activity\u2026"}):(0,A.jsx)("div",{"data-testid":"live-list",children:e.map((o,n)=>(0,A.jsx)(G1,{record:o,live:!0},`${o.time}-${o.path}-${n}`))}):(0,A.jsx)("div",{style:{padding:"4px",fontSize:12,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"live tail collapsed"})})}function r6({page:e,loading:t,error:r,onLoadMore:o}){return(0,A.jsx)(te,{title:"History",eyebrow:e.persistent?`${e.count} on this page`:"history unavailable",children:r?(0,A.jsx)("div",{"data-testid":"history-error",style:{padding:"12px 4px",fontSize:13,color:"var(--severity-critical)",fontFamily:"var(--font-mono)"},children:"Could not load log history."}):t&&e.records.length===0?(0,A.jsx)("div",{"data-testid":"history-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):e.persistent?e.records.length===0?(0,A.jsx)("div",{"data-testid":"history-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No logs match these filters."}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Q4,{}),(0,A.jsx)("div",{"data-testid":"history-list",children:e.records.map((n,i)=>(0,A.jsx)(G1,{record:n},`${n.time}-${n.path}-${n.status}-${i}`))}),e.nextCursor!==null&&(0,A.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,A.jsx)(U,{variant:"secondary",size:"sm",disabled:t,"data-testid":"history-load-more",onClick:o,children:t?"loading\u2026":"Load more"})})]}):(0,A.jsx)("div",{"data-testid":"history-unavailable",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"Durable log history is unavailable on this daemon. Live tail above still streams current activity."})})}function gl({label:e,children:t}){return(0,A.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,A.jsx)("span",{style:{flex:1}}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function o6({turn:e,onBack:t}){return(0,A.jsx)(te,{title:"Turn detail",eyebrow:e.sessionId,right:(0,A.jsx)(U,{variant:"ghost",size:"sm","data-testid":"turn-back",onClick:t,children:"\u2039 Back"}),children:(0,A.jsxs)("div",{"data-testid":"turn-detail",children:[(0,A.jsx)(gl,{label:"turn id",children:e.sessionId||"\u2014"}),(0,A.jsx)(gl,{label:"project",children:e.project||"\u2014"}),(0,A.jsx)(gl,{label:"timestamp",children:e.startedAt||"\u2014"}),(0,A.jsx)(gl,{label:"event count",children:e.eventCount}),(0,A.jsx)(gl,{label:"status",children:(0,A.jsx)(Q,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})})]})})}function i6({turn:e,onOpen:t}){return(0,A.jsxs)("button",{type:"button","data-testid":`turn-row-${e.sessionId}`,onClick:()=>t(e),style:{display:"grid",gridTemplateColumns:"96px 1fr auto auto",alignItems:"center",gap:12,width:"100%",padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",background:"transparent",border:"none",borderTopColor:"var(--border-subtle)",cursor:"pointer",textAlign:"left"},children:[(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.sessionId}),(0,A.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.project}),(0,A.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[e.startedAt,e.eventCount>0?` \xB7 ${e.eventCount}e`:""]}),(0,A.jsx)(Q,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})]})}function a6({turns:e,loading:t,error:r,hasMore:o,onOpen:n,onLoadMore:i}){return(0,A.jsx)(te,{title:"Turns",eyebrow:`${e.length} captured`,children:r?(0,A.jsx)("div",{"data-testid":"turns-error",style:{padding:"12px 4px",fontSize:13,color:"var(--severity-critical)",fontFamily:"var(--font-mono)"},children:"Could not load turns."}):t&&e.length===0?(0,A.jsx)("div",{"data-testid":"turns-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):e.length===0?(0,A.jsx)("div",{"data-testid":"turns-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No turns captured yet."}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{"data-testid":"turns-list",children:e.map((a,l)=>(0,A.jsx)(i6,{turn:a,onOpen:n},a.sessionId||l))}),o&&(0,A.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,A.jsx)(U,{variant:"secondary",size:"sm",disabled:t,"data-testid":"turns-load-more",onClick:i,children:t?"loading\u2026":"Load more"})})]})})}function J1({label:e,active:t,onClick:r,testid:o}){return(0,A.jsx)("button",{type:"button","data-testid":o,"aria-pressed":t,onClick:r,style:{display:"inline-flex",alignItems:"center",gap:8,height:34,padding:"0 14px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:e})}function X1({wire:e,daemonUp:t}){let[r,o]=Ne.default.useState("requests"),[n,i]=Ne.default.useState(Lh),[a,l]=Ne.default.useState(Ei),[s,c]=Ne.default.useState(Ei),[d,p]=Ne.default.useState(!1),[f,g]=Ne.default.useState(!1),[x,h]=Ne.default.useState([]),[_,v]=Ne.default.useState(!0),[m,y]=Ne.default.useState([]),[b,P]=Ne.default.useState(null),[O,T]=Ne.default.useState(!1),[Z,K]=Ne.default.useState(!1),[M,Ge]=Ne.default.useState(null),oe=Ne.default.useCallback(async we=>{p(!0),g(!1);try{let _t=await e.logsHistory(H1(we));i(_t)}catch{g(!0)}finally{p(!1)}},[e]),Xe=Ne.default.useCallback(async()=>{if(n.nextCursor!==null){p(!0);try{let we=await e.logsHistory({...H1(a),cursor:n.nextCursor});i(_t=>({records:[..._t.records,...we.records],count:_t.count+we.count,nextCursor:we.nextCursor,persistent:we.persistent}))}catch{g(!0)}finally{p(!1)}}},[e,a,n.nextCursor]),$e=Ne.default.useCallback(async()=>{T(!0),K(!1);try{let we=await e.turnsHistory({limit:V1});y(we.sessions),P(we.nextCursor)}catch{K(!0)}finally{T(!1)}},[e]),tn=Ne.default.useCallback(async()=>{if(b!==null){T(!0);try{let we=await e.turnsHistory({limit:V1,cursor:b});y(_t=>[..._t,...we.sessions]),P(we.nextCursor)}catch{K(!0)}finally{T(!1)}}},[e,b]);Ne.default.useEffect(()=>{oe(Ei),$e()},[oe,$e]),Ne.default.useEffect(()=>{let we=!0,_t=e.logsStream(Dr=>{we&&h(Di=>t6(Di,Dr))});return()=>{we=!1,_t()}},[e]);let uo=Ne.default.useCallback(()=>{l(s),oe(s)},[s,oe]),Oi=Ne.default.useCallback(()=>{c(Ei),l(Ei),oe(Ei)},[oe]),Nn=Ne.default.useCallback((we,_t)=>{c(Dr=>({...Dr,[we]:_t}))},[]);return(0,A.jsx)(Ze,{title:"Logs",eyebrow:t?"request log \xB7 turns":"daemon offline",right:(0,A.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,A.jsx)(J1,{label:"Requests",active:r==="requests",onClick:()=>o("requests"),testid:"tab-requests"}),(0,A.jsx)(J1,{label:"Turns",active:r==="turns",onClick:()=>o("turns"),testid:"tab-turns"})]}),children:r==="requests"?(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,A.jsx)(n6,{records:x,open:_,onToggle:()=>v(we=>!we)}),(0,A.jsx)(e6,{draft:s,onChangeField:Nn,onApply:uo,onClear:Oi}),(0,A.jsx)(r6,{page:n,loading:d,error:f,onLoadMore:()=>{Xe()}})]}):M!==null?(0,A.jsx)(o6,{turn:M,onBack:()=>Ge(null)}):(0,A.jsx)(a6,{turns:m,loading:O,error:Z,hasMore:b!==null,onOpen:we=>Ge(we),onLoadMore:()=>{tn()}})})}var ne=L(he(),1);var vn=L(he(),1);var G=L(H(),1),l6=6,s6=150;function c6(e){return new Promise(t=>setTimeout(t,e))}async function Hu(e,t,r,...o){let n=e[t];if(typeof n!="function")return r;try{return await n.apply(e,o)??r}catch{return r}}var u6={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function Or({label:e,value:t}){return(0,G.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:96},children:[(0,G.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:e}),(0,G.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:16,fontWeight:600,color:"var(--text-primary)"},children:t})]})}function d6(e){return e>=.66?"verified":e>=.33?"honey":"warning"}function p6(e){let t=(r,o)=>r===void 0||!Number.isFinite(r)?o:Math.min(1,Math.max(0,r));return t(e.freshness,1)*t(e.calibrationConfidence,1)*(1-t(e.staleness,0))*t(e.kappa,1)}function f6(e){return e!==void 0&&Number.isFinite(e)?Math.min(1,Math.max(0,e)).toFixed(2):"\u2014"}function m6({lower:e,upper:t,accuracy:r}){let o=Math.round(Math.min(1,Math.max(0,r))*100);return(0,G.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,G.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",minWidth:64},children:[e.toFixed(2),"\u2013",t.toFixed(2)]}),(0,G.jsx)("div",{style:{flex:1,height:8,background:"var(--bg-subtle)",borderRadius:4,overflow:"hidden"},children:(0,G.jsx)("div",{style:{width:`${o}%`,height:"100%",background:"var(--honey)"}})}),(0,G.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-secondary)",minWidth:32,textAlign:"right"},children:[o,"%"]})]})}var g6=["review","supersede","keep-both"];function v6({conflict:e,onResolve:t}){let[r,o]=vn.default.useState("review"),[n,i]=vn.default.useState(e.memoryAId),[a,l]=vn.default.useState(!1),s=async()=>{a||(l(!0),await t(e.id,r,r==="supersede"?n:""),l(!1))};return(0,G.jsxs)("div",{"data-testid":"conflict-row","data-conflict-id":e.id,style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)"},children:[(0,G.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,G.jsx)(Q,{tone:"warning",mono:!0,dot:!0,children:e.status||"open"}),(0,G.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:[e.memoryAId," \u21C4 ",e.memoryBId]})]}),(0,G.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,G.jsx)("select",{"aria-label":"verdict",value:r,onChange:c=>o(c.target.value),style:{height:32,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12},children:g6.map(c=>(0,G.jsx)("option",{value:c,children:c},c))}),r==="supersede"&&(0,G.jsxs)("select",{"aria-label":"winner",value:n,onChange:c=>i(c.target.value),style:{height:32,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12,maxWidth:180},children:[(0,G.jsxs)("option",{value:e.memoryAId,children:["winner: ",e.memoryAId]}),(0,G.jsxs)("option",{value:e.memoryBId,children:["winner: ",e.memoryBId]})]}),(0,G.jsx)(U,{variant:"secondary",size:"sm",onClick:()=>{s()},disabled:a,children:a?"\u2026":"Resolve"})]})]})}function K1({wire:e}){let[t,r]=vn.default.useState([]),[o,n]=vn.default.useState([]),[i,a]=vn.default.useState(Ru),[l,s]=vn.default.useState(!1),c=vn.default.useCallback(async()=>{let _=await Hu(e,"lifecycleConflicts",[],"open");return r(_),_},[e]);vn.default.useEffect(()=>{let _=!0;return(async()=>{let[v,m,y]=await Promise.all([Hu(e,"lifecycleConflicts",[],"open"),Hu(e,"lifecycleStaleRefs",[]),Hu(e,"calibration",Ru)]);_&&(r(v),n(m),a(y),s(!0))})(),()=>{_=!1}},[e]);let d=vn.default.useCallback(async(_,v,m)=>{if(!(typeof e.resolveConflict=="function"?await e.resolveConflict(_,{verdict:v,...m!==""?{winnerId:m}:{}}):!1)){await c();return}for(let b=0;b<l6;b+=1){if(!(await c()).some(O=>O.id===_))return;await c6(s6)}},[e,c]),p=void 0,f=o.length>0?Math.min(1,o.length/Math.max(o.length,8)):0,g=i.identity?1:Math.max(0,1-i.ece),x=t.length>0?.5:1,h=p6({freshness:p,calibrationConfidence:g,staleness:f,kappa:x});return(0,G.jsxs)("div",{"data-testid":"lifecycle-panel",style:{...u6,display:"flex",flexDirection:"column",gap:16},children:[(0,G.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,G.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Memory health"}),(0,G.jsx)(Q,{tone:d6(h),mono:!0,dot:!0,children:(0,G.jsxs)("span",{"data-testid":"health-badge",children:["H ",h.toFixed(2)]})})]}),(0,G.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,G.jsx)(Or,{label:"freshness",value:f6(p)}),(0,G.jsx)(Or,{label:"calibrated confidence",value:i.identity?"\u2014":g.toFixed(2)}),(0,G.jsx)(Or,{label:"open conflicts",value:String(t.length)}),(0,G.jsx)(Or,{label:"stale refs",value:String(o.length)}),(0,G.jsx)(Or,{label:"ECE",value:i.identity?"dormant":i.ece.toFixed(3)})]}),(0,G.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,G.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Conflicts (",t.length,")"]}),l?t.length===0?(0,G.jsx)("span",{"data-testid":"conflicts-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no open conflicts."}):t.map(_=>(0,G.jsx)(v6,{conflict:_,onResolve:d},_.id)):(0,G.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,G.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,G.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Stale references (",o.length,")"]}),l?o.length===0?(0,G.jsx)("span",{"data-testid":"stale-refs-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no stale references."}):o.map(_=>(0,G.jsxs)("div",{"data-testid":"stale-ref-row",style:{display:"flex",gap:8,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:[(0,G.jsx)("span",{style:{color:"var(--honey)",wordBreak:"break-all"},children:_.memoryId}),(0,G.jsx)("span",{style:{color:"var(--text-tertiary)"},children:_.staleRefs.length>0?_.staleRefs.join(", "):"(refs unrecorded)"})]},_.memoryId)):(0,G.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,G.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,G.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Calibration"}),i.identity?(0,G.jsx)("span",{"data-testid":"calibration-dormant",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"calibration dormant \u2014 confidence weighting (c) stays 0 until the curve is fit."}):(0,G.jsxs)("div",{"data-testid":"calibration-view",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,G.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,G.jsx)(Or,{label:"ECE",value:i.ece.toFixed(3)}),(0,G.jsx)(Or,{label:"Brier",value:i.brier.toFixed(3)}),(0,G.jsx)(Or,{label:"samples",value:String(i.nSamples)})]}),(0,G.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:i.reliabilityDiagram.map(_=>(0,G.jsx)(m6,{lower:_.lower,upper:_.upper,accuracy:_.accuracy},`${_.lower}-${_.upper}`))})]})]})]})}var Y1=["fact","convention","preference","decision","gotcha","reference"],Ju="fact",nx=Object.freeze({fact:"A stable, verifiable truth about the system, codebase, or domain.",convention:"How things are done here: idioms, standards, patterns to follow by default.",preference:"The user/team's stated way of working; corrections and do/don't guidance.",decision:"An architectural or design choice and its rationale; don't relitigate it.",gotcha:"A non-obvious trap, failure mode, or constraint to watch out for.",reference:"A pointer to an external resource (URL, dashboard, ticket, doc)."});var $=L(H(),1),q1=50,y6=2500,h6=12,x6=["/api/memories","/api/diagnostics/pollinate","/api/diagnostics/compact"],S6=5,b6=150;function k6(e){return new Promise(t=>setTimeout(t,e))}function _6(e){return x6.some(t=>e.startsWith(t))}function Ri({label:e,value:t}){return t===""?null:(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline"},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",minWidth:84,textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t})]})}var vl={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function $6({record:e,onOpen:t}){return(0,$.jsxs)("button",{type:"button","data-testid":"memory-row","data-memory-id":e.id,onClick:()=>t(e.id),style:{display:"flex",alignItems:"center",gap:12,width:"100%",textAlign:"left",padding:"11px 14px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)"},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:160},children:e.id}),(0,$.jsx)("span",{style:{flex:1,fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:e.content}),(0,$.jsx)(Q,{tone:"neutral",mono:!0,children:e.type||"fact"})]})}function w6({record:e,onClose:t,onEdit:r,onForget:o}){let[n,i]=ne.default.useState(!1),[a,l]=ne.default.useState(e.content),[s,c]=ne.default.useState(""),[d,p]=ne.default.useState(!1),[f,g]=ne.default.useState(""),[x,h]=ne.default.useState(!1);ne.default.useEffect(()=>{l(e.content),c(""),i(!1),h(!1)},[e.id,e.content,e.version]);let _=s.trim()==="",v=a.trim()==="",m=async()=>{if(d||v||_)return;p(!0),g("");let b=await r(e.id,a,s);p(!1),i(!1),c(""),g(b??"Save failed \u2014 the memory is unchanged.")},y=async()=>{if(d)return;p(!0),g("");let b=await o(e.id,"forgotten via dashboard");p(!1),b===null&&g("Forget failed \u2014 the memory is unchanged.")};return(0,$.jsxs)("div",{"data-testid":"memory-detail",style:{...vl,display:"flex",flexDirection:"column",gap:14},children:[(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:e.id}),(0,$.jsx)(Q,{tone:"neutral",mono:!0,children:e.type||"fact"}),e.hasEmbedding&&(0,$.jsx)(Q,{tone:"pollinate",mono:!0,dot:!0,children:"semantic"}),(0,$.jsx)("span",{style:{flex:1}}),(0,$.jsx)(U,{variant:"ghost",size:"sm",onClick:t,children:"\u2190 back"})]}),n?(0,$.jsx)("textarea",{"aria-label":"edit content",value:a,onChange:b=>l(b.target.value),rows:5,style:{width:"100%",resize:"vertical",padding:"10px 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:14,lineHeight:"20px"}}):(0,$.jsx)("div",{"data-testid":"memory-content",style:{fontSize:14,lineHeight:"21px",color:"var(--text-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.content}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:5,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,$.jsx)(Ri,{label:"scope",value:[e.visibility,e.agentId].filter(b=>b!=="").join(" \xB7 ")}),(0,$.jsx)(Ri,{label:"source",value:[e.sourceType,e.sourceId].filter(b=>b!=="").join(" \xB7 ")}),(0,$.jsx)(Ri,{label:"version",value:e.version>0?String(e.version):""}),(0,$.jsx)(Ri,{label:"indexed",value:e.hasEmbedding?"yes (semantic)":"no (lexical only)"}),(0,$.jsx)(Ri,{label:"created",value:e.createdAt}),(0,$.jsx)(Ri,{label:"updated",value:e.updatedAt})]}),(0,$.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Edits append a new version; the prior is kept in history."}),n?(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,$.jsx)(pn,{mono:!0,"aria-label":"edit reason",value:s,placeholder:"reason (required) \u2014 why is this changing?",onChange:b=>c(b.target.value)}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(U,{variant:"primary",onClick:()=>{m()},disabled:d||v||_,children:d?"\u2026":"Save new version"}),(0,$.jsx)(U,{variant:"ghost",onClick:()=>i(!1),disabled:d,children:"Cancel"}),_&&(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"a reason is required to save"})]})]}):(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(U,{variant:"secondary",onClick:()=>i(!0),children:"Edit"}),x?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(U,{variant:"danger",onClick:()=>{y()},disabled:d,children:d?"\u2026":"Confirm forget"}),(0,$.jsx)(U,{variant:"ghost",onClick:()=>h(!1),disabled:d,children:"Cancel"}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Forget soft-deletes this memory (a tombstone version)."})]}):(0,$.jsx)(U,{variant:"ghost",onClick:()=>h(!0),children:"Forget"})]}),f!==""&&(0,$.jsx)("div",{"data-testid":"detail-note",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:f})]})}var z6={height:40,padding:"0 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)"};function I6({onAdd:e}){let[t,r]=ne.default.useState(""),[o,n]=ne.default.useState(Ju),[i,a]=ne.default.useState(!1),[l,s]=ne.default.useState(""),c=t.trim()==="",d=async()=>{if(i||c)return;a(!0),s("");let p=await e(t,o);if(a(!1),p===null){s("Add failed \u2014 nothing was stored.");return}r(""),n(Ju),s(p)};return(0,$.jsxs)("div",{style:{...vl,display:"flex",flexDirection:"column",gap:10},children:[(0,$.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Add a memory"}),(0,$.jsx)("textarea",{"aria-label":"new content",value:t,onChange:p=>r(p.target.value),rows:3,placeholder:"a fact to remember \u2014 e.g. we deploy via `just release`",style:{width:"100%",resize:"vertical",padding:"10px 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:14,lineHeight:"20px"}}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,$.jsx)("select",{"aria-label":"memory type","data-testid":"add-type",value:o,onChange:p=>n(p.target.value),title:nx[o],style:{...z6,width:180,cursor:"pointer"},children:Y1.map(p=>(0,$.jsx)("option",{value:p,title:nx[p],children:p===Ju?`${p} (default)`:p},p))}),(0,$.jsx)(U,{variant:"primary",onClick:()=>{d()},disabled:i||c,children:i?"\u2026":"Add memory"}),l!==""&&(0,$.jsx)("span",{"data-testid":"add-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:l})]})]})}function P6(e){if(e.errored>0)return`${e.table}: attempted, not completed`;let t=[`${e.keysCompacted} keys`,`${e.rowsReaped} rows reaped`];return e.keysSkipped>0&&t.push(`${e.keysSkipped} keys deferred`),`${e.table}: ${t.join(" \xB7 ")}`}function E6({pollinating:e,onCompact:t,onPollinate:r,watchLines:o,watching:n,onToggleWatch:i}){let[a,l]=ne.default.useState(!1),[s,c]=ne.default.useState(!1),[d,p]=ne.default.useState(null),[f,g]=ne.default.useState(!1),[x,h]=ne.default.useState(""),_=async()=>{if(s)return;l(!1),c(!0);let m=await t();c(!1),p(m)},v=async()=>{if(f)return;g(!0),h("");let m=await r();g(!1),m.triggered?h(m.status==="running"?"already running":"consolidating\u2026"):h(`skipped \xB7 ${m.reason??"unavailable"}`)};return(0,$.jsxs)("div",{style:{...vl,display:"flex",flexDirection:"column",gap:14},children:[(0,$.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Lifecycle"}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,$.jsx)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(U,{variant:"danger",onClick:()=>{_()},disabled:s,children:s?"\u2026":"Confirm compact"}),(0,$.jsx)(U,{variant:"ghost",onClick:()=>l(!1),disabled:s,children:"Cancel"}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Compaction prunes old memory versions across version-bumped tables. Continue?"})]}):(0,$.jsx)(U,{variant:"secondary",onClick:()=>l(!0),disabled:s,children:"Compact"})}),d!==null&&(0,$.jsxs)("div",{"data-testid":"compact-summary",style:{display:"flex",flexDirection:"column",gap:3},children:[d.summaries.length===0&&d.skippedTables.length===0?(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"nothing reaped this pass"}):d.summaries.map(m=>(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:m.errored>0?"var(--severity-warning)":"var(--text-secondary)"},children:P6(m)},m.table)),d.skippedTables.length>0&&(0,$.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["skipped (absent): ",d.skippedTables.join(", ")]})]})]}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,$.jsx)(U,{variant:"pollinate",onClick:()=>{v()},disabled:f||e,children:f||e?"pollinating\u2026":"Pollinate now"}),x!==""&&(0,$.jsx)("span",{"data-testid":"pollinate-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:x})]}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(U,{variant:n?"secondary":"ghost",onClick:i,children:n?"Stop watch":"Watch"}),n&&(0,$.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,$.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"memory routes"})]})]}),n&&(0,$.jsx)("div",{"data-testid":"watch-feed",style:{display:"flex",flexDirection:"column",gap:5},children:o.length===0?(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for memory activity\u2026"}):o.map((m,y)=>(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:y===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:m},y))})]})]})}function Q1({wire:e,pollinating:t=!1}){let{scope:r}=Wt(),o=r.project,[n,i]=ne.default.useState([]),[a,l]=ne.default.useState(q1),[s,c]=ne.default.useState(!1),[d,p]=ne.default.useState(""),[f,g]=ne.default.useState([]),[x,h]=ne.default.useState(!1),[_,v]=ne.default.useState(!1),[m,y]=ne.default.useState(!1),[b,P]=ne.default.useState(null),[O,T]=ne.default.useState(null),[Z,K]=ne.default.useState(!1),[M,Ge]=ne.default.useState(!1),[oe,Xe]=ne.default.useState([]),$e=ne.default.useCallback(async q=>{if(o===void 0)return i([]),c(!0),[];let pe=await e.listMemories(q,o);return i(pe),c(!0),pe},[e,o]);ne.default.useEffect(()=>{$e(a)},[$e,a]),ne.default.useEffect(()=>{if(!M)return;let q=!0,pe=async()=>{if(!q||Tn())return;let nn=await e.logs(40);if(!q)return;let xn=nn.filter(Ln=>_6(Ln.path)).slice(-h6).reverse().map(Tr);Xe(xn)};pe();let Te=setInterval(()=>{pe()},y6);return()=>{q=!1,clearInterval(Te)}},[M,e]);let tn=ne.default.useCallback(async()=>{let q=d.trim();if(q===""){v(!1),g([]);return}h(!0);let{memories:pe,degraded:Te}=await e.recall(q,o);g(pe),y(Te),v(!0),h(!1)},[d,e,o]),uo=ne.default.useCallback(()=>{p(""),v(!1),g([])},[]),Oi=ne.default.useCallback(async q=>{P(q),T(null),K(!1);let pe=await e.getMemory(q);if(pe===null){K(!0);return}T(pe)},[e]),Nn=ne.default.useCallback(()=>{P(null),T(null),K(!1)},[]),po=ne.default.useCallback(async(q,pe)=>{let Te=null;for(let nn=0;nn<S6;nn+=1){if(Te=await e.getMemory(q),Te!==null&&pe(Te))return Te;await k6(b6)}return Te},[e]),we=ne.default.useCallback(async(q,pe,Te)=>{if(await e.modifyMemory(q,{content:pe,reason:Te})===null){let Ln=await e.getMemory(q);return Ln!==null&&T(Ln),null}let xn=await po(q,Ln=>Ln.content===pe||Ln.version>0);return xn!==null&&T(xn),$e(a),"saved \xB7 new version"},[e,po,$e,a]),_t=ne.default.useCallback(async(q,pe)=>await e.forgetMemory(q,{reason:pe})===null?null:(Nn(),$e(a),"forgotten"),[e,Nn,$e,a]),Dr=ne.default.useCallback(async(q,pe)=>{let Te=await e.addMemory({content:q,...pe!==""?{type:pe}:{}});return Te===null?null:(await $e(a),Te.id!==null?`stored \xB7 ${Te.id}`:`stored \xB7 ${Te.action||"ok"}`)},[e,$e,a]),Di=ne.default.useCallback(()=>e.compact(),[e]),td=ne.default.useCallback(()=>e.pollinate(),[e]),nd=ne.default.useCallback(()=>{Ge(q=>!q),Xe([])},[]),rd=b!==null;return(0,$.jsx)(Ze,{eyebrow:"memories",title:"Memories",right:(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:o===void 0?"no project":`${n.length} kept`}),children:o===void 0?(0,$.jsx)(Ii,{surface:"memories"}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:16},children:[(0,$.jsx)("div",{style:{flex:1},children:(0,$.jsx)(pn,{mono:!0,size:"lg",value:d,placeholder:"search memories\u2026 e.g. how do we deploy",onChange:q=>p(q.target.value),onKeyDown:q=>{q.key==="Enter"&&tn()}})}),(0,$.jsx)(U,{variant:"primary",size:"lg",onClick:()=>{tn()},disabled:x,children:x?"\u2026":"Search"}),_&&(0,$.jsx)(U,{variant:"ghost",size:"lg",onClick:uo,children:"Clear"})]}),_&&m&&(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,$.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",children:(0,$.jsx)(Q,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})]}),rd?Z?(0,$.jsxs)("div",{"data-testid":"memory-forgotten",style:{...vl,display:"flex",flexDirection:"column",gap:12},children:[(0,$.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)"},children:"This memory was forgotten (or its id is unknown)."}),(0,$.jsx)("div",{children:(0,$.jsx)(U,{variant:"ghost",size:"sm",onClick:Nn,children:"\u2190 back"})})]}):O!==null?(0,$.jsx)(w6,{record:O,onClose:Nn,onEdit:we,onForget:_t}):(0,$.jsx)("div",{style:{...vl,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}):(0,$.jsxs)($.Fragment,{children:[_?(0,$.jsx)("div",{"data-testid":"search-results",style:{display:"flex",flexDirection:"column",gap:10,marginBottom:18},children:f.length===0?(0,$.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):f.map((q,pe)=>(0,$.jsx)(Ms,{...q,pollinating:t&&pe===1},q.memoryKey))}):(0,$.jsx)("div",{"data-testid":"memory-list",style:{display:"flex",flexDirection:"column",gap:8,marginBottom:18},children:s?n.length===0?(0,$.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories yet."}):(0,$.jsxs)($.Fragment,{children:[n.map(q=>(0,$.jsx)($6,{record:q,onOpen:Oi},q.id)),n.length>=a&&(0,$.jsx)("div",{style:{paddingTop:4},children:(0,$.jsx)(U,{variant:"ghost",size:"sm",onClick:()=>l(q=>q+q1),children:"Load more"})})]}):(0,$.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,$.jsx)(I6,{onAdd:Dr}),(0,$.jsx)(K1,{wire:e}),(0,$.jsx)(E6,{pollinating:t,onCompact:Di,onPollinate:td,watchLines:oe,watching:M,onToggleWatch:nd})]})]})]})})}var ye=L(he(),1);var D=L(H(),1),Xu="__unsorted__",rx={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function ox(){return(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"\u2014"})}function R6(e){if(e===null||e==="")return(0,D.jsx)("span",{style:{color:"var(--text-tertiary)"},children:"never"});let t=Date.parse(e);return Number.isNaN(t)?(0,D.jsx)(ox,{}):new Date(t).toLocaleString()}function C6({project:e,wire:t,onOpen:r,onUnbound:o}){let[n,i]=ye.default.useState(!1),[a,l]=ye.default.useState(null),[s,c]=ye.default.useState(!1),[d,p]=ye.default.useState(""),f=ye.default.useRef(!1),g=async()=>{if(a===null||f.current)return;f.current=!0,c(!0),p("");let x=await t.unbindProject({path:a});if(c(!1),f.current=!1,x.unbound){i(!1),l(null),o();return}p("No binding matched that folder \u2014 capture is unchanged.")};return(0,D.jsxs)("div",{"data-testid":"project-row","data-project-id":e.projectId,style:{...rx,display:"flex",flexDirection:"column",gap:10},children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--honey)"},children:e.name!==""?e.name:e.projectId}),(0,D.jsx)(Q,{tone:"verified",mono:!0,dot:!0,children:"sourcing"}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)(U,{variant:"secondary",size:"sm",onClick:()=>r(e.projectId),"data-testid":"project-open",children:"Open"}),(0,D.jsx)(U,{variant:"ghost",size:"sm",onClick:()=>i(x=>!x),"data-testid":"project-unbind",children:n?"Cancel":"Unbind"})]}),(0,D.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:8,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)(Gu,{label:"bound path",value:(0,D.jsx)(T6,{paths:e.boundPaths})}),(0,D.jsx)(Gu,{label:"git remote",value:e.remote!==""?e.remote:(0,D.jsx)(ox,{})}),(0,D.jsx)(Gu,{label:"last capture",value:R6(e.lastCapture)}),(0,D.jsx)(Gu,{label:"memories / sessions",value:`${e.memoryCount} / ${e.sessionCount}`})]}),n&&(0,D.jsxs)("div",{"data-testid":"project-unbind-panel",style:{display:"flex",flexDirection:"column",gap:10,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Pick the folder to release. Unbind removes this device\u2019s binding (capture stops there); the project and its memories are kept."}),(0,D.jsx)(tw,{wire:t,onSelect:l,selected:a}),(0,D.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,D.jsx)(U,{variant:"danger",size:"sm",onClick:()=>{g()},disabled:s||a===null,"data-testid":"project-unbind-confirm",children:s?"\u2026":"Unbind this folder"}),d!==""&&(0,D.jsx)("span",{"data-testid":"project-unbind-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-warning)"},children:d})]})]})]})}function T6({paths:e}){return e.length===0?(0,D.jsx)(ox,{}):(0,D.jsx)("span",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map(t=>(0,D.jsx)("span",{title:t,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t},t))})}function Gu({label:e,value:t}){return(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:t})]})}function j6({inbox:e}){return(0,D.jsxs)("div",{"data-testid":"inbox-row",style:{...rx,display:"flex",alignItems:"center",gap:10,borderStyle:"dashed"},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-secondary)"},children:"(unsorted inbox)"}),(0,D.jsx)(Q,{tone:"neutral",mono:!0,children:Xu}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsxs)("span",{"data-testid":"inbox-size",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["size ",e.sessionCount]})]})}function O6({onNew:e,onImport:t}){let[r,o]=ye.default.useState(!1);return(0,D.jsxs)("div",{style:{position:"relative"},children:[(0,D.jsx)(U,{variant:"primary",size:"sm",onClick:()=>o(n=>!n),"data-testid":"add-menu-toggle",children:"+ Add"}),r&&(0,D.jsxs)("div",{"data-testid":"add-menu",style:{position:"absolute",right:0,top:38,zIndex:5,display:"flex",flexDirection:"column",minWidth:180,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-md, 0 6px 24px rgba(0,0,0,0.18))",overflow:"hidden"},children:[(0,D.jsx)(ew,{label:"New folder",hint:"pick a folder to bind",onClick:()=>{o(!1),e()},testId:"add-new"}),(0,D.jsx)(ew,{label:"Import existing",hint:"from the cloud registry",onClick:()=>{o(!1),t()},testId:"add-import"})]})]})}function ew({label:e,hint:t,onClick:r,testId:o}){return(0,D.jsxs)("button",{type:"button","data-testid":o,onClick:r,style:{display:"flex",flexDirection:"column",gap:2,width:"100%",textAlign:"left",padding:"9px 12px",background:"transparent",border:"none",borderBottom:"1px solid var(--border-subtle)",cursor:"pointer"},children:[(0,D.jsx)("span",{style:{fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:t})]})}function D6({wire:e,onClose:t,onImported:r}){let[o,n]=ye.default.useState([]),[i,a]=ye.default.useState(!1),[l,s]=ye.default.useState(null),[c,d]=ye.default.useState(null),[p,f]=ye.default.useState(!1),[g,x]=ye.default.useState(""),h=ye.default.useRef(!1);ye.default.useEffect(()=>{let v=!0;return(async()=>{let m=await e.scopeProjects({unbound:!0});v&&(n(m.filter(y=>y.projectId!==Xu)),a(!0))})(),()=>{v=!1}},[e]);let _=ye.default.useCallback(async()=>{if(l===null||c===null||h.current)return;h.current=!0,f(!0),x("");let v=await e.bindExistingProject({path:c,projectId:l});if(f(!1),h.current=!1,v.bound){r(v);return}x(v.error!==void 0&&v.error!==""?v.error:"Could not import that project.")},[l,c,e,r]);return(0,D.jsx)(N6,{title:"Import project from cloud",onClose:t,testId:"import-modal",children:(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"projects in this workspace not yet on this device"}),i?o.length===0?(0,D.jsx)("span",{"data-testid":"import-empty",style:{fontSize:13,color:"var(--text-tertiary)"},children:"Every registry project is already bound on this device. Nothing to import."}):(0,D.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:200,overflowY:"auto"},children:o.map(v=>(0,D.jsx)("button",{type:"button","data-testid":"import-project","data-project-id":v.projectId,onClick:()=>s(v.projectId),"aria-pressed":l===v.projectId,style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:l===v.projectId?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${l===v.projectId?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",cursor:"pointer",color:l===v.projectId?"var(--honey)":"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600},children:v.name!==""?v.name:v.projectId},v.projectId))}):(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),l!==null&&(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,D.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:["pick this device\u2019s folder for ",(0,D.jsx)("span",{style:{color:"var(--honey)"},children:l})]}),(0,D.jsx)(tw,{wire:e,onSelect:d,selected:c})]}),(0,D.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,D.jsx)(U,{variant:"primary",onClick:()=>{_()},disabled:p||l===null||c===null,"data-testid":"import-confirm",children:p?"Importing\u2026":"Import project"}),(0,D.jsx)(U,{variant:"ghost",onClick:t,disabled:p,children:"Cancel"}),g!==""&&(0,D.jsx)("span",{"data-testid":"import-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:g})]})]})})}function tw({wire:e,onSelect:t,selected:r}){let[o,n]=ye.default.useState(""),[i,a]=ye.default.useState(null),[l,s]=ye.default.useState([]),[c,d]=ye.default.useState(!1),p=ye.default.useCallback(async f=>{let g=await e.fsBrowse(f);n(g.path),a(g.parent),s(g.children),d(!0)},[e]);return ye.default.useEffect(()=>{p(void 0)},[p]),c&&o===""&&l.length===0?(0,D.jsxs)("span",{"data-testid":"folderselect-unavailable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["The folder browser isn\u2019t available \u2014 bind from your terminal: ",(0,D.jsx)("code",{style:{color:"var(--honey)"},children:"honeycomb project bind"})]}):(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,D.jsx)("span",{style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o!==""?o:"loading\u2026"}),(0,D.jsx)(U,{variant:"ghost",size:"sm",onClick:()=>{p(i??void 0)},disabled:i===null,children:"\u2191 up"}),(0,D.jsx)(U,{variant:"secondary",size:"sm",onClick:()=>t(o),disabled:o==="","data-testid":"folderselect-use",children:"Use this folder"})]}),(0,D.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:180,overflowY:"auto"},children:l.map(f=>(0,D.jsxs)("button",{type:"button","data-testid":"folderselect-row",onClick:()=>{p(f.path)},style:{display:"flex",alignItems:"center",gap:8,width:"100%",textAlign:"left",padding:"8px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13},children:[(0,D.jsx)("span",{style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:f.name}),f.isGitRepo&&(0,D.jsx)(Q,{tone:"honey",mono:!0,children:"git"})]},f.path))}),r!==null&&(0,D.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)"},children:["selected: ",r]})]})}function N6({title:e,onClose:t,testId:r,children:o}){return(0,D.jsx)("div",{"data-testid":r,role:"dialog","aria-modal":"true","aria-label":e,onClick:t,style:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"64px 16px",background:"rgba(0,0,0,0.45)"},children:(0,D.jsxs)("div",{onClick:n=>n.stopPropagation(),style:{width:"100%",maxWidth:560,maxHeight:"80vh",overflowY:"auto",padding:20,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,D.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:700,color:"var(--text-primary)",margin:0},children:e}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)(U,{variant:"ghost",size:"sm",onClick:t,"aria-label":"close",children:"\u2715"})]}),o]})})}function nw({wire:e}){let{scope:t,setScope:r}=Wt(),[o,n]=ye.default.useState([]),[i,a]=ye.default.useState(!1),[l,s]=ye.default.useState("none"),c=ye.default.useCallback(async()=>{let h=await e.scopeProjects();n(h),a(!0)},[e]);ye.default.useEffect(()=>{c()},[c]);let d=o.filter(h=>h.boundLocally&&h.projectId!==Xu),p=o.find(h=>h.projectId===Xu),f=ye.default.useCallback(h=>{r({org:t.org,workspace:t.workspace,project:h})},[r,t.org,t.workspace]),g=ye.default.useCallback(h=>{s("none"),c()},[c]),x=ye.default.useCallback(h=>{s("none"),c()},[c]);return(0,D.jsxs)(Ze,{eyebrow:"projects",title:"Projects",right:(0,D.jsx)(O6,{onNew:()=>s("new"),onImport:()=>s("import")}),children:[l==="new"&&(0,D.jsxs)("div",{style:{...rx,marginBottom:16},children:[(0,D.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)",marginBottom:10},children:"Add a project"}),(0,D.jsx)(Zu,{wire:e,onBound:g,onCancel:()=>s("none")})]}),l==="import"&&(0,D.jsx)(D6,{wire:e,onClose:()=>s("none"),onImported:x}),(0,D.jsxs)("div",{"data-testid":"projects-list",style:{display:"flex",flexDirection:"column",gap:10},children:[i?d.length===0?(0,D.jsxs)("div",{"data-testid":"projects-empty",style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No active projects on this device yet. Use ",(0,D.jsx)("strong",{children:"+ Add"})," to bind a folder or import an existing project."]}):d.map(h=>(0,D.jsx)(C6,{project:h,wire:e,onOpen:f,onUnbound:()=>{c()}},h.projectId)):(0,D.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}),p!==void 0&&(0,D.jsx)(j6,{inbox:p})]})]})}var jn=L(he(),1);var Ku=L(he(),1),en=L(H(),1),Ci={width:640,height:200},yn={top:12,right:12,bottom:18,left:12};function rw(e,t){return e.includes("net")?"var(--honey)":e.includes("infra")||e.includes("cost")?"var(--severity-info)":t?"var(--severity-warning)":"var(--verified)"}function L6(e){let t=0,r=0;for(let o of e)for(let n of o.points)n.cents<t&&(t=n.cents),n.cents>r&&(r=n.cents);return r===t&&(r=t+1),{min:t,max:r}}function F6(e){let t=Ci.height-yn.top-yn.bottom,r=(0-e.min)/(e.max-e.min);return yn.top+t-r*t}function A6(e,t){let r=e.points;if(r.length===0)return"";let o=Ci.width-yn.left-yn.right,n=Ci.height-yn.top-yn.bottom,i=r.length>1?o/(r.length-1):0,a=t.max-t.min;return r.map((l,s)=>{let c=yn.left+s*i,d=Math.max(0,Math.min(1,(l.cents-t.min)/a)),p=yn.top+n-d*n;return`${c.toFixed(1)},${p.toFixed(1)}`}).join(" ")}function U6(){try{return typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1}catch{return!1}}function ow({trend:e}){let t=Ku.default.useMemo(()=>U6(),[]),[r,o]=Ku.default.useState(t);Ku.default.useEffect(()=>{if(t)return;let l=requestAnimationFrame(()=>o(!0));return()=>cancelAnimationFrame(l)},[t]);let n=e.series.some(l=>l.points.length>0);if(e.status==="absent"||!n)return(0,en.jsx)("div",{"data-testid":"roi-trend-empty",style:{padding:"28px 8px",textAlign:"center",fontSize:13,color:"var(--text-tertiary)"},children:e.startedAt!==""?`Savings tracked from ${e.startedAt}.`:"No trend history yet."});let i=L6(e.series),a=F6(i);return(0,en.jsxs)("div",{"data-testid":"roi-trend-chart",children:[(0,en.jsxs)("svg",{viewBox:`0 0 ${Ci.width} ${Ci.height}`,style:{width:"100%",height:200,display:"block"},role:"img","aria-label":"ROI trend over time",children:[(0,en.jsx)("line",{x1:yn.left,y1:a,x2:Ci.width-yn.right,y2:a,stroke:"var(--border-subtle)",strokeWidth:"1"}),e.series.map(l=>{let s=A6(l,i);if(s==="")return null;let c=rw(l.label,l.modeled);return(0,en.jsx)("polyline",{"data-testid":`roi-trend-series-${l.label}`,"data-modeled":l.modeled?"true":"false",points:s,fill:"none",stroke:c,strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:l.modeled?"5 4":void 0,style:{opacity:r?1:0,transition:t?void 0:"opacity var(--dur-base) var(--ease-out)"}},l.label)})]}),(0,en.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:14,marginTop:8},children:e.series.map(l=>(0,en.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,en.jsx)("svg",{width:22,height:8,"aria-hidden":"true",style:{flex:"none"},children:(0,en.jsx)("line",{x1:1,y1:4,x2:21,y2:4,stroke:rw(l.label,l.modeled),strokeWidth:"2",strokeDasharray:l.modeled?"4 3":void 0})}),(0,en.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:[l.label,l.modeled?" (est.)":""]})]},l.label))})]})}var C=L(H(),1),W6="#/settings",M6=6e4,B6=15e3,Z6="30d",V6=["7d","30d","90d"],Yu="\u2014";function On(e,t=!1){let r=e<0?"-":"",o=Math.abs(e)/100,n=`${r}$${o.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}`;return t?`~${n} est.`:n}function H6(e){return e===null?Yu:`$${(e/100).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}/Mtok`}function iw(e){return e?"warning":"verified"}function J6(e){return e?"var(--text-secondary)":"var(--text-primary)"}function sw(e){return e<0?"var(--severity-critical)":"var(--verified)"}function ax(e){return e==="allocated"}function G6(e){return e>0?"var(--severity-critical)":e<0?"var(--verified)":"var(--text-tertiary)"}function Ti({children:e,color:t="var(--text-tertiary)"}){return(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:t},children:e})}function X6({assumption:e}){let[t,r]=jn.default.useState(!1),o=e.assumptionText!==""?e.assumptionText:"Assumption not yet provided.";return(0,C.jsxs)("span",{style:{position:"relative",display:"inline-flex"},children:[(0,C.jsx)("button",{type:"button","data-testid":"assumption-info","aria-label":"modeled assumption","aria-expanded":t,onClick:()=>r(n=>!n),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onFocus:()=>r(!0),onBlur:()=>r(!1),style:{width:16,height:16,padding:0,borderRadius:"var(--radius-full)",border:"1px solid var(--border-strong)",background:"transparent",color:"var(--text-tertiary)",fontFamily:"var(--font-mono)",fontSize:10,lineHeight:1,cursor:"pointer"},children:"i"}),t&&(0,C.jsxs)("span",{role:"tooltip","data-testid":"assumption-popover",style:{position:"absolute",top:22,left:0,zIndex:5,width:260,padding:"8px 10px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-md)",fontSize:12,lineHeight:"16px",color:"var(--text-secondary)"},children:[o,!e.signedOff&&(0,C.jsx)("span",{style:{display:"block",marginTop:4,fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:"provisional \u2014 not yet signed off"})]})]})}function aw({label:e,cents:t,modeled:r,dash:o,indent:n,tone:i,toneLabel:a,trailing:l,testid:s}){return(0,C.jsxs)("div",{"data-testid":s,style:{display:"flex",alignItems:"center",gap:10,padding:"10px 6px",paddingLeft:n?22:6,borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsx)("span",{style:{fontSize:14,color:n?"var(--text-secondary)":"var(--text-primary)"},children:e}),(0,C.jsx)(Q,{tone:i,mono:!0,children:a}),l,(0,C.jsx)("span",{style:{flex:1}}),(0,C.jsx)("span",{"data-testid":`${s}-figure`,"data-modeled":r?"true":"false",style:{fontFamily:"var(--font-mono)",fontSize:n?15:17,fontWeight:700,color:o?"var(--text-tertiary)":J6(r)},children:o?Yu:On(t,r)})]})}function ix(e){return e==="absent"||e==="unreachable"||e==="unauthenticated"}function K6({net:e,onRetry:t,retrying:r}){let o=e.computed&&e.status==="ok",n=ax(e.costBasis);return(0,C.jsx)(te,{title:"Net ROI",eyebrow:e.modeled?"saved \u2212 (infra + pollination) \xB7 est.":"saved \u2212 (infra + pollination)",children:(0,C.jsxs)("div",{"data-testid":"net-hero",style:{display:"flex",alignItems:"center",gap:16,padding:"14px 6px",flexWrap:"wrap"},children:[(0,C.jsx)("span",{"data-testid":"net-figure","data-computed":o?"true":"false",style:{fontFamily:"var(--font-mono)",fontSize:40,fontWeight:800,lineHeight:1,letterSpacing:"-0.02em",color:o?sw(e.netCents):"var(--text-tertiary)"},children:o?On(e.netCents,!0):Yu}),o?(0,C.jsx)(Q,{tone:"warning",mono:!0,children:"est."}):e.status==="unreachable"?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Ti,{children:"net not computed - billing is unreachable"}),(0,C.jsx)(U,{variant:"ghost",size:"sm","data-testid":"net-retry",disabled:r,onClick:t,children:r?"retrying...":"Retry"})]}):(0,C.jsx)(Ti,{children:"net not computed yet"}),o&&n&&(0,C.jsx)(Ti,{children:"includes an allocated (estimated) infra share"})]})})}function Y6(){return(0,C.jsx)("span",{"data-testid":"claude-code-only",style:{marginLeft:4,display:"inline-flex"},children:(0,C.jsx)(Q,{tone:"info",children:"Claude Code only"})})}function q6({savings:e}){let t=ix(e.status);return(0,C.jsx)(te,{title:"Savings",eyebrow:"measured cache \xB7 modeled memory injection",right:e.status==="partial"?(0,C.jsx)(Y6,{}):void 0,children:(0,C.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,C.jsx)(aw,{testid:"savings-measured",label:"Measured cache savings",cents:e.measuredCents,modeled:!1,dash:t,tone:iw(!1),toneLabel:"measured"}),(0,C.jsx)(aw,{testid:"savings-modeled",label:"Modeled memory-injection savings",cents:e.modeledCents,modeled:!0,dash:t,indent:!0,tone:iw(!0),toneLabel:"modeled",trailing:(0,C.jsx)(X6,{assumption:e.assumption})}),(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsx)(Ti,{children:"blended rate"}),(0,C.jsx)("span",{style:{flex:1}}),(0,C.jsx)("span",{"data-testid":"blended-rate",style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:H6(e.blendedCentsPerMtok)})]})]})})}function lw({label:e,cents:t,deltaCents:r,dash:o,testid:n}){return(0,C.jsxs)("div",{"data-testid":n,style:{display:"flex",flexDirection:"column",gap:8,padding:18,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,C.jsx)("span",{"data-testid":`${n}-figure`,style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:700,lineHeight:1,color:o?"var(--text-tertiary)":"var(--text-primary)",letterSpacing:"-0.01em"},children:o?Yu:On(t)}),!o&&r!==void 0&&r!==0&&(0,C.jsxs)("span",{"data-testid":`${n}-delta`,style:{fontFamily:"var(--font-mono)",fontSize:12,color:G6(r)},children:[r>0?"\u25B2":"\u25BC"," ",On(Math.abs(r))," vs prior period"]})]})}function Q6({infraCents:e,infraDash:t,infraBasis:r,pollinationCents:o,pollinationDash:n,pollinationLines:i,infraDeltaCents:a}){return(0,C.jsxs)(te,{title:"Cost",eyebrow:"infra \xB7 pollination",children:[(0,C.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12,marginBottom:6},children:[(0,C.jsx)(lw,{testid:"infra-kpi",label:ax(r)?"Infra (allocated, est.)":"Infra cost",cents:e,deltaCents:a,dash:t}),(0,C.jsx)(lw,{testid:"pollination-kpi",label:"Pollination cost",cents:o,dash:n})]}),(0,C.jsx)("div",{"data-testid":"pollination-lines",children:n||i.length===0?(0,C.jsx)("div",{style:{padding:"10px 6px",fontSize:13,color:"var(--text-tertiary)"},children:n?"Pollination cost unavailable.":"No pollination contributors yet."}):i.map((l,s)=>(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsx)(Ti,{children:l.label}),(0,C.jsx)("span",{style:{flex:1}}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:On(l.cents)})]},l.label||s))})]})}function cw({label:e,active:t,onClick:r,testid:o}){return(0,C.jsx)("button",{type:"button","data-testid":o,"aria-pressed":t,onClick:r,style:{height:30,padding:"0 12px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:12,fontWeight:600,cursor:"pointer"},children:e})}var ej=["org","team","agent","project"];function tj({rollup:e,perUserAvailable:t}){return e.dimension==="agent"&&!t?(0,C.jsx)("div",{"data-testid":`rollup-${e.dimension}`,children:(0,C.jsx)("div",{"data-testid":"per-user-empty",style:{marginTop:10,padding:"10px 12px",background:"var(--severity-info-bg)",border:"1px solid var(--severity-info)",borderRadius:"var(--radius-md)"},children:(0,C.jsx)(Ti,{color:"var(--severity-info)",children:"Per-user requires verified login - sign in to attribute ROI per person."})})}):(0,C.jsxs)("div",{"data-testid":`rollup-${e.dimension}`,children:[e.mixedBasis&&(0,C.jsx)("div",{"data-testid":"mixed-basis-caption",style:{padding:"8px 6px",marginBottom:4,fontSize:12,color:"var(--severity-warning)",fontFamily:"var(--font-mono)"},children:"mixed measured + allocated \u2014 rows are not summed into one net"}),e.rows.length===0?(0,C.jsxs)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e.dimension," rows yet."]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr auto auto auto",gap:12,padding:"4px 6px 8px"},children:["","saved","infra","net"].map((r,o)=>(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:o===0?"left":"right"},children:r},o))}),e.rows.map((r,o)=>{let n=ax(r.costBasis);return(0,C.jsxs)("div",{"data-testid":`rollup-row-${e.dimension}-${r.key}`,style:{display:"grid",gridTemplateColumns:"1fr auto auto auto",gap:12,alignItems:"center",padding:"9px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,C.jsx)("span",{style:{fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.label||r.key}),n&&(0,C.jsx)("span",{"data-testid":`rollup-allocated-${r.key}`,style:{display:"inline-flex"},children:(0,C.jsx)(Q,{tone:"warning",mono:!0,children:"allocated est."})})]}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)",textAlign:"right"},children:On(r.measuredSavingsCents)}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:n?"var(--text-secondary)":"var(--text-primary)",textAlign:"right"},children:n?On(r.infraCostCents,!0):On(r.infraCostCents)}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:sw(r.netCents),textAlign:"right"},children:n?On(r.netCents,!0):On(r.netCents)})]},r.key||o)})]})]})}function nj({rollups:e,perUserAvailable:t}){let r=ej.filter(l=>e.some(s=>s.dimension===l)),[o,n]=jn.default.useState(r[0]??"org"),i=r.includes(o)?o:r[0]??"org",a=e.find(l=>l.dimension===i);return(0,C.jsx)(te,{title:"Rollups",eyebrow:"org \xB7 team \xB7 agent \xB7 project",right:(0,C.jsx)("div",{style:{display:"flex",gap:6},children:r.map(l=>(0,C.jsx)(cw,{testid:`rollup-tab-${l}`,label:l,active:l===i,onClick:()=>n(l)},l))}),children:r.length===0||a===void 0?(0,C.jsx)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:"No rollups yet."}):(0,C.jsx)(tj,{rollup:a,perUserAvailable:t})})}function rj(){return(0,C.jsx)(te,{title:"ROI ledger",eyebrow:"locked",children:(0,C.jsxs)("div",{"data-testid":"auth-gate",style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,padding:"20px 8px"},children:[(0,C.jsx)("span",{"data-testid":"auth-redacted-status",style:{display:"inline-flex"},children:(0,C.jsx)(Q,{tone:"neutral",mono:!0,dot:!0,children:"not connected"})}),(0,C.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)",maxWidth:460},children:"Connect Honeycomb to read the shared ROI ledger. The dashboard never holds your credentials \u2014 the daemon is the sole egress."}),(0,C.jsx)(U,{variant:"primary",size:"sm","data-testid":"auth-settings-cta",onClick:()=>{window.location.hash=W6},children:"Open Settings"})]})})}function uw({wire:e}){let{scope:t}=Wt(),r=t.project,[o,n]=jn.default.useState(Iu),[i,a]=jn.default.useState(Pu),[l,s]=jn.default.useState(Z6),[c,d]=jn.default.useState(!1),p=jn.default.useCallback(async()=>{let h=await e.roi(r);n(h)},[e,r]);gn(p,M6),gn(p,B6),jn.default.useEffect(()=>{let h=!0;return(async()=>{let _=await e.roiTrend(l,r);h&&a(_)})(),()=>{h=!1}},[e,l,r]);let f=jn.default.useCallback(async()=>{d(!0);try{await p();let h=await e.roiTrend(l,r);a(h)}finally{d(!1)}},[p,e,l,r]),g=o.savings.status==="unauthenticated"||o.net.status==="unauthenticated",x=o.scopedAcrossDevices?"across devices":"this device";return(0,C.jsx)(Ze,{title:"ROI",eyebrow:`net-roi ledger \xB7 ${x}`,children:g?(0,C.jsx)(rj,{}):(0,C.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,C.jsx)(K6,{net:o.net,onRetry:()=>{f()},retrying:c}),(0,C.jsx)(q6,{savings:o.savings}),(0,C.jsx)(Q6,{infraCents:o.infra.cents,infraDash:ix(o.infra.status),infraBasis:o.infra.costBasis,pollinationCents:o.pollination.cents,pollinationDash:ix(o.pollination.status),pollinationLines:o.pollination.lines}),(0,C.jsx)(te,{title:"Trend",eyebrow:"measured (solid) \xB7 modeled (dashed)",right:(0,C.jsx)("div",{style:{display:"flex",gap:6},children:V6.map(h=>(0,C.jsx)(cw,{testid:`trend-range-${h}`,label:h,active:h===l,onClick:()=>s(h)},h))}),children:(0,C.jsx)(ow,{trend:i})}),(0,C.jsx)(nj,{rollups:o.rollups,perUserAvailable:o.perUserAvailable}),(0,C.jsxs)("div",{"data-testid":"assumption-footnote",style:{marginTop:4,padding:"12px 6px",borderTop:"1px solid var(--border-subtle)",fontSize:12,lineHeight:"18px",color:"var(--text-tertiary)"},children:[(0,C.jsx)("span",{style:{fontWeight:600,color:"var(--text-secondary)"},children:"Modeled estimate assumption: "}),o.savings.assumption.assumptionText!==""?o.savings.assumption.assumptionText:"Assumption not yet provided.",o.ratesAsOf!==""&&(0,C.jsxs)("span",{style:{marginLeft:8,fontFamily:"var(--font-mono)"},children:["\xB7 rates as of ",o.ratesAsOf]})]})]})})}var ue=L(he(),1);var dw=Object.freeze([{symbol:"a",configPath:"memory.lifecycle.activationExponent",envOverride:"HONEYCOMB_LIFECYCLE_ACTIVATION_EXPONENT",defaultValue:"1",effect:"exponent on the activation/freshness term A^a"},{symbol:"c",configPath:"memory.lifecycle.confidenceExponent",envOverride:"HONEYCOMB_LIFECYCLE_CONFIDENCE_EXPONENT",defaultValue:"0",effect:"exponent on the calibrated-confidence term C^c (dormant until calibrated)"},{symbol:"s",configPath:"memory.lifecycle.stalenessExponent",envOverride:"HONEYCOMB_LIFECYCLE_STALENESS_EXPONENT",defaultValue:"0",effect:"exponent on the staleness term (1 \u2212 \u03C3)^s (0 under observe)"},{symbol:"h(memories)",configPath:"memory.lifecycle.halfLifeDaysByClass.memories",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_MEMORIES_DAYS",defaultValue:"180 d",effect:"shapes A for distilled facts (slower decay)"},{symbol:"h(memory)",configPath:"memory.lifecycle.halfLifeDaysByClass.memory",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_MEMORY_DAYS",defaultValue:"45 d",effect:"shapes A for session summaries"},{symbol:"h(sessions)",configPath:"memory.lifecycle.halfLifeDaysByClass.sessions",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_SESSIONS_DAYS",defaultValue:"10 d",effect:"shapes A for raw dialogue (fastest decay)"},{symbol:"d",configPath:"memory.lifecycle.actrDecay",envOverride:"HONEYCOMB_LIFECYCLE_ACTR_DECAY",defaultValue:"0.5",effect:"ACT-R decay shaping A (Stage 2)"},{symbol:"A_min",configPath:"memory.lifecycle.activationFloor",envOverride:"HONEYCOMB_LIFECYCLE_ACTIVATION_FLOOR",defaultValue:"0.05",effect:"clamps A so a cold memory keeps a sliver of salience"},{symbol:"h_verify",configPath:"memory.lifecycle.verificationHalfLifeDays",envOverride:"HONEYCOMB_LIFECYCLE_VERIFICATION_HALFLIFE_DAYS",defaultValue:"14 d",effect:"shapes \u03C3 via the verification-freshness factor v(m,t)"},{symbol:"\u03B8_detect",configPath:"memory.lifecycle.contradictionThreshold",envOverride:"HONEYCOMB_LIFECYCLE_CONTRADICTION_THRESHOLD",defaultValue:"0.6",effect:"gates conflict detection (Contra > \u03B8_detect)"},{symbol:"\u03B3",configPath:"memory.lifecycle.corroborationWeight",envOverride:"HONEYCOMB_LIFECYCLE_CORROBORATION_WEIGHT",defaultValue:"0.5",effect:"shapes the conflict vote weight w_i"},{symbol:"\u03C4_supersede",configPath:"memory.lifecycle.supersedeMargin",envOverride:"HONEYCOMB_LIFECYCLE_SUPERSEDE_MARGIN",defaultValue:"0.5",effect:"conflict verdict cut (margin \u2265 \u03C4_supersede \u2192 supersede)"},{symbol:"\u03C4_review",configPath:"memory.lifecycle.reviewMargin",envOverride:"HONEYCOMB_LIFECYCLE_REVIEW_MARGIN",defaultValue:"0.15",effect:"conflict verdict cut (\u03C4_review \u2264 margin < \u03C4_supersede \u2192 review)"},{symbol:"\u03C1",configPath:"memory.lifecycle.openConflictSuppression",envOverride:"HONEYCOMB_LIFECYCLE_OPEN_CONFLICT_SUPPRESSION",defaultValue:"0",effect:"\u03BA for the open-conflict loser (0 fully suppress, reversible)"},{symbol:"auto-resolve",configPath:"memory.lifecycle.conflictAutoResolve",envOverride:"HONEYCOMB_LIFECYCLE_CONFLICT_AUTORESOLVE",defaultValue:"false",effect:"when off, conflicts are detected + queued only (human-in-the-loop)"},{symbol:"posture",configPath:"memory.lifecycle.staleRefPosture",envOverride:"HONEYCOMB_LIFECYCLE_STALEREF_POSTURE",defaultValue:"observe",effect:"observe (s = 0, inert) vs execute (s > 0, demote)"}]);var w=L(H(),1),oj=5e3;function co({label:e,children:t}){return(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,w.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,w.jsx)("span",{style:{flex:1}}),(0,w.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function ij(e){return e==="env"?"via HONEYCOMB_TOKEN":e==="file"?"saved login (~/.deeplake)":"none"}function aj(e){return typeof e!="number"||!Number.isFinite(e)?"expiry unknown":new Date(e*1e3).toISOString()}function lj({wire:e}){let[t,r]=ue.default.useState(null),[o,n]=ue.default.useState(!1),[i,a]=ue.default.useState(!1),l=ue.default.useRef(!1),s=ue.default.useCallback(async()=>{if(l.current)return;l.current=!0,n(!0),a(!1);let c=await e.setupLogin();if(c===null){a(!0),n(!1),l.current=!1;return}r(c)},[e]);return(0,w.jsxs)("div",{"data-testid":"auth-connect",style:{display:"flex",flexDirection:"column",gap:10,padding:"10px 6px"},children:[(0,w.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Not connected to DeepLake."}),t===null?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(U,{variant:"primary",size:"sm",disabled:o,onClick:()=>{s()},"data-testid":"auth-connect-button",children:o?"Starting\u2026":"Connect to DeepLake"}),i&&(0,w.jsxs)("span",{"data-testid":"auth-connect-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:["Could not start sign-in. Retry, or run ",(0,w.jsx)("code",{children:"honeycomb login"})," in your terminal."]})]}):(0,w.jsxs)("div",{"data-testid":"auth-connect-grant",style:{display:"flex",flexDirection:"column",gap:6},children:[(0,w.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Enter this code to finish signing in:"}),(0,w.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:16,color:"var(--honey)",letterSpacing:"0.08em"},children:t.user_code}),(0,w.jsx)("a",{href:t.verification_uri_complete??t.verification_uri,target:"_blank",rel:"noreferrer",style:{fontSize:13,color:"var(--text-secondary)"},children:"Open the verification page"}),(0,w.jsx)("span",{style:{fontSize:11,color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"})]}),(0,w.jsxs)("span",{style:{fontSize:11,color:"var(--text-tertiary)"},children:["or, from your terminal: ",(0,w.jsx)("code",{style:{fontFamily:"var(--font-mono)",color:"var(--honey)"},children:"honeycomb login"})]})]})}function sj({wire:e}){let[t,r]=ue.default.useState(Ch),[o,n]=ue.default.useState(!0),[i,a]=ue.default.useState(!1),l=ue.default.useCallback(async()=>{let c=await e.authStatus();r(c),n(!1)},[e]),s=ue.default.useCallback(async()=>{a(!0),await e.logout(),await l(),a(!1)},[e,l]);return ue.default.useEffect(()=>{let c=!0,d=async()=>{!c||Tn()||await l()};d();let p=setInterval(()=>{d()},oj),f=()=>{d()};return typeof window<"u"&&window.addEventListener("focus",f),()=>{c=!1,clearInterval(p),typeof window<"u"&&window.removeEventListener("focus",f)}},[l]),(0,w.jsx)(te,{title:"DeepLake",eyebrow:"auth \xB7 org \xB7 workspace",right:(0,w.jsx)(Q,{tone:t.connected?"verified":"neutral",mono:!0,dot:!0,children:t.connected?"connected":"not connected"}),children:o?(0,w.jsx)("div",{"data-testid":"auth-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):t.connected?(0,w.jsxs)("div",{"data-testid":"auth-connected",children:[(0,w.jsx)(co,{label:"org",children:t.orgName||t.orgId||"\u2014"}),(0,w.jsx)(co,{label:"org id",children:t.orgId||"\u2014"}),(0,w.jsx)(co,{label:"workspace",children:t.workspace||"\u2014"}),(0,w.jsx)(co,{label:"agent",children:t.agentId||"\u2014"}),(0,w.jsx)(co,{label:"source",children:ij(t.source)}),(0,w.jsx)(co,{label:"last login",children:t.savedAt||"unknown"}),(0,w.jsx)(co,{label:"token expiry",children:aj(t.expiresAt)}),(0,w.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:10},children:(0,w.jsx)(U,{variant:"secondary",size:"sm",disabled:i,onClick:()=>{s()},"data-testid":"auth-logout-button",children:i?"Logging out\u2026":"Log out"})})]}):(0,w.jsx)("div",{"data-testid":"auth-disconnected",children:(0,w.jsx)(lj,{wire:e})})})}var cj=[{id:"anthropic",label:"Anthropic (Claude)"},{id:"openai",label:"OpenAI (ChatGPT)"},{id:"openrouter",label:"OpenRouter"},{id:"cohere",label:"Cohere"}];function uj({id:e,label:t,present:r,onSave:o}){let[n,i]=ue.default.useState(""),[a,l]=ue.default.useState(!1),[s,c]=ue.default.useState(!1),d=ue.default.useCallback(async()=>{let p=n;if(p.length===0){c(!0);return}l(!0),c(!1);let f=await o(e,p);l(!1),f?i(""):c(!0)},[n,e,o]);return(0,w.jsxs)("div",{"data-testid":`provider-row-${e}`,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",flexWrap:"wrap"},children:[(0,w.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:t}),(0,w.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,w.jsx)(pn,{type:"password",mono:!0,size:"sm",value:n,placeholder:r?"replace key\u2026":"paste key\u2026",onChange:p=>{i(p.target.value),s&&c(!1)},onKeyDown:p=>{p.key==="Enter"&&d()},"data-testid":`provider-input-${e}`})}),(0,w.jsx)(U,{variant:"primary",size:"sm",disabled:a,"data-testid":`provider-save-${e}`,onClick:()=>{d()},children:a?"saving\u2026":"Save key"}),(0,w.jsx)(Q,{tone:r?"verified":"neutral",mono:!0,dot:!0,children:r?"key set \u2713":"not set"}),s&&(0,w.jsx)("span",{"data-testid":`provider-rejected-${e}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]})}function dj({wire:e,secretNames:t,onSaved:r}){let o=ue.default.useCallback(async(n,i)=>{let a=bi[n];if(a===void 0)return!1;let l=await e.setSecret(a,i);return l&&r(),l},[e,r]);return(0,w.jsx)(te,{title:"Provider keys",eyebrow:"write-only \xB7 names-only presence",children:(0,w.jsx)("div",{"data-testid":"provider-keys",children:cj.map(n=>{let i=bi[n.id]??"",a=i!==""&&t.includes(i);return(0,w.jsx)(uj,{id:n.id,label:n.label,present:a,onSave:o},n.id)})})})}var pj=[{value:"",label:"default (semantic when embeddings on)"},{value:"keyword",label:"keyword \u2014 lexical only"},{value:"semantic",label:"semantic \u2014 vector (fallback when off)"},{value:"hybrid",label:"hybrid \u2014 both arms"}];function fj({value:e,onChange:t}){return(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,w.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Search mode"}),(0,w.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"recall channels"})]}),(0,w.jsx)("span",{style:{flex:1}}),(0,w.jsx)("select",{"aria-label":"search mode",value:e,onChange:r=>t(r.target.value),"data-testid":"recall-mode-select",style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:220},children:pj.map(r=>(0,w.jsx)("option",{value:r.value,children:r.label},r.value))})]})}function mj({settings:e,catalog:t,secretNames:r,onSave:o,portkeyEnabled:n}){let i=String(e[Be.recallMode]??"");return(0,w.jsx)(te,{title:"Search & inference",eyebrow:"recall mode \xB7 provider \xB7 model \xB7 pollinating",children:(0,w.jsxs)("div",{"data-testid":"search-inference",children:[(0,w.jsx)(fj,{value:i,onChange:a=>{o(Be.recallMode,a)}}),n===!0&&(0,w.jsx)("div",{"data-testid":"portkey-supersedes-hint",style:{padding:"6px 6px 2px",fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"superseded by Portkey \u2014 provider keys still stored, not the active inference path"}),(0,w.jsx)("div",{style:{marginTop:8,opacity:n===!0?.45:1,transition:"opacity 0.15s"},children:(0,w.jsx)(Nu,{catalog:t,settings:e,secretNames:r,onSave:o})})]})})}function gj({symbol:e,configPath:t,envOverride:r,defaultValue:o,effect:n}){return(0,w.jsxs)("div",{"data-testid":"lifecycle-flag","data-config-path":t,style:{display:"flex",flexDirection:"column",gap:2,padding:"8px 0",borderBottom:"1px solid var(--border-subtle)"},children:[(0,w.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline",flexWrap:"wrap"},children:[(0,w.jsx)(Q,{tone:"honey",mono:!0,children:e}),(0,w.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t}),(0,w.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["default: ",o]})]}),(0,w.jsx)("div",{style:{fontSize:12,color:"var(--text-tertiary)"},children:n}),(0,w.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:["env: ",r]})]})}function vj(){return(0,w.jsx)(te,{title:"Memory lifecycle",eyebrow:"memory.lifecycle.* \xB7 symbol \xB7 default \xB7 effect",children:(0,w.jsxs)("div",{"data-testid":"lifecycle-config-reference",style:{display:"flex",flexDirection:"column"},children:[(0,w.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",marginBottom:8},children:"Precedence: HONEYCOMB_LIFECYCLE_* env > agent.yaml memory.lifecycle.* > the documented default. Defaults are non-destructive \u2014 a = 1, c = 0, s = 0 (posture observe), auto-resolve off."}),dw.map(e=>(0,w.jsx)(gj,{...e},e.configPath))]})})}function yj({wire:e}){let[t,r]=ue.default.useState(null),[o,n]=ue.default.useState(!1),i=ue.default.useCallback(async()=>{try{let s=await e.health();r(s?.reasons?.embeddings==="on")}catch{r(!1)}},[e]);ue.default.useEffect(()=>{i()},[i]);let a=ue.default.useCallback(async()=>{if(t===null)return;n(!0);let s=!t;await e.setEmbeddings(s)&&r(s),n(!1),i()},[t,e,i]);return(0,w.jsx)(te,{title:"Embeddings",eyebrow:"semantic recall \xB7 local model",right:(0,w.jsx)(Q,{tone:t?"verified":"neutral",mono:!0,dot:!0,children:t===null?"\u2026":t?"on":"off"}),children:(0,w.jsxs)("div",{"data-testid":"embeddings-section",style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,w.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Semantic vector recall"}),(0,w.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"On runs the local embedding model for semantic search. Off falls back to lexical (BM25) recall only."})]}),(0,w.jsx)(U,{variant:t?"secondary":"primary",size:"sm",disabled:o||t===null,onClick:()=>{a()},"data-testid":"embeddings-toggle",children:o?"saving\u2026":t?"Turn off":"Turn on"})]})})}function hj({wire:e}){let[t,r]=ue.default.useState(!1),[o,n]=ue.default.useState(!1),[i,a]=ue.default.useState(!1),[l,s]=ue.default.useState(!1),[c,d]=ue.default.useState(null),[p,f]=ue.default.useState(!1),g=ue.default.useCallback(async()=>{r(!1),n(!0),await e.restartDaemon()||n(!1)},[e]),x=ue.default.useCallback(async()=>{a(!1),s(!0),f(!1);let h=await e.uninstall();d(h),f(h===null),s(!1)},[e]);return(0,w.jsxs)(te,{title:"System",eyebrow:"restart \xB7 uninstall",children:[(0,w.jsxs)("div",{"data-testid":"system-restart",style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",borderBottom:"1px solid var(--border-subtle)",flexWrap:"wrap"},children:[(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,w.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Restart the daemon"}),(0,w.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"Stops and relaunches the background daemon. The dashboard reconnects automatically."})]}),o?(0,w.jsx)("span",{"data-testid":"system-restarting",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:"restarting\u2026"}):t?(0,w.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,w.jsx)(U,{variant:"secondary",size:"sm",onClick:()=>r(!1),children:"Cancel"}),(0,w.jsx)(U,{variant:"danger",size:"sm",onClick:()=>{g()},"data-testid":"system-restart-confirm",children:"Confirm restart"})]}):(0,w.jsx)(U,{variant:"secondary",size:"sm",onClick:()=>r(!0),"data-testid":"system-restart-button",children:"Restart"})]}),(0,w.jsxs)("div",{"data-testid":"system-uninstall",style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 6px"},children:[(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,w.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Uninstall Honeycomb"}),(0,w.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"Reverses Honeycomb's changes to your coding assistants. Your DeepLake login is left intact."})]}),i?(0,w.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,w.jsx)(U,{variant:"secondary",size:"sm",onClick:()=>a(!1),children:"Cancel"}),(0,w.jsx)(U,{variant:"danger",size:"sm",disabled:l,onClick:()=>{x()},"data-testid":"system-uninstall-confirm",children:l?"Working\u2026":"Confirm uninstall"})]}):(0,w.jsx)(U,{variant:"danger",size:"sm",onClick:()=>a(!0),"data-testid":"system-uninstall-button",children:"Uninstall"})]}),c!==null&&(0,w.jsxs)("div",{"data-testid":"system-uninstall-result",style:{display:"flex",flexDirection:"column",gap:6,padding:"8px 0"},children:[(0,w.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:c.note}),c.harnesses.length>0&&(0,w.jsxs)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:["Detected: ",c.harnesses.join(", ")]}),(0,w.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--honey)"},children:c.command})]}),p&&(0,w.jsxs)("span",{"data-testid":"system-uninstall-error",style:{fontSize:12,color:"var(--severity-critical)"},children:["Could not load uninstall guidance. Retry, or run ",(0,w.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:"honeycomb uninstall"})," in your terminal."]})]})]})}function pw({wire:e}){let[t,r]=ue.default.useState(sl),[o,n]=ue.default.useState([]),i=ue.default.useCallback(async()=>{r(await e.vaultSettings())},[e]),a=ue.default.useCallback(async()=>{n(await e.secretNames())},[e]);ue.default.useEffect(()=>{i(),a()},[i,a]);let l=ue.default.useCallback(async(d,p)=>{let f=await e.setSetting(d,p);return await i(),f},[e,i]),s=t.settings[Be.portkeyEnabled]===!0,c=ue.default.useCallback(async d=>{let p=await e.setSecret(bi.portkey,d);return await a(),p},[e,a]);return(0,w.jsx)(Ze,{title:"Settings",eyebrow:"deeplake \xB7 provider keys \xB7 search mode",children:(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,w.jsx)(sj,{wire:e}),(0,w.jsx)(dj,{wire:e,secretNames:o,onSaved:()=>{a()}}),(0,w.jsx)(yj,{wire:e}),(0,w.jsx)(c1,{settings:t.settings,secretNames:o,onSaveSetting:l,onSaveKey:c}),(0,w.jsx)(mj,{settings:t.settings,catalog:t.catalog,secretNames:o,onSave:l,portkeyEnabled:s}),(0,w.jsx)(vj,{}),(0,w.jsx)(hj,{wire:e})]})})}var hn=L(he(),1);var V=L(H(),1),xj=5e3,yl=12;function qu(e,t){return`${e}:${t}`}function ji({label:e,children:t}){return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,V.jsx)("span",{style:{flex:1}}),(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function mw({state:e}){let t=Uh[e]??"neutral";return(0,V.jsx)(Q,{tone:t,mono:!0,dot:!0,children:e})}function Sj({row:e,flight:t,onAction:r}){let o=t!==void 0,n=(i,a)=>t===i?`${a}\u2026`:a;return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[e.state==="local"&&(0,V.jsx)(U,{variant:"primary",size:"sm",disabled:o,"data-testid":`promote-${e.assetType}-${e.name}`,onClick:()=>r("promote",e),children:n("promote","Promote")}),e.state==="shared"&&(0,V.jsx)(U,{variant:"secondary",size:"sm",disabled:o,"data-testid":`pull-${e.assetType}-${e.name}`,onClick:()=>r("pull",e),children:n("pull","Pull")}),e.state==="shared"&&(0,V.jsx)(U,{variant:"ghost",size:"sm",disabled:o,"data-testid":`enable-${e.assetType}-${e.name}`,onClick:()=>r("enable",e),children:n("enable","Enable")}),(e.state==="shared"||e.state==="pulled")&&(0,V.jsx)(U,{variant:"danger",size:"sm",disabled:o||!e.authoredByMe,title:e.authoredByMe?"Demote (tombstone) this asset":"Only the author can demote this asset","data-testid":`demote-${e.assetType}-${e.name}`,onClick:()=>r("demote",e),children:n("demote","Demote")}),(e.state==="local"||e.state==="pulled")&&(0,V.jsx)(U,{variant:"ghost",size:"sm",disabled:o,"data-testid":`disable-${e.assetType}-${e.name}`,onClick:()=>r("disable",e),children:n("disable","Disable")}),o&&(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"in-flight\u2026"})]})}function bj({row:e}){return(0,V.jsx)("div",{"data-testid":`detail-${e.assetType}-${e.name}`,style:{marginTop:4},children:(0,V.jsxs)(te,{title:e.name,eyebrow:e.assetType,style:{marginBottom:4},children:[e.description!==""&&(0,V.jsx)("div",{style:{fontSize:13,color:"var(--text-secondary)",padding:"4px 6px 8px",lineHeight:"19px"},children:e.description}),(0,V.jsx)(ji,{label:"state",children:(0,V.jsx)(mw,{state:e.state})}),(0,V.jsx)(ji,{label:"provenance",children:e.sourceHarness||"\u2014"}),(0,V.jsx)(ji,{label:"scope",children:e.scope||"\u2014"}),(0,V.jsx)(ji,{label:"source harness",children:e.sourceHarness||"\u2014"}),(0,V.jsx)(ji,{label:"tier / style",children:e.tier!==""?`${e.tier} / ${e.style}`:"\u2014"}),(0,V.jsx)(ji,{label:"version",children:e.version>0?`v${e.version}`:"\u2014"})]})})}function kj({row:e,open:t,flight:r,onToggle:o,onAction:n}){return(0,V.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,V.jsxs)("button",{type:"button","data-testid":`row-${e.assetType}-${e.name}`,onClick:()=>o(e),style:{display:"flex",alignItems:"center",gap:8,background:"transparent",border:"none",padding:0,cursor:"pointer",minWidth:0,flex:"1 1 200px",textAlign:"left"},children:[(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.name}),(0,V.jsx)(mw,{state:e.state}),e.version>0&&(0,V.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["v",e.version]})]}),(0,V.jsx)(Sj,{row:e,flight:r,onAction:n})]}),t&&(0,V.jsx)(bj,{row:e})]})}function _j({kind:e,rows:t,openKey:r,inFlight:o,onToggle:n,onAction:i}){return(0,V.jsx)(te,{title:e==="skill"?"Skills":"Agents",eyebrow:`${t.length} ${e==="skill"?"skills":"agents"}`,children:t.length===0?(0,V.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e==="skill"?"skills":"agents"," found."]}):(0,V.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(l=>(0,V.jsx)(kj,{row:l,open:r===qu(e,l.name),flight:o[qu(e,l.name)],onToggle:n,onAction:i},`${l.assetType}:${l.name}`))})})}function lx({label:e,value:t,tone:r}){return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px"},children:[(0,V.jsx)(Q,{tone:r,mono:!0,children:t}),(0,V.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:e})]})}function $j(e){let t=0,r=0,o=0;for(let n of[...e.skills,...e.agents])n.state==="shared"?t++:n.state==="local"?r++:n.state==="pulled"&&o++;return{shared:t,local:r,pulled:o}}function wj({view:e}){let t=$j(e);return(0,V.jsx)(te,{title:"Sync state",eyebrow:"per scope",children:(0,V.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:18},children:[(0,V.jsx)(lx,{label:"shared with team",value:t.shared,tone:"verified"}),(0,V.jsx)(lx,{label:"local only",value:t.local,tone:"neutral"}),(0,V.jsx)(lx,{label:"pulled",value:t.pulled,tone:"honey"})]})})}function zj(e){return e.filter(ju).slice(-yl).reverse().map(t=>{let r=Tr(t),o=r1(t);return o!==""?`${r} \xB7 ${o}`:r})}function Ij(e,t){if(!ju(t))return e;let r=[...e,t];return r.length>yl?r.slice(-yl):r}function gw({wire:e}){let{scope:t}=Wt(),r=t.project,[o,n]=hn.default.useState(Eu),[i,a]=hn.default.useState([]),[l,s]=hn.default.useState("skill"),[c,d]=hn.default.useState(null),[p,f]=hn.default.useState({});hn.default.useEffect(()=>{if(r===void 0){n(Eu);return}let v=!0,m=async()=>{if(!v||Tn())return;let b=await e.assetsView();v&&n(b)};m();let y=setInterval(()=>{m()},xj);return()=>{v=!1,clearInterval(y)}},[e,r]),hn.default.useEffect(()=>{let v=!0;(async()=>{let y=await e.logs(yl*6);v&&a(y.filter(ju).slice(-yl))})();let m=e.logsStream(y=>{v&&a(b=>Ij(b,y))});return()=>{v=!1,m()}},[e]);let g=hn.default.useMemo(()=>zj(i),[i]),x=hn.default.useCallback(v=>{let m=qu(v.assetType,v.name);d(y=>y===m?null:m)},[]),h=hn.default.useCallback((v,m)=>{let y=qu(m.assetType,m.name);f(b=>({...b,[y]:v})),(async()=>{try{await e.syncAction(v,{assetType:m.assetType,name:m.name,honeycombId:m.honeycombId!==""?m.honeycombId:void 0}),n(await e.assetsView())}finally{f(b=>{let P={...b};return delete P[y],P})}})()},[e]),_=l==="skill"?o.skills:o.agents;return(0,V.jsx)(Ze,{title:"Sync",eyebrow:r===void 0?"sync":`${o.skills.length+o.agents.length} assets`,children:r===void 0?(0,V.jsx)(Ii,{surface:"sync state"}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(wj,{view:o}),(0,V.jsx)("div",{style:{height:16}}),(0,V.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:12},children:[(0,V.jsx)(fw,{label:"Skills",active:l==="skill",count:o.skills.length,onClick:()=>s("skill")}),(0,V.jsx)(fw,{label:"Agents",active:l==="agent",count:o.agents.length,onClick:()=>s("agent")})]}),(0,V.jsx)(_j,{kind:l,rows:_,openKey:c,inFlight:p,onToggle:x,onAction:h}),(0,V.jsx)("div",{style:{height:16}}),(0,V.jsx)(jr,{lines:g})]})})}function fw({label:e,active:t,count:r,onClick:o}){return(0,V.jsxs)("button",{type:"button","data-testid":`tab-${e.toLowerCase()}`,"aria-pressed":t,onClick:o,style:{display:"inline-flex",alignItems:"center",gap:8,height:34,padding:"0 14px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:[e,(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:r})]})}var de=L(H(),1);function Dn({children:e}){return(0,de.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none"},children:e})}var Pj=(0,de.jsxs)(Dn,{children:[(0,de.jsx)("rect",{x:3,y:3,width:7,height:7}),(0,de.jsx)("rect",{x:14,y:3,width:7,height:7}),(0,de.jsx)("rect",{x:3,y:14,width:7,height:7}),(0,de.jsx)("rect",{x:14,y:14,width:7,height:7})]}),Ej=(0,de.jsxs)(Dn,{children:[(0,de.jsx)("rect",{x:3,y:4,width:18,height:16,rx:2}),(0,de.jsx)("path",{d:"M7 9l3 3-3 3"}),(0,de.jsx)("path",{d:"M13 15h4"})]}),Rj=(0,de.jsx)(Dn,{children:(0,de.jsx)("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})}),Cj=(0,de.jsxs)(Dn,{children:[(0,de.jsx)("path",{d:"M12 3l7 4v8l-7 4-7-4V7z"}),(0,de.jsx)("path",{d:"M12 8v8"})]}),Tj=(0,de.jsxs)(Dn,{children:[(0,de.jsx)("circle",{cx:6,cy:6,r:2.5}),(0,de.jsx)("circle",{cx:18,cy:9,r:2.5}),(0,de.jsx)("circle",{cx:9,cy:18,r:2.5}),(0,de.jsx)("path",{d:"M8 7.5l8 1.5M8 16l1-7.5"})]}),jj=(0,de.jsxs)(Dn,{children:[(0,de.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7"}),(0,de.jsx)("path",{d:"M21 4v4h-4"})]}),Oj=(0,de.jsxs)(Dn,{children:[(0,de.jsx)("rect",{x:4,y:3,width:16,height:18,rx:2}),(0,de.jsx)("path",{d:"M8 8h8M8 12h8M8 16h5"})]}),Dj=(0,de.jsx)(Dn,{children:(0,de.jsx)("path",{d:"M3 12h4l2-7 4 14 2-7h6"})}),Nj=(0,de.jsxs)(Dn,{children:[(0,de.jsx)("path",{d:"M4 19V5"}),(0,de.jsx)("path",{d:"M4 19h16"}),(0,de.jsx)("path",{d:"M7 15l4-5 3 3 5-7"})]}),Lj=(0,de.jsxs)(Dn,{children:[(0,de.jsx)("circle",{cx:12,cy:12,r:3}),(0,de.jsx)("path",{d:"M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1"})]}),Yh="/projects",Qu=[{route:"/",label:"Dashboard",icon:Pj,component:N1},{route:Yh,label:"Projects",icon:Rj,component:nw},{route:"/harnesses",label:"Harnesses",icon:Ej,component:z1,dynamic:{resolve:I1}},{route:"/memories",label:"Memories",icon:Cj,component:Q1},{route:"/graph",label:"Memory Graph",icon:Tj,component:M1},{route:"/sync",label:"Sync",icon:jj,component:gw},{route:"/logs",label:"Logs",icon:Oj,component:X1},{route:"/health",label:"Health",icon:Dj,component:B1},{route:"/roi",label:"ROI",icon:Nj,component:uw},{route:"/settings",label:"Settings",icon:Lj,component:pw}],kF=Qu[0];function vw(e,t=Qu){let r=t.find(n=>n.route===e);if(r!==void 0)return r;let o=t.find(n=>n.route!=="/"&&e.startsWith(`${n.route}/`));return o!==void 0?o:t.find(n=>n.route==="/")??t[0]}var He=L(H(),1),Fj=220,Aj=56;function Uj(e,t){let r=e.find(i=>i.route===t);if(r!==void 0)return r.route;let o=e.find(i=>i.route!=="/"&&t.startsWith(`${i.route}/`));return o!==void 0?o.route:e.find(i=>i.route==="/")?.route??e[0]?.route??"/"}function Wj({entry:e,active:t,collapsed:r,onNavigate:o}){return(0,He.jsxs)("button",{type:"button",onClick:()=>o(e.route),"aria-current":t?"page":void 0,title:r?e.label:void 0,"data-route":e.route,"data-active":t?"true":"false",style:{display:"flex",alignItems:"center",gap:10,width:"100%",height:38,padding:r?"0":"0 12px",justifyContent:r?"center":"flex-start",background:t?"var(--honey-subtle)":"transparent",color:t?"var(--honey)":"var(--text-secondary)",border:`1px solid ${t?"var(--honey-border)":"transparent"}`,borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,letterSpacing:"0.01em",cursor:"pointer",whiteSpace:"nowrap",transition:"background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out)"},children:[(0,He.jsx)("span",{style:{display:"inline-flex",flex:"none"},children:e.icon}),!r&&(0,He.jsx)("span",{children:e.label})]})}function Mj({daemonUp:e,collapsed:t}){return(0,He.jsxs)("div",{title:"daemon health","data-testid":"daemon-health-pill",style:{display:"flex",alignItems:"center",gap:8,height:36,padding:t?"0":"0 12px",justifyContent:t?"center":"flex-start",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)"},children:[(0,He.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:e?"var(--verified)":"var(--severity-critical)"}}),!t&&(0,He.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:e?"daemon :3850":"offline"})]})}function yw({entries:e,activeRoute:t,onNavigate:r,daemonUp:o,identity:n,assetBase:i,collapsed:a,onToggleCollapsed:l}){let s=Uj(e,t);return(0,He.jsxs)("nav",{"aria-label":"Dashboard navigation","data-collapsed":a?"true":"false",style:{display:"flex",flexDirection:"column",gap:18,width:a?Aj:Fj,flex:"none",minHeight:"100vh",boxSizing:"border-box",padding:a?"20px 8px":"22px 14px",background:"var(--bg-surface)",borderRight:"1px solid var(--border-default)"},children:[(0,He.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,paddingLeft:a?0:2,justifyContent:a?"center":"flex-start"},children:[(0,He.jsx)("img",{src:`${i}/honeycomb-memory-cluster.svg`,width:a?28:34,height:a?28:34,alt:"",style:{flex:"none"}}),!a&&(0,He.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[(0,He.jsx)("span",{style:{fontWeight:700,fontSize:19,letterSpacing:"-0.03em",color:"var(--text-primary)",lineHeight:1.1},children:"honeycomb"}),(0,He.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n})]})]}),(0,He.jsx)(D1,{collapsed:a}),(0,He.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4,flex:1},children:e.map(c=>(0,He.jsx)(Wj,{entry:c,active:c.route===s,collapsed:a,onNavigate:r},c.route))}),(0,He.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,He.jsx)(Mj,{daemonUp:o,collapsed:a}),(0,He.jsx)(U,{variant:"ghost",size:"sm",onClick:l,"aria-label":a?"expand sidebar":"collapse sidebar",title:a?"expand":"collapse",children:a?"\xBB":"\xAB collapse"})]})]})}var nt=L(H(),1),Bj=5e3,Zj=900;function Vj({route:e,pageProps:t,navigate:r}){let o=vw(e),n=o.component,{projects:i,projectsHydrated:a}=Xh();mt.default.useEffect(()=>{typeof document<"u"&&(document.title=`honeycomb \xB7 ${o.label}`)},[o.label]);let l=i.some(c=>c.boundLocally&&c.projectId!=="__unsorted__"),s=o.route==="/"&&a&&!l;return(0,nt.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,nt.jsx)("div",{style:{maxWidth:Au,margin:"0 auto"},children:s?(0,nt.jsx)(F1,{wire:t.wire,navigate:r,assetBase:t.assetBase}):(0,nt.jsx)(n,{...t})})})}function hw({client:e,assetBase:t="assets"}={}){let r=mt.default.useMemo(()=>e??Tu(),[e]),{route:o,navigate:n}=Wu(),[i,a]=mt.default.useState(!0),[l,s]=mt.default.useState(null),[c,d]=mt.default.useState(Dh),[p,f]=mt.default.useState(!1),[g,x]=mt.default.useState(!1),h=c.settings.port?`http://127.0.0.1:${c.settings.port}`:"http://127.0.0.1:3850",_=mt.default.useCallback(async()=>{d(await r.settings())},[r]);mt.default.useEffect(()=>{_()},[_]);let v=mt.default.useRef(null);gn(async()=>{let{up:T,reasons:Z}=await r.health();a(T),s(Z),T&&v.current===!1&&_(),v.current=T},Bj),mt.default.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let T=window.matchMedia(`(max-width: ${Zj}px)`),Z=M=>{M&&x(!0)};Z(T.matches);let K=M=>Z(M.matches);return T.addEventListener("change",K),()=>T.removeEventListener("change",K)},[]);let m=mt.default.useRef(!1),y=mt.default.useRef(null);mt.default.useEffect(()=>()=>{y.current!==null&&clearTimeout(y.current)},[]);let b=mt.default.useCallback(async()=>{if(m.current)return;m.current=!0,f(!0),(await r.pollinate()).triggered?y.current=setTimeout(()=>{f(!1),m.current=!1},4200):(f(!1),m.current=!1)},[r]),P=`${c.orgName||c.orgId||"local"} \xB7 ${c.workspace||"default"}`;return(0,nt.jsx)(O1,{wire:r,children:(0,nt.jsxs)("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-canvas)"},children:[(0,nt.jsx)(yw,{entries:Qu,activeRoute:o,onNavigate:n,daemonUp:i,identity:P,assetBase:t,collapsed:g,onToggleCollapsed:()=>x(T=>!T)}),(0,nt.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column"},children:[(0,nt.jsx)(x1,{onOpenHealth:()=>n(h1)}),(0,nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 28px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,nt.jsx)("span",{style:{flex:1}}),(0,nt.jsx)(U,{variant:"pollinate",onClick:()=>{b()},disabled:p,children:p?"pollinating\u2026":"Pollinate now"})]}),i?(0,nt.jsx)(Vj,{route:o,pageProps:{wire:r,daemonUp:i,assetBase:t,pollinating:p,healthReasons:l},navigate:n}):(0,nt.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,nt.jsx)("div",{style:{maxWidth:Au,margin:"0 auto"},children:(0,nt.jsx)(u1,{url:h,onRetry:()=>{r.health().then(({up:T})=>{a(T),T&&_()})}})})})]})]})})}var Hj="/buzzing",Jj="/login";function xw(e){return e===Hj?"buzzing":e===Jj?"login":"shell"}var ed=L(he(),1);var Gj=["honeycomb"];function Sw(e){return e.supervisor!=="reachable"||e.health!=="ok"?!1:Gj.every(t=>e.daemons.some(r=>r.name===t&&r.health==="ok"))}var We=L(H(),1);function Xj({service:e}){return(0,We.jsxs)("li",{"data-testid":`buzzing-tile-${e.name}`,"data-state":e.state,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 14px",borderRadius:"var(--radius-md)",border:"1px solid var(--border-subtle)",background:"var(--bg-elevated)"},children:[(0,We.jsx)("span",{style:{color:$i[e.state],display:"inline-flex",flex:"none"},children:(0,We.jsx)(_i,{state:e.state})}),(0,We.jsx)("span",{style:{flex:1,fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-primary)"},children:e.name}),(0,We.jsx)("span",{"data-testid":`buzzing-tile-state-${e.name}`,style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-secondary)",textTransform:"lowercase"},children:lo[e.state]})]})}function Kj(){return(0,We.jsxs)("div",{"data-testid":"buzzing-empty",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%",padding:"16px 20px",background:"var(--bg-inset)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)"},children:[(0,We.jsx)("span",{role:"img","aria-label":"doctor supervisor: unreachable",style:{width:8,height:8,borderRadius:"50%",background:"var(--text-tertiary)",animation:"hc-readiness-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate"}}),(0,We.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5,textAlign:"center"},children:"Waiting on doctor. No services are registered yet."})]})}function bw({assetBase:e,pollMs:t=1500,onReady:r}){let o=wi(),[n,i]=ed.default.useState(!1);return ed.default.useEffect(()=>{if(n)return;let a=!0,l=!1,s=async()=>{if(!l){l=!0;try{let p=await(await fetch("/api/fleet-status")).json();if(!a)return;Sw(p)&&i(!0)}catch{}finally{l=!1}}};s();let c=setInterval(()=>{s()},t);return()=>{a=!1,clearInterval(c)}},[n,t]),ed.default.useEffect(()=>{if(n){if(r!==void 0){r();return}typeof window<"u"&&window.location.assign("/")}},[n,r]),(0,We.jsxs)("div",{"data-testid":"buzzing-screen",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:[(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:24,width:"100%",maxWidth:460,padding:"40px 32px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-xl)"},children:[(0,We.jsx)("span",{"aria-hidden":"true",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"none",width:88,height:88,borderRadius:"50%",background:"var(--honey-subtle)",border:"1px solid var(--honey-border)"},children:(0,We.jsx)("img",{src:`${e}/honeycomb-memory-cluster.svg`,width:48,height:48,alt:""})}),(0,We.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Waiting for the hive\u2026"}),(0,We.jsxs)("div",{"data-testid":"buzzing-status-region",role:"status","aria-live":"polite",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%"},children:[(0,We.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Starting required services. This usually takes a few seconds on a cold boot."}),o.services.length===0?(0,We.jsx)(Kj,{}):(0,We.jsx)("ul",{"data-testid":"buzzing-tile-grid",style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:8,width:"100%",textAlign:"left"},children:o.services.map(a=>(0,We.jsx)(Xj,{service:a},a.name))})]})]}),(0,We.jsx)("style",{children:"@keyframes hc-readiness-pulse { from { opacity: .45 } to { opacity: 1 } }"})]})}var Je=L(he(),1);var Y=L(H(),1),Yj=2500,qj=new Set(["backup","uninstall","link"]);function Qj(e){return e.migration!==void 0&&qj.has(e.migration.phase)}function eO(e){return e.priorTool.hivemind==="migrated"?!1:e.priorTool.hivemind==="present"||e.credentials.hivemind}function tO({wire:e,assetBase:t,state:r}){let[o,n]=Je.default.useState(null),[i,a]=Je.default.useState(!1),[l,s]=Je.default.useState(!1),c=Je.default.useRef(!1),d=Je.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0),s(!1);let f=await e.setupLogin();if(f===null){s(!0),a(!1),c.current=!1;return}n(f)},[e]),p=r.priorTool.hivemind==="present"||r.credentials.hivemind;return(0,Y.jsxs)("div",{"data-testid":"guided-setup",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,Y.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,Y.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:460},children:[(0,Y.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Let\u2019s connect your account"}),(0,Y.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:p?"We found a previous Hivemind setup. Link your account to bring your memory online.":"Honeycomb keeps one shared memory for all your coding agents. Link your account to get started."})]}),o===null?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(U,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Starting setup\u2026":"First time setup"}),l&&(0,Y.jsxs)("p",{"data-testid":"setup-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:["Could not start setup. Retry, or run ",(0,Y.jsx)("code",{children:"honeycomb login"})," in your terminal."]})]}):(0,Y.jsxs)("div",{"data-testid":"setup-grant",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,Y.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Enter this code to finish linking:"}),(0,Y.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-lg)",color:"var(--honey)",letterSpacing:"0.08em"},children:o.user_code}),(0,Y.jsx)("a",{href:o.verification_uri_complete??o.verification_uri,target:"_blank",rel:"noreferrer",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)"},children:"Open the verification page"}),(0,Y.jsx)("span",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"})]})]})}function nO({wire:e,assetBase:t,onNeedsLogin:r}){let[o,n]=Je.default.useState(!1),[i,a]=Je.default.useState(!1),[l,s]=Je.default.useState(null),c=Je.default.useRef(!1),d=Je.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0);let p=await e.migrateFromHivemind();if(s(p),p.ok&&p.needsLogin===!0){r();return}p.ok||(a(!1),c.current=!1)},[e,r]);return(0,Y.jsxs)("div",{"data-testid":"coexistence-warning",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,Y.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,Y.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,Y.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"We found an existing Hivemind setup"}),(0,Y.jsxs)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:["Running Hivemind and Honeycomb on the same machine isn\u2019t supported \u2014 they share one memory and would collide. ",(0,Y.jsx)("strong",{children:"Proceed with Honeycomb"})," will back up your Hivemind config, uninstall Hivemind, and reuse your existing DeepLake login (so you likely won\u2019t even need to sign in again)."]})]}),l!==null&&l.ok===!1?(0,Y.jsxs)("div",{"data-testid":"migration-error",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center",maxWidth:500},children:[(0,Y.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:l.message}),l.backupPath!==void 0&&(0,Y.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup saved at ",(0,Y.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:l.backupPath})]}),(0,Y.jsx)(U,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Retrying\u2026":"Retry"})]}):o?(0,Y.jsxs)("div",{"data-testid":"migration-confirm",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,Y.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"This backs up and removes your Hivemind setup. Continue?"}),(0,Y.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,Y.jsx)(U,{variant:"secondary",size:"md",onClick:()=>n(!1),disabled:i,children:"Cancel"}),(0,Y.jsx)(U,{variant:"danger",size:"md",onClick:()=>{d()},disabled:i,"data-testid":"confirm-migrate-button",children:i?"Migrating\u2026":"Yes, proceed"})]})]}):(0,Y.jsx)(U,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"proceed-button",children:"Proceed with Honeycomb"})]})}function rO({wire:e,assetBase:t,state:r,onNeedsLogin:o}){let[n,i]=Je.default.useState(""),[a,l]=Je.default.useState(null),s=r.migration?.phase??"backup",c=r.migration?.backupPath,d=Je.default.useCallback(async()=>{i("resume");let f=await e.migrateFromHivemind();if(l(f.message),f.ok&&f.needsLogin===!0){o();return}f.ok||i("")},[e,o]),p=Je.default.useCallback(async()=>{i("rollback");let f=await e.rollbackMigration();l(f.message),i("")},[e]);return(0,Y.jsxs)("div",{"data-testid":"migration-interrupted",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,Y.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,Y.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,Y.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Your migration was interrupted"}),(0,Y.jsxs)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:["A previous switch to Honeycomb didn\u2019t finish (it stopped at the ",(0,Y.jsx)("code",{children:s})," step). You can resume it, or roll back to restore your previous Hivemind setup."]}),c!==void 0&&(0,Y.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup at ",(0,Y.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:c})]})]}),(0,Y.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,Y.jsx)(U,{variant:"primary",size:"md",onClick:()=>{d()},disabled:n!=="","data-testid":"resume-button",children:n==="resume"?"Resuming\u2026":"Resume"}),(0,Y.jsx)(U,{variant:"secondary",size:"md",onClick:()=>{p()},disabled:n!=="","data-testid":"rollback-button",children:n==="rollback"?"Rolling back\u2026":"Roll back"})]}),a!==null&&(0,Y.jsx)("p",{"data-testid":"migration-interrupted-message",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:a})]})}function kw({client:e,assetBase:t="assets"}={}){let r=Je.default.useMemo(()=>e??Tu(),[e]),[o,n]=Je.default.useState(Th),[i,a]=Je.default.useState(!1),l=Je.default.useRef(!1);return Je.default.useEffect(()=>{if(o.authenticated){!l.current&&typeof window<"u"&&(l.current=!0,window.location.assign("/"));return}let s=!0,c=async()=>{let p=await r.setupState();s&&n(p)};c();let d=setInterval(()=>{c()},Yj);return()=>{s=!1,clearInterval(d)}},[r,o.authenticated]),o.authenticated?(0,Y.jsx)(Y.Fragment,{}):Qj(o)&&!i?(0,Y.jsx)(rO,{wire:r,assetBase:t,state:o,onNeedsLogin:()=>a(!0)}):eO(o)&&!i?(0,Y.jsx)(nO,{wire:r,assetBase:t,onNeedsLogin:()=>a(!0)}):(0,Y.jsx)(tO,{wire:r,assetBase:t,state:o})}var hl=L(H(),1);function oO(){let e=document.getElementById("root");if(e===null)return;let t=e.getAttribute("data-asset-base")??"assets",r=/^[A-Za-z0-9._/-]*$/.test(t)?t:"assets",o=typeof window>"u"?"/":window.location.pathname,n=xw(o),i=n==="buzzing"?(0,hl.jsx)(bw,{assetBase:r}):n==="login"?(0,hl.jsx)(kw,{assetBase:r}):(0,hl.jsx)(hw,{assetBase:r});(0,$w.createRoot)(e).render((0,hl.jsx)(_w.default.StrictMode,{children:i}))}oO();
|
|
72
|
+
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]){i(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(l.cycle){i(a);continue}if(l.count>1&&e.reused==="ref"){i(a);continue}}}function Ur(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=l=>{let s=e.seen.get(l);if(s.ref===null)return;let c=s.def??s.schema,d={...c},p=s.ref;if(s.ref=null,p){o(p);let g=e.seen.get(p),x=g.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(x)):Object.assign(c,x),Object.assign(c,d),l._zod.parent===p)for(let _ in c)_==="$ref"||_==="allOf"||_ in d||delete c[_];if(x.$ref&&g.def)for(let _ in c)_==="$ref"||_==="allOf"||_ in g.def&&JSON.stringify(c[_])===JSON.stringify(g.def[_])&&delete c[_]}let f=l._zod.parent;if(f&&f!==p){o(f);let g=e.seen.get(f);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let x in c)x==="$ref"||x==="allOf"||x in g.def&&JSON.stringify(c[x])===JSON.stringify(g.def[x])&&delete c[x]}e.override({zodSchema:l,jsonSchema:c,path:s.path??[]})};for(let l of[...e.seen.entries()].reverse())o(l[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$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");n.$id=e.external.uri(l)}Object.assign(n,r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&n.id===i&&delete n.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"?n.$defs=a:n.definitions=a);try{let l=JSON.parse(JSON.stringify(n));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:$i(t,"input",e.processors),output:$i(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function It(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return It(o.element,r);if(o.type==="set")return It(o.valueType,r);if(o.type==="lazy")return It(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return It(o.innerType,r);if(o.type==="intersection")return It(o.left,r)||It(o.right,r);if(o.type==="record"||o.type==="map")return It(o.keyType,r)||It(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:It(o.in,r)||It(o.out,r);if(o.type==="object"){for(let n in o.shape)if(It(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(It(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(It(n,r))return!0;return!!(o.rest&&It(o.rest,r))}return!1}var Wv=(e,t={})=>r=>{let o=Fr({...r,processors:t});return xe(e,o),Ar(o,e),Ur(o,e)},$i=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=Fr({...n??{},target:i,io:t,processors:r});return xe(e,a),Ar(a,e),Ur(a,e)};var VR={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Mv=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),l&&(n.format=VR[l]??l,n.format===""&&delete n.format,l==="time"&&delete n.format),c&&(n.contentEncoding=c),s&&s.size>0){let d=[...s];d.length===1?n.pattern=d[0].source:d.length>1&&(n.allOf=[...d.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},Bv=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof l=="string"&&l.includes("int")?n.type="integer":n.type="number";let p=typeof d=="number"&&d>=(i??Number.NEGATIVE_INFINITY),f=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),g=t.target==="draft-04"||t.target==="openapi-3.0";p?g?(n.minimum=d,n.exclusiveMinimum=!0):n.exclusiveMinimum=d:typeof i=="number"&&(n.minimum=i),f?g?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof a=="number"&&(n.maximum=a),typeof s=="number"&&(n.multipleOf=s)},Zv=(e,t,r,o)=>{r.type="boolean"},Vv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Hv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Jv=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Gv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Xv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Kv=(e,t,r,o)=>{r.not={}},Yv=(e,t,r,o)=>{},qv=(e,t,r,o)=>{},Qv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},ey=(e,t,r,o)=>{let n=e._zod.def,i=Wa(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},ty=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.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");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},ny=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},ry=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},oy=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:s}=e._zod.bag;a!==void 0&&(i.minLength=a),l!==void 0&&(i.maxLength=l),s?s.length===1?(i.contentMediaType=s[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(n,i)},iy=(e,t,r,o)=>{r.type="boolean"},ay=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},ly=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},sy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},cy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},uy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},dy=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof l=="number"&&(n.maxItems=l),n.type="array",n.items=xe(i.element,t,{...o,path:[...o.path,"items"]})},py=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let c in a)n.properties[c]=xe(a[c],t,{...o,path:[...o.path,"properties",c]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(c=>{let d=i.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));s.size>0&&(n.required=Array.from(s)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=xe(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},iu=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((l,s)=>xe(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?r.oneOf=a:r.anyOf=a},fy=(e,t,r,o)=>{let n=e._zod.def,i=xe(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=xe(n.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];r.allOf=s},my=(e,t,r,o)=>{let n=r,i=e._zod.def;n.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=i.items.map((f,g)=>xe(f,t,{...o,path:[...o.path,a,g]})),c=i.rest?xe(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=s,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:s},c&&n.items.anyOf.push(c),n.minItems=s.length,c||(n.maxItems=s.length)):(n.items=s,c&&(n.additionalItems=c));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(n.minItems=d),typeof p=="number"&&(n.maxItems=p)},gy=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,s=a._zod.bag?.patterns;if(i.mode==="loose"&&s&&s.size>0){let d=xe(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let p of s)n.patternProperties[p.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=xe(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=xe(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=a._zod.values;if(c){let d=[...c].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(n.required=d)}},vy=(e,t,r,o)=>{let n=e._zod.def,i=xe(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},yy=(e,t,r,o)=>{let n=e._zod.def;xe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},hy=(e,t,r,o)=>{let n=e._zod.def;xe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},xy=(e,t,r,o)=>{let n=e._zod.def;xe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},by=(e,t,r,o)=>{let n=e._zod.def;xe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Sy=(e,t,r,o)=>{let n=e._zod.def,i=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?n.out:n.in:n.out;xe(a,t,o);let l=t.seen.get(e);l.ref=a},ky=(e,t,r,o)=>{let n=e._zod.def;xe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},_y=(e,t,r,o)=>{let n=e._zod.def;xe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},au=(e,t,r,o)=>{let n=e._zod.def;xe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},$y=(e,t,r,o)=>{let n=e._zod.innerType;xe(n,t,o);let i=t.seen.get(e);i.ref=n},ou={string:Mv,number:Bv,boolean:Zv,bigint:Vv,symbol:Hv,null:Jv,undefined:Gv,void:Xv,never:Kv,any:Yv,unknown:qv,date:Qv,enum:ey,literal:ty,nan:ny,template_literal:ry,file:oy,success:iy,custom:ay,function:ly,transform:sy,map:cy,set:uy,array:dy,object:py,union:iu,intersection:fy,tuple:my,record:gy,nullable:vy,nonoptional:yy,default:hy,prefault:xy,catch:by,pipe:Sy,readonly:ky,promise:_y,optional:au,lazy:$y};function lu(e,t){if("_idmap"in e){let o=e,n=Fr({...t,processors:ou}),i={};for(let s of o._idmap.entries()){let[c,d]=s;xe(d,n)}let a={},l={registry:o,uri:t?.uri,defs:i};n.external=l;for(let s of o._idmap.entries()){let[c,d]=s;Ar(n,d),a[c]=Ur(n,d)}if(Object.keys(i).length>0){let s=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[s]:i}}return{schemas:a}}let r=Fr({...t,processors:ou});return xe(e,r),Ar(r,e),Ur(r,e)}var su=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 r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Fr({processors:ou,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return xe(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Ar(this.ctx,t);let o=Ur(this.ctx,t),{"~standard":n,...i}=o;return i}};var L$={};var il={};Gn(il,{ZodAny:()=>Gy,ZodArray:()=>qy,ZodBase64:()=>Eu,ZodBase64URL:()=>Ru,ZodBigInt:()=>Ti,ZodBigIntFormat:()=>ju,ZodBoolean:()=>Ci,ZodCIDRv4:()=>Pu,ZodCIDRv6:()=>Iu,ZodCUID:()=>bu,ZodCUID2:()=>Su,ZodCatch:()=>bh,ZodCodec:()=>yl,ZodCustom:()=>hl,ZodCustomStringFormat:()=>Ei,ZodDate:()=>pl,ZodDefault:()=>mh,ZodDiscriminatedUnion:()=>eh,ZodE164:()=>Cu,ZodEmail:()=>yu,ZodEmoji:()=>hu,ZodEnum:()=>Pi,ZodExactOptional:()=>dh,ZodFile:()=>ch,ZodFunction:()=>Rh,ZodGUID:()=>ll,ZodIPv4:()=>wu,ZodIPv6:()=>zu,ZodIntersection:()=>th,ZodJWT:()=>Tu,ZodKSUID:()=>$u,ZodLazy:()=>Ph,ZodLiteral:()=>sh,ZodMAC:()=>Wy,ZodMap:()=>ah,ZodNaN:()=>kh,ZodNanoID:()=>xu,ZodNever:()=>Ky,ZodNonOptional:()=>Au,ZodNull:()=>Hy,ZodNullable:()=>fh,ZodNumber:()=>Ri,ZodNumberFormat:()=>ho,ZodObject:()=>ml,ZodOptional:()=>Fu,ZodPipe:()=>vl,ZodPrefault:()=>vh,ZodPreprocess:()=>_h,ZodPromise:()=>Eh,ZodReadonly:()=>$h,ZodRecord:()=>zi,ZodSet:()=>lh,ZodString:()=>Ii,ZodStringFormat:()=>ze,ZodSuccess:()=>xh,ZodSymbol:()=>Zy,ZodTemplateLiteral:()=>zh,ZodTransform:()=>uh,ZodTuple:()=>rh,ZodType:()=>ae,ZodULID:()=>ku,ZodURL:()=>dl,ZodUUID:()=>Wn,ZodUndefined:()=>Vy,ZodUnion:()=>gl,ZodUnknown:()=>Xy,ZodVoid:()=>Yy,ZodXID:()=>_u,ZodXor:()=>Qy,_ZodString:()=>vu,_default:()=>gh,_function:()=>H0,any:()=>_0,array:()=>fl,base64:()=>a0,base64url:()=>l0,bigint:()=>h0,boolean:()=>By,catch:()=>Sh,check:()=>J0,cidrv4:()=>o0,cidrv6:()=>i0,codec:()=>M0,cuid:()=>K$,cuid2:()=>Y$,custom:()=>G0,date:()=>w0,describe:()=>X0,discriminatedUnion:()=>C0,e164:()=>s0,email:()=>U$,emoji:()=>G$,enum:()=>Nu,exactOptional:()=>ph,file:()=>F0,float32:()=>m0,float64:()=>g0,function:()=>H0,guid:()=>W$,hash:()=>f0,hex:()=>p0,hostname:()=>d0,httpUrl:()=>J$,instanceof:()=>Y0,int:()=>mu,int32:()=>v0,int64:()=>x0,intersection:()=>nh,invertCodec:()=>B0,ipv4:()=>t0,ipv6:()=>r0,json:()=>Q0,jwt:()=>c0,keyof:()=>z0,ksuid:()=>e0,lazy:()=>Ih,literal:()=>L0,looseObject:()=>E0,looseRecord:()=>j0,mac:()=>n0,map:()=>O0,meta:()=>K0,nan:()=>W0,nanoid:()=>X$,nativeEnum:()=>N0,never:()=>Ou,nonoptional:()=>hh,null:()=>Jy,nullable:()=>cl,nullish:()=>A0,number:()=>My,object:()=>P0,optional:()=>sl,partialRecord:()=>T0,pipe:()=>gu,prefault:()=>yh,preprocess:()=>e1,promise:()=>V0,readonly:()=>wh,record:()=>ih,refine:()=>Ch,set:()=>D0,strictObject:()=>I0,string:()=>al,stringFormat:()=>u0,stringbool:()=>q0,success:()=>U0,superRefine:()=>Th,symbol:()=>S0,templateLiteral:()=>Z0,transform:()=>Lu,tuple:()=>oh,uint32:()=>y0,uint64:()=>b0,ulid:()=>q$,undefined:()=>k0,union:()=>Du,unknown:()=>yo,url:()=>H$,uuid:()=>M$,uuidv4:()=>B$,uuidv6:()=>Z$,uuidv7:()=>V$,void:()=>$0,xid:()=>Q$,xor:()=>R0});var cu={};Gn(cu,{endsWith:()=>vi,gt:()=>An,gte:()=>Pt,includes:()=>mi,length:()=>vo,lowercase:()=>pi,lt:()=>Fn,lte:()=>Ht,maxLength:()=>go,maxSize:()=>Lr,mime:()=>yi,minLength:()=>ar,minSize:()=>Un,multipleOf:()=>Nr,negative:()=>eu,nonnegative:()=>nu,nonpositive:()=>tu,normalize:()=>hi,overwrite:()=>_n,positive:()=>Qc,property:()=>ru,regex:()=>di,size:()=>mo,slugify:()=>ki,startsWith:()=>gi,toLowerCase:()=>bi,toUpperCase:()=>Si,trim:()=>xi,uppercase:()=>fi});var wi={};Gn(wi,{ZodISODate:()=>du,ZodISODateTime:()=>uu,ZodISODuration:()=>fu,ZodISOTime:()=>pu,date:()=>zy,datetime:()=>wy,duration:()=>Iy,time:()=>Py});var uu=b("ZodISODateTime",(e,t)=>{ng.init(e,t),ze.init(e,t)});function wy(e){return av(uu,e)}var du=b("ZodISODate",(e,t)=>{rg.init(e,t),ze.init(e,t)});function zy(e){return lv(du,e)}var pu=b("ZodISOTime",(e,t)=>{og.init(e,t),ze.init(e,t)});function Py(e){return sv(pu,e)}var fu=b("ZodISODuration",(e,t)=>{ig.init(e,t),ze.init(e,t)});function Iy(e){return cv(fu,e)}var F$=(e,t)=>{Ha.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Ga(e,r)},flatten:{value:r=>Ja(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ni,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ni,2)}},isEmpty:{get(){return e.issues.length===0}}})},JR=b("ZodError",F$),Lt=b("ZodError",F$,{Parent:Error});var Ey=ii(Lt),Ry=ai(Lt),Cy=li(Lt),Ty=si(Lt),jy=lc(Lt),Oy=sc(Lt),Dy=cc(Lt),Ny=uc(Lt),Ly=dc(Lt),Fy=pc(Lt),Ay=fc(Lt),Uy=mc(Lt);var A$=new WeakMap;function ul(e,t,r){let o=Object.getPrototypeOf(e),n=A$.get(o);if(n||(n=new Set,A$.set(o,n)),!n.has(t)){n.add(t);for(let i in r){let a=r[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}var ae=b("ZodType",(e,t)=>(ne.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:$i(e,"input"),output:$i(e,"output")}}),e.toJSONSchema=Wv(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,o)=>Ey(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>Cy(e,r,o),e.parseAsync=async(r,o)=>Ry(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>Ty(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>jy(e,r,o),e.decode=(r,o)=>Oy(e,r,o),e.encodeAsync=async(r,o)=>Dy(e,r,o),e.decodeAsync=async(r,o)=>Ny(e,r,o),e.safeEncode=(r,o)=>Ly(e,r,o),e.safeDecode=(r,o)=>Fy(e,r,o),e.safeEncodeAsync=async(r,o)=>Ay(e,r,o),e.safeDecodeAsync=async(r,o)=>Uy(e,r,o),ul(e,"ZodType",{check(...r){let o=this.def;return this.clone(E.mergeDefs(o,{checks:[...o.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,o){return wt(this,r,o)},brand(){return this},register(r,o){return r.add(this,o),this},refine(r,o){return this.check(Ch(r,o))},superRefine(r,o){return this.check(Th(r,o))},overwrite(r){return this.check(_n(r))},optional(){return sl(this)},exactOptional(){return ph(this)},nullable(){return cl(this)},nullish(){return sl(cl(this))},nonoptional(r){return hh(this,r)},array(){return fl(this)},or(r){return Du([this,r])},and(r){return nh(this,r)},transform(r){return gu(this,Lu(r))},default(r){return gh(this,r)},prefault(r){return yh(this,r)},catch(r){return Sh(this,r)},pipe(r){return gu(this,r)},readonly(){return wh(this)},describe(r){let o=this.clone();return ct.add(o,{description:r}),o},meta(...r){if(r.length===0)return ct.get(this);let o=this.clone();return ct.add(o,r[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return ct.get(e)?.description},configurable:!0}),e)),vu=b("_ZodString",(e,t)=>{fo.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Mv(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,ul(e,"_ZodString",{regex(...o){return this.check(di(...o))},includes(...o){return this.check(mi(...o))},startsWith(...o){return this.check(gi(...o))},endsWith(...o){return this.check(vi(...o))},min(...o){return this.check(ar(...o))},max(...o){return this.check(go(...o))},length(...o){return this.check(vo(...o))},nonempty(...o){return this.check(ar(1,...o))},lowercase(o){return this.check(pi(o))},uppercase(o){return this.check(fi(o))},trim(){return this.check(xi())},normalize(...o){return this.check(hi(...o))},toLowerCase(){return this.check(bi())},toUpperCase(){return this.check(Si())},slugify(){return this.check(ki())}})}),Ii=b("ZodString",(e,t)=>{fo.init(e,t),vu.init(e,t),e.email=r=>e.check(jc(yu,r)),e.url=r=>e.check(ol(dl,r)),e.jwt=r=>e.check(qc(Tu,r)),e.emoji=r=>e.check(Fc(hu,r)),e.guid=r=>e.check(rl(ll,r)),e.uuid=r=>e.check(Oc(Wn,r)),e.uuidv4=r=>e.check(Dc(Wn,r)),e.uuidv6=r=>e.check(Nc(Wn,r)),e.uuidv7=r=>e.check(Lc(Wn,r)),e.nanoid=r=>e.check(Ac(xu,r)),e.guid=r=>e.check(rl(ll,r)),e.cuid=r=>e.check(Uc(bu,r)),e.cuid2=r=>e.check(Wc(Su,r)),e.ulid=r=>e.check(Mc(ku,r)),e.base64=r=>e.check(Xc(Eu,r)),e.base64url=r=>e.check(Kc(Ru,r)),e.xid=r=>e.check(Bc(_u,r)),e.ksuid=r=>e.check(Zc($u,r)),e.ipv4=r=>e.check(Vc(wu,r)),e.ipv6=r=>e.check(Hc(zu,r)),e.cidrv4=r=>e.check(Jc(Pu,r)),e.cidrv6=r=>e.check(Gc(Iu,r)),e.e164=r=>e.check(Yc(Cu,r)),e.datetime=r=>e.check(wy(r)),e.date=r=>e.check(zy(r)),e.time=r=>e.check(Py(r)),e.duration=r=>e.check(Iy(r))});function al(e){return nv(Ii,e)}var ze=b("ZodStringFormat",(e,t)=>{we.init(e,t),vu.init(e,t)}),yu=b("ZodEmail",(e,t)=>{Jm.init(e,t),ze.init(e,t)});function U$(e){return jc(yu,e)}var ll=b("ZodGUID",(e,t)=>{Vm.init(e,t),ze.init(e,t)});function W$(e){return rl(ll,e)}var Wn=b("ZodUUID",(e,t)=>{Hm.init(e,t),ze.init(e,t)});function M$(e){return Oc(Wn,e)}function B$(e){return Dc(Wn,e)}function Z$(e){return Nc(Wn,e)}function V$(e){return Lc(Wn,e)}var dl=b("ZodURL",(e,t)=>{Gm.init(e,t),ze.init(e,t)});function H$(e){return ol(dl,e)}function J$(e){return ol(dl,{protocol:Vt.httpProtocol,hostname:Vt.domain,...E.normalizeParams(e)})}var hu=b("ZodEmoji",(e,t)=>{Xm.init(e,t),ze.init(e,t)});function G$(e){return Fc(hu,e)}var xu=b("ZodNanoID",(e,t)=>{Km.init(e,t),ze.init(e,t)});function X$(e){return Ac(xu,e)}var bu=b("ZodCUID",(e,t)=>{Ym.init(e,t),ze.init(e,t)});function K$(e){return Uc(bu,e)}var Su=b("ZodCUID2",(e,t)=>{qm.init(e,t),ze.init(e,t)});function Y$(e){return Wc(Su,e)}var ku=b("ZodULID",(e,t)=>{Qm.init(e,t),ze.init(e,t)});function q$(e){return Mc(ku,e)}var _u=b("ZodXID",(e,t)=>{eg.init(e,t),ze.init(e,t)});function Q$(e){return Bc(_u,e)}var $u=b("ZodKSUID",(e,t)=>{tg.init(e,t),ze.init(e,t)});function e0(e){return Zc($u,e)}var wu=b("ZodIPv4",(e,t)=>{ag.init(e,t),ze.init(e,t)});function t0(e){return Vc(wu,e)}var Wy=b("ZodMAC",(e,t)=>{sg.init(e,t),ze.init(e,t)});function n0(e){return ov(Wy,e)}var zu=b("ZodIPv6",(e,t)=>{lg.init(e,t),ze.init(e,t)});function r0(e){return Hc(zu,e)}var Pu=b("ZodCIDRv4",(e,t)=>{cg.init(e,t),ze.init(e,t)});function o0(e){return Jc(Pu,e)}var Iu=b("ZodCIDRv6",(e,t)=>{ug.init(e,t),ze.init(e,t)});function i0(e){return Gc(Iu,e)}var Eu=b("ZodBase64",(e,t)=>{pg.init(e,t),ze.init(e,t)});function a0(e){return Xc(Eu,e)}var Ru=b("ZodBase64URL",(e,t)=>{fg.init(e,t),ze.init(e,t)});function l0(e){return Kc(Ru,e)}var Cu=b("ZodE164",(e,t)=>{mg.init(e,t),ze.init(e,t)});function s0(e){return Yc(Cu,e)}var Tu=b("ZodJWT",(e,t)=>{gg.init(e,t),ze.init(e,t)});function c0(e){return qc(Tu,e)}var Ei=b("ZodCustomStringFormat",(e,t)=>{vg.init(e,t),ze.init(e,t)});function u0(e,t,r={}){return _i(Ei,e,t,r)}function d0(e){return _i(Ei,"hostname",Vt.hostname,e)}function p0(e){return _i(Ei,"hex",Vt.hex,e)}function f0(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Vt[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return _i(Ei,o,n,t)}var Ri=b("ZodNumber",(e,t)=>{_c.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Bv(e,o,n,i),ul(e,"ZodNumber",{gt(o,n){return this.check(An(o,n))},gte(o,n){return this.check(Pt(o,n))},min(o,n){return this.check(Pt(o,n))},lt(o,n){return this.check(Fn(o,n))},lte(o,n){return this.check(Ht(o,n))},max(o,n){return this.check(Ht(o,n))},int(o){return this.check(mu(o))},safe(o){return this.check(mu(o))},positive(o){return this.check(An(0,o))},nonnegative(o){return this.check(Pt(0,o))},negative(o){return this.check(Fn(0,o))},nonpositive(o){return this.check(Ht(0,o))},multipleOf(o,n){return this.check(Nr(o,n))},step(o,n){return this.check(Nr(o,n))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function My(e){return uv(Ri,e)}var ho=b("ZodNumberFormat",(e,t)=>{yg.init(e,t),Ri.init(e,t)});function mu(e){return pv(ho,e)}function m0(e){return fv(ho,e)}function g0(e){return mv(ho,e)}function v0(e){return gv(ho,e)}function y0(e){return vv(ho,e)}var Ci=b("ZodBoolean",(e,t)=>{qa.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zv(e,r,o,n)});function By(e){return yv(Ci,e)}var Ti=b("ZodBigInt",(e,t)=>{$c.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Vv(e,o,n,i),e.gte=(o,n)=>e.check(Pt(o,n)),e.min=(o,n)=>e.check(Pt(o,n)),e.gt=(o,n)=>e.check(An(o,n)),e.gte=(o,n)=>e.check(Pt(o,n)),e.min=(o,n)=>e.check(Pt(o,n)),e.lt=(o,n)=>e.check(Fn(o,n)),e.lte=(o,n)=>e.check(Ht(o,n)),e.max=(o,n)=>e.check(Ht(o,n)),e.positive=o=>e.check(An(BigInt(0),o)),e.negative=o=>e.check(Fn(BigInt(0),o)),e.nonpositive=o=>e.check(Ht(BigInt(0),o)),e.nonnegative=o=>e.check(Pt(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(Nr(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function h0(e){return xv(Ti,e)}var ju=b("ZodBigIntFormat",(e,t)=>{hg.init(e,t),Ti.init(e,t)});function x0(e){return Sv(ju,e)}function b0(e){return kv(ju,e)}var Zy=b("ZodSymbol",(e,t)=>{xg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Hv(e,r,o,n)});function S0(e){return _v(Zy,e)}var Vy=b("ZodUndefined",(e,t)=>{bg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gv(e,r,o,n)});function k0(e){return $v(Vy,e)}var Hy=b("ZodNull",(e,t)=>{Sg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jv(e,r,o,n)});function Jy(e){return wv(Hy,e)}var Gy=b("ZodAny",(e,t)=>{kg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yv(e,r,o,n)});function _0(){return zv(Gy)}var Xy=b("ZodUnknown",(e,t)=>{_g.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>qv(e,r,o,n)});function yo(){return Pv(Xy)}var Ky=b("ZodNever",(e,t)=>{$g.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Kv(e,r,o,n)});function Ou(e){return Iv(Ky,e)}var Yy=b("ZodVoid",(e,t)=>{wg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xv(e,r,o,n)});function $0(e){return Ev(Yy,e)}var pl=b("ZodDate",(e,t)=>{zg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Qv(e,o,n,i),e.min=(o,n)=>e.check(Pt(o,n)),e.max=(o,n)=>e.check(Ht(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function w0(e){return Rv(pl,e)}var qy=b("ZodArray",(e,t)=>{Pg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>dy(e,r,o,n),e.element=t.element,ul(e,"ZodArray",{min(r,o){return this.check(ar(r,o))},nonempty(r){return this.check(ar(1,r))},max(r,o){return this.check(go(r,o))},length(r,o){return this.check(vo(r,o))},unwrap(){return this.element}})});function fl(e,t){return jv(qy,e,t)}function z0(e){let t=e._zod.def.shape;return Nu(Object.keys(t))}var ml=b("ZodObject",(e,t)=>{Ig.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>py(e,r,o,n),E.defineLazy(e,"shape",()=>t.shape),ul(e,"ZodObject",{keyof(){return Nu(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:yo()})},loose(){return this.clone({...this._zod.def,catchall:yo()})},strict(){return this.clone({...this._zod.def,catchall:Ou()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return E.extend(this,r)},safeExtend(r){return E.safeExtend(this,r)},merge(r){return E.merge(this,r)},pick(r){return E.pick(this,r)},omit(r){return E.omit(this,r)},partial(...r){return E.partial(Fu,this,r[0])},required(...r){return E.required(Au,this,r[0])}})});function P0(e,t){let r={type:"object",shape:e??{},...E.normalizeParams(t)};return new ml(r)}function I0(e,t){return new ml({type:"object",shape:e,catchall:Ou(),...E.normalizeParams(t)})}function E0(e,t){return new ml({type:"object",shape:e,catchall:yo(),...E.normalizeParams(t)})}var gl=b("ZodUnion",(e,t)=>{Qa.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>iu(e,r,o,n),e.options=t.options});function Du(e,t){return new gl({type:"union",options:e,...E.normalizeParams(t)})}var Qy=b("ZodXor",(e,t)=>{gl.init(e,t),Eg.init(e,t),e._zod.processJSONSchema=(r,o,n)=>iu(e,r,o,n),e.options=t.options});function R0(e,t){return new Qy({type:"union",options:e,inclusive:!1,...E.normalizeParams(t)})}var eh=b("ZodDiscriminatedUnion",(e,t)=>{gl.init(e,t),Rg.init(e,t)});function C0(e,t,r){return new eh({type:"union",options:t,discriminator:e,...E.normalizeParams(r)})}var th=b("ZodIntersection",(e,t)=>{Cg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fy(e,r,o,n)});function nh(e,t){return new th({type:"intersection",left:e,right:t})}var rh=b("ZodTuple",(e,t)=>{wc.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>my(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function oh(e,t,r){let o=t instanceof ne,n=o?r:t,i=o?t:null;return new rh({type:"tuple",items:e,rest:i,...E.normalizeParams(n)})}var zi=b("ZodRecord",(e,t)=>{Tg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>gy(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function ih(e,t,r){return!t||!t._zod?new zi({type:"record",keyType:al(),valueType:e,...E.normalizeParams(t)}):new zi({type:"record",keyType:e,valueType:t,...E.normalizeParams(r)})}function T0(e,t,r){let o=wt(e);return o._zod.values=void 0,new zi({type:"record",keyType:o,valueType:t,...E.normalizeParams(r)})}function j0(e,t,r){return new zi({type:"record",keyType:e,valueType:t,mode:"loose",...E.normalizeParams(r)})}var ah=b("ZodMap",(e,t)=>{jg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>cy(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Un(...r)),e.nonempty=r=>e.check(Un(1,r)),e.max=(...r)=>e.check(Lr(...r)),e.size=(...r)=>e.check(mo(...r))});function O0(e,t,r){return new ah({type:"map",keyType:e,valueType:t,...E.normalizeParams(r)})}var lh=b("ZodSet",(e,t)=>{Og.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>uy(e,r,o,n),e.min=(...r)=>e.check(Un(...r)),e.nonempty=r=>e.check(Un(1,r)),e.max=(...r)=>e.check(Lr(...r)),e.size=(...r)=>e.check(mo(...r))});function D0(e,t){return new lh({type:"set",valueType:e,...E.normalizeParams(t)})}var Pi=b("ZodEnum",(e,t)=>{Dg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,n,i)=>ey(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Pi({...t,checks:[],...E.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Pi({...t,checks:[],...E.normalizeParams(n),entries:i})}});function Nu(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Pi({type:"enum",entries:r,...E.normalizeParams(t)})}function N0(e,t){return new Pi({type:"enum",entries:e,...E.normalizeParams(t)})}var sh=b("ZodLiteral",(e,t)=>{Ng.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ty(e,r,o,n),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 L0(e,t){return new sh({type:"literal",values:Array.isArray(e)?e:[e],...E.normalizeParams(t)})}var ch=b("ZodFile",(e,t)=>{Lg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>oy(e,r,o,n),e.min=(r,o)=>e.check(Un(r,o)),e.max=(r,o)=>e.check(Lr(r,o)),e.mime=(r,o)=>e.check(yi(Array.isArray(r)?r:[r],o))});function F0(e){return Ov(ch,e)}var uh=b("ZodTransform",(e,t)=>{Fg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sy(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Cr(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(E.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(E.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function Lu(e){return new uh({type:"transform",transform:e})}var Fu=b("ZodOptional",(e,t)=>{zc.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>au(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function sl(e){return new Fu({type:"optional",innerType:e})}var dh=b("ZodExactOptional",(e,t)=>{Ag.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>au(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function ph(e){return new dh({type:"optional",innerType:e})}var fh=b("ZodNullable",(e,t)=>{Ug.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>vy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function cl(e){return new fh({type:"nullable",innerType:e})}function A0(e){return sl(cl(e))}var mh=b("ZodDefault",(e,t)=>{Wg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>hy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function gh(e,t){return new mh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():E.shallowClone(t)}})}var vh=b("ZodPrefault",(e,t)=>{Mg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function yh(e,t){return new vh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():E.shallowClone(t)}})}var Au=b("ZodNonOptional",(e,t)=>{Bg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>yy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function hh(e,t){return new Au({type:"nonoptional",innerType:e,...E.normalizeParams(t)})}var xh=b("ZodSuccess",(e,t)=>{Zg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>iy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function U0(e){return new xh({type:"success",innerType:e})}var bh=b("ZodCatch",(e,t)=>{Vg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>by(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Sh(e,t){return new bh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var kh=b("ZodNaN",(e,t)=>{Hg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ny(e,r,o,n)});function W0(e){return Tv(kh,e)}var vl=b("ZodPipe",(e,t)=>{Pc.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Sy(e,r,o,n),e.in=t.in,e.out=t.out});function gu(e,t){return new vl({type:"pipe",in:e,out:t})}var yl=b("ZodCodec",(e,t)=>{vl.init(e,t),el.init(e,t)});function M0(e,t,r){return new yl({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function B0(e){let t=e._zod.def;return new yl({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var _h=b("ZodPreprocess",(e,t)=>{vl.init(e,t),Jg.init(e,t)}),$h=b("ZodReadonly",(e,t)=>{Gg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ky(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function wh(e){return new $h({type:"readonly",innerType:e})}var zh=b("ZodTemplateLiteral",(e,t)=>{Xg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ry(e,r,o,n)});function Z0(e,t){return new zh({type:"template_literal",parts:e,...E.normalizeParams(t)})}var Ph=b("ZodLazy",(e,t)=>{qg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$y(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function Ih(e){return new Ph({type:"lazy",getter:e})}var Eh=b("ZodPromise",(e,t)=>{Yg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_y(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function V0(e){return new Eh({type:"promise",innerType:e})}var Rh=b("ZodFunction",(e,t)=>{Kg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ly(e,r,o,n)});function H0(e){return new Rh({type:"function",input:Array.isArray(e?.input)?oh(e?.input):e?.input??fl(yo()),output:e?.output??yo()})}var hl=b("ZodCustom",(e,t)=>{Qg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ay(e,r,o,n)});function J0(e){let t=new Ie({check:"custom"});return t._zod.check=e,t}function G0(e,t){return Dv(hl,e??(()=>!0),t)}function Ch(e,t={}){return Nv(hl,e,t)}function Th(e,t){return Lv(e,t)}var X0=Fv,K0=Av;function Y0(e,t={}){let r=new hl({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...E.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var q0=(...e)=>Uv({Codec:yl,Boolean:Ci,String:Ii},...e);function Q0(e){let t=Ih(()=>Du([al(e),My(),By(),Jy(),fl(t),ih(al(),t)]));return t}function e1(e,t){return new _h({type:"pipe",in:Lu(e),out:t})}var XR={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 KR(e){Me({customError:e})}function YR(){return Me().customError}var jh;jh||(jh={});var W={...il,...cu,iso:wi},qR=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 QR(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function eC(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function t1(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return W.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 n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return W.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=eC(n,t),a=yt(i,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return W.null();if(n.length===0)return W.never();if(n.length===1)return W.literal(n[0]);if(n.every(a=>typeof a=="string"))return W.enum(n);let i=n.map(a=>W.literal(a));return i.length<2?i[0]:W.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return W.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return t1(a,t)});return n.length===0?W.never():n.length===1?n[0]:W.union(n)}if(!r)return W.any();let o;switch(r){case"string":{let n=W.string();if(e.format){let i=e.format;i==="email"?n=n.check(W.email()):i==="uri"||i==="uri-reference"?n=n.check(W.url()):i==="uuid"||i==="guid"?n=n.check(W.uuid()):i==="date-time"?n=n.check(W.iso.datetime()):i==="date"?n=n.check(W.iso.date()):i==="time"?n=n.check(W.iso.time()):i==="duration"?n=n.check(W.iso.duration()):i==="ipv4"?n=n.check(W.ipv4()):i==="ipv6"?n=n.check(W.ipv6()):i==="mac"?n=n.check(W.mac()):i==="cidr"?n=n.check(W.cidrv4()):i==="cidr-v6"?n=n.check(W.cidrv6()):i==="base64"?n=n.check(W.base64()):i==="base64url"?n=n.check(W.base64url()):i==="e164"?n=n.check(W.e164()):i==="jwt"?n=n.check(W.jwt()):i==="emoji"?n=n.check(W.emoji()):i==="nanoid"?n=n.check(W.nanoid()):i==="cuid"?n=n.check(W.cuid()):i==="cuid2"?n=n.check(W.cuid2()):i==="ulid"?n=n.check(W.ulid()):i==="xid"?n=n.check(W.xid()):i==="ksuid"&&(n=n.check(W.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?W.number().int():W.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=W.boolean();break}case"null":{o=W.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[s,c]of Object.entries(i)){let d=yt(c,t);n[s]=a.has(s)?d:d.optional()}if(e.propertyNames){let s=yt(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?yt(e.additionalProperties,t):W.any();if(Object.keys(n).length===0){o=W.record(s,c);break}let d=W.object(n).passthrough(),p=W.looseRecord(s,c);o=W.intersection(d,p);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),d=[];for(let f of c){let g=yt(s[f],t),x=W.string().regex(new RegExp(f));d.push(W.looseRecord(x,g))}let p=[];if(Object.keys(n).length>0&&p.push(W.object(n).passthrough()),p.push(...d),p.length===0)o=W.object({}).passthrough();else if(p.length===1)o=p[0];else{let f=W.intersection(p[0],p[1]);for(let g=2;g<p.length;g++)f=W.intersection(f,p[g]);o=f}break}let l=W.object(n);e.additionalProperties===!1?o=l.strict():typeof e.additionalProperties=="object"?o=l.catchall(yt(e.additionalProperties,t)):o=l.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(s=>yt(s,t)),l=i&&typeof i=="object"&&!Array.isArray(i)?yt(i,t):void 0;l?o=W.tuple(a).rest(l):o=W.tuple(a),typeof e.minItems=="number"&&(o=o.check(W.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(W.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(s=>yt(s,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?yt(e.additionalItems,t):void 0;l?o=W.tuple(a).rest(l):o=W.tuple(a),typeof e.minItems=="number"&&(o=o.check(W.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(W.maxLength(e.maxItems)))}else if(i!==void 0){let a=yt(i,t),l=W.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),o=l}else o=W.array(W.any());break}default:throw new Error(`Unsupported type: ${r}`)}return o}function yt(e,t){if(typeof e=="boolean")return e?W.any():W.never();let r=t1(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(c=>yt(c,t)),s=W.union(l);r=o?W.intersection(r,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(c=>yt(c,t)),s=W.xor(l);r=o?W.intersection(r,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:W.any();else{let l=o?r:yt(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)l=W.intersection(l,yt(e.allOf[c],t));r=l}e.nullable===!0&&t.version==="openapi-3.0"&&(r=W.nullable(r)),e.readOnly===!0&&(r=W.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of i)l in e&&(n[l]=e[l]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let l of a)l in e&&(n[l]=e[l]);for(let l of Object.keys(e))qR.has(l)||(n[l]=e[l]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function n1(e,t){if(typeof e=="boolean")return e?W.any():W.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=QR(r,t?.defaultTarget),n=r.$defs||r.definitions||{},i={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??ct};return yt(r,i)}var Oh={};Gn(Oh,{bigint:()=>oC,boolean:()=>rC,date:()=>iC,number:()=>nC,string:()=>tC});function tC(e){return rv(Ii,e)}function nC(e){return dv(Ri,e)}function rC(e){return hv(Ci,e)}function oC(e){return bv(Ti,e)}function iC(e){return Cv(pl,e)}Me(Ic());var Uu=Object.freeze({savings:{status:"absent",measuredCents:0,modeledCents:0,assumption:{kind:"",assumptionText:"",signedOff:!1},blendedCentsPerMtok:null},infra:{status:"absent",cents:0,costBasis:"none"},pollination:{status:"absent",cents:0,lines:[]},net:{status:"absent",computed:!1,netCents:0,modeled:!0,costBasis:"none"},rollups:[],perUserAvailable:!1,scopedAcrossDevices:!1,ratesAsOf:""}),Wu=Object.freeze({status:"absent",series:[],startedAt:""});function aC(e){let t=e.split("/").pop()??e,r=t.lastIndexOf(".");if(r>0&&r<t.length-1)return t.slice(r+1).toLowerCase();let o=e.split("/").find(n=>n!=="");return o!==void 0&&o!==""?o.toLowerCase():"file"}function r1(e){let t=Object.entries(e.files).map(([o,n])=>({id:o,label:n.path,kind:aC(n.path)})),r=Object.entries(e.derived).map(([o,n])=>({from:o,to:n.from_nectar,kind:"derived_from"}));return{built:t.length>0,nodes:t,edges:r}}var X=Object.freeze({kpis:"/api/diagnostics/kpis",sessions:"/api/diagnostics/sessions",settings:"/api/diagnostics/settings",rules:"/api/diagnostics/rules",skills:"/api/diagnostics/skills",graph:"/api/graph",graphBuild:"/api/graph/build",hiveGraphSearch:"/api/hive-graph/search",hiveGraphStatus:"/api/hive-graph/status",hiveGraphProjection:"/api/hive-graph/projection",hiveGraphBuild:"/api/hive-graph/build",memoryGraph:"/api/diagnostics/memory-graph",recall:"/api/memories/recall",memories:"/api/memories",compact:"/api/diagnostics/compact",lifecycleConflicts:"/api/memories/conflicts",lifecycleStaleRefs:"/api/memories/stale-refs",lifecycleHistory:"/api/memories/history",calibration:"/api/memories/calibration",logs:"/api/logs",logsStream:"/api/logs/stream",harnesses:"/api/diagnostics/harnesses",assets:"/api/diagnostics/assets",syncAction:"/api/diagnostics/sync",health:"/health",pollinate:"/api/diagnostics/pollinate",vaultSettings:"/api/settings",secrets:"/api/secrets",authStatus:"/api/auth/status",setupState:"/setup/state",setupLogin:"/setup/login",setupMigrate:"/setup/migrate-from-hivemind",setupMigrateRollback:"/setup/migrate-from-hivemind/rollback",scopeOrgs:"/api/diagnostics/scope/orgs",scopeWorkspaces:"/api/diagnostics/scope/workspaces",scopeProjects:"/api/diagnostics/scope/projects",fsBrowse:"/api/diagnostics/fs/browse",projectsBind:"/api/diagnostics/projects/bind",projectsBindExisting:"/api/diagnostics/projects/bind-existing",projectsUnbind:"/api/diagnostics/projects/unbind",scopeOrgSwitch:"/api/diagnostics/scope/org-switch",scopeWorkspaceSwitch:"/api/diagnostics/scope/workspace-switch",roi:"/api/diagnostics/roi",roiTrend:"/api/diagnostics/roi/trend",actionsLogout:"/api/actions/logout",actionsEmbeddings:"/api/actions/embeddings",actionsRestart:"/api/actions/restart",actionsUninstall:"/api/actions/uninstall"}),lC="x-honeycomb-project";function xo(e){return e!==void 0&&e!==""?{[lC]:e}:{}}function Dh(e){return e!==void 0&&e!==""?`?project=${encodeURIComponent(e)}`:""}var sC=50,cC=u.object({memoryCount:u.number().catch(0),sessionCount:u.number().catch(0),turnCount:u.number().catch(0),estimatedSavings:u.number().catch(0),teamSkillCount:u.number().catch(0)}),f1=u.object({sessionId:u.string().catch(""),project:u.string().catch(""),startedAt:u.string().catch(""),eventCount:u.number().catch(0),status:u.string().catch("captured")}),uC=u.object({sessions:u.array(f1).catch([])}),dC=u.object({orgId:u.string().catch(""),orgName:u.string().catch(""),workspace:u.string().catch(""),settings:u.record(u.string(),u.string()).catch({})}),pC=u.object({id:u.string().catch(""),label:u.string().catch(""),kind:u.string().catch("")}),fC=u.object({from:u.string().catch(""),to:u.string().catch(""),kind:u.string().catch("")}),mC=u.object({totalNodes:u.number().catch(0),totalEdges:u.number().catch(0),shownNodes:u.number().catch(0),shownEdges:u.number().catch(0),truncated:u.boolean().catch(!1)}),o1=u.object({built:u.boolean().catch(!1),nodes:u.array(pC).catch([]),edges:u.array(fC).catch([]),meta:mC.optional().catch(void 0)}),gC=u.object({id:u.string().catch(""),title:u.string().catch(""),active:u.boolean().catch(!1)}),vC=u.object({rules:u.array(gC).catch([])}),yC=u.object({name:u.string().catch(""),scope:u.string().catch(""),syncState:u.string().catch("pending")}),hC=u.object({skills:u.array(yC).catch([])}),Mn=u.number().int().catch(0),Lh=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("absent"),m1=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("unreachable"),Fh=u.enum(["measured","allocated","none"]).catch("none"),xC=u.object({kind:u.string().catch(""),assumptionText:u.string().catch(""),signedOff:u.boolean().catch(!1)}),bC=u.object({status:Lh,measuredCents:Mn,modeledCents:Mn,assumption:xC.catch({kind:"",assumptionText:"",signedOff:!1}),blendedCentsPerMtok:u.number().int().nullable().catch(null)}),SC=u.object({status:m1,cents:Mn,costBasis:Fh}),kC=u.object({label:u.string().catch(""),cents:Mn}),_C=u.object({status:m1,cents:Mn,lines:u.array(kC).catch([])}),$C=u.object({status:Lh,computed:u.boolean().catch(!1),netCents:Mn,modeled:u.boolean().catch(!0),costBasis:Fh}),wC=u.object({key:u.string().catch(""),label:u.string().catch(""),measuredSavingsCents:Mn,netCents:Mn,infraCostCents:Mn,costBasis:Fh,sessions:u.number().int().catch(0)}),zC=u.object({dimension:u.enum(["org","team","agent","project"]).catch("org"),rows:u.array(wC).catch([]),mixedBasis:u.boolean().catch(!1)}),PC=u.object({savings:bC.catch({status:"absent",measuredCents:0,modeledCents:0,assumption:{kind:"",assumptionText:"",signedOff:!1},blendedCentsPerMtok:null}),infra:SC.catch({status:"unreachable",cents:0,costBasis:"none"}),pollination:_C.catch({status:"unreachable",cents:0,lines:[]}),net:$C.catch({status:"absent",computed:!1,netCents:0,modeled:!0,costBasis:"none"}),rollups:u.array(zC).catch([]),perUserAvailable:u.boolean().catch(!1),scopedAcrossDevices:u.boolean().catch(!1),ratesAsOf:u.string().catch("")}),IC=u.object({period:u.string().catch(""),cents:Mn}),EC=u.object({label:u.string().catch(""),modeled:u.boolean().catch(!1),points:u.array(IC).catch([])}),RC=u.object({status:Lh,series:u.array(EC).catch([]),startedAt:u.string().catch("")}),i1=u.object({assetType:u.enum(["skill","agent"]).catch("skill"),name:u.string().catch(""),description:u.string().catch(""),state:u.enum(["local","pulled","shared"]).catch("local"),scope:u.string().catch(""),sourceHarness:u.string().catch(""),tier:u.string().catch(""),style:u.string().catch(""),version:u.number().catch(0),honeycombId:u.string().catch(""),authoredByMe:u.boolean().catch(!1)}),CC=u.object({skills:u.array(i1).catch([]),agents:u.array(i1).catch([])}),TC=u.object({ok:u.boolean().catch(!1),action:u.enum(["promote","pull","demote","enable","disable"]).catch("promote"),assetType:u.enum(["skill","agent"]).catch("skill"),honeycombId:u.string().catch(""),state:u.enum(["local","pulled","shared",""]).catch(""),version:u.number().catch(0)}),Mu=Object.freeze({skills:[],agents:[]}),jC=u.object({source:u.string().catch(""),id:u.string().catch(""),text:u.string().catch(""),score:u.number().catch(0),kind:u.enum(["memory","session"]).catch("memory"),secondary:u.boolean().catch(!1)}),OC=u.object({hits:u.array(jC).catch([]),sources:u.array(u.string()).catch([]),degraded:u.boolean().catch(!0)}),g1=u.object({id:u.string().catch(""),type:u.string().catch(""),content:u.string().catch(""),confidence:u.number().catch(0),agentId:u.string().catch(""),createdAt:u.string().catch(""),updatedAt:u.string().catch(""),visibility:u.string().catch(""),sourceType:u.string().catch(""),sourceId:u.string().catch(""),version:u.number().catch(0),hasEmbedding:u.boolean().catch(!1)}),DC=u.object({memories:u.array(g1).catch([])}),NC=u.object({memory:g1}),LC=u.object({id:u.string().nullable().catch(null),action:u.string().catch("")}),a1=u.object({id:u.string().nullable().catch(null),action:u.string().catch(""),audited:u.boolean().catch(!1)}),FC=u.object({table:u.string().catch(""),keysScanned:u.number().catch(0),keysCompacted:u.number().catch(0),rowsReaped:u.number().catch(0),keysSkipped:u.number().catch(0),errored:u.number().catch(0)}),AC=u.object({ok:u.boolean().catch(!1),summaries:u.array(FC).catch([]),skippedTables:u.array(u.string()).catch([])}),UC=u.object({id:u.string().catch(""),memoryAId:u.string().catch(""),memoryBId:u.string().catch(""),verdict:u.string().catch("review"),winnerId:u.string().nullable().catch(null),status:u.string().catch("open"),contraScore:u.number().catch(0)}),WC=u.object({conflicts:u.array(UC).catch([]),status:u.string().catch("open")}),MC=u.object({memoryId:u.string().catch(""),refStatus:u.string().catch("stale"),staleRefs:u.array(u.string()).catch([]),verifiedAt:u.string().nullable().catch(null)}),BC=u.object({staleRefs:u.array(MC).catch([])}),ZC=u.object({id:u.string().catch(""),memoryId:u.string().catch(""),actor:u.string().catch("pipeline"),operation:u.string().catch(""),reason:u.string().catch(""),confidence:u.number().catch(0),timestamp:u.string().catch("")}),VC=u.object({history:u.array(ZC).catch([]),type:u.string().catch("lifecycle")}),HC=u.object({lower:u.number().catch(0),upper:u.number().catch(0),meanConfidence:u.number().catch(0),accuracy:u.number().catch(0),count:u.number().catch(0)}),JC=u.object({ece:u.number().catch(0),brier:u.number().catch(0),nSamples:u.number().catch(0),fitAt:u.string().nullable().catch(null),identity:u.boolean().catch(!0),reliabilityDiagram:u.array(HC).catch([])}),Bu=Object.freeze({ece:0,brier:0,nSamples:0,fitAt:null,identity:!0,reliabilityDiagram:[]}),Ah=u.object({time:u.string().catch(""),method:u.string().catch(""),path:u.string().catch(""),status:u.number().catch(0),durationMs:u.number().optional(),mode:u.string().optional(),org:u.string().optional(),workspace:u.string().optional()}),GC=u.object({records:u.array(Ah).catch([]),count:u.number().catch(0)}),XC=u.object({records:u.array(Ah).catch([]),count:u.number().catch(0),nextCursor:u.string().nullable().catch(null),persistent:u.boolean().catch(!1)}),KC=u.object({sessions:u.array(f1).catch([]),nextCursor:u.string().nullable().catch(null)}),YC=u.object({kind:u.string().catch(""),binary:u.string().catch(""),fallbackBin:u.string().optional()}),qC=u.object({bin:u.string().catch(""),args:u.array(u.string()).catch([]),fallbackBin:u.string().optional()}),QC=u.object({name:u.string().catch(""),runtimePath:u.string().catch(""),contextChannel:u.string().catch(""),hostCli:qC.catch({bin:"",args:[]}),lifecycleEvents:u.array(u.string()).catch([]),agents:YC.optional(),workspaceRoots:u.boolean().optional(),mcpRegistration:u.boolean().optional(),contractedTools:u.boolean().optional(),agentsMdContext:u.boolean().optional(),userVisibleLogin:u.boolean().optional()}),eT=u.object({name:u.string().catch(""),installed:u.boolean().catch(!1),active:u.boolean().catch(!1),lastSeen:u.string().nullable().catch(null),turnsCaptured:u.number().catch(0),runtimePath:u.string().catch(""),capabilities:QC.catch({name:"",runtimePath:"",contextChannel:"",hostCli:{bin:"",args:[]},lifecycleEvents:[]})}),tT=u.object({harnesses:u.array(eT).catch([])}),nT=u.object({triggered:u.boolean().catch(!1),status:u.string().catch("skipped"),reason:u.string().optional()}),rT=u.object({built:u.boolean().catch(!1),nodeCount:u.number().catch(0),edgeCount:u.number().catch(0),fileCount:u.number().catch(0)}),Nh=Object.freeze({built:!1,nodeCount:0,edgeCount:0,fileCount:0}),oT=u.object({source:u.literal("nectar").catch("nectar"),id:u.string().catch(""),path:u.string().catch(""),title:u.string().catch(""),body:u.string().catch(""),concepts:u.string().catch(""),content_hash:u.string().catch("")}),iT=u.object({hits:u.array(oT).catch([]),sources:u.array(u.literal("nectar")).catch([]),degraded:u.boolean().catch(!0)}),aT=u.object({pending:u.number().catch(0),described:u.number().catch(0),failed:u.number().catch(0),"skipped-too-large":u.number().catch(0),"skipped-binary":u.number().catch(0),"skipped-deleted":u.number().catch(0)}),lT=u.object({queueDepth:u.number().catch(0),describeStatus:aT.catch({pending:0,described:0,failed:0,"skipped-too-large":0,"skipped-binary":0,"skipped-deleted":0}),costSpentUsd:u.number().catch(0),degraded:u.boolean().catch(!0)}),ji=Object.freeze({queueDepth:0,describeStatus:{pending:0,described:0,failed:0,"skipped-too-large":0,"skipped-binary":0,"skipped-deleted":0},costSpentUsd:0,degraded:!0}),sT=u.object({content_hash:u.string().catch(""),path:u.string().catch(""),title:u.string().catch(""),description:u.string().catch(""),concepts:u.array(u.string()).catch([]),describe_model:u.string().catch(""),described_at:u.string().catch("")}),cT=u.object({from_nectar:u.string().catch(""),fork_content_hash:u.string().catch("")}),uT=u.object({version:u.number().catch(0),generated_at:u.string().catch(""),generator:u.string().catch(""),project:u.object({org_id:u.string().catch(""),workspace_id:u.string().catch(""),project_id:u.string().catch("")}).catch({org_id:"",workspace_id:"",project_id:""}),files:u.record(u.string(),sT).catch({}),derived:u.record(u.string(),cT).catch({})}),l1=Object.freeze({state:"failed",message:"Build failed"}),s1=12e4,dT=u.object({ok:u.boolean().catch(!1)}),pT=u.object({ok:u.boolean(),enabled:u.boolean()}),fT=u.object({ok:u.boolean().catch(!1),restarting:u.boolean().catch(!1)}),mT=u.object({ok:u.boolean().catch(!1),harnesses:u.array(u.string()).catch([]),removed:u.boolean().catch(!1),command:u.string().catch("honeycomb uninstall"),note:u.string().catch("")}),gT=u.object({storage:u.enum(["reachable","unreachable"]).catch("reachable"),embeddings:u.enum(["on","off"]).catch("on"),schema:u.enum(["ok","missing_table"]).catch("ok"),portkey:u.enum(["off","ok","unconfigured","unreachable"]).catch("off")}),vT=u.object({status:u.string().catch("ok"),reasons:gT.optional()}),yT=u.object({id:u.string().catch(""),label:u.string().catch(""),models:u.array(u.string()).catch([]),openEnded:u.boolean().catch(!1)}),hT=u.union([u.string(),u.number(),u.boolean()]).catch(""),xT=u.object({settings:u.record(u.string(),hT).catch({}),catalog:u.array(yT).catch([])}),bT=u.object({names:u.array(u.string()).catch([])}),xl=Object.freeze({settings:{},catalog:[]}),ST=u.object({connected:u.boolean().catch(!1),orgId:u.string().catch(""),orgName:u.string().catch(""),workspace:u.string().catch(""),agentId:u.string().catch(""),source:u.enum(["env","file","none"]).catch("none"),savedAt:u.string().catch(""),expiresAt:u.number().optional()}),Uh=Object.freeze({connected:!1,orgId:"",orgName:"",workspace:"",agentId:"",source:"none",savedAt:""}),kT=u.object({deeplake:u.boolean().catch(!1),honeycomb:u.boolean().catch(!1),hivemind:u.boolean().catch(!1)}),_T=u.object({enabled:u.boolean().catch(!1),live:u.boolean().catch(!1),warm:u.boolean().catch(!1)}),$T=u.object({credentials:kT.catch({deeplake:!1,honeycomb:!1,hivemind:!1}),phase:u.enum(["fresh","installed","linking","linked","migrating","migrated"]).catch("fresh"),priorTool:u.object({hivemind:u.enum(["absent","present","migrated"]).catch("absent")}).catch({hivemind:"absent"}),firstTimeSetupComplete:u.boolean().catch(!1),authenticated:u.boolean().catch(!1),warmup:_T.catch({enabled:!1,live:!1,warm:!1}),migration:u.object({phase:u.enum(["backup","uninstall","link","done","rolled_back"]).catch("backup"),startedAt:u.string().catch(""),backupPath:u.string().optional()}).optional()}),Wh=Object.freeze({credentials:{deeplake:!1,honeycomb:!1,hivemind:!1},phase:"fresh",priorTool:{hivemind:"absent"},firstTimeSetupComplete:!1,authenticated:!1,warmup:{enabled:!1,live:!1,warm:!1}}),wT=u.object({user_code:u.string().catch(""),verification_uri:u.string().catch(""),verification_uri_complete:u.string().optional()}),zT=u.object({ok:u.boolean().catch(!1),phase:u.enum(["backup","uninstall","link","done","rolled_back"]).catch("backup"),message:u.string().catch(""),backupPath:u.string().optional(),needsLogin:u.boolean().optional(),migrated:u.boolean().optional()}),PT=Object.freeze({ok:!1,phase:"backup",message:"Migration is unavailable right now. Retry, or run the uninstall + `honeycomb login` in your terminal."}),IT=u.object({ok:u.boolean().catch(!1),phase:u.literal("rolled_back").catch("rolled_back"),message:u.string().catch("")}),ET=Object.freeze({ok:!1,phase:"rolled_back",message:"Rollback is unavailable right now. Retry."}),RT=u.object({id:u.string().catch(""),name:u.string().catch("")}),CT=u.object({orgs:u.array(RT).catch([])}),TT=u.object({id:u.string().catch(""),name:u.string().catch("")}),jT=u.object({workspaces:u.array(TT).catch([]),org:u.string().catch(""),reminted:u.boolean().catch(!1)}),OT=u.object({projectId:u.string().catch(""),name:u.string().catch(""),boundLocally:u.boolean().catch(!1),boundPaths:u.array(u.string()).catch([]),remote:u.string().catch(""),memoryCount:u.number().catch(0),sessionCount:u.number().catch(0),lastCapture:u.string().nullable().catch(null)}),DT=u.object({projects:u.array(OT).catch([]),org:u.string().catch(""),workspace:u.string().catch("")}),NT=u.object({name:u.string().catch(""),path:u.string().catch(""),isGitRepo:u.boolean().catch(!1)}),LT=u.object({path:u.string().catch(""),root:u.string().catch(""),parent:u.string().nullable().catch(null),children:u.array(NT).catch([]),error:u.string().optional()}),Mh=Object.freeze({path:"",root:"",parent:null,children:[]}),c1=u.object({bound:u.boolean().catch(!1),path:u.string().catch(""),projectId:u.string().catch(""),error:u.string().optional()}),u1=Object.freeze({bound:!1,path:"",projectId:"",error:"unavailable"}),FT=u.object({unbound:u.boolean().catch(!1),path:u.string().catch("")}),AT=Object.freeze({unbound:!1,path:""}),UT=u.object({switched:u.boolean().catch(!1),org:u.string().catch(""),orgName:u.string().optional(),reminted:u.boolean().catch(!1),error:u.string().optional()}),WT=Object.freeze({switched:!1,org:"",reminted:!1,error:"unavailable"}),MT=u.object({switched:u.boolean().catch(!1),workspace:u.string().catch(""),error:u.string().optional()}),BT=Object.freeze({switched:!1,workspace:"",error:"unavailable"}),Jt=Object.freeze({"x-honeycomb-runtime-path":"plugin","x-honeycomb-session":"dashboard-web"});async function Pe(e,t,r,o={}){try{let n=await e(t,{headers:{accept:"application/json",...Jt,...o}});if(!n.ok)return null;let i=await n.json(),a=r.safeParse(i);return a.success?a.data:null}catch{return null}}async function ut(e,t,r,o){try{let n=await e(t,{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Jt},body:JSON.stringify(r)});if(!n.ok)return null;let i=o.safeParse(await n.json());return i.success?i.data:null}catch{return null}}function ZT(e){return e==="memories"?"team":e==="memory"?"org":"session"}var d1=280;function VT(e){if(typeof e!="object"||e===null)return"";let t=e;for(let r of["file_path","path","command","pattern","query","url","prompt","description"]){let o=t[r];if(typeof o=="string"&&o.trim()!=="")return o.trim()}return""}function HT(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null)return null;let r=t,o=l=>typeof l=="string"?l.trim():"",n=o(r.kind)||o(r.type),i=o(r.tool)||o(r.tool_name),a=o(r.text)||o(r.prompt)||o(r.message);if(n.startsWith("assistant")&&a!=="")return`assistant: ${a}`;if(n.startsWith("user")&&a!=="")return`user: ${a}`;if(i!==""||n==="tool_call"){let l=VT(r.input??r.tool_input),s=i!==""?i:"tool";return l!==""?`${s} \xB7 ${l}`:s}return a!==""?a:null}function JT(e,t){let r=e.trim(),o=r;if(t==="session"||r.startsWith("{")||r.startsWith("[")){let n=HT(r);n!==null&&(o=n)}return o=o.replace(/\s+/g," ").trim(),o.length<=d1?o:`${o.slice(0,d1-1).trimEnd()}\u2026`}var Bh={memoryCount:0,sessionCount:0,turnCount:0,estimatedSavings:0,teamSkillCount:0},Zh={orgId:"",orgName:"",workspace:"",settings:{}},$n={built:!1,nodes:[],edges:[]},bo=1500,p1=5e3;function bl(e,t){let r=e.nodes.length>t,o=e.edges.length>p1;if(!r&&!o)return{graph:e,capped:!1};let n=r?e.nodes.slice(0,t):e.nodes,i=new Set(n.map(l=>l.id)),a=[];for(let l of e.edges)if(!(!i.has(l.from)||!i.has(l.to))&&(a.push(l),a.length>=p1))break;return{graph:{...e,nodes:n,edges:a},capped:!0}}var Vh=Object.freeze({records:[],count:0,nextCursor:null,persistent:!1}),GT=Object.freeze({sessions:[],nextCursor:null});function XT(e){let t=[],r=(o,n)=>{n===void 0||n===""||t.push(`${o}=${encodeURIComponent(String(n))}`)};return r("since",e.since),r("until",e.until),r("status",e.status),r("path",e.path),r("org",e.org),r("limit",e.limit),r("cursor",e.cursor),t.length>0?`?${t.join("&")}`:""}function Zu(e={}){let t=e.origin??"",r=e.fetchImpl??fetch,o=n=>`${t}${n}`;return{async kpis(n){return await Pe(r,o(X.kpis),cC,xo(n))??Bh},async sessions(){return(await Pe(r,o(X.sessions),uC))?.sessions??[]},async settings(){return await Pe(r,o(X.settings),dC)??Zh},async rules(){return(await Pe(r,o(X.rules),vC))?.rules??[]},async skills(){return(await Pe(r,o(X.skills),hC))?.skills??[]},async graph(n){return await Pe(r,o(X.graph),o1,xo(n))??$n},async memoryGraph(n){return await Pe(r,o(X.memoryGraph),o1,xo(n))??$n},async roi(n){return await Pe(r,o(X.roi),PC,xo(n))??Uu},async roiTrend(n,i){let a=n!==""?`?range=${encodeURIComponent(n)}`:"";return await Pe(r,o(`${X.roiTrend}${a}`),RC,xo(i))??Wu},async recall(n,i){try{let a=await r(o(X.recall),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Jt,...xo(i)},body:JSON.stringify({query:n})});if(!a.ok)return{memories:[],degraded:!0};let l=OC.safeParse(await a.json());return l.success?{memories:l.data.hits.map((c,d)=>({memoryKey:c.id!==""?c.id:`hit-${d+1}`,snippet:JT(c.text,c.kind),source:c.source,score:c.score,scope:ZT(c.source),verified:c.source==="memories",kind:c.kind,secondary:c.secondary})),degraded:l.data.degraded}:{memories:[],degraded:!0}}catch{return{memories:[],degraded:!0}}},async listMemories(n=sC,i){return(await Pe(r,o(`${X.memories}?limit=${n}`),DC,xo(i)))?.memories??[]},async getMemory(n){return(await Pe(r,o(`${X.memories}/${encodeURIComponent(n)}`),NC))?.memory??null},async addMemory(n){let i={content:n.content};return n.type!==void 0&&(i.type=n.type),n.agentId!==void 0&&(i.agentId=n.agentId),ut(r,o(X.memories),i,LC)},async modifyMemory(n,i){let a={content:i.content,reason:i.reason};return i.agentId!==void 0&&(a.agentId=i.agentId),ut(r,o(`${X.memories}/${encodeURIComponent(n)}/modify`),a,a1)},async forgetMemory(n,i){return ut(r,o(`${X.memories}/${encodeURIComponent(n)}/forget`),{reason:i.reason},a1)},async compact(n){let i=n!==void 0&&n!==""?{table:n}:{};return ut(r,o(X.compact),i,AC)},async lifecycleConflicts(n="open"){return(await Pe(r,o(`${X.lifecycleConflicts}?status=${encodeURIComponent(n)}`),WC))?.conflicts??[]},async resolveConflict(n,i){try{let a={verdict:i.verdict};return i.winnerId!==void 0&&i.winnerId!==""&&(a.winnerId=i.winnerId),i.reason!==void 0&&i.reason!==""&&(a.reason=i.reason),(await r(o(`${X.lifecycleConflicts}/${encodeURIComponent(n)}/resolve`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Jt},body:JSON.stringify(a)})).ok}catch{return!1}},async lifecycleStaleRefs(){return(await Pe(r,o(X.lifecycleStaleRefs),BC))?.staleRefs??[]},async lifecycleHistory(){return(await Pe(r,o(`${X.lifecycleHistory}?type=lifecycle`),VC))?.history??[]},async calibration(){return await Pe(r,o(X.calibration),JC)??Bu},async logs(n=40){return(await Pe(r,o(`${X.logs}?limit=${n}`),GC))?.records??[]},logsStream(n){let i=globalThis.EventSource;if(i===void 0)return()=>{};let a=null,l=s=>{let c=KT(s.data);c!==null&&n(c)};try{a=new i(o(X.logsStream)),a.addEventListener("log",l)}catch{}return()=>{try{a?.removeEventListener("log",l),a?.close()}catch{}}},async logsHistory(n={}){let i=XT(n);return await Pe(r,o(`${X.logs}/history${i}`),XC)??Vh},async turnsHistory(n={}){let i=[];n.limit!==void 0&&i.push(`limit=${encodeURIComponent(String(n.limit))}`),n.cursor!==void 0&&n.cursor!==""&&i.push(`cursor=${encodeURIComponent(n.cursor)}`);let a=i.length>0?`?${i.join("&")}`:"";return await Pe(r,o(`${X.sessions}${a}`),KC)??GT},async harnesses(){return(await Pe(r,o(X.harnesses),tT))?.harnesses??[]},async assetsView(){return await Pe(r,o(X.assets),CC)??Mu},async syncAction(n,i){let a={assetType:i.assetType,name:i.name};return i.native!==void 0&&(a.native=i.native),i.honeycombId!==void 0&&i.honeycombId!==""&&(a.honeycombId=i.honeycombId),i.harness!==void 0&&i.harness!==""&&(a.harness=i.harness),ut(r,o(`${X.syncAction}/${n}`),a,TC)},async health(){try{let n=await r(o(X.health),{headers:{accept:"application/json",...Jt}}),i=n.ok,a=null;try{let l=await n.json(),s=vT.safeParse(l);a=s.success?s.data.reasons??null:null}catch{a=null}return{up:i,reasons:a}}catch{return{up:!1,reasons:null}}},async pollinate(){try{let n=await r(o(X.pollinate),{method:"POST",headers:{...Jt}}),i=nT.safeParse(await n.json());return i.success?i.data:{triggered:!1,status:"skipped",reason:"unavailable"}}catch{return{triggered:!1,status:"skipped",reason:"unavailable"}}},async buildGraph(){let n=new AbortController,i=setTimeout(()=>n.abort(),s1);try{let a=await r(o(X.graphBuild),{method:"POST",headers:{accept:"application/json",...Jt},signal:n.signal});if(!a.ok)return Nh;let l=rT.safeParse(await a.json());return l.success?l.data:Nh}catch{return Nh}finally{clearTimeout(i)}},async hiveGraphFileGraph(n){try{let i=Dh(n),a=await r(o(`${X.hiveGraphProjection}${i}`),{headers:{accept:"application/json",...Jt}});if(!a.ok)return{graph:$n,files:{},derived:{},unreachable:!0};let l=uT.safeParse(await a.json());return l.success?{graph:r1(l.data),files:l.data.files,derived:l.data.derived,unreachable:!1}:{graph:$n,files:{},derived:{},unreachable:!0}}catch{return{graph:$n,files:{},derived:{},unreachable:!0}}},async hiveGraphSearch(n,i){try{let a=Dh(i),l=await r(o(`${X.hiveGraphSearch}${a}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Jt},body:JSON.stringify({query:n})});if(!l.ok)return{hits:[],sources:[],degraded:!0,unreachable:!0};let s=iT.safeParse(await l.json());return s.success?{...s.data,unreachable:!1}:{hits:[],sources:[],degraded:!0,unreachable:!0}}catch{return{hits:[],sources:[],degraded:!0,unreachable:!0}}},async hiveGraphStatus(n){try{let i=Dh(n),a=await r(o(`${X.hiveGraphStatus}${i}`),{headers:{accept:"application/json",...Jt}});if(!a.ok)return{...ji,unreachable:!0};let l=lT.safeParse(await a.json());return l.success?{...l.data,unreachable:!1}:{...ji,unreachable:!0}}catch{return{...ji,unreachable:!0}}},async hiveGraphBuild(){let n=new AbortController,i=setTimeout(()=>n.abort(),s1);try{let a=await r(o(X.hiveGraphBuild),{method:"POST",headers:{accept:"application/json","content-type":"application/json",...Jt},body:JSON.stringify({}),signal:n.signal}),l=await a.json().catch(()=>({})),s=typeof l=="object"&&l!==null?l:{};return a.status===501&&s.error==="build_unavailable"?{state:"unavailable",message:typeof s.reason=="string"?s.reason:"Build unavailable on this daemon"}:a.status===409&&s.status==="already_running"?{state:"already_running",message:typeof s.message=="string"?s.message:"A brood is already in progress"}:a.ok?{state:"accepted",message:"Build triggered"}:s.error==="build_failed"?{state:"failed",message:typeof s.reason=="string"?s.reason:"Build failed"}:l1}catch{return l1}finally{clearTimeout(i)}},async vaultSettings(){return await Pe(r,o(X.vaultSettings),xT)??xl},async setSetting(n,i){try{return(await r(o(`${X.vaultSettings}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Jt},body:JSON.stringify({value:i})})).ok}catch{return!1}},async secretNames(){return(await Pe(r,o(X.secrets),bT))?.names??[]},async setSecret(n,i){try{return(await r(o(`${X.secrets}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Jt},body:JSON.stringify({value:i})})).ok}catch{return!1}},async logout(){return(await ut(r,o(X.actionsLogout),{},dT))?.ok===!0},async setEmbeddings(n){let i=await ut(r,o(X.actionsEmbeddings),{enabled:n},pT);return i?.ok===!0&&i.enabled===n},async restartDaemon(){return(await ut(r,o(X.actionsRestart),{},fT))?.restarting===!0},async uninstall(){return ut(r,o(X.actionsUninstall),{},mT)},async authStatus(){return await Pe(r,o(X.authStatus),ST)??Uh},async setupState(){return await Pe(r,o(X.setupState),$T)??Wh},async setupLogin(){return ut(r,o(X.setupLogin),{},wT)},async migrateFromHivemind(){return await ut(r,o(X.setupMigrate),{},zT)??PT},async rollbackMigration(){return await ut(r,o(X.setupMigrateRollback),{},IT)??ET},async scopeOrgs(){return(await Pe(r,o(X.scopeOrgs),CT))?.orgs??[]},async scopeWorkspaces(n){let i=n!==void 0&&n!==""?`?org=${encodeURIComponent(n)}`:"";return await Pe(r,o(`${X.scopeWorkspaces}${i}`),jT)??{workspaces:[],org:n??"",reminted:!1}},async scopeProjects(n={}){let i=n.unbound===!0?"?unbound=1":"";return(await Pe(r,o(`${X.scopeProjects}${i}`),DT))?.projects??[]},async fsBrowse(n){let i=n!==void 0&&n!==""?`?path=${encodeURIComponent(n)}`:"";return await Pe(r,o(`${X.fsBrowse}${i}`),LT)??Mh},async bindProject(n){let i={path:n.path};return n.name!==void 0&&n.name!==""&&(i.name=n.name),await ut(r,o(X.projectsBind),i,c1)??u1},async bindExistingProject(n){let i={path:n.path,projectId:n.projectId};return await ut(r,o(X.projectsBindExisting),i,c1)??u1},async unbindProject(n){return await ut(r,o(X.projectsUnbind),{path:n.path},FT)??AT},async switchOrg(n){return await ut(r,o(X.scopeOrgSwitch),{org:n},UT)??WT},async switchWorkspace(n){return await ut(r,o(X.scopeWorkspaceSwitch),{workspace:n},MT)??BT}}}function KT(e){if(typeof e!="string")return null;try{let t=Ah.safeParse(JSON.parse(e));return t.success?t.data:null}catch{return null}}function Wr(e){let t=(e.time||"").slice(11,19)||(e.time||"").slice(0,8),r=e.status>0?` ${e.status}`:"";return`${t} ${e.method} ${e.path}${r}`.trimEnd()}var v1="/api/diagnostics/sync/";function Vu(e){return(e.path??"").startsWith(v1)}function y1(e){let t=(e.path??"").slice(v1.length).split("/")[0]??"";switch(t){case"promote":return"published";case"pull":return"pulled";case"demote":return"tombstoned";case"enable":return"enabled";case"disable":return"disabled";default:return t}}var N=L(H(),1);function te({title:e,eyebrow:t,right:r,children:o,style:n}){return(0,N.jsxs)("section",{style:{background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden",display:"flex",flexDirection:"column",...n},children:[(0,N.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:10,padding:"13px 16px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,N.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:600,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em"},children:e}),t&&(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t}),(0,N.jsx)("span",{style:{flex:1}}),r]}),(0,N.jsx)("div",{style:{padding:16,flex:1},children:o})]})}function Jh({children:e}){return(0,N.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:e})}var kl={cursor:"var(--severity-info)","claude-code":"var(--honey)",codex:"var(--pollinate)",openclaw:"var(--verified)",hermes:"var(--severity-warning)",pi:"var(--severity-critical)"},_l="var(--text-tertiary)",Sl=5;function h1({label:e,onClick:t,disabled:r}){return(0,N.jsx)("button",{type:"button",onClick:t,disabled:r,style:{width:22,height:22,padding:0,background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1,cursor:r?"default":"pointer",opacity:r?.4:1},children:e})}function b1({sessions:e}){let t=e.length,r=Math.max(1,Math.ceil(t/Sl)),[o,n]=Bn.default.useState(0),i=Math.min(o,r-1),a=i*Sl,l=e.slice(a,a+Sl),s=t===0?0:a+1,c=Math.min(a+Sl,t),d=t>Sl?(0,N.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,N.jsx)(h1,{label:"\u2039",onClick:()=>n(p=>Math.max(0,p-1)),disabled:i===0}),(0,N.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap"},children:[s,"\u2013",c," of ",t]}),(0,N.jsx)(h1,{label:"\u203A",onClick:()=>n(p=>Math.min(r-1,p+1)),disabled:i>=r-1})]}):void 0;return(0,N.jsx)(te,{title:"Turns",eyebrow:`${t} captured`,right:d,children:t===0?(0,N.jsx)(Jh,{children:"No turns captured yet."}):(0,N.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:l.map((p,f)=>(0,N.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"84px 1fr auto auto",alignItems:"center",gap:12,padding:"10px 6px",borderTop:f===0?"none":"1px solid var(--border-subtle)"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:p.sessionId}),(0,N.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,N.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--text-tertiary)",flex:"none"}}),(0,N.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:p.project})]}),(0,N.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[p.startedAt,p.eventCount>0?` \xB7 ${p.eventCount}e`:""]}),(0,N.jsx)(Y,{tone:p.status==="summarized"?"verified":"neutral",mono:!0,children:p.status})]},p.sessionId||f))})})}function S1({rules:e}){return(0,N.jsx)(te,{title:"Rules",eyebrow:"org-wide",children:e.length===0?(0,N.jsx)(Jh,{children:"No rules defined."}):(0,N.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map((t,r)=>(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"9px 6px"},children:[(0,N.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:t.active?"var(--verified)":"var(--text-disabled)",flex:"none"}}),(0,N.jsx)("span",{style:{fontSize:14,color:t.active?"var(--text-primary)":"var(--text-tertiary)"},children:t.title}),(0,N.jsx)("span",{style:{flex:1}}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.id})]},t.id||r))})})}var Gh={shared:"verified",synced:"verified",pulled:"honey",pending:"warning",local:"neutral"};function k1({skills:e}){return(0,N.jsx)(te,{title:"Skill-sync",eyebrow:`${e.length} skills`,children:e.length===0?(0,N.jsx)(Jh,{children:"No skills synced."}):(0,N.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:e.map((t,r)=>(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name}),(0,N.jsx)("span",{style:{flex:1}}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.scope}),(0,N.jsx)(Y,{tone:Gh[t.syncState]??"neutral",mono:!0,dot:!0,children:t.syncState})]},t.name||r))})})}var Hu={file:"var(--honey)",function:"var(--severity-info)",class:"var(--pollinate)"},Ju="var(--text-tertiary)";function Mr({lines:e}){return(0,N.jsx)(te,{title:"Live log",right:(0,N.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,N.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"streaming"})]}),children:(0,N.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:e.length===0?(0,N.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for daemon activity\u2026"}):e.map((t,r)=>(0,N.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:r===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:t},r))})})}var Xe=Object.freeze({activeProvider:"activeProvider",activeModel:"activeModel",pollinatingEnabled:"pollinating.enabled",recallMode:"recallMode",portkeyEnabled:"portkey.enabled",portkeyConfig:"portkey.config",portkeyFallbackToProvider:"portkey.fallbackToProvider"}),Di=Object.freeze({anthropic:"ANTHROPIC_API_KEY",openai:"OPENAI_API_KEY",openrouter:"OPENROUTER_API_KEY",cohere:"COHERE_API_KEY",portkey:"PORTKEY_API_KEY"});function x1({value:e,onChange:t,options:r,ariaLabel:o}){return(0,N.jsx)("select",{"aria-label":o,value:e,onChange:n=>t(n.target.value),style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:180},children:r.map(n=>(0,N.jsx)("option",{value:n.value,children:n.label},n.value))})}function Hh({on:e,onToggle:t,ariaLabel:r}){return(0,N.jsxs)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":r,onClick:t,style:{display:"inline-flex",alignItems:"center",gap:8,height:36,padding:"0 14px",background:e?"var(--pollinate-subtle)":"var(--bg-elevated)",border:`1px solid ${e?"var(--pollinate-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:e?"var(--pollinate)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,cursor:"pointer"},children:[(0,N.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:e?"var(--pollinate)":"var(--text-disabled)"}}),e?"on":"off"]})}function Oi({label:e,hint:t,children:r}){return(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,N.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,N.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:e}),t&&(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t})]}),(0,N.jsx)("span",{style:{flex:1}}),r]})}function Gu({catalog:e,settings:t,secretNames:r,onSave:o}){let n=String(t[Xe.activeProvider]??""),i=String(t[Xe.activeModel]??""),a=t[Xe.pollinatingEnabled]===!0||t[Xe.pollinatingEnabled]==="true",l=e.find(h=>h.id===n),[s,c]=Bn.default.useState(i);Bn.default.useEffect(()=>c(i),[i]);let d=[{value:"",label:"\u2014 select \u2014"},...e.map(h=>({value:h.id,label:h.label||h.id}))],p=[{value:"",label:"\u2014 select \u2014"},...(l?.models??[]).map(h=>({value:h,label:h}))],f=h=>{o(Xe.activeProvider,h)},g=h=>{h.length!==0&&o(Xe.activeModel,h)},x=()=>{let h=s.trim();h.length>0&&h!==i&&o(Xe.activeModel,h)};return(0,N.jsx)(te,{title:"Settings",eyebrow:"provider \xB7 model \xB7 pollinating",children:(0,N.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,N.jsxs)(Oi,{label:"Provider",hint:"inference provider",children:[(0,N.jsx)(x1,{ariaLabel:"provider",value:n,onChange:f,options:d}),n.length>0&&(0,N.jsx)(qT,{provider:n,secretNames:r})]}),(0,N.jsx)(Oi,{label:"Model",hint:l?.openEnded?"free-form id":"from catalog",children:l===void 0?(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"pick a provider first"}):l.openEnded?(0,N.jsx)("input",{"aria-label":"model",type:"text",value:s,placeholder:"vendor/model",onChange:h=>c(h.target.value),onBlur:x,onKeyDown:h=>{h.key==="Enter"&&x()},style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:200}}):(0,N.jsx)(x1,{ariaLabel:"model",value:i,onChange:g,options:p})}),(0,N.jsx)(Oi,{label:"Pollinating",hint:"background consolidation",children:(0,N.jsx)(Hh,{ariaLabel:"pollinating",on:a,onToggle:()=>{o(Xe.pollinatingEnabled,!a)}})})]})})}function qT({provider:e,secretNames:t}){let r=Di[e],o=r!==void 0&&t.includes(r);return(0,N.jsx)(Y,{tone:o?"verified":"neutral",mono:!0,dot:!0,children:o?"key set \u2713":"not set"})}function _1({settings:e,secretNames:t,onSaveSetting:r,onSaveKey:o}){let n=e[Xe.portkeyEnabled]===!0||e[Xe.portkeyEnabled]==="true",i=String(e[Xe.portkeyConfig]??""),a=e[Xe.portkeyFallbackToProvider]===!0||e[Xe.portkeyFallbackToProvider]==="true",[l,s]=Bn.default.useState(i);Bn.default.useEffect(()=>s(i),[i]);let[c,d]=Bn.default.useState(""),[p,f]=Bn.default.useState(!1),[g,x]=Bn.default.useState(!1),h=()=>{let y=l.trim();y!==i&&r(Xe.portkeyConfig,y)},_=Bn.default.useCallback(async()=>{let y=c;if(y.length===0){x(!0);return}f(!0),x(!1);let S=await o(y);f(!1),S?d(""):x(!0)},[c,o]),v=Di.portkey??"PORTKEY_API_KEY",m=t.includes(v);return(0,N.jsx)(te,{title:"Portkey gateway",eyebrow:"portkey.enabled \xB7 config \xB7 API key \xB7 fallback",children:(0,N.jsxs)("div",{"data-testid":"portkey-gateway-section",style:{display:"flex",flexDirection:"column",gap:2},children:[(0,N.jsx)(Oi,{label:"Use Portkey gateway",hint:"routes all inference through Portkey",children:(0,N.jsx)(Hh,{ariaLabel:"portkey enabled",on:n,onToggle:()=>{r(Xe.portkeyEnabled,!n)}})}),(0,N.jsx)(Oi,{label:"Portkey config",hint:"config id or virtual key from your Portkey dashboard",children:(0,N.jsx)("input",{"aria-label":"portkey config","data-testid":"portkey-config-input",type:"text",value:l,placeholder:"pk-\u2026",onChange:y=>s(y.target.value),onBlur:h,onKeyDown:y=>{y.key==="Enter"&&h()},style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:240}})}),(0,N.jsxs)("div",{"data-testid":"portkey-key-row",style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",flexWrap:"wrap"},children:[(0,N.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:"Portkey API key"}),(0,N.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,N.jsx)("input",{"aria-label":"portkey api key","data-testid":"portkey-key-input",type:"password",value:c,placeholder:m?"replace key\u2026":"paste key\u2026",onChange:y=>{d(y.target.value),g&&x(!1)},onKeyDown:y=>{y.key==="Enter"&&_()},style:{height:36,padding:"0 10px",width:"100%",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13}})}),(0,N.jsx)("button",{type:"button",disabled:p,"data-testid":"portkey-key-save",onClick:()=>{_()},style:{height:36,padding:"0 14px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,cursor:p?"default":"pointer",opacity:p?.6:1},children:p?"saving\u2026":"Save key"}),(0,N.jsx)(Y,{tone:m?"verified":"neutral",mono:!0,dot:!0,children:m?"key set \u2713":"not set"}),g&&(0,N.jsx)("span",{"data-testid":"portkey-key-rejected",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]}),(0,N.jsx)(Oi,{label:"Fallback to provider",hint:"use per-provider key if Portkey is unreachable",children:(0,N.jsx)(Hh,{ariaLabel:"portkey fallback to provider",on:a,onToggle:()=>{r(Xe.portkeyFallbackToProvider,!a)}})})]})})}function $1({url:e,onRetry:t}){return(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,padding:"14px 18px",background:"var(--severity-critical-bg)",border:"1px solid var(--severity-critical)",borderRadius:"var(--radius-lg)"},children:[(0,N.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:"var(--severity-critical)",flex:"none"}}),(0,N.jsxs)("div",{style:{flex:1},children:[(0,N.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Daemon not reachable"}),(0,N.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:e})]}),(0,N.jsx)("button",{onClick:t,style:{height:34,padding:"0 16px",background:"transparent",border:"1px solid var(--severity-critical)",color:"var(--severity-critical)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:"Retry"})]})}var QT=["error","degraded","starting","warming","active"];function w1(e){return QT.includes(e)}function z1(e){return{health:e.health,lastSeen:e.lastSeen,telemetryFault:e.telemetryFault}}function P1(e){return{health:e.health,lastSeen:null,telemetryFault:null}}var e4=1e4,t4=2e4;function I1(e){let{signal:t,now:r,firstActiveAt:o}=e,n=e.warmingGraceMs??e4,i=e.staleAfterMs??t4;if(t===null)return"starting";if(t.telemetryFault!==null)return"degraded";if(t.health==="unreachable")return"error";if(t.lastSeen!==null){let a=Date.parse(t.lastSeen);if(Number.isFinite(a)&&r-a>i)return"error"}switch(t.health){case"degraded":return"degraded";case"unknown":return"starting";case"ok":return o!==null&&r-o<n?"warming":"active";default:return t.health}}function Xh(e,t,r){return e!=="ok"?null:t??r}var ge=L(H(),1);function Xu(){return(0,ge.jsxs)(ge.Fragment,{children:[(0,ge.jsx)("ellipse",{cx:12,cy:13,rx:4.4,ry:5.4,fill:"none",stroke:"currentColor",strokeWidth:1.6}),(0,ge.jsx)("path",{d:"M8.4 11.2h7.2M8.1 14.4h7.8",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"}),(0,ge.jsx)("circle",{cx:12,cy:6.6,r:2.1,fill:"none",stroke:"currentColor",strokeWidth:1.6}),(0,ge.jsx)("path",{d:"M10.8 5.2 9.6 3.2M13.2 5.2l1.2-2",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round"})]})}var Ni={width:22,height:22,viewBox:"0 0 24 24","aria-hidden":!0,focusable:!1};function n4(){return(0,ge.jsxs)("svg",{...Ni,"data-service-state":"starting",children:[(0,ge.jsx)("path",{d:"M12 3.5 19 7.75v8.5L12 20.5 5 16.25v-8.5z",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeDasharray:"2.5 2.5",strokeLinejoin:"round"}),(0,ge.jsx)("circle",{cx:12,cy:12,r:1.6,fill:"currentColor",opacity:.6})]})}function r4(){return(0,ge.jsxs)("svg",{...Ni,"data-service-state":"warming",children:[(0,ge.jsx)(Xu,{}),(0,ge.jsx)("path",{d:"M8.2 12.4c-1.6-.6-2.6-.2-3-.7M15.8 12.4c1.6-.6 2.6-.2 3-.7",fill:"none",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round",opacity:.65})]})}function o4(){return(0,ge.jsxs)("svg",{...Ni,"data-service-state":"active",children:[(0,ge.jsx)(Xu,{}),(0,ge.jsx)("ellipse",{cx:5.6,cy:10.4,rx:2.6,ry:1.7,fill:"none",stroke:"currentColor",strokeWidth:1.3,transform:"rotate(-24 5.6 10.4)"}),(0,ge.jsx)("ellipse",{cx:18.4,cy:10.4,rx:2.6,ry:1.7,fill:"none",stroke:"currentColor",strokeWidth:1.3,transform:"rotate(24 18.4 10.4)"})]})}function i4(){return(0,ge.jsxs)("svg",{...Ni,"data-service-state":"degraded",children:[(0,ge.jsx)(Xu,{}),(0,ge.jsx)("ellipse",{cx:18.4,cy:10.4,rx:2.6,ry:1.7,fill:"none",stroke:"currentColor",strokeWidth:1.3,transform:"rotate(24 18.4 10.4)"}),(0,ge.jsx)("path",{d:"M18.4 2.4v3.6M18.4 7.4v.01",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round"})]})}function a4(){return(0,ge.jsxs)("svg",{...Ni,"data-service-state":"error",children:[(0,ge.jsx)("g",{transform:"rotate(180 12 12)",children:(0,ge.jsx)(Xu,{})}),(0,ge.jsx)("path",{d:"M8.6 9.6l3.4 3.4-3.4 3.4M15.4 9.6l-3.4 3.4 3.4 3.4",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round",opacity:.85})]})}function l4(){return(0,ge.jsxs)("svg",{...Ni,"data-service-state":"unknown",children:[(0,ge.jsx)("circle",{cx:12,cy:12,r:8,fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeDasharray:"3 3"}),(0,ge.jsx)("path",{d:"M12 9v4M12 15.5v.01",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round"})]})}function Li({state:e}){if(!w1(e))return(0,ge.jsx)(l4,{});let t=e;switch(t){case"starting":return(0,ge.jsx)(n4,{});case"warming":return(0,ge.jsx)(r4,{});case"active":return(0,ge.jsx)(o4,{});case"degraded":return(0,ge.jsx)(i4,{});case"error":return(0,ge.jsx)(a4,{});default:return t}}var So={starting:"starting",warming:"warming up",active:"active",degraded:"degraded",error:"error"},Fi={starting:"var(--text-tertiary)",warming:"var(--severity-warning)",active:"var(--verified)",degraded:"var(--severity-warning)",error:"var(--severity-critical)"};var ko=L(ye(),1);var Kh="fleet-telemetry",s4=u.enum(["ok","degraded","unreachable","unknown"]),c4=u.enum(["missing","locked","malformed","read-error"]),u4=u.object({connected:u.boolean().nullable(),lastCommunicationAt:u.string().nullable()}),d4=u.object({name:u.string().min(1),health:s4,lastSeen:u.string().nullable(),metrics:u.record(u.string(),u.number()),deeplake:u4.nullable(),telemetryFault:c4.nullable()}),p4=u.object({service:u.string().min(1),ts:u.string().min(1),level:u.string().min(1),message:u.string()}),f4=u.object({asOf:u.string().min(1),services:u.array(d4),logs:u.array(p4)});function E1(e){let t;try{t=JSON.parse(e)}catch{return null}let r=f4.safeParse(t);return r.success?r.data:null}var m4="/api/registered-services",g4="/api/telemetry/stream",v4="/api/fleet-status",y4=2e3,R1=500;function h4(e=[]){return{registeredNames:e,services:new Map,logs:[],source:"none",asOf:null}}function Yh(e,t){return e.includes(t)?e:[...e,t]}function x4(e,t){let r=e.registeredNames;for(let o of t)r=Yh(r,o);return r===e.registeredNames?e:{...e,registeredNames:r}}function b4(e,t){if(t.length===0)return e;let r=[...e,...t];return r.length>R1?r.slice(r.length-R1):r}function S4(e,t,r){let o=e.registeredNames,n=new Map(e.services);for(let i of t.services){o=Yh(o,i.name);let a=z1(i),l=n.get(i.name);n.set(i.name,{signal:a,metrics:i.metrics,deeplake:i.deeplake,firstActiveAt:Xh(i.health,l?.firstActiveAt??null,r)})}return{registeredNames:o,services:n,logs:b4(e.logs,t.logs),source:"sse",asOf:t.asOf}}function k4(e,t,r){if(t.supervisor!=="reachable")return{...e,source:"rest"};let o=e.registeredNames,n=new Map;for(let i of t.daemons){o=Yh(o,i.name);let a=P1(i),l=e.services.get(i.name);n.set(i.name,{signal:a,metrics:l?.metrics??{},deeplake:l?.deeplake??null,firstActiveAt:Xh(i.health,l?.firstActiveAt??null,r)})}return{registeredNames:o,services:n,logs:e.logs,source:"rest",asOf:t.asOf}}function _4(e,t){return e.registeredNames.map(r=>{let o=e.services.get(r),n=I1({signal:o?.signal??null,now:t,firstActiveAt:o?.firstActiveAt??null});return{name:r,state:n,health:o?.signal.health??null,lastSeen:o?.signal.lastSeen??null,metrics:o?.metrics??{},deeplake:o?.deeplake??null,telemetryFault:o?.signal.telemetryFault??null}})}function $4(e,t){return{services:_4(e,t),logs:e.logs,source:e.source,asOf:e.asOf}}function Ai(e={}){let t=e.restPollMs??y4,[r,o]=ko.default.useState(()=>h4()),[n,i]=ko.default.useState(()=>Date.now());return ko.default.useEffect(()=>{let a=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(a)},[]),ko.default.useEffect(()=>{let a=!0;return(async()=>{try{let l=await fetch(m4);if(!l.ok)return;let s=await l.json();if(!a||!Array.isArray(s.names))return;let c=s.names.filter(d=>typeof d=="string");c.length>0&&o(d=>x4(d,c))}catch{}})(),()=>{a=!1}},[]),ko.default.useEffect(()=>{let a=!0,l=null;function s(){l!==null&&(clearInterval(l),l=null)}function c(){if(l!==null)return;let x=async()=>{try{let _=await(await fetch(v4)).json();if(!a)return;o(v=>k4(v,_,Date.now()))}catch{}};x(),l=setInterval(()=>{x()},t)}let d=globalThis.EventSource;if(d===void 0)return c(),()=>{a=!1,s()};let p=null,f=x=>{if(!a)return;let h=typeof x.data=="string"?x.data:String(x.data),_=E1(h);_!==null&&(s(),o(v=>S4(v,_,Date.now())))},g=()=>c();try{p=new d(g4),p.addEventListener(Kh,f),p.addEventListener("error",g)}catch{c()}return()=>{a=!1,s();try{p?.removeEventListener(Kh,f),p?.removeEventListener("error",g),p?.close()}catch{}}},[t]),ko.default.useMemo(()=>$4(r,n),[r,n])}var $l=["debug","info","warn","error"];function w4(e){let t=$l.indexOf(e.trim().toLowerCase());return t===-1?$l.indexOf("info"):t}function C1(e,t){let r=$l.indexOf(t);return e.filter(o=>w4(o.level)>=r)}var sn=L(H(),1),T1="/health",z4={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0};function P4({service:e}){let t=`${e.name}: ${So[e.state]}`;return(0,sn.jsxs)("span",{"data-testid":`health-rail-pill-${e.name}`,"data-state":e.state,title:t,style:{display:"inline-flex",alignItems:"center",gap:6,height:26,padding:"0 10px",borderRadius:"var(--radius-full)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)",flex:"none"},children:[(0,sn.jsx)("span",{style:{color:Fi[e.state],display:"inline-flex",width:14,height:14},"aria-hidden":"true",children:(0,sn.jsx)(Li,{state:e.state})}),(0,sn.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-secondary)",whiteSpace:"nowrap"},children:[e.name,(0,sn.jsxs)("span",{style:z4,children:[": ",So[e.state]]})]})]})}function j1({onOpenHealth:e}={}){let t=Ai();return(0,sn.jsxs)("div",{"data-testid":"health-rail",role:"status","aria-live":"polite","aria-label":"Fleet health",style:{display:"flex",alignItems:"center",gap:8,padding:"8px 28px",borderBottom:"1px solid var(--border-subtle)",overflowX:"auto"},children:[t.services.length===0?(0,sn.jsx)("span",{"data-testid":"health-rail-empty",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"no services registered"}):t.services.map(r=>(0,sn.jsx)(P4,{service:r},r.name)),(0,sn.jsx)("span",{style:{flex:1}}),e!==void 0&&(0,sn.jsx)("button",{type:"button","data-testid":"health-rail-open-health",onClick:e,style:{background:"transparent",border:"none",color:"var(--text-tertiary)",fontFamily:"var(--font-mono)",fontSize:11,cursor:"pointer",padding:0},children:"health details \u2192"})]})}var Te=L(ye(),1);var B1=L(ye(),1);var wl=L(ye(),1);var Ku=L(ye(),1),sr=L(H(),1),Yu=1180;function Be({title:e,eyebrow:t,right:r,children:o}){return(0,sr.jsxs)("div",{style:{maxWidth:Yu,margin:"0 auto",width:"100%"},children:[(0,sr.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:18},children:[(0,sr.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0},children:[t!==void 0&&t!==""&&(0,sr.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:t}),(0,sr.jsx)("h1",{style:{fontSize:"var(--text-lg)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em",lineHeight:1.1},children:e})]}),(0,sr.jsx)("span",{style:{flex:1}}),r]}),(0,sr.jsx)("div",{children:o})]})}function cn(){return typeof document<"u"&&document.visibilityState==="hidden"}function wn(e,t){let r=Ku.default.useRef(e);Ku.default.useEffect(()=>{r.current=e},[e]),Ku.default.useEffect(()=>{let o=!0,n=async()=>{!o||cn()||await r.current()};n();let i=setInterval(()=>{n()},t),a=()=>{cn()||n()};return typeof document<"u"&&document.addEventListener("visibilitychange",a),()=>{o=!1,clearInterval(i),typeof document<"u"&&document.removeEventListener("visibilitychange",a)}},[t])}var qu=L(ye(),1);function O1(e){let t=e.trim();return t===""?"/":t}var qh="hive:pathchange";function Qu(){let[e,t]=qu.default.useState(()=>typeof window>"u"?"/":O1(window.location.pathname));qu.default.useEffect(()=>{if(typeof window>"u")return;let o=()=>t(O1(window.location.pathname));return o(),window.addEventListener("popstate",o),window.addEventListener(qh,o),()=>{window.removeEventListener("popstate",o),window.removeEventListener(qh,o)}},[]);let r=qu.default.useCallback(o=>{if(typeof window>"u")return;let n=o.startsWith("/")?o:`/${o}`;window.location.pathname!==n&&window.history.pushState(null,"",n),window.dispatchEvent(new Event(qh))},[]);return{route:e,navigate:r}}var A=L(H(),1),I4=5e3,E4=2500,D1=12,N1="/harnesses/";function R4(e){if(!e.startsWith(N1))return null;let t=e.slice(N1.length).split("/")[0]??"";return t===""?null:t}function Qh({name:e}){return(0,A.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",flex:"none",background:kl[e]??_l}})}function ed(e){return e.installed?e.active?"active":"idle":"not installed"}var F1={active:"verified",idle:"neutral","not installed":"neutral"};function Ui(e,t=Date.now()){if(e===null||e==="")return"never";let r=Date.parse(e);if(!Number.isFinite(r))return e;let o=Math.max(0,t-r),n=Math.floor(o/1e3);if(n<60)return`${n}s ago`;let i=Math.floor(n/60);if(i<60)return`${i}m ago`;let a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}var A1={active:"active",idle:"idle","not installed":"not installed"};function C4({h:e,onOpen:t}){let r=ed(e),o=r==="not installed";return(0,A.jsxs)("button",{type:"button","data-testid":`harness-card-${e.name}`,"data-harness":e.name,onClick:()=>t(e.name),style:{display:"flex",flexDirection:"column",gap:12,padding:16,textAlign:"left",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",cursor:"pointer",opacity:o?.6:1},children:[(0,A.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:9},children:[(0,A.jsx)(Qh,{name:e.name}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:e.name}),(0,A.jsx)("span",{style:{flex:1}}),(0,A.jsx)(Y,{tone:F1[r],mono:!0,dot:!0,children:A1[r]})]}),(0,A.jsx)(an,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,A.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",Ui(e.lastSeen)]})]})}function L1({on:e}){return(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:e?"var(--verified)":"var(--text-tertiary)"},children:e?"\u2713":"\u2014"})}function T4({harnesses:e,onOpen:t}){return(0,A.jsx)(te,{title:"Fleet",eyebrow:`${e.length} harnesses`,children:(0,A.jsxs)("div",{role:"table","aria-label":"installed/active matrix",style:{display:"flex",flexDirection:"column"},children:[(0,A.jsx)("div",{role:"row",style:{display:"grid",gridTemplateColumns:"1.6fr 0.8fr 0.8fr 1.2fr 0.8fr",gap:10,padding:"6px 6px",borderBottom:"1px solid var(--border-subtle)"},children:["harness","installed","active","last seen","turns"].map(r=>(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:r},r))}),e.map(r=>(0,A.jsxs)("div",{role:"row","data-testid":`harness-row-${r.name}`,"data-harness":r.name,onClick:()=>t(r.name),style:{display:"grid",gridTemplateColumns:"1.6fr 0.8fr 0.8fr 1.2fr 0.8fr",gap:10,alignItems:"center",padding:"9px 6px",cursor:"pointer",borderTop:"1px solid var(--border-subtle)",opacity:r.installed?1:.6},children:[(0,A.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,A.jsx)(Qh,{name:r.name}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)"},children:r.name})]}),(0,A.jsx)(L1,{on:r.installed}),(0,A.jsx)(L1,{on:r.active}),(0,A.jsx)("span",{title:r.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:Ui(r.lastSeen)}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:r.turnsCaptured.toLocaleString()})]},r.name))]})})}function j4({harnesses:e,onOpen:t}){return(0,A.jsx)(Be,{title:"Harnesses",eyebrow:`${e.length} \xB7 fleet`,children:e.length===0?(0,A.jsx)(te,{title:"Harnesses",children:(0,A.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harness telemetry yet."})}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:12,marginBottom:16},children:e.map(r=>(0,A.jsx)(C4,{h:r,onOpen:t},r.name))}),(0,A.jsx)(T4,{harnesses:e,onOpen:t})]})})}function Gt({label:e,children:t}){return(0,A.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,A.jsx)("span",{style:{flex:1}}),(0,A.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right"},children:t})]})}function O4({cap:e}){let t=`${e.hostCli.bin}${e.hostCli.args.length>0?" "+e.hostCli.args.join(" "):""}`.trim();return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(te,{title:"Runtime",eyebrow:e.runtimePath||"\u2014",style:{marginBottom:16},children:[(0,A.jsx)(Gt,{label:"runtime path",children:e.runtimePath||"\u2014"}),(0,A.jsx)(Gt,{label:"context channel",children:e.contextChannel||"\u2014"}),(0,A.jsx)(Gt,{label:"host CLI",children:t||"\u2014"}),e.hostCli.fallbackBin!==void 0&&e.hostCli.fallbackBin!==""&&(0,A.jsx)(Gt,{label:"fallback CLI",children:e.hostCli.fallbackBin}),(0,A.jsx)(Gt,{label:"lifecycle events",children:e.lifecycleEvents.length>0?e.lifecycleEvents.join(", "):"\u2014"})]}),e.agents!==void 0&&(0,A.jsx)("div",{"data-testid":"cap-agents",style:{marginBottom:16},children:(0,A.jsxs)(te,{title:"Agents",eyebrow:"cursor-agent",children:[(0,A.jsx)(Gt,{label:"agent kind",children:e.agents.kind}),(0,A.jsx)(Gt,{label:"binary",children:e.agents.binary}),e.agents.fallbackBin!==void 0&&e.agents.fallbackBin!==""&&(0,A.jsx)(Gt,{label:"fallback",children:e.agents.fallbackBin}),e.workspaceRoots===!0&&(0,A.jsx)(Gt,{label:"workspace roots",children:"yes"})]})}),e.mcpRegistration===!0&&(0,A.jsx)("div",{"data-testid":"cap-mcp",style:{marginBottom:16},children:(0,A.jsx)(te,{title:"MCP",eyebrow:"registered",children:(0,A.jsx)(Gt,{label:"honeycomb tools",children:"honeycomb_search \xB7 honeycomb_read \xB7 honeycomb_index"})})}),e.contractedTools===!0&&(0,A.jsx)("div",{"data-testid":"cap-contracted",style:{marginBottom:16},children:(0,A.jsx)(te,{title:"Contracted tools",eyebrow:"registered",children:(0,A.jsx)(Gt,{label:"tool registration",children:"contracted (no pre-tool hook)"})})}),e.agentsMdContext===!0&&(0,A.jsx)("div",{"data-testid":"cap-agentsmd",style:{marginBottom:16},children:(0,A.jsx)(te,{title:"Context surface",eyebrow:"AGENTS.md",children:(0,A.jsx)(Gt,{label:"injection",children:"static AGENTS.md block"})})}),e.userVisibleLogin===!0&&(0,A.jsx)("div",{"data-testid":"cap-login",style:{marginBottom:16},children:(0,A.jsx)(te,{title:"Context surface",eyebrow:"login line",children:(0,A.jsx)(Gt,{label:"injection",children:"user-visible login line"})})})]})}function D4(e,t){if(t==="")return[];let r=t.toLowerCase();return e.filter(o=>(o.path??"").toLowerCase().includes(r))}function N4({name:e,status:t,lines:r,onBack:o}){let n=(0,A.jsx)("button",{type:"button",onClick:o,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"\u2039 Harnesses"});if(t===null)return(0,A.jsx)(Be,{title:e,eyebrow:"harness",right:n,children:(0,A.jsx)(te,{title:"Unknown harness",children:(0,A.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No telemetry for ",(0,A.jsx)("code",{style:{fontFamily:"var(--font-mono)",color:"var(--text-secondary)"},children:e})," \u2014 it is not one of the six canonical harnesses."]})})});let i=ed(t);return(0,A.jsxs)(Be,{title:e,eyebrow:"harness",right:n,children:[(0,A.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,A.jsx)(Qh,{name:e}),(0,A.jsx)(Y,{tone:F1[i],mono:!0,dot:!0,children:A1[i]}),(0,A.jsx)("span",{style:{flex:1}}),(0,A.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},title:t.lastSeen??"never",children:["last seen ",Ui(t.lastSeen)]})]}),(0,A.jsxs)("div",{className:"kpirow",style:{marginBottom:18},children:[(0,A.jsx)(an,{label:"Turns",value:t.turnsCaptured.toLocaleString(),accent:t.active?"verified":"neutral"}),(0,A.jsx)(an,{label:"Installed",value:t.installed?"yes":"no",accent:t.installed?"honey":"neutral"}),(0,A.jsx)(an,{label:"Runtime",value:t.runtimePath||"\u2014",accent:"pollinate"})]}),(0,A.jsx)(O4,{cap:t.capabilities}),(0,A.jsx)(Mr,{lines:r})]})}function U1({wire:e}){let{route:t,navigate:r}=Qu(),o=R4(t),[n,i]=wl.default.useState([]),[a,l]=wl.default.useState([]);wn(async()=>i(await e.harnesses()),I4),wn(async()=>{if(o===null){l([]);return}let d=await e.logs(D1*4),p=D4(d,o);l(p.slice(-D1).reverse().map(Wr))},E4);let s=wl.default.useCallback(d=>r(`/harnesses/${d}`),[r]),c=wl.default.useCallback(()=>r("/harnesses"),[r]);if(o!==null){let d=n.find(p=>p.name===o)??null;return(0,A.jsx)(N4,{name:o,status:d,lines:a,onBack:c})}return(0,A.jsx)(j4,{harnesses:n,onOpen:s})}function W1(e){return Array.isArray(e)?e.map(t=>t!==null&&typeof t=="object"&&"name"in t?String(t.name):"").filter(t=>t!=="").map(t=>({route:`/harnesses/${t}`,label:t})):[]}var Ke=L(H(),1),M1={active:"verified",idle:"neutral"};function L4({h:e}){let r=ed(e)==="active"?M1.active:M1.idle;return(0,Ke.jsx)("span",{"data-testid":`harness-chip-${e.name}`,"data-harness":e.name,title:`${e.name} \xB7 last seen ${Ui(e.lastSeen)}`,style:{display:"inline-flex"},children:(0,Ke.jsxs)(Y,{tone:r,mono:!0,dot:!0,style:{background:"transparent"},children:[(0,Ke.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",flex:"none",background:kl[e.name]??_l}}),e.name]})})}function F4({h:e}){return(0,Ke.jsxs)("div",{"data-testid":`harness-tile-${e.name}`,"data-harness":e.name,style:{display:"flex",flexDirection:"column",gap:10,padding:14,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,Ke.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Ke.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:kl[e.name]??_l}}),(0,Ke.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e.name})]}),(0,Ke.jsx)(an,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,Ke.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",Ui(e.lastSeen)]})]})}function Z1({harnesses:e,streamLines:t}){let r=B1.default.useMemo(()=>e.filter(o=>o.installed),[e]);return(0,Ke.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,Ke.jsx)(te,{title:"Harnesses",eyebrow:`${r.length} wired in`,children:r.length===0?(0,Ke.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harnesses wired in yet."}):(0,Ke.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,Ke.jsx)("div",{"data-testid":"harness-chips",style:{display:"flex",flexWrap:"wrap",gap:8},children:r.map(o=>(0,Ke.jsx)(L4,{h:o},o.name))}),(0,Ke.jsx)("div",{"data-testid":"harness-tiles",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12},children:r.map(o=>(0,Ke.jsx)(F4,{h:o},o.name))})]})}),(0,Ke.jsx)(Mr,{lines:t})]})}var Ze=L(ye(),1),tt=L(H(),1),nx=Object.freeze({org:"local",workspace:"default"}),V1="honeycomb.dashboard.scope",H1=Ze.default.createContext({scope:nx,setScope:()=>{}});function Et(){return Ze.default.useContext(H1)}var A4=Object.freeze({orgs:[],workspaces:[],projects:[],projectsHydrated:!1,loadingWorkspaces:!1,switchFeedback:null,selectOrg:()=>{},selectWorkspace:()=>{},selectProject:()=>{}}),J1=Ze.default.createContext(A4);function rx(){return Ze.default.useContext(J1)}function U4(){try{if(typeof localStorage>"u")return null;let e=localStorage.getItem(V1);if(e===null||e==="")return null;let t=JSON.parse(e);if(typeof t!="object"||t===null)return null;let r=t,o=typeof r.org=="string"?r.org:"",n=typeof r.workspace=="string"?r.workspace:"";if(o===""||n==="")return null;let i=typeof r.project=="string"&&r.project!==""?r.project:void 0;return i!==void 0?{org:o,workspace:n,project:i}:{org:o,workspace:n}}catch{return null}}function W4(e){try{if(typeof localStorage>"u")return;localStorage.setItem(V1,JSON.stringify(e))}catch{}}function G1({wire:e,children:t}){let r=Ze.default.useMemo(()=>U4(),[]),[o,n]=Ze.default.useState(r??nx),[i,a]=Ze.default.useState([]),[l,s]=Ze.default.useState([]),[c,d]=Ze.default.useState([]),[p,f]=Ze.default.useState(!1),[g,x]=Ze.default.useState(!1),[h,_]=Ze.default.useState(null),v=Ze.default.useCallback(K=>{n(K),W4(K)},[]),m=Ze.default.useCallback(K=>v(K),[v]),y=Ze.default.useCallback(async()=>{let K=await e.scopeProjects();d(K),f(!0)},[e]);Ze.default.useEffect(()=>{let K=!0;return(async()=>{let M=await e.scopeOrgs();K&&a(M)})(),(async()=>{let M=await e.scopeWorkspaces();K&&s(M.workspaces)})(),y(),()=>{K=!1}},[e,y]);let S=Ze.default.useCallback(K=>{x(!0),_({kind:"persisted",message:"switching org\u2026",pending:!0}),(async()=>{try{let M=await e.switchOrg(K);if(!M.switched){_({kind:"error",message:M.error!==void 0&&M.error!==""?`could not switch: ${M.error}`:"could not switch org"});return}v({org:M.org,workspace:nx.workspace,project:void 0});let Ve=await e.scopeWorkspaces(M.org);s(Ve.workspaces),d([]),f(!0),_({kind:"persisted",message:M.reminted?`switched to ${M.orgName??M.org} \xB7 re-minted`:`switched to ${M.orgName??M.org}`})}finally{x(!1)}})()},[e,v]),P=Ze.default.useCallback(K=>{_({kind:"persisted",message:"switching workspace\u2026",pending:!0}),(async()=>{let M=await e.switchWorkspace(K);if(!M.switched){_({kind:"error",message:M.error!==void 0&&M.error!==""?`could not switch: ${M.error}`:"could not switch workspace"});return}v({org:o.org,workspace:M.workspace,project:void 0}),await y(),_({kind:"persisted",message:`switched to ${M.workspace}`})})()},[e,v,o.org,y]),j=Ze.default.useCallback(K=>{v({org:o.org,workspace:o.workspace,...K!==void 0?{project:K}:{}}),_({kind:"view",message:K!==void 0?"view filter \u2014 capture is set by folder binding":"view cleared"})},[v,o.org,o.workspace]),R=Ze.default.useMemo(()=>({scope:o,setScope:m}),[o,m]),B=Ze.default.useMemo(()=>({orgs:i,workspaces:l,projects:c,projectsHydrated:p,loadingWorkspaces:g,switchFeedback:h,selectOrg:S,selectWorkspace:P,selectProject:j}),[i,l,c,p,g,h,S,P,j]);return(0,tt.jsx)(H1.Provider,{value:R,children:(0,tt.jsx)(J1.Provider,{value:B,children:t})})}var M4={width:"100%",height:30,padding:"0 8px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"};function ex({label:e,testId:t,value:r,disabled:o,onChange:n,children:i}){return(0,tt.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:3},children:[(0,tt.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:e}),(0,tt.jsx)("select",{"data-testid":t,value:r,disabled:o,onChange:a=>n(a.target.value),style:{...M4,opacity:o?.6:1},children:i})]})}var B4="__unsorted__",tx="";function X1({collapsed:e}){let{scope:t}=Et(),r=rx();return e?null:(0,tt.jsxs)("div",{"data-testid":"scope-switcher",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,tt.jsxs)(ex,{label:"org",testId:"scope-org",value:t.org,onChange:r.selectOrg,children:[r.orgs.length===0&&(0,tt.jsx)("option",{value:t.org,children:t.org}),r.orgs.map(o=>(0,tt.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,tt.jsxs)(ex,{label:"workspace",testId:"scope-workspace",value:t.workspace,disabled:r.loadingWorkspaces,onChange:r.selectWorkspace,children:[r.workspaces.length===0&&(0,tt.jsx)("option",{value:t.workspace,children:r.loadingWorkspaces?"loading\u2026":t.workspace}),r.workspaces.map(o=>(0,tt.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,tt.jsxs)(ex,{label:"project \xB7 view filter",testId:"scope-project",value:t.project??tx,onChange:o=>r.selectProject(o===tx?void 0:o),children:[(0,tt.jsx)("option",{value:tx,children:"\u2014 select a project \u2014"}),r.projects.map(o=>(0,tt.jsx)("option",{value:o.projectId,children:o.projectId===B4?"(unsorted inbox)":o.name!==""?o.name:o.projectId},o.projectId))]}),(0,tt.jsx)("span",{"data-testid":"project-view-hint",style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",lineHeight:1.4},children:"Filters what you VIEW. To set where Honeycomb captures, bind a folder in Projects."}),r.switchFeedback!==null&&(0,tt.jsxs)("span",{"data-testid":"switch-feedback","data-kind":r.switchFeedback.kind,style:{fontFamily:"var(--font-mono)",fontSize:10,color:r.switchFeedback.kind==="error"?"var(--severity-critical)":r.switchFeedback.kind==="persisted"?"var(--verified)":"var(--text-tertiary)"},children:[r.switchFeedback.pending===!0?"\u27F3 ":r.switchFeedback.kind==="persisted"?"\u2713 ":"",r.switchFeedback.message]})]})}var ie=L(H(),1),Z4=2500,V4=5e3,td=8,H4=5;function J4(){return new Date().toTimeString().slice(0,8)}function G4({query:e,setQuery:t,onRecall:r,busy:o}){return(0,ie.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:18},children:[(0,ie.jsx)("div",{style:{flex:1},children:(0,ie.jsx)(Sn,{mono:!0,size:"lg",value:e,placeholder:"recall\u2026 e.g. how do we deploy",onChange:n=>t(n.target.value),onKeyDown:n=>{n.key==="Enter"&&r()}})}),(0,ie.jsx)(F,{variant:"primary",size:"lg",onClick:r,disabled:o,children:o?"\u2026":"Recall"})]})}function X4(){return(0,ie.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",style:{display:"inline-flex"},children:(0,ie.jsx)(Y,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})}var K4=[{key:"storage",label:"storage",degraded:e=>e.storage==="unreachable"},{key:"embeddings",label:"semantic",degraded:e=>e.embeddings==="off"},{key:"schema",label:"schema",degraded:e=>e.schema==="missing_table"},{key:"portkey",label:"portkey",degraded:e=>e.portkey==="unconfigured"||e.portkey==="unreachable"}];function Y4({reasons:e}){return e===null?null:(0,ie.jsxs)("div",{"data-testid":"health-strip",style:{display:"flex",alignItems:"center",gap:8,marginBottom:18,flexWrap:"wrap"},children:[(0,ie.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"subsystems"}),K4.map(t=>{let r=t.degraded(e),o=String(e[t.key]);return(0,ie.jsxs)(Y,{tone:r?"critical":"verified",mono:!0,dot:!0,children:[t.label,": ",o]},t.key)})]})}function K1({wire:e,pollinating:t=!1,healthReasons:r=null}){let{scope:o}=Et(),[n,i]=Te.default.useState(Bh),[a,l]=Te.default.useState([]),[s,c]=Te.default.useState([]),[d,p]=Te.default.useState([]),[f,g]=Te.default.useState(xl),[x,h]=Te.default.useState([]),[_,v]=Te.default.useState([]),[m,y]=Te.default.useState("how do we deploy"),[S,P]=Te.default.useState([]),[j,R]=Te.default.useState(!1),[B,K]=Te.default.useState(!1),[M,Ve]=Te.default.useState(0),[re,Ee]=Te.default.useState(!1),[_e,xt]=Te.default.useState([]),[Yt,Hr]=Te.default.useState([]),dn=Te.default.useCallback(G=>{Hr(de=>[`${J4()} ${G}`,...de].slice(0,td))},[]),cr=Te.default.useRef(0),$e=Te.default.useCallback(async()=>{let G=++cr.current,[de,Ne,pn,Cn,Hn,Aw]=await Promise.all([e.kpis(o.project),e.sessions(),e.rules(),e.skills(),e.vaultSettings(),e.secretNames()]);G===cr.current&&(i(de),l(Ne),c(pn),p(Cn),g(Hn),h(Aw))},[e,o.project]),dt=Te.default.useCallback(async(G,de)=>{let Ne=await e.setSetting(G,de),[pn,Cn]=await Promise.all([e.vaultSettings(),e.secretNames()]);return g(pn),h(Cn),Ne},[e]);Te.default.useEffect(()=>{$e()},[$e]);let[Rn,Jr]=Te.default.useState(!1);Te.default.useEffect(()=>{Jr(!0)},[]),wn(async()=>{let G=await e.logs(td);xt(G.slice(-td).reverse().map(Wr))},Z4),wn(async()=>v(await e.harnesses()),V4);let pe=Te.default.useCallback(async()=>{let G=m.trim();if(G===""||j)return;R(!0);let{memories:de,degraded:Ne}=await e.recall(G);P(de),K(!0),Ee(Ne),Ve(Cn=>Cn+1);let pn=de.length>0?` \xB7 ${de[0]?.score.toFixed(2)} top`:"";dn(`recall "${G}" \u2192 ${de.length} hits${pn}`),R(!1)},[m,j,e,dn]),Ft=Te.default.useMemo(()=>[...Yt,..._e].slice(0,td),[Yt,_e]),bt=Te.default.useMemo(()=>_e.slice(0,H4),[_e]);return(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsxs)("section",{"data-area":"kpi-band","aria-label":"Key metrics",style:{marginBottom:22},children:[(0,ie.jsx)(Y4,{reasons:r}),(0,ie.jsxs)("div",{className:"kpirow",children:[(0,ie.jsx)(an,{label:"Memories",value:n.memoryCount.toLocaleString(),accent:"honey"}),(0,ie.jsx)(an,{label:"Turns",value:n.turnCount||n.sessionCount,accent:"neutral"}),(0,ie.jsx)(an,{label:"Est. savings",value:n.estimatedSavings.toLocaleString(),unit:"tok",accent:"verified"}),(0,ie.jsx)(an,{label:"Team skills",value:n.teamSkillCount,accent:"pollinate"})]})]}),(0,ie.jsxs)("section",{"data-area":"recall-area","aria-label":"Memory search",style:{marginBottom:22},children:[(0,ie.jsx)(G4,{query:m,setQuery:y,onRecall:pe,busy:j}),B&&re&&(0,ie.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,ie.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,ie.jsx)(X4,{})]}),(0,ie.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:S.length===0?B&&(0,ie.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):S.map((G,de)=>(0,ie.jsx)("div",{className:"mem-enter",style:{animationDelay:`${de*55}ms`},children:(0,ie.jsx)(nc,{...G,pollinating:t&&de===1})},G.memoryKey))},M)]}),(0,ie.jsx)("section",{"data-area":"harness-area","aria-label":"Harnesses and activity",children:Rn&&(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)("div",{style:{marginBottom:16},children:(0,ie.jsx)(Z1,{harnesses:_,streamLines:bt})}),(0,ie.jsxs)("div",{className:"grid2",style:{marginBottom:16},children:[(0,ie.jsxs)("div",{className:"col",children:[(0,ie.jsx)(b1,{sessions:a}),(0,ie.jsx)(S1,{rules:s})]}),(0,ie.jsxs)("div",{className:"col",children:[(0,ie.jsx)(Gu,{catalog:f.catalog,settings:f.settings,secretNames:x,onSave:dt}),(0,ie.jsx)(k1,{skills:d})]})]}),(0,ie.jsx)(Mr,{lines:Ft})]})})]})}var nt=L(ye(),1);var ox=L(ye(),1);var Xt=L(ye(),1);var ce=L(H(),1),q4="honeycomb project bind";function Y1(e){let r=e.replace(/[\\/]+$/,"").split(/[\\/]/);return r[r.length-1]??""}function Q4({child:e,onDescend:t}){return(0,ce.jsxs)("button",{type:"button","data-testid":"browse-row","data-path":e.path,onClick:()=>t(e.path),style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)"},children:[(0,ce.jsx)("svg",{width:15,height:15,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none",color:"var(--text-tertiary)"},children:(0,ce.jsx)("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})}),(0,ce.jsx)("span",{style:{flex:1,fontFamily:"var(--font-mono)",fontSize:13,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:e.name}),e.isGitRepo&&(0,ce.jsx)(Y,{tone:"honey",mono:!0,children:"git"})]})}function nd({wire:e,onBound:t,onCancel:r}){let[o,n]=Xt.default.useState(Mh),[i,a]=Xt.default.useState(!1),[l,s]=Xt.default.useState(null),[c,d]=Xt.default.useState(""),[p,f]=Xt.default.useState(!1),[g,x]=Xt.default.useState(""),h=Xt.default.useRef(!1),_=Xt.default.useCallback(async j=>{let R=await e.fsBrowse(j);n(R),a(!0)},[e]);Xt.default.useEffect(()=>{_(void 0)},[_]);let v=i&&o.path===""&&o.children.length===0,m=o.error!==void 0&&o.error!=="",y=Xt.default.useCallback(()=>{o.path!==""&&(s({path:o.path,isGitRepo:!1}),d(Y1(o.path)),x(""))},[o.path]),S=Xt.default.useCallback(j=>{s({path:j.path,isGitRepo:j.isGitRepo}),d(Y1(j.path)),x("")},[]),P=Xt.default.useCallback(async()=>{if(l===null||h.current)return;h.current=!0,f(!0),x("");let j=await e.bindProject({path:l.path,...c.trim()!==""?{name:c.trim()}:{}});if(f(!1),h.current=!1,j.bound){t(j);return}x(j.error!==void 0&&j.error!==""?j.error:"Could not bind that folder.")},[l,c,e,t]);return(0,ce.jsx)("div",{"data-testid":"folder-picker",style:{display:"flex",flexDirection:"column",gap:14},children:v?(0,ce.jsxs)("div",{"data-testid":"picker-unavailable",style:{display:"flex",flexDirection:"column",gap:8,padding:"16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,ce.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)"},children:"The folder browser isn\u2019t available right now."}),(0,ce.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["Bind a folder from your terminal instead: ",(0,ce.jsx)("code",{style:{color:"var(--honey)"},children:q4})]}),r!==void 0&&(0,ce.jsx)("div",{children:(0,ce.jsx)(F,{variant:"ghost",size:"sm",onClick:r,children:"Close"})})]}):(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,ce.jsx)("span",{"data-testid":"picker-path",style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o.path!==""?o.path:"loading\u2026"}),(0,ce.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>{_(o.parent??void 0)},disabled:o.parent===null,title:o.parent===null?"at the allowed root":"up one level",children:"\u2191 up"}),(0,ce.jsx)(F,{variant:"secondary",size:"sm",onClick:y,disabled:o.path==="","data-testid":"select-current",children:"Use this folder"})]}),(0,ce.jsx)("div",{"data-testid":"browse-list",style:{display:"flex",flexDirection:"column",gap:6,maxHeight:280,overflowY:"auto"},children:i?o.children.length===0?(0,ce.jsx)("div",{style:{padding:"10px 4px",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:m?"This folder couldn\u2019t be read.":"No sub-folders here \u2014 use this folder, or go up."}):o.children.map(j=>(0,ce.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,ce.jsx)("div",{style:{flex:1,minWidth:0},children:(0,ce.jsx)(Q4,{child:j,onDescend:R=>{_(R)}})}),(0,ce.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>S(j),"data-testid":"select-child",title:"select this folder to bind",children:"select"})]},j.path)):(0,ce.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),l!==null&&(0,ce.jsxs)("div",{"data-testid":"picker-confirm",style:{display:"flex",flexDirection:"column",gap:10,padding:14,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,ce.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,ce.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"folder"}),(0,ce.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:l.path}),l.isGitRepo&&(0,ce.jsx)(Y,{tone:"honey",mono:!0,children:"git"})]}),(0,ce.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,ce.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"project name"}),(0,ce.jsx)(Sn,{mono:!0,value:c,placeholder:"project name",onChange:j=>d(j.target.value),"data-testid":"picker-name"})]}),(0,ce.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,ce.jsx)(F,{variant:"primary",onClick:()=>{P()},disabled:p||c.trim()==="","data-testid":"picker-bind",children:p?"Binding\u2026":"Bind project"}),r!==void 0&&(0,ce.jsx)(F,{variant:"ghost",onClick:r,disabled:p,children:"Cancel"}),g!==""&&(0,ce.jsx)("span",{"data-testid":"picker-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:g})]})]})]})})}var Kt=L(H(),1);function Br({surface:e}){return(0,Kt.jsxs)("div",{"data-testid":"needs-project-selection",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:320,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,Kt.jsx)("div",{style:{fontSize:15,color:"var(--text-secondary)"},children:"No project selected."}),(0,Kt.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:["Pick a project in the scope switcher (top of the sidebar) to view its ",e,"."]})]})}function q1({wire:e,navigate:t,assetBase:r}){let[o,n]=ox.default.useState(!1),i=ox.default.useCallback(a=>{t(ix)},[t]);return(0,Kt.jsxs)("div",{"data-testid":"first-run-bind",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:16,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,Kt.jsx)("img",{src:`${r}/honeycomb-memory-cluster.svg`,width:48,height:48,alt:""}),(0,Kt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:480},children:[(0,Kt.jsx)("div",{style:{fontSize:17,fontWeight:700,color:"var(--text-primary)",letterSpacing:"-0.02em"},children:"No active projects?"}),(0,Kt.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)",lineHeight:1.5},children:"Pick a folder to start \u2014 point Honeycomb at the repo or folder you want it to remember, and it begins capturing there."})]}),o?(0,Kt.jsx)("div",{style:{width:"100%",maxWidth:620,textAlign:"left"},children:(0,Kt.jsx)(nd,{wire:e,onBound:i,onCancel:()=>n(!1)})}):(0,Kt.jsx)(F,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"first-run-pick",children:"Pick a folder to start"})]})}var q=L(H(),1),ej=8e3,Zr={width:1600,height:1e3},Wi=.25,Mi=4,_o=1.15,zl={scale:1,tx:0,ty:0};function ax(e,t,r){return Math.min(r,Math.max(t,e))}function tj(e){let t=Zr.width/e.scale,r=Zr.height/e.scale;return`${e.tx} ${e.ty} ${t} ${r}`}function lx(e){let t=new Set,r=[];for(let o of e.nodes)t.has(o.kind)||(t.add(o.kind),r.push(o.kind));return r}function sx(e,t){if(t.size===0)return e;let r=e.nodes.filter(i=>!t.has(i.kind)),o=new Set(r.map(i=>i.id)),n=e.edges.filter(i=>o.has(i.from)&&o.has(i.to));return{built:e.built,nodes:r,edges:n}}function nj(e,t){let r=t.trim().toLowerCase();return r===""?null:e.nodes.find(n=>n.id.toLowerCase().includes(r)||n.label.toLowerCase().includes(r))?.id??null}function cx(e,t){let r=Zr.width/t,o=Zr.height/t;return{scale:t,tx:e.x-r/2,ty:e.y-o/2}}function ux({kind:e,count:t,hidden:r,onToggle:o}){let n=Hu[e]??Ju;return(0,q.jsxs)("button",{type:"button",role:"switch","aria-checked":!r,"data-testid":`kind-toggle-${e}`,"data-hidden":r,onClick:o,style:{display:"inline-flex",alignItems:"center",gap:7,height:28,padding:"0 11px",background:r?"var(--bg-elevated)":"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-full)",color:r?"var(--text-tertiary)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",opacity:r?.55:1},children:[(0,q.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:n,flex:"none"}}),e||"node",(0,q.jsx)("span",{style:{color:"var(--text-tertiary)"},children:t})]})}function Q1({kind:e,labels:t}){return(0,q.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:3,marginBottom:8},children:[(0,q.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:[e||"\u2014"," \xB7 ",t.length]}),(0,q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-word"},children:t.join(", ")})]})}function rj({node:e,graph:t,onClear:r}){let{outgoing:o,incoming:n}=o_(e.id,t.edges),i=s=>t.nodes.find(c=>c.id===s)?.label||s,a=s=>s.map(i),l=o.length>0||n.length>0;return(0,q.jsxs)("aside",{"data-testid":"graph-detail-panel",style:{width:320,flex:"none",alignSelf:"stretch",padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",display:"flex",flexDirection:"column",gap:10,overflow:"auto"},children:[(0,q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,q.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:Hu[e.kind]??Ju,flex:"none"}}),(0,q.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:0,wordBreak:"break-word"},children:e.label}),(0,q.jsx)("span",{style:{flex:1}}),(0,q.jsx)(Y,{tone:"neutral",mono:!0,children:e.kind||"node"})]}),(0,q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",wordBreak:"break-all"},children:e.id}),(0,q.jsx)("div",{style:{height:1,background:"var(--border-subtle)",margin:"2px 0"}}),!l&&(0,q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no neighbors"}),o.length>0&&(0,q.jsxs)("div",{"data-testid":"detail-outgoing",children:[(0,q.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Outgoing"}),o.map(s=>(0,q.jsx)(Q1,{kind:s.kind,labels:a(s.ids)},`out-${s.kind}`))]}),n.length>0&&(0,q.jsxs)("div",{"data-testid":"detail-incoming",children:[(0,q.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Incoming"}),n.map(s=>(0,q.jsx)(Q1,{kind:s.kind,labels:a(s.ids)},`in-${s.kind}`))]}),(0,q.jsx)("button",{type:"button",onClick:r,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",alignSelf:"flex-start",marginTop:"auto"},children:"clear selection"})]})}function dx({graph:e,selected:t,transform:r,onSelect:o,onClear:n,onPanZoom:i}){let a=nt.default.useMemo(()=>ti(e.nodes,e.edges,Zr),[e]),l=nt.default.useRef(null),s=f=>{l.current={x:f.clientX,y:f.clientY,tx:r.tx,ty:r.ty},f.currentTarget.setPointerCapture?.(f.pointerId)},c=f=>{let g=l.current;if(g===null)return;let x=(f.clientX-g.x)/r.scale,h=(f.clientY-g.y)/r.scale;i({scale:r.scale,tx:g.tx-x,ty:g.ty-h})},d=()=>{l.current=null},p=f=>{let g=f.deltaY<0?_o:1/_o,x=ax(r.scale*g,Wi,Mi);i({scale:x,tx:r.tx,ty:r.ty})};return(0,q.jsxs)("svg",{"data-testid":"graph-canvas",viewBox:tj(r),onPointerDown:s,onPointerMove:c,onPointerUp:d,onPointerLeave:d,onWheel:p,onClick:n,style:{width:"100%",height:"100%",display:"block",cursor:"grab",touchAction:"none",background:"var(--bg-canvas)"},children:[e.edges.map((f,g)=>{let x=a.get(f.from),h=a.get(f.to);return x===void 0||h===void 0?null:(0,q.jsx)("line",{x1:x.x,y1:x.y,x2:h.x,y2:h.y,stroke:"var(--border-strong)",strokeWidth:1.5},g)}),e.nodes.map(f=>{let g=a.get(f.id);if(g===void 0)return null;let x=f.id===t;return(0,q.jsxs)("g",{role:"button",tabIndex:0,"aria-label":`node ${f.label}`,"aria-pressed":x,"data-node-id":f.id,style:{cursor:"pointer"},onClick:h=>{h.stopPropagation(),o(f.id)},children:[x&&(0,q.jsx)("circle",{cx:g.x,cy:g.y,r:16,fill:"none",stroke:"var(--honey)",strokeWidth:2}),(0,q.jsx)("circle",{cx:g.x,cy:g.y,r:x?12:9,fill:Hu[f.kind]??Ju}),(0,q.jsx)("text",{x:g.x+15,y:g.y+4,fontFamily:"var(--font-mono)",fontSize:13,fill:"var(--text-secondary)",children:f.label})]},f.id)})]})}function oj(){return(0,q.jsxs)("div",{"data-testid":"graph-empty-state",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:360,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,q.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:"No memory graph yet for this workspace."}),(0,q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:"The knowledge graph is populated automatically as memories and entities accrue."})]})}function Pl({label:e,ariaLabel:t,onClick:r}){return(0,q.jsx)("button",{type:"button","aria-label":t,onClick:r,style:{width:30,height:30,padding:0,background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:14,lineHeight:1,cursor:"pointer"},children:e})}function ew({wire:e}){let{scope:t}=Et(),r=t.project,[o,n]=nt.default.useState($n),[i,a]=nt.default.useState(null),[l,s]=nt.default.useState(new Set),[c,d]=nt.default.useState(""),[p,f]=nt.default.useState(zl);nt.default.useEffect(()=>{if(r===void 0){n($n);return}let re=!0,Ee=async()=>{if(!re||cn())return;let xt=await e.memoryGraph(r);re&&n(xt)};Ee();let _e=setInterval(()=>{Ee()},ej);return()=>{re=!1,clearInterval(_e)}},[e,r]);let g=nt.default.useMemo(()=>lx(o),[o]),x=nt.default.useMemo(()=>sx(o,l),[o,l]),{graph:h,capped:_}=nt.default.useMemo(()=>bl(x,bo),[x]),v=o.meta?.truncated??!1,m=v||_,y=i!==null?h.nodes.find(re=>re.id===i)??null:null,S=nt.default.useCallback(re=>{s(Ee=>{let _e=new Set(Ee);return _e.has(re)?_e.delete(re):_e.add(re),_e})},[]),P=nt.default.useCallback(re=>{d(re);let Ee=nj(h,re);if(Ee===null)return;a(Ee);let xt=ti(h.nodes,h.edges,Zr).get(Ee);xt!==void 0&&f(cx(xt,Math.max(p.scale,1.4)))},[h,p.scale]),j=nt.default.useCallback(()=>f(zl),[]),R=nt.default.useCallback(()=>f(re=>({...re,scale:ax(re.scale*_o,Wi,Mi)})),[]),B=nt.default.useCallback(()=>f(re=>({...re,scale:ax(re.scale/_o,Wi,Mi)})),[]),K=nt.default.useCallback(re=>a(Ee=>Ee===re?null:re),[]),M=nt.default.useCallback(()=>a(null),[]),Ve=`${h.nodes.length} nodes \xB7 ${h.edges.length} edges`;return(0,q.jsx)(Be,{title:"Memory Graph",eyebrow:r===void 0?"memory graph":Ve,children:r===void 0?(0,q.jsx)(Br,{surface:"memory graph"}):o.built?(0,q.jsxs)(q.Fragment,{children:[m&&(0,q.jsxs)("div",{"data-testid":"graph-truncation-notice",style:{display:"flex",alignItems:"center",gap:8,marginBottom:14,padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[(0,q.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--severity-warning)",flex:"none"}}),v?`Showing the ${(o.meta?.shownNodes??o.nodes.length).toLocaleString()} most-connected of ${(o.meta?.totalNodes??o.nodes.length).toLocaleString()} nodes. Use search and kind filters to focus.`:`Rendering is capped at ${bo.toLocaleString()} nodes. Use search and kind filters to focus.`]}),(0,q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:14,flexWrap:"wrap"},children:[(0,q.jsx)("input",{"aria-label":"search nodes","data-testid":"graph-search",type:"text",value:c,placeholder:"search id or label\u2026",onChange:re=>P(re.target.value),style:{height:30,padding:"0 12px",minWidth:220,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13}}),(0,q.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:g.map(re=>{let Ee=o.nodes.filter(_e=>_e.kind===re).length;return(0,q.jsx)(ux,{kind:re,count:Ee,hidden:l.has(re),onToggle:()=>S(re)},re)})}),(0,q.jsx)("span",{style:{flex:1}}),(0,q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,q.jsx)(Pl,{label:"\u2212",ariaLabel:"zoom out",onClick:B}),(0,q.jsx)(Pl,{label:"+",ariaLabel:"zoom in",onClick:R}),(0,q.jsx)("button",{type:"button","data-testid":"fit-view",onClick:j,style:{height:30,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"fit"})]})]}),(0,q.jsxs)("div",{style:{display:"flex",gap:16,alignItems:"stretch"},children:[(0,q.jsx)("div",{style:{flex:1,minWidth:0,height:"70vh",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden"},children:(0,q.jsx)(dx,{graph:h,selected:y?.id??null,transform:p,onSelect:K,onClear:M,onPanZoom:f})}),y!==null&&(0,q.jsx)(rj,{node:y,graph:o,onClear:M})]})]}):(0,q.jsx)(oj,{})})}var ke=L(ye(),1);var V=L(H(),1),ij=8e3;function tw(e,t,r){return Math.min(r,Math.max(t,e))}function aj({node:e,file:t,derived:r,onClear:o}){return(0,V.jsxs)("aside",{"data-testid":"hive-graph-detail-panel",style:{width:320,flex:"none",alignSelf:"stretch",padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",display:"flex",flexDirection:"column",gap:10,overflow:"auto"},children:[(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,V.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:0,wordBreak:"break-word"},children:e.label}),(0,V.jsx)("span",{style:{flex:1}}),(0,V.jsx)(Y,{tone:"neutral",mono:!0,children:e.kind||"file"})]}),(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",wordBreak:"break-all"},children:e.id}),t!==void 0&&t.description!==""&&(0,V.jsx)("p",{style:{fontSize:13,color:"var(--text-secondary)",margin:0,lineHeight:1.45},children:t.description}),r!==void 0&&r.from_nectar!==""&&(0,V.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["derived from ",r.from_nectar]}),(0,V.jsx)("button",{type:"button",onClick:o,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",alignSelf:"flex-start",marginTop:"auto"},children:"clear selection"})]})}function lj({unreachable:e}){return(0,V.jsxs)("div",{"data-testid":"hive-graph-empty-state",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:360,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,V.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:e?"Nectar is unreachable \u2014 the Hive Graph is unavailable.":"No Hive Graph yet for this project."}),!e&&(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:"Describe files with nectar, or trigger a build below, to populate the graph."})]})}function sj({status:e}){if(e.unreachable)return(0,V.jsx)("div",{"data-testid":"hive-graph-status-unavailable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--severity-critical)"},children:"Status unavailable \u2014 nectar is unreachable."});let t=e.describeStatus;return(0,V.jsxs)("div",{"data-testid":"hive-graph-status-widgets",style:{display:"flex",flexWrap:"wrap",gap:10},children:[(0,V.jsxs)(Y,{tone:"neutral",mono:!0,children:["queue ",e.queueDepth]}),(0,V.jsxs)(Y,{tone:"neutral",mono:!0,children:["described ",t.described]}),(0,V.jsxs)(Y,{tone:"neutral",mono:!0,children:["pending ",t.pending]}),(0,V.jsxs)(Y,{tone:"neutral",mono:!0,children:["failed ",t.failed]}),(0,V.jsxs)(Y,{tone:"neutral",mono:!0,children:["cost $",e.costSpentUsd.toFixed(2)]}),e.degraded&&(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"degraded read"})]})}function cj({results:e,onSelect:t}){return e.unreachable?(0,V.jsx)("div",{"data-testid":"hive-graph-search-unavailable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--severity-critical)"},children:"Search unavailable \u2014 nectar is unreachable."}):(0,V.jsxs)("div",{"data-testid":"hive-graph-search-results",style:{display:"flex",flexDirection:"column",gap:8},children:[e.hits.length===0?(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"No matches."}):e.hits.map(r=>(0,V.jsxs)("button",{type:"button","data-testid":`hive-graph-search-hit-${r.id}`,onClick:()=>t(r),style:{textAlign:"left",padding:"10px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",cursor:"pointer"},children:[(0,V.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)"},children:r.path}),r.body!==""&&(0,V.jsx)("div",{style:{fontSize:12,color:"var(--text-secondary)",marginTop:4,lineHeight:1.4},children:r.body})]},r.id)),e.degraded&&(0,V.jsx)("div",{"data-testid":"hive-graph-search-degraded",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Search ran in degraded mode (lexical-only or partial index)."})]})}function uj({onBuild:e}){let[t,r]=ke.default.useState(!1),[o,n]=ke.default.useState(null),i=ke.default.useRef(!1),a=ke.default.useCallback(async()=>{if(!i.current){i.current=!0,r(!0),n(null);try{n(await e())}finally{i.current=!1,r(!1)}}},[e]);return(0,V.jsxs)("div",{"data-testid":"hive-graph-build",style:{display:"flex",flexDirection:"column",gap:6},children:[(0,V.jsx)(F,{variant:"primary",onClick:()=>{a()},disabled:t,"data-testid":"hive-graph-build-button",children:t?"Building\u2026":"Build Hive Graph"}),o!==null&&o.state!=="accepted"&&(0,V.jsx)("span",{"data-testid":"hive-graph-build-message",style:{fontFamily:"var(--font-mono)",fontSize:12,color:o.state==="already_running"?"var(--severity-warning)":"var(--severity-critical)"},children:o.message}),o!==null&&o.state==="accepted"&&(0,V.jsx)("span",{"data-testid":"hive-graph-build-accepted",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:o.message})]})}function nw({wire:e}){let{scope:t}=Et(),r=t.project,[o,n]=ke.default.useState($n),[i,a]=ke.default.useState({}),[l,s]=ke.default.useState({}),[c,d]=ke.default.useState(!1),[p,f]=ke.default.useState({...ji,unreachable:!1}),[g,x]=ke.default.useState(null),[h,_]=ke.default.useState(new Set),[v,m]=ke.default.useState(zl),[y,S]=ke.default.useState(""),[P,j]=ke.default.useState(null),[R,B]=ke.default.useState(!1);ke.default.useEffect(()=>{if(r===void 0){n($n),a({}),s({}),d(!1),f({...ji,unreachable:!1});return}let pe=!0,Ft=async()=>{if(!pe||cn())return;let[G,de]=await Promise.all([e.hiveGraphFileGraph(r),e.hiveGraphStatus(r)]);pe&&(n(G.graph),a(G.files),s(G.derived),d(G.unreachable),f(de))};Ft();let bt=setInterval(()=>{Ft()},ij);return()=>{pe=!1,clearInterval(bt)}},[e,r]);let K=ke.default.useCallback(async()=>{if(!(r===void 0||y.trim()==="")){B(!0);try{j(await e.hiveGraphSearch(y,r))}finally{B(!1)}}},[e,r,y]),M=ke.default.useCallback(pe=>{x(pe);let bt=ti(xt.current.nodes,xt.current.edges,Zr).get(pe);bt!==void 0&&m(G=>cx(bt,Math.max(G.scale,1.4)))},[]),Ve=ke.default.useMemo(()=>lx(o),[o]),re=ke.default.useMemo(()=>sx(o,h),[o,h]),{graph:Ee,capped:_e}=ke.default.useMemo(()=>bl(re,bo),[re]),xt=ke.default.useRef(Ee);xt.current=Ee;let Yt=g!==null?Ee.nodes.find(pe=>pe.id===g)??null:null,Hr=ke.default.useCallback(pe=>{_(Ft=>{let bt=new Set(Ft);return bt.has(pe)?bt.delete(pe):bt.add(pe),bt})},[]),dn=ke.default.useCallback(()=>m(zl),[]),cr=ke.default.useCallback(()=>m(pe=>({...pe,scale:tw(pe.scale*_o,Wi,Mi)})),[]),$e=ke.default.useCallback(()=>m(pe=>({...pe,scale:tw(pe.scale/_o,Wi,Mi)})),[]),dt=ke.default.useCallback(pe=>x(Ft=>Ft===pe?null:pe),[]),Rn=ke.default.useCallback(()=>x(null),[]),Jr=`${Ee.nodes.length} files \xB7 ${Ee.edges.length} provenance links`;return(0,V.jsx)(Be,{title:"Hive Graph",eyebrow:r===void 0?"hive graph":Jr,children:r===void 0?(0,V.jsx)(Br,{surface:"Hive Graph"}):(0,V.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,V.jsx)(te,{title:"Pipeline status",right:(0,V.jsx)(uj,{onBuild:()=>e.hiveGraphBuild()}),children:(0,V.jsx)(sj,{status:p})}),(0,V.jsxs)(te,{title:"Search",children:[(0,V.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:12},children:[(0,V.jsx)("input",{"aria-label":"search hive graph","data-testid":"hive-graph-search-input",type:"text",value:y,disabled:r===void 0,placeholder:"search files and descriptions\u2026",onChange:pe=>S(pe.target.value),onKeyDown:pe=>{pe.key==="Enter"&&K()},style:{flex:1,height:30,padding:"0 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13}}),(0,V.jsx)(F,{variant:"primary",onClick:()=>{K()},disabled:R||y.trim()==="","data-testid":"hive-graph-search-submit",children:R?"Searching\u2026":"Search"})]}),P!==null&&(0,V.jsx)(cj,{results:P,onSelect:pe=>M(pe.id)})]}),c||!o.built?(0,V.jsx)(lj,{unreachable:c}):(0,V.jsxs)(V.Fragment,{children:[_e&&(0,V.jsxs)("div",{"data-testid":"hive-graph-truncation-notice",style:{display:"flex",alignItems:"center",gap:8,padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[(0,V.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--severity-warning)",flex:"none"}}),"Rendering is capped at ",bo.toLocaleString()," nodes. Use search and kind filters to focus."]}),(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[(0,V.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:Ve.map(pe=>{let Ft=o.nodes.filter(bt=>bt.kind===pe).length;return(0,V.jsx)(ux,{kind:pe,count:Ft,hidden:h.has(pe),onToggle:()=>Hr(pe)},pe)})}),(0,V.jsx)("span",{style:{flex:1}}),(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,V.jsx)(Pl,{label:"\u2212",ariaLabel:"zoom out",onClick:$e}),(0,V.jsx)(Pl,{label:"+",ariaLabel:"zoom in",onClick:cr}),(0,V.jsx)("button",{type:"button","data-testid":"hive-graph-fit-view",onClick:dn,style:{height:30,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"fit"})]})]}),(0,V.jsxs)("div",{style:{display:"flex",gap:16,alignItems:"stretch"},children:[(0,V.jsx)("div",{style:{flex:1,minWidth:0,height:"70vh",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden"},children:(0,V.jsx)(dx,{graph:Ee,selected:Yt?.id??null,transform:v,onSelect:dt,onClear:Rn,onPanZoom:m})}),Yt!==null&&(0,V.jsx)(aj,{node:Yt,file:i[Yt.id],derived:l[Yt.id],onClear:Rn})]})]})]})})}var px=L(ye(),1);var le=L(H(),1),dj=200;function pj(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase()}function fj({service:e}){let t=Object.entries(e.metrics);return(0,le.jsxs)("div",{"data-testid":`health-service-${e.name}`,style:{display:"flex",flexDirection:"column",gap:10,padding:"14px 16px",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:[(0,le.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,le.jsx)("span",{style:{color:Fi[e.state],display:"inline-flex",flex:"none"},children:(0,le.jsx)(Li,{state:e.state})}),(0,le.jsx)("span",{style:{fontWeight:600,fontSize:"var(--text-base)",color:"var(--text-primary)"},children:e.name}),(0,le.jsx)("span",{"data-testid":`health-service-state-${e.name}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"lowercase"},children:So[e.state]})]}),t.length===0?(0,le.jsx)("div",{"data-testid":`health-metrics-empty-${e.name}`,style:{fontSize:12,color:"var(--text-tertiary)"},children:"No metrics reported yet."}):(0,le.jsx)("div",{"data-testid":`health-metrics-${e.name}`,style:{display:"grid",gridTemplateColumns:"1fr auto",rowGap:4,columnGap:12},children:t.map(([r,o])=>(0,le.jsxs)(px.default.Fragment,{children:[(0,le.jsx)("span",{style:{fontSize:12,color:"var(--text-secondary)",textTransform:"capitalize"},children:pj(r)}),(0,le.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)",textAlign:"right"},children:o})]},r))}),(0,le.jsxs)("div",{"data-testid":`health-deeplake-${e.name}`,style:{display:"flex",alignItems:"center",gap:8,paddingTop:8,borderTop:"1px solid var(--border-subtle)"},children:[(0,le.jsx)("span",{style:{fontSize:12,color:"var(--text-secondary)"},children:"Deep Lake"}),e.deeplake===null?(0,le.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"not reported"}):(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)("span",{"data-testid":`health-deeplake-state-${e.name}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:e.deeplake.connected===!0?"var(--verified)":"var(--severity-critical)"},children:e.deeplake.connected===!0?"connected":e.deeplake.connected===!1?"unreachable":"unknown"}),(0,le.jsx)("span",{style:{flex:1}}),(0,le.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["last comm: ",e.deeplake.lastCommunicationAt??"never"]})]})]})]})}function mj({entry:e}){return(0,le.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"auto auto 1fr",gap:10,padding:"4px 0",fontFamily:"var(--font-mono)",fontSize:12},children:[(0,le.jsx)("span",{style:{color:"var(--text-tertiary)"},children:(e.ts||"").slice(11,19)||e.ts}),(0,le.jsx)("span",{style:{color:"var(--text-secondary)",textTransform:"uppercase"},children:e.level}),(0,le.jsxs)("span",{style:{color:"var(--text-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[(0,le.jsxs)("span",{style:{color:"var(--text-tertiary)"},children:["[",e.service,"]"]})," ",e.message]})]})}function gj({value:e,onChange:t}){return(0,le.jsx)("select",{"aria-label":"log verbosity","data-testid":"log-verbosity-select",value:e,onChange:r=>t(r.target.value),style:{height:30,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12},children:$l.map(r=>(0,le.jsxs)("option",{value:r,children:[r,"+"]},r))})}function vj({logs:e}){let[t,r]=px.default.useState("info"),o=C1(e,t),n=o.slice(Math.max(0,o.length-dj)).reverse();return(0,le.jsx)(te,{title:"Live logs",eyebrow:`${o.length} of ${e.length} lines`,right:(0,le.jsx)(gj,{value:t,onChange:r}),children:n.length===0?(0,le.jsx)("div",{"data-testid":"health-logs-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No log lines at this verbosity yet."}):(0,le.jsx)("div",{"data-testid":"health-logs-list",style:{maxHeight:360,overflowY:"auto"},children:n.map((i,a)=>(0,le.jsx)(mj,{entry:i},`${i.ts}-${i.service}-${a}`))})})}function yj(e){return e.services.length===0}function rw(e){let t=Ai();return(0,le.jsx)(Be,{title:"Health",eyebrow:t.source==="sse"?"live":t.source==="rest"?"fallback":"unavailable",children:(0,le.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[yj(t)?(0,le.jsx)(te,{title:"Fleet metrics",children:(0,le.jsx)("div",{"data-testid":"health-telemetry-unavailable",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"Telemetry unavailable. Waiting for doctor to report the fleet."})}):(0,le.jsx)("div",{"data-testid":"health-service-grid",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gap:12},children:t.services.map(r=>(0,le.jsx)(fj,{service:r},r.name))}),(0,le.jsx)(vj,{logs:t.logs})]})})}var Ue=L(ye(),1);var U=L(H(),1),ow=30,hj=50,iw=50;function xj(e){return e>=500?"critical":e>=400?"warning":e>=200&&e<300?"verified":"neutral"}function bj(e){return(e||"").slice(11,19)||(e||"").slice(0,8)}function sw({record:e,live:t}){let r=e.status,o=e.org??"",n=e.durationMs;return(0,U.jsxs)("div",{"data-testid":"log-row",style:{display:"grid",gridTemplateColumns:"76px 64px 1fr auto auto auto",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:t?"var(--text-primary)":"var(--text-tertiary)"},children:bj(e.time)}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:"var(--text-secondary)"},children:e.method}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:e.path,children:e.path}),(0,U.jsx)(Y,{tone:xj(r),mono:!0,children:r>0?r:"\u2014"}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:48},children:typeof n=="number"?`${Math.round(n)}ms`:""}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:60},children:o})]})}function Sj(){let e=(t,r="left")=>(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:r},children:t});return(0,U.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"76px 64px 1fr auto auto auto",alignItems:"center",gap:12,padding:"4px 6px 8px"},children:[e("time"),e("method"),e("path"),e("status"),e("dur","right"),e("org","right")]})}var Bi={since:"",until:"",status:"",path:"",org:""};function aw(e){let t={limit:hj};return e.since!==""&&(t.since=e.since),e.until!==""&&(t.until=e.until),e.status!==""&&(t.status=e.status),e.path!==""&&(t.path=e.path),e.org!==""&&(t.org=e.org),t}function Il({label:e,value:t,placeholder:r,onChange:o,testid:n}){return(0,U.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:130,flex:"1 1 130px"},children:[(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)"},children:e}),(0,U.jsx)(Sn,{mono:!0,size:"sm",value:t,placeholder:r,onChange:i=>o(i.target.value),"data-testid":n})]})}function kj({draft:e,onChangeField:t,onApply:r,onClear:o}){return(0,U.jsx)(te,{title:"Filters",eyebrow:"time \xB7 status \xB7 path \xB7 harness",children:(0,U.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:12,alignItems:"flex-end"},children:[(0,U.jsx)(Il,{label:"since (ISO)",value:e.since,placeholder:"2026-06-22T00:00:00Z",onChange:n=>t("since",n),testid:"filter-since"}),(0,U.jsx)(Il,{label:"until (ISO)",value:e.until,placeholder:"2026-06-22T23:59:59Z",onChange:n=>t("until",n),testid:"filter-until"}),(0,U.jsx)(Il,{label:"status / level",value:e.status,placeholder:"5xx or 404",onChange:n=>t("status",n),testid:"filter-status"}),(0,U.jsx)(Il,{label:"path",value:e.path,placeholder:"/api/memories",onChange:n=>t("path",n),testid:"filter-path"}),(0,U.jsx)(Il,{label:"harness / org",value:e.org,placeholder:"org id",onChange:n=>t("org",n),testid:"filter-org"}),(0,U.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,U.jsx)(F,{variant:"primary",size:"sm","data-testid":"filter-apply",onClick:r,children:"Apply"}),(0,U.jsx)(F,{variant:"ghost",size:"sm","data-testid":"filter-clear",onClick:o,children:"Clear"})]})]})})}function _j(e,t){let r=[t,...e];return r.length>ow?r.slice(0,ow):r}function $j({records:e,open:t,onToggle:r}){return(0,U.jsx)(te,{title:"Live tail",eyebrow:`${e.length} streaming`,right:(0,U.jsx)("button",{type:"button","data-testid":"live-toggle","aria-expanded":t,onClick:r,style:{background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:11,padding:"4px 10px",cursor:"pointer"},children:t?"collapse":"expand"}),children:t?e.length===0?(0,U.jsx)("div",{"data-testid":"live-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"waiting for daemon activity\u2026"}):(0,U.jsx)("div",{"data-testid":"live-list",children:e.map((o,n)=>(0,U.jsx)(sw,{record:o,live:!0},`${o.time}-${o.path}-${n}`))}):(0,U.jsx)("div",{style:{padding:"4px",fontSize:12,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"live tail collapsed"})})}function wj({page:e,loading:t,error:r,onLoadMore:o}){return(0,U.jsx)(te,{title:"History",eyebrow:e.persistent?`${e.count} on this page`:"history unavailable",children:r?(0,U.jsx)("div",{"data-testid":"history-error",style:{padding:"12px 4px",fontSize:13,color:"var(--severity-critical)",fontFamily:"var(--font-mono)"},children:"Could not load log history."}):t&&e.records.length===0?(0,U.jsx)("div",{"data-testid":"history-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):e.persistent?e.records.length===0?(0,U.jsx)("div",{"data-testid":"history-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No logs match these filters."}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Sj,{}),(0,U.jsx)("div",{"data-testid":"history-list",children:e.records.map((n,i)=>(0,U.jsx)(sw,{record:n},`${n.time}-${n.path}-${n.status}-${i}`))}),e.nextCursor!==null&&(0,U.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,U.jsx)(F,{variant:"secondary",size:"sm",disabled:t,"data-testid":"history-load-more",onClick:o,children:t?"loading\u2026":"Load more"})})]}):(0,U.jsx)("div",{"data-testid":"history-unavailable",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"Durable log history is unavailable on this daemon. Live tail above still streams current activity."})})}function El({label:e,children:t}){return(0,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,U.jsx)("span",{style:{flex:1}}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function zj({turn:e,onBack:t}){return(0,U.jsx)(te,{title:"Turn detail",eyebrow:e.sessionId,right:(0,U.jsx)(F,{variant:"ghost",size:"sm","data-testid":"turn-back",onClick:t,children:"\u2039 Back"}),children:(0,U.jsxs)("div",{"data-testid":"turn-detail",children:[(0,U.jsx)(El,{label:"turn id",children:e.sessionId||"\u2014"}),(0,U.jsx)(El,{label:"project",children:e.project||"\u2014"}),(0,U.jsx)(El,{label:"timestamp",children:e.startedAt||"\u2014"}),(0,U.jsx)(El,{label:"event count",children:e.eventCount}),(0,U.jsx)(El,{label:"status",children:(0,U.jsx)(Y,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})})]})})}function Pj({turn:e,onOpen:t}){return(0,U.jsxs)("button",{type:"button","data-testid":`turn-row-${e.sessionId}`,onClick:()=>t(e),style:{display:"grid",gridTemplateColumns:"96px 1fr auto auto",alignItems:"center",gap:12,width:"100%",padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",background:"transparent",border:"none",borderTopColor:"var(--border-subtle)",cursor:"pointer",textAlign:"left"},children:[(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.sessionId}),(0,U.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.project}),(0,U.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[e.startedAt,e.eventCount>0?` \xB7 ${e.eventCount}e`:""]}),(0,U.jsx)(Y,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})]})}function Ij({turns:e,loading:t,error:r,hasMore:o,onOpen:n,onLoadMore:i}){return(0,U.jsx)(te,{title:"Turns",eyebrow:`${e.length} captured`,children:r?(0,U.jsx)("div",{"data-testid":"turns-error",style:{padding:"12px 4px",fontSize:13,color:"var(--severity-critical)",fontFamily:"var(--font-mono)"},children:"Could not load turns."}):t&&e.length===0?(0,U.jsx)("div",{"data-testid":"turns-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):e.length===0?(0,U.jsx)("div",{"data-testid":"turns-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No turns captured yet."}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{"data-testid":"turns-list",children:e.map((a,l)=>(0,U.jsx)(Pj,{turn:a,onOpen:n},a.sessionId||l))}),o&&(0,U.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,U.jsx)(F,{variant:"secondary",size:"sm",disabled:t,"data-testid":"turns-load-more",onClick:i,children:t?"loading\u2026":"Load more"})})]})})}function lw({label:e,active:t,onClick:r,testid:o}){return(0,U.jsx)("button",{type:"button","data-testid":o,"aria-pressed":t,onClick:r,style:{display:"inline-flex",alignItems:"center",gap:8,height:34,padding:"0 14px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:e})}function cw({wire:e,daemonUp:t}){let[r,o]=Ue.default.useState("requests"),[n,i]=Ue.default.useState(Vh),[a,l]=Ue.default.useState(Bi),[s,c]=Ue.default.useState(Bi),[d,p]=Ue.default.useState(!1),[f,g]=Ue.default.useState(!1),[x,h]=Ue.default.useState([]),[_,v]=Ue.default.useState(!0),[m,y]=Ue.default.useState([]),[S,P]=Ue.default.useState(null),[j,R]=Ue.default.useState(!1),[B,K]=Ue.default.useState(!1),[M,Ve]=Ue.default.useState(null),re=Ue.default.useCallback(async $e=>{p(!0),g(!1);try{let dt=await e.logsHistory(aw($e));i(dt)}catch{g(!0)}finally{p(!1)}},[e]),Ee=Ue.default.useCallback(async()=>{if(n.nextCursor!==null){p(!0);try{let $e=await e.logsHistory({...aw(a),cursor:n.nextCursor});i(dt=>({records:[...dt.records,...$e.records],count:dt.count+$e.count,nextCursor:$e.nextCursor,persistent:$e.persistent}))}catch{g(!0)}finally{p(!1)}}},[e,a,n.nextCursor]),_e=Ue.default.useCallback(async()=>{R(!0),K(!1);try{let $e=await e.turnsHistory({limit:iw});y($e.sessions),P($e.nextCursor)}catch{K(!0)}finally{R(!1)}},[e]),xt=Ue.default.useCallback(async()=>{if(S!==null){R(!0);try{let $e=await e.turnsHistory({limit:iw,cursor:S});y(dt=>[...dt,...$e.sessions]),P($e.nextCursor)}catch{K(!0)}finally{R(!1)}}},[e,S]);Ue.default.useEffect(()=>{re(Bi),_e()},[re,_e]),Ue.default.useEffect(()=>{let $e=!0,dt=e.logsStream(Rn=>{$e&&h(Jr=>_j(Jr,Rn))});return()=>{$e=!1,dt()}},[e]);let Yt=Ue.default.useCallback(()=>{l(s),re(s)},[s,re]),Hr=Ue.default.useCallback(()=>{c(Bi),l(Bi),re(Bi)},[re]),dn=Ue.default.useCallback(($e,dt)=>{c(Rn=>({...Rn,[$e]:dt}))},[]);return(0,U.jsx)(Be,{title:"Logs",eyebrow:t?"request log \xB7 turns":"daemon offline",right:(0,U.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,U.jsx)(lw,{label:"Requests",active:r==="requests",onClick:()=>o("requests"),testid:"tab-requests"}),(0,U.jsx)(lw,{label:"Turns",active:r==="turns",onClick:()=>o("turns"),testid:"tab-turns"})]}),children:r==="requests"?(0,U.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,U.jsx)($j,{records:x,open:_,onToggle:()=>v($e=>!$e)}),(0,U.jsx)(kj,{draft:s,onChangeField:dn,onApply:Yt,onClear:Hr}),(0,U.jsx)(wj,{page:n,loading:d,error:f,onLoadMore:()=>{Ee()}})]}):M!==null?(0,U.jsx)(zj,{turn:M,onBack:()=>Ve(null)}):(0,U.jsx)(Ij,{turns:m,loading:j,error:B,hasMore:S!==null,onOpen:$e=>Ve($e),onLoadMore:()=>{xt()}})})}var oe=L(ye(),1);var zn=L(ye(),1);var Q=L(H(),1),Ej=6,Rj=150;function Cj(e){return new Promise(t=>setTimeout(t,e))}async function rd(e,t,r,...o){let n=e[t];if(typeof n!="function")return r;try{return await n.apply(e,o)??r}catch{return r}}var Tj={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function Vr({label:e,value:t}){return(0,Q.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:96},children:[(0,Q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:e}),(0,Q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:16,fontWeight:600,color:"var(--text-primary)"},children:t})]})}function jj(e){return e>=.66?"verified":e>=.33?"honey":"warning"}function Oj(e){let t=(r,o)=>r===void 0||!Number.isFinite(r)?o:Math.min(1,Math.max(0,r));return t(e.freshness,1)*t(e.calibrationConfidence,1)*(1-t(e.staleness,0))*t(e.kappa,1)}function Dj(e){return e!==void 0&&Number.isFinite(e)?Math.min(1,Math.max(0,e)).toFixed(2):"\u2014"}function Nj({lower:e,upper:t,accuracy:r}){let o=Math.round(Math.min(1,Math.max(0,r))*100);return(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Q.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",minWidth:64},children:[e.toFixed(2),"\u2013",t.toFixed(2)]}),(0,Q.jsx)("div",{style:{flex:1,height:8,background:"var(--bg-subtle)",borderRadius:4,overflow:"hidden"},children:(0,Q.jsx)("div",{style:{width:`${o}%`,height:"100%",background:"var(--honey)"}})}),(0,Q.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-secondary)",minWidth:32,textAlign:"right"},children:[o,"%"]})]})}var Lj=["review","supersede","keep-both"];function Fj({conflict:e,onResolve:t}){let[r,o]=zn.default.useState("review"),[n,i]=zn.default.useState(e.memoryAId),[a,l]=zn.default.useState(!1),s=async()=>{a||(l(!0),await t(e.id,r,r==="supersede"?n:""),l(!1))};return(0,Q.jsxs)("div",{"data-testid":"conflict-row","data-conflict-id":e.id,style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)"},children:[(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,Q.jsx)(Y,{tone:"warning",mono:!0,dot:!0,children:e.status||"open"}),(0,Q.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:[e.memoryAId," \u21C4 ",e.memoryBId]})]}),(0,Q.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,Q.jsx)("select",{"aria-label":"verdict",value:r,onChange:c=>o(c.target.value),style:{height:32,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12},children:Lj.map(c=>(0,Q.jsx)("option",{value:c,children:c},c))}),r==="supersede"&&(0,Q.jsxs)("select",{"aria-label":"winner",value:n,onChange:c=>i(c.target.value),style:{height:32,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12,maxWidth:180},children:[(0,Q.jsxs)("option",{value:e.memoryAId,children:["winner: ",e.memoryAId]}),(0,Q.jsxs)("option",{value:e.memoryBId,children:["winner: ",e.memoryBId]})]}),(0,Q.jsx)(F,{variant:"secondary",size:"sm",onClick:()=>{s()},disabled:a,children:a?"\u2026":"Resolve"})]})]})}function uw({wire:e}){let[t,r]=zn.default.useState([]),[o,n]=zn.default.useState([]),[i,a]=zn.default.useState(Bu),[l,s]=zn.default.useState(!1),c=zn.default.useCallback(async()=>{let _=await rd(e,"lifecycleConflicts",[],"open");return r(_),_},[e]);zn.default.useEffect(()=>{let _=!0;return(async()=>{let[v,m,y]=await Promise.all([rd(e,"lifecycleConflicts",[],"open"),rd(e,"lifecycleStaleRefs",[]),rd(e,"calibration",Bu)]);_&&(r(v),n(m),a(y),s(!0))})(),()=>{_=!1}},[e]);let d=zn.default.useCallback(async(_,v,m)=>{if(!(typeof e.resolveConflict=="function"?await e.resolveConflict(_,{verdict:v,...m!==""?{winnerId:m}:{}}):!1)){await c();return}for(let S=0;S<Ej;S+=1){if(!(await c()).some(j=>j.id===_))return;await Cj(Rj)}},[e,c]),p=void 0,f=o.length>0?Math.min(1,o.length/Math.max(o.length,8)):0,g=i.identity?1:Math.max(0,1-i.ece),x=t.length>0?.5:1,h=Oj({freshness:p,calibrationConfidence:g,staleness:f,kappa:x});return(0,Q.jsxs)("div",{"data-testid":"lifecycle-panel",style:{...Tj,display:"flex",flexDirection:"column",gap:16},children:[(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,Q.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Memory health"}),(0,Q.jsx)(Y,{tone:jj(h),mono:!0,dot:!0,children:(0,Q.jsxs)("span",{"data-testid":"health-badge",children:["H ",h.toFixed(2)]})})]}),(0,Q.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,Q.jsx)(Vr,{label:"freshness",value:Dj(p)}),(0,Q.jsx)(Vr,{label:"calibrated confidence",value:i.identity?"\u2014":g.toFixed(2)}),(0,Q.jsx)(Vr,{label:"open conflicts",value:String(t.length)}),(0,Q.jsx)(Vr,{label:"stale refs",value:String(o.length)}),(0,Q.jsx)(Vr,{label:"ECE",value:i.identity?"dormant":i.ece.toFixed(3)})]}),(0,Q.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,Q.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Conflicts (",t.length,")"]}),l?t.length===0?(0,Q.jsx)("span",{"data-testid":"conflicts-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no open conflicts."}):t.map(_=>(0,Q.jsx)(Fj,{conflict:_,onResolve:d},_.id)):(0,Q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,Q.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,Q.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Stale references (",o.length,")"]}),l?o.length===0?(0,Q.jsx)("span",{"data-testid":"stale-refs-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no stale references."}):o.map(_=>(0,Q.jsxs)("div",{"data-testid":"stale-ref-row",style:{display:"flex",gap:8,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:[(0,Q.jsx)("span",{style:{color:"var(--honey)",wordBreak:"break-all"},children:_.memoryId}),(0,Q.jsx)("span",{style:{color:"var(--text-tertiary)"},children:_.staleRefs.length>0?_.staleRefs.join(", "):"(refs unrecorded)"})]},_.memoryId)):(0,Q.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,Q.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,Q.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Calibration"}),i.identity?(0,Q.jsx)("span",{"data-testid":"calibration-dormant",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"calibration dormant \u2014 confidence weighting (c) stays 0 until the curve is fit."}):(0,Q.jsxs)("div",{"data-testid":"calibration-view",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,Q.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,Q.jsx)(Vr,{label:"ECE",value:i.ece.toFixed(3)}),(0,Q.jsx)(Vr,{label:"Brier",value:i.brier.toFixed(3)}),(0,Q.jsx)(Vr,{label:"samples",value:String(i.nSamples)})]}),(0,Q.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:i.reliabilityDiagram.map(_=>(0,Q.jsx)(Nj,{lower:_.lower,upper:_.upper,accuracy:_.accuracy},`${_.lower}-${_.upper}`))})]})]})]})}var dw=["fact","convention","preference","decision","gotcha","reference"],od="fact",fx=Object.freeze({fact:"A stable, verifiable truth about the system, codebase, or domain.",convention:"How things are done here: idioms, standards, patterns to follow by default.",preference:"The user/team's stated way of working; corrections and do/don't guidance.",decision:"An architectural or design choice and its rationale; don't relitigate it.",gotcha:"A non-obvious trap, failure mode, or constraint to watch out for.",reference:"A pointer to an external resource (URL, dashboard, ticket, doc)."});var $=L(H(),1),pw=50,Aj=2500,Uj=12,Wj=["/api/memories","/api/diagnostics/pollinate","/api/diagnostics/compact"],Mj=5,Bj=150;function Zj(e){return new Promise(t=>setTimeout(t,e))}function Vj(e){return Wj.some(t=>e.startsWith(t))}function Zi({label:e,value:t}){return t===""?null:(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline"},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",minWidth:84,textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t})]})}var Rl={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function Hj({record:e,onOpen:t}){return(0,$.jsxs)("button",{type:"button","data-testid":"memory-row","data-memory-id":e.id,onClick:()=>t(e.id),style:{display:"flex",alignItems:"center",gap:12,width:"100%",textAlign:"left",padding:"11px 14px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)"},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:160},children:e.id}),(0,$.jsx)("span",{style:{flex:1,fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:e.content}),(0,$.jsx)(Y,{tone:"neutral",mono:!0,children:e.type||"fact"})]})}function Jj({record:e,onClose:t,onEdit:r,onForget:o}){let[n,i]=oe.default.useState(!1),[a,l]=oe.default.useState(e.content),[s,c]=oe.default.useState(""),[d,p]=oe.default.useState(!1),[f,g]=oe.default.useState(""),[x,h]=oe.default.useState(!1);oe.default.useEffect(()=>{l(e.content),c(""),i(!1),h(!1)},[e.id,e.content,e.version]);let _=s.trim()==="",v=a.trim()==="",m=async()=>{if(d||v||_)return;p(!0),g("");let S=await r(e.id,a,s);p(!1),i(!1),c(""),g(S??"Save failed \u2014 the memory is unchanged.")},y=async()=>{if(d)return;p(!0),g("");let S=await o(e.id,"forgotten via dashboard");p(!1),S===null&&g("Forget failed \u2014 the memory is unchanged.")};return(0,$.jsxs)("div",{"data-testid":"memory-detail",style:{...Rl,display:"flex",flexDirection:"column",gap:14},children:[(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:e.id}),(0,$.jsx)(Y,{tone:"neutral",mono:!0,children:e.type||"fact"}),e.hasEmbedding&&(0,$.jsx)(Y,{tone:"pollinate",mono:!0,dot:!0,children:"semantic"}),(0,$.jsx)("span",{style:{flex:1}}),(0,$.jsx)(F,{variant:"ghost",size:"sm",onClick:t,children:"\u2190 back"})]}),n?(0,$.jsx)("textarea",{"aria-label":"edit content",value:a,onChange:S=>l(S.target.value),rows:5,style:{width:"100%",resize:"vertical",padding:"10px 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:14,lineHeight:"20px"}}):(0,$.jsx)("div",{"data-testid":"memory-content",style:{fontSize:14,lineHeight:"21px",color:"var(--text-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.content}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:5,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,$.jsx)(Zi,{label:"scope",value:[e.visibility,e.agentId].filter(S=>S!=="").join(" \xB7 ")}),(0,$.jsx)(Zi,{label:"source",value:[e.sourceType,e.sourceId].filter(S=>S!=="").join(" \xB7 ")}),(0,$.jsx)(Zi,{label:"version",value:e.version>0?String(e.version):""}),(0,$.jsx)(Zi,{label:"indexed",value:e.hasEmbedding?"yes (semantic)":"no (lexical only)"}),(0,$.jsx)(Zi,{label:"created",value:e.createdAt}),(0,$.jsx)(Zi,{label:"updated",value:e.updatedAt})]}),(0,$.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Edits append a new version; the prior is kept in history."}),n?(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,$.jsx)(Sn,{mono:!0,"aria-label":"edit reason",value:s,placeholder:"reason (required) \u2014 why is this changing?",onChange:S=>c(S.target.value)}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(F,{variant:"primary",onClick:()=>{m()},disabled:d||v||_,children:d?"\u2026":"Save new version"}),(0,$.jsx)(F,{variant:"ghost",onClick:()=>i(!1),disabled:d,children:"Cancel"}),_&&(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"a reason is required to save"})]})]}):(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(F,{variant:"secondary",onClick:()=>i(!0),children:"Edit"}),x?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(F,{variant:"danger",onClick:()=>{y()},disabled:d,children:d?"\u2026":"Confirm forget"}),(0,$.jsx)(F,{variant:"ghost",onClick:()=>h(!1),disabled:d,children:"Cancel"}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Forget soft-deletes this memory (a tombstone version)."})]}):(0,$.jsx)(F,{variant:"ghost",onClick:()=>h(!0),children:"Forget"})]}),f!==""&&(0,$.jsx)("div",{"data-testid":"detail-note",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:f})]})}var Gj={height:40,padding:"0 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)"};function Xj({onAdd:e}){let[t,r]=oe.default.useState(""),[o,n]=oe.default.useState(od),[i,a]=oe.default.useState(!1),[l,s]=oe.default.useState(""),c=t.trim()==="",d=async()=>{if(i||c)return;a(!0),s("");let p=await e(t,o);if(a(!1),p===null){s("Add failed \u2014 nothing was stored.");return}r(""),n(od),s(p)};return(0,$.jsxs)("div",{style:{...Rl,display:"flex",flexDirection:"column",gap:10},children:[(0,$.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Add a memory"}),(0,$.jsx)("textarea",{"aria-label":"new content",value:t,onChange:p=>r(p.target.value),rows:3,placeholder:"a fact to remember \u2014 e.g. we deploy via `just release`",style:{width:"100%",resize:"vertical",padding:"10px 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:14,lineHeight:"20px"}}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,$.jsx)("select",{"aria-label":"memory type","data-testid":"add-type",value:o,onChange:p=>n(p.target.value),title:fx[o],style:{...Gj,width:180,cursor:"pointer"},children:dw.map(p=>(0,$.jsx)("option",{value:p,title:fx[p],children:p===od?`${p} (default)`:p},p))}),(0,$.jsx)(F,{variant:"primary",onClick:()=>{d()},disabled:i||c,children:i?"\u2026":"Add memory"}),l!==""&&(0,$.jsx)("span",{"data-testid":"add-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:l})]})]})}function Kj(e){if(e.errored>0)return`${e.table}: attempted, not completed`;let t=[`${e.keysCompacted} keys`,`${e.rowsReaped} rows reaped`];return e.keysSkipped>0&&t.push(`${e.keysSkipped} keys deferred`),`${e.table}: ${t.join(" \xB7 ")}`}function Yj({pollinating:e,onCompact:t,onPollinate:r,watchLines:o,watching:n,onToggleWatch:i}){let[a,l]=oe.default.useState(!1),[s,c]=oe.default.useState(!1),[d,p]=oe.default.useState(null),[f,g]=oe.default.useState(!1),[x,h]=oe.default.useState(""),_=async()=>{if(s)return;l(!1),c(!0);let m=await t();c(!1),p(m)},v=async()=>{if(f)return;g(!0),h("");let m=await r();g(!1),m.triggered?h(m.status==="running"?"already running":"consolidating\u2026"):h(`skipped \xB7 ${m.reason??"unavailable"}`)};return(0,$.jsxs)("div",{style:{...Rl,display:"flex",flexDirection:"column",gap:14},children:[(0,$.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Lifecycle"}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,$.jsx)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(F,{variant:"danger",onClick:()=>{_()},disabled:s,children:s?"\u2026":"Confirm compact"}),(0,$.jsx)(F,{variant:"ghost",onClick:()=>l(!1),disabled:s,children:"Cancel"}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Compaction prunes old memory versions across version-bumped tables. Continue?"})]}):(0,$.jsx)(F,{variant:"secondary",onClick:()=>l(!0),disabled:s,children:"Compact"})}),d!==null&&(0,$.jsxs)("div",{"data-testid":"compact-summary",style:{display:"flex",flexDirection:"column",gap:3},children:[d.summaries.length===0&&d.skippedTables.length===0?(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"nothing reaped this pass"}):d.summaries.map(m=>(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:m.errored>0?"var(--severity-warning)":"var(--text-secondary)"},children:Kj(m)},m.table)),d.skippedTables.length>0&&(0,$.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["skipped (absent): ",d.skippedTables.join(", ")]})]})]}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,$.jsx)(F,{variant:"pollinate",onClick:()=>{v()},disabled:f||e,children:f||e?"pollinating\u2026":"Pollinate now"}),x!==""&&(0,$.jsx)("span",{"data-testid":"pollinate-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:x})]}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(F,{variant:n?"secondary":"ghost",onClick:i,children:n?"Stop watch":"Watch"}),n&&(0,$.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,$.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"memory routes"})]})]}),n&&(0,$.jsx)("div",{"data-testid":"watch-feed",style:{display:"flex",flexDirection:"column",gap:5},children:o.length===0?(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for memory activity\u2026"}):o.map((m,y)=>(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:y===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:m},y))})]})]})}function fw({wire:e,pollinating:t=!1}){let{scope:r}=Et(),o=r.project,[n,i]=oe.default.useState([]),[a,l]=oe.default.useState(pw),[s,c]=oe.default.useState(!1),[d,p]=oe.default.useState(""),[f,g]=oe.default.useState([]),[x,h]=oe.default.useState(!1),[_,v]=oe.default.useState(!1),[m,y]=oe.default.useState(!1),[S,P]=oe.default.useState(null),[j,R]=oe.default.useState(null),[B,K]=oe.default.useState(!1),[M,Ve]=oe.default.useState(!1),[re,Ee]=oe.default.useState([]),_e=oe.default.useCallback(async G=>{if(o===void 0)return i([]),c(!0),[];let de=await e.listMemories(G,o);return i(de),c(!0),de},[e,o]);oe.default.useEffect(()=>{_e(a)},[_e,a]),oe.default.useEffect(()=>{if(!M)return;let G=!0,de=async()=>{if(!G||cn())return;let pn=await e.logs(40);if(!G)return;let Cn=pn.filter(Hn=>Vj(Hn.path)).slice(-Uj).reverse().map(Wr);Ee(Cn)};de();let Ne=setInterval(()=>{de()},Aj);return()=>{G=!1,clearInterval(Ne)}},[M,e]);let xt=oe.default.useCallback(async()=>{let G=d.trim();if(G===""){v(!1),g([]);return}h(!0);let{memories:de,degraded:Ne}=await e.recall(G,o);g(de),y(Ne),v(!0),h(!1)},[d,e,o]),Yt=oe.default.useCallback(()=>{p(""),v(!1),g([])},[]),Hr=oe.default.useCallback(async G=>{P(G),R(null),K(!1);let de=await e.getMemory(G);if(de===null){K(!0);return}R(de)},[e]),dn=oe.default.useCallback(()=>{P(null),R(null),K(!1)},[]),cr=oe.default.useCallback(async(G,de)=>{let Ne=null;for(let pn=0;pn<Mj;pn+=1){if(Ne=await e.getMemory(G),Ne!==null&&de(Ne))return Ne;await Zj(Bj)}return Ne},[e]),$e=oe.default.useCallback(async(G,de,Ne)=>{if(await e.modifyMemory(G,{content:de,reason:Ne})===null){let Hn=await e.getMemory(G);return Hn!==null&&R(Hn),null}let Cn=await cr(G,Hn=>Hn.content===de||Hn.version>0);return Cn!==null&&R(Cn),_e(a),"saved \xB7 new version"},[e,cr,_e,a]),dt=oe.default.useCallback(async(G,de)=>await e.forgetMemory(G,{reason:de})===null?null:(dn(),_e(a),"forgotten"),[e,dn,_e,a]),Rn=oe.default.useCallback(async(G,de)=>{let Ne=await e.addMemory({content:G,...de!==""?{type:de}:{}});return Ne===null?null:(await _e(a),Ne.id!==null?`stored \xB7 ${Ne.id}`:`stored \xB7 ${Ne.action||"ok"}`)},[e,_e,a]),Jr=oe.default.useCallback(()=>e.compact(),[e]),pe=oe.default.useCallback(()=>e.pollinate(),[e]),Ft=oe.default.useCallback(()=>{Ve(G=>!G),Ee([])},[]),bt=S!==null;return(0,$.jsx)(Be,{eyebrow:"memories",title:"Memories",right:(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:o===void 0?"no project":`${n.length} kept`}),children:o===void 0?(0,$.jsx)(Br,{surface:"memories"}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:16},children:[(0,$.jsx)("div",{style:{flex:1},children:(0,$.jsx)(Sn,{mono:!0,size:"lg",value:d,placeholder:"search memories\u2026 e.g. how do we deploy",onChange:G=>p(G.target.value),onKeyDown:G=>{G.key==="Enter"&&xt()}})}),(0,$.jsx)(F,{variant:"primary",size:"lg",onClick:()=>{xt()},disabled:x,children:x?"\u2026":"Search"}),_&&(0,$.jsx)(F,{variant:"ghost",size:"lg",onClick:Yt,children:"Clear"})]}),_&&m&&(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,$.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",children:(0,$.jsx)(Y,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})]}),bt?B?(0,$.jsxs)("div",{"data-testid":"memory-forgotten",style:{...Rl,display:"flex",flexDirection:"column",gap:12},children:[(0,$.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)"},children:"This memory was forgotten (or its id is unknown)."}),(0,$.jsx)("div",{children:(0,$.jsx)(F,{variant:"ghost",size:"sm",onClick:dn,children:"\u2190 back"})})]}):j!==null?(0,$.jsx)(Jj,{record:j,onClose:dn,onEdit:$e,onForget:dt}):(0,$.jsx)("div",{style:{...Rl,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}):(0,$.jsxs)($.Fragment,{children:[_?(0,$.jsx)("div",{"data-testid":"search-results",style:{display:"flex",flexDirection:"column",gap:10,marginBottom:18},children:f.length===0?(0,$.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):f.map((G,de)=>(0,$.jsx)(nc,{...G,pollinating:t&&de===1},G.memoryKey))}):(0,$.jsx)("div",{"data-testid":"memory-list",style:{display:"flex",flexDirection:"column",gap:8,marginBottom:18},children:s?n.length===0?(0,$.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories yet."}):(0,$.jsxs)($.Fragment,{children:[n.map(G=>(0,$.jsx)(Hj,{record:G,onOpen:Hr},G.id)),n.length>=a&&(0,$.jsx)("div",{style:{paddingTop:4},children:(0,$.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>l(G=>G+pw),children:"Load more"})})]}):(0,$.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,$.jsx)(Xj,{onAdd:Rn}),(0,$.jsx)(uw,{wire:e}),(0,$.jsx)(Yj,{pollinating:t,onCompact:Jr,onPollinate:pe,watchLines:re,watching:M,onToggleWatch:Ft})]})]})]})})}var be=L(ye(),1);var D=L(H(),1),ad="__unsorted__",mx={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function gx(){return(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"\u2014"})}function qj(e){if(e===null||e==="")return(0,D.jsx)("span",{style:{color:"var(--text-tertiary)"},children:"never"});let t=Date.parse(e);return Number.isNaN(t)?(0,D.jsx)(gx,{}):new Date(t).toLocaleString()}function Qj({project:e,wire:t,onOpen:r,onUnbound:o}){let[n,i]=be.default.useState(!1),[a,l]=be.default.useState(null),[s,c]=be.default.useState(!1),[d,p]=be.default.useState(""),f=be.default.useRef(!1),g=async()=>{if(a===null||f.current)return;f.current=!0,c(!0),p("");let x=await t.unbindProject({path:a});if(c(!1),f.current=!1,x.unbound){i(!1),l(null),o();return}p("No binding matched that folder \u2014 capture is unchanged.")};return(0,D.jsxs)("div",{"data-testid":"project-row","data-project-id":e.projectId,style:{...mx,display:"flex",flexDirection:"column",gap:10},children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--honey)"},children:e.name!==""?e.name:e.projectId}),(0,D.jsx)(Y,{tone:"verified",mono:!0,dot:!0,children:"sourcing"}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)(F,{variant:"secondary",size:"sm",onClick:()=>r(e.projectId),"data-testid":"project-open",children:"Open"}),(0,D.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>i(x=>!x),"data-testid":"project-unbind",children:n?"Cancel":"Unbind"})]}),(0,D.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:8,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)(id,{label:"bound path",value:(0,D.jsx)(e6,{paths:e.boundPaths})}),(0,D.jsx)(id,{label:"git remote",value:e.remote!==""?e.remote:(0,D.jsx)(gx,{})}),(0,D.jsx)(id,{label:"last capture",value:qj(e.lastCapture)}),(0,D.jsx)(id,{label:"memories / sessions",value:`${e.memoryCount} / ${e.sessionCount}`})]}),n&&(0,D.jsxs)("div",{"data-testid":"project-unbind-panel",style:{display:"flex",flexDirection:"column",gap:10,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Pick the folder to release. Unbind removes this device\u2019s binding (capture stops there); the project and its memories are kept."}),(0,D.jsx)(gw,{wire:t,onSelect:l,selected:a}),(0,D.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,D.jsx)(F,{variant:"danger",size:"sm",onClick:()=>{g()},disabled:s||a===null,"data-testid":"project-unbind-confirm",children:s?"\u2026":"Unbind this folder"}),d!==""&&(0,D.jsx)("span",{"data-testid":"project-unbind-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-warning)"},children:d})]})]})]})}function e6({paths:e}){return e.length===0?(0,D.jsx)(gx,{}):(0,D.jsx)("span",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map(t=>(0,D.jsx)("span",{title:t,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t},t))})}function id({label:e,value:t}){return(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:t})]})}function t6({inbox:e}){return(0,D.jsxs)("div",{"data-testid":"inbox-row",style:{...mx,display:"flex",alignItems:"center",gap:10,borderStyle:"dashed"},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-secondary)"},children:"(unsorted inbox)"}),(0,D.jsx)(Y,{tone:"neutral",mono:!0,children:ad}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsxs)("span",{"data-testid":"inbox-size",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["size ",e.sessionCount]})]})}function n6({onNew:e,onImport:t}){let[r,o]=be.default.useState(!1);return(0,D.jsxs)("div",{style:{position:"relative"},children:[(0,D.jsx)(F,{variant:"primary",size:"sm",onClick:()=>o(n=>!n),"data-testid":"add-menu-toggle",children:"+ Add"}),r&&(0,D.jsxs)("div",{"data-testid":"add-menu",style:{position:"absolute",right:0,top:38,zIndex:5,display:"flex",flexDirection:"column",minWidth:180,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-md, 0 6px 24px rgba(0,0,0,0.18))",overflow:"hidden"},children:[(0,D.jsx)(mw,{label:"New folder",hint:"pick a folder to bind",onClick:()=>{o(!1),e()},testId:"add-new"}),(0,D.jsx)(mw,{label:"Import existing",hint:"from the cloud registry",onClick:()=>{o(!1),t()},testId:"add-import"})]})]})}function mw({label:e,hint:t,onClick:r,testId:o}){return(0,D.jsxs)("button",{type:"button","data-testid":o,onClick:r,style:{display:"flex",flexDirection:"column",gap:2,width:"100%",textAlign:"left",padding:"9px 12px",background:"transparent",border:"none",borderBottom:"1px solid var(--border-subtle)",cursor:"pointer"},children:[(0,D.jsx)("span",{style:{fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:t})]})}function r6({wire:e,onClose:t,onImported:r}){let[o,n]=be.default.useState([]),[i,a]=be.default.useState(!1),[l,s]=be.default.useState(null),[c,d]=be.default.useState(null),[p,f]=be.default.useState(!1),[g,x]=be.default.useState(""),h=be.default.useRef(!1);be.default.useEffect(()=>{let v=!0;return(async()=>{let m=await e.scopeProjects({unbound:!0});v&&(n(m.filter(y=>y.projectId!==ad)),a(!0))})(),()=>{v=!1}},[e]);let _=be.default.useCallback(async()=>{if(l===null||c===null||h.current)return;h.current=!0,f(!0),x("");let v=await e.bindExistingProject({path:c,projectId:l});if(f(!1),h.current=!1,v.bound){r(v);return}x(v.error!==void 0&&v.error!==""?v.error:"Could not import that project.")},[l,c,e,r]);return(0,D.jsx)(o6,{title:"Import project from cloud",onClose:t,testId:"import-modal",children:(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"projects in this workspace not yet on this device"}),i?o.length===0?(0,D.jsx)("span",{"data-testid":"import-empty",style:{fontSize:13,color:"var(--text-tertiary)"},children:"Every registry project is already bound on this device. Nothing to import."}):(0,D.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:200,overflowY:"auto"},children:o.map(v=>(0,D.jsx)("button",{type:"button","data-testid":"import-project","data-project-id":v.projectId,onClick:()=>s(v.projectId),"aria-pressed":l===v.projectId,style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:l===v.projectId?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${l===v.projectId?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",cursor:"pointer",color:l===v.projectId?"var(--honey)":"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600},children:v.name!==""?v.name:v.projectId},v.projectId))}):(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),l!==null&&(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,D.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:["pick this device\u2019s folder for ",(0,D.jsx)("span",{style:{color:"var(--honey)"},children:l})]}),(0,D.jsx)(gw,{wire:e,onSelect:d,selected:c})]}),(0,D.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,D.jsx)(F,{variant:"primary",onClick:()=>{_()},disabled:p||l===null||c===null,"data-testid":"import-confirm",children:p?"Importing\u2026":"Import project"}),(0,D.jsx)(F,{variant:"ghost",onClick:t,disabled:p,children:"Cancel"}),g!==""&&(0,D.jsx)("span",{"data-testid":"import-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:g})]})]})})}function gw({wire:e,onSelect:t,selected:r}){let[o,n]=be.default.useState(""),[i,a]=be.default.useState(null),[l,s]=be.default.useState([]),[c,d]=be.default.useState(!1),p=be.default.useCallback(async f=>{let g=await e.fsBrowse(f);n(g.path),a(g.parent),s(g.children),d(!0)},[e]);return be.default.useEffect(()=>{p(void 0)},[p]),c&&o===""&&l.length===0?(0,D.jsxs)("span",{"data-testid":"folderselect-unavailable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["The folder browser isn\u2019t available \u2014 bind from your terminal: ",(0,D.jsx)("code",{style:{color:"var(--honey)"},children:"honeycomb project bind"})]}):(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,D.jsx)("span",{style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o!==""?o:"loading\u2026"}),(0,D.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>{p(i??void 0)},disabled:i===null,children:"\u2191 up"}),(0,D.jsx)(F,{variant:"secondary",size:"sm",onClick:()=>t(o),disabled:o==="","data-testid":"folderselect-use",children:"Use this folder"})]}),(0,D.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:180,overflowY:"auto"},children:l.map(f=>(0,D.jsxs)("button",{type:"button","data-testid":"folderselect-row",onClick:()=>{p(f.path)},style:{display:"flex",alignItems:"center",gap:8,width:"100%",textAlign:"left",padding:"8px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13},children:[(0,D.jsx)("span",{style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:f.name}),f.isGitRepo&&(0,D.jsx)(Y,{tone:"honey",mono:!0,children:"git"})]},f.path))}),r!==null&&(0,D.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)"},children:["selected: ",r]})]})}function o6({title:e,onClose:t,testId:r,children:o}){return(0,D.jsx)("div",{"data-testid":r,role:"dialog","aria-modal":"true","aria-label":e,onClick:t,style:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"64px 16px",background:"rgba(0,0,0,0.45)"},children:(0,D.jsxs)("div",{onClick:n=>n.stopPropagation(),style:{width:"100%",maxWidth:560,maxHeight:"80vh",overflowY:"auto",padding:20,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,D.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:700,color:"var(--text-primary)",margin:0},children:e}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)(F,{variant:"ghost",size:"sm",onClick:t,"aria-label":"close",children:"\u2715"})]}),o]})})}function vw({wire:e}){let{scope:t,setScope:r}=Et(),[o,n]=be.default.useState([]),[i,a]=be.default.useState(!1),[l,s]=be.default.useState("none"),c=be.default.useCallback(async()=>{let h=await e.scopeProjects();n(h),a(!0)},[e]);be.default.useEffect(()=>{c()},[c]);let d=o.filter(h=>h.boundLocally&&h.projectId!==ad),p=o.find(h=>h.projectId===ad),f=be.default.useCallback(h=>{r({org:t.org,workspace:t.workspace,project:h})},[r,t.org,t.workspace]),g=be.default.useCallback(h=>{s("none"),c()},[c]),x=be.default.useCallback(h=>{s("none"),c()},[c]);return(0,D.jsxs)(Be,{eyebrow:"projects",title:"Projects",right:(0,D.jsx)(n6,{onNew:()=>s("new"),onImport:()=>s("import")}),children:[l==="new"&&(0,D.jsxs)("div",{style:{...mx,marginBottom:16},children:[(0,D.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)",marginBottom:10},children:"Add a project"}),(0,D.jsx)(nd,{wire:e,onBound:g,onCancel:()=>s("none")})]}),l==="import"&&(0,D.jsx)(r6,{wire:e,onClose:()=>s("none"),onImported:x}),(0,D.jsxs)("div",{"data-testid":"projects-list",style:{display:"flex",flexDirection:"column",gap:10},children:[i?d.length===0?(0,D.jsxs)("div",{"data-testid":"projects-empty",style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No active projects on this device yet. Use ",(0,D.jsx)("strong",{children:"+ Add"})," to bind a folder or import an existing project."]}):d.map(h=>(0,D.jsx)(Qj,{project:h,wire:e,onOpen:f,onUnbound:()=>{c()}},h.projectId)):(0,D.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}),p!==void 0&&(0,D.jsx)(t6,{inbox:p})]})]})}var Zn=L(ye(),1);var ld=L(ye(),1),un=L(H(),1),Vi={width:640,height:200},Pn={top:12,right:12,bottom:18,left:12};function yw(e,t){return e.includes("net")?"var(--honey)":e.includes("infra")||e.includes("cost")?"var(--severity-info)":t?"var(--severity-warning)":"var(--verified)"}function i6(e){let t=0,r=0;for(let o of e)for(let n of o.points)n.cents<t&&(t=n.cents),n.cents>r&&(r=n.cents);return r===t&&(r=t+1),{min:t,max:r}}function a6(e){let t=Vi.height-Pn.top-Pn.bottom,r=(0-e.min)/(e.max-e.min);return Pn.top+t-r*t}function l6(e,t){let r=e.points;if(r.length===0)return"";let o=Vi.width-Pn.left-Pn.right,n=Vi.height-Pn.top-Pn.bottom,i=r.length>1?o/(r.length-1):0,a=t.max-t.min;return r.map((l,s)=>{let c=Pn.left+s*i,d=Math.max(0,Math.min(1,(l.cents-t.min)/a)),p=Pn.top+n-d*n;return`${c.toFixed(1)},${p.toFixed(1)}`}).join(" ")}function s6(){try{return typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1}catch{return!1}}function hw({trend:e}){let t=ld.default.useMemo(()=>s6(),[]),[r,o]=ld.default.useState(t);ld.default.useEffect(()=>{if(t)return;let l=requestAnimationFrame(()=>o(!0));return()=>cancelAnimationFrame(l)},[t]);let n=e.series.some(l=>l.points.length>0);if(e.status==="absent"||!n)return(0,un.jsx)("div",{"data-testid":"roi-trend-empty",style:{padding:"28px 8px",textAlign:"center",fontSize:13,color:"var(--text-tertiary)"},children:e.startedAt!==""?`Savings tracked from ${e.startedAt}.`:"No trend history yet."});let i=i6(e.series),a=a6(i);return(0,un.jsxs)("div",{"data-testid":"roi-trend-chart",children:[(0,un.jsxs)("svg",{viewBox:`0 0 ${Vi.width} ${Vi.height}`,style:{width:"100%",height:200,display:"block"},role:"img","aria-label":"ROI trend over time",children:[(0,un.jsx)("line",{x1:Pn.left,y1:a,x2:Vi.width-Pn.right,y2:a,stroke:"var(--border-subtle)",strokeWidth:"1"}),e.series.map(l=>{let s=l6(l,i);if(s==="")return null;let c=yw(l.label,l.modeled);return(0,un.jsx)("polyline",{"data-testid":`roi-trend-series-${l.label}`,"data-modeled":l.modeled?"true":"false",points:s,fill:"none",stroke:c,strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:l.modeled?"5 4":void 0,style:{opacity:r?1:0,transition:t?void 0:"opacity var(--dur-base) var(--ease-out)"}},l.label)})]}),(0,un.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:14,marginTop:8},children:e.series.map(l=>(0,un.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,un.jsx)("svg",{width:22,height:8,"aria-hidden":"true",style:{flex:"none"},children:(0,un.jsx)("line",{x1:1,y1:4,x2:21,y2:4,stroke:yw(l.label,l.modeled),strokeWidth:"2",strokeDasharray:l.modeled?"4 3":void 0})}),(0,un.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:[l.label,l.modeled?" (est.)":""]})]},l.label))})]})}var T=L(H(),1),c6="#/settings",u6=6e4,d6=15e3,p6="30d",f6=["7d","30d","90d"],sd="\u2014";function Vn(e,t=!1){let r=e<0?"-":"",o=Math.abs(e)/100,n=`${r}$${o.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}`;return t?`~${n} est.`:n}function m6(e){return e===null?sd:`$${(e/100).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}/Mtok`}function xw(e){return e?"warning":"verified"}function g6(e){return e?"var(--text-secondary)":"var(--text-primary)"}function kw(e){return e<0?"var(--severity-critical)":"var(--verified)"}function yx(e){return e==="allocated"}function v6(e){return e>0?"var(--severity-critical)":e<0?"var(--verified)":"var(--text-tertiary)"}function Hi({children:e,color:t="var(--text-tertiary)"}){return(0,T.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:t},children:e})}function y6({assumption:e}){let[t,r]=Zn.default.useState(!1),o=e.assumptionText!==""?e.assumptionText:"Assumption not yet provided.";return(0,T.jsxs)("span",{style:{position:"relative",display:"inline-flex"},children:[(0,T.jsx)("button",{type:"button","data-testid":"assumption-info","aria-label":"modeled assumption","aria-expanded":t,onClick:()=>r(n=>!n),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onFocus:()=>r(!0),onBlur:()=>r(!1),style:{width:16,height:16,padding:0,borderRadius:"var(--radius-full)",border:"1px solid var(--border-strong)",background:"transparent",color:"var(--text-tertiary)",fontFamily:"var(--font-mono)",fontSize:10,lineHeight:1,cursor:"pointer"},children:"i"}),t&&(0,T.jsxs)("span",{role:"tooltip","data-testid":"assumption-popover",style:{position:"absolute",top:22,left:0,zIndex:5,width:260,padding:"8px 10px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-md)",fontSize:12,lineHeight:"16px",color:"var(--text-secondary)"},children:[o,!e.signedOff&&(0,T.jsx)("span",{style:{display:"block",marginTop:4,fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:"provisional \u2014 not yet signed off"})]})]})}function bw({label:e,cents:t,modeled:r,dash:o,indent:n,tone:i,toneLabel:a,trailing:l,testid:s}){return(0,T.jsxs)("div",{"data-testid":s,style:{display:"flex",alignItems:"center",gap:10,padding:"10px 6px",paddingLeft:n?22:6,borderTop:"1px solid var(--border-subtle)"},children:[(0,T.jsx)("span",{style:{fontSize:14,color:n?"var(--text-secondary)":"var(--text-primary)"},children:e}),(0,T.jsx)(Y,{tone:i,mono:!0,children:a}),l,(0,T.jsx)("span",{style:{flex:1}}),(0,T.jsx)("span",{"data-testid":`${s}-figure`,"data-modeled":r?"true":"false",style:{fontFamily:"var(--font-mono)",fontSize:n?15:17,fontWeight:700,color:o?"var(--text-tertiary)":g6(r)},children:o?sd:Vn(t,r)})]})}function vx(e){return e==="absent"||e==="unreachable"||e==="unauthenticated"}function h6({net:e,onRetry:t,retrying:r}){let o=e.computed&&e.status==="ok",n=yx(e.costBasis);return(0,T.jsx)(te,{title:"Net ROI",eyebrow:e.modeled?"saved \u2212 (infra + pollination) \xB7 est.":"saved \u2212 (infra + pollination)",children:(0,T.jsxs)("div",{"data-testid":"net-hero",style:{display:"flex",alignItems:"center",gap:16,padding:"14px 6px",flexWrap:"wrap"},children:[(0,T.jsx)("span",{"data-testid":"net-figure","data-computed":o?"true":"false",style:{fontFamily:"var(--font-mono)",fontSize:40,fontWeight:800,lineHeight:1,letterSpacing:"-0.02em",color:o?kw(e.netCents):"var(--text-tertiary)"},children:o?Vn(e.netCents,!0):sd}),o?(0,T.jsx)(Y,{tone:"warning",mono:!0,children:"est."}):e.status==="unreachable"?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Hi,{children:"net not computed - billing is unreachable"}),(0,T.jsx)(F,{variant:"ghost",size:"sm","data-testid":"net-retry",disabled:r,onClick:t,children:r?"retrying...":"Retry"})]}):(0,T.jsx)(Hi,{children:"net not computed yet"}),o&&n&&(0,T.jsx)(Hi,{children:"includes an allocated (estimated) infra share"})]})})}function x6(){return(0,T.jsx)("span",{"data-testid":"claude-code-only",style:{marginLeft:4,display:"inline-flex"},children:(0,T.jsx)(Y,{tone:"info",children:"Claude Code only"})})}function b6({savings:e}){let t=vx(e.status);return(0,T.jsx)(te,{title:"Savings",eyebrow:"measured cache \xB7 modeled memory injection",right:e.status==="partial"?(0,T.jsx)(x6,{}):void 0,children:(0,T.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,T.jsx)(bw,{testid:"savings-measured",label:"Measured cache savings",cents:e.measuredCents,modeled:!1,dash:t,tone:xw(!1),toneLabel:"measured"}),(0,T.jsx)(bw,{testid:"savings-modeled",label:"Modeled memory-injection savings",cents:e.modeledCents,modeled:!0,dash:t,indent:!0,tone:xw(!0),toneLabel:"modeled",trailing:(0,T.jsx)(y6,{assumption:e.assumption})}),(0,T.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,T.jsx)(Hi,{children:"blended rate"}),(0,T.jsx)("span",{style:{flex:1}}),(0,T.jsx)("span",{"data-testid":"blended-rate",style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:m6(e.blendedCentsPerMtok)})]})]})})}function Sw({label:e,cents:t,deltaCents:r,dash:o,testid:n}){return(0,T.jsxs)("div",{"data-testid":n,style:{display:"flex",flexDirection:"column",gap:8,padding:18,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,T.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,T.jsx)("span",{"data-testid":`${n}-figure`,style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:700,lineHeight:1,color:o?"var(--text-tertiary)":"var(--text-primary)",letterSpacing:"-0.01em"},children:o?sd:Vn(t)}),!o&&r!==void 0&&r!==0&&(0,T.jsxs)("span",{"data-testid":`${n}-delta`,style:{fontFamily:"var(--font-mono)",fontSize:12,color:v6(r)},children:[r>0?"\u25B2":"\u25BC"," ",Vn(Math.abs(r))," vs prior period"]})]})}function S6({infraCents:e,infraDash:t,infraBasis:r,pollinationCents:o,pollinationDash:n,pollinationLines:i,infraDeltaCents:a}){return(0,T.jsxs)(te,{title:"Cost",eyebrow:"infra \xB7 pollination",children:[(0,T.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12,marginBottom:6},children:[(0,T.jsx)(Sw,{testid:"infra-kpi",label:yx(r)?"Infra (allocated, est.)":"Infra cost",cents:e,deltaCents:a,dash:t}),(0,T.jsx)(Sw,{testid:"pollination-kpi",label:"Pollination cost",cents:o,dash:n})]}),(0,T.jsx)("div",{"data-testid":"pollination-lines",children:n||i.length===0?(0,T.jsx)("div",{style:{padding:"10px 6px",fontSize:13,color:"var(--text-tertiary)"},children:n?"Pollination cost unavailable.":"No pollination contributors yet."}):i.map((l,s)=>(0,T.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,T.jsx)(Hi,{children:l.label}),(0,T.jsx)("span",{style:{flex:1}}),(0,T.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:Vn(l.cents)})]},l.label||s))})]})}function _w({label:e,active:t,onClick:r,testid:o}){return(0,T.jsx)("button",{type:"button","data-testid":o,"aria-pressed":t,onClick:r,style:{height:30,padding:"0 12px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:12,fontWeight:600,cursor:"pointer"},children:e})}var k6=["org","team","agent","project"];function _6({rollup:e,perUserAvailable:t}){return e.dimension==="agent"&&!t?(0,T.jsx)("div",{"data-testid":`rollup-${e.dimension}`,children:(0,T.jsx)("div",{"data-testid":"per-user-empty",style:{marginTop:10,padding:"10px 12px",background:"var(--severity-info-bg)",border:"1px solid var(--severity-info)",borderRadius:"var(--radius-md)"},children:(0,T.jsx)(Hi,{color:"var(--severity-info)",children:"Per-user requires verified login - sign in to attribute ROI per person."})})}):(0,T.jsxs)("div",{"data-testid":`rollup-${e.dimension}`,children:[e.mixedBasis&&(0,T.jsx)("div",{"data-testid":"mixed-basis-caption",style:{padding:"8px 6px",marginBottom:4,fontSize:12,color:"var(--severity-warning)",fontFamily:"var(--font-mono)"},children:"mixed measured + allocated \u2014 rows are not summed into one net"}),e.rows.length===0?(0,T.jsxs)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e.dimension," rows yet."]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr auto auto auto",gap:12,padding:"4px 6px 8px"},children:["","saved","infra","net"].map((r,o)=>(0,T.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:o===0?"left":"right"},children:r},o))}),e.rows.map((r,o)=>{let n=yx(r.costBasis);return(0,T.jsxs)("div",{"data-testid":`rollup-row-${e.dimension}-${r.key}`,style:{display:"grid",gridTemplateColumns:"1fr auto auto auto",gap:12,alignItems:"center",padding:"9px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,T.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,T.jsx)("span",{style:{fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.label||r.key}),n&&(0,T.jsx)("span",{"data-testid":`rollup-allocated-${r.key}`,style:{display:"inline-flex"},children:(0,T.jsx)(Y,{tone:"warning",mono:!0,children:"allocated est."})})]}),(0,T.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)",textAlign:"right"},children:Vn(r.measuredSavingsCents)}),(0,T.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:n?"var(--text-secondary)":"var(--text-primary)",textAlign:"right"},children:n?Vn(r.infraCostCents,!0):Vn(r.infraCostCents)}),(0,T.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:kw(r.netCents),textAlign:"right"},children:n?Vn(r.netCents,!0):Vn(r.netCents)})]},r.key||o)})]})]})}function $6({rollups:e,perUserAvailable:t}){let r=k6.filter(l=>e.some(s=>s.dimension===l)),[o,n]=Zn.default.useState(r[0]??"org"),i=r.includes(o)?o:r[0]??"org",a=e.find(l=>l.dimension===i);return(0,T.jsx)(te,{title:"Rollups",eyebrow:"org \xB7 team \xB7 agent \xB7 project",right:(0,T.jsx)("div",{style:{display:"flex",gap:6},children:r.map(l=>(0,T.jsx)(_w,{testid:`rollup-tab-${l}`,label:l,active:l===i,onClick:()=>n(l)},l))}),children:r.length===0||a===void 0?(0,T.jsx)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:"No rollups yet."}):(0,T.jsx)(_6,{rollup:a,perUserAvailable:t})})}function w6(){return(0,T.jsx)(te,{title:"ROI ledger",eyebrow:"locked",children:(0,T.jsxs)("div",{"data-testid":"auth-gate",style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,padding:"20px 8px"},children:[(0,T.jsx)("span",{"data-testid":"auth-redacted-status",style:{display:"inline-flex"},children:(0,T.jsx)(Y,{tone:"neutral",mono:!0,dot:!0,children:"not connected"})}),(0,T.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)",maxWidth:460},children:"Connect Honeycomb to read the shared ROI ledger. The dashboard never holds your credentials \u2014 the daemon is the sole egress."}),(0,T.jsx)(F,{variant:"primary",size:"sm","data-testid":"auth-settings-cta",onClick:()=>{window.location.hash=c6},children:"Open Settings"})]})})}function $w({wire:e}){let{scope:t}=Et(),r=t.project,[o,n]=Zn.default.useState(Uu),[i,a]=Zn.default.useState(Wu),[l,s]=Zn.default.useState(p6),[c,d]=Zn.default.useState(!1),p=Zn.default.useCallback(async()=>{let h=await e.roi(r);n(h)},[e,r]);wn(p,u6),wn(p,d6),Zn.default.useEffect(()=>{let h=!0;return(async()=>{let _=await e.roiTrend(l,r);h&&a(_)})(),()=>{h=!1}},[e,l,r]);let f=Zn.default.useCallback(async()=>{d(!0);try{await p();let h=await e.roiTrend(l,r);a(h)}finally{d(!1)}},[p,e,l,r]),g=o.savings.status==="unauthenticated"||o.net.status==="unauthenticated",x=o.scopedAcrossDevices?"across devices":"this device";return(0,T.jsx)(Be,{title:"ROI",eyebrow:`net-roi ledger \xB7 ${x}`,children:g?(0,T.jsx)(w6,{}):(0,T.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,T.jsx)(h6,{net:o.net,onRetry:()=>{f()},retrying:c}),(0,T.jsx)(b6,{savings:o.savings}),(0,T.jsx)(S6,{infraCents:o.infra.cents,infraDash:vx(o.infra.status),infraBasis:o.infra.costBasis,pollinationCents:o.pollination.cents,pollinationDash:vx(o.pollination.status),pollinationLines:o.pollination.lines}),(0,T.jsx)(te,{title:"Trend",eyebrow:"measured (solid) \xB7 modeled (dashed)",right:(0,T.jsx)("div",{style:{display:"flex",gap:6},children:f6.map(h=>(0,T.jsx)(_w,{testid:`trend-range-${h}`,label:h,active:h===l,onClick:()=>s(h)},h))}),children:(0,T.jsx)(hw,{trend:i})}),(0,T.jsx)($6,{rollups:o.rollups,perUserAvailable:o.perUserAvailable}),(0,T.jsxs)("div",{"data-testid":"assumption-footnote",style:{marginTop:4,padding:"12px 6px",borderTop:"1px solid var(--border-subtle)",fontSize:12,lineHeight:"18px",color:"var(--text-tertiary)"},children:[(0,T.jsx)("span",{style:{fontWeight:600,color:"var(--text-secondary)"},children:"Modeled estimate assumption: "}),o.savings.assumption.assumptionText!==""?o.savings.assumption.assumptionText:"Assumption not yet provided.",o.ratesAsOf!==""&&(0,T.jsxs)("span",{style:{marginLeft:8,fontFamily:"var(--font-mono)"},children:["\xB7 rates as of ",o.ratesAsOf]})]})]})})}var me=L(ye(),1);var ww=Object.freeze([{symbol:"a",configPath:"memory.lifecycle.activationExponent",envOverride:"HONEYCOMB_LIFECYCLE_ACTIVATION_EXPONENT",defaultValue:"1",effect:"exponent on the activation/freshness term A^a"},{symbol:"c",configPath:"memory.lifecycle.confidenceExponent",envOverride:"HONEYCOMB_LIFECYCLE_CONFIDENCE_EXPONENT",defaultValue:"0",effect:"exponent on the calibrated-confidence term C^c (dormant until calibrated)"},{symbol:"s",configPath:"memory.lifecycle.stalenessExponent",envOverride:"HONEYCOMB_LIFECYCLE_STALENESS_EXPONENT",defaultValue:"0",effect:"exponent on the staleness term (1 \u2212 \u03C3)^s (0 under observe)"},{symbol:"h(memories)",configPath:"memory.lifecycle.halfLifeDaysByClass.memories",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_MEMORIES_DAYS",defaultValue:"180 d",effect:"shapes A for distilled facts (slower decay)"},{symbol:"h(memory)",configPath:"memory.lifecycle.halfLifeDaysByClass.memory",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_MEMORY_DAYS",defaultValue:"45 d",effect:"shapes A for session summaries"},{symbol:"h(sessions)",configPath:"memory.lifecycle.halfLifeDaysByClass.sessions",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_SESSIONS_DAYS",defaultValue:"10 d",effect:"shapes A for raw dialogue (fastest decay)"},{symbol:"d",configPath:"memory.lifecycle.actrDecay",envOverride:"HONEYCOMB_LIFECYCLE_ACTR_DECAY",defaultValue:"0.5",effect:"ACT-R decay shaping A (Stage 2)"},{symbol:"A_min",configPath:"memory.lifecycle.activationFloor",envOverride:"HONEYCOMB_LIFECYCLE_ACTIVATION_FLOOR",defaultValue:"0.05",effect:"clamps A so a cold memory keeps a sliver of salience"},{symbol:"h_verify",configPath:"memory.lifecycle.verificationHalfLifeDays",envOverride:"HONEYCOMB_LIFECYCLE_VERIFICATION_HALFLIFE_DAYS",defaultValue:"14 d",effect:"shapes \u03C3 via the verification-freshness factor v(m,t)"},{symbol:"\u03B8_detect",configPath:"memory.lifecycle.contradictionThreshold",envOverride:"HONEYCOMB_LIFECYCLE_CONTRADICTION_THRESHOLD",defaultValue:"0.6",effect:"gates conflict detection (Contra > \u03B8_detect)"},{symbol:"\u03B3",configPath:"memory.lifecycle.corroborationWeight",envOverride:"HONEYCOMB_LIFECYCLE_CORROBORATION_WEIGHT",defaultValue:"0.5",effect:"shapes the conflict vote weight w_i"},{symbol:"\u03C4_supersede",configPath:"memory.lifecycle.supersedeMargin",envOverride:"HONEYCOMB_LIFECYCLE_SUPERSEDE_MARGIN",defaultValue:"0.5",effect:"conflict verdict cut (margin \u2265 \u03C4_supersede \u2192 supersede)"},{symbol:"\u03C4_review",configPath:"memory.lifecycle.reviewMargin",envOverride:"HONEYCOMB_LIFECYCLE_REVIEW_MARGIN",defaultValue:"0.15",effect:"conflict verdict cut (\u03C4_review \u2264 margin < \u03C4_supersede \u2192 review)"},{symbol:"\u03C1",configPath:"memory.lifecycle.openConflictSuppression",envOverride:"HONEYCOMB_LIFECYCLE_OPEN_CONFLICT_SUPPRESSION",defaultValue:"0",effect:"\u03BA for the open-conflict loser (0 fully suppress, reversible)"},{symbol:"auto-resolve",configPath:"memory.lifecycle.conflictAutoResolve",envOverride:"HONEYCOMB_LIFECYCLE_CONFLICT_AUTORESOLVE",defaultValue:"false",effect:"when off, conflicts are detected + queued only (human-in-the-loop)"},{symbol:"posture",configPath:"memory.lifecycle.staleRefPosture",envOverride:"HONEYCOMB_LIFECYCLE_STALEREF_POSTURE",defaultValue:"observe",effect:"observe (s = 0, inert) vs execute (s > 0, demote)"}]);var w=L(H(),1),z6=5e3;function $o({label:e,children:t}){return(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,w.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,w.jsx)("span",{style:{flex:1}}),(0,w.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function P6(e){return e==="env"?"via HONEYCOMB_TOKEN":e==="file"?"saved login (~/.deeplake)":"none"}function I6(e){return typeof e!="number"||!Number.isFinite(e)?"expiry unknown":new Date(e*1e3).toISOString()}function E6({wire:e}){let[t,r]=me.default.useState(null),[o,n]=me.default.useState(!1),[i,a]=me.default.useState(!1),l=me.default.useRef(!1),s=me.default.useCallback(async()=>{if(l.current)return;l.current=!0,n(!0),a(!1);let c=await e.setupLogin();if(c===null){a(!0),n(!1),l.current=!1;return}r(c)},[e]);return(0,w.jsxs)("div",{"data-testid":"auth-connect",style:{display:"flex",flexDirection:"column",gap:10,padding:"10px 6px"},children:[(0,w.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Not connected to DeepLake."}),t===null?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(F,{variant:"primary",size:"sm",disabled:o,onClick:()=>{s()},"data-testid":"auth-connect-button",children:o?"Starting\u2026":"Connect to DeepLake"}),i&&(0,w.jsxs)("span",{"data-testid":"auth-connect-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:["Could not start sign-in. Retry, or run ",(0,w.jsx)("code",{children:"honeycomb login"})," in your terminal."]})]}):(0,w.jsxs)("div",{"data-testid":"auth-connect-grant",style:{display:"flex",flexDirection:"column",gap:6},children:[(0,w.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Enter this code to finish signing in:"}),(0,w.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:16,color:"var(--honey)",letterSpacing:"0.08em"},children:t.user_code}),(0,w.jsx)("a",{href:t.verification_uri_complete??t.verification_uri,target:"_blank",rel:"noreferrer",style:{fontSize:13,color:"var(--text-secondary)"},children:"Open the verification page"}),(0,w.jsx)("span",{style:{fontSize:11,color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"})]}),(0,w.jsxs)("span",{style:{fontSize:11,color:"var(--text-tertiary)"},children:["or, from your terminal: ",(0,w.jsx)("code",{style:{fontFamily:"var(--font-mono)",color:"var(--honey)"},children:"honeycomb login"})]})]})}function R6({wire:e}){let[t,r]=me.default.useState(Uh),[o,n]=me.default.useState(!0),[i,a]=me.default.useState(!1),l=me.default.useCallback(async()=>{let c=await e.authStatus();r(c),n(!1)},[e]),s=me.default.useCallback(async()=>{a(!0),await e.logout(),await l(),a(!1)},[e,l]);return me.default.useEffect(()=>{let c=!0,d=async()=>{!c||cn()||await l()};d();let p=setInterval(()=>{d()},z6),f=()=>{d()};return typeof window<"u"&&window.addEventListener("focus",f),()=>{c=!1,clearInterval(p),typeof window<"u"&&window.removeEventListener("focus",f)}},[l]),(0,w.jsx)(te,{title:"DeepLake",eyebrow:"auth \xB7 org \xB7 workspace",right:(0,w.jsx)(Y,{tone:t.connected?"verified":"neutral",mono:!0,dot:!0,children:t.connected?"connected":"not connected"}),children:o?(0,w.jsx)("div",{"data-testid":"auth-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):t.connected?(0,w.jsxs)("div",{"data-testid":"auth-connected",children:[(0,w.jsx)($o,{label:"org",children:t.orgName||t.orgId||"\u2014"}),(0,w.jsx)($o,{label:"org id",children:t.orgId||"\u2014"}),(0,w.jsx)($o,{label:"workspace",children:t.workspace||"\u2014"}),(0,w.jsx)($o,{label:"agent",children:t.agentId||"\u2014"}),(0,w.jsx)($o,{label:"source",children:P6(t.source)}),(0,w.jsx)($o,{label:"last login",children:t.savedAt||"unknown"}),(0,w.jsx)($o,{label:"token expiry",children:I6(t.expiresAt)}),(0,w.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:10},children:(0,w.jsx)(F,{variant:"secondary",size:"sm",disabled:i,onClick:()=>{s()},"data-testid":"auth-logout-button",children:i?"Logging out\u2026":"Log out"})})]}):(0,w.jsx)("div",{"data-testid":"auth-disconnected",children:(0,w.jsx)(E6,{wire:e})})})}var C6=[{id:"anthropic",label:"Anthropic (Claude)"},{id:"openai",label:"OpenAI (ChatGPT)"},{id:"openrouter",label:"OpenRouter"},{id:"cohere",label:"Cohere"}];function T6({id:e,label:t,present:r,onSave:o}){let[n,i]=me.default.useState(""),[a,l]=me.default.useState(!1),[s,c]=me.default.useState(!1),d=me.default.useCallback(async()=>{let p=n;if(p.length===0){c(!0);return}l(!0),c(!1);let f=await o(e,p);l(!1),f?i(""):c(!0)},[n,e,o]);return(0,w.jsxs)("div",{"data-testid":`provider-row-${e}`,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",flexWrap:"wrap"},children:[(0,w.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:t}),(0,w.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,w.jsx)(Sn,{type:"password",mono:!0,size:"sm",value:n,placeholder:r?"replace key\u2026":"paste key\u2026",onChange:p=>{i(p.target.value),s&&c(!1)},onKeyDown:p=>{p.key==="Enter"&&d()},"data-testid":`provider-input-${e}`})}),(0,w.jsx)(F,{variant:"primary",size:"sm",disabled:a,"data-testid":`provider-save-${e}`,onClick:()=>{d()},children:a?"saving\u2026":"Save key"}),(0,w.jsx)(Y,{tone:r?"verified":"neutral",mono:!0,dot:!0,children:r?"key set \u2713":"not set"}),s&&(0,w.jsx)("span",{"data-testid":`provider-rejected-${e}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]})}function j6({wire:e,secretNames:t,onSaved:r}){let o=me.default.useCallback(async(n,i)=>{let a=Di[n];if(a===void 0)return!1;let l=await e.setSecret(a,i);return l&&r(),l},[e,r]);return(0,w.jsx)(te,{title:"Provider keys",eyebrow:"write-only \xB7 names-only presence",children:(0,w.jsx)("div",{"data-testid":"provider-keys",children:C6.map(n=>{let i=Di[n.id]??"",a=i!==""&&t.includes(i);return(0,w.jsx)(T6,{id:n.id,label:n.label,present:a,onSave:o},n.id)})})})}var O6=[{value:"",label:"default (semantic when embeddings on)"},{value:"keyword",label:"keyword \u2014 lexical only"},{value:"semantic",label:"semantic \u2014 vector (fallback when off)"},{value:"hybrid",label:"hybrid \u2014 both arms"}];function D6({value:e,onChange:t}){return(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,w.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Search mode"}),(0,w.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"recall channels"})]}),(0,w.jsx)("span",{style:{flex:1}}),(0,w.jsx)("select",{"aria-label":"search mode",value:e,onChange:r=>t(r.target.value),"data-testid":"recall-mode-select",style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:220},children:O6.map(r=>(0,w.jsx)("option",{value:r.value,children:r.label},r.value))})]})}function N6({settings:e,catalog:t,secretNames:r,onSave:o,portkeyEnabled:n}){let i=String(e[Xe.recallMode]??"");return(0,w.jsx)(te,{title:"Search & inference",eyebrow:"recall mode \xB7 provider \xB7 model \xB7 pollinating",children:(0,w.jsxs)("div",{"data-testid":"search-inference",children:[(0,w.jsx)(D6,{value:i,onChange:a=>{o(Xe.recallMode,a)}}),n===!0&&(0,w.jsx)("div",{"data-testid":"portkey-supersedes-hint",style:{padding:"6px 6px 2px",fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"superseded by Portkey \u2014 provider keys still stored, not the active inference path"}),(0,w.jsx)("div",{style:{marginTop:8,opacity:n===!0?.45:1,transition:"opacity 0.15s"},children:(0,w.jsx)(Gu,{catalog:t,settings:e,secretNames:r,onSave:o})})]})})}function L6({symbol:e,configPath:t,envOverride:r,defaultValue:o,effect:n}){return(0,w.jsxs)("div",{"data-testid":"lifecycle-flag","data-config-path":t,style:{display:"flex",flexDirection:"column",gap:2,padding:"8px 0",borderBottom:"1px solid var(--border-subtle)"},children:[(0,w.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline",flexWrap:"wrap"},children:[(0,w.jsx)(Y,{tone:"honey",mono:!0,children:e}),(0,w.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t}),(0,w.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["default: ",o]})]}),(0,w.jsx)("div",{style:{fontSize:12,color:"var(--text-tertiary)"},children:n}),(0,w.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:["env: ",r]})]})}function F6(){return(0,w.jsx)(te,{title:"Memory lifecycle",eyebrow:"memory.lifecycle.* \xB7 symbol \xB7 default \xB7 effect",children:(0,w.jsxs)("div",{"data-testid":"lifecycle-config-reference",style:{display:"flex",flexDirection:"column"},children:[(0,w.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",marginBottom:8},children:"Precedence: HONEYCOMB_LIFECYCLE_* env > agent.yaml memory.lifecycle.* > the documented default. Defaults are non-destructive \u2014 a = 1, c = 0, s = 0 (posture observe), auto-resolve off."}),ww.map(e=>(0,w.jsx)(L6,{...e},e.configPath))]})})}function A6({wire:e}){let[t,r]=me.default.useState(null),[o,n]=me.default.useState(!1),i=me.default.useCallback(async()=>{try{let s=await e.health();r(s?.reasons?.embeddings==="on")}catch{r(!1)}},[e]);me.default.useEffect(()=>{i()},[i]);let a=me.default.useCallback(async()=>{if(t===null)return;n(!0);let s=!t;await e.setEmbeddings(s)&&r(s),n(!1),i()},[t,e,i]);return(0,w.jsx)(te,{title:"Embeddings",eyebrow:"semantic recall \xB7 local model",right:(0,w.jsx)(Y,{tone:t?"verified":"neutral",mono:!0,dot:!0,children:t===null?"\u2026":t?"on":"off"}),children:(0,w.jsxs)("div",{"data-testid":"embeddings-section",style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,w.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Semantic vector recall"}),(0,w.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"On runs the local embedding model for semantic search. Off falls back to lexical (BM25) recall only."})]}),(0,w.jsx)(F,{variant:t?"secondary":"primary",size:"sm",disabled:o||t===null,onClick:()=>{a()},"data-testid":"embeddings-toggle",children:o?"saving\u2026":t?"Turn off":"Turn on"})]})})}function U6({wire:e}){let[t,r]=me.default.useState(!1),[o,n]=me.default.useState(!1),[i,a]=me.default.useState(!1),[l,s]=me.default.useState(!1),[c,d]=me.default.useState(null),[p,f]=me.default.useState(!1),g=me.default.useCallback(async()=>{r(!1),n(!0),await e.restartDaemon()||n(!1)},[e]),x=me.default.useCallback(async()=>{a(!1),s(!0),f(!1);let h=await e.uninstall();d(h),f(h===null),s(!1)},[e]);return(0,w.jsxs)(te,{title:"System",eyebrow:"restart \xB7 uninstall",children:[(0,w.jsxs)("div",{"data-testid":"system-restart",style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",borderBottom:"1px solid var(--border-subtle)",flexWrap:"wrap"},children:[(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,w.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Restart the daemon"}),(0,w.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"Stops and relaunches the background daemon. The dashboard reconnects automatically."})]}),o?(0,w.jsx)("span",{"data-testid":"system-restarting",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:"restarting\u2026"}):t?(0,w.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,w.jsx)(F,{variant:"secondary",size:"sm",onClick:()=>r(!1),children:"Cancel"}),(0,w.jsx)(F,{variant:"danger",size:"sm",onClick:()=>{g()},"data-testid":"system-restart-confirm",children:"Confirm restart"})]}):(0,w.jsx)(F,{variant:"secondary",size:"sm",onClick:()=>r(!0),"data-testid":"system-restart-button",children:"Restart"})]}),(0,w.jsxs)("div",{"data-testid":"system-uninstall",style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 6px"},children:[(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,w.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Uninstall Honeycomb"}),(0,w.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"Reverses Honeycomb's changes to your coding assistants. Your DeepLake login is left intact."})]}),i?(0,w.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,w.jsx)(F,{variant:"secondary",size:"sm",onClick:()=>a(!1),children:"Cancel"}),(0,w.jsx)(F,{variant:"danger",size:"sm",disabled:l,onClick:()=>{x()},"data-testid":"system-uninstall-confirm",children:l?"Working\u2026":"Confirm uninstall"})]}):(0,w.jsx)(F,{variant:"danger",size:"sm",onClick:()=>a(!0),"data-testid":"system-uninstall-button",children:"Uninstall"})]}),c!==null&&(0,w.jsxs)("div",{"data-testid":"system-uninstall-result",style:{display:"flex",flexDirection:"column",gap:6,padding:"8px 0"},children:[(0,w.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:c.note}),c.harnesses.length>0&&(0,w.jsxs)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:["Detected: ",c.harnesses.join(", ")]}),(0,w.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--honey)"},children:c.command})]}),p&&(0,w.jsxs)("span",{"data-testid":"system-uninstall-error",style:{fontSize:12,color:"var(--severity-critical)"},children:["Could not load uninstall guidance. Retry, or run ",(0,w.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:"honeycomb uninstall"})," in your terminal."]})]})]})}function zw({wire:e}){let[t,r]=me.default.useState(xl),[o,n]=me.default.useState([]),i=me.default.useCallback(async()=>{r(await e.vaultSettings())},[e]),a=me.default.useCallback(async()=>{n(await e.secretNames())},[e]);me.default.useEffect(()=>{i(),a()},[i,a]);let l=me.default.useCallback(async(d,p)=>{let f=await e.setSetting(d,p);return await i(),f},[e,i]),s=t.settings[Xe.portkeyEnabled]===!0,c=me.default.useCallback(async d=>{let p=await e.setSecret(Di.portkey,d);return await a(),p},[e,a]);return(0,w.jsx)(Be,{title:"Settings",eyebrow:"deeplake \xB7 provider keys \xB7 search mode",children:(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,w.jsx)(R6,{wire:e}),(0,w.jsx)(j6,{wire:e,secretNames:o,onSaved:()=>{a()}}),(0,w.jsx)(A6,{wire:e}),(0,w.jsx)(_1,{settings:t.settings,secretNames:o,onSaveSetting:l,onSaveKey:c}),(0,w.jsx)(N6,{settings:t.settings,catalog:t.catalog,secretNames:o,onSave:l,portkeyEnabled:s}),(0,w.jsx)(F6,{}),(0,w.jsx)(U6,{wire:e})]})})}var In=L(ye(),1);var J=L(H(),1),W6=5e3,Cl=12;function cd(e,t){return`${e}:${t}`}function Ji({label:e,children:t}){return(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,J.jsx)("span",{style:{flex:1}}),(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function Iw({state:e}){let t=Gh[e]??"neutral";return(0,J.jsx)(Y,{tone:t,mono:!0,dot:!0,children:e})}function M6({row:e,flight:t,onAction:r}){let o=t!==void 0,n=(i,a)=>t===i?`${a}\u2026`:a;return(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[e.state==="local"&&(0,J.jsx)(F,{variant:"primary",size:"sm",disabled:o,"data-testid":`promote-${e.assetType}-${e.name}`,onClick:()=>r("promote",e),children:n("promote","Promote")}),e.state==="shared"&&(0,J.jsx)(F,{variant:"secondary",size:"sm",disabled:o,"data-testid":`pull-${e.assetType}-${e.name}`,onClick:()=>r("pull",e),children:n("pull","Pull")}),e.state==="shared"&&(0,J.jsx)(F,{variant:"ghost",size:"sm",disabled:o,"data-testid":`enable-${e.assetType}-${e.name}`,onClick:()=>r("enable",e),children:n("enable","Enable")}),(e.state==="shared"||e.state==="pulled")&&(0,J.jsx)(F,{variant:"danger",size:"sm",disabled:o||!e.authoredByMe,title:e.authoredByMe?"Demote (tombstone) this asset":"Only the author can demote this asset","data-testid":`demote-${e.assetType}-${e.name}`,onClick:()=>r("demote",e),children:n("demote","Demote")}),(e.state==="local"||e.state==="pulled")&&(0,J.jsx)(F,{variant:"ghost",size:"sm",disabled:o,"data-testid":`disable-${e.assetType}-${e.name}`,onClick:()=>r("disable",e),children:n("disable","Disable")}),o&&(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"in-flight\u2026"})]})}function B6({row:e}){return(0,J.jsx)("div",{"data-testid":`detail-${e.assetType}-${e.name}`,style:{marginTop:4},children:(0,J.jsxs)(te,{title:e.name,eyebrow:e.assetType,style:{marginBottom:4},children:[e.description!==""&&(0,J.jsx)("div",{style:{fontSize:13,color:"var(--text-secondary)",padding:"4px 6px 8px",lineHeight:"19px"},children:e.description}),(0,J.jsx)(Ji,{label:"state",children:(0,J.jsx)(Iw,{state:e.state})}),(0,J.jsx)(Ji,{label:"provenance",children:e.sourceHarness||"\u2014"}),(0,J.jsx)(Ji,{label:"scope",children:e.scope||"\u2014"}),(0,J.jsx)(Ji,{label:"source harness",children:e.sourceHarness||"\u2014"}),(0,J.jsx)(Ji,{label:"tier / style",children:e.tier!==""?`${e.tier} / ${e.style}`:"\u2014"}),(0,J.jsx)(Ji,{label:"version",children:e.version>0?`v${e.version}`:"\u2014"})]})})}function Z6({row:e,open:t,flight:r,onToggle:o,onAction:n}){return(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,J.jsxs)("button",{type:"button","data-testid":`row-${e.assetType}-${e.name}`,onClick:()=>o(e),style:{display:"flex",alignItems:"center",gap:8,background:"transparent",border:"none",padding:0,cursor:"pointer",minWidth:0,flex:"1 1 200px",textAlign:"left"},children:[(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.name}),(0,J.jsx)(Iw,{state:e.state}),e.version>0&&(0,J.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["v",e.version]})]}),(0,J.jsx)(M6,{row:e,flight:r,onAction:n})]}),t&&(0,J.jsx)(B6,{row:e})]})}function V6({kind:e,rows:t,openKey:r,inFlight:o,onToggle:n,onAction:i}){return(0,J.jsx)(te,{title:e==="skill"?"Skills":"Agents",eyebrow:`${t.length} ${e==="skill"?"skills":"agents"}`,children:t.length===0?(0,J.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e==="skill"?"skills":"agents"," found."]}):(0,J.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(l=>(0,J.jsx)(Z6,{row:l,open:r===cd(e,l.name),flight:o[cd(e,l.name)],onToggle:n,onAction:i},`${l.assetType}:${l.name}`))})})}function hx({label:e,value:t,tone:r}){return(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px"},children:[(0,J.jsx)(Y,{tone:r,mono:!0,children:t}),(0,J.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:e})]})}function H6(e){let t=0,r=0,o=0;for(let n of[...e.skills,...e.agents])n.state==="shared"?t++:n.state==="local"?r++:n.state==="pulled"&&o++;return{shared:t,local:r,pulled:o}}function J6({view:e}){let t=H6(e);return(0,J.jsx)(te,{title:"Sync state",eyebrow:"per scope",children:(0,J.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:18},children:[(0,J.jsx)(hx,{label:"shared with team",value:t.shared,tone:"verified"}),(0,J.jsx)(hx,{label:"local only",value:t.local,tone:"neutral"}),(0,J.jsx)(hx,{label:"pulled",value:t.pulled,tone:"honey"})]})})}function G6(e){return e.filter(Vu).slice(-Cl).reverse().map(t=>{let r=Wr(t),o=y1(t);return o!==""?`${r} \xB7 ${o}`:r})}function X6(e,t){if(!Vu(t))return e;let r=[...e,t];return r.length>Cl?r.slice(-Cl):r}function Ew({wire:e}){let{scope:t}=Et(),r=t.project,[o,n]=In.default.useState(Mu),[i,a]=In.default.useState([]),[l,s]=In.default.useState("skill"),[c,d]=In.default.useState(null),[p,f]=In.default.useState({});In.default.useEffect(()=>{if(r===void 0){n(Mu);return}let v=!0,m=async()=>{if(!v||cn())return;let S=await e.assetsView();v&&n(S)};m();let y=setInterval(()=>{m()},W6);return()=>{v=!1,clearInterval(y)}},[e,r]),In.default.useEffect(()=>{let v=!0;(async()=>{let y=await e.logs(Cl*6);v&&a(y.filter(Vu).slice(-Cl))})();let m=e.logsStream(y=>{v&&a(S=>X6(S,y))});return()=>{v=!1,m()}},[e]);let g=In.default.useMemo(()=>G6(i),[i]),x=In.default.useCallback(v=>{let m=cd(v.assetType,v.name);d(y=>y===m?null:m)},[]),h=In.default.useCallback((v,m)=>{let y=cd(m.assetType,m.name);f(S=>({...S,[y]:v})),(async()=>{try{await e.syncAction(v,{assetType:m.assetType,name:m.name,honeycombId:m.honeycombId!==""?m.honeycombId:void 0}),n(await e.assetsView())}finally{f(S=>{let P={...S};return delete P[y],P})}})()},[e]),_=l==="skill"?o.skills:o.agents;return(0,J.jsx)(Be,{title:"Sync",eyebrow:r===void 0?"sync":`${o.skills.length+o.agents.length} assets`,children:r===void 0?(0,J.jsx)(Br,{surface:"sync state"}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(J6,{view:o}),(0,J.jsx)("div",{style:{height:16}}),(0,J.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:12},children:[(0,J.jsx)(Pw,{label:"Skills",active:l==="skill",count:o.skills.length,onClick:()=>s("skill")}),(0,J.jsx)(Pw,{label:"Agents",active:l==="agent",count:o.agents.length,onClick:()=>s("agent")})]}),(0,J.jsx)(V6,{kind:l,rows:_,openKey:c,inFlight:p,onToggle:x,onAction:h}),(0,J.jsx)("div",{style:{height:16}}),(0,J.jsx)(Mr,{lines:g})]})})}function Pw({label:e,active:t,count:r,onClick:o}){return(0,J.jsxs)("button",{type:"button","data-testid":`tab-${e.toLowerCase()}`,"aria-pressed":t,onClick:o,style:{display:"inline-flex",alignItems:"center",gap:8,height:34,padding:"0 14px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:[e,(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:r})]})}var se=L(H(),1);function En({children:e}){return(0,se.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none"},children:e})}var K6=(0,se.jsxs)(En,{children:[(0,se.jsx)("rect",{x:3,y:3,width:7,height:7}),(0,se.jsx)("rect",{x:14,y:3,width:7,height:7}),(0,se.jsx)("rect",{x:3,y:14,width:7,height:7}),(0,se.jsx)("rect",{x:14,y:14,width:7,height:7})]}),Y6=(0,se.jsxs)(En,{children:[(0,se.jsx)("rect",{x:3,y:4,width:18,height:16,rx:2}),(0,se.jsx)("path",{d:"M7 9l3 3-3 3"}),(0,se.jsx)("path",{d:"M13 15h4"})]}),q6=(0,se.jsx)(En,{children:(0,se.jsx)("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})}),Q6=(0,se.jsxs)(En,{children:[(0,se.jsx)("path",{d:"M12 3l7 4v8l-7 4-7-4V7z"}),(0,se.jsx)("path",{d:"M12 8v8"})]}),eO=(0,se.jsxs)(En,{children:[(0,se.jsx)("circle",{cx:6,cy:6,r:2.5}),(0,se.jsx)("circle",{cx:18,cy:9,r:2.5}),(0,se.jsx)("circle",{cx:9,cy:18,r:2.5}),(0,se.jsx)("path",{d:"M8 7.5l8 1.5M8 16l1-7.5"})]}),tO=(0,se.jsxs)(En,{children:[(0,se.jsx)("path",{d:"M6 4h8a2 2 0 0 1 2 2v12H4V6a2 2 0 0 1 2-2z"}),(0,se.jsx)("path",{d:"M8 8h6M8 12h4"}),(0,se.jsx)("path",{d:"M14 4v4h4"})]}),nO=(0,se.jsxs)(En,{children:[(0,se.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7"}),(0,se.jsx)("path",{d:"M21 4v4h-4"})]}),rO=(0,se.jsxs)(En,{children:[(0,se.jsx)("rect",{x:4,y:3,width:16,height:18,rx:2}),(0,se.jsx)("path",{d:"M8 8h8M8 12h8M8 16h5"})]}),oO=(0,se.jsx)(En,{children:(0,se.jsx)("path",{d:"M3 12h4l2-7 4 14 2-7h6"})}),iO=(0,se.jsxs)(En,{children:[(0,se.jsx)("path",{d:"M4 19V5"}),(0,se.jsx)("path",{d:"M4 19h16"}),(0,se.jsx)("path",{d:"M7 15l4-5 3 3 5-7"})]}),aO=(0,se.jsxs)(En,{children:[(0,se.jsx)("circle",{cx:12,cy:12,r:3}),(0,se.jsx)("path",{d:"M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1"})]}),ix="/projects",ud=[{route:"/",label:"Dashboard",icon:K6,component:K1},{route:ix,label:"Projects",icon:q6,component:vw},{route:"/harnesses",label:"Harnesses",icon:Y6,component:U1,dynamic:{resolve:W1}},{route:"/memories",label:"Memories",icon:Q6,component:fw},{route:"/graph",label:"Memory Graph",icon:eO,component:ew},{route:"/hive-graph",label:"Hive Graph",icon:tO,component:nw},{route:"/sync",label:"Sync",icon:nO,component:Ew},{route:"/logs",label:"Logs",icon:rO,component:cw},{route:"/health",label:"Health",icon:oO,component:rw},{route:"/roi",label:"ROI",icon:iO,component:$w},{route:"/settings",label:"Settings",icon:aO,component:zw}],rA=ud[0];function Rw(e,t=ud){let r=t.find(n=>n.route===e);if(r!==void 0)return r;let o=t.find(n=>n.route!=="/"&&e.startsWith(`${n.route}/`));return o!==void 0?o:t.find(n=>n.route==="/")??t[0]}var Ye=L(H(),1),lO=220,sO=56;function cO(e,t){let r=e.find(i=>i.route===t);if(r!==void 0)return r.route;let o=e.find(i=>i.route!=="/"&&t.startsWith(`${i.route}/`));return o!==void 0?o.route:e.find(i=>i.route==="/")?.route??e[0]?.route??"/"}function uO({entry:e,active:t,collapsed:r,onNavigate:o}){return(0,Ye.jsxs)("button",{type:"button",onClick:()=>o(e.route),"aria-current":t?"page":void 0,title:r?e.label:void 0,"data-route":e.route,"data-active":t?"true":"false",style:{display:"flex",alignItems:"center",gap:10,width:"100%",height:38,padding:r?"0":"0 12px",justifyContent:r?"center":"flex-start",background:t?"var(--honey-subtle)":"transparent",color:t?"var(--honey)":"var(--text-secondary)",border:`1px solid ${t?"var(--honey-border)":"transparent"}`,borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,letterSpacing:"0.01em",cursor:"pointer",whiteSpace:"nowrap",transition:"background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out)"},children:[(0,Ye.jsx)("span",{style:{display:"inline-flex",flex:"none"},children:e.icon}),!r&&(0,Ye.jsx)("span",{children:e.label})]})}function dO({daemonUp:e,collapsed:t}){return(0,Ye.jsxs)("div",{title:"daemon health","data-testid":"daemon-health-pill",style:{display:"flex",alignItems:"center",gap:8,height:36,padding:t?"0":"0 12px",justifyContent:t?"center":"flex-start",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)"},children:[(0,Ye.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:e?"var(--verified)":"var(--severity-critical)"}}),!t&&(0,Ye.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:e?"daemon :3850":"offline"})]})}function Cw({entries:e,activeRoute:t,onNavigate:r,daemonUp:o,identity:n,assetBase:i,collapsed:a,onToggleCollapsed:l}){let s=cO(e,t);return(0,Ye.jsxs)("nav",{"aria-label":"Dashboard navigation","data-collapsed":a?"true":"false",style:{display:"flex",flexDirection:"column",gap:18,width:a?sO:lO,flex:"none",minHeight:"100vh",boxSizing:"border-box",padding:a?"20px 8px":"22px 14px",background:"var(--bg-surface)",borderRight:"1px solid var(--border-default)"},children:[(0,Ye.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,paddingLeft:a?0:2,justifyContent:a?"center":"flex-start"},children:[(0,Ye.jsx)("img",{src:`${i}/honeycomb-memory-cluster.svg`,width:a?28:34,height:a?28:34,alt:"",style:{flex:"none"}}),!a&&(0,Ye.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[(0,Ye.jsx)("span",{style:{fontWeight:700,fontSize:19,letterSpacing:"-0.03em",color:"var(--text-primary)",lineHeight:1.1},children:"honeycomb"}),(0,Ye.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n})]})]}),(0,Ye.jsx)(X1,{collapsed:a}),(0,Ye.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4,flex:1},children:e.map(c=>(0,Ye.jsx)(uO,{entry:c,active:c.route===s,collapsed:a,onNavigate:r},c.route))}),(0,Ye.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,Ye.jsx)(dO,{daemonUp:o,collapsed:a}),(0,Ye.jsx)(F,{variant:"ghost",size:"sm",onClick:l,"aria-label":a?"expand sidebar":"collapse sidebar",title:a?"expand":"collapse",children:a?"\xBB":"\xAB collapse"})]})]})}var it=L(H(),1),pO=5e3,fO=900;function mO({route:e,pageProps:t,navigate:r}){let o=Rw(e),n=o.component,{projects:i,projectsHydrated:a}=rx();ht.default.useEffect(()=>{typeof document<"u"&&(document.title=`honeycomb \xB7 ${o.label}`)},[o.label]);let l=i.some(c=>c.boundLocally&&c.projectId!=="__unsorted__"),s=o.route==="/"&&a&&!l;return(0,it.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,it.jsx)("div",{style:{maxWidth:Yu,margin:"0 auto"},children:s?(0,it.jsx)(q1,{wire:t.wire,navigate:r,assetBase:t.assetBase}):(0,it.jsx)(n,{...t})})})}function Tw({client:e,assetBase:t="assets"}={}){let r=ht.default.useMemo(()=>e??Zu(),[e]),{route:o,navigate:n}=Qu(),[i,a]=ht.default.useState(!0),[l,s]=ht.default.useState(null),[c,d]=ht.default.useState(Zh),[p,f]=ht.default.useState(!1),[g,x]=ht.default.useState(!1),h=c.settings.port?`http://127.0.0.1:${c.settings.port}`:"http://127.0.0.1:3850",_=ht.default.useCallback(async()=>{d(await r.settings())},[r]);ht.default.useEffect(()=>{_()},[_]);let v=ht.default.useRef(null);wn(async()=>{let{up:R,reasons:B}=await r.health();a(R),s(B),R&&v.current===!1&&_(),v.current=R},pO),ht.default.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let R=window.matchMedia(`(max-width: ${fO}px)`),B=M=>{M&&x(!0)};B(R.matches);let K=M=>B(M.matches);return R.addEventListener("change",K),()=>R.removeEventListener("change",K)},[]);let m=ht.default.useRef(!1),y=ht.default.useRef(null);ht.default.useEffect(()=>()=>{y.current!==null&&clearTimeout(y.current)},[]);let S=ht.default.useCallback(async()=>{if(m.current)return;m.current=!0,f(!0),(await r.pollinate()).triggered?y.current=setTimeout(()=>{f(!1),m.current=!1},4200):(f(!1),m.current=!1)},[r]),P=`${c.orgName||c.orgId||"local"} \xB7 ${c.workspace||"default"}`;return(0,it.jsx)(G1,{wire:r,children:(0,it.jsxs)("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-canvas)"},children:[(0,it.jsx)(Cw,{entries:ud,activeRoute:o,onNavigate:n,daemonUp:i,identity:P,assetBase:t,collapsed:g,onToggleCollapsed:()=>x(R=>!R)}),(0,it.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column"},children:[(0,it.jsx)(j1,{onOpenHealth:()=>n(T1)}),(0,it.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 28px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,it.jsx)("span",{style:{flex:1}}),(0,it.jsx)(F,{variant:"pollinate",onClick:()=>{S()},disabled:p,children:p?"pollinating\u2026":"Pollinate now"})]}),i?(0,it.jsx)(mO,{route:o,pageProps:{wire:r,daemonUp:i,assetBase:t,pollinating:p,healthReasons:l},navigate:n}):(0,it.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,it.jsx)("div",{style:{maxWidth:Yu,margin:"0 auto"},children:(0,it.jsx)($1,{url:h,onRetry:()=>{r.health().then(({up:R})=>{a(R),R&&_()})}})})})]})]})})}var gO="/buzzing",vO="/login";function jw(e){return e===gO?"buzzing":e===vO?"login":"shell"}var dd=L(ye(),1);var yO=["honeycomb"];function Ow(e){return e.supervisor!=="reachable"||e.health!=="ok"?!1:yO.every(t=>e.daemons.some(r=>r.name===t&&r.health==="ok"))}var Je=L(H(),1);function hO({service:e}){return(0,Je.jsxs)("li",{"data-testid":`buzzing-tile-${e.name}`,"data-state":e.state,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 14px",borderRadius:"var(--radius-md)",border:"1px solid var(--border-subtle)",background:"var(--bg-elevated)"},children:[(0,Je.jsx)("span",{style:{color:Fi[e.state],display:"inline-flex",flex:"none"},children:(0,Je.jsx)(Li,{state:e.state})}),(0,Je.jsx)("span",{style:{flex:1,fontFamily:"var(--font-sans)",fontSize:"var(--text-sm)",color:"var(--text-primary)"},children:e.name}),(0,Je.jsx)("span",{"data-testid":`buzzing-tile-state-${e.name}`,style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",color:"var(--text-secondary)",textTransform:"lowercase"},children:So[e.state]})]})}function xO(){return(0,Je.jsxs)("div",{"data-testid":"buzzing-empty",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%",padding:"16px 20px",background:"var(--bg-inset)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)"},children:[(0,Je.jsx)("span",{role:"img","aria-label":"doctor supervisor: unreachable",style:{width:8,height:8,borderRadius:"50%",background:"var(--text-tertiary)",animation:"hc-readiness-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate"}}),(0,Je.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5,textAlign:"center"},children:"Waiting on doctor. No services are registered yet."})]})}function Dw({assetBase:e,pollMs:t=1500,onReady:r}){let o=Ai(),[n,i]=dd.default.useState(!1);return dd.default.useEffect(()=>{if(n)return;let a=!0,l=!1,s=async()=>{if(!l){l=!0;try{let p=await(await fetch("/api/fleet-status")).json();if(!a)return;Ow(p)&&i(!0)}catch{}finally{l=!1}}};s();let c=setInterval(()=>{s()},t);return()=>{a=!1,clearInterval(c)}},[n,t]),dd.default.useEffect(()=>{if(n){if(r!==void 0){r();return}typeof window<"u"&&window.location.assign("/")}},[n,r]),(0,Je.jsxs)("div",{"data-testid":"buzzing-screen",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"var(--bg-canvas)",textAlign:"center"},children:[(0,Je.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:24,width:"100%",maxWidth:460,padding:"40px 32px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-xl)"},children:[(0,Je.jsx)("span",{"aria-hidden":"true",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"none",width:88,height:88,borderRadius:"50%",background:"var(--honey-subtle)",border:"1px solid var(--honey-border)"},children:(0,Je.jsx)("img",{src:`${e}/honeycomb-memory-cluster.svg`,width:48,height:48,alt:""})}),(0,Je.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Waiting for the hive\u2026"}),(0,Je.jsxs)("div",{"data-testid":"buzzing-status-region",role:"status","aria-live":"polite",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%"},children:[(0,Je.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:"Starting required services. This usually takes a few seconds on a cold boot."}),o.services.length===0?(0,Je.jsx)(xO,{}):(0,Je.jsx)("ul",{"data-testid":"buzzing-tile-grid",style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:8,width:"100%",textAlign:"left"},children:o.services.map(a=>(0,Je.jsx)(hO,{service:a},a.name))})]})]}),(0,Je.jsx)("style",{children:"@keyframes hc-readiness-pulse { from { opacity: .45 } to { opacity: 1 } }"})]})}var qe=L(ye(),1);var ee=L(H(),1),bO=2500,SO=new Set(["backup","uninstall","link"]);function kO(e){return e.migration!==void 0&&SO.has(e.migration.phase)}function _O(e){return e.priorTool.hivemind==="migrated"?!1:e.priorTool.hivemind==="present"||e.credentials.hivemind}function $O({wire:e,assetBase:t,state:r}){let[o,n]=qe.default.useState(null),[i,a]=qe.default.useState(!1),[l,s]=qe.default.useState(!1),c=qe.default.useRef(!1),d=qe.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0),s(!1);let f=await e.setupLogin();if(f===null){s(!0),a(!1),c.current=!1;return}n(f)},[e]),p=r.priorTool.hivemind==="present"||r.credentials.hivemind;return(0,ee.jsxs)("div",{"data-testid":"guided-setup",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,ee.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,ee.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:460},children:[(0,ee.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Let\u2019s connect your account"}),(0,ee.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:p?"We found a previous Hivemind setup. Link your account to bring your memory online.":"Honeycomb keeps one shared memory for all your coding agents. Link your account to get started."})]}),o===null?(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(F,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Starting setup\u2026":"First time setup"}),l&&(0,ee.jsxs)("p",{"data-testid":"setup-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:["Could not start setup. Retry, or run ",(0,ee.jsx)("code",{children:"honeycomb login"})," in your terminal."]})]}):(0,ee.jsxs)("div",{"data-testid":"setup-grant",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,ee.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Enter this code to finish linking:"}),(0,ee.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-lg)",color:"var(--honey)",letterSpacing:"0.08em"},children:o.user_code}),(0,ee.jsx)("a",{href:o.verification_uri_complete??o.verification_uri,target:"_blank",rel:"noreferrer",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)"},children:"Open the verification page"}),(0,ee.jsx)("span",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"})]})]})}function wO({wire:e,assetBase:t,onNeedsLogin:r}){let[o,n]=qe.default.useState(!1),[i,a]=qe.default.useState(!1),[l,s]=qe.default.useState(null),c=qe.default.useRef(!1),d=qe.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0);let p=await e.migrateFromHivemind();if(s(p),p.ok&&p.needsLogin===!0){r();return}p.ok||(a(!1),c.current=!1)},[e,r]);return(0,ee.jsxs)("div",{"data-testid":"coexistence-warning",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,ee.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,ee.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,ee.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"We found an existing Hivemind setup"}),(0,ee.jsxs)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:["Running Hivemind and Honeycomb on the same machine isn\u2019t supported \u2014 they share one memory and would collide. ",(0,ee.jsx)("strong",{children:"Proceed with Honeycomb"})," will back up your Hivemind config, uninstall Hivemind, and reuse your existing DeepLake login (so you likely won\u2019t even need to sign in again)."]})]}),l!==null&&l.ok===!1?(0,ee.jsxs)("div",{"data-testid":"migration-error",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center",maxWidth:500},children:[(0,ee.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:l.message}),l.backupPath!==void 0&&(0,ee.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup saved at ",(0,ee.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:l.backupPath})]}),(0,ee.jsx)(F,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Retrying\u2026":"Retry"})]}):o?(0,ee.jsxs)("div",{"data-testid":"migration-confirm",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,ee.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"This backs up and removes your Hivemind setup. Continue?"}),(0,ee.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,ee.jsx)(F,{variant:"secondary",size:"md",onClick:()=>n(!1),disabled:i,children:"Cancel"}),(0,ee.jsx)(F,{variant:"danger",size:"md",onClick:()=>{d()},disabled:i,"data-testid":"confirm-migrate-button",children:i?"Migrating\u2026":"Yes, proceed"})]})]}):(0,ee.jsx)(F,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"proceed-button",children:"Proceed with Honeycomb"})]})}function zO({wire:e,assetBase:t,state:r,onNeedsLogin:o}){let[n,i]=qe.default.useState(""),[a,l]=qe.default.useState(null),s=r.migration?.phase??"backup",c=r.migration?.backupPath,d=qe.default.useCallback(async()=>{i("resume");let f=await e.migrateFromHivemind();if(l(f.message),f.ok&&f.needsLogin===!0){o();return}f.ok||i("")},[e,o]),p=qe.default.useCallback(async()=>{i("rollback");let f=await e.rollbackMigration();l(f.message),i("")},[e]);return(0,ee.jsxs)("div",{"data-testid":"migration-interrupted",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,ee.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,ee.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,ee.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Your migration was interrupted"}),(0,ee.jsxs)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:["A previous switch to Honeycomb didn\u2019t finish (it stopped at the ",(0,ee.jsx)("code",{children:s})," step). You can resume it, or roll back to restore your previous Hivemind setup."]}),c!==void 0&&(0,ee.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup at ",(0,ee.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:c})]})]}),(0,ee.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,ee.jsx)(F,{variant:"primary",size:"md",onClick:()=>{d()},disabled:n!=="","data-testid":"resume-button",children:n==="resume"?"Resuming\u2026":"Resume"}),(0,ee.jsx)(F,{variant:"secondary",size:"md",onClick:()=>{p()},disabled:n!=="","data-testid":"rollback-button",children:n==="rollback"?"Rolling back\u2026":"Roll back"})]}),a!==null&&(0,ee.jsx)("p",{"data-testid":"migration-interrupted-message",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:a})]})}function Nw({client:e,assetBase:t="assets"}={}){let r=qe.default.useMemo(()=>e??Zu(),[e]),[o,n]=qe.default.useState(Wh),[i,a]=qe.default.useState(!1),l=qe.default.useRef(!1);return qe.default.useEffect(()=>{if(o.authenticated){!l.current&&typeof window<"u"&&(l.current=!0,window.location.assign("/"));return}let s=!0,c=async()=>{let p=await r.setupState();s&&n(p)};c();let d=setInterval(()=>{c()},bO);return()=>{s=!1,clearInterval(d)}},[r,o.authenticated]),o.authenticated?(0,ee.jsx)(ee.Fragment,{}):kO(o)&&!i?(0,ee.jsx)(zO,{wire:r,assetBase:t,state:o,onNeedsLogin:()=>a(!0)}):_O(o)&&!i?(0,ee.jsx)(wO,{wire:r,assetBase:t,onNeedsLogin:()=>a(!0)}):(0,ee.jsx)($O,{wire:r,assetBase:t,state:o})}var Tl=L(H(),1);function PO(){let e=document.getElementById("root");if(e===null)return;let t=e.getAttribute("data-asset-base")??"assets",r=/^[A-Za-z0-9._/-]*$/.test(t)?t:"assets",o=typeof window>"u"?"/":window.location.pathname,n=jw(o),i=n==="buzzing"?(0,Tl.jsx)(Dw,{assetBase:r}):n==="login"?(0,Tl.jsx)(Nw,{assetBase:r}):(0,Tl.jsx)(Tw,{assetBase:r});(0,Fw.createRoot)(e).render((0,Tl.jsx)(Lw.default.StrictMode,{children:i}))}PO();
|
|
73
73
|
/*! Bundled license information:
|
|
74
74
|
|
|
75
75
|
react/cjs/react.production.min.js:
|