qubicl-cli 0.1.0-dev.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/README.md +37 -0
- package/dist/LICENSE +201 -0
- package/dist/THIRD_PARTY_NOTICES.txt +746 -0
- package/dist/assets/computer/Dockerfile +90 -0
- package/dist/assets/computer/LICENSE +201 -0
- package/dist/assets/computer/THIRD_PARTY_NOTICES.txt +726 -0
- package/dist/assets/computer/control.mjs +110 -0
- package/dist/assets/computer/entrypoint.sh +55 -0
- package/dist/assets/gateway/Dockerfile +34 -0
- package/dist/assets/gateway/LICENSE +201 -0
- package/dist/assets/gateway/THIRD_PARTY_NOTICES.txt +29 -0
- package/dist/assets/gateway/gateway.mjs +76 -0
- package/dist/qubicl.mjs +246 -0
- package/package.json +47 -0
package/dist/qubicl.mjs
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __qubiclCreateRequire } from 'node:module'; const require = __qubiclCreateRequire(import.meta.url);
|
|
3
|
+
var EP=Object.create;var pp=Object.defineProperty;var TP=Object.getOwnPropertyDescriptor;var OP=Object.getOwnPropertyNames;var xP=Object.getPrototypeOf,NP=Object.prototype.hasOwnProperty;var cc=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var oe=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},ir=(e,t)=>{for(var n in t)pp(e,n,{get:t[n],enumerable:!0})},jP=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of OP(t))!NP.call(e,r)&&r!==n&&pp(e,r,{get:()=>t[r],enumerable:!(i=TP(t,r))||i.enumerable});return e};var fp=(e,t,n)=>(n=e!=null?EP(xP(e)):{},jP(t||!e||!e.__esModule?pp(n,"default",{value:e,enumerable:!0}):n,e));var Re=oe(et=>{"use strict";var hp=Symbol.for("yaml.alias"),Mb=Symbol.for("yaml.document"),uc=Symbol.for("yaml.map"),Lb=Symbol.for("yaml.pair"),gp=Symbol.for("yaml.scalar"),dc=Symbol.for("yaml.seq"),or=Symbol.for("yaml.node.type"),AP=e=>!!e&&typeof e=="object"&&e[or]===hp,qP=e=>!!e&&typeof e=="object"&&e[or]===Mb,MP=e=>!!e&&typeof e=="object"&&e[or]===uc,LP=e=>!!e&&typeof e=="object"&&e[or]===Lb,Db=e=>!!e&&typeof e=="object"&&e[or]===gp,DP=e=>!!e&&typeof e=="object"&&e[or]===dc;function Ub(e){if(e&&typeof e=="object")switch(e[or]){case uc:case dc:return!0}return!1}function UP(e){if(e&&typeof e=="object")switch(e[or]){case hp:case uc:case gp:case dc:return!0}return!1}var VP=e=>(Db(e)||Ub(e))&&!!e.anchor;et.ALIAS=hp;et.DOC=Mb;et.MAP=uc;et.NODE_TYPE=or;et.PAIR=Lb;et.SCALAR=gp;et.SEQ=dc;et.hasAnchor=VP;et.isAlias=AP;et.isCollection=Ub;et.isDocument=qP;et.isMap=MP;et.isNode=UP;et.isPair=LP;et.isScalar=Db;et.isSeq=DP});var Go=oe(vp=>{"use strict";var Ge=Re(),vt=Symbol("break visit"),Vb=Symbol("skip children"),Ht=Symbol("remove node");function mc(e,t){let n=Fb(t);Ge.isDocument(e)?oi(null,e.contents,n,Object.freeze([e]))===Ht&&(e.contents=null):oi(null,e,n,Object.freeze([]))}mc.BREAK=vt;mc.SKIP=Vb;mc.REMOVE=Ht;function oi(e,t,n,i){let r=Zb(e,t,n,i);if(Ge.isNode(r)||Ge.isPair(r))return Jb(e,i,r),oi(e,r,n,i);if(typeof r!="symbol"){if(Ge.isCollection(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){let a=oi(o,t.items[o],n,i);if(typeof a=="number")o=a-1;else{if(a===vt)return vt;a===Ht&&(t.items.splice(o,1),o-=1)}}}else if(Ge.isPair(t)){i=Object.freeze(i.concat(t));let o=oi("key",t.key,n,i);if(o===vt)return vt;o===Ht&&(t.key=null);let a=oi("value",t.value,n,i);if(a===vt)return vt;a===Ht&&(t.value=null)}}return r}async function pc(e,t){let n=Fb(t);Ge.isDocument(e)?await ai(null,e.contents,n,Object.freeze([e]))===Ht&&(e.contents=null):await ai(null,e,n,Object.freeze([]))}pc.BREAK=vt;pc.SKIP=Vb;pc.REMOVE=Ht;async function ai(e,t,n,i){let r=await Zb(e,t,n,i);if(Ge.isNode(r)||Ge.isPair(r))return Jb(e,i,r),ai(e,r,n,i);if(typeof r!="symbol"){if(Ge.isCollection(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){let a=await ai(o,t.items[o],n,i);if(typeof a=="number")o=a-1;else{if(a===vt)return vt;a===Ht&&(t.items.splice(o,1),o-=1)}}}else if(Ge.isPair(t)){i=Object.freeze(i.concat(t));let o=await ai("key",t.key,n,i);if(o===vt)return vt;o===Ht&&(t.key=null);let a=await ai("value",t.value,n,i);if(a===vt)return vt;a===Ht&&(t.value=null)}}return r}function Fb(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Zb(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(Ge.isMap(t))return n.Map?.(e,t,i);if(Ge.isSeq(t))return n.Seq?.(e,t,i);if(Ge.isPair(t))return n.Pair?.(e,t,i);if(Ge.isScalar(t))return n.Scalar?.(e,t,i);if(Ge.isAlias(t))return n.Alias?.(e,t,i)}function Jb(e,t,n){let i=t[t.length-1];if(Ge.isCollection(i))i.items[e]=n;else if(Ge.isPair(i))e==="key"?i.key=n:i.value=n;else if(Ge.isDocument(i))i.contents=n;else{let r=Ge.isAlias(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}vp.visit=mc;vp.visitAsync=pc});var yp=oe(Kb=>{"use strict";var Bb=Re(),FP=Go(),ZP={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},JP=e=>e.replace(/[!,[\]{}]/g,t=>ZP[t]),Wo=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);let i=t.trim().split(/[ \t]+/),r=i.shift();switch(r){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;let[o,a]=i;return this.tags[o]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;let[o]=i;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{let a=/^\d+\.\d+$/.test(o);return n(6,`Unsupported YAML version ${o}`,a),!1}}default:return n(0,`Unknown directive ${r}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let a=t.slice(2,-1);return a==="!"||a==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),a)}let[,i,r]=t.match(/^(.*!)([^!]*)$/s);r||n(`The ${t} tag has no suffix`);let o=this.tags[i];if(o)try{return o+decodeURIComponent(r)}catch(a){return n(String(a)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+JP(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),r;if(t&&i.length>0&&Bb.isNode(t.contents)){let o={};FP.visit(t.contents,(a,s)=>{Bb.isNode(s)&&s.tag&&(o[s.tag]=!0)}),r=Object.keys(o)}else r=[];for(let[o,a]of i)o==="!!"&&a==="tag:yaml.org,2002:"||(!t||r.some(s=>s.startsWith(a)))&&n.push(`%TAG ${o} ${a}`);return n.join(`
|
|
4
|
+
`)}};Wo.defaultYaml={explicit:!1,version:"1.2"};Wo.defaultTags={"!!":"tag:yaml.org,2002:"};Kb.Directives=Wo});var fc=oe(Yo=>{"use strict";var Hb=Re(),BP=Go();function KP(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function Gb(e){let t=new Set;return BP.visit(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function Wb(e,t){for(let n=1;;++n){let i=`${e}${n}`;if(!t.has(i))return i}}function HP(e,t){let n=[],i=new Map,r=null;return{onAnchor:o=>{n.push(o),r??(r=Gb(e));let a=Wb(t,r);return r.add(a),a},setAnchors:()=>{for(let o of n){let a=i.get(o);if(typeof a=="object"&&a.anchor&&(Hb.isScalar(a.node)||Hb.isCollection(a.node)))a.node.anchor=a.anchor;else{let s=new Error("Failed to resolve repeated object (this should not happen)");throw s.source=o,s}}},sourceObjects:i}}Yo.anchorIsValid=KP;Yo.anchorNames=Gb;Yo.createNodeAnchors=HP;Yo.findNewAnchor=Wb});var _p=oe(Yb=>{"use strict";function Qo(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let r=0,o=i.length;r<o;++r){let a=i[r],s=Qo(e,i,String(r),a);s===void 0?delete i[r]:s!==a&&(i[r]=s)}else if(i instanceof Map)for(let r of Array.from(i.keys())){let o=i.get(r),a=Qo(e,i,r,o);a===void 0?i.delete(r):a!==o&&i.set(r,a)}else if(i instanceof Set)for(let r of Array.from(i)){let o=Qo(e,i,r,r);o===void 0?i.delete(r):o!==r&&(i.delete(r),i.add(o))}else for(let[r,o]of Object.entries(i)){let a=Qo(e,i,r,o);a===void 0?delete i[r]:a!==o&&(i[r]=a)}return e.call(t,n,i)}Yb.applyReviver=Qo});var $r=oe(Xb=>{"use strict";var GP=Re();function Qb(e,t,n){if(Array.isArray(e))return e.map((i,r)=>Qb(i,String(r),n));if(e&&typeof e.toJSON=="function"){if(!n||!GP.hasAnchor(e))return e.toJSON(t,n);let i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=o=>{i.res=o,delete n.onCreate};let r=e.toJSON(t,n);return n.onCreate&&n.onCreate(r),r}return typeof e=="bigint"&&!n?.keep?Number(e):e}Xb.toJS=Qb});var hc=oe(t$=>{"use strict";var WP=_p(),e$=Re(),YP=$r(),Sp=class{constructor(t){Object.defineProperty(this,e$.NODE_TYPE,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:r,reviver:o}={}){if(!e$.isDocument(t))throw new TypeError("A document argument is required");let a={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},s=YP.toJS(this,"",a);if(typeof r=="function")for(let{count:c,res:l}of a.anchors.values())r(l,c);return typeof o=="function"?WP.applyReviver(o,{"":s},"",s):s}};t$.NodeBase=Sp});var Xo=oe(r$=>{"use strict";var QP=fc(),XP=Go(),si=Re(),eE=hc(),tE=$r(),bp=class extends eE.NodeBase{constructor(t){super(si.ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){if(n?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let i;n?.aliasResolveCache?i=n.aliasResolveCache:(i=[],XP.visit(t,{Node:(o,a)=>{(si.isAlias(a)||si.hasAnchor(a))&&i.push(a)}}),n&&(n.aliasResolveCache=i));let r;for(let o of i){if(o===this)break;o.anchor===this.source&&(r=o)}return r}toJSON(t,n){if(!n)return{source:this.source};let{anchors:i,doc:r,maxAliasCount:o}=n,a=this.resolve(r,n);if(!a){let c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let s=i.get(a);if(s||(tE.toJS(a,null,n),s=i.get(a)),s?.res===void 0){let c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(o>=0&&(s.count+=1,s.aliasCount===0&&(s.aliasCount=gc(r,a,i)),s.count*s.aliasCount>o)){let c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return s.res}toString(t,n,i){let r=`*${this.source}`;if(t){if(QP.anchorIsValid(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){let o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(t.implicitKey)return`${r} `}return r}};function gc(e,t,n){if(si.isAlias(t)){let i=t.resolve(e),r=n&&i&&n.get(i);return r?r.count*r.aliasCount:0}else if(si.isCollection(t)){let i=0;for(let r of t.items){let o=gc(e,r,n);o>i&&(i=o)}return i}else if(si.isPair(t)){let i=gc(e,t.key,n),r=gc(e,t.value,n);return Math.max(i,r)}return 1}r$.Alias=bp});var Be=oe($p=>{"use strict";var rE=Re(),nE=hc(),iE=$r(),oE=e=>!e||typeof e!="function"&&typeof e!="object",wr=class extends nE.NodeBase{constructor(t){super(rE.SCALAR),this.value=t}toJSON(t,n){return n?.keep?this.value:iE.toJS(this.value,t,n)}toString(){return String(this.value)}};wr.BLOCK_FOLDED="BLOCK_FOLDED";wr.BLOCK_LITERAL="BLOCK_LITERAL";wr.PLAIN="PLAIN";wr.QUOTE_DOUBLE="QUOTE_DOUBLE";wr.QUOTE_SINGLE="QUOTE_SINGLE";$p.Scalar=wr;$p.isScalarValue=oE});var ea=oe(i$=>{"use strict";var aE=Xo(),Sn=Re(),n$=Be(),sE="tag:yaml.org,2002:";function cE(e,t,n){if(t){let i=n.filter(o=>o.tag===t),r=i.find(o=>!o.format)??i[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find(i=>i.identify?.(e)&&!i.format)}function lE(e,t,n){if(Sn.isDocument(e)&&(e=e.contents),Sn.isNode(e))return e;if(Sn.isPair(e)){let d=n.schema[Sn.MAP].createNode?.(n.schema,null,n);return d.items.push(e),d}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:r,onTagObj:o,schema:a,sourceObjects:s}=n,c;if(i&&e&&typeof e=="object"){if(c=s.get(e),c)return c.anchor??(c.anchor=r(e)),new aE.Alias(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith("!!")&&(t=sE+t.slice(2));let l=cE(e,t,a.tags);if(!l){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let d=new n$.Scalar(e);return c&&(c.node=d),d}l=e instanceof Map?a[Sn.MAP]:Symbol.iterator in Object(e)?a[Sn.SEQ]:a[Sn.MAP]}o&&(o(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from=="function"?l.nodeClass.from(n.schema,e,n):new n$.Scalar(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}i$.createNode=lE});var yc=oe(vc=>{"use strict";var uE=ea(),Gt=Re(),dE=hc();function wp(e,t,n){let i=n;for(let r=t.length-1;r>=0;--r){let o=t[r];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){let a=[];a[o]=i,i=a}else i=new Map([[o,i]])}return uE.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var o$=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,zp=class extends dE.NodeBase{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){let n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>Gt.isNode(i)||Gt.isPair(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(o$(t))this.add(n);else{let[i,...r]=t,o=this.get(i,!0);if(Gt.isCollection(o))o.addIn(r,n);else if(o===void 0&&this.schema)this.set(i,wp(this.schema,r,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}deleteIn(t){let[n,...i]=t;if(i.length===0)return this.delete(n);let r=this.get(n,!0);if(Gt.isCollection(r))return r.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){let[i,...r]=t,o=this.get(i,!0);return r.length===0?!n&&Gt.isScalar(o)?o.value:o:Gt.isCollection(o)?o.getIn(r,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Gt.isPair(n))return!1;let i=n.value;return i==null||t&&Gt.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){let[n,...i]=t;if(i.length===0)return this.has(n);let r=this.get(n,!0);return Gt.isCollection(r)?r.hasIn(i):!1}setIn(t,n){let[i,...r]=t;if(r.length===0)this.set(i,n);else{let o=this.get(i,!0);if(Gt.isCollection(o))o.setIn(r,n);else if(o===void 0&&this.schema)this.set(i,wp(this.schema,r,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}};vc.Collection=zp;vc.collectionFromPath=wp;vc.isEmptyPath=o$});var ta=oe(_c=>{"use strict";var mE=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function kp(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var pE=(e,t,n)=>e.endsWith(`
|
|
5
|
+
`)?kp(n,t):n.includes(`
|
|
6
|
+
`)?`
|
|
7
|
+
`+kp(n,t):(e.endsWith(" ")?"":" ")+n;_c.indentComment=kp;_c.lineComment=pE;_c.stringifyComment=mE});var s$=oe(ra=>{"use strict";var fE="flow",Rp="block",Sc="quoted";function hE(e,t,n="flow",{indentAtStart:i,lineWidth:r=80,minContentWidth:o=20,onFold:a,onOverflow:s}={}){if(!r||r<0)return e;r<o&&(o=0);let c=Math.max(1+o,1+r-t.length);if(e.length<=c)return e;let l=[],u={},d=r-t.length;typeof i=="number"&&(i>r-Math.max(2,o)?l.push(0):d=r-i);let m,v,y=!1,f=-1,h=-1,g=-1;n===Rp&&(f=a$(e,f,t.length),f!==-1&&(d=f+c));for(let _;_=e[f+=1];){if(n===Sc&&_==="\\"){switch(h=f,e[f+1]){case"x":f+=3;break;case"u":f+=5;break;case"U":f+=9;break;default:f+=1}g=f}if(_===`
|
|
8
|
+
`)n===Rp&&(f=a$(e,f,t.length)),d=f+t.length+c,m=void 0;else{if(_===" "&&v&&v!==" "&&v!==`
|
|
9
|
+
`&&v!==" "){let b=e[f+1];b&&b!==" "&&b!==`
|
|
10
|
+
`&&b!==" "&&(m=f)}if(f>=d)if(m)l.push(m),d=m+c,m=void 0;else if(n===Sc){for(;v===" "||v===" ";)v=_,_=e[f+=1],y=!0;let b=f>g+1?f-2:h-1;if(u[b])return e;l.push(b),u[b]=!0,d=b+c,m=void 0}else y=!0}v=_}if(y&&s&&s(),l.length===0)return e;a&&a();let $=e.slice(0,l[0]);for(let _=0;_<l.length;++_){let b=l[_],k=l[_+1]||e.length;b===0?$=`
|
|
11
|
+
${t}${e.slice(0,k)}`:(n===Sc&&u[b]&&($+=`${e[b]}\\`),$+=`
|
|
12
|
+
${t}${e.slice(b+1,k)}`)}return $}function a$(e,t,n){let i=t,r=t+1,o=e[r];for(;o===" "||o===" ";)if(t<r+n)o=e[++t];else{do o=e[++t];while(o&&o!==`
|
|
13
|
+
`);i=t,r=t+1,o=e[r]}return i}ra.FOLD_BLOCK=Rp;ra.FOLD_FLOW=fE;ra.FOLD_QUOTED=Sc;ra.foldFlowLines=hE});var ia=oe(c$=>{"use strict";var qt=Be(),zr=s$(),$c=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),wc=e=>/^(%|---|\.\.\.)/m.test(e);function gE(e,t,n){if(!t||t<0)return!1;let i=t-n,r=e.length;if(r<=i)return!1;for(let o=0,a=0;o<r;++o)if(e[o]===`
|
|
14
|
+
`){if(o-a>i)return!0;if(a=o+1,r-a<=i)return!1}return!0}function na(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:i}=t,r=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(wc(e)?" ":""),a="",s=0;for(let c=0,l=n[c];l;l=n[++c])if(l===" "&&n[c+1]==="\\"&&n[c+2]==="n"&&(a+=n.slice(s,c)+"\\ ",c+=1,s=c,l="\\"),l==="\\")switch(n[c+1]){case"u":{a+=n.slice(s,c);let u=n.substr(c+2,4);switch(u){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:u.substr(0,2)==="00"?a+="\\x"+u.substr(2):a+=n.substr(c,6)}c+=5,s=c+1}break;case"n":if(i||n[c+2]==='"'||n.length<r)c+=1;else{for(a+=n.slice(s,c)+`
|
|
15
|
+
|
|
16
|
+
`;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)a+=`
|
|
17
|
+
`,c+=2;a+=o,n[c+2]===" "&&(a+="\\"),c+=1,s=c+1}break;default:c+=1}return a=s?a+n.slice(s):n,i?a:zr.foldFlowLines(a,o,zr.FOLD_QUOTED,$c(t,!1))}function Ip(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
18
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return na(e,t);let n=t.indent||(wc(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
19
|
+
${n}`)+"'";return t.implicitKey?i:zr.foldFlowLines(i,n,zr.FOLD_FLOW,$c(t,!1))}function ci(e,t){let{singleQuote:n}=t.options,i;if(n===!1)i=na;else{let r=e.includes('"'),o=e.includes("'");r&&!o?i=Ip:o&&!r?i=na:i=n?Ip:na}return i(e,t)}var Pp;try{Pp=new RegExp(`(^|(?<!
|
|
20
|
+
))
|
|
21
|
+
+(?!
|
|
22
|
+
|$)`,"g")}catch{Pp=/\n+(?!\n|$)/g}function bc({comment:e,type:t,value:n},i,r,o){let{blockQuote:a,commentString:s,lineWidth:c}=i.options;if(!a||/\n[\t ]+$/.test(n))return ci(n,i);let l=i.indent||(i.forceBlockIndent||wc(n)?" ":""),u=a==="literal"?!0:a==="folded"||t===qt.Scalar.BLOCK_FOLDED?!1:t===qt.Scalar.BLOCK_LITERAL?!0:!gE(n,c,l.length);if(!n)return u?`|
|
|
23
|
+
`:`>
|
|
24
|
+
`;let d,m;for(m=n.length;m>0;--m){let k=n[m-1];if(k!==`
|
|
25
|
+
`&&k!==" "&&k!==" ")break}let v=n.substring(m),y=v.indexOf(`
|
|
26
|
+
`);y===-1?d="-":n===v||y!==v.length-1?(d="+",o&&o()):d="",v&&(n=n.slice(0,-v.length),v[v.length-1]===`
|
|
27
|
+
`&&(v=v.slice(0,-1)),v=v.replace(Pp,`$&${l}`));let f=!1,h,g=-1;for(h=0;h<n.length;++h){let k=n[h];if(k===" ")f=!0;else if(k===`
|
|
28
|
+
`)g=h;else break}let $=n.substring(0,g<h?g+1:h);$&&(n=n.substring($.length),$=$.replace(/\n+/g,`$&${l}`));let b=(f?l?"2":"1":"")+d;if(e&&(b+=" "+s(e.replace(/ ?[\r\n]+/g," ")),r&&r()),!u){let k=n.replace(/\n+/g,`
|
|
29
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`),z=!1,S=$c(i,!0);a!=="folded"&&t!==qt.Scalar.BLOCK_FOLDED&&(S.onOverflow=()=>{z=!0});let w=zr.foldFlowLines(`${$}${k}${v}`,l,zr.FOLD_BLOCK,S);if(!z)return`>${b}
|
|
30
|
+
${l}${w}`}return n=n.replace(/\n+/g,`$&${l}`),`|${b}
|
|
31
|
+
${l}${$}${n}${v}`}function vE(e,t,n,i){let{type:r,value:o}=e,{actualString:a,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&o.includes(`
|
|
32
|
+
`)||u&&/[[\]{},]/.test(o))return ci(o,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return s||u||!o.includes(`
|
|
33
|
+
`)?ci(o,t):bc(e,t,n,i);if(!s&&!u&&r!==qt.Scalar.PLAIN&&o.includes(`
|
|
34
|
+
`))return bc(e,t,n,i);if(wc(o)){if(c==="")return t.forceBlockIndent=!0,bc(e,t,n,i);if(s&&c===l)return ci(o,t)}let d=o.replace(/\n+/g,`$&
|
|
35
|
+
${c}`);if(a){let m=f=>f.default&&f.tag!=="tag:yaml.org,2002:str"&&f.test?.test(d),{compat:v,tags:y}=t.doc.schema;if(y.some(m)||v?.some(m))return ci(o,t)}return s?d:zr.foldFlowLines(d,c,zr.FOLD_FLOW,$c(t,!1))}function yE(e,t,n,i){let{implicitKey:r,inFlow:o}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==qt.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=qt.Scalar.QUOTE_DOUBLE);let c=u=>{switch(u){case qt.Scalar.BLOCK_FOLDED:case qt.Scalar.BLOCK_LITERAL:return r||o?ci(a.value,t):bc(a,t,n,i);case qt.Scalar.QUOTE_DOUBLE:return na(a.value,t);case qt.Scalar.QUOTE_SINGLE:return Ip(a.value,t);case qt.Scalar.PLAIN:return vE(a,t,n,i);default:return null}},l=c(s);if(l===null){let{defaultKeyType:u,defaultStringType:d}=t.options,m=r&&u||d;if(l=c(m),l===null)throw new Error(`Unsupported default string type ${m}`)}return l}c$.stringifyString=yE});var oa=oe(Ep=>{"use strict";var _E=fc(),kr=Re(),SE=ta(),bE=ia();function $E(e,t){let n=Object.assign({blockQuote:!0,commentString:SE.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:i,options:n}}function wE(e,t){if(t.tag){let r=e.filter(o=>o.tag===t.tag);if(r.length>0)return r.find(o=>o.format===t.format)??r[0]}let n,i;if(kr.isScalar(t)){i=t.value;let r=e.filter(o=>o.identify?.(i));if(r.length>1){let o=r.filter(a=>a.test);o.length>0&&(r=o)}n=r.find(o=>o.format===t.format)??r.find(o=>!o.format)}else i=t,n=e.find(r=>r.nodeClass&&i instanceof r.nodeClass);if(!n){let r=i?.constructor?.name??(i===null?"null":typeof i);throw new Error(`Tag not resolved for ${r} value`)}return n}function zE(e,t,{anchors:n,doc:i}){if(!i.directives)return"";let r=[],o=(kr.isScalar(e)||kr.isCollection(e))&&e.anchor;o&&_E.anchorIsValid(o)&&(n.add(o),r.push(`&${o}`));let a=e.tag??(t.default?null:t.tag);return a&&r.push(i.directives.tagString(a)),r.join(" ")}function kE(e,t,n,i){if(kr.isPair(e))return e.toString(t,n,i);if(kr.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let r,o=kr.isNode(e)?e:t.doc.createNode(e,{onTagObj:c=>r=c});r??(r=wE(t.doc.schema.tags,o));let a=zE(o,r,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);let s=typeof r.stringify=="function"?r.stringify(o,t,n,i):kr.isScalar(o)?bE.stringifyString(o,t,n,i):o.toString(t,n,i);return a?kr.isScalar(o)||s[0]==="{"||s[0]==="["?`${a} ${s}`:`${a}
|
|
36
|
+
${t.indent}${s}`:s}Ep.createStringifyContext=$E;Ep.stringify=kE});var m$=oe(d$=>{"use strict";var ar=Re(),l$=Be(),u$=oa(),aa=ta();function RE({key:e,value:t},n,i,r){let{allNullValues:o,doc:a,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,m=ar.isNode(e)&&e.comment||null;if(d){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(ar.isCollection(e)||!ar.isNode(e)&&typeof e=="object"){let S="With simple keys, collection cannot be used as a key value";throw new Error(S)}}let v=!d&&(!e||m&&t==null&&!n.inFlow||ar.isCollection(e)||(ar.isScalar(e)?e.type===l$.Scalar.BLOCK_FOLDED||e.type===l$.Scalar.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!v&&(d||!o),indent:s+c});let y=!1,f=!1,h=u$.stringify(e,n,()=>y=!0,()=>f=!0);if(!v&&!n.inFlow&&h.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");v=!0}if(n.inFlow){if(o||t==null)return y&&i&&i(),h===""?"?":v?`? ${h}`:h}else if(o&&!d||t==null&&v)return h=`? ${h}`,m&&!y?h+=aa.lineComment(h,n.indent,l(m)):f&&r&&r(),h;y&&(m=null),v?(m&&(h+=aa.lineComment(h,n.indent,l(m))),h=`? ${h}
|
|
37
|
+
${s}:`):(h=`${h}:`,m&&(h+=aa.lineComment(h,n.indent,l(m))));let g,$,_;ar.isNode(t)?(g=!!t.spaceBefore,$=t.commentBefore,_=t.comment):(g=!1,$=null,_=null,t&&typeof t=="object"&&(t=a.createNode(t))),n.implicitKey=!1,!v&&!m&&ar.isScalar(t)&&(n.indentAtStart=h.length+1),f=!1,!u&&c.length>=2&&!n.inFlow&&!v&&ar.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,k=u$.stringify(t,n,()=>b=!0,()=>f=!0),z=" ";if(m||g||$){if(z=g?`
|
|
38
|
+
`:"",$){let S=l($);z+=`
|
|
39
|
+
${aa.indentComment(S,n.indent)}`}k===""&&!n.inFlow?z===`
|
|
40
|
+
`&&_&&(z=`
|
|
41
|
+
|
|
42
|
+
`):z+=`
|
|
43
|
+
${n.indent}`}else if(!v&&ar.isCollection(t)){let S=k[0],w=k.indexOf(`
|
|
44
|
+
`),T=w!==-1,M=n.inFlow??t.flow??t.items.length===0;if(T||!M){let N=!1;if(T&&(S==="&"||S==="!")){let U=k.indexOf(" ");S==="&"&&U!==-1&&U<w&&k[U+1]==="!"&&(U=k.indexOf(" ",U+1)),(U===-1||w<U)&&(N=!0)}N||(z=`
|
|
45
|
+
${n.indent}`)}}else(k===""||k[0]===`
|
|
46
|
+
`)&&(z="");return h+=z+k,n.inFlow?b&&i&&i():_&&!b?h+=aa.lineComment(h,n.indent,l(_)):f&&r&&r(),h}d$.stringifyPair=RE});var Op=oe(Tp=>{"use strict";var p$=cc("process");function IE(e,...t){e==="debug"&&console.log(...t)}function PE(e,t){(e==="debug"||e==="warn")&&(typeof p$.emitWarning=="function"?p$.emitWarning(t):console.warn(t))}Tp.debug=IE;Tp.warn=PE});var Pc=oe(Ic=>{"use strict";var Rc=Re(),f$=Be(),zc="<<",kc={identify:e=>e===zc||typeof e=="symbol"&&e.description===zc,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new f$.Scalar(Symbol(zc)),{addToJSMap:h$}),stringify:()=>zc},EE=(e,t)=>(kc.identify(t)||Rc.isScalar(t)&&(!t.type||t.type===f$.Scalar.PLAIN)&&kc.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===kc.tag&&n.default);function h$(e,t,n){let i=g$(e,n);if(Rc.isSeq(i))for(let r of i.items)xp(e,t,r);else if(Array.isArray(i))for(let r of i)xp(e,t,r);else xp(e,t,i)}function xp(e,t,n){let i=g$(e,n);if(!Rc.isMap(i))throw new Error("Merge sources must be maps or map aliases");let r=i.toJSON(null,e,Map);for(let[o,a]of r)t instanceof Map?t.has(o)||t.set(o,a):t instanceof Set?t.add(o):Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}function g$(e,t){return e&&Rc.isAlias(t)?t.resolve(e.doc,e):t}Ic.addMergeToJSMap=h$;Ic.isMergeKey=EE;Ic.merge=kc});var jp=oe(_$=>{"use strict";var TE=Op(),v$=Pc(),OE=oa(),y$=Re(),Np=$r();function xE(e,t,{key:n,value:i}){if(y$.isNode(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(v$.isMergeKey(e,n))v$.addMergeToJSMap(e,t,i);else{let r=Np.toJS(n,"",e);if(t instanceof Map)t.set(r,Np.toJS(i,r,e));else if(t instanceof Set)t.add(r);else{let o=NE(n,r,e),a=Np.toJS(i,o,e);o in t?Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[o]=a}}return t}function NE(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(y$.isNode(e)&&n?.doc){let i=OE.createStringifyContext(n.doc,{});i.anchors=new Set;for(let o of n.anchors.keys())i.anchors.add(o.anchor);i.inFlow=!0,i.inStringifyKey=!0;let r=e.toString(i);if(!n.mapKeyWarned){let o=JSON.stringify(r);o.length>40&&(o=o.substring(0,36)+'..."'),TE.warn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}_$.addPairToJSMap=xE});var Rr=oe(Cp=>{"use strict";var S$=ea(),jE=m$(),CE=jp(),Ec=Re();function AE(e,t,n){let i=S$.createNode(e,void 0,n),r=S$.createNode(t,void 0,n);return new Tc(i,r)}var Tc=class e{constructor(t,n=null){Object.defineProperty(this,Ec.NODE_TYPE,{value:Ec.PAIR}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return Ec.isNode(n)&&(n=n.clone(t)),Ec.isNode(i)&&(i=i.clone(t)),new e(n,i)}toJSON(t,n){let i=n?.mapAsMap?new Map:{};return CE.addPairToJSMap(n,i,this)}toString(t,n,i){return t?.doc?jE.stringifyPair(this,t,n,i):JSON.stringify(this)}};Cp.Pair=Tc;Cp.createPair=AE});var Ap=oe($$=>{"use strict";var bn=Re(),b$=oa(),Oc=ta();function qE(e,t,n){return(t.inFlow??e.flow?LE:ME)(e,t,n)}function ME({comment:e,items:t},n,{blockItemPrefix:i,flowChars:r,itemIndent:o,onChompKeep:a,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:o,type:null}),d=!1,m=[];for(let y=0;y<t.length;++y){let f=t[y],h=null;if(bn.isNode(f))!d&&f.spaceBefore&&m.push(""),xc(n,m,f.commentBefore,d),f.comment&&(h=f.comment);else if(bn.isPair(f)){let $=bn.isNode(f.key)?f.key:null;$&&(!d&&$.spaceBefore&&m.push(""),xc(n,m,$.commentBefore,d))}d=!1;let g=b$.stringify(f,u,()=>h=null,()=>d=!0);h&&(g+=Oc.lineComment(g,o,l(h))),d&&h&&(d=!1),m.push(i+g)}let v;if(m.length===0)v=r.start+r.end;else{v=m[0];for(let y=1;y<m.length;++y){let f=m[y];v+=f?`
|
|
47
|
+
${c}${f}`:`
|
|
48
|
+
`}}return e?(v+=`
|
|
49
|
+
`+Oc.indentComment(l(e),c),s&&s()):d&&a&&a(),v}function LE({items:e},t,{flowChars:n,itemIndent:i}){let{indent:r,indentStep:o,flowCollectionPadding:a,options:{commentString:s}}=t;i+=o;let c=Object.assign({},t,{indent:i,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let y=0;y<e.length;++y){let f=e[y],h=null;if(bn.isNode(f))f.spaceBefore&&d.push(""),xc(t,d,f.commentBefore,!1),f.comment&&(h=f.comment);else if(bn.isPair(f)){let $=bn.isNode(f.key)?f.key:null;$&&($.spaceBefore&&d.push(""),xc(t,d,$.commentBefore,!1),$.comment&&(l=!0));let _=bn.isNode(f.value)?f.value:null;_?(_.comment&&(h=_.comment),_.commentBefore&&(l=!0)):f.value==null&&$?.comment&&(h=$.comment)}h&&(l=!0);let g=b$.stringify(f,c,()=>h=null);l||(l=d.length>u||g.includes(`
|
|
50
|
+
`)),y<e.length-1?g+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(l||(l=d.reduce(($,_)=>$+_.length+2,2)+(g.length+2)>t.options.lineWidth)),l&&(g+=",")),h&&(g+=Oc.lineComment(g,i,s(h))),d.push(g),u=d.length}let{start:m,end:v}=n;if(d.length===0)return m+v;if(!l){let y=d.reduce((f,h)=>f+h.length+2,2);l=t.options.lineWidth>0&&y>t.options.lineWidth}if(l){let y=m;for(let f of d)y+=f?`
|
|
51
|
+
${o}${r}${f}`:`
|
|
52
|
+
`;return`${y}
|
|
53
|
+
${r}${v}`}else return`${m}${a}${d.join(" ")}${a}${v}`}function xc({indent:e,options:{commentString:t}},n,i,r){if(i&&r&&(i=i.replace(/^\n+/,"")),i){let o=Oc.indentComment(t(i),e);n.push(o.trimStart())}}$$.stringifyCollection=qE});var Pr=oe(Mp=>{"use strict";var DE=Ap(),UE=jp(),VE=yc(),Ir=Re(),Nc=Rr(),FE=Be();function sa(e,t){let n=Ir.isScalar(t)?t.value:t;for(let i of e)if(Ir.isPair(i)&&(i.key===t||i.key===n||Ir.isScalar(i.key)&&i.key.value===n))return i}var qp=class extends VE.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ir.MAP,t),this.items=[]}static from(t,n,i){let{keepUndefined:r,replacer:o}=i,a=new this(t),s=(c,l)=>{if(typeof o=="function")l=o.call(n,c,l);else if(Array.isArray(o)&&!o.includes(c))return;(l!==void 0||r)&&a.items.push(Nc.createPair(c,l,i))};if(n instanceof Map)for(let[c,l]of n)s(c,l);else if(n&&typeof n=="object")for(let c of Object.keys(n))s(c,n[c]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,n){let i;Ir.isPair(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new Nc.Pair(t,t?.value):i=new Nc.Pair(t.key,t.value);let r=sa(this.items,i.key),o=this.schema?.sortMapEntries;if(r){if(!n)throw new Error(`Key ${i.key} already set`);Ir.isScalar(r.value)&&FE.isScalarValue(i.value)?r.value.value=i.value:r.value=i.value}else if(o){let a=this.items.findIndex(s=>o(i,s)<0);a===-1?this.items.push(i):this.items.splice(a,0,i)}else this.items.push(i)}delete(t){let n=sa(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){let r=sa(this.items,t)?.value;return(!n&&Ir.isScalar(r)?r.value:r)??void 0}has(t){return!!sa(this.items,t)}set(t,n){this.add(new Nc.Pair(t,n),!0)}toJSON(t,n,i){let r=i?new i:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(r);for(let o of this.items)UE.addPairToJSMap(n,r,o);return r}toString(t,n,i){if(!t)return JSON.stringify(this);for(let r of this.items)if(!Ir.isPair(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),DE.stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}};Mp.YAMLMap=qp;Mp.findPair=sa});var li=oe(z$=>{"use strict";var ZE=Re(),w$=Pr(),JE={collection:"map",default:!0,nodeClass:w$.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return ZE.isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>w$.YAMLMap.from(e,t,n)};z$.map=JE});var Er=oe(k$=>{"use strict";var BE=ea(),KE=Ap(),HE=yc(),Cc=Re(),GE=Be(),WE=$r(),Lp=class extends HE.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Cc.SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){let n=jc(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){let i=jc(t);if(typeof i!="number")return;let r=this.items[i];return!n&&Cc.isScalar(r)?r.value:r}has(t){let n=jc(t);return typeof n=="number"&&n<this.items.length}set(t,n){let i=jc(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);let r=this.items[i];Cc.isScalar(r)&&GE.isScalarValue(n)?r.value=n:this.items[i]=n}toJSON(t,n){let i=[];n?.onCreate&&n.onCreate(i);let r=0;for(let o of this.items)i.push(WE.toJS(o,String(r++),n));return i}toString(t,n,i){return t?KE.stringifyCollection(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:n}):JSON.stringify(this)}static from(t,n,i){let{replacer:r}=i,o=new this(t);if(n&&Symbol.iterator in Object(n)){let a=0;for(let s of n){if(typeof r=="function"){let c=n instanceof Set?s:String(a++);s=r.call(n,c,s)}o.items.push(BE.createNode(s,void 0,i))}}return o}};function jc(e){let t=Cc.isScalar(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}k$.YAMLSeq=Lp});var ui=oe(I$=>{"use strict";var YE=Re(),R$=Er(),QE={collection:"seq",default:!0,nodeClass:R$.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return YE.isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>R$.YAMLSeq.from(e,t,n)};I$.seq=QE});var ca=oe(P$=>{"use strict";var XE=ia(),eT={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){return t=Object.assign({actualString:!0},t),XE.stringifyString(e,t,n,i)}};P$.string=eT});var Ac=oe(O$=>{"use strict";var E$=Be(),T$={identify:e=>e==null,createNode:()=>new E$.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new E$.Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&T$.test.test(e)?e:t.options.nullStr};O$.nullTag=T$});var Dp=oe(N$=>{"use strict";var tT=Be(),x$={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new tT.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&x$.test.test(e)){let i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?n.options.trueStr:n.options.falseStr}};N$.boolTag=x$});var di=oe(j$=>{"use strict";function rT({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i=="bigint")return String(i);let r=typeof i=="number"?i:Number(i);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=Object.is(i,-0)?"-0":JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^-?\d/.test(o)&&!o.includes("e")){let a=o.indexOf(".");a<0&&(a=o.length,o+=".");let s=t-(o.length-a-1);for(;s-- >0;)o+="0"}return o}j$.stringifyNumber=rT});var Vp=oe(qc=>{"use strict";var nT=Be(),Up=di(),iT={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Up.stringifyNumber},oT={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Up.stringifyNumber(e)}},aT={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new nT.Scalar(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Up.stringifyNumber};qc.float=aT;qc.floatExp=oT;qc.floatNaN=iT});var Zp=oe(Lc=>{"use strict";var C$=di(),Mc=e=>typeof e=="bigint"||Number.isInteger(e),Fp=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function A$(e,t,n){let{value:i}=e;return Mc(i)&&i>=0?n+i.toString(t):C$.stringifyNumber(e)}var sT={identify:e=>Mc(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Fp(e,2,8,n),stringify:e=>A$(e,8,"0o")},cT={identify:Mc,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Fp(e,0,10,n),stringify:C$.stringifyNumber},lT={identify:e=>Mc(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Fp(e,2,16,n),stringify:e=>A$(e,16,"0x")};Lc.int=cT;Lc.intHex=lT;Lc.intOct=sT});var M$=oe(q$=>{"use strict";var uT=li(),dT=Ac(),mT=ui(),pT=ca(),fT=Dp(),Jp=Vp(),Bp=Zp(),hT=[uT.map,mT.seq,pT.string,dT.nullTag,fT.boolTag,Bp.intOct,Bp.int,Bp.intHex,Jp.floatNaN,Jp.floatExp,Jp.float];q$.schema=hT});var U$=oe(D$=>{"use strict";var gT=Be(),vT=li(),yT=ui();function L$(e){return typeof e=="bigint"||Number.isInteger(e)}var Dc=({value:e})=>JSON.stringify(e),_T=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Dc},{identify:e=>e==null,createNode:()=>new gT.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Dc},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:Dc},{identify:L$,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>L$(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Dc}],ST={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},bT=[vT.map,yT.seq].concat(_T,ST);D$.schema=bT});var Hp=oe(V$=>{"use strict";var la=cc("buffer"),Kp=Be(),$T=ia(),wT={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof la.Buffer=="function")return la.Buffer.from(e,"base64");if(typeof atob=="function"){let n=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let r=0;r<n.length;++r)i[r]=n.charCodeAt(r);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},i,r,o){if(!n)return"";let a=n,s;if(typeof la.Buffer=="function")s=a instanceof la.Buffer?a.toString("base64"):la.Buffer.from(a.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let l=0;l<a.length;++l)c+=String.fromCharCode(a[l]);s=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=Kp.Scalar.BLOCK_LITERAL),t!==Kp.Scalar.QUOTE_DOUBLE){let c=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),l=Math.ceil(s.length/c),u=new Array(l);for(let d=0,m=0;d<l;++d,m+=c)u[d]=s.substr(m,c);s=u.join(t===Kp.Scalar.BLOCK_LITERAL?`
|
|
54
|
+
`:" ")}return $T.stringifyString({comment:e,type:t,value:s},i,r,o)}};V$.binary=wT});var Fc=oe(Vc=>{"use strict";var Uc=Re(),Gp=Rr(),zT=Be(),kT=Er();function F$(e,t){if(Uc.isSeq(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!Uc.isPair(i)){if(Uc.isMap(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");let r=i.items[0]||new Gp.Pair(new zT.Scalar(null));if(i.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${i.commentBefore}
|
|
55
|
+
${r.key.commentBefore}`:i.commentBefore),i.comment){let o=r.value??r.key;o.comment=o.comment?`${i.comment}
|
|
56
|
+
${o.comment}`:i.comment}i=r}e.items[n]=Uc.isPair(i)?i:new Gp.Pair(i)}}else t("Expected a sequence for this tag");return e}function Z$(e,t,n){let{replacer:i}=n,r=new kT.YAMLSeq(e);r.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof i=="function"&&(a=i.call(t,String(o++),a));let s,c;if(Array.isArray(a))if(a.length===2)s=a[0],c=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let l=Object.keys(a);if(l.length===1)s=l[0],c=a[s];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else s=a;r.items.push(Gp.createPair(s,c,n))}return r}var RT={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:F$,createNode:Z$};Vc.createPairs=Z$;Vc.pairs=RT;Vc.resolvePairs=F$});var Qp=oe(Yp=>{"use strict";var J$=Re(),Wp=$r(),ua=Pr(),IT=Er(),B$=Fc(),$n=class e extends IT.YAMLSeq{constructor(){super(),this.add=ua.YAMLMap.prototype.add.bind(this),this.delete=ua.YAMLMap.prototype.delete.bind(this),this.get=ua.YAMLMap.prototype.get.bind(this),this.has=ua.YAMLMap.prototype.has.bind(this),this.set=ua.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(t,n){if(!n)return super.toJSON(t);let i=new Map;n?.onCreate&&n.onCreate(i);for(let r of this.items){let o,a;if(J$.isPair(r)?(o=Wp.toJS(r.key,"",n),a=Wp.toJS(r.value,o,n)):o=Wp.toJS(r,"",n),i.has(o))throw new Error("Ordered maps must not include duplicate keys");i.set(o,a)}return i}static from(t,n,i){let r=B$.createPairs(t,n,i),o=new this;return o.items=r.items,o}};$n.tag="tag:yaml.org,2002:omap";var PT={collection:"seq",identify:e=>e instanceof Map,nodeClass:$n,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=B$.resolvePairs(e,t),i=[];for(let{key:r}of n.items)J$.isScalar(r)&&(i.includes(r.value)?t(`Ordered maps must not include duplicate keys: ${r.value}`):i.push(r.value));return Object.assign(new $n,n)},createNode:(e,t,n)=>$n.from(e,t,n)};Yp.YAMLOMap=$n;Yp.omap=PT});var Y$=oe(Xp=>{"use strict";var K$=Be();function H$({value:e,source:t},n){return t&&(e?G$:W$).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var G$={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new K$.Scalar(!0),stringify:H$},W$={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new K$.Scalar(!1),stringify:H$};Xp.falseTag=W$;Xp.trueTag=G$});var Q$=oe(Zc=>{"use strict";var ET=Be(),ef=di(),TT={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ef.stringifyNumber},OT={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():ef.stringifyNumber(e)}},xT={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new ET.Scalar(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){let i=e.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:ef.stringifyNumber};Zc.float=xT;Zc.floatExp=OT;Zc.floatNaN=TT});var ew=oe(ma=>{"use strict";var X$=di(),da=e=>typeof e=="bigint"||Number.isInteger(e);function Jc(e,t,n,{intAsBigInt:i}){let r=e[0];if((r==="-"||r==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let a=BigInt(e);return r==="-"?BigInt(-1)*a:a}let o=parseInt(e,n);return r==="-"?-1*o:o}function tf(e,t,n){let{value:i}=e;if(da(i)){let r=i.toString(t);return i<0?"-"+n+r.substr(1):n+r}return X$.stringifyNumber(e)}var NT={identify:da,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Jc(e,2,2,n),stringify:e=>tf(e,2,"0b")},jT={identify:da,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Jc(e,1,8,n),stringify:e=>tf(e,8,"0")},CT={identify:da,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Jc(e,0,10,n),stringify:X$.stringifyNumber},AT={identify:da,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Jc(e,2,16,n),stringify:e=>tf(e,16,"0x")};ma.int=CT;ma.intBin=NT;ma.intHex=AT;ma.intOct=jT});var nf=oe(rf=>{"use strict";var Hc=Re(),Bc=Rr(),Kc=Pr(),wn=class e extends Kc.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(t){let n;Hc.isPair(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Bc.Pair(t.key,null):n=new Bc.Pair(t,null),Kc.findPair(this.items,n.key)||this.items.push(n)}get(t,n){let i=Kc.findPair(this.items,t);return!n&&Hc.isPair(i)?Hc.isScalar(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let i=Kc.findPair(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new Bc.Pair(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(t,n,i){let{replacer:r}=i,o=new this(t);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof r=="function"&&(a=r.call(n,a,a)),o.items.push(Bc.createPair(a,null,i));return o}};wn.tag="tag:yaml.org,2002:set";var qT={collection:"map",identify:e=>e instanceof Set,nodeClass:wn,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>wn.from(e,t,n),resolve(e,t){if(Hc.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new wn,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};rf.YAMLSet=wn;rf.set=qT});var af=oe(Gc=>{"use strict";var MT=di();function of(e,t){let n=e[0],i=n==="-"||n==="+"?e.substring(1):e,r=a=>t?BigInt(a):Number(a),o=i.replace(/_/g,"").split(":").reduce((a,s)=>a*r(60)+r(s),r(0));return n==="-"?r(-1)*o:o}function tw(e){let{value:t}=e,n=a=>a;if(typeof t=="bigint")n=a=>BigInt(a);else if(isNaN(t)||!isFinite(t))return MT.stringifyNumber(e);let i="";t<0&&(i="-",t*=n(-1));let r=n(60),o=[t%r];return t<60?o.unshift(0):(t=(t-o[0])/r,o.unshift(t%r),t>=60&&(t=(t-o[0])/r,o.unshift(t))),i+o.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var LT={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>of(e,n),stringify:tw},DT={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>of(e,!1),stringify:tw},rw={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(rw.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,i,r,o,a,s]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0,l=Date.UTC(n,i-1,r,o||0,a||0,s||0,c),u=t[8];if(u&&u!=="Z"){let d=of(u,!1);Math.abs(d)<30&&(d*=60),l-=6e4*d}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};Gc.floatTime=DT;Gc.intTime=LT;Gc.timestamp=rw});var ow=oe(iw=>{"use strict";var UT=li(),VT=Ac(),FT=ui(),ZT=ca(),JT=Hp(),nw=Y$(),sf=Q$(),Wc=ew(),BT=Pc(),KT=Qp(),HT=Fc(),GT=nf(),cf=af(),WT=[UT.map,FT.seq,ZT.string,VT.nullTag,nw.trueTag,nw.falseTag,Wc.intBin,Wc.intOct,Wc.int,Wc.intHex,sf.floatNaN,sf.floatExp,sf.float,JT.binary,BT.merge,KT.omap,HT.pairs,GT.set,cf.intTime,cf.floatTime,cf.timestamp];iw.schema=WT});var hw=oe(df=>{"use strict";var lw=li(),YT=Ac(),uw=ui(),QT=ca(),XT=Dp(),lf=Vp(),uf=Zp(),eO=M$(),tO=U$(),dw=Hp(),pa=Pc(),mw=Qp(),pw=Fc(),aw=ow(),fw=nf(),Yc=af(),sw=new Map([["core",eO.schema],["failsafe",[lw.map,uw.seq,QT.string]],["json",tO.schema],["yaml11",aw.schema],["yaml-1.1",aw.schema]]),cw={binary:dw.binary,bool:XT.boolTag,float:lf.float,floatExp:lf.floatExp,floatNaN:lf.floatNaN,floatTime:Yc.floatTime,int:uf.int,intHex:uf.intHex,intOct:uf.intOct,intTime:Yc.intTime,map:lw.map,merge:pa.merge,null:YT.nullTag,omap:mw.omap,pairs:pw.pairs,seq:uw.seq,set:fw.set,timestamp:Yc.timestamp},rO={"tag:yaml.org,2002:binary":dw.binary,"tag:yaml.org,2002:merge":pa.merge,"tag:yaml.org,2002:omap":mw.omap,"tag:yaml.org,2002:pairs":pw.pairs,"tag:yaml.org,2002:set":fw.set,"tag:yaml.org,2002:timestamp":Yc.timestamp};function nO(e,t,n){let i=sw.get(t);if(i&&!e)return n&&!i.includes(pa.merge)?i.concat(pa.merge):i.slice();let r=i;if(!r)if(Array.isArray(e))r=[];else{let o=Array.from(sw.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${o} or define customTags array`)}if(Array.isArray(e))for(let o of e)r=r.concat(o);else typeof e=="function"&&(r=e(r.slice()));return n&&(r=r.concat(pa.merge)),r.reduce((o,a)=>{let s=typeof a=="string"?cw[a]:a;if(!s){let c=JSON.stringify(a),l=Object.keys(cw).map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${l}`)}return o.includes(s)||o.push(s),o},[])}df.coreKnownTags=rO;df.getTags=nO});var ff=oe(gw=>{"use strict";var mf=Re(),iO=li(),oO=ui(),aO=ca(),Qc=hw(),sO=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,pf=class e{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:r,schema:o,sortMapEntries:a,toStringDefaults:s}){this.compat=Array.isArray(t)?Qc.getTags(t,"compat"):t?Qc.getTags(null,t):null,this.name=typeof o=="string"&&o||"core",this.knownTags=r?Qc.coreKnownTags:{},this.tags=Qc.getTags(n,this.name,i),this.toStringOptions=s??null,Object.defineProperty(this,mf.MAP,{value:iO.map}),Object.defineProperty(this,mf.SCALAR,{value:aO.string}),Object.defineProperty(this,mf.SEQ,{value:oO.seq}),this.sortMapEntries=typeof a=="function"?a:a===!0?sO:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};gw.Schema=pf});var yw=oe(vw=>{"use strict";var cO=Re(),hf=oa(),fa=ta();function lO(e,t){let n=[],i=t.directives===!0;if(t.directives!==!1&&e.directives){let c=e.directives.toString(e);c?(n.push(c),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");let r=hf.createStringifyContext(e,t),{commentString:o}=r.options;if(e.commentBefore){n.length!==1&&n.unshift("");let c=o(e.commentBefore);n.unshift(fa.indentComment(c,""))}let a=!1,s=null;if(e.contents){if(cO.isNode(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){let u=o(e.contents.commentBefore);n.push(fa.indentComment(u,""))}r.forceBlockIndent=!!e.comment,s=e.contents.comment}let c=s?void 0:()=>a=!0,l=hf.stringify(e.contents,r,()=>s=null,c);s&&(l+=fa.lineComment(l,"",o(s))),(l[0]==="|"||l[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(hf.stringify(e.contents,r));if(e.directives?.docEnd)if(e.comment){let c=o(e.comment);c.includes(`
|
|
57
|
+
`)?(n.push("..."),n.push(fa.indentComment(c,""))):n.push(`... ${c}`)}else n.push("...");else{let c=e.comment;c&&a&&(c=c.replace(/^\n+/,"")),c&&((!a||s)&&n[n.length-1]!==""&&n.push(""),n.push(fa.indentComment(o(c),"")))}return n.join(`
|
|
58
|
+
`)+`
|
|
59
|
+
`}vw.stringifyDocument=lO});var ha=oe(_w=>{"use strict";var uO=Xo(),mi=yc(),Ot=Re(),dO=Rr(),mO=$r(),pO=ff(),fO=yw(),gf=fc(),hO=_p(),gO=ea(),vf=yp(),yf=class e{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ot.NODE_TYPE,{value:Ot.DOC});let r=null;typeof n=="function"||Array.isArray(n)?r=n:i===void 0&&n&&(i=n,n=void 0);let o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=o;let{version:a}=o;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new vf.Directives({version:a}),this.setSchema(a,i),this.contents=t===void 0?null:this.createNode(t,r,i)}clone(){let t=Object.create(e.prototype,{[Ot.NODE_TYPE]:{value:Ot.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Ot.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){pi(this.contents)&&this.contents.add(t)}addIn(t,n){pi(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){let i=gf.anchorNames(this);t.anchor=!n||i.has(n)?gf.findNewAnchor(n||"a",i):n}return new uO.Alias(t.anchor)}createNode(t,n,i){let r;if(typeof n=="function")t=n.call({"":t},"",t),r=n;else if(Array.isArray(n)){let h=$=>typeof $=="number"||$ instanceof String||$ instanceof Number,g=n.filter(h).map(String);g.length>0&&(n=n.concat(g)),r=n}else i===void 0&&n&&(i=n,n=void 0);let{aliasDuplicateObjects:o,anchorPrefix:a,flow:s,keepUndefined:c,onTagObj:l,tag:u}=i??{},{onAnchor:d,setAnchors:m,sourceObjects:v}=gf.createNodeAnchors(this,a||"a"),y={aliasDuplicateObjects:o??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:v},f=gO.createNode(t,u,y);return s&&Ot.isCollection(f)&&(f.flow=!0),m(),f}createPair(t,n,i={}){let r=this.createNode(t,null,i),o=this.createNode(n,null,i);return new dO.Pair(r,o)}delete(t){return pi(this.contents)?this.contents.delete(t):!1}deleteIn(t){return mi.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):pi(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Ot.isCollection(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return mi.isEmptyPath(t)?!n&&Ot.isScalar(this.contents)?this.contents.value:this.contents:Ot.isCollection(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Ot.isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return mi.isEmptyPath(t)?this.contents!==void 0:Ot.isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=mi.collectionFromPath(this.schema,[t],n):pi(this.contents)&&this.contents.set(t,n)}setIn(t,n){mi.isEmptyPath(t)?this.contents=n:this.contents==null?this.contents=mi.collectionFromPath(this.schema,Array.from(t),n):pi(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new vf.Directives({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new vf.Directives({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{let r=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${r}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(i)this.schema=new pO.Schema(Object.assign(i,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:i,maxAliasCount:r,onAnchor:o,reviver:a}={}){let s={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},c=mO.toJS(this.contents,n??"",s);if(typeof o=="function")for(let{count:l,res:u}of s.anchors.values())o(u,l);return typeof a=="function"?hO.applyReviver(a,{"":c},"",c):c}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){let n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return fO.stringifyDocument(this,t)}};function pi(e){if(Ot.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}_w.Document=yf});var ya=oe(va=>{"use strict";var ga=class extends Error{constructor(t,n,i,r){super(),this.name=t,this.code=i,this.message=r,this.pos=n}},_f=class extends ga{constructor(t,n,i){super("YAMLParseError",t,n,i)}},Sf=class extends ga{constructor(t,n,i){super("YAMLWarning",t,n,i)}},vO=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(s=>t.linePos(s));let{line:i,col:r}=n.linePos[0];n.message+=` at line ${i}, column ${r}`;let o=r-1,a=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(o>=60&&a.length>80){let s=Math.min(o-39,a.length-79);a="\u2026"+a.substring(s),o-=s-1}if(a.length>80&&(a=a.substring(0,79)+"\u2026"),i>1&&/^ *$/.test(a.substring(0,o))){let s=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);s.length>80&&(s=s.substring(0,79)+`\u2026
|
|
60
|
+
`),a=s+a}if(/[^ ]/.test(a)){let s=1,c=n.linePos[1];c?.line===i&&c.col>r&&(s=Math.max(1,Math.min(c.col-r,80-o)));let l=" ".repeat(o)+"^".repeat(s);n.message+=`:
|
|
61
|
+
|
|
62
|
+
${a}
|
|
63
|
+
${l}
|
|
64
|
+
`}};va.YAMLError=ga;va.YAMLParseError=_f;va.YAMLWarning=Sf;va.prettifyError=vO});var _a=oe(Sw=>{"use strict";function yO(e,{flow:t,indicator:n,next:i,offset:r,onError:o,parentIndent:a,startOnNewline:s}){let c=!1,l=s,u=s,d="",m="",v=!1,y=!1,f=null,h=null,g=null,$=null,_=null,b=null,k=null;for(let w of e)switch(y&&(w.type!=="space"&&w.type!=="newline"&&w.type!=="comma"&&o(w.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),f&&(l&&w.type!=="comment"&&w.type!=="newline"&&o(f,"TAB_AS_INDENT","Tabs are not allowed as indentation"),f=null),w.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&w.source.includes(" ")&&(f=w),u=!0;break;case"comment":{u||o(w,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let T=w.source.substring(1)||" ";d?d+=m+T:d=T,m="",l=!1;break}case"newline":l?d?d+=w.source:(!b||n!=="seq-item-ind")&&(c=!0):m+=w.source,l=!0,v=!0,(h||g)&&($=w),u=!0;break;case"anchor":h&&o(w,"MULTIPLE_ANCHORS","A node can have at most one anchor"),w.source.endsWith(":")&&o(w.offset+w.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),h=w,k??(k=w.offset),l=!1,u=!1,y=!0;break;case"tag":{g&&o(w,"MULTIPLE_TAGS","A node can have at most one tag"),g=w,k??(k=w.offset),l=!1,u=!1,y=!0;break}case n:(h||g)&&o(w,"BAD_PROP_ORDER",`Anchors and tags must be after the ${w.source} indicator`),b&&o(w,"UNEXPECTED_TOKEN",`Unexpected ${w.source} in ${t??"collection"}`),b=w,l=n==="seq-item-ind"||n==="explicit-key-ind",u=!1;break;case"comma":if(t){_&&o(w,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),_=w,l=!1,u=!1;break}default:o(w,"UNEXPECTED_TOKEN",`Unexpected ${w.type} token`),l=!1,u=!1}let z=e[e.length-1],S=z?z.offset+z.source.length:r;return y&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&o(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),f&&(l&&f.indent<=a||i?.type==="block-map"||i?.type==="block-seq")&&o(f,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:_,found:b,spaceBefore:c,comment:d,hasNewline:v,anchor:h,tag:g,newlineAfterProp:$,end:S,start:k??S}}Sw.resolveProps=yO});var Xc=oe(bw=>{"use strict";function bf(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
65
|
+
`))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let n of t.start)if(n.type==="newline")return!0;if(t.sep){for(let n of t.sep)if(n.type==="newline")return!0}if(bf(t.key)||bf(t.value))return!0}return!1;default:return!0}}bw.containsNewline=bf});var $f=oe($w=>{"use strict";var _O=Xc();function SO(e,t,n){if(t?.type==="flow-collection"){let i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&_O.containsNewline(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}$w.flowIndentCheck=SO});var wf=oe(zw=>{"use strict";var ww=Re();function bO(e,t,n){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let r=typeof i=="function"?i:(o,a)=>o===a||ww.isScalar(o)&&ww.isScalar(a)&&o.value===a.value;return t.some(o=>r(o.key,n))}zw.mapIncludes=bO});var Tw=oe(Ew=>{"use strict";var kw=Rr(),$O=Pr(),Rw=_a(),wO=Xc(),Iw=$f(),zO=wf(),Pw="All mapping items must start at the same column";function kO({composeNode:e,composeEmptyNode:t},n,i,r,o){let a=o?.nodeClass??$O.YAMLMap,s=new a(n.schema);n.atRoot&&(n.atRoot=!1);let c=i.offset,l=null;for(let u of i.items){let{start:d,key:m,sep:v,value:y}=u,f=Rw.resolveProps(d,{indicator:"explicit-key-ind",next:m??v?.[0],offset:c,onError:r,parentIndent:i.indent,startOnNewline:!0}),h=!f.found;if(h){if(m&&(m.type==="block-seq"?r(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in m&&m.indent!==i.indent&&r(c,"BAD_INDENT",Pw)),!f.anchor&&!f.tag&&!v){l=f.end,f.comment&&(s.comment?s.comment+=`
|
|
66
|
+
`+f.comment:s.comment=f.comment);continue}(f.newlineAfterProp||wO.containsNewline(m))&&r(m??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else f.found?.indent!==i.indent&&r(c,"BAD_INDENT",Pw);n.atKey=!0;let g=f.end,$=m?e(n,m,f,r):t(n,g,d,null,f,r);n.schema.compat&&Iw.flowIndentCheck(i.indent,m,r),n.atKey=!1,zO.mapIncludes(n,s.items,$)&&r(g,"DUPLICATE_KEY","Map keys must be unique");let _=Rw.resolveProps(v??[],{indicator:"map-value-ind",next:y,offset:$.range[2],onError:r,parentIndent:i.indent,startOnNewline:!m||m.type==="block-scalar"});if(c=_.end,_.found){h&&(y?.type==="block-map"&&!_.hasNewline&&r(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&f.start<_.found.offset-1024&&r($.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let b=y?e(n,y,_,r):t(n,c,v,null,_,r);n.schema.compat&&Iw.flowIndentCheck(i.indent,y,r),c=b.range[2];let k=new kw.Pair($,b);n.options.keepSourceTokens&&(k.srcToken=u),s.items.push(k)}else{h&&r($.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),_.comment&&($.comment?$.comment+=`
|
|
67
|
+
`+_.comment:$.comment=_.comment);let b=new kw.Pair($);n.options.keepSourceTokens&&(b.srcToken=u),s.items.push(b)}}return l&&l<c&&r(l,"IMPOSSIBLE","Map comment with trailing content"),s.range=[i.offset,c,l??c],s}Ew.resolveBlockMap=kO});var xw=oe(Ow=>{"use strict";var RO=Er(),IO=_a(),PO=$f();function EO({composeNode:e,composeEmptyNode:t},n,i,r,o){let a=o?.nodeClass??RO.YAMLSeq,s=new a(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let c=i.offset,l=null;for(let{start:u,value:d}of i.items){let m=IO.resolveProps(u,{indicator:"seq-item-ind",next:d,offset:c,onError:r,parentIndent:i.indent,startOnNewline:!0});if(!m.found)if(m.anchor||m.tag||d)d?.type==="block-seq"?r(m.end,"BAD_INDENT","All sequence items must start at the same column"):r(c,"MISSING_CHAR","Sequence item without - indicator");else{l=m.end,m.comment&&(s.comment=m.comment);continue}let v=d?e(n,d,m,r):t(n,m.end,u,null,m,r);n.schema.compat&&PO.flowIndentCheck(i.indent,d,r),c=v.range[2],s.items.push(v)}return s.range=[i.offset,c,l??c],s}Ow.resolveBlockSeq=EO});var fi=oe(Nw=>{"use strict";function TO(e,t,n,i){let r="";if(e){let o=!1,a="";for(let s of e){let{source:c,type:l}=s;switch(l){case"space":o=!0;break;case"comment":{n&&!o&&i(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let u=c.substring(1)||" ";r?r+=a+u:r=u,a="";break}case"newline":r&&(a+=c),o=!0;break;default:i(s,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=c.length}}return{comment:r,offset:t}}Nw.resolveEnd=TO});var qw=oe(Aw=>{"use strict";var OO=Re(),xO=Rr(),jw=Pr(),NO=Er(),jO=fi(),Cw=_a(),CO=Xc(),AO=wf(),zf="Block collections are not allowed within flow collections",kf=e=>e&&(e.type==="block-map"||e.type==="block-seq");function qO({composeNode:e,composeEmptyNode:t},n,i,r,o){let a=i.start.source==="{",s=a?"flow map":"flow sequence",c=o?.nodeClass??(a?jw.YAMLMap:NO.YAMLSeq),l=new c(n.schema);l.flow=!0;let u=n.atRoot;u&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let d=i.offset+i.start.source.length;for(let h=0;h<i.items.length;++h){let g=i.items[h],{start:$,key:_,sep:b,value:k}=g,z=Cw.resolveProps($,{flow:s,indicator:"explicit-key-ind",next:_??b?.[0],offset:d,onError:r,parentIndent:i.indent,startOnNewline:!1});if(!z.found){if(!z.anchor&&!z.tag&&!b&&!k){h===0&&z.comma?r(z.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):h<i.items.length-1&&r(z.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),z.comment&&(l.comment?l.comment+=`
|
|
68
|
+
`+z.comment:l.comment=z.comment),d=z.end;continue}!a&&n.options.strict&&CO.containsNewline(_)&&r(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(h===0)z.comma&&r(z.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(z.comma||r(z.start,"MISSING_CHAR",`Missing , between ${s} items`),z.comment){let S="";e:for(let w of $)switch(w.type){case"comma":case"space":break;case"comment":S=w.source.substring(1);break e;default:break e}if(S){let w=l.items[l.items.length-1];OO.isPair(w)&&(w=w.value??w.key),w.comment?w.comment+=`
|
|
69
|
+
`+S:w.comment=S,z.comment=z.comment.substring(S.length+1)}}if(!a&&!b&&!z.found){let S=k?e(n,k,z,r):t(n,z.end,b,null,z,r);l.items.push(S),d=S.range[2],kf(k)&&r(S.range,"BLOCK_IN_FLOW",zf)}else{n.atKey=!0;let S=z.end,w=_?e(n,_,z,r):t(n,S,$,null,z,r);kf(_)&&r(w.range,"BLOCK_IN_FLOW",zf),n.atKey=!1;let T=Cw.resolveProps(b??[],{flow:s,indicator:"map-value-ind",next:k,offset:w.range[2],onError:r,parentIndent:i.indent,startOnNewline:!1});if(T.found){if(!a&&!z.found&&n.options.strict){if(b)for(let U of b){if(U===T.found)break;if(U.type==="newline"){r(U,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}z.start<T.found.offset-1024&&r(T.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else k&&("source"in k&&k.source?.[0]===":"?r(k,"MISSING_CHAR",`Missing space after : in ${s}`):r(T.start,"MISSING_CHAR",`Missing , or : between ${s} items`));let M=k?e(n,k,T,r):T.found?t(n,T.end,b,null,T,r):null;M?kf(k)&&r(M.range,"BLOCK_IN_FLOW",zf):T.comment&&(w.comment?w.comment+=`
|
|
70
|
+
`+T.comment:w.comment=T.comment);let N=new xO.Pair(w,M);if(n.options.keepSourceTokens&&(N.srcToken=g),a){let U=l;AO.mapIncludes(n,U.items,w)&&r(S,"DUPLICATE_KEY","Map keys must be unique"),U.items.push(N)}else{let U=new jw.YAMLMap(n.schema);U.flow=!0,U.items.push(N);let X=(M??w).range;U.range=[w.range[0],X[1],X[2]],l.items.push(U)}d=M?M.range[2]:T.end}}let m=a?"}":"]",[v,...y]=i.end,f=d;if(v?.source===m)f=v.offset+v.source.length;else{let h=s[0].toUpperCase()+s.substring(1),g=u?`${h} must end with a ${m}`:`${h} in block collection must be sufficiently indented and end with a ${m}`;r(d,u?"MISSING_CHAR":"BAD_INDENT",g),v&&v.source.length!==1&&y.unshift(v)}if(y.length>0){let h=jO.resolveEnd(y,f,n.options.strict,r);h.comment&&(l.comment?l.comment+=`
|
|
71
|
+
`+h.comment:l.comment=h.comment),l.range=[i.offset,f,h.offset]}else l.range=[i.offset,f,f];return l}Aw.resolveFlowCollection=qO});var Lw=oe(Mw=>{"use strict";var MO=Re(),LO=Be(),DO=Pr(),UO=Er(),VO=Tw(),FO=xw(),ZO=qw();function Rf(e,t,n,i,r,o){let a=n.type==="block-map"?VO.resolveBlockMap(e,t,n,i,o):n.type==="block-seq"?FO.resolveBlockSeq(e,t,n,i,o):ZO.resolveFlowCollection(e,t,n,i,o),s=a.constructor;return r==="!"||r===s.tagName?(a.tag=s.tagName,a):(r&&(a.tag=r),a)}function JO(e,t,n,i,r){let o=i.tag,a=o?t.directives.tagName(o.source,m=>r(o,"TAG_RESOLVE_FAILED",m)):null;if(n.type==="block-seq"){let{anchor:m,newlineAfterProp:v}=i,y=m&&o?m.offset>o.offset?m:o:m??o;y&&(!v||v.offset<y.offset)&&r(y,"MISSING_CHAR","Missing newline after block sequence props")}let s=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!o||!a||a==="!"||a===DO.YAMLMap.tagName&&s==="map"||a===UO.YAMLSeq.tagName&&s==="seq")return Rf(e,t,n,r,a);let c=t.schema.tags.find(m=>m.tag===a&&m.collection===s);if(!c){let m=t.schema.knownTags[a];if(m?.collection===s)t.schema.tags.push(Object.assign({},m,{default:!1})),c=m;else return m?r(o,"BAD_COLLECTION_TYPE",`${m.tag} used for ${s} collection, but expects ${m.collection??"scalar"}`,!0):r(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),Rf(e,t,n,r,a)}let l=Rf(e,t,n,r,a,c),u=c.resolve?.(l,m=>r(o,"TAG_RESOLVE_FAILED",m),t.options)??l,d=MO.isNode(u)?u:new LO.Scalar(u);return d.range=l.range,d.tag=a,c?.format&&(d.format=c.format),d}Mw.composeCollection=JO});var Pf=oe(Dw=>{"use strict";var If=Be();function BO(e,t,n){let i=t.offset,r=KO(t,e.options.strict,n);if(!r)return{value:"",type:null,comment:"",range:[i,i,i]};let o=r.mode===">"?If.Scalar.BLOCK_FOLDED:If.Scalar.BLOCK_LITERAL,a=t.source?HO(t.source):[],s=a.length;for(let f=a.length-1;f>=0;--f){let h=a[f][1];if(h===""||h==="\r")s=f;else break}if(s===0){let f=r.chomp==="+"&&a.length>0?`
|
|
72
|
+
`.repeat(Math.max(1,a.length-1)):"",h=i+r.length;return t.source&&(h+=t.source.length),{value:f,type:o,comment:r.comment,range:[i,h,h]}}let c=t.indent+r.indent,l=t.offset+r.length,u=0;for(let f=0;f<s;++f){let[h,g]=a[f];if(g===""||g==="\r")r.indent===0&&h.length>c&&(c=h.length);else{h.length<c&&n(l+h.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),r.indent===0&&(c=h.length),u=f,c===0&&!e.atRoot&&n(l,"BAD_INDENT","Block scalar values in collections must be indented");break}l+=h.length+g.length+1}for(let f=a.length-1;f>=s;--f)a[f][0].length>c&&(s=f+1);let d="",m="",v=!1;for(let f=0;f<u;++f)d+=a[f][0].slice(c)+`
|
|
73
|
+
`;for(let f=u;f<s;++f){let[h,g]=a[f];l+=h.length+g.length+1;let $=g[g.length-1]==="\r";if($&&(g=g.slice(0,-1)),g&&h.length<c){let b=`Block scalar lines must not be less indented than their ${r.indent?"explicit indentation indicator":"first line"}`;n(l-g.length-($?2:1),"BAD_INDENT",b),h=""}o===If.Scalar.BLOCK_LITERAL?(d+=m+h.slice(c)+g,m=`
|
|
74
|
+
`):h.length>c||g[0]===" "?(m===" "?m=`
|
|
75
|
+
`:!v&&m===`
|
|
76
|
+
`&&(m=`
|
|
77
|
+
|
|
78
|
+
`),d+=m+h.slice(c)+g,m=`
|
|
79
|
+
`,v=!0):g===""?m===`
|
|
80
|
+
`?d+=`
|
|
81
|
+
`:m=`
|
|
82
|
+
`:(d+=m+g,m=" ",v=!1)}switch(r.chomp){case"-":break;case"+":for(let f=s;f<a.length;++f)d+=`
|
|
83
|
+
`+a[f][0].slice(c);d[d.length-1]!==`
|
|
84
|
+
`&&(d+=`
|
|
85
|
+
`);break;default:d+=`
|
|
86
|
+
`}let y=i+r.length+t.source.length;return{value:d,type:o,comment:r.comment,range:[i,y,y]}}function KO({offset:e,props:t},n,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:r}=t[0],o=r[0],a=0,s="",c=-1;for(let m=1;m<r.length;++m){let v=r[m];if(!s&&(v==="-"||v==="+"))s=v;else{let y=Number(v);!a&&y?a=y:c===-1&&(c=e+m)}}c!==-1&&i(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let l=!1,u="",d=r.length;for(let m=1;m<t.length;++m){let v=t[m];switch(v.type){case"space":l=!0;case"newline":d+=v.source.length;break;case"comment":n&&!l&&i(v,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=v.source.length,u=v.source.substring(1);break;case"error":i(v,"UNEXPECTED_TOKEN",v.message),d+=v.source.length;break;default:{let y=`Unexpected token in block scalar header: ${v.type}`;i(v,"UNEXPECTED_TOKEN",y);let f=v.source;f&&typeof f=="string"&&(d+=f.length)}}}return{mode:o,indent:a,chomp:s,comment:u,length:d}}function HO(e){let t=e.split(/\n( *)/),n=t[0],i=n.match(/^( *)/),o=[i?.[1]?[i[1],n.slice(i[1].length)]:["",n]];for(let a=1;a<t.length;a+=2)o.push([t[a],t[a+1]]);return o}Dw.resolveBlockScalar=BO});var Tf=oe(Vw=>{"use strict";var Ef=Be(),GO=fi();function WO(e,t,n){let{offset:i,type:r,source:o,end:a}=e,s,c,l=(m,v,y)=>n(i+m,v,y);switch(r){case"scalar":s=Ef.Scalar.PLAIN,c=YO(o,l);break;case"single-quoted-scalar":s=Ef.Scalar.QUOTE_SINGLE,c=QO(o,l);break;case"double-quoted-scalar":s=Ef.Scalar.QUOTE_DOUBLE,c=XO(o,l);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${r}`),{value:"",type:null,comment:"",range:[i,i+o.length,i+o.length]}}let u=i+o.length,d=GO.resolveEnd(a,u,t,n);return{value:c,type:s,comment:d.comment,range:[i,u,d.offset]}}function YO(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Uw(e)}function QO(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Uw(e.slice(1,-1)).replace(/''/g,"'")}function Uw(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
87
|
+
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
88
|
+
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let r=i[1],o=" ",a=t.lastIndex;for(n.lastIndex=a;i=n.exec(e);)i[1]===""?o===`
|
|
89
|
+
`?r+=o:o=`
|
|
90
|
+
`:(r+=o+i[1],o=" "),a=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=a,i=s.exec(e),r+o+(i?.[1]??"")}function XO(e,t){let n="";for(let i=1;i<e.length-1;++i){let r=e[i];if(!(r==="\r"&&e[i+1]===`
|
|
91
|
+
`))if(r===`
|
|
92
|
+
`){let{fold:o,offset:a}=ex(e,i);n+=o,i=a}else if(r==="\\"){let o=e[++i],a=tx[o];if(a)n+=a;else if(o===`
|
|
93
|
+
`)for(o=e[i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="\r"&&e[i+1]===`
|
|
94
|
+
`)for(o=e[++i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="x"||o==="u"||o==="U"){let s=o==="x"?2:o==="u"?4:8;n+=rx(e,i+1,s,t),i+=s}else{let s=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),n+=s}}else if(r===" "||r===" "){let o=i,a=e[i+1];for(;a===" "||a===" ";)a=e[++i+1];a!==`
|
|
95
|
+
`&&!(a==="\r"&&e[i+2]===`
|
|
96
|
+
`)&&(n+=i>o?e.slice(o,i+1):r)}else n+=r}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function ex(e,t){let n="",i=e[t+1];for(;(i===" "||i===" "||i===`
|
|
97
|
+
`||i==="\r")&&!(i==="\r"&&e[t+2]!==`
|
|
98
|
+
`);)i===`
|
|
99
|
+
`&&(n+=`
|
|
100
|
+
`),t+=1,i=e[t+1];return n||(n=" "),{fold:n,offset:t}}var tx={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
101
|
+
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function rx(e,t,n,i){let r=e.substr(t,n),a=r.length===n&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;try{return String.fromCodePoint(a)}catch{let s=e.substr(t-2,n+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),s}}Vw.resolveFlowScalar=WO});var Jw=oe(Zw=>{"use strict";var zn=Re(),Fw=Be(),nx=Pf(),ix=Tf();function ox(e,t,n,i){let{value:r,type:o,comment:a,range:s}=t.type==="block-scalar"?nx.resolveBlockScalar(e,t,i):ix.resolveFlowScalar(t,e.options.strict,i),c=n?e.directives.tagName(n.source,d=>i(n,"TAG_RESOLVE_FAILED",d)):null,l;e.options.stringKeys&&e.atKey?l=e.schema[zn.SCALAR]:c?l=ax(e.schema,r,c,n,i):t.type==="scalar"?l=sx(e,r,t,i):l=e.schema[zn.SCALAR];let u;try{let d=l.resolve(r,m=>i(n??t,"TAG_RESOLVE_FAILED",m),e.options);u=zn.isScalar(d)?d:new Fw.Scalar(d)}catch(d){let m=d instanceof Error?d.message:String(d);i(n??t,"TAG_RESOLVE_FAILED",m),u=new Fw.Scalar(r)}return u.range=s,u.source=r,o&&(u.type=o),c&&(u.tag=c),l.format&&(u.format=l.format),a&&(u.comment=a),u}function ax(e,t,n,i,r){if(n==="!")return e[zn.SCALAR];let o=[];for(let s of e.tags)if(!s.collection&&s.tag===n)if(s.default&&s.test)o.push(s);else return s;for(let s of o)if(s.test?.test(t))return s;let a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[zn.SCALAR])}function sx({atKey:e,directives:t,schema:n},i,r,o){let a=n.tags.find(s=>(s.default===!0||e&&s.default==="key")&&s.test?.test(i))||n[zn.SCALAR];if(n.compat){let s=n.compat.find(c=>c.default&&c.test?.test(i))??n[zn.SCALAR];if(a.tag!==s.tag){let c=t.tagString(a.tag),l=t.tagString(s.tag),u=`Value may be parsed as either ${c} or ${l}`;o(r,"TAG_RESOLVE_FAILED",u,!0)}}return a}Zw.composeScalar=ox});var Kw=oe(Bw=>{"use strict";function cx(e,t,n){if(t){n??(n=t.length);for(let i=n-1;i>=0;--i){let r=t[i];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=t[++i];r?.type==="space";)e+=r.source.length,r=t[++i];break}}return e}Bw.emptyScalarPosition=cx});var Ww=oe(xf=>{"use strict";var lx=Xo(),ux=Re(),dx=Lw(),Hw=Jw(),mx=fi(),px=Kw(),fx={composeNode:Gw,composeEmptyNode:Of};function Gw(e,t,n,i){let r=e.atKey,{spaceBefore:o,comment:a,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case"alias":l=hx(e,t,i),(s||c)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=Hw.composeScalar(e,t,c,i),s&&(l.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{l=dx.composeCollection(fx,e,t,n,i),s&&(l.anchor=s.source.substring(1))}catch(d){let m=d instanceof Error?d.message:String(d);i(t,"RESOURCE_EXHAUSTION",m)}break;default:{let d=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",d),u=!1}}return l??(l=Of(e,t.offset,void 0,null,n,i)),s&&l.anchor===""&&i(s,"BAD_ALIAS","Anchor cannot be an empty string"),r&&e.options.stringKeys&&(!ux.isScalar(l)||typeof l.value!="string"||l.tag&&l.tag!=="tag:yaml.org,2002:str")&&i(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(l.spaceBefore=!0),a&&(t.type==="scalar"&&t.source===""?l.comment=a:l.commentBefore=a),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function Of(e,t,n,i,{spaceBefore:r,comment:o,anchor:a,tag:s,end:c},l){let u={type:"scalar",offset:px.emptyScalarPosition(t,n,i),indent:-1,source:""},d=Hw.composeScalar(e,u,s,l);return a&&(d.anchor=a.source.substring(1),d.anchor===""&&l(a,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(d.spaceBefore=!0),o&&(d.comment=o,d.range[2]=c),d}function hx({options:e},{offset:t,source:n,end:i},r){let o=new lx.Alias(n.substring(1));o.source===""&&r(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&r(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=t+n.length,s=mx.resolveEnd(i,a,e.strict,r);return o.range=[t,a,s.offset],s.comment&&(o.comment=s.comment),o}xf.composeEmptyNode=Of;xf.composeNode=Gw});var Xw=oe(Qw=>{"use strict";var gx=ha(),Yw=Ww(),vx=fi(),yx=_a();function _x(e,t,{offset:n,start:i,value:r,end:o},a){let s=Object.assign({_directives:t},e),c=new gx.Document(void 0,s),l={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},u=yx.resolveProps(i,{indicator:"doc-start",next:r??o?.[0],offset:n,onError:a,parentIndent:0,startOnNewline:!0});u.found&&(c.directives.docStart=!0,r&&(r.type==="block-map"||r.type==="block-seq")&&!u.hasNewline&&a(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=r?Yw.composeNode(l,r,u,a):Yw.composeEmptyNode(l,u.end,i,null,u,a);let d=c.contents.range[2],m=vx.resolveEnd(o,d,!1,a);return m.comment&&(c.comment=m.comment),c.range=[n,d,m.offset],c}Qw.composeDoc=_x});var jf=oe(r0=>{"use strict";var Sx=cc("process"),bx=yp(),$x=ha(),Sa=ya(),e0=Re(),wx=Xw(),zx=fi();function ba(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function t0(e){let t="",n=!1,i=!1;for(let r=0;r<e.length;++r){let o=e[r];switch(o[0]){case"#":t+=(t===""?"":i?`
|
|
102
|
+
|
|
103
|
+
`:`
|
|
104
|
+
`)+(o.substring(1)||" "),n=!0,i=!1;break;case"%":e[r+1]?.[0]!=="#"&&(r+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}var Nf=class{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,r,o)=>{let a=ba(n);o?this.warnings.push(new Sa.YAMLWarning(a,i,r)):this.errors.push(new Sa.YAMLParseError(a,i,r))},this.directives=new bx.Directives({version:t.version||"1.2"}),this.options=t}decorate(t,n){let{comment:i,afterEmptyLine:r}=t0(this.prelude);if(i){let o=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
105
|
+
${i}`:i;else if(r||t.directives.docStart||!o)t.commentBefore=i;else if(e0.isCollection(o)&&!o.flow&&o.items.length>0){let a=o.items[0];e0.isPair(a)&&(a=a.key);let s=a.commentBefore;a.commentBefore=s?`${i}
|
|
106
|
+
${s}`:i}else{let a=o.commentBefore;o.commentBefore=a?`${i}
|
|
107
|
+
${a}`:i}}if(n){for(let o=0;o<this.errors.length;++o)t.errors.push(this.errors[o]);for(let o=0;o<this.warnings.length;++o)t.warnings.push(this.warnings[o])}else t.errors=this.errors,t.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:t0(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,i=-1){for(let r of t)yield*this.next(r);yield*this.end(n,i)}*next(t){switch(Sx.env.LOG_STREAM&&console.dir(t,{depth:null}),t.type){case"directive":this.directives.add(t.source,(n,i,r)=>{let o=ba(t);o[0]+=n,this.onError(o,"BAD_DIRECTIVE",i,r)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let n=wx.composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new Sa.YAMLParseError(ba(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){let i="Unexpected doc-end without preceding document";this.errors.push(new Sa.YAMLParseError(ba(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;let n=zx.resolveEnd(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){let i=this.doc.comment;this.doc.comment=i?`${i}
|
|
108
|
+
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Sa.YAMLParseError(ba(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let i=Object.assign({_directives:this.directives},this.options),r=new $x.Document(void 0,i);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,n,n],this.decorate(r,!1),yield r}}};r0.Composer=Nf});var o0=oe(el=>{"use strict";var kx=Pf(),Rx=Tf(),Ix=ya(),n0=ia();function Px(e,t=!0,n){if(e){let i=(r,o,a)=>{let s=typeof r=="number"?r:Array.isArray(r)?r[0]:r.offset;if(n)n(s,o,a);else throw new Ix.YAMLParseError([s,s+1],o,a)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Rx.resolveFlowScalar(e,t,i);case"block-scalar":return kx.resolveBlockScalar({options:{strict:t}},e,i)}}return null}function Ex(e,t){let{implicitKey:n=!1,indent:i,inFlow:r=!1,offset:o=-1,type:a="PLAIN"}=t,s=n0.stringifyString({type:a,value:e},{implicitKey:n,indent:i>0?" ".repeat(i):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:"newline",offset:-1,indent:i,source:`
|
|
109
|
+
`}];switch(s[0]){case"|":case">":{let l=s.indexOf(`
|
|
110
|
+
`),u=s.substring(0,l),d=s.substring(l+1)+`
|
|
111
|
+
`,m=[{type:"block-scalar-header",offset:o,indent:i,source:u}];return i0(m,c)||m.push({type:"newline",offset:-1,indent:i,source:`
|
|
112
|
+
`}),{type:"block-scalar",offset:o,indent:i,props:m,source:d}}case'"':return{type:"double-quoted-scalar",offset:o,indent:i,source:s,end:c};case"'":return{type:"single-quoted-scalar",offset:o,indent:i,source:s,end:c};default:return{type:"scalar",offset:o,indent:i,source:s,end:c}}}function Tx(e,t,n={}){let{afterKey:i=!1,implicitKey:r=!1,inFlow:o=!1,type:a}=n,s="indent"in e?e.indent:null;if(i&&typeof s=="number"&&(s+=2),!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{let l=e.props[0];if(l.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=l.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}let c=n0.stringifyString({type:a,value:t},{implicitKey:r||s===null,indent:s!==null&&s>0?" ".repeat(s):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":Ox(e,c);break;case'"':Cf(e,c,"double-quoted-scalar");break;case"'":Cf(e,c,"single-quoted-scalar");break;default:Cf(e,c,"scalar")}}function Ox(e,t){let n=t.indexOf(`
|
|
113
|
+
`),i=t.substring(0,n),r=t.substring(n+1)+`
|
|
114
|
+
`;if(e.type==="block-scalar"){let o=e.props[0];if(o.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o.source=i,e.source=r}else{let{offset:o}=e,a="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:o,indent:a,source:i}];i0(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:a,source:`
|
|
115
|
+
`});for(let c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:a,props:s,source:r})}}function i0(e,t){if(t)for(let n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function Cf(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{let i=e.props.slice(1),r=t.length;e.props[0].type==="block-scalar-header"&&(r-=e.props[0].source.length);for(let o of i)o.offset+=r;delete e.props,Object.assign(e,{type:n,source:t,end:i});break}case"block-map":case"block-seq":{let r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
|
|
116
|
+
`};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let i="indent"in e?e.indent:-1,r="end"in e&&Array.isArray(e.end)?e.end.filter(o=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(let o of Object.keys(e))o!=="type"&&o!=="offset"&&delete e[o];Object.assign(e,{type:n,indent:i,source:t,end:r})}}}el.createScalarToken=Ex;el.resolveAsScalar=Px;el.setScalarValue=Tx});var s0=oe(a0=>{"use strict";var xx=e=>"type"in e?rl(e):tl(e);function rl(e){switch(e.type){case"block-scalar":{let t="";for(let n of e.props)t+=rl(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(let n of e.items)t+=tl(n);return t}case"flow-collection":{let t=e.start.source;for(let n of e.items)t+=tl(n);for(let n of e.end)t+=n.source;return t}case"document":{let t=tl(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function tl({start:e,key:t,sep:n,value:i}){let r="";for(let o of e)r+=o.source;if(t&&(r+=rl(t)),n)for(let o of n)r+=o.source;return i&&(r+=rl(i)),r}a0.stringify=xx});var d0=oe(u0=>{"use strict";var Af=Symbol("break visit"),Nx=Symbol("skip children"),c0=Symbol("remove item");function kn(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),l0(Object.freeze([]),e,t)}kn.BREAK=Af;kn.SKIP=Nx;kn.REMOVE=c0;kn.itemAtPath=(e,t)=>{let n=e;for(let[i,r]of t){let o=n?.[i];if(o&&"items"in o)n=o.items[r];else return}return n};kn.parentCollection=(e,t)=>{let n=kn.itemAtPath(e,t.slice(0,-1)),i=t[t.length-1][0],r=n?.[i];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};function l0(e,t,n){let i=n(t,e);if(typeof i=="symbol")return i;for(let r of["key","value"]){let o=t[r];if(o&&"items"in o){for(let a=0;a<o.items.length;++a){let s=l0(Object.freeze(e.concat([[r,a]])),o.items[a],n);if(typeof s=="number")a=s-1;else{if(s===Af)return Af;s===c0&&(o.items.splice(a,1),a-=1)}}typeof i=="function"&&r==="key"&&(i=i(t,e))}}return typeof i=="function"?i(t,e):i}u0.visit=kn});var nl=oe(yt=>{"use strict";var qf=o0(),jx=s0(),Cx=d0(),Mf="\uFEFF",Lf="",Df="",Uf="",Ax=e=>!!e&&"items"in e,qx=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function Mx(e){switch(e){case Mf:return"<BOM>";case Lf:return"<DOC>";case Df:return"<FLOW_END>";case Uf:return"<SCALAR>";default:return JSON.stringify(e)}}function Lx(e){switch(e){case Mf:return"byte-order-mark";case Lf:return"doc-mode";case Df:return"flow-error-end";case Uf:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
117
|
+
`:case`\r
|
|
118
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}yt.createScalarToken=qf.createScalarToken;yt.resolveAsScalar=qf.resolveAsScalar;yt.setScalarValue=qf.setScalarValue;yt.stringify=jx.stringify;yt.visit=Cx.visit;yt.BOM=Mf;yt.DOCUMENT=Lf;yt.FLOW_END=Df;yt.SCALAR=Uf;yt.isCollection=Ax;yt.isScalar=qx;yt.prettyToken=Mx;yt.tokenType=Lx});var Zf=oe(p0=>{"use strict";var $a=nl();function Mt(e){switch(e){case void 0:case" ":case`
|
|
119
|
+
`:case"\r":case" ":return!0;default:return!1}}var m0=new Set("0123456789ABCDEFabcdef"),Dx=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),il=new Set(",[]{}"),Ux=new Set(` ,[]{}
|
|
120
|
+
\r `),Vf=e=>!e||Ux.has(e),Ff=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let i=this.next??"stream";for(;i&&(n||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
|
|
121
|
+
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
122
|
+
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let i=0;for(;n===" ";)n=this.buffer[++i+t];if(n==="\r"){let r=this.buffer[i+t+1];if(r===`
|
|
123
|
+
`||!r&&!this.atEnd)return t+i+1}return n===`
|
|
124
|
+
`||i>=this.indentNext||!n&&!this.atEnd?t+i:-1}if(n==="-"||n==="."){let i=this.buffer.substr(t,3);if((i==="---"||i==="...")&&Mt(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
|
125
|
+
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===$a.BOM&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,i=t.indexOf("#");for(;i!==-1;){let o=t[i-1];if(o===" "||o===" "){n=i-1;break}else i=t.indexOf("#",i+1)}for(;;){let o=t[n-1];if(o===" "||o===" ")n-=1;else break}let r=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){let n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield $a.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let n=this.peek(3);if((n==="---"||n==="...")&&Mt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Mt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Mt(n)){let i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Vf),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,i=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=i=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);let r=this.getLine();if(r===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&r[0]!=="#"||i===0&&(r.startsWith("---")||r.startsWith("..."))&&Mt(r[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(r[0]==="]"||r[0]==="}")))return this.flowLevel=0,yield $a.FLOW_END,yield*this.parseLineStart();let o=0;for(;r[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),r[o]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Vf),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let a=this.charAt(1);if(this.flowKey||Mt(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let t=this.charAt(0),n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let o=0;for(;this.buffer[n-1-o]==="\\";)o+=1;if(o%2===0)break;n=this.buffer.indexOf('"',n+1)}let i=this.buffer.substring(0,n),r=i.indexOf(`
|
|
126
|
+
`,this.pos);if(r!==-1){for(;r!==-1;){let o=this.continueScalar(r+1);if(o===-1)break;r=i.indexOf(`
|
|
127
|
+
`,o)}r!==-1&&(n=r-(i[r-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){let n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Mt(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,i;e:for(let o=this.pos;i=this.buffer[o];++o)switch(i){case" ":n+=1;break;case`
|
|
128
|
+
`:t=o,n=0;break;case"\r":{let a=this.buffer[o+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===`
|
|
129
|
+
`)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let o=this.continueScalar(t+1);if(o===-1)break;t=this.buffer.indexOf(`
|
|
130
|
+
`,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let r=t+1;for(i=this.buffer[r];i===" ";)i=this.buffer[++r];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
|
|
131
|
+
`;)i=this.buffer[++r];t=r-1}else if(!this.blockScalarKeep)do{let o=t-1,a=this.buffer[o];a==="\r"&&(a=this.buffer[--o]);let s=o;for(;a===" ";)a=this.buffer[--o];if(a===`
|
|
132
|
+
`&&o>=this.pos&&o+1+n>s)t=o;else break}while(!0);return yield $a.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t=this.flowLevel>0,n=this.pos-1,i=this.pos-1,r;for(;r=this.buffer[++i];)if(r===":"){let o=this.buffer[i+1];if(Mt(o)||t&&il.has(o))break;n=i}else if(Mt(r)){let o=this.buffer[i+1];if(r==="\r"&&(o===`
|
|
133
|
+
`?(i+=1,r=`
|
|
134
|
+
`,o=this.buffer[i+1]):n=i),o==="#"||t&&il.has(o))break;if(r===`
|
|
135
|
+
`){let a=this.continueScalar(i+1);if(a===-1)break;i=Math.max(i,a-2)}}else{if(t&&il.has(r))break;n=i}return!r&&!this.atEnd?this.setNext("plain-scalar"):(yield $a.SCALAR,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){let i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(n&&(yield""),0)}*pushIndicators(){let t=0;e:for(;;){switch(this.charAt(0)){case"!":t+=yield*this.pushTag(),t+=yield*this.pushSpaces(!0);continue e;case"&":t+=yield*this.pushUntil(Vf),t+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{let n=this.flowLevel>0,i=this.charAt(1);if(Mt(i)||n&&il.has(i)){n?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,t+=yield*this.pushCount(1),t+=yield*this.pushSpaces(!0);continue e}}}break e}return t}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Mt(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(Dx.has(n))n=this.buffer[++t];else if(n==="%"&&m0.has(this.buffer[t+1])&&m0.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return t===`
|
|
136
|
+
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
137
|
+
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,i;do i=this.buffer[++n];while(i===" "||t&&i===" ");let r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(t){let n=this.pos,i=this.buffer[n];for(;!t(i);)i=this.buffer[++n];return yield*this.pushToIndex(n,!1)}};p0.Lexer=Ff});var Bf=oe(f0=>{"use strict";var Jf=class{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,i=this.lineStarts.length;for(;n<i;){let o=n+i>>1;this.lineStarts[o]<t?n=o+1:i=o}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};let r=this.lineStarts[n-1];return{line:n,col:t-r+1}}}};f0.LineCounter=Jf});var Hf=oe(_0=>{"use strict";var Vx=cc("process"),h0=nl(),Fx=Zf();function Tr(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function g0(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function y0(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function ol(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function hi(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function al(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function v0(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!Tr(t.start,"explicit-key-ind")&&!Tr(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,y0(t.value)?t.value.end?al(t.value.end,t.sep):t.value.end=t.sep:al(t.start,t.sep),delete t.sep)}var Kf=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Fx.Lexer,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let i of this.lexer.lex(t,n))yield*this.next(i);n||(yield*this.end())}*next(t){if(this.source=t,Vx.env.LOG_TOKENS&&console.log("|",h0.prettyToken(t)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let n=h0.tokenType(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{let i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{let i=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in i?i.indent:0:n.type==="flow-collection"&&i.type==="document"&&(n.indent=0),n.type==="flow-collection"&&v0(n),i.type){case"document":i.value=n;break;case"block-scalar":i.props.push(n);break;case"block-map":{let r=i.items[i.items.length-1];if(r.value){i.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(r.sep)r.value=n;else{Object.assign(r,{key:n,sep:[]}),this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{let r=i.items[i.items.length-1];r.value?i.items.push({start:[],value:n}):r.value=n;break}case"flow-collection":{let r=i.items[i.items.length-1];!r||r.value?i.items.push({start:[],key:n,sep:[]}):r.sep?r.value=n:Object.assign(r,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){let r=n.items[n.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&g0(r.start)===-1&&(n.indent===0||r.start.every(o=>o.type!=="comment"||o.indent<n.indent))&&(i.type==="document"?i.end=r.start:i.items.push({start:r.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{g0(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}let n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){let n=ol(this.peek(2)),i=hi(n),r;t.end?(r=t.end,r.push(this.sourceToken),delete t.end):r=[this.sourceToken];let o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
|
138
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
139
|
+
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){let n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){let i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){let r=t.items[t.items.length-2]?.value?.end;if(Array.isArray(r)){al(r,n.start),r.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let i=!this.onKeyLine&&this.indent===t.indent,r=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind",o=[];if(r&&n.sep&&!n.value){let a=[];for(let s=0;s<n.sep.length;++s){let c=n.sep[s];switch(c.type){case"newline":a.push(s);break;case"space":break;case"comment":c.indent>t.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(o=n.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":r||n.value?(o.push(this.sourceToken),t.items.push({start:o}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):r||n.value?(o.push(this.sourceToken),t.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Tr(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(y0(n.key)&&!Tr(n.sep,"newline")){let a=hi(n.start),s=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:s,sep:c}]})}else o.length>0?n.sep=n.sep.concat(o,this.sourceToken):n.sep.push(this.sourceToken);else if(Tr(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{let a=hi(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||r?t.items.push({start:o,key:null,sep:[this.sourceToken]}):Tr(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let a=this.flowScalar(this.type);r||n.value?(t.items.push({start:o,key:a,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(a):(Object.assign(n,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{let a=this.startBlockValue(t);if(a){if(a.type==="block-seq"){if(!n.explicitKey&&n.sep&&!Tr(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else i&&t.items.push({start:o});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){let i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){let r=t.items[t.items.length-2]?.value?.end;if(Array.isArray(r)){al(r,n.start),r.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||Tr(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){let i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:r,sep:[]}):n.sep?this.stack.push(r):Object.assign(n,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}let i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{let i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){let r=ol(i),o=hi(r);v0(t);let a=t.end.splice(1,t.end.length);a.push(this.sourceToken);let s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:o,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
|
140
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
141
|
+
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let n=ol(t),i=hi(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let n=ol(t),i=hi(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};_0.Parser=Kf});var z0=oe(za=>{"use strict";var S0=jf(),Zx=ha(),wa=ya(),Jx=Op(),Bx=Re(),Kx=Bf(),b0=Hf();function $0(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Kx.LineCounter||null,prettyErrors:t}}function Hx(e,t={}){let{lineCounter:n,prettyErrors:i}=$0(t),r=new b0.Parser(n?.addNewLine),o=new S0.Composer(t),a=Array.from(o.compose(r.parse(e)));if(i&&n)for(let s of a)s.errors.forEach(wa.prettifyError(e,n)),s.warnings.forEach(wa.prettifyError(e,n));return a.length>0?a:Object.assign([],{empty:!0},o.streamInfo())}function w0(e,t={}){let{lineCounter:n,prettyErrors:i}=$0(t),r=new b0.Parser(n?.addNewLine),o=new S0.Composer(t),a=null;for(let s of o.compose(r.parse(e),!0,e.length))if(!a)a=s;else if(a.options.logLevel!=="silent"){a.errors.push(new wa.YAMLParseError(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(a.errors.forEach(wa.prettifyError(e,n)),a.warnings.forEach(wa.prettifyError(e,n))),a}function Gx(e,t,n){let i;typeof t=="function"?i=t:n===void 0&&t&&typeof t=="object"&&(n=t);let r=w0(e,n);if(!r)return null;if(r.warnings.forEach(o=>Jx.warn(r.options.logLevel,o)),r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];r.errors=[]}return r.toJS(Object.assign({reviver:i},n))}function Wx(e,t,n){let i=null;if(typeof t=="function"||Array.isArray(t)?i=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){let r=Math.round(n);n=r<1?void 0:r>8?{indent:8}:{indent:r}}if(e===void 0){let{keepUndefined:r}=n??t??{};if(!r)return}return Bx.isDocument(e)&&!i?e.toString(n):new Zx.Document(e,i,n).toString(n)}za.parse=Gx;za.parseAllDocuments=Hx;za.parseDocument=w0;za.stringify=Wx});var cl=oe(Ie=>{"use strict";var Yx=jf(),Qx=ha(),Xx=ff(),Gf=ya(),eN=Xo(),Or=Re(),tN=Rr(),rN=Be(),nN=Pr(),iN=Er(),oN=nl(),aN=Zf(),sN=Bf(),cN=Hf(),sl=z0(),k0=Go();Ie.Composer=Yx.Composer;Ie.Document=Qx.Document;Ie.Schema=Xx.Schema;Ie.YAMLError=Gf.YAMLError;Ie.YAMLParseError=Gf.YAMLParseError;Ie.YAMLWarning=Gf.YAMLWarning;Ie.Alias=eN.Alias;Ie.isAlias=Or.isAlias;Ie.isCollection=Or.isCollection;Ie.isDocument=Or.isDocument;Ie.isMap=Or.isMap;Ie.isNode=Or.isNode;Ie.isPair=Or.isPair;Ie.isScalar=Or.isScalar;Ie.isSeq=Or.isSeq;Ie.Pair=tN.Pair;Ie.Scalar=rN.Scalar;Ie.YAMLMap=nN.YAMLMap;Ie.YAMLSeq=iN.YAMLSeq;Ie.CST=oN;Ie.Lexer=aN.Lexer;Ie.LineCounter=sN.LineCounter;Ie.Parser=cN.Parser;Ie.parse=sl.parse;Ie.parseAllDocuments=sl.parseAllDocuments;Ie.parseDocument=sl.parseDocument;Ie.stringify=sl.stringify;Ie.visit=k0.visit;Ie.visitAsync=k0.visitAsync});var jb=new Set(["empty","dry-run","prune","yes","no-open","help"]),CP=new Set(["image","cpus","memory","client","output"]);function Ab(e){let t=[],n=new Map,i=!1;for(let r=0;r<e.length;r+=1){let o=e[r];if(!i&&o==="--"){i=!0;continue}if(!i&&o==="-h"){lc(n,"help",!0);continue}if(i||!o.startsWith("--")){t.push(o);continue}let a=o.indexOf("=");if(a!==-1){let l=o.slice(2,a);if(jb.has(l))throw new Error(`Option --${l} does not take a value.`);Cb(l);let u=o.slice(a+1);if(!u)throw new Error(`Option --${l} requires a value.`);lc(n,l,u);continue}let s=o.slice(2);if(jb.has(s)){lc(n,s,!0);continue}Cb(s);let c=e[r+1];if(!c||c.startsWith("--"))throw new Error(`Option --${s} requires a value.`);lc(n,s,c),r+=1}return{positionals:t,options:n}}function Cb(e){if(!CP.has(e))throw new Error(`Unknown option --${e}.`)}function lc(e,t,n){if(e.has(t))throw new Error(`Option --${t} was provided more than once.`);e.set(t,n)}function ii(e,t){let n=e.options.get(t);if(n!==void 0){if(typeof n!="string")throw new Error(`Option --${t} requires a value.`);return n}}function qb(e,t){let n=ii(e,t);if(n===void 0)return;let i=Number(n);if(!Number.isFinite(i))throw new Error(`Option --${t} must be a number.`);return i}function br(e,t){return e.options.get(t)===!0}var Tb=fp(cl(),1);import{randomUUID as UM}from"node:crypto";import{readFile as VM,rename as Eb,rm as FM,stat as ZM,writeFile as JM}from"node:fs/promises";import{createInterface as BM}from"node:readline/promises";import{stdin as kP,stdout as KM}from"node:process";import{join as Fs,resolve as dp}from"node:path";var V={};ir(V,{$brand:()=>Wf,$input:()=>vv,$output:()=>gv,NEVER:()=>ka,TimePrecision:()=>bv,ZodAny:()=>a_,ZodArray:()=>u_,ZodBase64:()=>Cu,ZodBase64URL:()=>Au,ZodBigInt:()=>Bi,ZodBigIntFormat:()=>Lu,ZodBoolean:()=>Ji,ZodCIDRv4:()=>Nu,ZodCIDRv6:()=>ju,ZodCUID:()=>Ru,ZodCUID2:()=>Iu,ZodCatch:()=>T_,ZodCodec:()=>ts,ZodCustom:()=>rs,ZodCustomStringFormat:()=>Fi,ZodDate:()=>Ya,ZodDefault:()=>z_,ZodDiscriminatedUnion:()=>m_,ZodE164:()=>qu,ZodEmail:()=>$u,ZodEmoji:()=>zu,ZodEnum:()=>Di,ZodError:()=>LC,ZodExactOptional:()=>b_,ZodFile:()=>__,ZodFirstPartyTypeKind:()=>V_,ZodFunction:()=>L_,ZodGUID:()=>Ka,ZodIPv4:()=>Ou,ZodIPv6:()=>xu,ZodISODate:()=>gu,ZodISODateTime:()=>hu,ZodISODuration:()=>yu,ZodISOTime:()=>vu,ZodIntersection:()=>p_,ZodIssueCode:()=>F_,ZodJWT:()=>Mu,ZodKSUID:()=>Tu,ZodLazy:()=>q_,ZodLiteral:()=>y_,ZodMAC:()=>r_,ZodMap:()=>g_,ZodNaN:()=>x_,ZodNanoID:()=>ku,ZodNever:()=>c_,ZodNonOptional:()=>Zu,ZodNull:()=>o_,ZodNullable:()=>w_,ZodNumber:()=>Zi,ZodNumberFormat:()=>jn,ZodObject:()=>Qa,ZodOptional:()=>Fu,ZodPipe:()=>es,ZodPrefault:()=>R_,ZodPreprocess:()=>N_,ZodPromise:()=>M_,ZodReadonly:()=>j_,ZodRealError:()=>bt,ZodRecord:()=>Li,ZodSet:()=>v_,ZodString:()=>Ui,ZodStringFormat:()=>Te,ZodSuccess:()=>E_,ZodSymbol:()=>n_,ZodTemplateLiteral:()=>A_,ZodTransform:()=>S_,ZodTuple:()=>f_,ZodType:()=>Se,ZodULID:()=>Pu,ZodURL:()=>Wa,ZodUUID:()=>Xt,ZodUndefined:()=>i_,ZodUnion:()=>Xa,ZodUnknown:()=>s_,ZodVoid:()=>l_,ZodXID:()=>Eu,ZodXor:()=>d_,_ZodString:()=>bu,_default:()=>k_,_function:()=>aR,any:()=>Du,array:()=>j,base64:()=>kk,base64url:()=>Rk,bigint:()=>qk,boolean:()=>te,catch:()=>O_,check:()=>sR,cidrv4:()=>wk,cidrv6:()=>zk,clone:()=>dt,codec:()=>rR,coerce:()=>ns,config:()=>Ae,core:()=>lr,cuid:()=>hk,cuid2:()=>gk,custom:()=>cR,date:()=>Fk,decode:()=>Gy,decodeAsync:()=>Yy,describe:()=>lR,discriminatedUnion:()=>Vr,e164:()=>Ik,email:()=>wu,emoji:()=>pk,encode:()=>Hy,encodeAsync:()=>Wy,endsWith:()=>Ti,enum:()=>fe,exactOptional:()=>$_,file:()=>Qk,flattenError:()=>Na,float32:()=>Nk,float64:()=>jk,formatError:()=>ja,fromJSONSchema:()=>hR,function:()=>aR,getErrorMap:()=>VC,globalRegistry:()=>tt,gt:()=>Yt,gte:()=>pt,guid:()=>sk,hash:()=>xk,hex:()=>Ok,hostname:()=>Tk,httpUrl:()=>mk,includes:()=>Pi,instanceof:()=>dR,int:()=>_u,int32:()=>Ck,int64:()=>Mk,intersection:()=>Ut,invertCodec:()=>nR,ipv4:()=>Sk,ipv6:()=>$k,iso:()=>Pt,json:()=>pR,jwt:()=>Pk,keyof:()=>Zk,ksuid:()=>_k,lazy:()=>Fr,length:()=>xn,literal:()=>C,locales:()=>Va,looseObject:()=>le,looseRecord:()=>Hk,lowercase:()=>Ri,lt:()=>Wt,lte:()=>It,mac:()=>bk,map:()=>Gk,maxLength:()=>On,maxSize:()=>Mr,meta:()=>uR,mime:()=>Oi,minLength:()=>cr,minSize:()=>Qt,multipleOf:()=>qr,nan:()=>tR,nanoid:()=>fk,nativeEnum:()=>Yk,negative:()=>au,never:()=>Uu,nonnegative:()=>cu,nonoptional:()=>P_,nonpositive:()=>su,normalize:()=>xi,null:()=>er,nullable:()=>Ha,nullish:()=>Xk,number:()=>J,object:()=>I,optional:()=>se,overwrite:()=>Dt,parse:()=>Jy,parseAsync:()=>By,partialRecord:()=>Kk,pipe:()=>Su,positive:()=>ou,prefault:()=>I_,preprocess:()=>ur,prettifyError:()=>lh,promise:()=>oR,property:()=>lu,readonly:()=>C_,record:()=>ee,refine:()=>D_,regex:()=>ki,regexes:()=>Rt,registry:()=>Ml,safeDecode:()=>Xy,safeDecodeAsync:()=>t_,safeEncode:()=>Qy,safeEncodeAsync:()=>e_,safeParse:()=>Ba,safeParseAsync:()=>Ky,set:()=>Wk,setErrorMap:()=>UC,size:()=>Tn,slugify:()=>Ai,startsWith:()=>Ei,strictObject:()=>Jk,string:()=>p,stringFormat:()=>Ek,stringbool:()=>mR,success:()=>eR,superRefine:()=>U_,symbol:()=>Dk,templateLiteral:()=>iR,toJSONSchema:()=>Nn,toLowerCase:()=>ji,toUpperCase:()=>Ci,transform:()=>Vu,treeifyError:()=>ch,trim:()=>Ni,tuple:()=>h_,uint32:()=>Ak,uint64:()=>Lk,ulid:()=>vk,undefined:()=>Uk,union:()=>ie,unknown:()=>ae,uppercase:()=>Ii,url:()=>Vi,util:()=>G,uuid:()=>ck,uuidv4:()=>lk,uuidv6:()=>uk,uuidv7:()=>dk,void:()=>Vk,xid:()=>yk,xor:()=>Bk});var lr={};ir(lr,{$ZodAny:()=>Mg,$ZodArray:()=>Fg,$ZodAsyncError:()=>Lt,$ZodBase64:()=>Pg,$ZodBase64URL:()=>Eg,$ZodBigInt:()=>Tl,$ZodBigIntFormat:()=>jg,$ZodBoolean:()=>Ma,$ZodCIDRv4:()=>kg,$ZodCIDRv6:()=>Rg,$ZodCUID:()=>pg,$ZodCUID2:()=>fg,$ZodCatch:()=>sv,$ZodCheck:()=>Oe,$ZodCheckBigIntFormat:()=>Fh,$ZodCheckEndsWith:()=>tg,$ZodCheckGreaterThan:()=>zl,$ZodCheckIncludes:()=>Xh,$ZodCheckLengthEquals:()=>Gh,$ZodCheckLessThan:()=>wl,$ZodCheckLowerCase:()=>Yh,$ZodCheckMaxLength:()=>Kh,$ZodCheckMaxSize:()=>Zh,$ZodCheckMimeType:()=>ng,$ZodCheckMinLength:()=>Hh,$ZodCheckMinSize:()=>Jh,$ZodCheckMultipleOf:()=>Uh,$ZodCheckNumberFormat:()=>Vh,$ZodCheckOverwrite:()=>ig,$ZodCheckProperty:()=>rg,$ZodCheckRegex:()=>Wh,$ZodCheckSizeEquals:()=>Bh,$ZodCheckStartsWith:()=>eg,$ZodCheckStringFormat:()=>wi,$ZodCheckUpperCase:()=>Qh,$ZodCodec:()=>Da,$ZodCustom:()=>hv,$ZodCustomStringFormat:()=>xg,$ZodDate:()=>Vg,$ZodDefault:()=>nv,$ZodDiscriminatedUnion:()=>Bg,$ZodE164:()=>Tg,$ZodEmail:()=>lg,$ZodEmoji:()=>dg,$ZodEncodeError:()=>xr,$ZodEnum:()=>Yg,$ZodError:()=>xa,$ZodExactOptional:()=>tv,$ZodFile:()=>Xg,$ZodFunction:()=>mv,$ZodGUID:()=>sg,$ZodIPv4:()=>$g,$ZodIPv6:()=>wg,$ZodISODate:()=>_g,$ZodISODateTime:()=>yg,$ZodISODuration:()=>bg,$ZodISOTime:()=>Sg,$ZodIntersection:()=>Kg,$ZodJWT:()=>Og,$ZodKSUID:()=>vg,$ZodLazy:()=>fv,$ZodLiteral:()=>Qg,$ZodMAC:()=>zg,$ZodMap:()=>Gg,$ZodNaN:()=>cv,$ZodNanoID:()=>mg,$ZodNever:()=>Dg,$ZodNonOptional:()=>ov,$ZodNull:()=>qg,$ZodNullable:()=>rv,$ZodNumber:()=>El,$ZodNumberFormat:()=>Ng,$ZodObject:()=>rz,$ZodObjectJIT:()=>Zg,$ZodOptional:()=>xl,$ZodPipe:()=>Nl,$ZodPrefault:()=>iv,$ZodPreprocess:()=>lv,$ZodPromise:()=>pv,$ZodReadonly:()=>uv,$ZodRealError:()=>St,$ZodRecord:()=>Hg,$ZodRegistry:()=>ql,$ZodSet:()=>Wg,$ZodString:()=>En,$ZodStringFormat:()=>Ee,$ZodSuccess:()=>av,$ZodSymbol:()=>Cg,$ZodTemplateLiteral:()=>dv,$ZodTransform:()=>ev,$ZodTuple:()=>Ol,$ZodType:()=>he,$ZodULID:()=>hg,$ZodURL:()=>ug,$ZodUUID:()=>cg,$ZodUndefined:()=>Ag,$ZodUnion:()=>La,$ZodUnknown:()=>Lg,$ZodVoid:()=>Ug,$ZodXID:()=>gg,$ZodXor:()=>Jg,$brand:()=>Wf,$constructor:()=>x,$input:()=>vv,$output:()=>gv,Doc:()=>qa,JSONSchema:()=>ik,JSONSchemaGenerator:()=>pu,NEVER:()=>ka,TimePrecision:()=>bv,_any:()=>Vv,_array:()=>Gv,_base64:()=>tu,_base64url:()=>ru,_bigint:()=>Cv,_boolean:()=>Nv,_catch:()=>OC,_check:()=>nk,_cidrv4:()=>Xl,_cidrv6:()=>eu,_coercedBigint:()=>Av,_coercedBoolean:()=>jv,_coercedDate:()=>Kv,_coercedNumber:()=>Iv,_coercedString:()=>_v,_cuid:()=>Bl,_cuid2:()=>Kl,_custom:()=>Yv,_date:()=>Bv,_decode:()=>fl,_decodeAsync:()=>gl,_default:()=>PC,_discriminatedUnion:()=>gC,_e164:()=>nu,_email:()=>Ll,_emoji:()=>Zl,_encode:()=>pl,_encodeAsync:()=>hl,_endsWith:()=>Ti,_enum:()=>$C,_file:()=>Wv,_float32:()=>Ev,_float64:()=>Tv,_gt:()=>Yt,_gte:()=>pt,_guid:()=>Fa,_includes:()=>Pi,_int:()=>Pv,_int32:()=>Ov,_int64:()=>qv,_intersection:()=>vC,_ipv4:()=>Yl,_ipv6:()=>Ql,_isoDate:()=>wv,_isoDateTime:()=>$v,_isoDuration:()=>kv,_isoTime:()=>zv,_jwt:()=>iu,_ksuid:()=>Wl,_lazy:()=>CC,_length:()=>xn,_literal:()=>zC,_lowercase:()=>Ri,_lt:()=>Wt,_lte:()=>It,_mac:()=>Sv,_map:()=>SC,_max:()=>It,_maxLength:()=>On,_maxSize:()=>Mr,_mime:()=>Oi,_min:()=>pt,_minLength:()=>cr,_minSize:()=>Qt,_multipleOf:()=>qr,_nan:()=>Hv,_nanoid:()=>Jl,_nativeEnum:()=>wC,_negative:()=>au,_never:()=>Zv,_nonnegative:()=>cu,_nonoptional:()=>EC,_nonpositive:()=>su,_normalize:()=>xi,_null:()=>Uv,_nullable:()=>IC,_number:()=>Rv,_optional:()=>RC,_overwrite:()=>Dt,_parse:()=>_i,_parseAsync:()=>Si,_pipe:()=>xC,_positive:()=>ou,_promise:()=>AC,_property:()=>lu,_readonly:()=>NC,_record:()=>_C,_refine:()=>Qv,_regex:()=>ki,_safeDecode:()=>yl,_safeDecodeAsync:()=>Sl,_safeEncode:()=>vl,_safeEncodeAsync:()=>_l,_safeParse:()=>bi,_safeParseAsync:()=>$i,_set:()=>bC,_size:()=>Tn,_slugify:()=>Ai,_startsWith:()=>Ei,_string:()=>yv,_stringFormat:()=>qi,_stringbool:()=>ry,_success:()=>TC,_superRefine:()=>Xv,_symbol:()=>Lv,_templateLiteral:()=>jC,_toLowerCase:()=>ji,_toUpperCase:()=>Ci,_transform:()=>kC,_trim:()=>Ni,_tuple:()=>yC,_uint32:()=>xv,_uint64:()=>Mv,_ulid:()=>Hl,_undefined:()=>Dv,_union:()=>fC,_unknown:()=>Fv,_uppercase:()=>Ii,_url:()=>Za,_uuid:()=>Dl,_uuidv4:()=>Ul,_uuidv6:()=>Vl,_uuidv7:()=>Fl,_void:()=>Jv,_xid:()=>Gl,_xor:()=>hC,clone:()=>dt,config:()=>Ae,createStandardJSONSchemaMethod:()=>Mi,createToJSONSchemaMethod:()=>ny,decode:()=>AN,decodeAsync:()=>MN,describe:()=>ey,encode:()=>CN,encodeAsync:()=>qN,extractDefs:()=>Dr,finalize:()=>Ur,flattenError:()=>Na,formatError:()=>ja,globalConfig:()=>Rn,globalRegistry:()=>tt,initializeContext:()=>Lr,isValidBase64:()=>Ig,isValidBase64URL:()=>Q0,isValidJWT:()=>X0,locales:()=>Va,meta:()=>ty,parse:()=>dl,parseAsync:()=>ml,prettifyError:()=>lh,process:()=>Pe,regexes:()=>Rt,registry:()=>Ml,safeDecode:()=>DN,safeDecodeAsync:()=>VN,safeEncode:()=>LN,safeEncodeAsync:()=>UN,safeParse:()=>uh,safeParseAsync:()=>dh,toDotPath:()=>O0,toJSONSchema:()=>Nn,treeifyError:()=>ch,util:()=>G,version:()=>og});var R0,ka=Object.freeze({status:"aborted"});function x(e,t,n){function i(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let l=a.prototype,u=Object.keys(l);for(let d=0;d<u.length;d++){let m=u[d];m in s||(s[m]=l[m].bind(s))}}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function a(s){var c;let l=n?.Parent?new o:this;i(l,s),(c=l._zod).deferred??(c.deferred=[]);for(let u of l._zod.deferred)u();return l}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Wf=Symbol("zod_brand"),Lt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},xr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(R0=globalThis).__zod_globalConfig??(R0.__zod_globalConfig={});var Rn=globalThis.__zod_globalConfig;function Ae(e){return e&&Object.assign(Rn,e),Rn}var G={};ir(G,{BIGINT_FORMAT_RANGES:()=>ah,Class:()=>Qf,NUMBER_FORMAT_RANGES:()=>oh,aborted:()=>Ar,allowsEval:()=>th,assert:()=>pN,assertEqual:()=>lN,assertIs:()=>dN,assertNever:()=>mN,assertNotEqual:()=>uN,assignProp:()=>jr,base64ToUint8Array:()=>P0,base64urlToUint8Array:()=>TN,cached:()=>vi,captureStackTrace:()=>ul,cleanEnum:()=>EN,cleanRegex:()=>Pa,clone:()=>dt,cloneDef:()=>hN,createTransparentProxy:()=>bN,defineLazy:()=>we,esc:()=>ll,escapeRegex:()=>xt,explicitlyAborted:()=>sh,extend:()=>zN,finalizeIssue:()=>mt,floatSafeRemainder:()=>Xf,getElementAtPath:()=>gN,getEnumValues:()=>Ia,getLengthableOrigin:()=>Oa,getParsedType:()=>SN,getSizableOrigin:()=>Ta,hexToUint8Array:()=>xN,isObject:()=>In,isPlainObject:()=>Cr,issue:()=>yi,joinValues:()=>q,jsonStringifyReplacer:()=>gi,merge:()=>RN,mergeDefs:()=>sr,normalizeParams:()=>W,nullish:()=>Nr,numKeys:()=>_N,objectClone:()=>fN,omit:()=>wN,optionalKeys:()=>ih,parsedType:()=>H,partial:()=>IN,pick:()=>$N,prefixIssues:()=>_t,primitiveTypes:()=>nh,promiseAllObject:()=>vN,propertyKeyTypes:()=>Ea,randomString:()=>yN,required:()=>PN,safeExtend:()=>kN,shallowClone:()=>rh,slugify:()=>eh,stringifyPrimitive:()=>K,uint8ArrayToBase64:()=>E0,uint8ArrayToBase64url:()=>ON,uint8ArrayToHex:()=>NN,unwrapMessage:()=>Ra});function lN(e){return e}function uN(e){return e}function dN(e){}function mN(e){throw new Error("Unexpected value in exhaustive check")}function pN(e){}function Ia(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function q(e,t="|"){return e.map(n=>K(n)).join(t)}function gi(e,t){return typeof t=="bigint"?t.toString():t}function vi(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function Nr(e){return e==null}function Pa(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Xf(e,t){let n=e/t,i=Math.round(n),r=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-i)<r?0:n-i}var I0=Symbol("evaluating");function we(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==I0)return i===void 0&&(i=I0,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function fN(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function jr(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function sr(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function hN(e){return sr(e._zod.def)}function gN(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function vN(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function yN(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function ll(e){return JSON.stringify(e)}function eh(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var ul="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function In(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var th=vi(()=>{if(Rn.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Cr(e){if(In(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(In(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function rh(e){return Cr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function _N(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var SN=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}`)}},Ea=new Set(["string","number","symbol"]),nh=new Set(["string","number","bigint","boolean","symbol","undefined"]);function xt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function dt(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function W(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 bN(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function K(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ih(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var oh={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]},ah={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function $N(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=sr(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=n.shape[s])}return jr(this,"shape",a),a},checks:[]});return dt(e,o)}function wN(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=sr(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return jr(this,"shape",a),a},checks:[]});return dt(e,o)}function zN(e,t){if(!Cr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=sr(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return jr(this,"shape",o),o}});return dt(e,r)}function kN(e,t){if(!Cr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=sr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return jr(this,"shape",i),i}});return dt(e,n)}function RN(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=sr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return jr(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return dt(e,n)}function IN(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=sr(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(n)for(let l in n){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=e?new e({type:"optional",innerType:s[l]}):s[l])}else for(let l in s)c[l]=e?new e({type:"optional",innerType:s[l]}):s[l];return jr(this,"shape",c),c},checks:[]});return dt(t,a)}function PN(e,t,n){let i=sr(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)o[a]=new e({type:"nonoptional",innerType:r[a]});return jr(this,"shape",o),o}});return dt(t,i)}function Ar(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function sh(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function _t(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Ra(e){return typeof e=="string"?e:e?.message}function mt(e,t,n){let i=e.message?e.message:Ra(e.inst?._zod.def?.error?.(e))??Ra(t?.error?.(e))??Ra(n.customError?.(e))??Ra(n.localeError?.(e))??"Invalid input",{inst:r,continue:o,input:a,...s}=e;return s.path??(s.path=[]),s.message=i,t?.reportInput&&(s.input=a),s}function Ta(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Oa(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function H(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function yi(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function EN(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function P0(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function E0(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function TN(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return P0(t+n)}function ON(e){return E0(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function xN(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function NN(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Qf=class{constructor(...t){}};var T0=(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,gi,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},xa=x("$ZodError",T0),St=x("$ZodError",T0,{Parent:Error});function Na(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function ja(e,t=n=>n.message){let n={_errors:[]},i=(r,o=[])=>{for(let a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let s=[...o,...a.path];if(s.length===0)n._errors.push(t(a));else{let c=n,l=0;for(;l<s.length;){let u=s[l];l===s.length-1?(c[u]=c[u]||{_errors:[]},c[u]._errors.push(t(a))):c[u]=c[u]||{_errors:[]},c=c[u],l++}}}};return i(e),n}function ch(e,t=n=>n.message){let n={errors:[]},i=(r,o=[])=>{var a,s;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>i({issues:l},[...o,...c.path]));else if(c.code==="invalid_key")i({issues:c.issues},[...o,...c.path]);else if(c.code==="invalid_element")i({issues:c.issues},[...o,...c.path]);else{let l=[...o,...c.path];if(l.length===0){n.errors.push(t(c));continue}let u=n,d=0;for(;d<l.length;){let m=l[d],v=d===l.length-1;typeof m=="string"?(u.properties??(u.properties={}),(a=u.properties)[m]??(a[m]={errors:[]}),u=u.properties[m]):(u.items??(u.items=[]),(s=u.items)[m]??(s[m]={errors:[]}),u=u.items[m]),v&&u.errors.push(t(c)),d++}}};return i(e),n}function O0(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function lh(e){let t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${O0(i.path)}`);return t.join(`
|
|
142
|
+
`)}var _i=e=>(t,n,i,r)=>{let o=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Lt;if(a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>mt(c,o,Ae())));throw ul(s,r?.callee),s}return a.value},dl=_i(St),Si=e=>async(t,n,i,r)=>{let o=i?{...i,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>mt(c,o,Ae())));throw ul(s,r?.callee),s}return a.value},ml=Si(St),bi=e=>(t,n,i)=>{let r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Lt;return o.issues.length?{success:!1,error:new(e??xa)(o.issues.map(a=>mt(a,r,Ae())))}:{success:!0,data:o.value}},uh=bi(St),$i=e=>async(t,n,i)=>{let r=i?{...i,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>mt(a,r,Ae())))}:{success:!0,data:o.value}},dh=$i(St),pl=e=>(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return _i(e)(t,n,r)},CN=pl(St),fl=e=>(t,n,i)=>_i(e)(t,n,i),AN=fl(St),hl=e=>async(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return Si(e)(t,n,r)},qN=hl(St),gl=e=>async(t,n,i)=>Si(e)(t,n,i),MN=gl(St),vl=e=>(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return bi(e)(t,n,r)},LN=vl(St),yl=e=>(t,n,i)=>bi(e)(t,n,i),DN=yl(St),_l=e=>async(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return $i(e)(t,n,r)},UN=_l(St),Sl=e=>async(t,n,i)=>$i(e)(t,n,i),VN=Sl(St);var Rt={};ir(Rt,{base64:()=>Ih,base64url:()=>bl,bigint:()=>jh,boolean:()=>Ah,browserEmail:()=>WN,cidrv4:()=>kh,cidrv6:()=>Rh,cuid:()=>mh,cuid2:()=>ph,date:()=>Th,datetime:()=>xh,domain:()=>XN,duration:()=>yh,e164:()=>Eh,email:()=>Sh,emoji:()=>bh,extendedDuration:()=>FN,guid:()=>_h,hex:()=>ej,hostname:()=>QN,html5Email:()=>KN,httpProtocol:()=>Ph,idnEmail:()=>GN,integer:()=>Ch,ipv4:()=>$h,ipv6:()=>wh,ksuid:()=>gh,lowercase:()=>Lh,mac:()=>zh,md5_base64:()=>rj,md5_base64url:()=>nj,md5_hex:()=>tj,nanoid:()=>vh,null:()=>qh,number:()=>$l,rfc5322Email:()=>HN,sha1_base64:()=>oj,sha1_base64url:()=>aj,sha1_hex:()=>ij,sha256_base64:()=>cj,sha256_base64url:()=>lj,sha256_hex:()=>sj,sha384_base64:()=>dj,sha384_base64url:()=>mj,sha384_hex:()=>uj,sha512_base64:()=>fj,sha512_base64url:()=>hj,sha512_hex:()=>pj,string:()=>Nh,time:()=>Oh,ulid:()=>fh,undefined:()=>Mh,unicodeEmail:()=>x0,uppercase:()=>Dh,uuid:()=>Pn,uuid4:()=>ZN,uuid6:()=>JN,uuid7:()=>BN,xid:()=>hh});var mh=/^[cC][0-9a-z]{6,}$/,ph=/^[0-9a-z]+$/,fh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,hh=/^[0-9a-vA-V]{20}$/,gh=/^[A-Za-z0-9]{27}$/,vh=/^[a-zA-Z0-9_-]{21}$/,yh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,FN=/^[-+]?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)?)??$/,_h=/^([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})$/,Pn=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)$/,ZN=Pn(4),JN=Pn(6),BN=Pn(7),Sh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,KN=/^[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])?)*$/,HN=/^(([^<>()\[\]\\.,;:\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,}))$/,x0=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,GN=x0,WN=/^[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])?)*$/,YN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function bh(){return new RegExp(YN,"u")}var $h=/^(?:(?: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])$/,wh=/^(([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}|:))$/,zh=e=>{let t=xt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},kh=/^((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])$/,Rh=/^(([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])$/,Ih=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,bl=/^[A-Za-z0-9_-]*$/,QN=/^(?=.{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])?)*\.?$/,XN=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Ph=/^https?$/,Eh=/^\+[1-9]\d{6,14}$/,N0="(?:(?:\\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])))",Th=new RegExp(`^${N0}$`);function j0(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 Oh(e){return new RegExp(`^${j0(e)}$`)}function xh(e){let t=j0({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${n.join("|")})`;return new RegExp(`^${N0}T(?:${i})$`)}var Nh=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},jh=/^-?\d+n?$/,Ch=/^-?\d+$/,$l=/^-?\d+(?:\.\d+)?$/,Ah=/^(?:true|false)$/i,qh=/^null$/i;var Mh=/^undefined$/i;var Lh=/^[^A-Z]*$/,Dh=/^[^a-z]*$/,ej=/^[0-9a-fA-F]*$/;function Ca(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Aa(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var tj=/^[0-9a-fA-F]{32}$/,rj=Ca(22,"=="),nj=Aa(22),ij=/^[0-9a-fA-F]{40}$/,oj=Ca(27,"="),aj=Aa(27),sj=/^[0-9a-fA-F]{64}$/,cj=Ca(43,"="),lj=Aa(43),uj=/^[0-9a-fA-F]{96}$/,dj=Ca(64,""),mj=Aa(64),pj=/^[0-9a-fA-F]{128}$/,fj=Ca(86,"=="),hj=Aa(86);var Oe=x("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),A0={number:"number",bigint:"bigint",object:"date"},wl=x("$ZodCheckLessThan",(e,t)=>{Oe.init(e,t);let n=A0[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),zl=x("$ZodCheckGreaterThan",(e,t)=>{Oe.init(e,t);let n=A0[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Uh=x("$ZodCheckMultipleOf",(e,t)=>{Oe.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Xf(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Vh=x("$ZodCheckNumberFormat",(e,t)=>{Oe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=oh[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=r,s.maximum=o,n&&(s.pattern=Ch)}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Fh=x("$ZodCheckBigIntFormat",(e,t)=>{Oe.init(e,t);let[n,i]=ah[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Zh=x("$ZodCheckMaxSize",(e,t)=>{var n;Oe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!Nr(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let r=i.value;r.size<=t.maximum||i.issues.push({origin:Ta(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Jh=x("$ZodCheckMinSize",(e,t)=>{var n;Oe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!Nr(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let r=i.value;r.size>=t.minimum||i.issues.push({origin:Ta(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Bh=x("$ZodCheckSizeEquals",(e,t)=>{var n;Oe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!Nr(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=i=>{let r=i.value,o=r.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:Ta(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Kh=x("$ZodCheckMaxLength",(e,t)=>{var n;Oe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!Nr(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let r=i.value;if(r.length<=t.maximum)return;let a=Oa(r);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Hh=x("$ZodCheckMinLength",(e,t)=>{var n;Oe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!Nr(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let r=i.value;if(r.length>=t.minimum)return;let a=Oa(r);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Gh=x("$ZodCheckLengthEquals",(e,t)=>{var n;Oe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!Nr(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=>{let r=i.value,o=r.length;if(o===t.length)return;let a=Oa(r),s=o>t.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),wi=x("$ZodCheckStringFormat",(e,t)=>{var n,i;Oe.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),Wh=x("$ZodCheckRegex",(e,t)=>{wi.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Yh=x("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Lh),wi.init(e,t)}),Qh=x("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Dh),wi.init(e,t)}),Xh=x("$ZodCheckIncludes",(e,t)=>{Oe.init(e,t);let n=xt(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),eg=x("$ZodCheckStartsWith",(e,t)=>{Oe.init(e,t);let n=new RegExp(`^${xt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),tg=x("$ZodCheckEndsWith",(e,t)=>{Oe.init(e,t);let n=new RegExp(`.*${xt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function C0(e,t,n){e.issues.length&&t.issues.push(..._t(n,e.issues))}var rg=x("$ZodCheckProperty",(e,t)=>{Oe.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>C0(r,n,t.property));C0(i,n,t.property)}}),ng=x("$ZodCheckMimeType",(e,t)=>{Oe.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),ig=x("$ZodCheckOverwrite",(e,t)=>{Oe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var qa=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 i=t.split(`
|
|
143
|
+
`).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let t=Function,n=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,r.join(`
|
|
144
|
+
`))}};var og={major:4,minor:4,patch:3};var he=x("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=og;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let r of i)for(let o of r._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=(a,s,c)=>{let l=Ar(a),u;for(let d of s){if(d._zod.def.when){if(sh(a)||!d._zod.def.when(a))continue}else if(l)continue;let m=a.issues.length,v=d._zod.check(a);if(v instanceof Promise&&c?.async===!1)throw new Lt;if(u||v instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await v,a.issues.length!==m&&(l||(l=Ar(a,m)))});else{if(a.issues.length===m)continue;l||(l=Ar(a,m))}}return u?u.then(()=>a):a},o=(a,s,c)=>{if(Ar(a))return a.aborted=!0,a;let l=r(s,i,c);if(l instanceof Promise){if(c.async===!1)throw new Lt;return l.then(u=>e._zod.parse(u,c))}return e._zod.parse(l,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return l instanceof Promise?l.then(u=>o(u,a,s)):o(l,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new Lt;return c.then(l=>r(l,i,s))}return r(c,i,s)}}we(e,"~standard",()=>({validate:r=>{try{let o=uh(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return dh(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),En=x("$ZodString",(e,t)=>{he.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Nh(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ee=x("$ZodStringFormat",(e,t)=>{wi.init(e,t),En.init(e,t)}),sg=x("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=_h),Ee.init(e,t)}),cg=x("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Pn(i))}else t.pattern??(t.pattern=Pn());Ee.init(e,t)}),lg=x("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Sh),Ee.init(e,t)}),ug=x("$ZodURL",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{try{let i=n.value.trim();if(!t.normalize&&t.protocol?.source===Ph.source&&!/^https?:\/\//i.test(i)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}let r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),dg=x("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=bh()),Ee.init(e,t)}),mg=x("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=vh),Ee.init(e,t)}),pg=x("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=mh),Ee.init(e,t)}),fg=x("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ph),Ee.init(e,t)}),hg=x("$ZodULID",(e,t)=>{t.pattern??(t.pattern=fh),Ee.init(e,t)}),gg=x("$ZodXID",(e,t)=>{t.pattern??(t.pattern=hh),Ee.init(e,t)}),vg=x("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=gh),Ee.init(e,t)}),yg=x("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=xh(t)),Ee.init(e,t)}),_g=x("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Th),Ee.init(e,t)}),Sg=x("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Oh(t)),Ee.init(e,t)}),bg=x("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=yh),Ee.init(e,t)}),$g=x("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=$h),Ee.init(e,t),e._zod.bag.format="ipv4"}),wg=x("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=wh),Ee.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),zg=x("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=zh(t.delimiter)),Ee.init(e,t),e._zod.bag.format="mac"}),kg=x("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=kh),Ee.init(e,t)}),Rg=x("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Rh),Ee.init(e,t),e._zod.check=n=>{let i=n.value.split("/");try{if(i.length!==2)throw new Error;let[r,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Ig(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=x("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ih),Ee.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Ig(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Q0(e){if(!bl.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ig(n)}var Eg=x("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=bl),Ee.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Q0(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Tg=x("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Eh),Ee.init(e,t)});function X0(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let r=JSON.parse(atob(i));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var Og=x("$ZodJWT",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{X0(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),xg=x("$ZodCustomStringFormat",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),El=x("$ZodNumber",(e,t)=>{he.init(e,t),e._zod.pattern=e._zod.bag.pattern??$l,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),Ng=x("$ZodNumberFormat",(e,t)=>{Vh.init(e,t),El.init(e,t)}),Ma=x("$ZodBoolean",(e,t)=>{he.init(e,t),e._zod.pattern=Ah,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Tl=x("$ZodBigInt",(e,t)=>{he.init(e,t),e._zod.pattern=jh,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),jg=x("$ZodBigIntFormat",(e,t)=>{Fh.init(e,t),Tl.init(e,t)}),Cg=x("$ZodSymbol",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),Ag=x("$ZodUndefined",(e,t)=>{he.init(e,t),e._zod.pattern=Mh,e._zod.values=new Set([void 0]),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),qg=x("$ZodNull",(e,t)=>{he.init(e,t),e._zod.pattern=qh,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),Mg=x("$ZodAny",(e,t)=>{he.init(e,t),e._zod.parse=n=>n}),Lg=x("$ZodUnknown",(e,t)=>{he.init(e,t),e._zod.parse=n=>n}),Dg=x("$ZodNever",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Ug=x("$ZodVoid",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),Vg=x("$ZodDate",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n}});function M0(e,t,n){e.issues.length&&t.issues.push(..._t(n,e.issues)),t.value[n]=e.value}var Fg=x("$ZodArray",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let o=[];for(let a=0;a<r.length;a++){let s=r[a],c=t.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(l=>M0(l,n,a))):M0(c,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function Pl(e,t,n,i,r,o){let a=n in i;if(e.issues.length){if(r&&o&&!a)return;t.issues.push(..._t(n,e.issues))}if(!a&&!r){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function ez(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let n=ih(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function tz(e,t,n,i,r,o){let a=[],s=r.keySet,c=r.catchall._zod,l=c.def.type,u=c.optin==="optional",d=c.optout==="optional";for(let m in t){if(m==="__proto__"||s.has(m))continue;if(l==="never"){a.push(m);continue}let v=c.run({value:t[m],issues:[]},i);v instanceof Promise?e.push(v.then(y=>Pl(y,n,m,t,u,d))):Pl(v,n,m,t,u,d)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var rz=x("$ZodObject",(e,t)=>{if(he.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}let i=vi(()=>ez(t));we(e._zod,"propValues",()=>{let s=t.shape,c={};for(let l in s){let u=s[l]._zod;if(u.values){c[l]??(c[l]=new Set);for(let d of u.values)c[l].add(d)}}return c});let r=In,o=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=i.value);let l=s.value;if(!r(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),s;s.value={};let u=[],d=a.shape;for(let m of a.keys){let v=d[m],y=v._zod.optin==="optional",f=v._zod.optout==="optional",h=v._zod.run({value:l[m],issues:[]},c);h instanceof Promise?u.push(h.then(g=>Pl(g,s,m,l,y,f))):Pl(h,s,m,l,y,f)}return o?tz(u,l,s,c,i.value,e):u.length?Promise.all(u).then(()=>s):s}}),Zg=x("$ZodObjectJIT",(e,t)=>{rz.init(e,t);let n=e._zod.parse,i=vi(()=>ez(t)),r=m=>{let v=new qa(["shape","payload","ctx"]),y=i.value,f=_=>{let b=ll(_);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};v.write("const input = payload.value;");let h=Object.create(null),g=0;for(let _ of y.keys)h[_]=`key_${g++}`;v.write("const newResult = {};");for(let _ of y.keys){let b=h[_],k=ll(_),z=m[_],S=z?._zod?.optin==="optional",w=z?._zod?.optout==="optional";v.write(`const ${b} = ${f(_)};`),S&&w?v.write(`
|
|
145
|
+
if (${b}.issues.length) {
|
|
146
|
+
if (${k} in input) {
|
|
147
|
+
payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
|
|
148
|
+
...iss,
|
|
149
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
150
|
+
})));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (${b}.value === undefined) {
|
|
155
|
+
if (${k} in input) {
|
|
156
|
+
newResult[${k}] = undefined;
|
|
157
|
+
}
|
|
158
|
+
} else {
|
|
159
|
+
newResult[${k}] = ${b}.value;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
`):S?v.write(`
|
|
163
|
+
if (${b}.issues.length) {
|
|
164
|
+
payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
|
|
165
|
+
...iss,
|
|
166
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
167
|
+
})));
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (${b}.value === undefined) {
|
|
171
|
+
if (${k} in input) {
|
|
172
|
+
newResult[${k}] = undefined;
|
|
173
|
+
}
|
|
174
|
+
} else {
|
|
175
|
+
newResult[${k}] = ${b}.value;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
`):v.write(`
|
|
179
|
+
const ${b}_present = ${k} in input;
|
|
180
|
+
if (${b}.issues.length) {
|
|
181
|
+
payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
|
|
182
|
+
...iss,
|
|
183
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
184
|
+
})));
|
|
185
|
+
}
|
|
186
|
+
if (!${b}_present && !${b}.issues.length) {
|
|
187
|
+
payload.issues.push({
|
|
188
|
+
code: "invalid_type",
|
|
189
|
+
expected: "nonoptional",
|
|
190
|
+
input: undefined,
|
|
191
|
+
path: [${k}]
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (${b}_present) {
|
|
196
|
+
if (${b}.value === undefined) {
|
|
197
|
+
newResult[${k}] = undefined;
|
|
198
|
+
} else {
|
|
199
|
+
newResult[${k}] = ${b}.value;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
`)}v.write("payload.value = newResult;"),v.write("return payload;");let $=v.compile();return(_,b)=>$(m,_,b)},o,a=In,s=!Rn.jitless,l=s&&th.value,u=t.catchall,d;e._zod.parse=(m,v)=>{d??(d=i.value);let y=m.value;return a(y)?s&&l&&v?.async===!1&&v.jitless!==!0?(o||(o=r(t.shape)),m=o(m,v),u?tz([],y,m,v,d,e):m):n(m,v):(m.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),m)}});function L0(e,t,n,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let r=e.filter(o=>!Ar(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>mt(a,i,Ae())))}),t)}var La=x("$ZodUnion",(e,t)=>{he.init(e,t),we(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),we(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),we(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),we(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${i.map(r=>Pa(r.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,r)=>{if(n)return n(i,r);let o=!1,a=[];for(let s of t.options){let c=s._zod.run({value:i.value,issues:[]},r);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(s=>L0(s,i,e,r)):L0(a,i,e,r)}});function D0(e,t,n,i){let r=e.filter(o=>o.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>mt(a,i,Ae())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var Jg=x("$ZodXor",(e,t)=>{La.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,r)=>{if(n)return n(i,r);let o=!1,a=[];for(let s of t.options){let c=s._zod.run({value:i.value,issues:[]},r);c instanceof Promise?(a.push(c),o=!0):a.push(c)}return o?Promise.all(a).then(s=>D0(s,i,e,r)):D0(a,i,e,r)}}),Bg=x("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,La.init(e,t);let n=e._zod.parse;we(e._zod,"propValues",()=>{let r={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,c]of Object.entries(a)){r[s]||(r[s]=new Set);for(let l of c)r[s].add(l)}}return r});let i=vi(()=>{let r=t.options,o=new Map;for(let a of r){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a)}}return o});e._zod.parse=(r,o)=>{let a=r.value;if(!In(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(r,o):t.unionFallback||o.direction==="backward"?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),Kg=x("$ZodIntersection",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>{let r=n.value,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,l])=>U0(n,c,l)):U0(n,o,a)}});function ag(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(Cr(e)&&Cr(t)){let n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(let o of i){let a=ag(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],o=t[i],a=ag(r,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function U0(e,t,n){let i=new Map,r;for(let s of t.issues)if(s.code==="unrecognized_keys"){r??(r=s);for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).l=!0}else e.issues.push(s);for(let s of n.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).r=!0;else e.issues.push(s);let o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&r&&e.issues.push({...r,keys:o}),Ar(e))return e;let a=ag(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Ol=x("$ZodTuple",(e,t)=>{he.init(e,t);let n=t.items;e._zod.parse=(i,r)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],s=V0(n,"optin"),c=V0(n,"optout");if(!t.rest){if(o.length<s)return i.issues.push({code:"too_small",minimum:s,inclusive:!0,input:o,inst:e,origin:"array"}),i;o.length>n.length&&i.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:o,inst:e,origin:"array"})}let l=new Array(n.length);for(let u=0;u<n.length;u++){let d=n[u]._zod.run({value:o[u],issues:[]},r);d instanceof Promise?a.push(d.then(m=>{l[u]=m})):l[u]=d}if(t.rest){let u=n.length-1,d=o.slice(n.length);for(let m of d){u++;let v=t.rest._zod.run({value:m,issues:[]},r);v instanceof Promise?a.push(v.then(y=>F0(y,i,u))):F0(v,i,u)}}return a.length?Promise.all(a).then(()=>Z0(l,i,n,o,c)):Z0(l,i,n,o,c)}});function V0(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function F0(e,t,n){e.issues.length&&t.issues.push(..._t(n,e.issues)),t.value[n]=e.value}function Z0(e,t,n,i,r){for(let o=0;o<n.length;o++){let a=e[o],s=o<i.length;if(a.issues.length){if(!s&&o>=r){t.value.length=o;break}t.issues.push(..._t(o,a.issues))}t.value[o]=a.value}for(let o=t.value.length-1;o>=i.length&&(n[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}var Hg=x("$ZodRecord",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Cr(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let s=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){s.add(typeof l=="number"?l.toString():l);let u=t.keyType._zod.run({value:l,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(v=>mt(v,i,Ae())),input:l,path:[l],inst:e});continue}let d=u.value,m=t.valueType._zod.run({value:r[l],issues:[]},i);m instanceof Promise?o.push(m.then(v=>{v.issues.length&&n.issues.push(..._t(l,v.issues)),n.value[d]=v.value})):(m.issues.length&&n.issues.push(..._t(l,m.issues)),n.value[d]=m.value)}let c;for(let l in r)s.has(l)||(c=c??[],c.push(l));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:c})}else{n.value={};for(let s of Reflect.ownKeys(r)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&$l.test(s)&&c.issues.length){let d=t.keyType._zod.run({value:Number(s),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){t.mode==="loose"?n.value[s]=r[s]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>mt(d,i,Ae())),input:s,path:[s],inst:e});continue}let u=t.valueType._zod.run({value:r[s],issues:[]},i);u instanceof Promise?o.push(u.then(d=>{d.issues.length&&n.issues.push(..._t(s,d.issues)),n.value[c.value]=d.value})):(u.issues.length&&n.issues.push(..._t(s,u.issues)),n.value[c.value]=u.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Gg=x("$ZodMap",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let o=[];n.value=new Map;for(let[a,s]of r){let c=t.keyType._zod.run({value:a,issues:[]},i),l=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||l instanceof Promise?o.push(Promise.all([c,l]).then(([u,d])=>{J0(u,d,n,a,r,e,i)})):J0(c,l,n,a,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function J0(e,t,n,i,r,o,a){e.issues.length&&(Ea.has(typeof i)?n.issues.push(..._t(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(s=>mt(s,a,Ae()))})),t.issues.length&&(Ea.has(typeof i)?n.issues.push(..._t(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(s=>mt(s,a,Ae()))})),n.value.set(e.value,t.value)}var Wg=x("$ZodSet",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of r){let s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>B0(c,n))):B0(s,n)}return o.length?Promise.all(o).then(()=>n):n}});function B0(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Yg=x("$ZodEnum",(e,t)=>{he.init(e,t);let n=Ia(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>Ea.has(typeof r)).map(r=>typeof r=="string"?xt(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),Qg=x("$ZodLiteral",(e,t)=>{if(he.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?xt(i):i?xt(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,r)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),Xg=x("$ZodFile",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),ev=x("$ZodTransform",(e,t)=>{he.init(e,t),e._zod.optin="optional",e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new xr(e.constructor.name);let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n.fallback=!0,n));if(r instanceof Promise)throw new Lt;return n.value=r,n.fallback=!0,n}});function K0(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var xl=x("$ZodOptional",(e,t)=>{he.init(e,t),e._zod.optin="optional",e._zod.optout="optional",we(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),we(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Pa(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let r=n.value,o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(a=>K0(a,r)):K0(o,r)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),tv=x("$ZodExactOptional",(e,t)=>{xl.init(e,t),we(e._zod,"values",()=>t.innerType._zod.values),we(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),rv=x("$ZodNullable",(e,t)=>{he.init(e,t),we(e._zod,"optin",()=>t.innerType._zod.optin),we(e._zod,"optout",()=>t.innerType._zod.optout),we(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Pa(n.source)}|null)$`):void 0}),we(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),nv=x("$ZodDefault",(e,t)=>{he.init(e,t),e._zod.optin="optional",we(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>H0(o,t)):H0(r,t)}});function H0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var iv=x("$ZodPrefault",(e,t)=>{he.init(e,t),e._zod.optin="optional",we(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),ov=x("$ZodNonOptional",(e,t)=>{he.init(e,t),we(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>G0(o,e)):G0(r,e)}});function G0(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 av=x("$ZodSuccess",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new xr("ZodSuccess");let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),sv=x("$ZodCatch",(e,t)=>{he.init(e,t),e._zod.optin="optional",we(e._zod,"optout",()=>t.innerType._zod.optout),we(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>mt(a,i,Ae()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>mt(o,i,Ae()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),cv=x("$ZodNaN",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Nl=x("$ZodPipe",(e,t)=>{he.init(e,t),we(e._zod,"values",()=>t.in._zod.values),we(e._zod,"optin",()=>t.in._zod.optin),we(e._zod,"optout",()=>t.out._zod.optout),we(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>kl(a,t.in,i)):kl(o,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>kl(o,t.out,i)):kl(r,t.out,i)}});function kl(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Da=x("$ZodCodec",(e,t)=>{he.init(e,t),we(e._zod,"values",()=>t.in._zod.values),we(e._zod,"optin",()=>t.in._zod.optin),we(e._zod,"optout",()=>t.out._zod.optout),we(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(n,i);return o instanceof Promise?o.then(a=>Rl(a,t,i)):Rl(o,t,i)}else{let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Rl(a,t,i)):Rl(o,t,i)}}});function Rl(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>Il(e,o,t.out,n)):Il(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>Il(e,o,t.in,n)):Il(e,r,t.in,n)}}function Il(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}var lv=x("$ZodPreprocess",(e,t)=>{Nl.init(e,t)}),uv=x("$ZodReadonly",(e,t)=>{he.init(e,t),we(e._zod,"propValues",()=>t.innerType._zod.propValues),we(e._zod,"values",()=>t.innerType._zod.values),we(e._zod,"optin",()=>t.innerType?._zod?.optin),we(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(W0):W0(r)}});function W0(e){return e.value=Object.freeze(e.value),e}var dv=x("$ZodTemplateLiteral",(e,t)=>{he.init(e,t);let n=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,a))}else if(i===null||nh.has(typeof i))n.push(xt(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),mv=x("$ZodFunction",(e,t)=>(he.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let r=e._def.input?dl(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?dl(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let r=e._def.input?await ml(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await ml(e._def.output,o):o}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new Ol({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),pv=x("$ZodPromise",(e,t)=>{he.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),fv=x("$ZodLazy",(e,t)=>{he.init(e,t),we(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),we(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),we(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),we(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),we(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),hv=x("$ZodCustom",(e,t)=>{Oe.init(e,t),he.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>Y0(o,n,i,e));Y0(r,n,i,e)}});function Y0(e,t,n,i){if(!e){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(yi(r))}}var Va={};ir(Va,{ar:()=>nz,az:()=>iz,be:()=>az,bg:()=>sz,ca:()=>cz,cs:()=>lz,da:()=>uz,de:()=>dz,el:()=>mz,en:()=>jl,eo:()=>pz,es:()=>fz,fa:()=>hz,fi:()=>gz,fr:()=>vz,frCA:()=>yz,he:()=>_z,hr:()=>Sz,hu:()=>bz,hy:()=>wz,id:()=>zz,is:()=>kz,it:()=>Rz,ja:()=>Iz,ka:()=>Pz,kh:()=>Ez,km:()=>Cl,ko:()=>Tz,lt:()=>xz,mk:()=>Nz,ms:()=>jz,nl:()=>Cz,no:()=>Az,ota:()=>qz,pl:()=>Lz,ps:()=>Mz,pt:()=>Dz,ro:()=>Uz,ru:()=>Fz,sl:()=>Zz,sv:()=>Jz,ta:()=>Bz,th:()=>Kz,tr:()=>Hz,ua:()=>Gz,uk:()=>Al,ur:()=>Wz,uz:()=>Yz,vi:()=>Qz,yo:()=>tk,zhCN:()=>Xz,zhTW:()=>ek});var vj=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${K(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${r.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${n[o.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${q(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function nz(){return{localeError:vj()}}var yj=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${K(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${q(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function iz(){return{localeError:yj()}}function oz(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var _j=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${K(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=oz(s,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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=oz(s,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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${q(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function az(){return{localeError:_j()}}var Sj=()=>{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(r){return e[r]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${K(r.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 ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.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 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${q(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function sz(){return{localeError:Sj()}}var bj=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${K(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${q(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${q(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function cz(){return{localeError:bj()}}var $j=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${K(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${q(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function lz(){return{localeError:$j()}}var wj=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${K(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${q(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function uz(){return{localeError:wj()}}var zj=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${K(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${q(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function dz(){return{localeError:zj()}}var kj=()=>{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(r){return e[r]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return typeof r.expected=="string"&&/^[A-Z]/.test(r.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 ${r.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return r.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 ${K(r.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 ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${r.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 ${r.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${r.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${o.suffix}"`:o.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${o.includes}"`:o.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${r.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${r.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${q(r.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${r.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 ${r.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function mz(){return{localeError:kj()}}var Rj=()=>{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(r){return e[r]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${K(r.values[0])}`:`Invalid option: expected one of ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${o}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${o}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${q(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`Invalid discriminator value. Expected ${r.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function jl(){return{localeError:Rj()}}var Ij=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${K(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${o}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${n[o.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${q(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function pz(){return{localeError:Ij()}}var Pj=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${K(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${q(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}};function fz(){return{localeError:Pj()}}var Ej=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${K(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${q(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[o.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${q(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function hz(){return{localeError:Ej()}}var Tj=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${K(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${q(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function gz(){return{localeError:Tj()}}var Oj=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${K(r.values[0])} attendu`:`Option invalide : une valeur parmi ${q(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${i[r.origin]??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[r.origin]??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${i[r.origin]??"valeur"} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${i[r.origin]??"valeur"} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${q(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function vz(){return{localeError:Oj()}}var xj=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${K(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${q(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function yz(){return{localeError:xj()}}var Nj=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=l=>l?e[l]:void 0,i=l=>{let u=n(l);return u?u.label:l??e.unknown.label},r=l=>`\u05D4${i(l)}`,o=l=>(n(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=l=>l?t[l]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let u=l.expected,d=c[u??""]??i(u),m=H(l.input),v=c[m]??e[m]?.label??m;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${v}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${v}`}case"invalid_value":{if(l.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 ${K(l.values[0])}`;let u=l.values.map(v=>K(v));if(l.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 ${u[0]} \u05D0\u05D5 ${u[1]}`;let d=u[u.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 ${u.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let u=a(l.origin),d=r(l.origin??"value");if(l.origin==="string")return`${u?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${u?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let y=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(l.origin==="array"||l.origin==="set"){let y=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",f=l.inclusive?`${l.maximum} ${u?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${u?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${f}`.trim()}let m=l.inclusive?"<=":"<",v=o(l.origin??"value");return u?.unit?`${u.longLabel} \u05DE\u05D3\u05D9: ${d} ${v} ${m}${l.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${v} ${m}${l.maximum.toString()}`}case"too_small":{let u=a(l.origin),d=r(l.origin??"value");if(l.origin==="string")return`${u?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${u?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let y=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(l.origin==="array"||l.origin==="set"){let y=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let h=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`}let f=l.inclusive?`${l.minimum} ${u?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${u?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${f}`.trim()}let m=l.inclusive?">=":">",v=o(l.origin??"value");return u?.unit?`${u.shortLabel} \u05DE\u05D3\u05D9: ${d} ${v} ${m}${l.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${v} ${m}${l.minimum.toString()}`}case"invalid_format":{let u=l;if(u.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${u.prefix}"`;if(u.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${u.suffix}"`;if(u.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${u.includes}"`;if(u.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 ${u.pattern}`;let d=s[u.format],m=d?.label??u.format,y=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${y}`}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 ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${q(l.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${r(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function _z(){return{localeError:Nj()}}var jj=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(r){return e[r]??null}let n={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${r.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${s}`}case"invalid_value":return r.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${K(r.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${o}${r.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${o}${r.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${n[o.format]??r.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${r.divisor}`;case"unrecognized_keys":return`Neprepoznat${r.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${q(r.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[r.origin]??r.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[r.origin]??r.origin}`;default:return"Neispravan unos"}}};function Sz(){return{localeError:jj()}}var Cj=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${K(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${q(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function bz(){return{localeError:Cj()}}function $z(e,t,n){return Math.abs(e)===1?t:n}function zi(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var Aj=()=>{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(r){return e[r]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return r.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 ${K(r.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 ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=$z(s,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 ${zi(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${zi(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=$z(s,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 ${zi(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${zi(r.origin)} \u056C\u056B\u0576\u056B ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[o.format]??r.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 ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${q(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${zi(r.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 ${zi(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function wz(){return{localeError:Aj()}}var qj=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${K(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${q(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function zz(){return{localeError:qj()}}var Mj=()=>{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(r){return e[r]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${K(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${o}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${n[o.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${q(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}};function kz(){return{localeError:Mj()}}var Lj=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${K(r.values[0])}`:`Opzione non valida: atteso uno tra ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${n[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${q(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function Rz(){return{localeError:Lj()}}var Dj=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${K(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${q(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${q(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Iz(){return{localeError:Dj()}}var Uj=()=>{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(r){return e[r]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return r.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 ${K(r.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 ${q(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.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 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${r.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 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.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 ${r.origin} ${a.verb} ${o}${r.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 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[o.format]??r.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 ${r.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${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${q(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.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 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Pz(){return{localeError:Uj()}}var Vj=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${K(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${q(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Cl(){return{localeError:Vj()}}function Ez(){return Cl()}var Fj=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${K(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${q(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${a}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${q(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Tz(){return{localeError:Fj()}}var Ua=e=>e.charAt(0).toUpperCase()+e.slice(1);function Oz(e){let t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}var Zj=()=>{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(r,o,a,s){let c=e[r]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${K(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${q(r.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[r.origin]??r.origin,a=t(r.origin,Oz(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${Ua(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Ua(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[r.origin]??r.origin,a=t(r.origin,Oz(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${Ua(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Ua(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${n[o.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${q(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[r.origin]??r.origin;return`${Ua(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function xz(){return{localeError:Zj()}}var Jj=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${K(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${q(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Nz(){return{localeError:Jj()}}var Bj=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${K(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${q(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function jz(){return{localeError:Bj()}}var Kj=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${K(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${q(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function Cz(){return{localeError:Kj()}}var Hj=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${K(r.values[0])}`:`Ugyldig valg: forventet en av ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${q(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function Az(){return{localeError:Hj()}}var Gj=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${K(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${q(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function qz(){return{localeError:Gj()}}var Wj=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(r){return e[r]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${K(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${q(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[o.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${q(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Mz(){return{localeError:Wj()}}var Yj=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${K(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${q(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Lz(){return{localeError:Yj()}}var Qj=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${K(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${n[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${q(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function Dz(){return{localeError:Qj()}}var Xj=()=>{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(r){return e[r]??null}let n={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},i={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${s}`}case"invalid_value":return r.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${K(r.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Prea mare: a\u0219teptat ca ${r.origin??"valoarea"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${r.origin??"valoarea"} s\u0103 fie ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Prea mic: a\u0219teptat ca ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${r.origin} s\u0103 fie ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${n[o.format]??r.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${r.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${q(r.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${r.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${r.origin}`;default:return"Intrare invalid\u0103"}}};function Uz(){return{localeError:Xj()}}function Vz(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var eC=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${K(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Vz(s,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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=Vz(s,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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${q(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Fz(){return{localeError:eC()}}var tC=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${K(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${q(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function Zz(){return{localeError:tC()}}var rC=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${K(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${q(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Jz(){return{localeError:rC()}}var nC=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${K(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${q(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.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 ${r.origin} ${o}${r.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 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${q(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Bz(){return{localeError:nC()}}var iC=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${K(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${q(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Kz(){return{localeError:iC()}}var oC=()=>{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(r){return e[r]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${K(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[o.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${q(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Hz(){return{localeError:oC()}}var aC=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${K(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.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 ${r.origin} ${a.verb} ${o}${r.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 ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${q(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Al(){return{localeError:aC()}}function Gz(){return Al()}var sC=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${K(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${q(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.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: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${q(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Wz(){return{localeError:sC()}}var cC=()=>{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(r){return e[r]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${K(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[o.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${q(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Yz(){return{localeError:cC()}}var lC=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${K(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${n[o.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${q(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Qz(){return{localeError:lC()}}var uC=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${K(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${n[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${q(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Xz(){return{localeError:uC()}}var dC=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${K(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${q(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function ek(){return{localeError:dC()}}var mC=()=>{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(r){return e[r]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=H(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${K(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${q(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${o}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.maximum}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${o}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.minimum}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${q(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.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 ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function tk(){return{localeError:mC()}}var rk,gv=Symbol("ZodOutput"),vv=Symbol("ZodInput"),ql=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};delete i.id;let r={...i,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Ml(){return new ql}(rk=globalThis).__zod_globalRegistry??(rk.__zod_globalRegistry=Ml());var tt=globalThis.__zod_globalRegistry;function yv(e,t){return new e({type:"string",...W(t)})}function _v(e,t){return new e({type:"string",coerce:!0,...W(t)})}function Ll(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...W(t)})}function Fa(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...W(t)})}function Dl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...W(t)})}function Ul(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...W(t)})}function Vl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...W(t)})}function Fl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...W(t)})}function Za(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...W(t)})}function Zl(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...W(t)})}function Jl(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...W(t)})}function Bl(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...W(t)})}function Kl(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...W(t)})}function Hl(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...W(t)})}function Gl(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...W(t)})}function Wl(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...W(t)})}function Yl(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...W(t)})}function Ql(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...W(t)})}function Sv(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...W(t)})}function Xl(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...W(t)})}function eu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...W(t)})}function tu(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...W(t)})}function ru(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...W(t)})}function nu(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...W(t)})}function iu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...W(t)})}var bv={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function $v(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...W(t)})}function wv(e,t){return new e({type:"string",format:"date",check:"string_format",...W(t)})}function zv(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...W(t)})}function kv(e,t){return new e({type:"string",format:"duration",check:"string_format",...W(t)})}function Rv(e,t){return new e({type:"number",checks:[],...W(t)})}function Iv(e,t){return new e({type:"number",coerce:!0,checks:[],...W(t)})}function Pv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...W(t)})}function Ev(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...W(t)})}function Tv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...W(t)})}function Ov(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...W(t)})}function xv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...W(t)})}function Nv(e,t){return new e({type:"boolean",...W(t)})}function jv(e,t){return new e({type:"boolean",coerce:!0,...W(t)})}function Cv(e,t){return new e({type:"bigint",...W(t)})}function Av(e,t){return new e({type:"bigint",coerce:!0,...W(t)})}function qv(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...W(t)})}function Mv(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...W(t)})}function Lv(e,t){return new e({type:"symbol",...W(t)})}function Dv(e,t){return new e({type:"undefined",...W(t)})}function Uv(e,t){return new e({type:"null",...W(t)})}function Vv(e){return new e({type:"any"})}function Fv(e){return new e({type:"unknown"})}function Zv(e,t){return new e({type:"never",...W(t)})}function Jv(e,t){return new e({type:"void",...W(t)})}function Bv(e,t){return new e({type:"date",...W(t)})}function Kv(e,t){return new e({type:"date",coerce:!0,...W(t)})}function Hv(e,t){return new e({type:"nan",...W(t)})}function Wt(e,t){return new wl({check:"less_than",...W(t),value:e,inclusive:!1})}function It(e,t){return new wl({check:"less_than",...W(t),value:e,inclusive:!0})}function Yt(e,t){return new zl({check:"greater_than",...W(t),value:e,inclusive:!1})}function pt(e,t){return new zl({check:"greater_than",...W(t),value:e,inclusive:!0})}function ou(e){return Yt(0,e)}function au(e){return Wt(0,e)}function su(e){return It(0,e)}function cu(e){return pt(0,e)}function qr(e,t){return new Uh({check:"multiple_of",...W(t),value:e})}function Mr(e,t){return new Zh({check:"max_size",...W(t),maximum:e})}function Qt(e,t){return new Jh({check:"min_size",...W(t),minimum:e})}function Tn(e,t){return new Bh({check:"size_equals",...W(t),size:e})}function On(e,t){return new Kh({check:"max_length",...W(t),maximum:e})}function cr(e,t){return new Hh({check:"min_length",...W(t),minimum:e})}function xn(e,t){return new Gh({check:"length_equals",...W(t),length:e})}function ki(e,t){return new Wh({check:"string_format",format:"regex",...W(t),pattern:e})}function Ri(e){return new Yh({check:"string_format",format:"lowercase",...W(e)})}function Ii(e){return new Qh({check:"string_format",format:"uppercase",...W(e)})}function Pi(e,t){return new Xh({check:"string_format",format:"includes",...W(t),includes:e})}function Ei(e,t){return new eg({check:"string_format",format:"starts_with",...W(t),prefix:e})}function Ti(e,t){return new tg({check:"string_format",format:"ends_with",...W(t),suffix:e})}function lu(e,t,n){return new rg({check:"property",property:e,schema:t,...W(n)})}function Oi(e,t){return new ng({check:"mime_type",mime:e,...W(t)})}function Dt(e){return new ig({check:"overwrite",tx:e})}function xi(e){return Dt(t=>t.normalize(e))}function Ni(){return Dt(e=>e.trim())}function ji(){return Dt(e=>e.toLowerCase())}function Ci(){return Dt(e=>e.toUpperCase())}function Ai(){return Dt(e=>eh(e))}function Gv(e,t,n){return new e({type:"array",element:t,...W(n)})}function fC(e,t,n){return new e({type:"union",options:t,...W(n)})}function hC(e,t,n){return new e({type:"union",options:t,inclusive:!1,...W(n)})}function gC(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...W(i)})}function vC(e,t,n){return new e({type:"intersection",left:t,right:n})}function yC(e,t,n,i){let r=n instanceof he,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...W(o)})}function _C(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...W(i)})}function SC(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...W(i)})}function bC(e,t,n){return new e({type:"set",valueType:t,...W(n)})}function $C(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...W(n)})}function wC(e,t,n){return new e({type:"enum",entries:t,...W(n)})}function zC(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...W(n)})}function Wv(e,t){return new e({type:"file",...W(t)})}function kC(e,t){return new e({type:"transform",transform:t})}function RC(e,t){return new e({type:"optional",innerType:t})}function IC(e,t){return new e({type:"nullable",innerType:t})}function PC(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():rh(n)}})}function EC(e,t,n){return new e({type:"nonoptional",innerType:t,...W(n)})}function TC(e,t){return new e({type:"success",innerType:t})}function OC(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function xC(e,t,n){return new e({type:"pipe",in:t,out:n})}function NC(e,t){return new e({type:"readonly",innerType:t})}function jC(e,t,n){return new e({type:"template_literal",parts:t,...W(n)})}function CC(e,t){return new e({type:"lazy",getter:t})}function AC(e,t){return new e({type:"promise",innerType:t})}function Yv(e,t,n){let i=W(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Qv(e,t,n){return new e({type:"custom",check:"custom",fn:t,...W(n)})}function Xv(e,t){let n=nk(i=>(i.addIssue=r=>{if(typeof r=="string")i.issues.push(yi(r,i.value,n._zod.def));else{let o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),i.issues.push(yi(o))}},e(i.value,i)),t);return n}function nk(e,t){let n=new Oe({check:"custom",...W(t)});return n._zod.check=e,n}function ey(e){let t=new Oe({check:"describe"});return t._zod.onattach=[n=>{let i=tt.get(n)??{};tt.add(n,{...i,description:e})}],t._zod.check=()=>{},t}function ty(e){let t=new Oe({check:"meta"});return t._zod.onattach=[n=>{let i=tt.get(n)??{};tt.add(n,{...i,...e})}],t._zod.check=()=>{},t}function ry(e,t){let n=W(t),i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(v=>typeof v=="string"?v.toLowerCase():v),r=r.map(v=>typeof v=="string"?v.toLowerCase():v));let o=new Set(i),a=new Set(r),s=e.Codec??Da,c=e.Boolean??Ma,l=e.String??En,u=new l({type:"string",error:n.error}),d=new c({type:"boolean",error:n.error}),m=new s({type:"pipe",in:u,out:d,transform:((v,y)=>{let f=v;return n.case!=="sensitive"&&(f=f.toLowerCase()),o.has(f)?!0:a.has(f)?!1:(y.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:y.value,inst:m,continue:!1}),{})}),reverseTransform:((v,y)=>v===!0?i[0]||"true":r[0]||"false"),error:n.error});return m}function qi(e,t,n,i={}){let r=W(i),o={...W(i),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}function Lr(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??tt,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 Pe(e,t,n={path:[],schemaPath:[]}){var i;let r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let u={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,u);else{let m=a.schema,v=t.processors[r.type];if(!v)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);v(e,t,m,u)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),Pe(d,t,u),t.seen.get(d).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&ft(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Dr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=i.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}let r=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(a[0])?.id,m=e.external.uri??(y=>y);if(d)return{ref:m(d)};let v=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=v,{defId:v,ref:`${m("__shared")}#/${s}/${v}`}}if(a[1]===n)return{ref:"#"};let l=`#/${s}/`,u=a[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:l+u}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:l}=r(a);s.def={...s.schema},l&&(s.defId=l);let u=s.schema;for(let d in u)delete u[d];u.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
204
|
+
|
|
205
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function Ur(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let c=e.seen.get(s);if(c.ref===null)return;let l=c.def??c.schema,u={...l},d=c.ref;if(c.ref=null,d){i(d);let v=e.seen.get(d),y=v.schema;if(y.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(y)):Object.assign(l,y),Object.assign(l,u),s._zod.parent===d)for(let h in l)h==="$ref"||h==="allOf"||h in u||delete l[h];if(y.$ref&&v.def)for(let h in l)h==="$ref"||h==="allOf"||h in v.def&&JSON.stringify(l[h])===JSON.stringify(v.def[h])&&delete l[h]}let m=s._zod.parent;if(m&&m!==d){i(m);let v=e.seen.get(m);if(v?.schema.$ref&&(l.$ref=v.schema.$ref,v.def))for(let y in l)y==="$ref"||y==="allOf"||y in v.def&&JSON.stringify(l[y])===JSON.stringify(v.def[y])&&delete l[y]}e.override({zodSchema:s,jsonSchema:l,path:c.path??[]})};for(let s of[...e.seen.entries()].reverse())i(s[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Object.assign(r,n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&r.id===o&&delete r.id;let a=e.external?.defs??{};for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Mi(t,"input",e.processors),output:Mi(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function ft(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return ft(i.element,n);if(i.type==="set")return ft(i.valueType,n);if(i.type==="lazy")return ft(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return ft(i.innerType,n);if(i.type==="intersection")return ft(i.left,n)||ft(i.right,n);if(i.type==="record"||i.type==="map")return ft(i.keyType,n)||ft(i.valueType,n);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ft(i.in,n)||ft(i.out,n);if(i.type==="object"){for(let r in i.shape)if(ft(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(ft(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(ft(r,n))return!0;return!!(i.rest&&ft(i.rest,n))}return!1}var ny=(e,t={})=>n=>{let i=Lr({...n,processors:t});return Pe(e,i),Dr(i,e),Ur(i,e)},Mi=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=Lr({...r??{},target:o,io:t,processors:n});return Pe(e,a),Dr(a,e),Ur(a,e)};var qC={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},iy=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=qC[s]??s,r.format===""&&delete r.format,s==="time"&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){let u=[...c];u.length===1?r.pattern=u[0].source:u.length>1&&(r.allOf=[...u.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},oy=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number";let d=typeof u=="number"&&u>=(o??Number.NEGATIVE_INFINITY),m=typeof l=="number"&&l<=(a??Number.POSITIVE_INFINITY),v=t.target==="draft-04"||t.target==="openapi-3.0";d?v?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:typeof o=="number"&&(r.minimum=o),m?v?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l:typeof a=="number"&&(r.maximum=a),typeof c=="number"&&(r.multipleOf=c)},ay=(e,t,n,i)=>{n.type="boolean"},sy=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},cy=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ly=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},uy=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},dy=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},my=(e,t,n,i)=>{n.not={}},py=(e,t,n,i)=>{},fy=(e,t,n,i)=>{},hy=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},gy=(e,t,n,i)=>{let r=e._zod.def,o=Ia(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},vy=(e,t,n,i)=>{let r=e._zod.def,o=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},yy=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},_y=(e,t,n,i)=>{let r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},Sy=(e,t,n,i)=>{let r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),c?c.length===1?(o.contentMediaType=c[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(r,o)},by=(e,t,n,i)=>{n.type="boolean"},$y=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},wy=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},zy=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},ky=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Ry=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Iy=(e,t,n,i)=>{let r=n,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=Pe(o.element,t,{...i,path:[...i.path,"items"]})},Py=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object",r.properties={};let a=o.shape;for(let l in a)r.properties[l]=Pe(a[l],t,{...i,path:[...i.path,"properties",l]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(l=>{let u=o.shape[l]._zod;return t.io==="input"?u.optin===void 0:u.optout===void 0}));c.size>0&&(r.required=Array.from(c)),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=Pe(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},du=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===!1,a=r.options.map((s,c)=>Pe(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=a:n.anyOf=a},Ey=(e,t,n,i)=>{let r=e._zod.def,o=Pe(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=Pe(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=c},Ty=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((m,v)=>Pe(m,t,{...i,path:[...i.path,a,v]})),l=o.rest?Pe(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=c,l&&(r.items=l)):t.target==="openapi-3.0"?(r.items={anyOf:c},l&&r.items.anyOf.push(l),r.minItems=c.length,l||(r.maxItems=c.length)):(r.items=c,l&&(r.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u=="number"&&(r.minItems=u),typeof d=="number"&&(r.maxItems=d)},Oy=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let u=Pe(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let d of c)r.patternProperties[d.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=Pe(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=Pe(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let l=a._zod.values;if(l){let u=[...l].filter(d=>typeof d=="string"||typeof d=="number");u.length>0&&(r.required=u)}},xy=(e,t,n,i)=>{let r=e._zod.def,o=Pe(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},Ny=(e,t,n,i)=>{let r=e._zod.def;Pe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},jy=(e,t,n,i)=>{let r=e._zod.def;Pe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},Cy=(e,t,n,i)=>{let r=e._zod.def;Pe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},Ay=(e,t,n,i)=>{let r=e._zod.def;Pe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},qy=(e,t,n,i)=>{let r=e._zod.def,o=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?r.out:r.in:r.out;Pe(a,t,i);let s=t.seen.get(e);s.ref=a},My=(e,t,n,i)=>{let r=e._zod.def;Pe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},Ly=(e,t,n,i)=>{let r=e._zod.def;Pe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},mu=(e,t,n,i)=>{let r=e._zod.def;Pe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Dy=(e,t,n,i)=>{let r=e._zod.innerType;Pe(r,t,i);let o=t.seen.get(e);o.ref=r},uu={string:iy,number:oy,boolean:ay,bigint:sy,symbol:cy,null:ly,undefined:uy,void:dy,never:my,any:py,unknown:fy,date:hy,enum:gy,literal:vy,nan:yy,template_literal:_y,file:Sy,success:by,custom:$y,function:wy,transform:zy,map:ky,set:Ry,array:Iy,object:Py,union:du,intersection:Ey,tuple:Ty,record:Oy,nullable:xy,nonoptional:Ny,default:jy,prefault:Cy,catch:Ay,pipe:qy,readonly:My,promise:Ly,optional:mu,lazy:Dy};function Nn(e,t){if("_idmap"in e){let i=e,r=Lr({...t,processors:uu}),o={};for(let c of i._idmap.entries()){let[l,u]=c;Pe(u,r)}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let c of i._idmap.entries()){let[l,u]=c;Dr(r,u),a[l]=Ur(r,u)}if(Object.keys(o).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}let n=Lr({...t,processors:uu});return Pe(e,n),Dr(n,e),Ur(n,e)}var pu=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Lr({processors:uu,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return Pe(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),Dr(this.ctx,t);let i=Ur(this.ctx,t),{"~standard":r,...o}=i;return o}};var ik={};var Ja={};ir(Ja,{ZodAny:()=>a_,ZodArray:()=>u_,ZodBase64:()=>Cu,ZodBase64URL:()=>Au,ZodBigInt:()=>Bi,ZodBigIntFormat:()=>Lu,ZodBoolean:()=>Ji,ZodCIDRv4:()=>Nu,ZodCIDRv6:()=>ju,ZodCUID:()=>Ru,ZodCUID2:()=>Iu,ZodCatch:()=>T_,ZodCodec:()=>ts,ZodCustom:()=>rs,ZodCustomStringFormat:()=>Fi,ZodDate:()=>Ya,ZodDefault:()=>z_,ZodDiscriminatedUnion:()=>m_,ZodE164:()=>qu,ZodEmail:()=>$u,ZodEmoji:()=>zu,ZodEnum:()=>Di,ZodExactOptional:()=>b_,ZodFile:()=>__,ZodFunction:()=>L_,ZodGUID:()=>Ka,ZodIPv4:()=>Ou,ZodIPv6:()=>xu,ZodIntersection:()=>p_,ZodJWT:()=>Mu,ZodKSUID:()=>Tu,ZodLazy:()=>q_,ZodLiteral:()=>y_,ZodMAC:()=>r_,ZodMap:()=>g_,ZodNaN:()=>x_,ZodNanoID:()=>ku,ZodNever:()=>c_,ZodNonOptional:()=>Zu,ZodNull:()=>o_,ZodNullable:()=>w_,ZodNumber:()=>Zi,ZodNumberFormat:()=>jn,ZodObject:()=>Qa,ZodOptional:()=>Fu,ZodPipe:()=>es,ZodPrefault:()=>R_,ZodPreprocess:()=>N_,ZodPromise:()=>M_,ZodReadonly:()=>j_,ZodRecord:()=>Li,ZodSet:()=>v_,ZodString:()=>Ui,ZodStringFormat:()=>Te,ZodSuccess:()=>E_,ZodSymbol:()=>n_,ZodTemplateLiteral:()=>A_,ZodTransform:()=>S_,ZodTuple:()=>f_,ZodType:()=>Se,ZodULID:()=>Pu,ZodURL:()=>Wa,ZodUUID:()=>Xt,ZodUndefined:()=>i_,ZodUnion:()=>Xa,ZodUnknown:()=>s_,ZodVoid:()=>l_,ZodXID:()=>Eu,ZodXor:()=>d_,_ZodString:()=>bu,_default:()=>k_,_function:()=>aR,any:()=>Du,array:()=>j,base64:()=>kk,base64url:()=>Rk,bigint:()=>qk,boolean:()=>te,catch:()=>O_,check:()=>sR,cidrv4:()=>wk,cidrv6:()=>zk,codec:()=>rR,cuid:()=>hk,cuid2:()=>gk,custom:()=>cR,date:()=>Fk,describe:()=>lR,discriminatedUnion:()=>Vr,e164:()=>Ik,email:()=>wu,emoji:()=>pk,enum:()=>fe,exactOptional:()=>$_,file:()=>Qk,float32:()=>Nk,float64:()=>jk,function:()=>aR,guid:()=>sk,hash:()=>xk,hex:()=>Ok,hostname:()=>Tk,httpUrl:()=>mk,instanceof:()=>dR,int:()=>_u,int32:()=>Ck,int64:()=>Mk,intersection:()=>Ut,invertCodec:()=>nR,ipv4:()=>Sk,ipv6:()=>$k,json:()=>pR,jwt:()=>Pk,keyof:()=>Zk,ksuid:()=>_k,lazy:()=>Fr,literal:()=>C,looseObject:()=>le,looseRecord:()=>Hk,mac:()=>bk,map:()=>Gk,meta:()=>uR,nan:()=>tR,nanoid:()=>fk,nativeEnum:()=>Yk,never:()=>Uu,nonoptional:()=>P_,null:()=>er,nullable:()=>Ha,nullish:()=>Xk,number:()=>J,object:()=>I,optional:()=>se,partialRecord:()=>Kk,pipe:()=>Su,prefault:()=>I_,preprocess:()=>ur,promise:()=>oR,readonly:()=>C_,record:()=>ee,refine:()=>D_,set:()=>Wk,strictObject:()=>Jk,string:()=>p,stringFormat:()=>Ek,stringbool:()=>mR,success:()=>eR,superRefine:()=>U_,symbol:()=>Dk,templateLiteral:()=>iR,transform:()=>Vu,tuple:()=>h_,uint32:()=>Ak,uint64:()=>Lk,ulid:()=>vk,undefined:()=>Uk,union:()=>ie,unknown:()=>ae,url:()=>Vi,uuid:()=>ck,uuidv4:()=>lk,uuidv6:()=>uk,uuidv7:()=>dk,void:()=>Vk,xid:()=>yk,xor:()=>Bk});var fu={};ir(fu,{endsWith:()=>Ti,gt:()=>Yt,gte:()=>pt,includes:()=>Pi,length:()=>xn,lowercase:()=>Ri,lt:()=>Wt,lte:()=>It,maxLength:()=>On,maxSize:()=>Mr,mime:()=>Oi,minLength:()=>cr,minSize:()=>Qt,multipleOf:()=>qr,negative:()=>au,nonnegative:()=>cu,nonpositive:()=>su,normalize:()=>xi,overwrite:()=>Dt,positive:()=>ou,property:()=>lu,regex:()=>ki,size:()=>Tn,slugify:()=>Ai,startsWith:()=>Ei,toLowerCase:()=>ji,toUpperCase:()=>Ci,trim:()=>Ni,uppercase:()=>Ii});var Pt={};ir(Pt,{ZodISODate:()=>gu,ZodISODateTime:()=>hu,ZodISODuration:()=>yu,ZodISOTime:()=>vu,date:()=>Vy,datetime:()=>Uy,duration:()=>Zy,time:()=>Fy});var hu=x("ZodISODateTime",(e,t)=>{yg.init(e,t),Te.init(e,t)});function Uy(e){return $v(hu,e)}var gu=x("ZodISODate",(e,t)=>{_g.init(e,t),Te.init(e,t)});function Vy(e){return wv(gu,e)}var vu=x("ZodISOTime",(e,t)=>{Sg.init(e,t),Te.init(e,t)});function Fy(e){return zv(vu,e)}var yu=x("ZodISODuration",(e,t)=>{bg.init(e,t),Te.init(e,t)});function Zy(e){return kv(yu,e)}var ok=(e,t)=>{xa.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ja(e,n)},flatten:{value:n=>Na(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,gi,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,gi,2)}},isEmpty:{get(){return e.issues.length===0}}})},LC=x("ZodError",ok),bt=x("ZodError",ok,{Parent:Error});var Jy=_i(bt),By=Si(bt),Ba=bi(bt),Ky=$i(bt),Hy=pl(bt),Gy=fl(bt),Wy=hl(bt),Yy=gl(bt),Qy=vl(bt),Xy=yl(bt),e_=_l(bt),t_=Sl(bt);var ak=new WeakMap;function Ga(e,t,n){let i=Object.getPrototypeOf(e),r=ak.get(i);if(r||(r=new Set,ak.set(i,r)),!r.has(t)){r.add(t);for(let o in n){let a=n[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var Se=x("ZodType",(e,t)=>(he.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Mi(e,"input"),output:Mi(e,"output")}}),e.toJSONSchema=ny(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,i)=>Jy(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Ba(e,n,i),e.parseAsync=async(n,i)=>By(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Ky(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>Hy(e,n,i),e.decode=(n,i)=>Gy(e,n,i),e.encodeAsync=async(n,i)=>Wy(e,n,i),e.decodeAsync=async(n,i)=>Yy(e,n,i),e.safeEncode=(n,i)=>Qy(e,n,i),e.safeDecode=(n,i)=>Xy(e,n,i),e.safeEncodeAsync=async(n,i)=>e_(e,n,i),e.safeDecodeAsync=async(n,i)=>t_(e,n,i),Ga(e,"ZodType",{check(...n){let i=this.def;return this.clone(G.mergeDefs(i,{checks:[...i.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,i){return dt(this,n,i)},brand(){return this},register(n,i){return n.add(this,i),this},refine(n,i){return this.check(D_(n,i))},superRefine(n,i){return this.check(U_(n,i))},overwrite(n){return this.check(Dt(n))},optional(){return se(this)},exactOptional(){return $_(this)},nullable(){return Ha(this)},nullish(){return se(Ha(this))},nonoptional(n){return P_(this,n)},array(){return j(this)},or(n){return ie([this,n])},and(n){return Ut(this,n)},transform(n){return Su(this,Vu(n))},default(n){return k_(this,n)},prefault(n){return I_(this,n)},catch(n){return O_(this,n)},pipe(n){return Su(this,n)},readonly(){return C_(this)},describe(n){let i=this.clone();return tt.add(i,{description:n}),i},meta(...n){if(n.length===0)return tt.get(this);let i=this.clone();return tt.add(i,n[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return tt.get(e)?.description},configurable:!0}),e)),bu=x("_ZodString",(e,t)=>{En.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(i,r,o)=>iy(e,i,r,o);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Ga(e,"_ZodString",{regex(...i){return this.check(ki(...i))},includes(...i){return this.check(Pi(...i))},startsWith(...i){return this.check(Ei(...i))},endsWith(...i){return this.check(Ti(...i))},min(...i){return this.check(cr(...i))},max(...i){return this.check(On(...i))},length(...i){return this.check(xn(...i))},nonempty(...i){return this.check(cr(1,...i))},lowercase(i){return this.check(Ri(i))},uppercase(i){return this.check(Ii(i))},trim(){return this.check(Ni())},normalize(...i){return this.check(xi(...i))},toLowerCase(){return this.check(ji())},toUpperCase(){return this.check(Ci())},slugify(){return this.check(Ai())}})}),Ui=x("ZodString",(e,t)=>{En.init(e,t),bu.init(e,t),e.email=n=>e.check(Ll($u,n)),e.url=n=>e.check(Za(Wa,n)),e.jwt=n=>e.check(iu(Mu,n)),e.emoji=n=>e.check(Zl(zu,n)),e.guid=n=>e.check(Fa(Ka,n)),e.uuid=n=>e.check(Dl(Xt,n)),e.uuidv4=n=>e.check(Ul(Xt,n)),e.uuidv6=n=>e.check(Vl(Xt,n)),e.uuidv7=n=>e.check(Fl(Xt,n)),e.nanoid=n=>e.check(Jl(ku,n)),e.guid=n=>e.check(Fa(Ka,n)),e.cuid=n=>e.check(Bl(Ru,n)),e.cuid2=n=>e.check(Kl(Iu,n)),e.ulid=n=>e.check(Hl(Pu,n)),e.base64=n=>e.check(tu(Cu,n)),e.base64url=n=>e.check(ru(Au,n)),e.xid=n=>e.check(Gl(Eu,n)),e.ksuid=n=>e.check(Wl(Tu,n)),e.ipv4=n=>e.check(Yl(Ou,n)),e.ipv6=n=>e.check(Ql(xu,n)),e.cidrv4=n=>e.check(Xl(Nu,n)),e.cidrv6=n=>e.check(eu(ju,n)),e.e164=n=>e.check(nu(qu,n)),e.datetime=n=>e.check(Uy(n)),e.date=n=>e.check(Vy(n)),e.time=n=>e.check(Fy(n)),e.duration=n=>e.check(Zy(n))});function p(e){return yv(Ui,e)}var Te=x("ZodStringFormat",(e,t)=>{Ee.init(e,t),bu.init(e,t)}),$u=x("ZodEmail",(e,t)=>{lg.init(e,t),Te.init(e,t)});function wu(e){return Ll($u,e)}var Ka=x("ZodGUID",(e,t)=>{sg.init(e,t),Te.init(e,t)});function sk(e){return Fa(Ka,e)}var Xt=x("ZodUUID",(e,t)=>{cg.init(e,t),Te.init(e,t)});function ck(e){return Dl(Xt,e)}function lk(e){return Ul(Xt,e)}function uk(e){return Vl(Xt,e)}function dk(e){return Fl(Xt,e)}var Wa=x("ZodURL",(e,t)=>{ug.init(e,t),Te.init(e,t)});function Vi(e){return Za(Wa,e)}function mk(e){return Za(Wa,{protocol:Rt.httpProtocol,hostname:Rt.domain,...G.normalizeParams(e)})}var zu=x("ZodEmoji",(e,t)=>{dg.init(e,t),Te.init(e,t)});function pk(e){return Zl(zu,e)}var ku=x("ZodNanoID",(e,t)=>{mg.init(e,t),Te.init(e,t)});function fk(e){return Jl(ku,e)}var Ru=x("ZodCUID",(e,t)=>{pg.init(e,t),Te.init(e,t)});function hk(e){return Bl(Ru,e)}var Iu=x("ZodCUID2",(e,t)=>{fg.init(e,t),Te.init(e,t)});function gk(e){return Kl(Iu,e)}var Pu=x("ZodULID",(e,t)=>{hg.init(e,t),Te.init(e,t)});function vk(e){return Hl(Pu,e)}var Eu=x("ZodXID",(e,t)=>{gg.init(e,t),Te.init(e,t)});function yk(e){return Gl(Eu,e)}var Tu=x("ZodKSUID",(e,t)=>{vg.init(e,t),Te.init(e,t)});function _k(e){return Wl(Tu,e)}var Ou=x("ZodIPv4",(e,t)=>{$g.init(e,t),Te.init(e,t)});function Sk(e){return Yl(Ou,e)}var r_=x("ZodMAC",(e,t)=>{zg.init(e,t),Te.init(e,t)});function bk(e){return Sv(r_,e)}var xu=x("ZodIPv6",(e,t)=>{wg.init(e,t),Te.init(e,t)});function $k(e){return Ql(xu,e)}var Nu=x("ZodCIDRv4",(e,t)=>{kg.init(e,t),Te.init(e,t)});function wk(e){return Xl(Nu,e)}var ju=x("ZodCIDRv6",(e,t)=>{Rg.init(e,t),Te.init(e,t)});function zk(e){return eu(ju,e)}var Cu=x("ZodBase64",(e,t)=>{Pg.init(e,t),Te.init(e,t)});function kk(e){return tu(Cu,e)}var Au=x("ZodBase64URL",(e,t)=>{Eg.init(e,t),Te.init(e,t)});function Rk(e){return ru(Au,e)}var qu=x("ZodE164",(e,t)=>{Tg.init(e,t),Te.init(e,t)});function Ik(e){return nu(qu,e)}var Mu=x("ZodJWT",(e,t)=>{Og.init(e,t),Te.init(e,t)});function Pk(e){return iu(Mu,e)}var Fi=x("ZodCustomStringFormat",(e,t)=>{xg.init(e,t),Te.init(e,t)});function Ek(e,t,n={}){return qi(Fi,e,t,n)}function Tk(e){return qi(Fi,"hostname",Rt.hostname,e)}function Ok(e){return qi(Fi,"hex",Rt.hex,e)}function xk(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=Rt[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return qi(Fi,i,r,t)}var Zi=x("ZodNumber",(e,t)=>{El.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(i,r,o)=>oy(e,i,r,o),Ga(e,"ZodNumber",{gt(i,r){return this.check(Yt(i,r))},gte(i,r){return this.check(pt(i,r))},min(i,r){return this.check(pt(i,r))},lt(i,r){return this.check(Wt(i,r))},lte(i,r){return this.check(It(i,r))},max(i,r){return this.check(It(i,r))},int(i){return this.check(_u(i))},safe(i){return this.check(_u(i))},positive(i){return this.check(Yt(0,i))},nonnegative(i){return this.check(pt(0,i))},negative(i){return this.check(Wt(0,i))},nonpositive(i){return this.check(It(0,i))},multipleOf(i,r){return this.check(qr(i,r))},step(i,r){return this.check(qr(i,r))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function J(e){return Rv(Zi,e)}var jn=x("ZodNumberFormat",(e,t)=>{Ng.init(e,t),Zi.init(e,t)});function _u(e){return Pv(jn,e)}function Nk(e){return Ev(jn,e)}function jk(e){return Tv(jn,e)}function Ck(e){return Ov(jn,e)}function Ak(e){return xv(jn,e)}var Ji=x("ZodBoolean",(e,t)=>{Ma.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ay(e,n,i,r)});function te(e){return Nv(Ji,e)}var Bi=x("ZodBigInt",(e,t)=>{Tl.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(i,r,o)=>sy(e,i,r,o),e.gte=(i,r)=>e.check(pt(i,r)),e.min=(i,r)=>e.check(pt(i,r)),e.gt=(i,r)=>e.check(Yt(i,r)),e.gte=(i,r)=>e.check(pt(i,r)),e.min=(i,r)=>e.check(pt(i,r)),e.lt=(i,r)=>e.check(Wt(i,r)),e.lte=(i,r)=>e.check(It(i,r)),e.max=(i,r)=>e.check(It(i,r)),e.positive=i=>e.check(Yt(BigInt(0),i)),e.negative=i=>e.check(Wt(BigInt(0),i)),e.nonpositive=i=>e.check(It(BigInt(0),i)),e.nonnegative=i=>e.check(pt(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(qr(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function qk(e){return Cv(Bi,e)}var Lu=x("ZodBigIntFormat",(e,t)=>{jg.init(e,t),Bi.init(e,t)});function Mk(e){return qv(Lu,e)}function Lk(e){return Mv(Lu,e)}var n_=x("ZodSymbol",(e,t)=>{Cg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cy(e,n,i,r)});function Dk(e){return Lv(n_,e)}var i_=x("ZodUndefined",(e,t)=>{Ag.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>uy(e,n,i,r)});function Uk(e){return Dv(i_,e)}var o_=x("ZodNull",(e,t)=>{qg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ly(e,n,i,r)});function er(e){return Uv(o_,e)}var a_=x("ZodAny",(e,t)=>{Mg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>py(e,n,i,r)});function Du(){return Vv(a_)}var s_=x("ZodUnknown",(e,t)=>{Lg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>fy(e,n,i,r)});function ae(){return Fv(s_)}var c_=x("ZodNever",(e,t)=>{Dg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>my(e,n,i,r)});function Uu(e){return Zv(c_,e)}var l_=x("ZodVoid",(e,t)=>{Ug.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>dy(e,n,i,r)});function Vk(e){return Jv(l_,e)}var Ya=x("ZodDate",(e,t)=>{Vg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(i,r,o)=>hy(e,i,r,o),e.min=(i,r)=>e.check(pt(i,r)),e.max=(i,r)=>e.check(It(i,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Fk(e){return Bv(Ya,e)}var u_=x("ZodArray",(e,t)=>{Fg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Iy(e,n,i,r),e.element=t.element,Ga(e,"ZodArray",{min(n,i){return this.check(cr(n,i))},nonempty(n){return this.check(cr(1,n))},max(n,i){return this.check(On(n,i))},length(n,i){return this.check(xn(n,i))},unwrap(){return this.element}})});function j(e,t){return Gv(u_,e,t)}function Zk(e){let t=e._zod.def.shape;return fe(Object.keys(t))}var Qa=x("ZodObject",(e,t)=>{Zg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Py(e,n,i,r),G.defineLazy(e,"shape",()=>t.shape),Ga(e,"ZodObject",{keyof(){return fe(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:ae()})},loose(){return this.clone({...this._zod.def,catchall:ae()})},strict(){return this.clone({...this._zod.def,catchall:Uu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return G.extend(this,n)},safeExtend(n){return G.safeExtend(this,n)},merge(n){return G.merge(this,n)},pick(n){return G.pick(this,n)},omit(n){return G.omit(this,n)},partial(...n){return G.partial(Fu,this,n[0])},required(...n){return G.required(Zu,this,n[0])}})});function I(e,t){let n={type:"object",shape:e??{},...G.normalizeParams(t)};return new Qa(n)}function Jk(e,t){return new Qa({type:"object",shape:e,catchall:Uu(),...G.normalizeParams(t)})}function le(e,t){return new Qa({type:"object",shape:e,catchall:ae(),...G.normalizeParams(t)})}var Xa=x("ZodUnion",(e,t)=>{La.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>du(e,n,i,r),e.options=t.options});function ie(e,t){return new Xa({type:"union",options:e,...G.normalizeParams(t)})}var d_=x("ZodXor",(e,t)=>{Xa.init(e,t),Jg.init(e,t),e._zod.processJSONSchema=(n,i,r)=>du(e,n,i,r),e.options=t.options});function Bk(e,t){return new d_({type:"union",options:e,inclusive:!1,...G.normalizeParams(t)})}var m_=x("ZodDiscriminatedUnion",(e,t)=>{Xa.init(e,t),Bg.init(e,t)});function Vr(e,t,n){return new m_({type:"union",options:t,discriminator:e,...G.normalizeParams(n)})}var p_=x("ZodIntersection",(e,t)=>{Kg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ey(e,n,i,r)});function Ut(e,t){return new p_({type:"intersection",left:e,right:t})}var f_=x("ZodTuple",(e,t)=>{Ol.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ty(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function h_(e,t,n){let i=t instanceof he,r=i?n:t,o=i?t:null;return new f_({type:"tuple",items:e,rest:o,...G.normalizeParams(r)})}var Li=x("ZodRecord",(e,t)=>{Hg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Oy(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});function ee(e,t,n){return!t||!t._zod?new Li({type:"record",keyType:p(),valueType:e,...G.normalizeParams(t)}):new Li({type:"record",keyType:e,valueType:t,...G.normalizeParams(n)})}function Kk(e,t,n){let i=dt(e);return i._zod.values=void 0,new Li({type:"record",keyType:i,valueType:t,...G.normalizeParams(n)})}function Hk(e,t,n){return new Li({type:"record",keyType:e,valueType:t,mode:"loose",...G.normalizeParams(n)})}var g_=x("ZodMap",(e,t)=>{Gg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ky(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Qt(...n)),e.nonempty=n=>e.check(Qt(1,n)),e.max=(...n)=>e.check(Mr(...n)),e.size=(...n)=>e.check(Tn(...n))});function Gk(e,t,n){return new g_({type:"map",keyType:e,valueType:t,...G.normalizeParams(n)})}var v_=x("ZodSet",(e,t)=>{Wg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ry(e,n,i,r),e.min=(...n)=>e.check(Qt(...n)),e.nonempty=n=>e.check(Qt(1,n)),e.max=(...n)=>e.check(Mr(...n)),e.size=(...n)=>e.check(Tn(...n))});function Wk(e,t){return new v_({type:"set",valueType:e,...G.normalizeParams(t)})}var Di=x("ZodEnum",(e,t)=>{Yg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(i,r,o)=>gy(e,i,r,o),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Di({...t,checks:[],...G.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Di({...t,checks:[],...G.normalizeParams(r),entries:o})}});function fe(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Di({type:"enum",entries:n,...G.normalizeParams(t)})}function Yk(e,t){return new Di({type:"enum",entries:e,...G.normalizeParams(t)})}var y_=x("ZodLiteral",(e,t)=>{Qg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vy(e,n,i,r),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 C(e,t){return new y_({type:"literal",values:Array.isArray(e)?e:[e],...G.normalizeParams(t)})}var __=x("ZodFile",(e,t)=>{Xg.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Sy(e,n,i,r),e.min=(n,i)=>e.check(Qt(n,i)),e.max=(n,i)=>e.check(Mr(n,i)),e.mime=(n,i)=>e.check(Oi(Array.isArray(n)?n:[n],i))});function Qk(e){return Wv(__,e)}var S_=x("ZodTransform",(e,t)=>{ev.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zy(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new xr(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(G.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(G.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});function Vu(e){return new S_({type:"transform",transform:e})}var Fu=x("ZodOptional",(e,t)=>{xl.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mu(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function se(e){return new Fu({type:"optional",innerType:e})}var b_=x("ZodExactOptional",(e,t)=>{tv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mu(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function $_(e){return new b_({type:"optional",innerType:e})}var w_=x("ZodNullable",(e,t)=>{rv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xy(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Ha(e){return new w_({type:"nullable",innerType:e})}function Xk(e){return se(Ha(e))}var z_=x("ZodDefault",(e,t)=>{nv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>jy(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function k_(e,t){return new z_({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():G.shallowClone(t)}})}var R_=x("ZodPrefault",(e,t)=>{iv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Cy(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function I_(e,t){return new R_({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():G.shallowClone(t)}})}var Zu=x("ZodNonOptional",(e,t)=>{ov.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ny(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function P_(e,t){return new Zu({type:"nonoptional",innerType:e,...G.normalizeParams(t)})}var E_=x("ZodSuccess",(e,t)=>{av.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>by(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function eR(e){return new E_({type:"success",innerType:e})}var T_=x("ZodCatch",(e,t)=>{sv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ay(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function O_(e,t){return new T_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var x_=x("ZodNaN",(e,t)=>{cv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>yy(e,n,i,r)});function tR(e){return Hv(x_,e)}var es=x("ZodPipe",(e,t)=>{Nl.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qy(e,n,i,r),e.in=t.in,e.out=t.out});function Su(e,t){return new es({type:"pipe",in:e,out:t})}var ts=x("ZodCodec",(e,t)=>{es.init(e,t),Da.init(e,t)});function rR(e,t,n){return new ts({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function nR(e){let t=e._zod.def;return new ts({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var N_=x("ZodPreprocess",(e,t)=>{es.init(e,t),lv.init(e,t)}),j_=x("ZodReadonly",(e,t)=>{uv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>My(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function C_(e){return new j_({type:"readonly",innerType:e})}var A_=x("ZodTemplateLiteral",(e,t)=>{dv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_y(e,n,i,r)});function iR(e,t){return new A_({type:"template_literal",parts:e,...G.normalizeParams(t)})}var q_=x("ZodLazy",(e,t)=>{fv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dy(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});function Fr(e){return new q_({type:"lazy",getter:e})}var M_=x("ZodPromise",(e,t)=>{pv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ly(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function oR(e){return new M_({type:"promise",innerType:e})}var L_=x("ZodFunction",(e,t)=>{mv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>wy(e,n,i,r)});function aR(e){return new L_({type:"function",input:Array.isArray(e?.input)?h_(e?.input):e?.input??j(ae()),output:e?.output??ae()})}var rs=x("ZodCustom",(e,t)=>{hv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$y(e,n,i,r)});function sR(e){let t=new Oe({check:"custom"});return t._zod.check=e,t}function cR(e,t){return Yv(rs,e??(()=>!0),t)}function D_(e,t={}){return Qv(rs,e,t)}function U_(e,t){return Xv(e,t)}var lR=ey,uR=ty;function dR(e,t={}){let n=new rs({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...G.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]})},n}var mR=(...e)=>ry({Codec:ts,Boolean:Ji,String:Ui},...e);function pR(e){let t=Fr(()=>ie([p(e),J(),te(),er(),j(t),ee(p(),t)]));return t}function ur(e,t){return new N_({type:"pipe",in:Vu(e),out:t})}var F_={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 UC(e){Ae({customError:e})}function VC(){return Ae().customError}var V_;V_||(V_={});var re={...Ja,...fu,iso:Pt},FC=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 ZC(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function JC(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function fR(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return re.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 r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return re.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=JC(r,t),a=at(o,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return re.null();if(r.length===0)return re.never();if(r.length===1)return re.literal(r[0]);if(r.every(a=>typeof a=="string"))return re.enum(r);let o=r.map(a=>re.literal(a));return o.length<2?o[0]:re.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return re.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return fR(a,t)});return r.length===0?re.never():r.length===1?r[0]:re.union(r)}if(!n)return re.any();let i;switch(n){case"string":{let r=re.string();if(e.format){let o=e.format;o==="email"?r=r.check(re.email()):o==="uri"||o==="uri-reference"?r=r.check(re.url()):o==="uuid"||o==="guid"?r=r.check(re.uuid()):o==="date-time"?r=r.check(re.iso.datetime()):o==="date"?r=r.check(re.iso.date()):o==="time"?r=r.check(re.iso.time()):o==="duration"?r=r.check(re.iso.duration()):o==="ipv4"?r=r.check(re.ipv4()):o==="ipv6"?r=r.check(re.ipv6()):o==="mac"?r=r.check(re.mac()):o==="cidr"?r=r.check(re.cidrv4()):o==="cidr-v6"?r=r.check(re.cidrv6()):o==="base64"?r=r.check(re.base64()):o==="base64url"?r=r.check(re.base64url()):o==="e164"?r=r.check(re.e164()):o==="jwt"?r=r.check(re.jwt()):o==="emoji"?r=r.check(re.emoji()):o==="nanoid"?r=r.check(re.nanoid()):o==="cuid"?r=r.check(re.cuid()):o==="cuid2"?r=r.check(re.cuid2()):o==="ulid"?r=r.check(re.ulid()):o==="xid"?r=r.check(re.xid()):o==="ksuid"&&(r=r.check(re.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case"number":case"integer":{let r=n==="integer"?re.number().int():re.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=re.boolean();break}case"null":{i=re.null();break}case"object":{let r={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,l]of Object.entries(o)){let u=at(l,t);r[c]=a.has(c)?u:u.optional()}if(e.propertyNames){let c=at(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?at(e.additionalProperties,t):re.any();if(Object.keys(r).length===0){i=re.record(c,l);break}let u=re.object(r).passthrough(),d=re.looseRecord(c,l);i=re.intersection(u,d);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),u=[];for(let m of l){let v=at(c[m],t),y=re.string().regex(new RegExp(m));u.push(re.looseRecord(y,v))}let d=[];if(Object.keys(r).length>0&&d.push(re.object(r).passthrough()),d.push(...u),d.length===0)i=re.object({}).passthrough();else if(d.length===1)i=d[0];else{let m=re.intersection(d[0],d[1]);for(let v=2;v<d.length;v++)m=re.intersection(m,d[v]);i=m}break}let s=re.object(r);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(at(e.additionalProperties,t)):i=s.passthrough();break}case"array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let a=r.map(c=>at(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?at(o,t):void 0;s?i=re.tuple(a).rest(s):i=re.tuple(a),typeof e.minItems=="number"&&(i=i.check(re.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(re.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(c=>at(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?at(e.additionalItems,t):void 0;s?i=re.tuple(a).rest(s):i=re.tuple(a),typeof e.minItems=="number"&&(i=i.check(re.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(re.maxLength(e.maxItems)))}else if(o!==void 0){let a=at(o,t),s=re.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=re.array(re.any());break}default:throw new Error(`Unsupported type: ${n}`)}return i}function at(e,t){if(typeof e=="boolean")return e?re.any():re.never();let n=fR(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(l=>at(l,t)),c=re.union(s);n=i?re.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(l=>at(l,t)),c=re.xor(s);n=i?re.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:re.any();else{let s=i?n:at(e.allOf[0],t),c=i?0:1;for(let l=c;l<e.allOf.length;l++)s=re.intersection(s,at(e.allOf[l],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=re.nullable(n)),e.readOnly===!0&&(n=re.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);for(let s of Object.keys(e))FC.has(s)||(r[s]=e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),e.description&&(n=n.describe(e.description)),n}function hR(e,t){if(typeof e=="boolean")return e?re.any():re.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=ZC(n,t?.defaultTarget),r=n.$defs||n.definitions||{},o={version:i,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??tt};return at(n,o)}var ns={};ir(ns,{bigint:()=>GC,boolean:()=>HC,date:()=>WC,number:()=>KC,string:()=>BC});function BC(e){return _v(Ui,e)}function KC(e){return Iv(Zi,e)}function HC(e){return jv(Ji,e)}function GC(e){return Av(Bi,e)}function WC(e){return Kv(Ya,e)}Ae(jl());var Z_="qubicl/computer:dev",J_="qubicl/gateway:dev",B_=/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/,YC=3211,QC=2,XC="4g",K_=process.env.QUBICL_DEFAULT_COMPUTER_IMAGE??Z_,Ki=process.env.QUBICL_DEFAULT_GATEWAY_IMAGE??J_,Ju=V.object({id:V.uuid(),name:V.string().regex(B_,"must be a lowercase Docker-safe name"),image:V.string().min(1),cpus:V.number().positive(),memory:V.string().regex(/^\d+(?:\.\d+)?[kmg]$/i,"must look like 512m or 4g"),createdAt:V.iso.datetime()}),H_=V.object({version:V.literal(1),gatewayPort:V.number().int().min(1).max(65535),nextName:V.number().int().positive(),defaults:V.object({image:V.string().min(1),cpus:V.number().positive(),memory:V.string().regex(/^\d+(?:\.\d+)?[kmg]$/i)}),computers:V.array(Ju)}).superRefine((e,t)=>{let n=new Set,i=new Set;for(let[r,o]of e.computers.entries())n.has(o.id)&&t.addIssue({code:"custom",path:["computers",r,"id"],message:"computer IDs must be unique"}),i.has(o.name)&&t.addIssue({code:"custom",path:["computers",r,"name"],message:"computer names must be unique"}),n.add(o.id),i.add(o.name)}),G_=V.object({version:V.literal(1),computers:V.record(V.uuid(),V.object({token:V.string().min(32),internalKey:V.string().min(32)}))}),gR=Ju.extend({deletedAt:V.iso.datetime().optional()}),vR=V.object({version:V.literal(1),gateway:V.strictObject({port:V.number().int().min(1).max(65535)}),computers:V.array(V.strictObject({name:V.string().regex(B_),image:V.string().min(1).optional(),cpus:V.number().positive().optional(),memory:V.string().regex(/^\d+(?:\.\d+)?[kmg]$/i).optional()}))}).strict();function yR(){return{version:1,gatewayPort:YC,nextName:1,defaults:{image:K_,cpus:QC,memory:XC},computers:[]}}function _R(){return{version:1,computers:{}}}function W_(e){if(!B_.test(e))throw new Error(`Invalid computer name ${JSON.stringify(e)}; use lowercase letters, numbers, and hyphens.`);return e}function SR(e){let t=new Set(e.computers.map(({name:i})=>i));for(;t.has(`qubicl-${e.nextName}`);)e.nextName+=1;let n=`qubicl-${e.nextName}`;return e.nextName+=1,n}function bR(e,t,n){let i=new Set;for(let s of t.computers){if(i.has(s.name))throw new Error(`Manifest declares ${s.name} more than once.`);i.add(s.name)}let r=t.computers.filter(({name:s})=>!e.computers.some(c=>c.name===s)),o=t.computers.filter(s=>{let c=e.computers.find(({name:l})=>l===s.name);return!!(c&&(s.image!==void 0&&s.image!==c.image||s.cpus!==void 0&&s.cpus!==c.cpus||s.memory!==void 0&&s.memory!==c.memory))}),a=n?e.computers.filter(({name:s})=>!i.has(s)):[];return{creates:r,updates:o,trashes:a,gatewayPortChanged:e.gatewayPort!==t.gateway.port}}import{createHash as e1,timingSafeEqual as D4}from"node:crypto";var t1=V.object({id:V.uuid(),name:V.string(),host:V.string().min(1),controlPort:V.number().int().positive(),viewPort:V.number().int().positive(),controlViewPort:V.number().int().positive(),tokenHash:V.string().regex(/^[a-f0-9]{64}$/),internalKey:V.string().min(32)}),V4=V.object({version:V.literal(1),generatedAt:V.iso.datetime(),routes:V.array(t1)});function $R(e){return e1("sha256").update(e).digest("hex")}var wR="^22.14.0 || ^24.0.0",Hi="24.0.0",Gi="2.24.0",Ke=Object.freeze({version:"0.1.0-dev.0",revision:"ee0788fb2e5203ae385e61595d39e5b5249deafd",date:"2026-08-19T12:00:32-04:00"});function zR(e=process.versions.node){let[t,n]=Y_(e);return t===22&&n>=14||t===24}function Wi(e,t){let n=Y_(e),i=Y_(t);for(let r=0;r<i.length;r+=1){if(n[r]>i[r])return!0;if(n[r]<i[r])return!1}return!0}function Y_(e){let t=e.match(/(?:^|\s|v)(\d+)\.(\d+)(?:\.(\d+))?/);if(!t)throw new Error(`Could not parse version ${JSON.stringify(e)}.`);return[Number(t[1]),Number(t[2]),Number(t[3]??0)]}function kR(){return`qubicl ${Ke.version} (${Ke.revision})`}var r1=V.strictObject({id:V.string().min(32),generation:V.number().int().nonnegative(),epoch:V.string().min(16)}),n1=V.strictObject({}),i1=r1.extend({expiresAt:V.iso.datetime().optional()}),rt=V.strictObject({lease:i1}),Vt=V.string().min(1).describe("Absolute path, or a path relative to /home/qubicl."),o1=V.discriminatedUnion("type",[V.strictObject({type:V.literal("click"),x:V.number().int(),y:V.number().int(),button:V.number().int().min(1).max(5).default(1)}),V.strictObject({type:V.literal("double_click"),x:V.number().int(),y:V.number().int(),button:V.number().int().min(1).max(5).default(1)}),V.strictObject({type:V.literal("right_click"),x:V.number().int(),y:V.number().int()}),V.strictObject({type:V.literal("move"),x:V.number().int(),y:V.number().int()}),V.strictObject({type:V.literal("drag"),fromX:V.number().int(),fromY:V.number().int(),toX:V.number().int(),toY:V.number().int(),durationMs:V.number().int().min(0).max(3e4).default(500)}),V.strictObject({type:V.literal("type"),text:V.string()}),V.strictObject({type:V.literal("keypress"),keys:V.array(V.string().min(1)).min(1)}),V.strictObject({type:V.literal("scroll"),x:V.number().int().optional(),y:V.number().int().optional(),deltaY:V.number().int().min(-100).max(100)}),V.strictObject({type:V.literal("wait"),durationMs:V.number().int().min(0).max(6e4)})]),Q_={get_computer_status:{description:"Return computer, lease, desktop, and managed-process status.",input:n1,lease:!1},acquire_lease:{description:"Acquire exclusive agent control of this computer.",input:V.strictObject({durationSeconds:V.number().int().min(30).max(3600).default(600)}),lease:!1},renew_lease:{description:"Renew an active lease, including while idle or awaiting a long-running process.",input:rt.extend({durationSeconds:V.number().int().min(30).max(3600).default(600)}),lease:!1},release_lease:{description:"Release exclusive agent control and stop its managed processes.",input:rt,lease:!1},exec_command:{description:"Run a command and return its output, or a process ID if it remains active.",input:rt.extend({command:V.string().min(1),cwd:Vt.default("/home/qubicl"),yieldTimeMs:V.number().int().min(0).max(3e4).default(1e4),maxOutputBytes:V.number().int().min(1024).max(1e7).default(1e6)}),lease:!0},write_stdin:{description:"Write to or poll a managed process, returning output produced since the last read.",input:rt.extend({processId:V.string().min(1),input:V.string().default(""),close:V.boolean().default(!1),yieldTimeMs:V.number().int().min(0).max(3e4).default(1e3)}),lease:!0},stop_process:{description:"Terminate a managed process group.",input:rt.extend({processId:V.string().min(1)}),lease:!0},list_files:{description:"List a directory.",input:rt.extend({path:Vt.default("/home/qubicl"),recursive:V.boolean().default(!1),maxEntries:V.number().int().min(1).max(1e4).default(1e3)}),lease:!0},get_file_info:{description:"Return metadata for a filesystem path.",input:rt.extend({path:Vt}),lease:!0},read_file:{description:"Read a UTF-8 or base64-encoded file.",input:rt.extend({path:Vt,encoding:V.enum(["utf8","base64"]).default("utf8"),maxBytes:V.number().int().min(1).max(2e7).default(5e6)}),lease:!0},write_file:{description:"Write a UTF-8 or base64-encoded file, creating parent directories when requested.",input:rt.extend({path:Vt,content:V.string(),encoding:V.enum(["utf8","base64"]).default("utf8"),createParents:V.boolean().default(!0)}),lease:!0},apply_patch:{description:"Apply a unified diff inside the computer.",input:rt.extend({patch:V.string().min(1),cwd:Vt.default("/home/qubicl")}),lease:!0},copy_path:{description:"Copy a file or directory.",input:rt.extend({source:Vt,destination:Vt,overwrite:V.boolean().default(!1)}),lease:!0},move_path:{description:"Move or rename a file or directory.",input:rt.extend({source:Vt,destination:Vt,overwrite:V.boolean().default(!1)}),lease:!0},delete_path:{description:"Delete a path inside the computer.",input:rt.extend({path:Vt,recursive:V.boolean().default(!1)}),lease:!0},take_screenshot:{description:"Capture the desktop as a base64 PNG.",input:rt,lease:!0},control_computer:{description:"Control the desktop with mouse, keyboard, typing, scrolling, or waiting.",input:rt.extend({action:o1}),lease:!0},read_clipboard:{description:"Read UTF-8 text from the desktop clipboard.",input:rt,lease:!0},write_clipboard:{description:"Write UTF-8 text to the desktop clipboard.",input:rt.extend({text:V.string()}),lease:!0}},RR=Object.keys(Q_);var a1=/^(?:token|internalKey|authorization|secret)$/i,s1=/qubicl_[A-Za-z0-9_-]{32,}/g;function Bu(e){return typeof e=="string"?e.startsWith("QUBICL_INTERNAL_KEY=")?"QUBICL_INTERNAL_KEY=[REDACTED]":/^Bearer\s+/i.test(e)?"Bearer [REDACTED]":e.replace(s1,"[REDACTED]"):Array.isArray(e)?e.map(Bu):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[t,a1.test(t)?"[REDACTED]":Bu(n)]))}import{spawn as g1}from"node:child_process";import{access as v1}from"node:fs/promises";import{fileURLToPath as y1}from"node:url";import{dirname as _1,join as NR}from"node:path";import{isSea as S1}from"node:sea";import{createServer as b1}from"node:net";var xR=fp(cl(),1);import{join as f1}from"node:path";var Zr=fp(cl(),1);import{randomBytes as X_}from"node:crypto";import{chmod as tS,mkdir as Cn,open as IR,readFile as is,readdir as c1,rename as l1,rm as eS,stat as u1,writeFile as ER}from"node:fs/promises";import{homedir as d1}from"node:os";import{dirname as rS,join as $t}from"node:path";function st(e=process.env.QUBICL_HOME??$t(d1(),".qubicl")){return{root:e,config:$t(e,"config.yaml"),secrets:$t(e,"secrets.yaml"),computers:$t(e,"computers"),trash:$t(e,"trash"),runtime:$t(e,"runtime"),compose:$t(e,"runtime","compose.yaml"),routes:$t(e,"runtime","routes.json"),lock:$t(e,"runtime","cli.lock")}}async function TR(e=st()){await Promise.all([Cn(e.computers,{recursive:!0}),Cn(e.trash,{recursive:!0}),Cn(e.runtime,{recursive:!0})]);let t=await PR(e.config,H_,yR()),n=await PR(e.secrets,G_,_R());return await Jr({paths:e,config:t,secrets:n}),{paths:e,config:t,secrets:n}}async function qe(e=st()){let t=H_.parse(Zr.default.parse(await is(e.config,"utf8"))),n=G_.parse(Zr.default.parse(await is(e.secrets,"utf8")));return{paths:e,config:t,secrets:n}}async function Jr(e){await Yi(e.paths.config,Zr.default.stringify(e.config),420),await Yi(e.paths.secrets,Zr.default.stringify(e.secrets),384),await tS(e.paths.secrets,384)}async function An(e,t){let n=$t(e.computers,t.id);await Cn($t(n,"home","qubicl"),{recursive:!0}),await Yi($t(n,"metadata.yaml"),Zr.default.stringify(t),420)}async function m1(e){return gR.parse(Zr.default.parse(await is(e,"utf8")))}async function nS(e,t){let n=await c1(e.trash,{withFileTypes:!0}),i=[];for(let r of n){if(!r.isDirectory())continue;let o=$t(e.trash,r.name);try{let a=await m1($t(o,"metadata.yaml"));(a.name===t||a.id===t)&&i.push({directory:o,metadata:a})}catch{}}if(!i.length)throw new Error(`No trashed computer named ${t}.`);if(i.length>1)throw new Error(`Multiple trashed computers are named ${t}; use an immutable ID.`);return i[0]}async function wt(e,t){await Cn(rS(e.lock),{recursive:!0});let n;try{n=await IR(e.lock,"wx",384)}catch(i){if(i.code!=="EEXIST")throw i;try{let r=await is(e.lock,"utf8"),o=JSON.parse(r);if(o.pid&&p1(o.pid))throw new Error(`Another Qubicl command is running (PID ${o.pid}).`);let a=await u1(e.lock);if(Date.now()-a.mtimeMs<3e4)throw new Error("Another Qubicl command may be starting; retry shortly.")}catch(r){if(r instanceof Error&&r.message.startsWith("Another Qubicl"))throw r}await eS(e.lock,{force:!0}),n=await IR(e.lock,"wx",384)}try{return await n.writeFile(JSON.stringify({pid:process.pid,createdAt:new Date().toISOString()})),await t()}finally{await n.close(),await eS(e.lock,{force:!0})}}function Ku(){return{token:`qubicl_${X_(32).toString("base64url")}`,internalKey:X_(32).toString("base64url")}}async function Yi(e,t,n){await Cn(rS(e),{recursive:!0});let i=`${e}.${process.pid}.${X_(6).toString("hex")}.tmp`;try{await ER(i,t,{mode:n}),await l1(i,e),await tS(e,n)}finally{await eS(i,{force:!0})}}async function OR(e,t,n){await Cn(rS(e),{recursive:!0});try{await ER(e,t,{mode:n}),await tS(e,n)}catch(i){if(i.code!=="ENOENT")throw i;await Yi(e,t,n)}}async function PR(e,t,n){try{return t.parse(Zr.default.parse(await is(e,"utf8")))}catch(i){if(i.code==="ENOENT")return n;throw i}}function p1(e){try{return process.kill(e,0),!0}catch{return!1}}var iS="qubicl",Ft="qubicl-gateway";function qn(e){return`computer_${e.replaceAll("-","")}`}function Br(e){return`qubicl-${e}`}function Qi(e){return`qubicl-${e}-control`}function h1(){let e=typeof process.getuid=="function"?process.getuid():1e3,t=typeof process.getgid=="function"?process.getgid():1e3;if(e===0)throw new Error("Qubicl must run as your normal host user, not root. Running as root would put durable state under the wrong account and weaken gateway isolation.");return{uid:e,gid:t}}async function Zt(e){let{uid:t,gid:n}=h1(),i={version:1,generatedAt:new Date().toISOString(),routes:e.config.computers.map(a=>{let s=e.secrets.computers[a.id];if(!s)throw new Error(`Missing secret material for ${a.name}.`);return{id:a.id,name:a.name,host:Br(a.id),controlPort:3212,viewPort:6080,controlViewPort:6081,tokenHash:$R(s.token),internalKey:s.internalKey}})},r={gateway:{image:process.env.QUBICL_GATEWAY_IMAGE??Ki,container_name:Ft,user:`${t}:${n}`,restart:"unless-stopped",environment:{QUBICL_GATEWAY_PORT:"3211",QUBICL_ROUTES_PATH:"/runtime/routes.json"},ports:[`127.0.0.1:${e.config.gatewayPort}:3211`],volumes:[{type:"bind",source:e.paths.runtime,target:"/runtime",read_only:!0}],networks:["gateway"],labels:{"dev.qubicl.role":"gateway","dev.qubicl.version":Ke.version,"dev.qubicl.revision":Ke.revision},healthcheck:{test:["CMD","node","-e","fetch('http://127.0.0.1:3211/health').then(r=>{if(!r.ok)process.exit(1)})"],interval:"5s",timeout:"3s",retries:12}}},o={gateway:{name:"qubicl-gateway",driver:"bridge"}};for(let a of e.config.computers){let s=e.secrets.computers[a.id],c=`control_${a.id.replaceAll("-","")}`;r[qn(a.id)]={image:a.image,container_name:Br(a.id),hostname:a.name,restart:"unless-stopped",environment:{QUBICL_ID:a.id,QUBICL_NAME:a.name,QUBICL_INTERNAL_KEY:s.internalKey,QUBICL_CONTROL_PORT:"3212",QUBICL_HOST_UID:`${t}`,QUBICL_HOST_GID:`${n}`,DISPLAY:":0"},volumes:[{type:"bind",source:f1(e.paths.computers,a.id,"home"),target:"/home"}],networks:[c],cpus:a.cpus,mem_limit:a.memory,shm_size:"1g",privileged:!1,labels:{"dev.qubicl.role":"computer","dev.qubicl.id":a.id,"dev.qubicl.name":a.name,"dev.qubicl.version":Ke.version,"dev.qubicl.revision":Ke.revision},healthcheck:{test:["CMD","curl","--fail","--silent","http://127.0.0.1:3212/health"],interval:"5s",timeout:"3s",retries:24,start_period:"15s"}},o[c]={name:Qi(a.id),driver:"bridge"}}await OR(e.paths.routes,`${JSON.stringify(i,null,2)}
|
|
206
|
+
`,384),await Yi(e.paths.compose,xR.default.stringify({name:iS,services:r,networks:o}),384)}async function aS(e,t,n={}){return new Promise((i,r)=>{let o=g1(e,t,{cwd:n.cwd,stdio:n.inherit?"inherit":["ignore","pipe","pipe"]}),a="",s="";n.inherit||(o.stdout.on("data",c=>{a+=c.toString("utf8")}),o.stderr.on("data",c=>{s+=c.toString("utf8")})),o.on("error",r),o.on("close",c=>{c===0||n.allowFailure?i(a.trim()):r(new Error(`${e} ${t.join(" ")} failed (${c}): ${s.trim()}`))})})}async function Fe(e,t={}){return aS("docker",e,t)}async function Mn(e,t,n={}){return Fe(["compose","--project-name",iS,"--file",e.paths.compose,...t],n)}async function Kr(){let e=await Fe(["info","--format","{{.ServerVersion}}"]);if(!Wi(e,Hi))throw new Error(`Docker Engine ${Hi} or newer is required; found ${e}.`);let t=await Fe(["compose","version","--short"]);if(!Wi(t,Gi))throw new Error(`Docker Compose ${Gi} or newer is required; found ${t}.`)}async function $1(e){try{return await Fe(["image","inspect",e]),!0}catch{return!1}}async function sS(e=!0){await oS("gateway","qubicl/gateway:dev"),e&&await oS("computer","qubicl/computer:dev")}async function oS(e,t){let n=w1();await v1(n),await Fe(["build","--build-arg",`QUBICL_VERSION=${Ke.version}`,"--build-arg",`QUBICL_REVISION=${Ke.revision}`,"--build-arg",`QUBICL_CREATED=${Ke.date}`,"--build-arg","QUBICL_SOURCE=https://github.com/EldanRing/qubicl","--tag",t,NR(n,e)],{inherit:!0})}function w1(){return S1()?NR(_1(process.execPath),"assets"):y1(new URL("./assets/",import.meta.url))}async function Hr(e,t=!0){let i=[process.env.QUBICL_GATEWAY_IMAGE??Ki];if(t){for(let c of e.config.computers)i.push(c.image);e.config.computers.length||i.push(e.config.defaults.image)}let o=(await Promise.all([...new Set(i)].map(async c=>({image:c,missing:!await $1(c)})))).filter(({missing:c})=>c).map(({image:c})=>c);if(!o.length)return;let a=new Set(["qubicl/gateway:dev","qubicl/computer:dev"]),s=o.filter(c=>a.has(c));s.length&&(console.log(`Building local Qubicl image${s.length===1?"":"s"}: ${s.join(", ")}`),await sS(s.includes("qubicl/computer:dev")));for(let c of o.filter(l=>!s.includes(l))){console.log(`Pulling ${c}`);try{await Fe(["pull",c],{inherit:!0})}catch(l){let u=c===J_?"gateway":c===Z_?"computer":void 0;if(!u)throw l;console.warn(`Could not pull ${c}; building the bundled ${u} image locally instead.`),await oS(u,c)}}}async function Xi(e){await cS(e),await Mn(e,["up","--detach","--no-deps","gateway"]),await jR(Ft,"Gateway")}async function z1(e,t="127.0.0.1"){return new Promise(n=>{let i=b1();i.once("error",()=>n(!1)),i.listen(e,t,()=>i.close(()=>n(!0)))})}async function cS(e){if(!await z1(e.config.gatewayPort)){try{let t=await Fe(["inspect","--format",'{{(index (index .NetworkSettings.Ports "3211/tcp") 0).HostPort}}',Ft]);if(Number.parseInt(t,10)===e.config.gatewayPort)return}catch{}throw new Error(`Gateway port 127.0.0.1:${e.config.gatewayPort} is already in use.`)}}async function Gr(e,t){await Xi(e),await Mn(e,["up","--detach","--no-deps",qn(t.id)]);try{await Fe(["network","connect",Qi(t.id),Ft])}catch(n){if(!(n instanceof Error)||!n.message.includes("already exists in network"))throw n}await uS(t.id),await Gu(e,t.id)}async function lS(e){(await eo(e)).status!=="absent"&&await Fe(["rm","--force",Br(e)]);let t=Qi(e);await Fe(["network","inspect",t],{allowFailure:!0})&&(await Fe(["network","disconnect","--force",t,Ft],{allowFailure:!0}),await Fe(["network","rm",t]))}async function eo(e){return Hu(Br(e))}async function Hu(e){try{let t=await Fe(["inspect","--format","{{json .State}}",e]),n=JSON.parse(t),i={status:n.Status??"unknown"};return n.Health?.Status&&(i.health=n.Health.Status),i}catch{return{status:"absent"}}}async function uS(e,t=18e4){return jR(Br(e),"Computer",t)}async function jR(e,t,n=18e4){let i=Date.now()+n;for(;Date.now()<i;){let r=await Hu(e);if(r.status==="running"&&r.health==="healthy")return;if(r.status==="exited"||r.status==="dead")throw new Error(`${t} container stopped before becoming healthy (${r.status}).`);await new Promise(o=>setTimeout(o,1e3))}throw new Error(`${t} did not become healthy before the timeout.`)}async function Gu(e,t,n,i=3e4){let r=Date.now()+i,o=n?"openapi.json":"health";for(;Date.now()<r;){try{if((await fetch(`http://127.0.0.1:${e.config.gatewayPort}/computers/${t}/${o}`,n?{headers:{authorization:`Bearer ${n}`}}:void 0)).ok)return}catch{}await new Promise(a=>setTimeout(a,100))}throw new Error(`Gateway route for computer ${t} did not become ready before the timeout.`)}async function CR(e,t,n){(await Hu(Ft)).status==="running"&&await Gu(e,t,n)}async function AR(e,t,n=3e4){if((await Hu(Ft)).status!=="running")return;let i=Date.now()+n;for(;Date.now()<i;){try{if((await fetch(`http://127.0.0.1:${e.config.gatewayPort}/computers/${t}/health`)).status===404)return}catch{}await new Promise(r=>setTimeout(r,100))}throw new Error(`Gateway route for computer ${t} was not removed before the timeout.`)}var k1=Object.create,Wu=Object.defineProperty,R1=Object.getOwnPropertyDescriptor,I1=Object.getOwnPropertyNames,P1=Object.getPrototypeOf,E1=Object.prototype.hasOwnProperty,Z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qR=(e,t)=>{let n={};for(var i in e)Wu(n,i,{get:e[i],enumerable:!0});return t&&Wu(n,Symbol.toStringTag,{value:"Module"}),n},T1=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=I1(t),o=0,a=r.length,s;o<a;o++)s=r[o],!E1.call(e,s)&&s!==n&&Wu(e,s,{get:(c=>t[c]).bind(null,s),enumerable:!(i=R1(t,s))||i.enumerable});return e},Yu=(e,t,n)=>(n=e!=null?k1(P1(e)):{},T1(t||!e||!e.__esModule?Wu(n,"default",{value:e,enumerable:!0}):n,e));var O1=new Set(["https://json-schema.org/draft/2020-12/schema","http://json-schema.org/draft/2020-12/schema"]),MR=new Set(["https://json-schema.org/draft/2019-09/schema","http://json-schema.org/draft/2019-09/schema"]),x1=new Set(["https://json-schema.org/draft-07/schema","http://json-schema.org/draft-07/schema"]),N1=new Set(["https://json-schema.org/draft-06/schema","http://json-schema.org/draft-06/schema"]);function LR(e){return typeof e=="string"&&MR.has(e.replace(/#$/,""))}function DR(e,t){if(!("$schema"in e)||typeof e.$schema!="string")return"2020-12";let n=e.$schema.replace(/#$/,"");if(O1.has(n))return"2020-12";if(MR.has(n))return"2019-09";if(x1.has(n)||N1.has(n))return"draft-7";throw new Error(`JSON Schema declares an unsupported dialect ("$schema": "${e.$schema.slice(0,200)}"). The default validator supports JSON Schema 2020-12, 2019-09, draft-07, and draft-06; ${t}`)}var Dn="2025-11-25";var Qu=[Dn,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Xu="io.modelcontextprotocol/related-task",mr="io.modelcontextprotocol/protocolVersion",to="io.modelcontextprotocol/clientInfo",tr="io.modelcontextprotocol/serverInfo",pr="io.modelcontextprotocol/clientCapabilities",Un="io.modelcontextprotocol/subscriptionId",Yr="io.modelcontextprotocol/logLevel";var Vn="2.0";var Wr=Fr(()=>ie([p(),J(),te(),er(),ee(p(),Wr),j(Wr)])),Me=ee(p(),Wr),mS=j(Wr),os=ie([p(),J().int()]),as=p(),ed=I({ttl:J().optional()}),td=I({taskId:p()}),ss=le({progressToken:os.optional(),[Xu]:td.optional()}),Qe=I({_meta:ss.optional()}),Fn=Qe.extend({task:ed.optional()}),Le=I({method:p(),params:Qe.loose().optional()}),ct=I({_meta:ss.optional()}),lt=I({method:p(),params:ct.loose().optional()}),cs=le({get[tr](){return io.optional().catch(void 0)}}),De=le({_meta:cs.optional()}),Qr=ie([p(),J().int()]),ls=I({jsonrpc:C(Vn),id:Qr,...Le.shape}).strict(),us=I({jsonrpc:C(Vn),...lt.shape}).strict(),ro=I({jsonrpc:C(Vn),id:Qr,result:De}).strict(),no=I({jsonrpc:C(Vn),id:Qr.optional(),error:I({code:J().int(),message:p(),data:ae().optional()})}).strict(),ds=ie([ls,us,ro,no]),pS=ie([ro,no]),ms=De.strict(),rd=ct.extend({requestId:Qr.optional(),reason:p().optional()}),ps=lt.extend({method:C("notifications/cancelled"),params:rd}),nd=I({src:p(),mimeType:p().optional(),sizes:j(p()).optional(),theme:fe(["light","dark"]).optional()}),Xr=I({icons:j(nd).optional()}),dr=I({name:p(),title:p().optional()}),io=dr.extend({...dr.shape,...Xr.shape,version:p(),websiteUrl:p().optional(),description:p().optional()}),C1=Ut(I({applyDefaults:te().optional()}),Me),A1=ur(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Ut(I({form:C1.optional(),url:Me.optional()}),Me.optional())),id=le({list:Me.optional(),cancel:Me.optional(),requests:le({sampling:le({createMessage:Me.optional()}).optional(),elicitation:le({create:Me.optional()}).optional()}).optional()}),od=le({list:Me.optional(),cancel:Me.optional(),requests:le({tools:le({call:Me.optional()}).optional()}).optional()}),ad=I({experimental:ee(p(),Me).optional(),sampling:I({context:Me.optional(),tools:Me.optional()}).optional(),elicitation:A1.optional(),roots:I({listChanged:te().optional()}).optional(),tasks:id.optional(),extensions:ee(p(),Me).optional()}),sd=Qe.extend({protocolVersion:p(),capabilities:ad,clientInfo:io}),cd=Le.extend({method:C("initialize"),params:sd}),fs=I({experimental:ee(p(),Me).optional(),logging:Me.optional(),completions:Me.optional(),prompts:I({listChanged:te().optional()}).optional(),resources:I({subscribe:te().optional(),listChanged:te().optional()}).optional(),tools:I({listChanged:te().optional()}).optional(),tasks:od.optional(),extensions:ee(p(),Me).optional()}),ld=De.extend({protocolVersion:p(),capabilities:fs,serverInfo:io,instructions:p().optional()}),ud=lt.extend({method:C("notifications/initialized"),params:ct.optional()}),dd=Le.extend({method:C("server/discover"),params:Qe.optional()}),md=De.extend({supportedVersions:j(p()),capabilities:fs,instructions:p().optional()}),hs=Le.extend({method:C("ping"),params:Qe.optional()}),pd=I({progress:J(),total:se(J()),message:se(p())}),fd=I({...ct.shape,...pd.shape,progressToken:os}),gs=lt.extend({method:C("notifications/progress"),params:fd}),hd=Qe.extend({cursor:as.optional()}),en=Le.extend({params:hd.optional()}),tn=De.extend({nextCursor:as.optional()}),vs=I({uri:p(),mimeType:se(p()),_meta:ee(p(),ae()).optional()}),ys=vs.extend({text:p()}),fS=p().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),_s=vs.extend({blob:fS}),rn=fe(["user","assistant"]),fr=I({audience:j(rn).optional(),priority:J().min(0).max(1).optional(),lastModified:Pt.datetime({offset:!0}).optional()}),Ss=I({...dr.shape,...Xr.shape,uri:p(),description:se(p()),mimeType:se(p()),size:se(J()),annotations:fr.optional(),_meta:se(le({}))}),gd=I({...dr.shape,...Xr.shape,uriTemplate:p(),description:se(p()),mimeType:se(p()),annotations:fr.optional(),_meta:se(le({}))}),vd=en.extend({method:C("resources/list")}),yd=tn.extend({resources:j(Ss)}),_d=en.extend({method:C("resources/templates/list")}),Sd=tn.extend({resourceTemplates:j(gd)}),oo=Qe.extend({uri:p()}),bd=oo,$d=Le.extend({method:C("resources/read"),params:bd}),wd=De.extend({contents:j(ie([ys,_s]))}),zd=lt.extend({method:C("notifications/resources/list_changed"),params:ct.optional()}),kd=oo,Rd=Le.extend({method:C("resources/subscribe"),params:kd}),Id=oo,Pd=Le.extend({method:C("resources/unsubscribe"),params:Id}),bs=I({toolsListChanged:te().optional(),promptsListChanged:te().optional(),resourcesListChanged:te().optional(),resourceSubscriptions:j(p()).optional()}),Ed=Qe.extend({notifications:bs}),Td=Le.extend({method:C("subscriptions/listen"),params:Ed}),Od=ct.extend({notifications:bs}),xd=lt.extend({method:C("notifications/subscriptions/acknowledged"),params:Od}),Nd=cs.extend({[Un]:Qr}),jd=De.extend({_meta:Nd}),Cd=ct.extend({uri:p()}),Ad=lt.extend({method:C("notifications/resources/updated"),params:Cd}),qd=I({name:p(),description:se(p()),required:se(te())}),Md=I({...dr.shape,...Xr.shape,description:se(p()),arguments:se(j(qd)),_meta:se(le({}))}),Ld=en.extend({method:C("prompts/list")}),Dd=tn.extend({prompts:j(Md)}),Ud=Qe.extend({name:p(),arguments:ee(p(),p()).optional()}),Vd=Le.extend({method:C("prompts/get"),params:Ud}),ao=I({type:C("text"),text:p(),annotations:fr.optional(),_meta:ee(p(),ae()).optional()}),so=I({type:C("image"),data:fS,mimeType:p(),annotations:fr.optional(),_meta:ee(p(),ae()).optional()}),co=I({type:C("audio"),data:fS,mimeType:p(),annotations:fr.optional(),_meta:ee(p(),ae()).optional()}),Fd=I({type:C("tool_use"),name:p(),id:p(),input:ee(p(),ae()),_meta:ee(p(),ae()).optional()}),Zd=I({type:C("resource"),resource:ie([ys,_s]),annotations:fr.optional(),_meta:ee(p(),ae()).optional()}),Jd=Ss.extend({type:C("resource_link")}),lo=ie([ao,so,co,Jd,Zd]),Bd=I({role:rn,content:lo}),Kd=De.extend({description:p().optional(),messages:j(Bd)}),Hd=lt.extend({method:C("notifications/prompts/list_changed"),params:ct.optional()}),Gd=I({title:p().optional(),readOnlyHint:te().optional(),destructiveHint:te().optional(),idempotentHint:te().optional(),openWorldHint:te().optional()}),Wd=I({taskSupport:fe(["required","optional","forbidden"]).optional()}),$s=I({...dr.shape,...Xr.shape,description:p().optional(),inputSchema:I({type:C("object"),properties:ee(p(),Wr).optional(),required:j(p()).optional()}).catchall(ae()),outputSchema:le({$schema:p().optional()}).optional(),annotations:Gd.optional(),execution:Wd.optional(),_meta:ee(p(),ae()).optional()}),Yd=en.extend({method:C("tools/list")}),Qd=tn.extend({tools:j($s)}),ws=De.extend({content:j(lo).default([]),structuredContent:ae().optional(),isError:te().optional()}),hS=ws.or(De.extend({toolResult:ae()})),Xd=Fn.extend({name:p(),arguments:ee(p(),ae()).optional()}),em=Le.extend({method:C("tools/call"),params:Xd}),tm=lt.extend({method:C("notifications/tools/list_changed"),params:ct.optional()}),gS=I({autoRefresh:te().default(!0),debounceMs:J().int().nonnegative().default(300)}),nn=fe(["debug","info","notice","warning","error","critical","alert","emergency"]),rm=Qe.extend({level:nn}),nm=Le.extend({method:C("logging/setLevel"),params:rm}),im=ct.extend({level:nn,logger:p().optional(),data:ae()}),om=lt.extend({method:C("notifications/message"),params:im}),am=I({name:p().optional()}),sm=I({hints:j(am).optional(),costPriority:J().min(0).max(1).optional(),speedPriority:J().min(0).max(1).optional(),intelligencePriority:J().min(0).max(1).optional()}),cm=I({mode:fe(["auto","required","none"]).optional()}),lm=I({type:C("tool_result"),toolUseId:p().describe("The unique identifier for the corresponding tool call."),content:j(lo),structuredContent:ae().optional(),isError:te().optional(),_meta:ee(p(),ae()).optional()}),um=Vr("type",[ao,so,co]),Ln=Vr("type",[ao,so,co,Fd,lm]),dm=I({role:rn,content:ie([Ln,j(Ln)]),_meta:ee(p(),ae()).optional()}),mm=Fn.extend({messages:j(dm),modelPreferences:sm.optional(),systemPrompt:p().optional(),includeContext:fe(["none","thisServer","allServers"]).optional(),temperature:J().optional(),maxTokens:J().int(),stopSequences:j(p()).optional(),metadata:Me.optional(),tools:j($s).optional(),toolChoice:cm.optional()}),pm=Le.extend({method:C("sampling/createMessage"),params:mm}),fm=De.extend({model:p(),stopReason:se(fe(["endTurn","stopSequence","maxTokens"]).or(p())),role:rn,content:um}),hm=De.extend({model:p(),stopReason:se(fe(["endTurn","stopSequence","maxTokens","toolUse"]).or(p())),role:rn,content:ie([Ln,j(Ln)])}),zs=I({type:C("boolean"),title:p().optional(),description:p().optional(),default:te().optional()}),uo=I({type:C("string"),title:p().optional(),description:p().optional(),minLength:J().optional(),maxLength:J().optional(),format:fe(["email","uri","date","date-time"]).optional(),default:p().optional()}),mo=I({type:fe(["number","integer"]),title:p().optional(),description:p().optional(),minimum:J().optional(),maximum:J().optional(),default:J().optional()}),ks=I({type:C("string"),title:p().optional(),description:p().optional(),enum:j(p()),default:p().optional()}),Rs=I({type:C("string"),title:p().optional(),description:p().optional(),oneOf:j(I({const:p(),title:p()})),default:p().optional()}),Is=I({type:C("string"),title:p().optional(),description:p().optional(),enum:j(p()),enumNames:j(p()).optional(),default:p().optional()}),gm=ie([ks,Rs]),Ps=I({type:C("array"),title:p().optional(),description:p().optional(),minItems:J().optional(),maxItems:J().optional(),items:I({type:C("string"),enum:j(p())}),default:j(p()).optional()}),Es=I({type:C("array"),title:p().optional(),description:p().optional(),minItems:J().optional(),maxItems:J().optional(),items:I({anyOf:j(I({const:p(),title:p()}))}),default:j(p()).optional()}),vm=ie([Ps,Es]),ym=ie([Is,gm,vm]),Ts=ie([ym,zs,uo,mo]),po=Fn.extend({mode:C("form").optional(),message:p(),requestedSchema:I({type:C("object"),properties:ee(p(),Ts),required:j(p()).optional()}).catchall(ae())}),_m=Fn.extend({mode:C("url"),message:p(),elicitationId:p(),url:p().url()}),Sm=ie([po,_m]),bm=Le.extend({method:C("elicitation/create"),params:Sm}),$m=ct.extend({elicitationId:p()}),wm=lt.extend({method:C("notifications/elicitation/complete"),params:$m}),zm=De.extend({action:fe(["accept","decline","cancel"]),content:ur(e=>e===null?void 0:e,ee(p(),ie([p(),J(),te(),j(p())])).optional())}),km=I({type:C("ref/resource"),uri:p()}),Rm=I({type:C("ref/prompt"),name:p()}),Im=Qe.extend({ref:ie([Rm,km]),argument:I({name:p(),value:p()}),context:I({arguments:ee(p(),p()).optional()}).optional()}),Pm=Le.extend({method:C("completion/complete"),params:Im}),Em=De.extend({completion:le({values:j(p()).max(100),total:se(J().int()),hasMore:se(te())})}),Tm=I({uri:p().startsWith("file://"),name:p().optional(),_meta:ee(p(),ae()).optional()}),Om=Le.extend({method:C("roots/list"),params:Qe.optional()}),xm=De.extend({roots:j(Tm)}),Nm=lt.extend({method:C("notifications/roots/list_changed"),params:ct.optional()}),vS=le({ttl:J().optional(),pollInterval:J().optional()}),jm=fe(["working","input_required","completed","failed","cancelled"]),on=I({taskId:p(),status:jm,ttl:ie([J(),er()]),createdAt:p(),lastUpdatedAt:p(),pollInterval:se(J()),statusMessage:se(p())}),yS=De.extend({task:on}),Cm=ct.merge(on),_S=lt.extend({method:C("notifications/tasks/status"),params:Cm}),SS=Le.extend({method:C("tasks/get"),params:Qe.extend({taskId:p()})}),bS=De.merge(on),$S=Le.extend({method:C("tasks/result"),params:Qe.extend({taskId:p()})}),wS=De.loose(),zS=en.extend({method:C("tasks/list")}),kS=tn.extend({tasks:j(on)}),RS=Le.extend({method:C("tasks/cancel"),params:Qe.extend({taskId:p()})}),IS=De.merge(on),PS=ie([hs,cd,dd,Pm,nm,Vd,Ld,vd,_d,$d,Rd,Pd,Td,em,Yd]),ES=ie([ps,gs,ud,Nm]),TS=ie([ms,fm,hm,zm,xm]),OS=ie([hs,pm,bm,Om]),xS=ie([ps,gs,om,Ad,zd,tm,Hd,xd,wm]),NS=ie([ms,ld,md,Em,Kd,Dd,yd,Sd,wd,ws,Qd,jd]),Ye=Vi().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:F_.custom,message:"URL must be parseable",fatal:!0}),ka}).refine(e=>{let t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),jS=le({resource:p().url(),authorization_servers:j(Ye).optional(),jwks_uri:p().url().optional(),scopes_supported:j(p()).optional(),bearer_methods_supported:j(p()).optional(),resource_signing_alg_values_supported:j(p()).optional(),resource_name:p().optional(),resource_documentation:p().optional(),resource_policy_uri:p().url().optional(),resource_tos_uri:p().url().optional(),tls_client_certificate_bound_access_tokens:te().optional(),authorization_details_types_supported:j(p()).optional(),dpop_signing_alg_values_supported:j(p()).optional(),dpop_bound_access_tokens_required:te().optional()}),Am=le({issuer:p(),authorization_endpoint:Ye,token_endpoint:Ye,registration_endpoint:Ye.optional(),scopes_supported:j(p()).optional(),response_types_supported:j(p()),response_modes_supported:j(p()).optional(),grant_types_supported:j(p()).optional(),token_endpoint_auth_methods_supported:j(p()).optional(),token_endpoint_auth_signing_alg_values_supported:j(p()).optional(),service_documentation:Ye.optional(),revocation_endpoint:Ye.optional(),revocation_endpoint_auth_methods_supported:j(p()).optional(),revocation_endpoint_auth_signing_alg_values_supported:j(p()).optional(),introspection_endpoint:p().optional(),introspection_endpoint_auth_methods_supported:j(p()).optional(),introspection_endpoint_auth_signing_alg_values_supported:j(p()).optional(),code_challenge_methods_supported:j(p()).optional(),client_id_metadata_document_supported:te().optional(),authorization_response_iss_parameter_supported:te().optional().catch(void 0)}),qm=le({issuer:p(),authorization_endpoint:Ye,token_endpoint:Ye,userinfo_endpoint:Ye.optional(),jwks_uri:Ye,registration_endpoint:Ye.optional(),scopes_supported:j(p()).optional(),response_types_supported:j(p()),response_modes_supported:j(p()).optional(),grant_types_supported:j(p()).optional(),acr_values_supported:j(p()).optional(),subject_types_supported:j(p()),id_token_signing_alg_values_supported:j(p()),id_token_encryption_alg_values_supported:j(p()).optional(),id_token_encryption_enc_values_supported:j(p()).optional(),userinfo_signing_alg_values_supported:j(p()).optional(),userinfo_encryption_alg_values_supported:j(p()).optional(),userinfo_encryption_enc_values_supported:j(p()).optional(),request_object_signing_alg_values_supported:j(p()).optional(),request_object_encryption_alg_values_supported:j(p()).optional(),request_object_encryption_enc_values_supported:j(p()).optional(),token_endpoint_auth_methods_supported:j(p()).optional(),token_endpoint_auth_signing_alg_values_supported:j(p()).optional(),display_values_supported:j(p()).optional(),claim_types_supported:j(p()).optional(),claims_supported:j(p()).optional(),service_documentation:p().optional(),claims_locales_supported:j(p()).optional(),ui_locales_supported:j(p()).optional(),claims_parameter_supported:te().optional(),request_parameter_supported:te().optional(),request_uri_parameter_supported:te().optional(),require_request_uri_registration:te().optional(),op_policy_uri:Ye.optional(),op_tos_uri:Ye.optional(),client_id_metadata_document_supported:te().optional(),authorization_response_iss_parameter_supported:te().optional().catch(void 0)}),CS=I({...qm.shape,...Am.pick({code_challenge_methods_supported:!0}).shape}),AS=I({access_token:p(),id_token:p().optional(),token_type:p(),expires_in:ns.number().optional(),scope:p().optional(),refresh_token:p().optional()}).strip(),qS=I({issued_token_type:C("urn:ietf:params:oauth:token-type:id-jag"),access_token:p(),token_type:p().optional(),expires_in:J().optional(),scope:p().optional()}).strip(),MS=I({error:p(),error_description:p().optional(),error_uri:p().optional()}),dS=Ye.optional().or(C("").transform(()=>{})),Mm=I({redirect_uris:j(Ye),token_endpoint_auth_method:p().optional(),grant_types:j(p()).optional(),response_types:j(p()).optional(),application_type:p().optional(),client_name:p().optional(),client_uri:Ye.optional(),logo_uri:dS,scope:p().optional(),contacts:j(p()).optional(),tos_uri:dS,policy_uri:p().optional(),jwks_uri:Ye.optional(),jwks:Du().optional(),software_id:p().optional(),software_version:p().optional(),software_statement:p().optional()}).strip(),Lm=I({client_id:p(),client_secret:p().optional(),client_id_issued_at:J().optional(),client_secret_expires_at:J().optional()}).strip(),LS=Mm.merge(Lm),DS=I({error:p(),error_description:p().optional()}).strip(),US=I({token:p(),token_type_hint:p().optional()}).strip();var JS=Symbol.for("mcp.sdk.errorBrands");function GS(e,t){let n=new Set,i=t;for(;typeof i=="function";){let r=i.mcpBrand;Object.prototype.hasOwnProperty.call(i,"mcpBrand")&&typeof r=="string"&&n.add(r),i=Object.getPrototypeOf(i)}n.size!==0&&Object.defineProperty(e,JS,{value:n,enumerable:!1,configurable:!0})}function ho(e,t){try{if(typeof t=="object"&&t!==null&&Object.prototype.hasOwnProperty.call(e,"mcpBrand")&&typeof e.mcpBrand=="string"&&Object.prototype.hasOwnProperty.call(t,JS)){let n=t[JS];if(n&&typeof n.has=="function"&&n.has(e.mcpBrand))return!0}}catch{}return Function.prototype[Symbol.hasInstance].call(e,t)}var q1=class cI extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.OAuthError"})}static[Symbol.hasInstance](t){return ho(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return ho(this,t)}constructor(t,n,i){super(n),this.code=t,this.errorUri=i,this.name="OAuthError",GS(this,new.target)}toResponseObject(){let t={error:this.code,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}static fromResponse(t){return new cI(t.error,t.error_description??t.error,t.error_uri)}},$e=(function(e){return e.NotConnected="NOT_CONNECTED",e.AlreadyConnected="ALREADY_CONNECTED",e.NotInitialized="NOT_INITIALIZED",e.CapabilityNotSupported="CAPABILITY_NOT_SUPPORTED",e.RequestTimeout="REQUEST_TIMEOUT",e.ConnectionClosed="CONNECTION_CLOSED",e.SendFailed="SEND_FAILED",e.InvalidResult="INVALID_RESULT",e.UnsupportedResultType="UNSUPPORTED_RESULT_TYPE",e.InputRequiredRoundsExceeded="INPUT_REQUIRED_ROUNDS_EXCEEDED",e.ListPaginationExceeded="LIST_PAGINATION_EXCEEDED",e.MethodNotSupportedByProtocolVersion="METHOD_NOT_SUPPORTED_BY_PROTOCOL_VERSION",e.EraNegotiationFailed="ERA_NEGOTIATION_FAILED",e.ClientHttpNotImplemented="CLIENT_HTTP_NOT_IMPLEMENTED",e.ClientHttpAuthentication="CLIENT_HTTP_AUTHENTICATION",e.ClientHttpForbidden="CLIENT_HTTP_FORBIDDEN",e.ClientHttpUnexpectedContent="CLIENT_HTTP_UNEXPECTED_CONTENT",e.ClientHttpFailedToOpenStream="CLIENT_HTTP_FAILED_TO_OPEN_STREAM",e.ClientHttpFailedToTerminateSession="CLIENT_HTTP_FAILED_TO_TERMINATE_SESSION",e})({}),ge=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkError"})}static[Symbol.hasInstance](e){return ho(this,e)}static isInstance(e){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return ho(this,e)}constructor(e,t,n){super(t),this.code=e,this.data=n,this.name="SdkError",GS(this,new.target)}},M1=class extends ge{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkHttpError"})}constructor(e,t,n){super(e,t,n),this.name="SdkHttpError"}get status(){return this.data.status}get statusText(){return this.data.statusText}};function WR(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function L1(e,t,n){return e==="elicitation"&&t==="form"&&n.form===void 0&&n.url===void 0}function lI(e){switch(e.method){case"elicitation/create":return e.params?.mode==="url"?{elicitation:{url:{}}}:{elicitation:{form:{}}};case"sampling/createMessage":{let t=e.params;return t!==void 0&&(t.tools!==void 0||t.toolChoice!==void 0)?{sampling:{tools:{}}}:{sampling:{}}}case"roots/list":return{roots:{}};default:return}}function Km(e,t){let n={};for(let[i,r]of Object.entries(e)){if(r===void 0)continue;let o=t===void 0?void 0:t[i];if(o===void 0){n[i]=r;continue}if(WR(r)&&WR(o)){let a={};for(let[s,c]of Object.entries(r))c!==void 0&&o[s]===void 0&&!L1(i,s,o)&&(a[s]=c);Object.keys(a).length>0&&(n[i]=a)}}return Object.keys(n).length>0?n:void 0}var uI="2026-07-28",sn=[uI];function vo(e){return e>=uI}function dI(e){return e.filter(t=>!vo(t))}function WS(e){return e.filter(t=>vo(t))}function mI(e){let t=e.structuredContent;return t===void 0||!(typeof t!="object"||t===null||Array.isArray(t))||(e.content?.some(n=>n.type==="text")??!1)?e:{...e,content:[...e.content??[],{type:"text",text:JSON.stringify(t)}]}}var pI=["task","inputRequests","requestState"];function YS(e){return e===null||typeof e!="object"||Array.isArray(e)||e.content!==void 0||pI.some(t=>t in e)?e:{...e,content:[]}}function D1(){let e=Fr(()=>ie([p(),J(),te(),er(),ee(p(),e),j(e)])),t=ee(p(),e),n=ie([p(),J().int()]),i=p(),r=I({ttl:J().optional()}),o=I({taskId:p()}),a=le({progressToken:n.optional(),"io.modelcontextprotocol/related-task":o.optional()}),s=I({_meta:a.optional()}),c=s.extend({task:r.optional()}),l=I({method:p(),params:s.loose().optional()}),u=I({_meta:a.optional()}),d=I({method:p(),params:u.loose().optional()}),m=le({_meta:a.optional()}),v=ie([p(),J().int()]),y=m.strict(),f=u.extend({requestId:v.optional(),reason:p().optional()}),h=d.extend({method:C("notifications/cancelled"),params:f}),g=I({src:p(),mimeType:p().optional(),sizes:j(p()).optional(),theme:fe(["light","dark"]).optional()}),$=I({icons:j(g).optional()}),_=I({name:p(),title:p().optional()}),b=_.extend({..._.shape,...$.shape,version:p(),websiteUrl:p().optional(),description:p().optional()}),k=Ut(I({applyDefaults:te().optional()}),t),z=ur(ot=>ot&&typeof ot=="object"&&!Array.isArray(ot)&&Object.keys(ot).length===0?{form:{}}:ot,Ut(I({form:k.optional(),url:t.optional()}),t.optional())),S=le({list:t.optional(),cancel:t.optional(),requests:le({sampling:le({createMessage:t.optional()}).optional(),elicitation:le({create:t.optional()}).optional()}).optional()}),w=le({list:t.optional(),cancel:t.optional(),requests:le({tools:le({call:t.optional()}).optional()}).optional()}),T=I({experimental:ee(p(),t).optional(),sampling:I({context:t.optional(),tools:t.optional()}).optional(),elicitation:z.optional(),roots:I({listChanged:te().optional()}).optional(),tasks:S.optional(),extensions:ee(p(),t).optional()}),M=s.extend({protocolVersion:p(),capabilities:T,clientInfo:b}),N=l.extend({method:C("initialize"),params:M}),U=I({experimental:ee(p(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:I({listChanged:te().optional()}).optional(),resources:I({subscribe:te().optional(),listChanged:te().optional()}).optional(),tools:I({listChanged:te().optional()}).optional(),tasks:w.optional(),extensions:ee(p(),t).optional()}),X=m.extend({protocolVersion:p(),capabilities:U,serverInfo:b,instructions:p().optional()}),ne=d.extend({method:C("notifications/initialized"),params:u.optional()}),be=l.extend({method:C("ping"),params:s.optional()}),je=I({progress:J(),total:se(J()),message:se(p())}),xe=I({...u.shape,...je.shape,progressToken:n}),Ze=d.extend({method:C("notifications/progress"),params:xe}),ze=s.extend({cursor:i.optional()}),O=l.extend({params:ze.optional()}),L=m.extend({nextCursor:i.optional()}),B=I({uri:p(),mimeType:se(p()),_meta:ee(p(),ae()).optional()}),R=B.extend({text:p()}),E=p().refine(ot=>{try{return atob(ot),!0}catch{return!1}},{message:"Invalid Base64 string"}),A=B.extend({blob:E}),Y=fe(["user","assistant"]),ce=I({audience:j(Y).optional(),priority:J().min(0).max(1).optional(),lastModified:Pt.datetime({offset:!0}).optional()}),_e=I({..._.shape,...$.shape,uri:p(),description:se(p()),mimeType:se(p()),size:se(J()),annotations:ce.optional(),_meta:se(le({}))}),pe=I({..._.shape,...$.shape,uriTemplate:p(),description:se(p()),mimeType:se(p()),annotations:ce.optional(),_meta:se(le({}))}),Ne=O.extend({method:C("resources/list")}),ut=L.extend({resources:j(_e)}),P=O.extend({method:C("resources/templates/list")}),D=L.extend({resourceTemplates:j(pe)}),F=s.extend({uri:p()}),de=F,me=l.extend({method:C("resources/read"),params:de}),ye=m.extend({contents:j(ie([R,A]))}),Ue=d.extend({method:C("notifications/resources/list_changed"),params:u.optional()}),He=F,nt=l.extend({method:C("resources/subscribe"),params:He}),Je=F,Ce=l.extend({method:C("resources/unsubscribe"),params:Je}),Et=u.extend({uri:p()}),We=d.extend({method:C("notifications/resources/updated"),params:Et}),rr=I({name:p(),description:se(p()),required:se(te())}),Ct=I({..._.shape,...$.shape,description:se(p()),arguments:se(j(rr)),_meta:se(le({}))}),nr=O.extend({method:C("prompts/list")}),gr=L.extend({prompts:j(Ct)}),vr=s.extend({name:p(),arguments:ee(p(),p()).optional()}),un=l.extend({method:C("prompts/get"),params:vr}),dn=I({type:C("text"),text:p(),annotations:ce.optional(),_meta:ee(p(),ae()).optional()}),mn=I({type:C("image"),data:E,mimeType:p(),annotations:ce.optional(),_meta:ee(p(),ae()).optional()}),pn=I({type:C("audio"),data:E,mimeType:p(),annotations:ce.optional(),_meta:ee(p(),ae()).optional()}),$o=I({type:C("tool_use"),name:p(),id:p(),input:ee(p(),ae()),_meta:ee(p(),ae()).optional()}),yr=I({type:C("resource"),resource:ie([R,A]),annotations:ce.optional(),_meta:ee(p(),ae()).optional()}),wo=_e.extend({type:C("resource_link")}),Tt=ie([dn,mn,pn,wo,yr]),Kn=I({role:Y,content:Tt}),Hn=m.extend({description:p().optional(),messages:j(Kn)}),fn=d.extend({method:C("notifications/prompts/list_changed"),params:u.optional()}),zo=I({title:p().optional(),readOnlyHint:te().optional(),destructiveHint:te().optional(),idempotentHint:te().optional(),openWorldHint:te().optional()}),Gn=I({taskSupport:fe(["required","optional","forbidden"]).optional()}),hn=I({..._.shape,...$.shape,description:p().optional(),inputSchema:I({type:C("object"),properties:ee(p(),e).optional(),required:j(p()).optional()}).catchall(ae()),outputSchema:I({type:C("object"),properties:ee(p(),e).optional(),required:j(p()).optional()}).catchall(ae()).optional(),annotations:zo.optional(),execution:Gn.optional(),_meta:ee(p(),ae()).optional()}),Wn=O.extend({method:C("tools/list")}),Yn=L.extend({tools:j(hn)}),Qn=m.extend({content:j(Tt),structuredContent:ee(p(),ae()).optional(),isError:te().optional()}),it=c.extend({name:p(),arguments:ee(p(),ae()).optional()}),ko=l.extend({method:C("tools/call"),params:it}),Js=d.extend({method:C("notifications/tools/list_changed"),params:u.optional()}),Xn=fe(["debug","info","notice","warning","error","critical","alert","emergency"]),Ro=s.extend({level:Xn}),Io=l.extend({method:C("logging/setLevel"),params:Ro}),Po=u.extend({level:Xn,logger:p().optional(),data:ae()}),Eo=d.extend({method:C("notifications/message"),params:Po}),To=I({name:p().optional()}),Oo=I({hints:j(To).optional(),costPriority:J().min(0).max(1).optional(),speedPriority:J().min(0).max(1).optional(),intelligencePriority:J().min(0).max(1).optional()}),xo=I({mode:fe(["auto","required","none"]).optional()}),Bs=I({type:C("tool_result"),toolUseId:p().describe("The unique identifier for the corresponding tool call."),content:j(Tt),structuredContent:I({}).loose().optional(),isError:te().optional(),_meta:ee(p(),ae()).optional()}),No=Vr("type",[dn,mn,pn]),_r=Vr("type",[dn,mn,pn,$o,Bs]),jo=I({role:Y,content:ie([_r,j(_r)]),_meta:ee(p(),ae()).optional()}),Co=c.extend({messages:j(jo),modelPreferences:Oo.optional(),systemPrompt:p().optional(),includeContext:fe(["none","thisServer","allServers"]).optional(),temperature:J().optional(),maxTokens:J().int(),stopSequences:j(p()).optional(),metadata:t.optional(),tools:j(hn).optional(),toolChoice:xo.optional()}),Ao=l.extend({method:C("sampling/createMessage"),params:Co}),qo=m.extend({model:p(),stopReason:se(fe(["endTurn","stopSequence","maxTokens"]).or(p())),role:Y,content:No}),Mo=m.extend({model:p(),stopReason:se(fe(["endTurn","stopSequence","maxTokens","toolUse"]).or(p())),role:Y,content:ie([_r,j(_r)])}),Lo=I({type:C("boolean"),title:p().optional(),description:p().optional(),default:te().optional()}),Do=I({type:C("string"),title:p().optional(),description:p().optional(),minLength:J().optional(),maxLength:J().optional(),format:fe(["email","uri","date","date-time"]).optional(),default:p().optional()}),Uo=I({type:fe(["number","integer"]),title:p().optional(),description:p().optional(),minimum:J().optional(),maximum:J().optional(),default:J().optional()}),Vo=I({type:C("string"),title:p().optional(),description:p().optional(),enum:j(p()),default:p().optional()}),Fo=I({type:C("string"),title:p().optional(),description:p().optional(),oneOf:j(I({const:p(),title:p()})),default:p().optional()}),Zo=I({type:C("string"),title:p().optional(),description:p().optional(),enum:j(p()),enumNames:j(p()).optional(),default:p().optional()}),Jo=ie([Vo,Fo]),gn=I({type:C("array"),title:p().optional(),description:p().optional(),minItems:J().optional(),maxItems:J().optional(),items:I({type:C("string"),enum:j(p())}),default:j(p()).optional()}),vn=I({type:C("array"),title:p().optional(),description:p().optional(),minItems:J().optional(),maxItems:J().optional(),items:I({anyOf:j(I({const:p(),title:p()}))}),default:j(p()).optional()}),Ks=ie([gn,vn]),Hs=ie([Zo,Jo,Ks]),zt=ie([Hs,Lo,Do,Uo]),kt=c.extend({mode:C("form").optional(),message:p(),requestedSchema:I({type:C("object"),properties:ee(p(),zt),required:j(p()).optional()}).catchall(ae())}),Bo=c.extend({mode:C("url"),message:p(),elicitationId:p(),url:p().url()}),At=ie([kt,Bo]),Gs=l.extend({method:C("elicitation/create"),params:At}),Ws=u.extend({elicitationId:p()}),Ys=d.extend({method:C("notifications/elicitation/complete"),params:Ws}),Qs=m.extend({action:fe(["accept","decline","cancel"]),content:ur(ot=>ot===null?void 0:ot,ee(p(),ie([p(),J(),te(),j(p())])).optional())}),Xs=I({type:C("ref/resource"),uri:p()}),ec=I({type:C("ref/prompt"),name:p()}),tc=s.extend({ref:ie([ec,Xs]),argument:I({name:p(),value:p()}),context:I({arguments:ee(p(),p()).optional()}).optional()}),Ko=l.extend({method:C("completion/complete"),params:tc}),rc=m.extend({completion:le({values:j(p()).max(100),total:se(J().int()),hasMore:se(te())})}),nc=I({uri:p().startsWith("file://"),name:p().optional(),_meta:ee(p(),ae()).optional()}),ei=l.extend({method:C("roots/list"),params:s.optional()}),Ho=m.extend({roots:j(nc)}),ic=d.extend({method:C("notifications/roots/list_changed"),params:u.optional()}),oc=le({ttl:J().optional(),pollInterval:J().optional()}),ac=fe(["working","input_required","completed","failed","cancelled"]),Sr=I({taskId:p(),status:ac,ttl:ie([J(),er()]),createdAt:p(),lastUpdatedAt:p(),pollInterval:se(J()),statusMessage:se(p())}),ht=m.extend({task:Sr}),sc=u.merge(Sr),yn=d.extend({method:C("notifications/tasks/status"),params:sc}),ti=l.extend({method:C("tasks/get"),params:s.extend({taskId:p()})}),ri=m.merge(Sr),ni=l.extend({method:C("tasks/result"),params:s.extend({taskId:p()})}),mp=m.loose(),gt=O.extend({method:C("tasks/list")}),Ve=L.extend({tasks:j(Sr)}),_n=l.extend({method:C("tasks/cancel"),params:s.extend({taskId:p()})});return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:n,CursorSchema:i,TaskMetadataSchema:r,RelatedTaskMetadataSchema:o,RequestMetaSchema:a,BaseRequestParamsSchema:s,TaskAugmentedRequestParamsSchema:c,RequestSchema:l,NotificationsParamsSchema:u,NotificationSchema:d,ResultSchema:m,RequestIdSchema:v,EmptyResultSchema:y,CancelledNotificationParamsSchema:f,CancelledNotificationSchema:h,IconSchema:g,IconsSchema:$,BaseMetadataSchema:_,ImplementationSchema:b,ClientTasksCapabilitySchema:S,ServerTasksCapabilitySchema:w,ClientCapabilitiesSchema:T,InitializeRequestParamsSchema:M,InitializeRequestSchema:N,ServerCapabilitiesSchema:U,InitializeResultSchema:X,InitializedNotificationSchema:ne,PingRequestSchema:be,ProgressSchema:je,ProgressNotificationParamsSchema:xe,ProgressNotificationSchema:Ze,PaginatedRequestParamsSchema:ze,PaginatedRequestSchema:O,PaginatedResultSchema:L,ResourceContentsSchema:B,TextResourceContentsSchema:R,BlobResourceContentsSchema:A,RoleSchema:Y,AnnotationsSchema:ce,ResourceSchema:_e,ResourceTemplateSchema:pe,ListResourcesRequestSchema:Ne,ListResourcesResultSchema:ut,ListResourceTemplatesRequestSchema:P,ListResourceTemplatesResultSchema:D,ResourceRequestParamsSchema:F,ReadResourceRequestParamsSchema:de,ReadResourceRequestSchema:me,ReadResourceResultSchema:ye,ResourceListChangedNotificationSchema:Ue,SubscribeRequestParamsSchema:He,SubscribeRequestSchema:nt,UnsubscribeRequestParamsSchema:Je,UnsubscribeRequestSchema:Ce,ResourceUpdatedNotificationParamsSchema:Et,ResourceUpdatedNotificationSchema:We,PromptArgumentSchema:rr,PromptSchema:Ct,ListPromptsRequestSchema:nr,ListPromptsResultSchema:gr,GetPromptRequestParamsSchema:vr,GetPromptRequestSchema:un,TextContentSchema:dn,ImageContentSchema:mn,AudioContentSchema:pn,ToolUseContentSchema:$o,EmbeddedResourceSchema:yr,ResourceLinkSchema:wo,ContentBlockSchema:Tt,PromptMessageSchema:Kn,GetPromptResultSchema:Hn,PromptListChangedNotificationSchema:fn,ToolAnnotationsSchema:zo,ToolExecutionSchema:Gn,ToolSchema:hn,ListToolsRequestSchema:Wn,ListToolsResultSchema:Yn,CallToolResultSchema:Qn,CallToolRequestParamsSchema:it,CallToolRequestSchema:ko,ToolListChangedNotificationSchema:Js,LoggingLevelSchema:Xn,SetLevelRequestParamsSchema:Ro,SetLevelRequestSchema:Io,LoggingMessageNotificationParamsSchema:Po,LoggingMessageNotificationSchema:Eo,ModelHintSchema:To,ModelPreferencesSchema:Oo,ToolChoiceSchema:xo,ToolResultContentSchema:Bs,SamplingContentSchema:No,SamplingMessageContentBlockSchema:_r,SamplingMessageSchema:jo,CreateMessageRequestParamsSchema:Co,CreateMessageRequestSchema:Ao,CreateMessageResultSchema:qo,CreateMessageResultWithToolsSchema:Mo,BooleanSchemaSchema:Lo,StringSchemaSchema:Do,NumberSchemaSchema:Uo,UntitledSingleSelectEnumSchemaSchema:Vo,TitledSingleSelectEnumSchemaSchema:Fo,LegacyTitledEnumSchemaSchema:Zo,SingleSelectEnumSchemaSchema:Jo,UntitledMultiSelectEnumSchemaSchema:gn,TitledMultiSelectEnumSchemaSchema:vn,MultiSelectEnumSchemaSchema:Ks,EnumSchemaSchema:Hs,PrimitiveSchemaDefinitionSchema:zt,ElicitRequestFormParamsSchema:kt,ElicitRequestURLParamsSchema:Bo,ElicitRequestParamsSchema:At,ElicitRequestSchema:Gs,ElicitationCompleteNotificationParamsSchema:Ws,ElicitationCompleteNotificationSchema:Ys,ElicitResultSchema:Qs,ResourceTemplateReferenceSchema:Xs,PromptReferenceSchema:ec,CompleteRequestParamsSchema:tc,CompleteRequestSchema:Ko,CompleteResultSchema:rc,RootSchema:nc,ListRootsRequestSchema:ei,ListRootsResultSchema:Ho,RootsListChangedNotificationSchema:ic,TaskCreationParamsSchema:oc,TaskStatusSchema:ac,TaskSchema:Sr,CreateTaskResultSchema:ht,TaskStatusNotificationParamsSchema:sc,TaskStatusNotificationSchema:yn,GetTaskRequestSchema:ti,GetTaskResultSchema:ri,GetTaskPayloadRequestSchema:ni,GetTaskPayloadResultSchema:mp,ListTasksRequestSchema:gt,ListTasksResultSchema:Ve,CancelTaskRequestSchema:_n,CancelTaskResultSchema:m.merge(Sr),ClientRequestSchema:ie([be,N,Ko,Io,un,nr,Ne,P,me,nt,Ce,ko,Wn,ti,ni,gt,_n]),ClientNotificationSchema:ie([h,Ze,ne,ic,yn]),ClientResultSchema:ie([y,qo,Mo,Qs,Ho,ri,Ve,ht]),ServerRequestSchema:ie([be,Ao,Gs,ei,ti,ni,gt,_n]),ServerNotificationSchema:ie([h,Ze,Eo,We,Ue,Js,fn,yn,Ys]),ServerResultSchema:ie([y,X,rc,Hn,gr,ut,D,ye,Qn,Yn,ri,Ve,ht]),CallToolResultWireSchema:ae().superRefine((ot,PP)=>{if(!(typeof ot!="object"||ot===null||Array.isArray(ot)||ot.content!==void 0)){for(let Nb of pI)if(Nb in ot){PP.addIssue({code:"custom",message:`content is required when the body carries '${Nb}' \u2014 another result family cannot default into an empty tools/call success`});return}}}).transform(YS).pipe(Qn)}}var U1;function fI(){return U1??=D1()}function hI(e){return e.type!=="object"}var V1=new Set(["const","enum","default","examples"]),F1=new Set(["properties","patternProperties","$defs","definitions","dependentSchemas","dependencies"]);function YR(e){return e!==void 0&&!(typeof e=="string"&&e.startsWith("#"))}function Z1(e){let t=typeof e.$schema=="string"?e.$schema:void 0;if(YR(e.$id))return{...t!==void 0&&{$schema:t},type:"object",properties:{result:e},required:["result"]};let n=LR(e.$schema)&&e.$recursiveAnchor!==!0,i=(r,o)=>{if(Array.isArray(r))return r.map(c=>i(c,!1));if(r===null||typeof r!="object"||!o&&YR(r.$id))return r;let a={},s=!1;for(let[c,l]of Object.entries(r))o?a[c]=i(l,!1):(c==="$ref"||c==="$dynamicRef")&&typeof l=="string"?a[c]=l==="#"?"#/properties/result":l.startsWith("#/")?`#/properties/result${l.slice(1)}`:l:c==="$recursiveRef"&&l==="#"&&n?s=!0:V1.has(c)?a[c]=l:F1.has(c)?a[c]=i(l,!0):a[c]=i(l,!1);return s&&("$ref"in a?a.allOf=[...Array.isArray(a.allOf)?a.allOf:[],{$ref:"#/properties/result"}]:a.$ref="#/properties/result"),a};return{...t!==void 0&&{$schema:t},type:"object",properties:{result:i(e,!1)},required:["result"]}}var gI={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"tasks/get":null,"tasks/result":null,"tasks/list":null,"tasks/cancel":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},vI={"notifications/cancelled":null,"notifications/progress":null,"notifications/initialized":null,"notifications/roots/list_changed":null,"notifications/tasks/status":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/elicitation/complete":null},J1={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},Dm;function QS(){if(Dm)return Dm;let e=fI();return Dm={requestSchemas:{ping:e.PingRequestSchema,initialize:e.InitializeRequestSchema,"completion/complete":e.CompleteRequestSchema,"logging/setLevel":e.SetLevelRequestSchema,"prompts/get":e.GetPromptRequestSchema,"prompts/list":e.ListPromptsRequestSchema,"resources/list":e.ListResourcesRequestSchema,"resources/templates/list":e.ListResourceTemplatesRequestSchema,"resources/read":e.ReadResourceRequestSchema,"resources/subscribe":e.SubscribeRequestSchema,"resources/unsubscribe":e.UnsubscribeRequestSchema,"tools/call":e.CallToolRequestSchema,"tools/list":e.ListToolsRequestSchema,"tasks/get":e.GetTaskRequestSchema,"tasks/result":e.GetTaskPayloadRequestSchema,"tasks/list":e.ListTasksRequestSchema,"tasks/cancel":e.CancelTaskRequestSchema,"sampling/createMessage":e.CreateMessageRequestSchema,"elicitation/create":e.ElicitRequestSchema,"roots/list":e.ListRootsRequestSchema},notificationSchemas:{"notifications/cancelled":e.CancelledNotificationSchema,"notifications/progress":e.ProgressNotificationSchema,"notifications/initialized":e.InitializedNotificationSchema,"notifications/roots/list_changed":e.RootsListChangedNotificationSchema,"notifications/tasks/status":e.TaskStatusNotificationSchema,"notifications/message":e.LoggingMessageNotificationSchema,"notifications/resources/updated":e.ResourceUpdatedNotificationSchema,"notifications/resources/list_changed":e.ResourceListChangedNotificationSchema,"notifications/tools/list_changed":e.ToolListChangedNotificationSchema,"notifications/prompts/list_changed":e.PromptListChangedNotificationSchema,"notifications/elicitation/complete":e.ElicitationCompleteNotificationSchema},resultSchemas:{ping:e.EmptyResultSchema,initialize:e.InitializeResultSchema,"completion/complete":e.CompleteResultSchema,"logging/setLevel":e.EmptyResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"resources/subscribe":e.EmptyResultSchema,"resources/unsubscribe":e.EmptyResultSchema,"tools/call":e.CallToolResultWireSchema,"tools/list":e.ListToolsResultSchema,"sampling/createMessage":e.CreateMessageResultWithToolsSchema,"elicitation/create":e.ElicitResultSchema,"roots/list":e.ListRootsResultSchema}},Dm}function yI(e){return Object.prototype.hasOwnProperty.call(gI,e)}function _I(e){return Object.prototype.hasOwnProperty.call(vI,e)}function B1(e){return Object.prototype.hasOwnProperty.call(J1,e)}function K1(e){return B1(e)?QS().resultSchemas[e]:void 0}function H1(e){return yI(e)?QS().requestSchemas[e]:void 0}function G1(e){return _I(e)?QS().notificationSchemas[e]:void 0}var P6=Object.keys(gI),E6=Object.keys(vI);function BS(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Um(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let n=e.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,reason:"invalid",message:String(n.error)}}var QR={ok:!1,reason:"not-in-era"};function XR(e){return BS(e)&&BS(e.outputSchema)&&hI(e.outputSchema)}var XS={era:"2025-11-25",hasRequestMethod:yI,hasNotificationMethod:_I,validateRequest:(e,t)=>Um(H1(e),t),validateResult:(e,t)=>Um(K1(e),t),validateNotification:(e,t)=>Um(G1(e),t),hasInputRequestMethod:()=>!1,validateInputRequest:()=>QR,validateInputResponse:()=>QR,samplingResultVariant:((e,t)=>{let n=fI();return Um(e?n.CreateMessageResultWithToolsSchema:n.CreateMessageResultSchema,t)}),outboundEnvelope:e=>{},validateEnvelopeMeta:e=>[],projectCallToolResult(e,t){let n=mI(e),i=n.structuredContent;if(i===void 0)return n;let r=typeof i!="object"||i===null||Array.isArray(i),o=t!==void 0&&hI(t);return!r&&!o?n:{...n,structuredContent:{result:i}}},decodeResult(e,t){if(BS(t)&&"resultType"in t){let n={...t};return delete n.resultType,{kind:"complete",result:n}}return{kind:"complete",result:t}},encodeResult(e,t){if(e!=="tools/list")return t;let n=t.tools;return!Array.isArray(n)||!n.some(i=>XR(i))?t:{...t,tools:n.map(i=>XR(i)?{...i,outputSchema:Z1(i.outputSchema)}:i)}},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope:e=>{}};function W1(){let e=Fr(()=>ie([p(),J(),te(),er(),ee(p(),e),j(e)])),t=ee(p(),e),n=ie([p(),J().int()]),i=p(),r=ie([p(),J().int()]),o=fe(["user","assistant"]),a=fe(["debug","info","notice","warning","error","critical","alert","emergency"]),s=p().refine(Ve=>{try{return atob(Ve),!0}catch{return!1}},{message:"Invalid Base64 string"}),c=I({ttl:J().optional()}),l=I({taskId:p()}),u=le({progressToken:n.optional(),"io.modelcontextprotocol/related-task":l.optional()}),d=I({_meta:u.optional()}),m=d.extend({task:c.optional()}),v=I({_meta:u.optional()}),y=I({method:p(),params:v.loose().optional()}),f=I({src:p(),mimeType:p().optional(),sizes:j(p()).optional(),theme:fe(["light","dark"]).optional()}),h=I({icons:j(f).optional()}),g=I({name:p(),title:p().optional()}),$=g.extend({...g.shape,...h.shape,version:p(),websiteUrl:p().optional(),description:p().optional()}),_=Ut(I({applyDefaults:te().optional()}),t),b=ur(Ve=>Ve&&typeof Ve=="object"&&!Array.isArray(Ve)&&Object.keys(Ve).length===0?{form:{}}:Ve,Ut(I({form:_.optional(),url:t.optional()}),t.optional())),k=le({list:t.optional(),cancel:t.optional(),requests:le({sampling:le({createMessage:t.optional()}).optional(),elicitation:le({create:t.optional()}).optional()}).optional()}),z=le({list:t.optional(),cancel:t.optional(),requests:le({tools:le({call:t.optional()}).optional()}).optional()}),S=I({experimental:ee(p(),t).optional(),sampling:I({context:t.optional(),tools:t.optional()}).optional(),elicitation:b.optional(),roots:I({listChanged:te().optional()}).optional(),tasks:k.optional(),extensions:ee(p(),t).optional()}),w=I({experimental:ee(p(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:I({listChanged:te().optional()}).optional(),resources:I({subscribe:te().optional(),listChanged:te().optional()}).optional(),tools:I({listChanged:te().optional()}).optional(),tasks:z.optional(),extensions:ee(p(),t).optional()}),T=I({progress:J(),total:se(J()),message:se(p())}),M=I({...v.shape,...T.shape,progressToken:n}),N=y.extend({method:C("notifications/progress"),params:M}),U=v.extend({level:a,logger:p().optional(),data:ae()}),X=y.extend({method:C("notifications/message"),params:U}),ne=I({uri:p(),mimeType:se(p()),_meta:ee(p(),ae()).optional()}),be=ne.extend({text:p()}),je=ne.extend({blob:s}),xe=I({audience:j(o).optional(),priority:J().min(0).max(1).optional(),lastModified:Pt.datetime({offset:!0}).optional()}),Ze=I({...g.shape,...h.shape,uri:p(),description:se(p()),mimeType:se(p()),size:se(J()),annotations:xe.optional(),_meta:se(le({}))}),ze=I({...g.shape,...h.shape,uriTemplate:p(),description:se(p()),mimeType:se(p()),annotations:xe.optional(),_meta:se(le({}))}),O=y.extend({method:C("notifications/resources/list_changed"),params:v.optional()}),L=v.extend({uri:p()}),B=y.extend({method:C("notifications/resources/updated"),params:L}),R=I({name:p(),description:se(p()),required:se(te())}),E=I({...g.shape,...h.shape,description:se(p()),arguments:se(j(R)),_meta:se(le({}))}),A=y.extend({method:C("notifications/prompts/list_changed"),params:v.optional()}),Y=I({type:C("text"),text:p(),annotations:xe.optional(),_meta:ee(p(),ae()).optional()}),ce=I({type:C("image"),data:s,mimeType:p(),annotations:xe.optional(),_meta:ee(p(),ae()).optional()}),_e=I({type:C("audio"),data:s,mimeType:p(),annotations:xe.optional(),_meta:ee(p(),ae()).optional()}),pe=I({type:C("tool_use"),name:p(),id:p(),input:ee(p(),ae()),_meta:ee(p(),ae()).optional()}),Ne=I({type:C("resource"),resource:ie([be,je]),annotations:xe.optional(),_meta:ee(p(),ae()).optional()}),ut=Ze.extend({type:C("resource_link")}),P=ie([Y,ce,_e,ut,Ne]),D=I({role:o,content:P}),F=I({title:p().optional(),readOnlyHint:te().optional(),destructiveHint:te().optional(),idempotentHint:te().optional(),openWorldHint:te().optional()}),de=y.extend({method:C("notifications/tools/list_changed"),params:v.optional()}),me=I({name:p().optional()}),ye=I({hints:j(me).optional(),costPriority:J().min(0).max(1).optional(),speedPriority:J().min(0).max(1).optional(),intelligencePriority:J().min(0).max(1).optional()}),Ue=I({mode:fe(["auto","required","none"]).optional()}),He=I({type:C("boolean"),title:p().optional(),description:p().optional(),default:te().optional()}),nt=I({type:C("string"),title:p().optional(),description:p().optional(),minLength:J().optional(),maxLength:J().optional(),format:fe(["email","uri","date","date-time"]).optional(),default:p().optional()}),Je=I({type:fe(["number","integer"]),title:p().optional(),description:p().optional(),minimum:J().optional(),maximum:J().optional(),default:J().optional()}),Ce=I({type:C("string"),title:p().optional(),description:p().optional(),enum:j(p()),default:p().optional()}),Et=I({type:C("string"),title:p().optional(),description:p().optional(),oneOf:j(I({const:p(),title:p()})),default:p().optional()}),We=I({type:C("string"),title:p().optional(),description:p().optional(),enum:j(p()),enumNames:j(p()).optional(),default:p().optional()}),rr=ie([Ce,Et]),Ct=I({type:C("array"),title:p().optional(),description:p().optional(),minItems:J().optional(),maxItems:J().optional(),items:I({type:C("string"),enum:j(p())}),default:j(p()).optional()}),nr=I({type:C("array"),title:p().optional(),description:p().optional(),minItems:J().optional(),maxItems:J().optional(),items:I({anyOf:j(I({const:p(),title:p()}))}),default:j(p()).optional()}),gr=ie([Ct,nr]),vr=ie([We,rr,gr]),un=ie([vr,He,nt,Je]),dn=m.extend({mode:C("form").optional(),message:p(),requestedSchema:I({type:C("object"),properties:ee(p(),un),required:j(p()).optional()}).catchall(ae())}),mn=I({type:C("ref/resource"),uri:p()}),pn=I({type:C("ref/prompt"),name:p()}),$o=I({uri:p().startsWith("file://"),name:p().optional(),_meta:ee(p(),ae()).optional()}),yr=S.shape,wo=I({experimental:yr.experimental,sampling:yr.sampling,elicitation:yr.elicitation,roots:yr.roots,extensions:yr.extensions}),Tt=w.shape,Kn=I({experimental:Tt.experimental,logging:Tt.logging,completions:Tt.completions,prompts:Tt.prompts,resources:Tt.resources,tools:Tt.tools,extensions:Tt.extensions}),Hn=le({progressToken:n.optional(),[mr]:p(),[to]:$.optional(),[pr]:wo,[Yr]:a.optional()}),fn=I({...g.shape,...h.shape,description:p().optional(),inputSchema:le({$schema:p().optional(),type:C("object")}),outputSchema:le({$schema:p().optional()}).optional(),annotations:F.optional(),_meta:ee(p(),ae()).optional()}),zo=I({type:C("tool_result"),toolUseId:p(),content:j(P),structuredContent:ae().optional(),isError:te().optional(),_meta:ee(p(),ae()).optional()}),Gn=ie([Y,ce,_e,pe,zo]),hn=I({role:o,content:ie([Gn,j(Gn)]),_meta:ee(p(),ae()).optional()}),Wn=p(),Yn=le({[tr]:$.optional().catch(void 0)}),Qn=Yn.optional();function it(Ve){return le({_meta:Qn,resultType:Wn.default("complete"),...Ve})}let ko=it({}),Js=it({nextCursor:i.optional()}),Xn=it({content:j(P),structuredContent:ae().optional(),isError:te().optional()}),Ro=it({ttlMs:J().int().min(0),cacheScope:fe(["public","private"]),tools:j(fn),nextCursor:i.optional()}),Io=it({ttlMs:J().int().min(0),cacheScope:fe(["public","private"]),prompts:j(E),nextCursor:i.optional()}),Po=it({description:p().optional(),messages:j(D)}),Eo=it({ttlMs:J().int().min(0),cacheScope:fe(["public","private"]),resources:j(Ze),nextCursor:i.optional()}),To=it({ttlMs:J().int().min(0),cacheScope:fe(["public","private"]),resourceTemplates:j(ze),nextCursor:i.optional()}),Oo=it({ttlMs:J().int().min(0),cacheScope:fe(["public","private"]),contents:j(ie([be,je]))}),xo=it({completion:I({values:j(p()).max(100),total:J().int().optional(),hasMore:te().optional()}).loose()}),Bs=it({ttlMs:J().int().min(0),cacheScope:fe(["public","private"])}),No=it({ttlMs:J().int().min(0).catch(0),cacheScope:fe(["public","private"]).catch("private"),supportedVersions:j(p()),capabilities:Kn,instructions:p().optional()}),_r=I({messages:j(hn),modelPreferences:ye.optional(),systemPrompt:p().optional(),includeContext:fe(["none","thisServer","allServers"]).optional(),temperature:J().optional(),maxTokens:J().int(),stopSequences:j(p()).optional(),metadata:t.optional(),tools:j(fn).optional(),toolChoice:Ue.optional()}),jo=I({method:C("sampling/createMessage"),params:_r}),Co=I({method:C("roots/list"),params:I({_meta:ee(p(),ae()).optional()}).optional()}),Ao=I({...hn.shape,model:p(),stopReason:p().optional()}),qo=I({roots:j($o)}),Mo=I({action:fe(["accept","decline","cancel"]),content:ee(p(),ie([p(),J(),te(),j(p())])).optional()}),Lo=I({mode:C("url"),message:p(),url:p().url()}),Do=ie([dn,Lo]),Uo=I({method:C("elicitation/create"),params:Do}),Vo=ie([jo,Co,Uo]),Fo=ie([Ao,qo,Mo]),Zo=ee(p(),Vo),Jo=ee(p(),Fo),gn=it({inputRequests:Zo.optional(),requestState:p().optional()}),vn={inputResponses:Jo.optional(),requestState:p().optional()},Ks=I({_meta:Hn,...vn}),Hs=le({progressToken:n.optional()});function zt(Ve,_n){return I({method:C(Ve),params:I({_meta:Hn,..._n})})}function kt(Ve,_n){return I({method:C(Ve),params:I({_meta:Hs.optional(),..._n}).optional()})}let Bo={name:p(),arguments:ee(p(),ae()).optional(),...vn},At={cursor:i.optional()},Gs=zt("tools/call",Bo),Ws=zt("tools/list",At),Ys=zt("prompts/list",At),Qs=zt("prompts/get",{name:p(),arguments:ee(p(),p()).optional(),...vn}),Xs=zt("resources/list",At),ec=zt("resources/templates/list",At),tc=zt("resources/read",{uri:p(),...vn}),Ko={ref:ie([pn,mn]),argument:I({name:p(),value:p()}),context:I({arguments:ee(p(),p()).optional()}).optional()},rc=zt("completion/complete",Ko),nc=zt("server/discover",{}),ei=I({toolsListChanged:te().optional(),promptsListChanged:te().optional(),resourcesListChanged:te().optional(),resourceSubscriptions:j(p()).optional()}),Ho={notifications:ei},ic=zt("subscriptions/listen",Ho),oc=Yn.extend({"io.modelcontextprotocol/subscriptionId":r}),ac=le({_meta:oc,resultType:Wn.default("complete")}),Sr={"tools/call":kt("tools/call",Bo),"tools/list":kt("tools/list",At),"prompts/get":kt("prompts/get",{name:p(),arguments:ee(p(),p()).optional()}),"prompts/list":kt("prompts/list",At),"resources/list":kt("resources/list",At),"resources/templates/list":kt("resources/templates/list",At),"resources/read":kt("resources/read",{uri:p()}),"completion/complete":kt("completion/complete",Ko),"server/discover":kt("server/discover",{}),"subscriptions/listen":kt("subscriptions/listen",Ho)};function ht(Ve){return le({_meta:Qn,...Ve})}let sc={"tools/call":ht({content:j(P),structuredContent:ae().optional(),isError:te().optional()}),"tools/list":ht({ttlMs:J().int().min(0),cacheScope:fe(["public","private"]),tools:j(fn),nextCursor:i.optional()}),"prompts/get":ht({description:p().optional(),messages:j(D)}),"prompts/list":ht({ttlMs:J().int().min(0),cacheScope:fe(["public","private"]),prompts:j(E),nextCursor:i.optional()}),"resources/list":ht({ttlMs:J().int().min(0),cacheScope:fe(["public","private"]),resources:j(Ze),nextCursor:i.optional()}),"resources/templates/list":ht({ttlMs:J().int().min(0),cacheScope:fe(["public","private"]),resourceTemplates:j(ze),nextCursor:i.optional()}),"resources/read":ht({ttlMs:J().int().min(0),cacheScope:fe(["public","private"]),contents:j(ie([be,je]))}),"completion/complete":ht({completion:I({values:j(p()).max(100),total:J().int().optional(),hasMore:te().optional()}).loose()}),"server/discover":ht({ttlMs:J().int().min(0).catch(0),cacheScope:fe(["public","private"]).catch("private"),supportedVersions:j(p()),capabilities:Kn,instructions:p().optional()}),"subscriptions/listen":ht({})},yn=le({"io.modelcontextprotocol/subscriptionId":r.optional()}),ti=I({method:C("notifications/subscriptions/acknowledged"),params:I({_meta:yn.optional(),notifications:ei})}),ri=I({_meta:yn.optional(),requestId:r,reason:p().optional()}),ni=I({method:C("notifications/cancelled"),params:ri}),mp={"notifications/cancelled":ni,"notifications/progress":N,"notifications/message":X,"notifications/resources/updated":B,"notifications/resources/list_changed":O,"notifications/tools/list_changed":de,"notifications/prompts/list_changed":A,"notifications/subscriptions/acknowledged":ti},gt=Ve=>I({jsonrpc:C("2.0"),id:ie([p(),J().int()]),result:Ve}).strict();return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:n,CursorSchema:i,RequestIdSchema:r,RoleSchema:o,LoggingLevelSchema:a,TaskMetadataSchema:c,RelatedTaskMetadataSchema:l,RequestMetaSchema:u,BaseRequestParamsSchema:d,TaskAugmentedRequestParamsSchema:m,NotificationsParamsSchema:v,NotificationSchema:y,IconSchema:f,IconsSchema:h,BaseMetadataSchema:g,ImplementationSchema:$,ClientTasksCapabilitySchema:k,ServerTasksCapabilitySchema:z,ClientCapabilitiesSchema:S,ServerCapabilitiesSchema:w,ProgressSchema:T,ProgressNotificationParamsSchema:M,ProgressNotificationSchema:N,LoggingMessageNotificationParamsSchema:U,LoggingMessageNotificationSchema:X,ResourceContentsSchema:ne,TextResourceContentsSchema:be,BlobResourceContentsSchema:je,AnnotationsSchema:xe,ResourceSchema:Ze,ResourceTemplateSchema:ze,ResourceListChangedNotificationSchema:O,ResourceUpdatedNotificationParamsSchema:L,ResourceUpdatedNotificationSchema:B,PromptArgumentSchema:R,PromptSchema:E,PromptListChangedNotificationSchema:A,TextContentSchema:Y,ImageContentSchema:ce,AudioContentSchema:_e,ToolUseContentSchema:pe,EmbeddedResourceSchema:Ne,ResourceLinkSchema:ut,ContentBlockSchema:P,PromptMessageSchema:D,ToolAnnotationsSchema:F,ToolListChangedNotificationSchema:de,ModelHintSchema:me,ModelPreferencesSchema:ye,ToolChoiceSchema:Ue,BooleanSchemaSchema:He,StringSchemaSchema:nt,NumberSchemaSchema:Je,UntitledSingleSelectEnumSchemaSchema:Ce,TitledSingleSelectEnumSchemaSchema:Et,LegacyTitledEnumSchemaSchema:We,SingleSelectEnumSchemaSchema:rr,UntitledMultiSelectEnumSchemaSchema:Ct,TitledMultiSelectEnumSchemaSchema:nr,MultiSelectEnumSchemaSchema:gr,EnumSchemaSchema:vr,PrimitiveSchemaDefinitionSchema:un,ElicitRequestFormParamsSchema:dn,ResourceTemplateReferenceSchema:mn,PromptReferenceSchema:pn,RootSchema:$o,ClientCapabilities2026Schema:wo,ServerCapabilities2026Schema:Kn,RequestMetaEnvelopeSchema:Hn,ToolSchema:fn,ToolResultContentSchema:zo,SamplingMessageContentBlockSchema:Gn,SamplingMessageSchema:hn,ResultTypeSchema:Wn,ResultMetaSchema:Yn,ResultSchema:ko,PaginatedResultSchema:Js,CallToolResultSchema:Xn,ListToolsResultSchema:Ro,ListPromptsResultSchema:Io,GetPromptResultSchema:Po,ListResourcesResultSchema:Eo,ListResourceTemplatesResultSchema:To,ReadResourceResultSchema:Oo,CompleteResultSchema:xo,CacheableResultSchema:Bs,DiscoverResultSchema:No,CreateMessageRequestParamsSchema:_r,CreateMessageRequestSchema:jo,ListRootsRequestSchema:Co,CreateMessageResultSchema:Ao,ListRootsResultSchema:qo,ElicitResultSchema:Mo,ElicitRequestURLParamsSchema:Lo,ElicitRequestParamsSchema:Do,ElicitRequestSchema:Uo,InputRequestSchema:Vo,InputResponseSchema:Fo,InputRequestsSchema:Zo,InputResponsesSchema:Jo,InputRequiredResultSchema:gn,InputResponseRequestParamsSchema:Ks,CallToolRequestSchema:Gs,ListToolsRequestSchema:Ws,ListPromptsRequestSchema:Ys,GetPromptRequestSchema:Qs,ListResourcesRequestSchema:Xs,ListResourceTemplatesRequestSchema:ec,ReadResourceRequestSchema:tc,CompleteRequestSchema:rc,DiscoverRequestSchema:nc,SubscriptionFilterSchema:ei,SubscriptionsListenRequestSchema:ic,SubscriptionsListenResultMetaSchema:oc,SubscriptionsListenResultSchema:ac,dispatchRequestSchemas:Sr,dispatchResultSchemas:sc,NotificationMetaSchema:yn,SubscriptionsAcknowledgedNotificationSchema:ti,CancelledNotificationParamsSchema:ri,CancelledNotificationSchema:ni,notificationSchemas2026:mp,JSONRPCResultResponseSchema:gt(ko),CallToolResultResponseSchema:gt(ie([Xn,gn])),ListToolsResultResponseSchema:gt(Ro),ListPromptsResultResponseSchema:gt(Io),GetPromptResultResponseSchema:gt(ie([Po,gn])),ListResourcesResultResponseSchema:gt(Eo),ListResourceTemplatesResultResponseSchema:gt(To),ReadResourceResultResponseSchema:gt(ie([Oo,gn])),CompleteResultResponseSchema:gt(xo),DiscoverResultResponseSchema:gt(No)}}var Y1;function Jn(){return Y1??=W1()}var Q1=["tools/list","prompts/list","resources/list","resources/templates/list","resources/read","server/discover"];function X1(e){return Q1.includes(e)}var fo=Symbol("modelcontextprotocol.resultCacheHintFallback");function Hm(e,t){if(t===void 0)return e;let n=e[fo];if(n===void 0)return{...e,[fo]:t};let i={},r=n.ttlMs??t.ttlMs;r!==void 0&&(i.ttlMs=r);let o=n.cacheScope??t.cacheScope;return o!==void 0&&(i.cacheScope=o),{...e,[fo]:i}}function eA(e){return e[fo]}function eb(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0}function tb(e){return e==="public"||e==="private"}function rb(e,t){if(e.ttlMs!==void 0&&!eb(e.ttlMs))throw new RangeError(`Invalid cache hint for ${t}: ttlMs must be a non-negative safe integer (got ${String(e.ttlMs)})`);if(e.cacheScope!==void 0&&!tb(e.cacheScope))throw new RangeError(`Invalid cache hint for ${t}: cacheScope must be 'public' or 'private' (got ${String(e.cacheScope)})`)}var Q=(function(e){return e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.ResourceNotFound=-32002]="ResourceNotFound",e[e.MissingRequiredClientCapability=-32021]="MissingRequiredClientCapability",e[e.UnsupportedProtocolVersion=-32022]="UnsupportedProtocolVersion",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired",e})({}),ue=class SI extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ProtocolError"})}static[Symbol.hasInstance](t){return ho(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return ho(this,t)}constructor(t,n,i){super(n),this.code=t,this.data=i,this.name="ProtocolError",GS(this,new.target)}static fromError(t,n,i){if(t===Q.UrlElicitationRequired&&i){let r=i;if(r.elicitations)return new bI(r.elicitations,n)}if(t===Q.UnsupportedProtocolVersion&&i){let r=i;if(Array.isArray(r.supported)&&typeof r.requested=="string")return new yo({supported:r.supported,requested:r.requested},n)}if(t===Q.InvalidParams||t===Q.ResourceNotFound){let r=i;if(typeof r?.uri=="string"&&(t===Q.ResourceNotFound||Object.keys(r).length===1))return new Gm(r.uri,n)}if(t===Q.MissingRequiredClientCapability&&i){let r=i;if(r.requiredCapabilities!==null&&typeof r.requiredCapabilities=="object"&&!Array.isArray(r.requiredCapabilities))return new Wm({requiredCapabilities:r.requiredCapabilities},n)}return new SI(t,n,i)}},Gm=class extends ue{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ResourceNotFoundError"})}constructor(e,t=`Resource not found: ${e}`){super(Q.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},bI=class extends ue{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UrlElicitationRequiredError"})}constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(Q.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},yo=class extends ue{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UnsupportedProtocolVersionError"})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(Q.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},Wm=class extends ue{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.MissingRequiredClientCapabilityError"})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(", ")}`){super(Q.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},tA=0,rA="private",nA=["tools/call","prompts/get","resources/read"];function iA(e,t){let n=t.resultType;if(n===void 0)return{...t,resultType:"complete"};if(n==="complete"||nA.includes(e))return t;throw new ue(Q.InternalError,`Handler for ${e} returned resultType '${String(n)}', but results of ${e} only support 'complete' on protocol revision 2026-07-28`)}function oA(e,t){let n=eA(t);if(t.resultType!=="complete"||!X1(e))return n===void 0?t:uA(t);let i=t,r=eb(i.ttlMs)?i.ttlMs:cA(n),o=tb(i.cacheScope)?i.cacheScope:lA(n),a={...i,ttlMs:r,cacheScope:o};return delete a[fo],a}function aA(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function sA(e,t){if(t===void 0)return e;let n=e._meta;return n===void 0?{...e,_meta:{[tr]:t}}:!aA(n)||n[tr]!==void 0?e:{...e,_meta:{...n,[tr]:t}}}function cA(e){return e!==void 0&&eb(e.ttlMs)?e.ttlMs:tA}function lA(e){return e!==void 0&&tb(e.cacheScope)?e.cacheScope:rA}function uA(e){let t={...e};return delete t[fo],t}var dA=["elicitation/create","sampling/createMessage","roots/list"],Vm;function $I(){if(Vm)return Vm;let e=Jn();return Vm={request:{"elicitation/create":I({method:C("elicitation/create"),params:e.ElicitRequestParamsSchema}),"sampling/createMessage":I({method:C("sampling/createMessage"),params:e.CreateMessageRequestParamsSchema}),"roots/list":I({method:C("roots/list"),params:le({}).optional()})},response:{"elicitation/create":e.ElicitResultSchema,"sampling/createMessage":e.CreateMessageResultSchema,"roots/list":e.ListRootsResultSchema}},Vm}function wI(e){return dA.includes(e)}function VS(e){return wI(e)?$I().request[e]:void 0}function mA(e){return wI(e)?$I().response[e]:void 0}var nb={"tools/call":null,"tools/list":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"completion/complete":null,"server/discover":null,"subscriptions/listen":null},zI={"notifications/cancelled":null,"notifications/progress":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/subscriptions/acknowledged":null};function kI(e){return Object.prototype.hasOwnProperty.call(nb,e)}function RI(e){return Object.prototype.hasOwnProperty.call(zI,e)}function pA(e){return Object.prototype.hasOwnProperty.call(nb,e)}function fA(e){return kI(e)?Jn().dispatchRequestSchemas[e]:void 0}function hA(e){return pA(e)?Jn().dispatchResultSchemas[e]:void 0}function gA(e){return RI(e)?Jn().notificationSchemas2026[e]:void 0}var T6=Object.keys(nb),O6=Object.keys(zI);function Ns(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Os(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let n=e.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,reason:"invalid",message:String(n.error)}}var vA={ok:!1,reason:"not-in-era"},yA=[mr,pr];function _A(e,t){let n=t,i=!1,r=()=>(i||(n={...n},i=!0),n),o=t.tools;e==="tools/list"&&Array.isArray(o)&&o.some(s=>Ns(s)&&"execution"in s)&&(r().tools=o.map(s=>{if(!Ns(s)||!("execution"in s))return s;let c={...s};return delete c.execution,c}));let a=t.capabilities;if(Ns(a)&&"tasks"in a){let s={...a};delete s.tasks,r().capabilities=s}return n}var ib={era:"2026-07-28",hasRequestMethod:kI,hasNotificationMethod:RI,hasInputRequestMethod:e=>VS(e)!==void 0,validateRequest:(e,t)=>Os(fA(e),t),validateResult:(e,t)=>Os(hA(e),t),validateNotification:(e,t)=>Os(gA(e),t),validateInputRequest:(e,t)=>Os(VS(e),t),validateInputResponse:(e,t)=>Os(mA(e),t),samplingResultVariant:()=>vA,outboundEnvelope(e){return{[mr]:e.protocolVersion,[to]:e.clientInfo,[pr]:e.clientCapabilities,...e.logLevel!==void 0&&{[Yr]:e.logLevel}}},validateEnvelopeMeta(e){let t=[];for(let i of yA)i in e||t.push({key:i,problem:"missing"});let n=Jn().RequestMetaEnvelopeSchema.safeParse(e);if(!n.success)for(let i of n.error.issues){let r=i.path.map(String),o=r.length>0?r.join("."):"_meta";r.length===1&&t.some(a=>a.key===o&&a.problem==="missing")||t.push({key:o,problem:i.message})}return t},projectCallToolResult:e=>mI(e),inputRequestSchema:VS,decodeResult(e,t){if(!Ns(t))return{kind:"invalid",error:new ge($e.InvalidResult,`Invalid result for ${e}: not an object`,{method:e})};let n=t.resultType;if(n===void 0)return{kind:"invalid",error:new ge($e.InvalidResult,`Invalid result for ${e}: missing required resultType \u2014 servers implementing protocol revision 2026-07-28 MUST include it (the absent-means-complete bridge applies only to earlier-revision servers)`,{method:e,violation:"missing-resultType"})};if(typeof n!="string")return{kind:"invalid",error:new ge($e.InvalidResult,`Invalid result for ${e}: non-string resultType`,{method:e,resultType:n})};if(n==="input_required"){let a=t.inputRequests,s=Ns(a)?a:{},c=t.requestState;return Object.keys(s).length===0&&typeof c!="string"?{kind:"invalid",error:new ge($e.InvalidResult,`Invalid result for ${e}: input_required carries neither inputRequests nor requestState (every input_required result must include at least one of the two)`,{method:e,violation:"input-required-missing-both"})}:{kind:"input_required",inputRequests:s,...typeof c=="string"&&{requestState:c}}}if(n!=="complete")return{kind:"invalid",error:new ge($e.UnsupportedResultType,`Unsupported result type '${n}' for ${e}`,{resultType:n,method:e})};let i=SA(),r=Object.hasOwn(i,e)?i[e]:void 0;if(r!==void 0){let a=r.safeParse(t);if(!a.success)return{kind:"invalid",error:new ge($e.InvalidResult,`Invalid result for ${e}: ${a.error}`,{method:e})}}let o={...t};return delete o.resultType,{kind:"complete",result:o}},encodeResult(e,t,n){return sA(oA(e,iA(e,_A(e,t))),n)},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope(e){if(e.envelope===void 0)return"Request is missing the required _meta envelope for protocol revision 2026-07-28 (io.modelcontextprotocol/protocolVersion, io.modelcontextprotocol/clientCapabilities)";let t=Jn().RequestMetaEnvelopeSchema.safeParse(e.envelope);if(!t.success)return`Invalid _meta envelope for protocol revision 2026-07-28: ${t.error.issues.map(n=>n.message).join("; ")}`}},Fm;function SA(){if(Fm)return Fm;let e=Jn();return Fm={"tools/call":e.CallToolResultSchema,"tools/list":e.ListToolsResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"completion/complete":e.CompleteResultSchema,"server/discover":e.DiscoverResultSchema},Fm}var qs="2026-07-28";function an(e){return e!==void 0&&vo(e)?ib:XS}function eI(e){return e.revision!==void 0?an(e.revision).era:e.era==="modern"?ib.era:XS.era}function FS(e){return II.some(t=>t.hasRequestMethod(e))}function ZS(e){return II.some(t=>t.hasNotificationMethod(e))}var II=[XS,ib];function tI(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Bn(e){if(!tI(e))return;let t=e._meta;return tI(t)?t:void 0}function Ym(e){let t=Bn(e);return t!==void 0&&mr in t}function Qm(e){let t=Bn(e)?.[mr];return typeof t=="string"?t:void 0}function Xm(e){return an(qs).validateEnvelopeMeta(e)}var bA=qR({AnnotationsSchema:()=>fr,AudioContentSchema:()=>co,BaseMetadataSchema:()=>dr,BaseRequestParamsSchema:()=>Qe,BlobResourceContentsSchema:()=>_s,BooleanSchemaSchema:()=>zs,CallToolRequestParamsSchema:()=>Xd,CallToolRequestSchema:()=>em,CallToolResultSchema:()=>ws,CancelTaskRequestSchema:()=>RS,CancelTaskResultSchema:()=>IS,CancelledNotificationParamsSchema:()=>rd,CancelledNotificationSchema:()=>ps,ClientCapabilitiesSchema:()=>ad,ClientNotificationSchema:()=>ES,ClientRequestSchema:()=>PS,ClientResultSchema:()=>TS,ClientTasksCapabilitySchema:()=>id,CompatibilityCallToolResultSchema:()=>hS,CompleteRequestParamsSchema:()=>Im,CompleteRequestSchema:()=>Pm,CompleteResultSchema:()=>Em,ContentBlockSchema:()=>lo,CreateMessageRequestParamsSchema:()=>mm,CreateMessageRequestSchema:()=>pm,CreateMessageResultSchema:()=>fm,CreateMessageResultWithToolsSchema:()=>hm,CreateTaskResultSchema:()=>yS,CursorSchema:()=>as,DiscoverRequestSchema:()=>dd,DiscoverResultSchema:()=>md,ElicitRequestFormParamsSchema:()=>po,ElicitRequestParamsSchema:()=>Sm,ElicitRequestSchema:()=>bm,ElicitRequestURLParamsSchema:()=>_m,ElicitResultSchema:()=>zm,ElicitationCompleteNotificationParamsSchema:()=>$m,ElicitationCompleteNotificationSchema:()=>wm,EmbeddedResourceSchema:()=>Zd,EmptyResultSchema:()=>ms,EnumSchemaSchema:()=>ym,GetPromptRequestParamsSchema:()=>Ud,GetPromptRequestSchema:()=>Vd,GetPromptResultSchema:()=>Kd,GetTaskPayloadRequestSchema:()=>$S,GetTaskPayloadResultSchema:()=>wS,GetTaskRequestSchema:()=>SS,GetTaskResultSchema:()=>bS,IconSchema:()=>nd,IconsSchema:()=>Xr,ImageContentSchema:()=>so,ImplementationSchema:()=>io,InitializeRequestParamsSchema:()=>sd,InitializeRequestSchema:()=>cd,InitializeResultSchema:()=>ld,InitializedNotificationSchema:()=>ud,JSONArraySchema:()=>mS,JSONObjectSchema:()=>Me,JSONRPCErrorResponseSchema:()=>no,JSONRPCMessageSchema:()=>ds,JSONRPCNotificationSchema:()=>us,JSONRPCRequestSchema:()=>ls,JSONRPCResponseSchema:()=>pS,JSONRPCResultResponseSchema:()=>ro,JSONValueSchema:()=>Wr,LegacyTitledEnumSchemaSchema:()=>Is,ListChangedOptionsBaseSchema:()=>gS,ListPromptsRequestSchema:()=>Ld,ListPromptsResultSchema:()=>Dd,ListResourceTemplatesRequestSchema:()=>_d,ListResourceTemplatesResultSchema:()=>Sd,ListResourcesRequestSchema:()=>vd,ListResourcesResultSchema:()=>yd,ListRootsRequestSchema:()=>Om,ListRootsResultSchema:()=>xm,ListTasksRequestSchema:()=>zS,ListTasksResultSchema:()=>kS,ListToolsRequestSchema:()=>Yd,ListToolsResultSchema:()=>Qd,LoggingLevelSchema:()=>nn,LoggingMessageNotificationParamsSchema:()=>im,LoggingMessageNotificationSchema:()=>om,ModelHintSchema:()=>am,ModelPreferencesSchema:()=>sm,MultiSelectEnumSchemaSchema:()=>vm,NotificationSchema:()=>lt,NotificationsParamsSchema:()=>ct,NumberSchemaSchema:()=>mo,PaginatedRequestParamsSchema:()=>hd,PaginatedRequestSchema:()=>en,PaginatedResultSchema:()=>tn,PingRequestSchema:()=>hs,PrimitiveSchemaDefinitionSchema:()=>Ts,ProgressNotificationParamsSchema:()=>fd,ProgressNotificationSchema:()=>gs,ProgressSchema:()=>pd,ProgressTokenSchema:()=>os,PromptArgumentSchema:()=>qd,PromptListChangedNotificationSchema:()=>Hd,PromptMessageSchema:()=>Bd,PromptReferenceSchema:()=>Rm,PromptSchema:()=>Md,ReadResourceRequestParamsSchema:()=>bd,ReadResourceRequestSchema:()=>$d,ReadResourceResultSchema:()=>wd,RelatedTaskMetadataSchema:()=>td,RequestIdSchema:()=>Qr,RequestMetaSchema:()=>ss,RequestSchema:()=>Le,ResourceContentsSchema:()=>vs,ResourceLinkSchema:()=>Jd,ResourceListChangedNotificationSchema:()=>zd,ResourceRequestParamsSchema:()=>oo,ResourceSchema:()=>Ss,ResourceTemplateReferenceSchema:()=>km,ResourceTemplateSchema:()=>gd,ResourceUpdatedNotificationParamsSchema:()=>Cd,ResourceUpdatedNotificationSchema:()=>Ad,ResultMetaObjectSchema:()=>cs,ResultSchema:()=>De,RoleSchema:()=>rn,RootSchema:()=>Tm,RootsListChangedNotificationSchema:()=>Nm,SamplingContentSchema:()=>um,SamplingMessageContentBlockSchema:()=>Ln,SamplingMessageSchema:()=>dm,ServerCapabilitiesSchema:()=>fs,ServerNotificationSchema:()=>xS,ServerRequestSchema:()=>OS,ServerResultSchema:()=>NS,ServerTasksCapabilitySchema:()=>od,SetLevelRequestParamsSchema:()=>rm,SetLevelRequestSchema:()=>nm,SingleSelectEnumSchemaSchema:()=>gm,StringSchemaSchema:()=>uo,SubscribeRequestParamsSchema:()=>kd,SubscribeRequestSchema:()=>Rd,SubscriptionFilterSchema:()=>bs,SubscriptionsAcknowledgedNotificationParamsSchema:()=>Od,SubscriptionsAcknowledgedNotificationSchema:()=>xd,SubscriptionsListenRequestParamsSchema:()=>Ed,SubscriptionsListenRequestSchema:()=>Td,SubscriptionsListenResultMetaSchema:()=>Nd,SubscriptionsListenResultSchema:()=>jd,TaskAugmentedRequestParamsSchema:()=>Fn,TaskCreationParamsSchema:()=>vS,TaskMetadataSchema:()=>ed,TaskSchema:()=>on,TaskStatusNotificationParamsSchema:()=>Cm,TaskStatusNotificationSchema:()=>_S,TaskStatusSchema:()=>jm,TextContentSchema:()=>ao,TextResourceContentsSchema:()=>ys,TitledMultiSelectEnumSchemaSchema:()=>Es,TitledSingleSelectEnumSchemaSchema:()=>Rs,ToolAnnotationsSchema:()=>Gd,ToolChoiceSchema:()=>cm,ToolExecutionSchema:()=>Wd,ToolListChangedNotificationSchema:()=>tm,ToolResultContentSchema:()=>lm,ToolSchema:()=>$s,ToolUseContentSchema:()=>Fd,UnsubscribeRequestParamsSchema:()=>Id,UnsubscribeRequestSchema:()=>Pd,UntitledMultiSelectEnumSchemaSchema:()=>Ps,UntitledSingleSelectEnumSchemaSchema:()=>ks});var Nt=e=>ls.safeParse(e).success,cn=e=>us.safeParse(e).success,Cs=e=>ro.safeParse(e).success,ep=e=>no.safeParse(e).success;var hr=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&e.resultType==="input_required";function ob(e){if(e.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${e.params.ref.type}`)}function ab(e){if(e.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${e.params.ref.type}`)}var rI="x-mcp-header",$A=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,wA=new Set(["string","integer","boolean","number"]);function sb(e){let t=[],n=new Map,i=(o,a,s)=>{if(o===null||typeof o!="object")return;let c=o;if(rI in c){if(!s||a.length===0)return`${Zm(a)}: x-mcp-header is only permitted on properties statically reachable via a chain of 'properties' keys (not under items, additionalProperties, oneOf/anyOf/allOf/not, if/then/else, or $ref)`;let u=c[rI];if(typeof u!="string"||u.length===0)return`${Zm(a)}: x-mcp-header MUST be a non-empty string`;if(!$A.test(u))return`${Zm(a)}: x-mcp-header '${u}' is not a valid RFC 9110 token (no spaces, control characters or HTTP delimiters)`;let d=typeof c.type=="string"?c.type:void 0;if(d===void 0||!wA.has(d))return`${Zm(a)}: x-mcp-header is only permitted on primitive-typed properties (string, integer, boolean); got ${d??"<none>"}`;let m=u.toLowerCase(),v=n.get(m);if(v!==void 0)return`x-mcp-header '${u}' is not case-insensitively unique (also declared as '${v}')`;n.set(m,u),t.push({path:a,headerName:u,type:d})}let l=c.properties;if(l!==null&&typeof l=="object")for(let[u,d]of Object.entries(l)){let m=i(d,[...a,u],s);if(m!==void 0)return m}for(let u of zA){let d=c[u];if(d===void 0)continue;let m=Array.isArray(d)?d:d!==null&&typeof d=="object"&&kA.has(u)?Object.values(d):[d];for(let v of m){let y=i(v,[...a,`<${u}>`],!1);if(y!==void 0)return y}}},r=i(e,[],!0);return r===void 0?{valid:!0,declarations:t}:{valid:!1,reason:r}}var zA=["items","prefixItems","contains","additionalProperties","unevaluatedProperties","unevaluatedItems","propertyNames","patternProperties","dependentSchemas","oneOf","anyOf","allOf","not","if","then","else","$defs","definitions"],kA=new Set(["patternProperties","dependentSchemas","$defs","definitions"]);function Zm(e){return e.length===0?"<root>":e.join(".")}var Bm=-32020,x6=[{rung:"http-method",order:1,evaluatedAt:"edge",codes:[-32e3],conformance:[],rationale:"The modern era is POST-only; GET/DELETE are body-less 2025-era session operations and are method-routed to legacy serving (405 when legacy serving is not configured), before any body is read."},{rung:"jsonrpc-shape",order:2,evaluatedAt:"edge",codes:[Q.InvalidRequest],conformance:["server-stateless"],rationale:"The body must be a JSON-RPC request or notification: posted responses and batch arrays containing a modern or invalid element are rejected before classification (element-wise batch rule); all-legacy arrays stay legacy traffic."},{rung:"era-classification",order:3,evaluatedAt:"edge",codes:[Bm,Q.UnsupportedProtocolVersion],conformance:["server-stateless","http-header-validation","http-custom-header-server-validation"],rationale:"Body-primary era classification with the protocol-version header as a cross-check; a header/body disagreement is rejected with -32020 (HeaderMismatch), and an envelope-less request on a modern-only endpoint is answered with the unsupported-protocol-version error naming the supported revisions."},{rung:"envelope",order:4,evaluatedAt:"edge",codes:[Q.InvalidParams],conformance:["server-stateless"],rationale:"A present envelope claim with a malformed envelope \u2014 and a missing envelope on a request whose protocol-version header names a modern revision \u2014 is an invalid-params rejection naming the offending or missing key(s); never a silent fall back to legacy handling. This is the only place an invalid-params rejection maps to HTTP 400."},{rung:"method-registry",order:5,evaluatedAt:"dispatch",codes:[Q.MethodNotFound],conformance:["server-stateless"],rationale:"Method existence outranks parameter validity: a method absent from the negotiated revision\u2019s registry (or with no handler installed) answers method-not-found before params or capabilities are looked at."},{rung:"request-params",order:6,evaluatedAt:"dispatch",codes:[Q.InvalidParams],conformance:[],rationale:"Per-method params validation; emitted in-band by the dispatch layer (HTTP 200), never via the ladder status table."},{rung:"standard-header-validation",order:7,evaluatedAt:"pre-dispatch",codes:[Bm],conformance:["http-header-validation"],rationale:"SEP-2243 standard `Mcp-Method` / `Mcp-Name` headers \u2014 presence, sentinel decoding, and `Mcp-Name` \u2194 body cross-check \u2014 are validated by the HTTP entry on a modern-classified request after the supported-revision gate and before dispatch. The classifier\u2019s own header-mismatch cells (protocol-version, `Mcp-Method` mismatch) stay on the edge `era-classification` rung; this rung carries the entry-layer presence/`Mcp-Name` half. Evaluated before the capability gate, the factory call, and the `Mcp-Param-*` rung so a request that fails several rungs is answered by the standard-header rung first. The documented order (after method-registry 5 and request-params 6) is NOT the observed precedence: serveModern evaluates this rung immediately after the supported-revision gate, so a request that also fails a dispatch rung is answered here before the dispatch rungs (5\u20136) are consulted."},{rung:"client-capabilities",order:8,evaluatedAt:"pre-dispatch",codes:[Q.MissingRequiredClientCapability],conformance:["server-stateless"],rationale:"The capability requirement is checked by the HTTP entry, pre-dispatch, against the validated envelope the classifier produced \u2014 pinning the spec-mandated HTTP 400 independently of how dispatch- and handler-produced errors are mapped. The documented order (after method resolution and params validation) is preserved observably only while the requirement table is empty: once a served method gains a requirement entry, a request that is missing the capability and would also fail a dispatch rung is answered by this gate first, so the entry must consult the method registry before the gate if the documented precedence is to stay observable."},{rung:"param-header-validation",order:9,evaluatedAt:"pre-dispatch",codes:[Bm],conformance:["http-custom-header-server-validation"],rationale:"SEP-2243 `Mcp-Param-*` headers are validated against the named tool\u2019s `x-mcp-header` declarations and the body `arguments` after the tool registry is known and before dispatch reaches the handler; a missing/disagreeing/malformed header is rejected 400 / -32020 with the same shape as the standard-header cross-checks. The documented order (after method resolution and params validation) is preserved observably only when the body `arguments` would otherwise validate: the check runs pre-dispatch, so a `tools/call` that fails BOTH this rung and a dispatch-time rung (e.g. order-6 `request-params`, -32602) is answered by this gate first with 400 / -32020, not by the earlier-ordered rung."}],RA={[Q.ParseError]:400,[Q.InvalidRequest]:400,[Q.MethodNotFound]:404,[Q.UnsupportedProtocolVersion]:400,[Q.MissingRequiredClientCapability]:400,[Bm]:400};function Jm(e,t,n,i,r){return{kind:"reject",rung:e,cell:t,httpStatus:n,code:i.code,message:i.message,...i.data!==void 0&&{data:i.data},settled:r}}function cb(e){if(!Ym(e))return!1;let t=Qm(e);if(t===void 0||!vo(t))return!1;let n=Bn(e);return n!==void 0&&Xm(n).length===0}function lb(e,t){switch(e.reason){case"http-method":return Jm("http-method","modern-only-method-not-allowed",405,new ue(-32e3,"Method not allowed."),!0);case"batch":return Jm("jsonrpc-shape","modern-only-batch-not-supported",400,new ue(Q.InvalidRequest,"Bad Request: JSON-RPC batches are not supported by this endpoint"),!0);case"response":return Jm("jsonrpc-shape","modern-only-response-post",400,new ue(Q.InvalidRequest,"Bad Request: JSON-RPC responses cannot be posted to this endpoint"),!0);case"notification":return;case"initialize":case"no-claim":{let n=e.requestedVersion;return Jm("era-classification","modern-only-missing-envelope",400,n===void 0?new ue(Q.UnsupportedProtocolVersion,"Unsupported protocol version: the request did not name a protocol version",{supported:[...t]}):new yo({supported:[...t],requested:n}),!0)}}}function tp(e,t){return Ba(e,t)}function xs(e){return new Set(e.flatMap(t=>Object.keys(t.shape)))}function go(e){if(e==null)return!1;let t=typeof e;return t!=="object"&&t!=="function"||!("~standard"in e)?!1:typeof e["~standard"]?.validate=="function"}var nI=!1,KS="draft-2020-12";function ln(e,t="input"){let n=e["~standard"],i;if(n.jsonSchema)i=n.jsonSchema[t]({target:KS});else if(n.vendor==="zod"){if(!("_zod"in e))throw new Error("Schema appears to be from zod 3, which the SDK cannot convert to JSON Schema. Upgrade to zod >=4.2.0, or wrap your JSON Schema with fromJsonSchema().");nI||(nI=!0,console.warn("[mcp-sdk] Your zod version does not implement `~standard.jsonSchema` (added in zod 4.2.0). Falling back to z.toJSONSchema(). Upgrade to zod >=4.2.0 to silence this warning.")),i=Nn(e,{target:KS,io:t})}else throw new Error(`Schema library "${n.vendor}" does not implement StandardJSONSchemaV1 (\`~standard.jsonSchema\`). Upgrade to a version that does, or wrap your JSON Schema with fromJsonSchema().`);if(t==="output")return i.type!==void 0?i:PI(i)?{type:"object",...i}:i;if(i.type!==void 0&&i.type!=="object")throw new Error(`MCP tool and prompt schemas must describe objects (got type: ${JSON.stringify(i.type)}). Wrap your schema in z.object({...}) or equivalent.`);return{type:"object",...i}}function PI(e){if("properties"in e||"patternProperties"in e||"additionalProperties"in e||"required"in e)return!0;for(let t of["oneOf","anyOf","allOf"]){let n=e[t];if(Array.isArray(n)&&n.length>0)return n.every(i=>i!==null&&typeof i=="object"&&(i.type==="object"||PI(i)))}return!1}function IA(e){return e.path?.length?`${e.path.map(t=>String(typeof t=="object"?t.key:t)).join(".")}: ${e.message}`:e.message}async function Zn(e,t){let n=await e["~standard"].validate(t);return n.issues&&n.issues.length>0?{success:!1,error:n.issues.map(i=>IA(i)).join(", ")}:{success:!0,data:n.value}}function PA(e){let t=Nn(e,{target:KS,io:"input"});return typeof t.pattern=="string"?t.pattern:void 0}var EA=/\\\.\\d\{(\d+)\}/;function TA(e){let t=EA.exec(e),n=[void 0,-1,0];return t&&n.push(Number(t[1])),[!1,!0].flatMap(i=>[!1,!0].flatMap(r=>n.map(o=>Pt.datetime({local:i,offset:r,precision:o}))))}function OA(e,t){let n;switch(e){case"email":n=[wu()];break;case"uri":n=[Vi()];break;case"date":n=[Pt.date()];break;case"date-time":n=TA(t);break}return new Set(n.map(i=>PA(i)).filter(i=>i!==void 0))}function xA(e,t,n){return n!=="zod"?!0:OA(e,t).has(t)}function EI(e){let t=ln(e,"input"),n=t.properties||{},i=t.required||[];return Object.entries(n).map(([r,o])=>({name:r,description:o?.description,required:i.includes(r)}))}function As(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function NA(e){try{return ln(e,"input")}catch(t){let n=t instanceof Error?t.message:String(t);throw new ue(Q.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${n}`)}}var jA=new Set(["$comment","deprecated","description","examples","readOnly","title","writeOnly"]);function ub(e){return jA.has(e)||e.startsWith("x-")}var CA=new Set(["$schema",...Object.keys(po.shape.requestedSchema.shape)]),iI={string:xs([uo,ks,Rs,Is]),number:xs([mo]),integer:xs([mo]),boolean:xs([zs]),array:xs([Ps,Es])},AA=new Set(uo.shape.format.unwrap().options);function qA(e,t,n,i){if(!As(e))return e;let r=typeof e.type=="string"&&Object.hasOwn(iI,e.type)?iI[e.type]:void 0;if(r===void 0)return e;let o={};for(let[a,s]of Object.entries(e))r.has(a)||ub(a)?o[a]=s:a==="pattern"&&e.type==="string"&&typeof e.format=="string"?AA.has(e.format)?(typeof s!="string"||!xA(e.format,s,n))&&i.push(`${t}.${a}`):o[a]=s:i.push(`${t}.${a}`);return o}function MA(e,t){let n={},i=[];for(let[r,o]of Object.entries(e))r==="properties"&&As(o)?n[r]=Object.fromEntries(Object.entries(o).map(([a,s])=>[a,qA(s,`properties.${a}`,t,i)])):CA.has(r)?n[r]=o:ub(r)||i.push(r);if(i.length>0)throw new ue(Q.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${i.join(", ")}`);return n}function LA(e,t){if(!As(e.properties))return t;let n=Object.entries(e.properties).filter(([,i])=>!tp(Ts,i).success).map(([i])=>`properties.${i}`);return n.length>0?n.join(", "):t}function HS(e,t,n=""){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((i,r)=>HS(i,t[r],`${n}[${r}]`)):!As(e)||!As(t)?[]:Object.entries(e).flatMap(([i,r])=>{let o=n?`${n}.${i}`:i;return Object.prototype.hasOwnProperty.call(t,i)?HS(r,t[i],o):ub(i)?[]:[o]})}function DA(e){if(!go(e.requestedSchema))return{...e,mode:"form",requestedSchema:e.requestedSchema};let t=e.requestedSchema["~standard"].vendor,n=MA(NA(e.requestedSchema),t),i=tp(po.shape.requestedSchema,n);if(!i.success)throw new ue(Q.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${LA(n,i.error.message)}`);let r=HS(n,i.data);if(r.length>0)throw new ue(Q.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${r.join(", ")}`);let o=(i.data.required??[]).filter(a=>!Object.prototype.hasOwnProperty.call(i.data.properties,a));if(o.length>0)throw new ue(Q.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${o.join(", ")}`);return{...e,mode:"form",requestedSchema:i.data}}function UA(e){let t=e.inputRequests!==void 0&&Object.keys(e.inputRequests).length>0,n=typeof e.requestState=="string";if(!t&&!n)throw new TypeError("inputRequired() requires at least one of inputRequests (with at least one entry) or requestState (spec: every InputRequiredResult MUST include at least one of the two)");return{resultType:"input_required",...e.inputRequests!==void 0&&{inputRequests:e.inputRequests},...e.requestState!==void 0&&{requestState:e.requestState}}}var VA=Object.assign(UA,{elicit(e){try{return{method:"elicitation/create",params:DA(e)}}catch(t){throw t instanceof ue?new TypeError(t.message,{cause:t}):t}},elicitUrl(e){return{method:"elicitation/create",params:{...e,mode:"url"}}},createMessage(e){return{method:"sampling/createMessage",params:e}},listRoots(){return{method:"roots/list"}}});var TI=250;function OI(e,t){return`Multi-round-trip request '${e}' still required input after ${t} rounds (inputRequired.maxRounds)`}function xI(e,t){return new Promise((n,i)=>{if(t?.aborted){i(t.reason instanceof ge?t.reason:new ge($e.RequestTimeout,String(t.reason)));return}let r=setTimeout(()=>{t?.removeEventListener("abort",o),n()},e),o=()=>{clearTimeout(r),i(t?.reason instanceof ge?t.reason:new ge($e.RequestTimeout,String(t?.reason)))};t?.addEventListener("abort",o,{once:!0})})}function NI(e){let t=new AbortController,n=()=>t.abort(e?.reason);return e?.addEventListener("abort",n,{once:!0}),e?.aborted&&t.abort(e.reason),{signal:t.signal,abort:i=>t.abort(i),dispose:()=>e?.removeEventListener("abort",n)}}var FA=["AnnotationsSchema","AudioContentSchema","BaseMetadataSchema","BlobResourceContentsSchema","BooleanSchemaSchema","CallToolRequestSchema","CallToolRequestParamsSchema","CallToolResultSchema","CancelledNotificationSchema","CancelledNotificationParamsSchema","CancelTaskRequestSchema","CancelTaskResultSchema","ClientCapabilitiesSchema","ClientNotificationSchema","ClientRequestSchema","ClientResultSchema","CompatibilityCallToolResultSchema","CompleteRequestSchema","CompleteRequestParamsSchema","CompleteResultSchema","ContentBlockSchema","CreateMessageRequestSchema","CreateMessageRequestParamsSchema","CreateMessageResultSchema","CreateMessageResultWithToolsSchema","CreateTaskResultSchema","CursorSchema","DiscoverRequestSchema","DiscoverResultSchema","ElicitationCompleteNotificationSchema","ElicitationCompleteNotificationParamsSchema","ElicitRequestSchema","ElicitRequestFormParamsSchema","ElicitRequestParamsSchema","ElicitRequestURLParamsSchema","ElicitResultSchema","EmbeddedResourceSchema","EmptyResultSchema","EnumSchemaSchema","GetPromptRequestSchema","GetPromptRequestParamsSchema","GetPromptResultSchema","GetTaskPayloadRequestSchema","GetTaskPayloadResultSchema","GetTaskRequestSchema","GetTaskResultSchema","IconSchema","IconsSchema","ImageContentSchema","ImplementationSchema","InitializedNotificationSchema","InitializeRequestSchema","InitializeRequestParamsSchema","InitializeResultSchema","JSONArraySchema","JSONObjectSchema","JSONRPCErrorResponseSchema","JSONRPCMessageSchema","JSONRPCNotificationSchema","JSONRPCRequestSchema","JSONRPCResponseSchema","JSONRPCResultResponseSchema","JSONValueSchema","LegacyTitledEnumSchemaSchema","ListPromptsRequestSchema","ListPromptsResultSchema","ListResourcesRequestSchema","ListResourcesResultSchema","ListResourceTemplatesRequestSchema","ListResourceTemplatesResultSchema","ListRootsRequestSchema","ListRootsResultSchema","ListTasksRequestSchema","ListTasksResultSchema","ListToolsRequestSchema","ListToolsResultSchema","LoggingLevelSchema","LoggingMessageNotificationSchema","LoggingMessageNotificationParamsSchema","ModelHintSchema","ModelPreferencesSchema","MultiSelectEnumSchemaSchema","NotificationSchema","NumberSchemaSchema","PaginatedRequestSchema","PaginatedRequestParamsSchema","PaginatedResultSchema","PingRequestSchema","PrimitiveSchemaDefinitionSchema","ProgressSchema","ProgressNotificationSchema","ProgressNotificationParamsSchema","ProgressTokenSchema","PromptSchema","PromptArgumentSchema","PromptListChangedNotificationSchema","PromptMessageSchema","PromptReferenceSchema","ReadResourceRequestSchema","ReadResourceRequestParamsSchema","ReadResourceResultSchema","RelatedTaskMetadataSchema","RequestSchema","RequestIdSchema","RequestMetaSchema","ResourceSchema","ResourceContentsSchema","ResourceLinkSchema","ResourceListChangedNotificationSchema","ResourceRequestParamsSchema","ResourceTemplateSchema","ResourceTemplateReferenceSchema","ResourceUpdatedNotificationSchema","ResourceUpdatedNotificationParamsSchema","ResultMetaObjectSchema","ResultSchema","RoleSchema","RootSchema","RootsListChangedNotificationSchema","SamplingContentSchema","SamplingMessageSchema","SamplingMessageContentBlockSchema","ServerCapabilitiesSchema","ServerNotificationSchema","ServerRequestSchema","ServerResultSchema","SetLevelRequestSchema","SetLevelRequestParamsSchema","SingleSelectEnumSchemaSchema","StringSchemaSchema","SubscribeRequestSchema","SubscribeRequestParamsSchema","SubscriptionFilterSchema","SubscriptionsAcknowledgedNotificationSchema","SubscriptionsAcknowledgedNotificationParamsSchema","SubscriptionsListenRequestSchema","SubscriptionsListenRequestParamsSchema","SubscriptionsListenResultSchema","SubscriptionsListenResultMetaSchema","TaskAugmentedRequestParamsSchema","TaskCreationParamsSchema","TaskMetadataSchema","TaskSchema","TaskStatusSchema","TaskStatusNotificationSchema","TaskStatusNotificationParamsSchema","TextContentSchema","TextResourceContentsSchema","TitledMultiSelectEnumSchemaSchema","TitledSingleSelectEnumSchemaSchema","ToolSchema","ToolAnnotationsSchema","ToolChoiceSchema","ToolExecutionSchema","ToolListChangedNotificationSchema","ToolResultContentSchema","ToolUseContentSchema","UnsubscribeRequestSchema","UnsubscribeRequestParamsSchema","UntitledMultiSelectEnumSchemaSchema","UntitledSingleSelectEnumSchemaSchema"],ZA={IdJagTokenExchangeResponseSchema:qS,OAuthClientInformationFullSchema:LS,OAuthClientInformationSchema:Lm,OAuthClientMetadataSchema:Mm,OAuthClientRegistrationErrorSchema:DS,OAuthErrorResponseSchema:MS,OAuthMetadataSchema:Am,OAuthProtectedResourceMetadataSchema:jS,OAuthTokenRevocationRequestSchema:US,OAuthTokensSchema:AS,OpenIdProviderDiscoveryMetadataSchema:CS,OpenIdProviderMetadataSchema:qm},jI={},CI={};function AI(e,t){let n=e.slice(0,-6);jI[n]=t,CI[n]=i=>t.safeParse(i).success}for(let e of FA)AI(e,bA[e]);for(let[e,t]of Object.entries(ZA))AI(e,t);var JA=Object.freeze(jI),BA=Object.freeze(CI);function KA(e){switch(e){case"initialize":case"notifications/initialized":return an(void 0);case"server/discover":return an(qs);default:return}}var qI=6e4,HA=[mr,to,pr,Yr],GA=["inputResponses","requestState"];function oI(e,t){let n=e.params;if(!js(n))return{message:e,lifted:{}};let i=n._meta,r=js(i)?HA.filter(c=>c in i):[],o=t==="request"?GA.filter(c=>c in n):[];if(r.length===0&&o.length===0)return{message:e,lifted:{}};let a={},s={...n};if(r.length>0&&js(i)){let c={},l={...i};for(let u of r)c[u]=i[u],delete l[u];a.envelope=c,Object.keys(l).length>0?s._meta=l:delete s._meta}for(let c of o)c==="inputResponses"&&(a.inputResponses=s[c]),c==="requestState"&&(a.requestState=s[c]),delete s[c];return{message:{...e,params:s},lifted:a}}function aI(e,t){let n=e.validateResult(t,void 0);if(!(!n.ok&&n.reason==="not-in-era"))return{"~standard":{version:1,vendor:"mcp-wire-codec",validate(i){let r=e.validateResult(t,i);return r.ok?{value:r.value}:{issues:[{message:r.reason==="invalid"?r.message:`not-in-era: ${t}`}]}}}}}function Ms(e){return()=>e}var WA=Ms(void 0);function db(e,t){return{...e,mcpReq:{...e.mcpReq,requestState:Ms(t)}}}var MI;function mb(e,t){MI(e,t)}var pb=class{_transport;_requestMessageId=0;_requestHandlers=new Map;_requestHandlerAbortControllers=new Map;_notificationHandlers=new Map;_responseHandlers=new Map;_progressHandlers=new Map;_timeoutInfo=new Map;_pendingDebouncedNotifications=new Set;_negotiatedProtocolVersion;static{MI=(e,t)=>{e._negotiatedProtocolVersion=t}}_supportedProtocolVersions;onclose;onerror;fallbackRequestHandler;fallbackNotificationHandler;constructor(e){this._options=e,this._supportedProtocolVersions=e?.supportedProtocolVersions??Qu,this.setNotificationHandler("notifications/cancelled",t=>{this._oncancel(t)}),this.setNotificationHandler("notifications/progress",t=>{this._onprogress(t)}),this.setRequestHandler("ping",t=>({}))}_shouldDropInbound(e){}_outboundMetaEnvelope(){}_envelopeOutbound(e){let t=this._outboundMetaEnvelope();if(t===void 0)return e;let n=e.params??{};return{...e,params:{...n,_meta:{...t,...n._meta}}}}_resolveNonCompleteResult(e,t){return Promise.reject(new ge($e.UnsupportedResultType,`Unsupported result type '${e.kind}' for ${t.request.method}`,{resultType:e.kind,method:t.request.method}))}_getRequestHandler(e){return this._requestHandlers.get(e)}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,i,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(i,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:i})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),new ge($e.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{try{t?.()}finally{this._onclose()}};let n=this.transport?.onerror;this._transport.onerror=r=>{n?.(r),this._onerror(r)};let i=this._transport?.onmessage;this._transport.onmessage=(r,o)=>{i?.(r,o),Cs(r)||ep(r)?this._onresponse(r):Nt(r)?this._onrequest(r,o):cn(r)?this._onnotification(r,o):this._onerror(new Error(`Unknown message type: ${JSON.stringify(r)}`))},e.setSupportedProtocolVersions?.(this._supportedProtocolVersions),await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear();for(let i of this._timeoutInfo.values())clearTimeout(i.timeoutId);this._timeoutInfo.clear();let t=this._requestHandlerAbortControllers;this._requestHandlerAbortControllers=new Map;let n=new ge($e.ConnectionClosed,"Connection closed");this._transport=void 0;try{this.onclose?.()}finally{for(let i of e.values())i(n);for(let i of t.values())i.abort(n)}}_onerror(e){this.onerror?.(e)}_onnotification(e,t){let{message:n}=oI(e,"notification"),i=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop")return;if(t?.classification!==void 0){let a=eI(t.classification);if(a!==i.era){this._onerror(new Error(`Era mismatch on inbound notification '${n.method}': classified as ${a} but this instance serves ${i.era}`));return}}if(ZS(n.method)&&!i.hasNotificationMethod(n.method))return;let r=this._notificationHandlers.get(n.method),o=this.fallbackNotificationHandler;r===void 0&&o===void 0||Promise.resolve().then(()=>r===void 0?o(n):r(n,i)).catch(a=>this._onerror(new Error(`Uncaught error in notification handler: ${a}`)))}_onrequest(e,t){let{message:n,lifted:i}=oI(e,"request"),r=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop"){this._onerror(new Error(`Dropped inbound request '${e.method}': not servable on this connection's protocol era`));return}let o=this._transport,a=(f,h,g)=>{let $={jsonrpc:"2.0",id:n.id,error:{code:f,message:h,...g!==void 0&&{data:g}}};o?.send($).catch(_=>this._onerror(new Error(`Failed to send an error response: ${_}`)))};if(t?.classification!==void 0){let f=eI(t.classification);if(f!==r.era){this._onerror(new Error(`Era mismatch on inbound request '${n.method}': classified as ${f} but this instance serves ${r.era}`));let h=t.classification.revision??f;a(Q.UnsupportedProtocolVersion,`Unsupported protocol version: ${h}`,{supported:this._supportedProtocolVersions,requested:h});return}}if(FS(n.method)&&!r.hasRequestMethod(n.method)){a(Q.MethodNotFound,"Method not found");return}let s=this._requestHandlers.get(n.method)??this.fallbackRequestHandler;if(s===void 0){a(Q.MethodNotFound,"Method not found");return}let c=r.checkInboundEnvelope(i);if(c!==void 0){a(Q.InvalidParams,c);return}let l=(f,h)=>this._notificationViaCodec(this._resolveOutboundCodec(f.method),f,{...h,relatedRequestId:n.id}),u=(f,h,g)=>this._requestWithSchemaViaCodec(this._resolveOutboundCodec(f.method),f,h,{...g,relatedRequestId:n.id}),d=new AbortController;this._requestHandlerAbortControllers.set(n.id,d);let m=i.inputResponses===void 0?void 0:YA(i.inputResponses),v={sessionId:o?.sessionId,mcpReq:{id:n.id,method:n.method,_meta:n.params?._meta,...i.envelope!==void 0&&{envelope:i.envelope},...m!==void 0&&{inputResponses:m.accepted},...m!==void 0&&m.droppedKeys.length>0&&{droppedInputResponseKeys:m.droppedKeys},requestState:i.requestState===void 0?WA:Ms(i.requestState),signal:d.signal,send:((f,h,g)=>{let $=this._resolveOutboundCodec(f.method);if(this._assertOutboundRequestInEra($,f.method),go(h))return u(f,h,g);let _=aI($,f.method);if(_===void 0)throw new TypeError(`'${f.method}' is not a spec method; pass a result schema as the second argument to ctx.mcpReq.send().`);return u(f,_,h)}),notify:l},http:t?.authInfo?{authInfo:t.authInfo}:void 0},y=this.buildContext(v,t);Promise.resolve().then(()=>s(n,y)).then(async f=>{if(d.signal.aborted)return;let h;try{h=r.encodeResult(n.method,f,this._outboundServerInfo())}catch($){this._onerror(new Error(`Failed to encode result for ${n.method}: ${$}`)),a(Q.InternalError,"Internal error");return}let g={result:h,jsonrpc:"2.0",id:n.id};await o?.send(g)},async f=>{if(d.signal.aborted)return;let h=Number.isSafeInteger(f.code)?f.code:Q.InternalError,g={jsonrpc:"2.0",id:n.id,error:{code:r.encodeErrorCode(h),message:f.message??"Internal error",...f.data!==void 0&&{data:f.data}}};await o?.send(g)}).catch(f=>this._onerror(new Error(`Failed to send response: ${f}`))).finally(()=>{this._requestHandlerAbortControllers.get(n.id)===d&&this._requestHandlerAbortControllers.delete(n.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,i=Number(t),r=this._progressHandlers.get(i);if(!r){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let o=this._responseHandlers.get(i),a=this._timeoutInfo.get(i);if(a&&o&&a.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(s){this._responseHandlers.delete(i),this._progressHandlers.delete(i),this._cleanupTimeout(i),o(s);return}r(n)}_onresponse(e){let t=Number(e.id),n=this._responseHandlers.get(t);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t),this._progressHandlers.delete(t),Cs(e)?n(e):n(ue.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}request(e,t,n){let i=this._resolveOutboundCodec(e.method);if(this._assertOutboundRequestInEra(i,e.method),go(t))return this._requestWithSchemaViaCodec(i,e,t,n);let r=aI(i,e.method);if(r===void 0)throw new TypeError(`'${e.method}' is not a spec method; pass a result schema as the second argument to request().`);return this._requestWithSchemaViaCodec(i,e,r,t)}_negotiatedWireCodec(){return an(this._negotiatedProtocolVersion)}_wireCodec(){return this._negotiatedWireCodec()}_resolveOutboundCodec(e){if(this._negotiatedProtocolVersion===void 0){let t=KA(e);if(t)return t}return this._negotiatedWireCodec()}_assertOutboundRequestInEra(e,t){if(FS(t)&&!e.hasRequestMethod(t))throw new ge($e.MethodNotSupportedByProtocolVersion,`Method '${t}' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t,era:e.era})}_requestWithSchema(e,t,n){let i=this._resolveOutboundCodec(e.method);return this._assertOutboundRequestInEra(i,e.method),this._requestWithSchemaViaCodec(i,e,t,n)}_requestWithSchemaViaCodec(e,t,n,i){let{relatedRequestId:r,resumptionToken:o,onresumptiontoken:a,headers:s}=i??{},c=Date.now(),l,u;return new Promise((d,m)=>{let v=z=>{m(z)};if(!this._transport){v(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method)}catch(z){v(z);return}if(i?.signal?.aborted){let z=i.signal.reason;throw z instanceof ge?z:new ge($e.RequestTimeout,String(z))}let y=e.era===qs&&this._transport.hasPerRequestStream===!0?new AbortController:void 0,f=this._requestMessageId++;u=f;let h={...t,jsonrpc:"2.0",id:f};i?.onprogress&&(this._progressHandlers.set(f,i.onprogress),h.params={...t.params,_meta:{...t.params?._meta,progressToken:f}});let g=this._envelopeOutbound(h),$=!1,_=z=>{$||(this._progressHandlers.delete(f),y===void 0?this._transport?.send(this._envelopeOutbound({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:f,reason:String(z)}}),{relatedRequestId:r,resumptionToken:o,onresumptiontoken:a}).catch(S=>this._onerror(new Error(`Failed to send cancellation: ${S}`))):y.abort(),m(z instanceof ge?z:new ge($e.RequestTimeout,String(z))))};this._responseHandlers.set(f,z=>{if(i?.signal?.aborted)return;if($=!0,z instanceof Error)return m(z);let S;try{S=e.decodeResult(t.method,z.result)}catch(T){return m(T instanceof Error?T:new Error(String(T)))}if(S.kind==="invalid")return m(S.error);if(S.kind==="input_required"){if(i?.allowInputRequired===!0)return d(QA(S));let T={codec:e,request:t,resultSchema:n,options:i,flowStartedAt:c,retry:(M,N)=>this._requestWithSchemaViaCodec(e,M===void 0?{method:t.method}:{method:t.method,params:M},n,N)};return d(this._resolveNonCompleteResult(S,T))}let w=S.result;Zn(n,w).then(T=>{T.success?d(T.data):m(new ge($e.InvalidResult,`Invalid result for ${t.method}: ${T.error}`))},m)}),l=()=>_(i?.signal?.reason),i?.signal?.addEventListener("abort",l,{once:!0});let b=i?.timeout??qI,k=()=>_(new ge($e.RequestTimeout,"Request timed out",{timeout:b}));this._setupTimeout(f,b,i?.maxTotalTimeout,k,i?.resetTimeoutOnProgress??!1),this._transport.send(g,{relatedRequestId:r,resumptionToken:o,onresumptiontoken:a,headers:s,requestSignal:y?.signal}).catch(z=>{this._progressHandlers.delete(f),m(z)})}).finally(()=>{l&&i?.signal?.removeEventListener("abort",l),u!==void 0&&(this._responseHandlers.delete(u),this._cleanupTimeout(u))})}async notification(e,t){return this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,t)}async _notificationViaCodec(e,t,n){if(!this._transport)throw new ge($e.NotConnected,"Not connected");if(ZS(t.method)&&!e.hasNotificationMethod(t.method))throw new ge($e.MethodNotSupportedByProtocolVersion,`Notification '${t.method}' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t.method,era:e.era});this.assertNotificationCapability(t.method);let i=this._envelopeOutbound({jsonrpc:"2.0",...t});if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!n?.relatedRequestId){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{this._pendingDebouncedNotifications.delete(t.method),this._transport&&this._transport?.send(i,n).catch(r=>this._onerror(r))});return}await this._transport.send(i,n)}setRequestHandler(e,t,n){this.assertRequestHandlerCapability(e);let i;if(typeof t=="function"){if(!FS(e))throw new TypeError(`'${e}' is not a spec request method; pass schemas as the second argument to setRequestHandler().`);i=(r,o)=>{let a=this._negotiatedWireCodec(),s=a.validateRequest(e,r);if(!s.ok&&s.reason==="not-in-era"&&(s=a.validateInputRequest(e,r)),!s.ok)throw s.reason==="not-in-era"?new ue(Q.InternalError,`No wire schema for ${e} in the resolved era`):new Error(s.message);return Promise.resolve(t(s.value,o))}}else if(n)i=async(r,o)=>{let a=await Zn(t.params,{...r.params});if(!a.success)throw new ue(Q.InvalidParams,`Invalid params for ${e}: ${a.error}`);return n(a.data,o)};else throw new TypeError("setRequestHandler: handler is required");this._requestHandlers.set(e,this._wrapHandler(e,i))}_wrapHandler(e,t){return t}_outboundServerInfo(){}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t,n){if(typeof t=="function"){if(!ZS(e))throw new TypeError(`'${e}' is not a spec notification method; pass schemas as the second argument to setNotificationHandler().`);this._notificationHandlers.set(e,(i,r)=>{let o=r.validateNotification(e,i);if(!o.ok)throw o.reason==="not-in-era"?new ue(Q.InternalError,`No wire schema for ${e} in the resolved era`):new Error(o.message);return Promise.resolve(t(o.value))});return}if(!n)throw new TypeError("setNotificationHandler: handler is required");this._notificationHandlers.set(e,async i=>{let r=await Zn(t.params,{...i.params});if(!r.success)throw new ue(Q.InvalidParams,`Invalid params for notification ${e}: ${r.error}`);await n(r.data,i)})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}};function js(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function fb(e,t){let n={...e};for(let i in t){let r=i,o=t[r];if(o===void 0)continue;let a=n[r];n[r]=js(a)&&js(o)?{...a,...o}:o}return n}function sI(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function YA(e){let t={},n=[];if(!sI(e))return{accepted:t,droppedKeys:n};for(let[i,r]of Object.entries(e)){if(!sI(r)||"method"in r||"result"in r){n.push(i);continue}t[i]=r}return{accepted:t,droppedKeys:n}}function QA(e){return{resultType:"input_required",inputRequests:e.inputRequests,...e.requestState!==void 0&&{requestState:e.requestState}}}var XA=Z((e=>{var t=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\([\u000b\u0020-\u00ff])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;e.parse=r;function r(s){if(!s)throw new TypeError("argument string is required");var c=typeof s=="object"?o(s):s;if(typeof c!="string")throw new TypeError("argument string is required to be a string");var l=c.indexOf(";"),u=l!==-1?c.slice(0,l).trim():c.trim();if(!i.test(u))throw new TypeError("invalid media type");var d=new a(u.toLowerCase());if(l!==-1){var m,v,y;for(t.lastIndex=l;v=t.exec(c);){if(v.index!==l)throw new TypeError("invalid parameter format");l+=v[0].length,m=v[1].toLowerCase(),y=v[2],y.charCodeAt(0)===34&&(y=y.slice(1,-1),y.indexOf("\\")!==-1&&(y=y.replace(n,"$1"))),d.parameters[m]=y}if(l!==c.length)throw new TypeError("invalid parameter format")}return d}function o(s){var c;if(typeof s.getHeader=="function"?c=s.getHeader("content-type"):typeof s.headers=="object"&&(c=s.headers&&s.headers["content-type"]),typeof c!="string")throw new TypeError("content-type header is missing from object");return c}function a(s){this.parameters=Object.create(null),this.type=s}})),N6=Yu(XA(),1);var LI=10*1024*1024,hb=class{_buffer;_maxBufferSize;constructor(e){this._maxBufferSize=e?.maxBufferSize??LI}append(e){if((this._buffer?.length??0)+e.length>this._maxBufferSize)throw this.clear(),new Error(`ReadBuffer exceeded maximum size of ${this._maxBufferSize} bytes`);this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){for(;this._buffer;){let e=this._buffer.indexOf(`
|
|
207
|
+
`);if(e===-1)return null;let t=this._buffer.toString("utf8",0,e).replace(/\r$/,"");this._buffer=this._buffer.subarray(e+1);try{return DI(t)}catch(n){if(n instanceof SyntaxError)continue;throw n}}return null}clear(){this._buffer=void 0}};function DI(e){return ds.parse(JSON.parse(e))}function gb(e){return JSON.stringify(e)+`
|
|
208
|
+
`}var eq=/^[A-Za-z0-9._-]{1,128}$/;function tq(e){let t=[];if(e.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(e.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${e.length})`]};if(e.includes(" ")&&t.push("Tool name contains spaces, which may cause parsing issues"),e.includes(",")&&t.push("Tool name contains commas, which may cause parsing issues"),(e.startsWith("-")||e.endsWith("-"))&&t.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(e.startsWith(".")||e.endsWith("."))&&t.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!eq.test(e)){let n=[...e].filter(i=>!/[A-Za-z0-9._-]/.test(i)).filter((i,r,o)=>o.indexOf(i)===r);return t.push(`Tool name contains invalid characters: ${n.map(i=>`"${i}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:t}}return{isValid:!0,warnings:t}}function rq(e,t){if(t.length>0){console.warn(`Tool name validation warning for "${e}":`);for(let n of t)console.warn(` - ${n}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function vb(e){let t=tq(e);return rq(e,t.warnings),t.isValid}function nq(e){return typeof e=="object"&&e!==null&&"_zod"in e}function iq(e){return typeof e=="object"&&e!==null&&!("_zod"in e)&&"_def"in e&&typeof e._def?.typeName=="string"}function oq(e){if(typeof e!="object"||e===null||go(e))return!1;let t=Object.getPrototypeOf(e);return t!==Object.prototype&&t!==null?!1:Object.values(e).every(n=>nq(n))}function rp(e){if(e!==void 0){if(oq(e))return I(e);if(typeof e=="object"&&e!==null&&!go(e)&&Object.values(e).some(t=>iq(t)))throw new TypeError("Raw-shape inputSchema/outputSchema/argsSchema fields must be Zod v4 schemas. Got a Zod v3 field schema. Import from `zod/v4` (or upgrade your zod import), or wrap with `z.object({...})` yourself.");if(!go(e))throw new TypeError("inputSchema/outputSchema/argsSchema must be a Standard Schema (e.g. z.object({...})) or a raw Zod shape ({ field: z.string() }).");return e}}var ip=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(g){if(super(),!e.IDENTIFIER.test(g))throw new Error("CodeGen: name must be a valid identifier");this.str=g}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var i=class extends t{constructor(g){super(),this._items=typeof g=="string"?[g]:g}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let g=this._items[0];return g===""||g==='""'}get str(){var g;return(g=this._str)!==null&&g!==void 0?g:this._str=this._items.reduce(($,_)=>`${$}${_}`,"")}get names(){var g;return(g=this._names)!==null&&g!==void 0?g:this._names=this._items.reduce(($,_)=>(_ instanceof n&&($[_.str]=($[_.str]||0)+1),$),{})}};e._Code=i,e.nil=new i("");function r(g,...$){let _=[g[0]],b=0;for(;b<$.length;)s(_,$[b]),_.push(g[++b]);return new i(_)}e._=r;let o=new i("+");function a(g,...$){let _=[v(g[0])],b=0;for(;b<$.length;)_.push(o),s(_,$[b]),_.push(o,v(g[++b]));return c(_),new i(_)}e.str=a;function s(g,$){$ instanceof i?g.push(...$._items):$ instanceof n?g.push($):g.push(d($))}e.addCodeArg=s;function c(g){let $=1;for(;$<g.length-1;){if(g[$]===o){let _=l(g[$-1],g[$+1]);if(_!==void 0){g.splice($-1,3,_);continue}g[$++]="+"}$++}}function l(g,$){if($==='""')return g;if(g==='""')return $;if(typeof g=="string")return $ instanceof n||g[g.length-1]!=='"'?void 0:typeof $!="string"?`${g.slice(0,-1)}${$}"`:$[0]==='"'?g.slice(0,-1)+$.slice(1):void 0;if(typeof $=="string"&&$[0]==='"'&&!(g instanceof n))return`"${g}${$.slice(1)}`}function u(g,$){return $.emptyStr()?g:g.emptyStr()?$:a`${g}${$}`}e.strConcat=u;function d(g){return typeof g=="number"||typeof g=="boolean"||g===null?g:v(Array.isArray(g)?g.join(","):g)}function m(g){return new i(v(g))}e.stringify=m;function v(g){return JSON.stringify(g).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=v;function y(g){return typeof g=="string"&&e.IDENTIFIER.test(g)?new i(`.${g}`):r`[${g}]`}e.getProperty=y;function f(g){if(typeof g=="string"&&e.IDENTIFIER.test(g))return new i(`${g}`);throw new Error(`CodeGen: invalid export name: ${g}, use explicit $id name mapping`)}e.getEsmExportName=f;function h(g){return new i(g.toString())}e.regexpCode=h})),UI=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;let t=ip();var n=class extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}},i;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(i||(e.UsedValueState=i={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};var r=class{constructor({prefixes:c,parent:l}={}){this._names={},this._prefixes=c,this._parent=l}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){let l=this._names[c]||this._nameGroup(c);return`${c}${l.index++}`}_nameGroup(c){var l,u;if(!((u=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||u===void 0)&&u.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}};e.Scope=r;var o=class extends t.Name{constructor(c,l){super(l),this.prefix=c}setValue(c,{property:l,itemIndex:u}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(l)}[${u}]`}};e.ValueScopeName=o;let a=(0,t._)`\n`;var s=class extends r{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?a:t.nil}}get(){return this._scope}name(c){return new o(c,this._newName(c))}value(c,l){var u;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let d=this.toName(c),{prefix:m}=d,v=(u=l.key)!==null&&u!==void 0?u:l.ref,y=this._values[m];if(y){let g=y.get(v);if(g)return g}else y=this._values[m]=new Map;y.set(v,d);let f=this._scope[m]||(this._scope[m]=[]),h=f.length;return f[h]=l.ref,d.setValue(l,{property:m,itemIndex:h}),d}getValue(c,l){let u=this._values[c];if(u)return u.get(l)}scopeRefs(c,l=this._values){return this._reduceValues(l,u=>{if(u.scopePath===void 0)throw new Error(`CodeGen: name "${u}" has no value`);return(0,t._)`${c}${u.scopePath}`})}scopeCode(c=this._values,l,u){return this._reduceValues(c,d=>{if(d.value===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return d.value.code},l,u)}_reduceValues(c,l,u={},d){let m=t.nil;for(let v in c){let y=c[v];if(!y)continue;let f=u[v]=u[v]||new Map;y.forEach(h=>{if(f.has(h))return;f.set(h,i.Started);let g=l(h);if(g){let $=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${$} ${h} = ${g};${this.opts._n}`}else if(g=d?.(h))m=(0,t._)`${m}${g}${this.opts._n}`;else throw new n(h);f.set(h,i.Completed)})}return m}};e.ValueScope=s})),ve=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;let t=ip(),n=UI();var i=ip();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return i.Name}});var r=UI();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};var o=class{optimizeNodes(){return this}optimizeNames(R,E){return this}},a=class extends o{constructor(R,E,A){super(),this.varKind=R,this.name=E,this.rhs=A}render({es5:R,_n:E}){let A=R?n.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${A} ${this.name}${Y};`+E}optimizeNames(R,E){if(R[this.name.str])return this.rhs&&(this.rhs=ne(this.rhs,R,E)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},s=class extends o{constructor(R,E,A){super(),this.lhs=R,this.rhs=E,this.sideEffects=A}render({_n:R}){return`${this.lhs} = ${this.rhs};`+R}optimizeNames(R,E){if(!(this.lhs instanceof t.Name&&!R[this.lhs.str]&&!this.sideEffects))return this.rhs=ne(this.rhs,R,E),this}get names(){return X(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends s{constructor(R,E,A,Y){super(R,A,Y),this.op=E}render({_n:R}){return`${this.lhs} ${this.op}= ${this.rhs};`+R}},l=class extends o{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`${this.label}:`+R}},u=class extends o{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`break${this.label?` ${this.label}`:""};`+R}},d=class extends o{constructor(R){super(),this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}},m=class extends o{constructor(R){super(),this.code=R}render({_n:R}){return`${this.code};`+R}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(R,E){return this.code=ne(this.code,R,E),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},v=class extends o{constructor(R=[]){super(),this.nodes=R}render(R){return this.nodes.reduce((E,A)=>E+A.render(R),"")}optimizeNodes(){let{nodes:R}=this,E=R.length;for(;E--;){let A=R[E].optimizeNodes();Array.isArray(A)?R.splice(E,1,...A):A?R[E]=A:R.splice(E,1)}return R.length>0?this:void 0}optimizeNames(R,E){let{nodes:A}=this,Y=A.length;for(;Y--;){let ce=A[Y];ce.optimizeNames(R,E)||(be(R,ce.names),A.splice(Y,1))}return A.length>0?this:void 0}get names(){return this.nodes.reduce((R,E)=>U(R,E.names),{})}},y=class extends v{render(R){return"{"+R._n+super.render(R)+"}"+R._n}},f=class extends v{},h=class extends y{};h.kind="else";var g=class np extends y{constructor(E,A){super(A),this.condition=E}render(E){let A=`if(${this.condition})`+super.render(E);return this.else&&(A+="else "+this.else.render(E)),A}optimizeNodes(){super.optimizeNodes();let E=this.condition;if(E===!0)return this.nodes;let A=this.else;if(A){let Y=A.optimizeNodes();A=this.else=Array.isArray(Y)?new h(Y):Y}if(A)return E===!1?A instanceof np?A:A.nodes:this.nodes.length?this:new np(je(E),A instanceof np?[A]:A.nodes);if(!(E===!1||!this.nodes.length))return this}optimizeNames(E,A){var Y;if(this.else=(Y=this.else)===null||Y===void 0?void 0:Y.optimizeNames(E,A),!!(super.optimizeNames(E,A)||this.else))return this.condition=ne(this.condition,E,A),this}get names(){let E=super.names;return X(E,this.condition),this.else&&U(E,this.else.names),E}};g.kind="if";var $=class extends y{};$.kind="for";var _=class extends ${constructor(R){super(),this.iteration=R}render(R){return`for(${this.iteration})`+super.render(R)}optimizeNames(R,E){if(super.optimizeNames(R,E))return this.iteration=ne(this.iteration,R,E),this}get names(){return U(super.names,this.iteration.names)}},b=class extends ${constructor(R,E,A,Y){super(),this.varKind=R,this.name=E,this.from=A,this.to=Y}render(R){let E=R.es5?n.varKinds.var:this.varKind,{name:A,from:Y,to:ce}=this;return`for(${E} ${A}=${Y}; ${A}<${ce}; ${A}++)`+super.render(R)}get names(){return X(X(super.names,this.from),this.to)}},k=class extends ${constructor(R,E,A,Y){super(),this.loop=R,this.varKind=E,this.name=A,this.iterable=Y}render(R){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(R)}optimizeNames(R,E){if(super.optimizeNames(R,E))return this.iterable=ne(this.iterable,R,E),this}get names(){return U(super.names,this.iterable.names)}},z=class extends y{constructor(R,E,A){super(),this.name=R,this.args=E,this.async=A}render(R){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(R)}};z.kind="func";var S=class extends v{render(R){return"return "+super.render(R)}};S.kind="return";var w=class extends y{render(R){let E="try"+super.render(R);return this.catch&&(E+=this.catch.render(R)),this.finally&&(E+=this.finally.render(R)),E}optimizeNodes(){var R,E;return super.optimizeNodes(),(R=this.catch)===null||R===void 0||R.optimizeNodes(),(E=this.finally)===null||E===void 0||E.optimizeNodes(),this}optimizeNames(R,E){var A,Y;return super.optimizeNames(R,E),(A=this.catch)===null||A===void 0||A.optimizeNames(R,E),(Y=this.finally)===null||Y===void 0||Y.optimizeNames(R,E),this}get names(){let R=super.names;return this.catch&&U(R,this.catch.names),this.finally&&U(R,this.finally.names),R}},T=class extends y{constructor(R){super(),this.error=R}render(R){return`catch(${this.error})`+super.render(R)}};T.kind="catch";var M=class extends y{render(R){return"finally"+super.render(R)}};M.kind="finally";var N=class{constructor(R,E={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...E,_n:E.lines?`
|
|
209
|
+
`:""},this._extScope=R,this._scope=new n.Scope({parent:R}),this._nodes=[new f]}toString(){return this._root.render(this.opts)}name(R){return this._scope.name(R)}scopeName(R){return this._extScope.name(R)}scopeValue(R,E){let A=this._extScope.value(R,E);return(this._values[A.prefix]||(this._values[A.prefix]=new Set)).add(A),A}getScopeValue(R,E){return this._extScope.getValue(R,E)}scopeRefs(R){return this._extScope.scopeRefs(R,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(R,E,A,Y){let ce=this._scope.toName(E);return A!==void 0&&Y&&(this._constants[ce.str]=A),this._leafNode(new a(R,ce,A)),ce}const(R,E,A){return this._def(n.varKinds.const,R,E,A)}let(R,E,A){return this._def(n.varKinds.let,R,E,A)}var(R,E,A){return this._def(n.varKinds.var,R,E,A)}assign(R,E,A){return this._leafNode(new s(R,E,A))}add(R,E){return this._leafNode(new c(R,e.operators.ADD,E))}code(R){return typeof R=="function"?R():R!==t.nil&&this._leafNode(new m(R)),this}object(...R){let E=["{"];for(let[A,Y]of R)E.length>1&&E.push(","),E.push(A),(A!==Y||this.opts.es5)&&(E.push(":"),(0,t.addCodeArg)(E,Y));return E.push("}"),new t._Code(E)}if(R,E,A){if(this._blockNode(new g(R)),E&&A)this.code(E).else().code(A).endIf();else if(E)this.code(E).endIf();else if(A)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(R){return this._elseNode(new g(R))}else(){return this._elseNode(new h)}endIf(){return this._endBlockNode(g,h)}_for(R,E){return this._blockNode(R),E&&this.code(E).endFor(),this}for(R,E){return this._for(new _(R),E)}forRange(R,E,A,Y,ce=this.opts.es5?n.varKinds.var:n.varKinds.let){let _e=this._scope.toName(R);return this._for(new b(ce,_e,E,A),()=>Y(_e))}forOf(R,E,A,Y=n.varKinds.const){let ce=this._scope.toName(R);if(this.opts.es5){let _e=E instanceof t.Name?E:this.var("_arr",E);return this.forRange("_i",0,(0,t._)`${_e}.length`,pe=>{this.var(ce,(0,t._)`${_e}[${pe}]`),A(ce)})}return this._for(new k("of",Y,ce,E),()=>A(ce))}forIn(R,E,A,Y=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(R,(0,t._)`Object.keys(${E})`,A);let ce=this._scope.toName(R);return this._for(new k("in",Y,ce,E),()=>A(ce))}endFor(){return this._endBlockNode($)}label(R){return this._leafNode(new l(R))}break(R){return this._leafNode(new u(R))}return(R){let E=new S;if(this._blockNode(E),this.code(R),E.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(R,E,A){if(!E&&!A)throw new Error('CodeGen: "try" without "catch" and "finally"');let Y=new w;if(this._blockNode(Y),this.code(R),E){let ce=this.name("e");this._currNode=Y.catch=new T(ce),E(ce)}return A&&(this._currNode=Y.finally=new M,this.code(A)),this._endBlockNode(T,M)}throw(R){return this._leafNode(new d(R))}block(R,E){return this._blockStarts.push(this._nodes.length),R&&this.code(R).endBlock(E),this}endBlock(R){let E=this._blockStarts.pop();if(E===void 0)throw new Error("CodeGen: not in self-balancing block");let A=this._nodes.length-E;if(A<0||R!==void 0&&A!==R)throw new Error(`CodeGen: wrong number of nodes: ${A} vs ${R} expected`);return this._nodes.length=E,this}func(R,E=t.nil,A,Y){return this._blockNode(new z(R,E,A)),Y&&this.code(Y).endFunc(),this}endFunc(){return this._endBlockNode(z)}optimize(R=1){for(;R-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(R){return this._currNode.nodes.push(R),this}_blockNode(R){this._currNode.nodes.push(R),this._nodes.push(R)}_endBlockNode(R,E){let A=this._currNode;if(A instanceof R||E&&A instanceof E)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${E?`${R.kind}/${E.kind}`:R.kind}"`)}_elseNode(R){let E=this._currNode;if(!(E instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=E.else=R,this}get _root(){return this._nodes[0]}get _currNode(){let R=this._nodes;return R[R.length-1]}set _currNode(R){let E=this._nodes;E[E.length-1]=R}};e.CodeGen=N;function U(R,E){for(let A in E)R[A]=(R[A]||0)+(E[A]||0);return R}function X(R,E){return E instanceof t._CodeOrName?U(R,E.names):R}function ne(R,E,A){if(R instanceof t.Name)return Y(R);if(!ce(R))return R;return new t._Code(R._items.reduce((_e,pe)=>(pe instanceof t.Name&&(pe=Y(pe)),pe instanceof t._Code?_e.push(...pe._items):_e.push(pe),_e),[]));function Y(_e){let pe=A[_e.str];return pe===void 0||E[_e.str]!==1?_e:(delete E[_e.str],pe)}function ce(_e){return _e instanceof t._Code&&_e._items.some(pe=>pe instanceof t.Name&&E[pe.str]===1&&A[pe.str]!==void 0)}}function be(R,E){for(let A in E)R[A]=(R[A]||0)-(E[A]||0)}function je(R){return typeof R=="boolean"||typeof R=="number"||R===null?!R:(0,t._)`!${B(R)}`}e.not=je;let xe=L(e.operators.AND);function Ze(...R){return R.reduce(xe)}e.and=Ze;let ze=L(e.operators.OR);function O(...R){return R.reduce(ze)}e.or=O;function L(R){return(E,A)=>E===t.nil?A:A===t.nil?E:(0,t._)`${B(E)} ${R} ${B(A)}`}function B(R){return R instanceof t.Name?R:(0,t._)`(${R})`}})),ke=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;let t=ve(),n=ip();function i(z){let S={};for(let w of z)S[w]=!0;return S}e.toHash=i;function r(z,S){return typeof S=="boolean"?S:Object.keys(S).length===0?!0:(o(z,S),!a(S,z.self.RULES.all))}e.alwaysValidSchema=r;function o(z,S=z.schema){let{opts:w,self:T}=z;if(!w.strictSchema||typeof S=="boolean")return;let M=T.RULES.keywords;for(let N in S)M[N]||k(z,`unknown keyword: "${N}"`)}e.checkUnknownRules=o;function a(z,S){if(typeof z=="boolean")return!z;for(let w in z)if(S[w])return!0;return!1}e.schemaHasRules=a;function s(z,S){if(typeof z=="boolean")return!z;for(let w in z)if(w!=="$ref"&&S.all[w])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:z,schemaPath:S},w,T,M){if(!M){if(typeof w=="number"||typeof w=="boolean")return w;if(typeof w=="string")return(0,t._)`${w}`}return(0,t._)`${z}${S}${(0,t.getProperty)(T)}`}e.schemaRefOrVal=c;function l(z){return m(decodeURIComponent(z))}e.unescapeFragment=l;function u(z){return encodeURIComponent(d(z))}e.escapeFragment=u;function d(z){return typeof z=="number"?`${z}`:z.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function m(z){return z.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=m;function v(z,S){if(Array.isArray(z))for(let w of z)S(w);else S(z)}e.eachItem=v;function y({mergeNames:z,mergeToName:S,mergeValues:w,resultToName:T}){return(M,N,U,X)=>{let ne=U===void 0?N:U instanceof t.Name?(N instanceof t.Name?z(M,N,U):S(M,N,U),U):N instanceof t.Name?(S(M,U,N),N):w(N,U);return X===t.Name&&!(ne instanceof t.Name)?T(M,ne):ne}}e.mergeEvaluated={props:y({mergeNames:(z,S,w)=>z.if((0,t._)`${w} !== true && ${S} !== undefined`,()=>{z.if((0,t._)`${S} === true`,()=>z.assign(w,!0),()=>z.assign(w,(0,t._)`${w} || {}`).code((0,t._)`Object.assign(${w}, ${S})`))}),mergeToName:(z,S,w)=>z.if((0,t._)`${w} !== true`,()=>{S===!0?z.assign(w,!0):(z.assign(w,(0,t._)`${w} || {}`),h(z,w,S))}),mergeValues:(z,S)=>z===!0?!0:{...z,...S},resultToName:f}),items:y({mergeNames:(z,S,w)=>z.if((0,t._)`${w} !== true && ${S} !== undefined`,()=>z.assign(w,(0,t._)`${S} === true ? true : ${w} > ${S} ? ${w} : ${S}`)),mergeToName:(z,S,w)=>z.if((0,t._)`${w} !== true`,()=>z.assign(w,S===!0?!0:(0,t._)`${w} > ${S} ? ${w} : ${S}`)),mergeValues:(z,S)=>z===!0?!0:Math.max(z,S),resultToName:(z,S)=>z.var("items",S)})};function f(z,S){if(S===!0)return z.var("props",!0);let w=z.var("props",(0,t._)`{}`);return S!==void 0&&h(z,w,S),w}e.evaluatedPropsToName=f;function h(z,S,w){Object.keys(w).forEach(T=>z.assign((0,t._)`${S}${(0,t.getProperty)(T)}`,!0))}e.setEvaluated=h;let g={};function $(z,S){return z.scopeValue("func",{ref:S,code:g[S.code]||(g[S.code]=new n._Code(S.code))})}e.useFunc=$;var _;(function(z){z[z.Num=0]="Num",z[z.Str=1]="Str"})(_||(e.Type=_={}));function b(z,S,w){if(z instanceof t.Name){let T=S===_.Num;return w?T?(0,t._)`"[" + ${z} + "]"`:(0,t._)`"['" + ${z} + "']"`:T?(0,t._)`"/" + ${z}`:(0,t._)`"/" + ${z}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return w?(0,t.getProperty)(z).toString():"/"+d(z)}e.getErrorPath=b;function k(z,S,w=z.opts.strictSchema){if(w){if(S=`strict mode: ${S}`,w===!0)throw new Error(S);z.self.logger.warn(S)}}e.checkStrictMode=k})),Jt=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};e.default=n})),ap=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;let t=ve(),n=ke(),i=Jt();e.keywordError={message:({keyword:h})=>(0,t.str)`must pass "${h}" keyword validation`},e.keyword$DataError={message:({keyword:h,schemaType:g})=>g?(0,t.str)`"${h}" keyword must be ${g} ($data)`:(0,t.str)`"${h}" keyword is invalid ($data)`};function r(h,g=e.keywordError,$,_){let{it:b}=h,{gen:k,compositeRule:z,allErrors:S}=b,w=d(h,g,$);_??(z||S)?c(k,w):l(b,(0,t._)`[${w}]`)}e.reportError=r;function o(h,g=e.keywordError,$){let{it:_}=h,{gen:b,compositeRule:k,allErrors:z}=_;c(b,d(h,g,$)),k||z||l(_,i.default.vErrors)}e.reportExtraError=o;function a(h,g){h.assign(i.default.errors,g),h.if((0,t._)`${i.default.vErrors} !== null`,()=>h.if(g,()=>h.assign((0,t._)`${i.default.vErrors}.length`,g),()=>h.assign(i.default.vErrors,null)))}e.resetErrorsCount=a;function s({gen:h,keyword:g,schemaValue:$,data:_,errsCount:b,it:k}){if(b===void 0)throw new Error("ajv implementation error");let z=h.name("err");h.forRange("i",b,i.default.errors,S=>{h.const(z,(0,t._)`${i.default.vErrors}[${S}]`),h.if((0,t._)`${z}.instancePath === undefined`,()=>h.assign((0,t._)`${z}.instancePath`,(0,t.strConcat)(i.default.instancePath,k.errorPath))),h.assign((0,t._)`${z}.schemaPath`,(0,t.str)`${k.errSchemaPath}/${g}`),k.opts.verbose&&(h.assign((0,t._)`${z}.schema`,$),h.assign((0,t._)`${z}.data`,_))})}e.extendErrors=s;function c(h,g){let $=h.const("err",g);h.if((0,t._)`${i.default.vErrors} === null`,()=>h.assign(i.default.vErrors,(0,t._)`[${$}]`),(0,t._)`${i.default.vErrors}.push(${$})`),h.code((0,t._)`${i.default.errors}++`)}function l(h,g){let{gen:$,validateName:_,schemaEnv:b}=h;b.$async?$.throw((0,t._)`new ${h.ValidationError}(${g})`):($.assign((0,t._)`${_}.errors`,g),$.return(!1))}let u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(h,g,$){let{createErrors:_}=h.it;return _===!1?(0,t._)`{}`:m(h,g,$)}function m(h,g,$={}){let{gen:_,it:b}=h,k=[v(b,$),y(h,$)];return f(h,g,k),_.object(...k)}function v({errorPath:h},{instancePath:g}){let $=g?(0,t.str)`${h}${(0,n.getErrorPath)(g,n.Type.Str)}`:h;return[i.default.instancePath,(0,t.strConcat)(i.default.instancePath,$)]}function y({keyword:h,it:{errSchemaPath:g}},{schemaPath:$,parentSchema:_}){let b=_?g:(0,t.str)`${g}/${h}`;return $&&(b=(0,t.str)`${b}${(0,n.getErrorPath)($,n.Type.Str)}`),[u.schemaPath,b]}function f(h,{params:g,message:$},_){let{keyword:b,data:k,schemaValue:z,it:S}=h,{opts:w,propertyName:T,topSchemaRef:M,schemaPath:N}=S;_.push([u.keyword,b],[u.params,typeof g=="function"?g(h):g||(0,t._)`{}`]),w.messages&&_.push([u.message,typeof $=="function"?$(h):$]),w.verbose&&_.push([u.schema,z],[u.parentSchema,(0,t._)`${M}${N}`],[i.default.data,k]),T&&_.push([u.propertyName,T])}})),aq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;let t=ap(),n=ve(),i=Jt(),r={message:"boolean schema is false"};function o(c){let{gen:l,schema:u,validateName:d}=c;u===!1?s(c,!1):typeof u=="object"&&u.$async===!0?l.return(i.default.data):(l.assign((0,n._)`${d}.errors`,null),l.return(!0))}e.topBoolOrEmptySchema=o;function a(c,l){let{gen:u,schema:d}=c;d===!1?(u.var(l,!1),s(c)):u.var(l,!0)}e.boolOrEmptySchema=a;function s(c,l){let{gen:u,data:d}=c,m={gen:u,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,t.reportError)(m,r,void 0,l)}})),VI=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;let t=new Set(["string","number","integer","boolean","null","object","array"]);function n(r){return typeof r=="string"&&t.has(r)}e.isJSONType=n;function i(){let r={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...r,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},r.number,r.string,r.array,r.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=i})),FI=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function t({schema:r,self:o},a){let s=o.RULES.types[a];return s&&s!==!0&&n(r,s)}e.schemaHasRulesForType=t;function n(r,o){return o.rules.some(a=>i(r,a))}e.shouldUseGroup=n;function i(r,o){var a;return r[o.keyword]!==void 0||((a=o.definition.implements)===null||a===void 0?void 0:a.some(s=>r[s]!==void 0))}e.shouldUseRule=i})),op=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;let t=VI(),n=FI(),i=ap(),r=ve(),o=ke();var a;(function(_){_[_.Correct=0]="Correct",_[_.Wrong=1]="Wrong"})(a||(e.DataType=a={}));function s(_){let b=c(_.type);if(b.includes("null")){if(_.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!b.length&&_.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');_.nullable===!0&&b.push("null")}return b}e.getSchemaTypes=s;function c(_){let b=Array.isArray(_)?_:_?[_]:[];if(b.every(t.isJSONType))return b;throw new Error("type must be JSONType or JSONType[]: "+b.join(","))}e.getJSONTypes=c;function l(_,b){let{gen:k,data:z,opts:S}=_,w=d(b,S.coerceTypes),T=b.length>0&&!(w.length===0&&b.length===1&&(0,n.schemaHasRulesForType)(_,b[0]));if(T){let M=f(b,z,S.strictNumbers,a.Wrong);k.if(M,()=>{w.length?m(_,b,w):g(_)})}return T}e.coerceAndCheckDataType=l;let u=new Set(["string","number","integer","boolean","null"]);function d(_,b){return b?_.filter(k=>u.has(k)||b==="array"&&k==="array"):[]}function m(_,b,k){let{gen:z,data:S,opts:w}=_,T=z.let("dataType",(0,r._)`typeof ${S}`),M=z.let("coerced",(0,r._)`undefined`);w.coerceTypes==="array"&&z.if((0,r._)`${T} == 'object' && Array.isArray(${S}) && ${S}.length == 1`,()=>z.assign(S,(0,r._)`${S}[0]`).assign(T,(0,r._)`typeof ${S}`).if(f(b,S,w.strictNumbers),()=>z.assign(M,S))),z.if((0,r._)`${M} !== undefined`);for(let U of k)(u.has(U)||U==="array"&&w.coerceTypes==="array")&&N(U);z.else(),g(_),z.endIf(),z.if((0,r._)`${M} !== undefined`,()=>{z.assign(S,M),v(_,M)});function N(U){switch(U){case"string":z.elseIf((0,r._)`${T} == "number" || ${T} == "boolean"`).assign(M,(0,r._)`"" + ${S}`).elseIf((0,r._)`${S} === null`).assign(M,(0,r._)`""`);return;case"number":z.elseIf((0,r._)`${T} == "boolean" || ${S} === null
|
|
210
|
+
|| (${T} == "string" && ${S} && ${S} == +${S})`).assign(M,(0,r._)`+${S}`);return;case"integer":z.elseIf((0,r._)`${T} === "boolean" || ${S} === null
|
|
211
|
+
|| (${T} === "string" && ${S} && ${S} == +${S} && !(${S} % 1))`).assign(M,(0,r._)`+${S}`);return;case"boolean":z.elseIf((0,r._)`${S} === "false" || ${S} === 0 || ${S} === null`).assign(M,!1).elseIf((0,r._)`${S} === "true" || ${S} === 1`).assign(M,!0);return;case"null":z.elseIf((0,r._)`${S} === "" || ${S} === 0 || ${S} === false`),z.assign(M,null);return;case"array":z.elseIf((0,r._)`${T} === "string" || ${T} === "number"
|
|
212
|
+
|| ${T} === "boolean" || ${S} === null`).assign(M,(0,r._)`[${S}]`)}}}function v({gen:_,parentData:b,parentDataProperty:k},z){_.if((0,r._)`${b} !== undefined`,()=>_.assign((0,r._)`${b}[${k}]`,z))}function y(_,b,k,z=a.Correct){let S=z===a.Correct?r.operators.EQ:r.operators.NEQ,w;switch(_){case"null":return(0,r._)`${b} ${S} null`;case"array":w=(0,r._)`Array.isArray(${b})`;break;case"object":w=(0,r._)`${b} && typeof ${b} == "object" && !Array.isArray(${b})`;break;case"integer":w=T((0,r._)`!(${b} % 1) && !isNaN(${b})`);break;case"number":w=T();break;default:return(0,r._)`typeof ${b} ${S} ${_}`}return z===a.Correct?w:(0,r.not)(w);function T(M=r.nil){return(0,r.and)((0,r._)`typeof ${b} == "number"`,M,k?(0,r._)`isFinite(${b})`:r.nil)}}e.checkDataType=y;function f(_,b,k,z){if(_.length===1)return y(_[0],b,k,z);let S,w=(0,o.toHash)(_);if(w.array&&w.object){let T=(0,r._)`typeof ${b} != "object"`;S=w.null?T:(0,r._)`!${b} || ${T}`,delete w.null,delete w.array,delete w.object}else S=r.nil;w.number&&delete w.integer;for(let T in w)S=(0,r.and)(S,y(T,b,k,z));return S}e.checkDataTypes=f;let h={message:({schema:_})=>`must be ${_}`,params:({schema:_,schemaValue:b})=>typeof _=="string"?(0,r._)`{type: ${_}}`:(0,r._)`{type: ${b}}`};function g(_){let b=$(_);(0,i.reportError)(b,h)}e.reportTypeError=g;function $(_){let{gen:b,data:k,schema:z}=_,S=(0,o.schemaRefOrVal)(_,z,"type");return{gen:b,keyword:"type",data:k,schema:z.type,schemaCode:S,schemaValue:S,parentSchema:z,params:{},it:_}}})),sq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0;let t=ve(),n=ke();function i(o,a){let{properties:s,items:c}=o.schema;if(a==="object"&&s)for(let l in s)r(o,l,s[l].default);else a==="array"&&Array.isArray(c)&&c.forEach((l,u)=>r(o,u,l.default))}e.assignDefaults=i;function r(o,a,s){let{gen:c,compositeRule:l,data:u,opts:d}=o;if(s===void 0)return;let m=(0,t._)`${u}${(0,t.getProperty)(a)}`;if(l){(0,n.checkStrictMode)(o,`default is ignored for: ${m}`);return}let v=(0,t._)`${m} === undefined`;d.useDefaults==="empty"&&(v=(0,t._)`${v} || ${m} === null || ${m} === ""`),c.if(v,(0,t._)`${m} = ${(0,t.stringify)(s)}`)}})),Bt=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;let t=ve(),n=ke(),i=Jt(),r=ke();function o(_,b){let{gen:k,data:z,it:S}=_;k.if(d(k,z,b,S.opts.ownProperties),()=>{_.setParams({missingProperty:(0,t._)`${b}`},!0),_.error()})}e.checkReportMissingProp=o;function a({gen:_,data:b,it:{opts:k}},z,S){return(0,t.or)(...z.map(w=>(0,t.and)(d(_,b,w,k.ownProperties),(0,t._)`${S} = ${w}`)))}e.checkMissingProp=a;function s(_,b){_.setParams({missingProperty:b},!0),_.error()}e.reportMissingProp=s;function c(_){return _.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}e.hasPropFunc=c;function l(_,b,k){return(0,t._)`${c(_)}.call(${b}, ${k})`}e.isOwnProperty=l;function u(_,b,k,z){let S=(0,t._)`${b}${(0,t.getProperty)(k)} !== undefined`;return z?(0,t._)`${S} && ${l(_,b,k)}`:S}e.propertyInData=u;function d(_,b,k,z){let S=(0,t._)`${b}${(0,t.getProperty)(k)} === undefined`;return z?(0,t.or)(S,(0,t.not)(l(_,b,k))):S}e.noPropertyInData=d;function m(_){return _?Object.keys(_).filter(b=>b!=="__proto__"):[]}e.allSchemaProperties=m;function v(_,b){return m(b).filter(k=>!(0,n.alwaysValidSchema)(_,b[k]))}e.schemaProperties=v;function y({schemaCode:_,data:b,it:{gen:k,topSchemaRef:z,schemaPath:S,errorPath:w},it:T},M,N,U){let X=U?(0,t._)`${_}, ${b}, ${z}${S}`:b,ne=[[i.default.instancePath,(0,t.strConcat)(i.default.instancePath,w)],[i.default.parentData,T.parentData],[i.default.parentDataProperty,T.parentDataProperty],[i.default.rootData,i.default.rootData]];T.opts.dynamicRef&&ne.push([i.default.dynamicAnchors,i.default.dynamicAnchors]);let be=(0,t._)`${X}, ${k.object(...ne)}`;return N!==t.nil?(0,t._)`${M}.call(${N}, ${be})`:(0,t._)`${M}(${be})`}e.callValidateCode=y;let f=(0,t._)`new RegExp`;function h({gen:_,it:{opts:b}},k){let z=b.unicodeRegExp?"u":"",{regExp:S}=b.code,w=S(k,z);return _.scopeValue("pattern",{key:w.toString(),ref:w,code:(0,t._)`${S.code==="new RegExp"?f:(0,r.useFunc)(_,S)}(${k}, ${z})`})}e.usePattern=h;function g(_){let{gen:b,data:k,keyword:z,it:S}=_,w=b.name("valid");if(S.allErrors){let M=b.let("valid",!0);return T(()=>b.assign(M,!1)),M}return b.var(w,!0),T(()=>b.break()),w;function T(M){let N=b.const("len",(0,t._)`${k}.length`);b.forRange("i",0,N,U=>{_.subschema({keyword:z,dataProp:U,dataPropType:n.Type.Num},w),b.if((0,t.not)(w),M)})}}e.validateArray=g;function $(_){let{gen:b,schema:k,keyword:z,it:S}=_;if(!Array.isArray(k))throw new Error("ajv implementation error");if(k.some(M=>(0,n.alwaysValidSchema)(S,M))&&!S.opts.unevaluated)return;let w=b.let("valid",!1),T=b.name("_valid");b.block(()=>k.forEach((M,N)=>{let U=_.subschema({keyword:z,schemaProp:N,compositeRule:!0},T);b.assign(w,(0,t._)`${w} || ${T}`),_.mergeValidEvaluated(U,T)||b.if((0,t.not)(w))})),_.result(w,()=>_.reset(),()=>_.error(!0))}e.validateUnion=$})),cq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0;let t=ve(),n=Jt(),i=Bt(),r=ap();function o(v,y){let{gen:f,keyword:h,schema:g,parentSchema:$,it:_}=v,b=y.macro.call(_.self,g,$,_),k=u(f,h,b);_.opts.validateSchema!==!1&&_.self.validateSchema(b,!0);let z=f.name("valid");v.subschema({schema:b,schemaPath:t.nil,errSchemaPath:`${_.errSchemaPath}/${h}`,topSchemaRef:k,compositeRule:!0},z),v.pass(z,()=>v.error(!0))}e.macroKeywordCode=o;function a(v,y){var f;let{gen:h,keyword:g,schema:$,parentSchema:_,$data:b,it:k}=v;l(k,y);let z=u(h,g,!b&&y.compile?y.compile.call(k.self,$,_,k):y.validate),S=h.let("valid");v.block$data(S,w),v.ok((f=y.valid)!==null&&f!==void 0?f:S);function w(){if(y.errors===!1)N(),y.modifying&&s(v),U(()=>v.error());else{let X=y.async?T():M();y.modifying&&s(v),U(()=>c(v,X))}}function T(){let X=h.let("ruleErrs",null);return h.try(()=>N((0,t._)`await `),ne=>h.assign(S,!1).if((0,t._)`${ne} instanceof ${k.ValidationError}`,()=>h.assign(X,(0,t._)`${ne}.errors`),()=>h.throw(ne))),X}function M(){let X=(0,t._)`${z}.errors`;return h.assign(X,null),N(t.nil),X}function N(X=y.async?(0,t._)`await `:t.nil){let ne=k.opts.passContext?n.default.this:n.default.self,be=!("compile"in y&&!b||y.schema===!1);h.assign(S,(0,t._)`${X}${(0,i.callValidateCode)(v,z,ne,be)}`,y.modifying)}function U(X){var ne;h.if((0,t.not)((ne=y.valid)!==null&&ne!==void 0?ne:S),X)}}e.funcKeywordCode=a;function s(v){let{gen:y,data:f,it:h}=v;y.if(h.parentData,()=>y.assign(f,(0,t._)`${h.parentData}[${h.parentDataProperty}]`))}function c(v,y){let{gen:f}=v;f.if((0,t._)`Array.isArray(${y})`,()=>{f.assign(n.default.vErrors,(0,t._)`${n.default.vErrors} === null ? ${y} : ${n.default.vErrors}.concat(${y})`).assign(n.default.errors,(0,t._)`${n.default.vErrors}.length`),(0,r.extendErrors)(v)},()=>v.error())}function l({schemaEnv:v},y){if(y.async&&!v.$async)throw new Error("async keyword in sync schema")}function u(v,y,f){if(f===void 0)throw new Error(`keyword "${y}" failed to compile`);return v.scopeValue("keyword",typeof f=="function"?{ref:f}:{ref:f,code:(0,t.stringify)(f)})}function d(v,y,f=!1){return!y.length||y.some(h=>h==="array"?Array.isArray(v):h==="object"?v&&typeof v=="object"&&!Array.isArray(v):typeof v==h||f&&typeof v>"u")}e.validSchemaType=d;function m({schema:v,opts:y,self:f,errSchemaPath:h},g,$){if(Array.isArray(g.keyword)?!g.keyword.includes($):g.keyword!==$)throw new Error("ajv implementation error");let _=g.dependencies;if(_?.some(b=>!Object.prototype.hasOwnProperty.call(v,b)))throw new Error(`parent schema must have dependencies of ${$}: ${_.join(",")}`);if(g.validateSchema&&!g.validateSchema(v[$])){let b=`keyword "${$}" value is invalid at path "${h}": `+f.errorsText(g.validateSchema.errors);if(y.validateSchema==="log")f.logger.error(b);else throw new Error(b)}}e.validateKeywordUsage=m})),lq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0;let t=ve(),n=ke();function i(a,{keyword:s,schemaProp:c,schema:l,schemaPath:u,errSchemaPath:d,topSchemaRef:m}){if(s!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){let v=a.schema[s];return c===void 0?{schema:v,schemaPath:(0,t._)`${a.schemaPath}${(0,t.getProperty)(s)}`,errSchemaPath:`${a.errSchemaPath}/${s}`}:{schema:v[c],schemaPath:(0,t._)`${a.schemaPath}${(0,t.getProperty)(s)}${(0,t.getProperty)(c)}`,errSchemaPath:`${a.errSchemaPath}/${s}/${(0,n.escapeFragment)(c)}`}}if(l!==void 0){if(u===void 0||d===void 0||m===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:u,topSchemaRef:m,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}e.getSubschema=i;function r(a,s,{dataProp:c,dataPropType:l,data:u,dataTypes:d,propertyName:m}){if(u!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:v}=s;if(c!==void 0){let{errorPath:f,dataPathArr:h,opts:g}=s;y(v.let("data",(0,t._)`${s.data}${(0,t.getProperty)(c)}`,!0)),a.errorPath=(0,t.str)`${f}${(0,n.getErrorPath)(c,l,g.jsPropertySyntax)}`,a.parentDataProperty=(0,t._)`${c}`,a.dataPathArr=[...h,a.parentDataProperty]}u!==void 0&&(y(u instanceof t.Name?u:v.let("data",u,!0)),m!==void 0&&(a.propertyName=m)),d&&(a.dataTypes=d);function y(f){a.data=f,a.dataLevel=s.dataLevel+1,a.dataTypes=[],s.definedProperties=new Set,a.parentData=s.data,a.dataNames=[...s.dataNames,f]}}e.extendSubschemaData=r;function o(a,{jtdDiscriminator:s,jtdMetadata:c,compositeRule:l,createErrors:u,allErrors:d}){l!==void 0&&(a.compositeRule=l),u!==void 0&&(a.createErrors=u),d!==void 0&&(a.allErrors=d),a.jtdDiscriminator=s,a.jtdMetadata=c}e.extendSubschemaMode=o})),ZI=Z(((e,t)=>{t.exports=function n(i,r){if(i===r)return!0;if(i&&r&&typeof i=="object"&&typeof r=="object"){if(i.constructor!==r.constructor)return!1;var o,a,s;if(Array.isArray(i)){if(o=i.length,o!=r.length)return!1;for(a=o;a--!==0;)if(!n(i[a],r[a]))return!1;return!0}if(i.constructor===RegExp)return i.source===r.source&&i.flags===r.flags;if(i.valueOf!==Object.prototype.valueOf)return i.valueOf()===r.valueOf();if(i.toString!==Object.prototype.toString)return i.toString()===r.toString();if(s=Object.keys(i),o=s.length,o!==Object.keys(r).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[a]))return!1;for(a=o;a--!==0;){var c=s[a];if(!n(i[c],r[c]))return!1}return!0}return i!==i&&r!==r}})),uq=Z(((e,t)=>{var n=t.exports=function(o,a,s){typeof a=="function"&&(s=a,a={}),s=a.cb||s;var c=typeof s=="function"?s:s.pre||function(){},l=s.post||function(){};i(a,c,l,o,"",o)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function i(o,a,s,c,l,u,d,m,v,y){if(c&&typeof c=="object"&&!Array.isArray(c)){a(c,l,u,d,m,v,y);for(var f in c){var h=c[f];if(Array.isArray(h)){if(f in n.arrayKeywords)for(var g=0;g<h.length;g++)i(o,a,s,h[g],l+"/"+f+"/"+g,u,l,f,c,g)}else if(f in n.propsKeywords){if(h&&typeof h=="object")for(var $ in h)i(o,a,s,h[$],l+"/"+f+"/"+r($),u,l,f,c,$)}else(f in n.keywords||o.allKeys&&!(f in n.skipKeywords))&&i(o,a,s,h,l+"/"+f,u,l,f,c)}s(c,l,u,d,m,v,y)}}function r(o){return o.replace(/~/g,"~0").replace(/\//g,"~1")}})),sp=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;let t=ke(),n=ZI(),i=uq(),r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o(h,g=!0){return typeof h=="boolean"?!0:g===!0?!s(h):g?c(h)<=g:!1}e.inlineRef=o;let a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(h){for(let g in h){if(a.has(g))return!0;let $=h[g];if(Array.isArray($)&&$.some(s)||typeof $=="object"&&s($))return!0}return!1}function c(h){let g=0;for(let $ in h){if($==="$ref")return 1/0;if(g++,!r.has($)&&(typeof h[$]=="object"&&(0,t.eachItem)(h[$],_=>g+=c(_)),g===1/0))return 1/0}return g}function l(h,g="",$){return $!==!1&&(g=m(g)),u(h,h.parse(g))}e.getFullPath=l;function u(h,g){return h.serialize(g).split("#")[0]+"#"}e._getFullPath=u;let d=/#\/?$/;function m(h){return h?h.replace(d,""):""}e.normalizeId=m;function v(h,g,$){return $=m($),h.resolve(g,$)}e.resolveUrl=v;let y=/^[a-z_][-a-z0-9._]*$/i;function f(h,g){if(typeof h=="boolean")return{};let{schemaId:$,uriResolver:_}=this.opts,b=m(h[$]||g),k={"":b},z=l(_,b,!1),S={},w=new Set;return i(h,{allKeys:!0},(N,U,X,ne)=>{if(ne===void 0)return;let be=z+U,je=k[ne];typeof N[$]=="string"&&(je=xe.call(this,N[$])),Ze.call(this,N.$anchor),Ze.call(this,N.$dynamicAnchor),k[U]=je;function xe(ze){let O=this.opts.uriResolver.resolve;if(ze=m(je?O(je,ze):ze),w.has(ze))throw M(ze);w.add(ze);let L=this.refs[ze];return typeof L=="string"&&(L=this.refs[L]),typeof L=="object"?T(N,L.schema,ze):ze!==m(be)&&(ze[0]==="#"?(T(N,S[ze],ze),S[ze]=N):this.refs[ze]=be),ze}function Ze(ze){if(typeof ze=="string"){if(!y.test(ze))throw new Error(`invalid anchor "${ze}"`);xe.call(this,`#${ze}`)}}}),S;function T(N,U,X){if(U!==void 0&&!n(N,U))throw M(X)}function M(N){return new Error(`reference "${N}" resolves to more than one schema`)}}e.getSchemaRefs=f})),_o=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;let t=aq(),n=op(),i=FI(),r=op(),o=sq(),a=cq(),s=lq(),c=ve(),l=Jt(),u=sp(),d=ke(),m=ap();function v(P){if(z(P)&&(w(P),k(P))){g(P);return}y(P,()=>(0,t.topBoolOrEmptySchema)(P))}e.validateFunctionCode=v;function y({gen:P,validateName:D,schema:F,schemaEnv:de,opts:me},ye){me.code.es5?P.func(D,(0,c._)`${l.default.data}, ${l.default.valCxt}`,de.$async,()=>{P.code((0,c._)`"use strict"; ${_(F,me)}`),h(P,me),P.code(ye)}):P.func(D,(0,c._)`${l.default.data}, ${f(me)}`,de.$async,()=>P.code(_(F,me)).code(ye))}function f(P){return(0,c._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${P.dynamicRef?(0,c._)`, ${l.default.dynamicAnchors}={}`:c.nil}}={}`}function h(P,D){P.if(l.default.valCxt,()=>{P.var(l.default.instancePath,(0,c._)`${l.default.valCxt}.${l.default.instancePath}`),P.var(l.default.parentData,(0,c._)`${l.default.valCxt}.${l.default.parentData}`),P.var(l.default.parentDataProperty,(0,c._)`${l.default.valCxt}.${l.default.parentDataProperty}`),P.var(l.default.rootData,(0,c._)`${l.default.valCxt}.${l.default.rootData}`),D.dynamicRef&&P.var(l.default.dynamicAnchors,(0,c._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{P.var(l.default.instancePath,(0,c._)`""`),P.var(l.default.parentData,(0,c._)`undefined`),P.var(l.default.parentDataProperty,(0,c._)`undefined`),P.var(l.default.rootData,l.default.data),D.dynamicRef&&P.var(l.default.dynamicAnchors,(0,c._)`{}`)})}function g(P){let{schema:D,opts:F,gen:de}=P;y(P,()=>{F.$comment&&D.$comment&&ne(P),N(P),de.let(l.default.vErrors,null),de.let(l.default.errors,0),F.unevaluated&&$(P),T(P),be(P)})}function $(P){let{gen:D,validateName:F}=P;P.evaluated=D.const("evaluated",(0,c._)`${F}.evaluated`),D.if((0,c._)`${P.evaluated}.dynamicProps`,()=>D.assign((0,c._)`${P.evaluated}.props`,(0,c._)`undefined`)),D.if((0,c._)`${P.evaluated}.dynamicItems`,()=>D.assign((0,c._)`${P.evaluated}.items`,(0,c._)`undefined`))}function _(P,D){let F=typeof P=="object"&&P[D.schemaId];return F&&(D.code.source||D.code.process)?(0,c._)`/*# sourceURL=${F} */`:c.nil}function b(P,D){if(z(P)&&(w(P),k(P))){S(P,D);return}(0,t.boolOrEmptySchema)(P,D)}function k({schema:P,self:D}){if(typeof P=="boolean")return!P;for(let F in P)if(D.RULES.all[F])return!0;return!1}function z(P){return typeof P.schema!="boolean"}function S(P,D){let{schema:F,gen:de,opts:me}=P;me.$comment&&F.$comment&&ne(P),U(P),X(P);let ye=de.const("_errs",l.default.errors);T(P,ye),de.var(D,(0,c._)`${ye} === ${l.default.errors}`)}function w(P){(0,d.checkUnknownRules)(P),M(P)}function T(P,D){if(P.opts.jtd)return xe(P,[],!1,D);let F=(0,n.getSchemaTypes)(P.schema);xe(P,F,!(0,n.coerceAndCheckDataType)(P,F),D)}function M(P){let{schema:D,errSchemaPath:F,opts:de,self:me}=P;D.$ref&&de.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(D,me.RULES)&&me.logger.warn(`$ref: keywords ignored in schema at path "${F}"`)}function N(P){let{schema:D,opts:F}=P;D.default!==void 0&&F.useDefaults&&F.strictSchema&&(0,d.checkStrictMode)(P,"default is ignored in the schema root")}function U(P){let D=P.schema[P.opts.schemaId];D&&(P.baseId=(0,u.resolveUrl)(P.opts.uriResolver,P.baseId,D))}function X(P){if(P.schema.$async&&!P.schemaEnv.$async)throw new Error("async schema in sync schema")}function ne({gen:P,schemaEnv:D,schema:F,errSchemaPath:de,opts:me}){let ye=F.$comment;if(me.$comment===!0)P.code((0,c._)`${l.default.self}.logger.log(${ye})`);else if(typeof me.$comment=="function"){let Ue=(0,c.str)`${de}/$comment`,He=P.scopeValue("root",{ref:D.root});P.code((0,c._)`${l.default.self}.opts.$comment(${ye}, ${Ue}, ${He}.schema)`)}}function be(P){let{gen:D,schemaEnv:F,validateName:de,ValidationError:me,opts:ye}=P;F.$async?D.if((0,c._)`${l.default.errors} === 0`,()=>D.return(l.default.data),()=>D.throw((0,c._)`new ${me}(${l.default.vErrors})`)):(D.assign((0,c._)`${de}.errors`,l.default.vErrors),ye.unevaluated&&je(P),D.return((0,c._)`${l.default.errors} === 0`))}function je({gen:P,evaluated:D,props:F,items:de}){F instanceof c.Name&&P.assign((0,c._)`${D}.props`,F),de instanceof c.Name&&P.assign((0,c._)`${D}.items`,de)}function xe(P,D,F,de){let{gen:me,schema:ye,data:Ue,allErrors:He,opts:nt,self:Je}=P,{RULES:Ce}=Je;if(ye.$ref&&(nt.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(ye,Ce))){me.block(()=>_e(P,"$ref",Ce.all.$ref.definition));return}nt.jtd||ze(P,D),me.block(()=>{for(let We of Ce.rules)Et(We);Et(Ce.post)});function Et(We){(0,i.shouldUseGroup)(ye,We)&&(We.type?(me.if((0,r.checkDataType)(We.type,Ue,nt.strictNumbers)),Ze(P,We),D.length===1&&D[0]===We.type&&F&&(me.else(),(0,r.reportTypeError)(P)),me.endIf()):Ze(P,We),He||me.if((0,c._)`${l.default.errors} === ${de||0}`))}}function Ze(P,D){let{gen:F,schema:de,opts:{useDefaults:me}}=P;me&&(0,o.assignDefaults)(P,D.type),F.block(()=>{for(let ye of D.rules)(0,i.shouldUseRule)(de,ye)&&_e(P,ye.keyword,ye.definition,D.type)})}function ze(P,D){P.schemaEnv.meta||!P.opts.strictTypes||(O(P,D),P.opts.allowUnionTypes||L(P,D),B(P,P.dataTypes))}function O(P,D){if(D.length){if(!P.dataTypes.length){P.dataTypes=D;return}D.forEach(F=>{E(P.dataTypes,F)||Y(P,`type "${F}" not allowed by context "${P.dataTypes.join(",")}"`)}),A(P,D)}}function L(P,D){D.length>1&&!(D.length===2&&D.includes("null"))&&Y(P,"use allowUnionTypes to allow union type keyword")}function B(P,D){let F=P.self.RULES.all;for(let de in F){let me=F[de];if(typeof me=="object"&&(0,i.shouldUseRule)(P.schema,me)){let{type:ye}=me.definition;ye.length&&!ye.some(Ue=>R(D,Ue))&&Y(P,`missing type "${ye.join(",")}" for keyword "${de}"`)}}}function R(P,D){return P.includes(D)||D==="number"&&P.includes("integer")}function E(P,D){return P.includes(D)||D==="integer"&&P.includes("number")}function A(P,D){let F=[];for(let de of P.dataTypes)E(D,de)?F.push(de):D.includes("integer")&&de==="number"&&F.push("integer");P.dataTypes=F}function Y(P,D){let F=P.schemaEnv.baseId+P.errSchemaPath;D+=` at "${F}" (strictTypes)`,(0,d.checkStrictMode)(P,D,P.opts.strictTypes)}var ce=class{constructor(P,D,F){if((0,a.validateKeywordUsage)(P,D,F),this.gen=P.gen,this.allErrors=P.allErrors,this.keyword=F,this.data=P.data,this.schema=P.schema[F],this.$data=D.$data&&P.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(P,this.schema,F,this.$data),this.schemaType=D.schemaType,this.parentSchema=P.schema,this.params={},this.it=P,this.def=D,this.$data)this.schemaCode=P.gen.const("vSchema",ut(this.$data,P));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,D.schemaType,D.allowUndefined))throw new Error(`${F} value must be ${JSON.stringify(D.schemaType)}`);("code"in D?D.trackErrors:D.errors!==!1)&&(this.errsCount=P.gen.const("_errs",l.default.errors))}result(P,D,F){this.failResult((0,c.not)(P),D,F)}failResult(P,D,F){this.gen.if(P),F?F():this.error(),D?(this.gen.else(),D(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(P,D){this.failResult((0,c.not)(P),void 0,D)}fail(P){if(P===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(P),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(P){if(!this.$data)return this.fail(P);let{schemaCode:D}=this;this.fail((0,c._)`${D} !== undefined && (${(0,c.or)(this.invalid$data(),P)})`)}error(P,D,F){if(D){this.setParams(D),this._error(P,F),this.setParams({});return}this._error(P,F)}_error(P,D){(P?m.reportExtraError:m.reportError)(this,this.def.error,D)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(P){this.allErrors||this.gen.if(P)}setParams(P,D){D?Object.assign(this.params,P):this.params=P}block$data(P,D,F=c.nil){this.gen.block(()=>{this.check$data(P,F),D()})}check$data(P=c.nil,D=c.nil){if(!this.$data)return;let{gen:F,schemaCode:de,schemaType:me,def:ye}=this;F.if((0,c.or)((0,c._)`${de} === undefined`,D)),P!==c.nil&&F.assign(P,!0),(me.length||ye.validateSchema)&&(F.elseIf(this.invalid$data()),this.$dataError(),P!==c.nil&&F.assign(P,!1)),F.else()}invalid$data(){let{gen:P,schemaCode:D,schemaType:F,def:de,it:me}=this;return(0,c.or)(ye(),Ue());function ye(){if(F.length){if(!(D instanceof c.Name))throw new Error("ajv implementation error");let He=Array.isArray(F)?F:[F];return(0,c._)`${(0,r.checkDataTypes)(He,D,me.opts.strictNumbers,r.DataType.Wrong)}`}return c.nil}function Ue(){if(de.validateSchema){let He=P.scopeValue("validate$data",{ref:de.validateSchema});return(0,c._)`!${He}(${D})`}return c.nil}}subschema(P,D){let F=(0,s.getSubschema)(this.it,P);(0,s.extendSubschemaData)(F,this.it,P),(0,s.extendSubschemaMode)(F,P);let de={...this.it,...F,items:void 0,props:void 0};return b(de,D),de}mergeEvaluated(P,D){let{it:F,gen:de}=this;F.opts.unevaluated&&(F.props!==!0&&P.props!==void 0&&(F.props=d.mergeEvaluated.props(de,P.props,F.props,D)),F.items!==!0&&P.items!==void 0&&(F.items=d.mergeEvaluated.items(de,P.items,F.items,D)))}mergeValidEvaluated(P,D){let{it:F,gen:de}=this;if(F.opts.unevaluated&&(F.props!==!0||F.items!==!0))return de.if(D,()=>this.mergeEvaluated(P,c.Name)),!0}};e.KeywordCxt=ce;function _e(P,D,F,de){let me=new ce(P,F,D);"code"in F?F.code(me,de):me.$data&&F.validate?(0,a.funcKeywordCode)(me,F):"macro"in F?(0,a.macroKeywordCode)(me,F):(F.compile||F.validate)&&(0,a.funcKeywordCode)(me,F)}let pe=/^\/(?:[^~]|~0|~1)*$/,Ne=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ut(P,{dataLevel:D,dataNames:F,dataPathArr:de}){let me,ye;if(P==="")return l.default.rootData;if(P[0]==="/"){if(!pe.test(P))throw new Error(`Invalid JSON-pointer: ${P}`);me=P,ye=l.default.rootData}else{let Je=Ne.exec(P);if(!Je)throw new Error(`Invalid JSON-pointer: ${P}`);let Ce=+Je[1];if(me=Je[2],me==="#"){if(Ce>=D)throw new Error(nt("property/index",Ce));return de[D-Ce]}if(Ce>D)throw new Error(nt("data",Ce));if(ye=F[D-Ce],!me)return ye}let Ue=ye,He=me.split("/");for(let Je of He)Je&&(ye=(0,c._)`${ye}${(0,c.getProperty)((0,d.unescapeJsonPointer)(Je))}`,Ue=(0,c._)`${Ue} && ${ye}`);return Ue;function nt(Je,Ce){return`Cannot access ${Je} ${Ce} levels up, current level is ${D}`}}e.getData=ut})),Ls=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=class extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}};e.default=t})),So=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=sp();var n=class extends Error{constructor(i,r,o,a){super(a||`can't resolve reference ${o} from id ${r}`),this.missingRef=(0,t.resolveUrl)(i,r,o),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(i,this.missingRef))}};e.default=n})),cp=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;let t=ve(),n=Ls(),i=Jt(),r=sp(),o=ke(),a=_o();var s=class{constructor(g){var $;this.refs={},this.dynamicAnchors={};let _;typeof g.schema=="object"&&(_=g.schema),this.schema=g.schema,this.schemaId=g.schemaId,this.root=g.root||this,this.baseId=($=g.baseId)!==null&&$!==void 0?$:(0,r.normalizeId)(_?.[g.schemaId||"$id"]),this.schemaPath=g.schemaPath,this.localRefs=g.localRefs,this.meta=g.meta,this.$async=_?.$async,this.refs={}}};e.SchemaEnv=s;function c(g){let $=d.call(this,g);if($)return $;let _=(0,r.getFullPath)(this.opts.uriResolver,g.root.baseId),{es5:b,lines:k}=this.opts.code,{ownProperties:z}=this.opts,S=new t.CodeGen(this.scope,{es5:b,lines:k,ownProperties:z}),w;g.$async&&(w=S.scopeValue("Error",{ref:n.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));let T=S.scopeName("validate");g.validateName=T;let M={gen:S,allErrors:this.opts.allErrors,data:i.default.data,parentData:i.default.parentData,parentDataProperty:i.default.parentDataProperty,dataNames:[i.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:S.scopeValue("schema",this.opts.code.source===!0?{ref:g.schema,code:(0,t.stringify)(g.schema)}:{ref:g.schema}),validateName:T,ValidationError:w,schema:g.schema,schemaEnv:g,rootId:_,baseId:g.baseId||_,schemaPath:t.nil,errSchemaPath:g.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this},N;try{this._compilations.add(g),(0,a.validateFunctionCode)(M),S.optimize(this.opts.code.optimize);let U=S.toString();N=`${S.scopeRefs(i.default.scope)}return ${U}`,this.opts.code.process&&(N=this.opts.code.process(N,g));let X=new Function(`${i.default.self}`,`${i.default.scope}`,N)(this,this.scope.get());if(this.scope.value(T,{ref:X}),X.errors=null,X.schema=g.schema,X.schemaEnv=g,g.$async&&(X.$async=!0),this.opts.code.source===!0&&(X.source={validateName:T,validateCode:U,scopeValues:S._values}),this.opts.unevaluated){let{props:ne,items:be}=M;X.evaluated={props:ne instanceof t.Name?void 0:ne,items:be instanceof t.Name?void 0:be,dynamicProps:ne instanceof t.Name,dynamicItems:be instanceof t.Name},X.source&&(X.source.evaluated=(0,t.stringify)(X.evaluated))}return g.validate=X,g}catch(U){throw delete g.validate,delete g.validateName,N&&this.logger.error("Error compiling schema, function code:",N),U}finally{this._compilations.delete(g)}}e.compileSchema=c;function l(g,$,_){var b;_=(0,r.resolveUrl)(this.opts.uriResolver,$,_);let k=g.refs[_];if(k)return k;let z=v.call(this,g,_);if(z===void 0){let S=(b=g.localRefs)===null||b===void 0?void 0:b[_],{schemaId:w}=this.opts;S&&(z=new s({schema:S,schemaId:w,root:g,baseId:$}))}if(z!==void 0)return g.refs[_]=u.call(this,z)}e.resolveRef=l;function u(g){return(0,r.inlineRef)(g.schema,this.opts.inlineRefs)?g.schema:g.validate?g:c.call(this,g)}function d(g){for(let $ of this._compilations)if(m($,g))return $}e.getCompilingSchema=d;function m(g,$){return g.schema===$.schema&&g.root===$.root&&g.baseId===$.baseId}function v(g,$){let _;for(;typeof(_=this.refs[$])=="string";)$=_;return _||this.schemas[$]||y.call(this,g,$)}function y(g,$){let _=this.opts.uriResolver.parse($),b=(0,r._getFullPath)(this.opts.uriResolver,_),k=(0,r.getFullPath)(this.opts.uriResolver,g.baseId,void 0);if(Object.keys(g.schema).length>0&&b===k)return h.call(this,_,g);let z=(0,r.normalizeId)(b),S=this.refs[z]||this.schemas[z];if(typeof S=="string"){let w=y.call(this,g,S);return typeof w?.schema!="object"?void 0:h.call(this,_,w)}if(typeof S?.schema=="object"){if(S.validate||c.call(this,S),z===(0,r.normalizeId)($)){let{schema:w}=S,{schemaId:T}=this.opts,M=w[T];return M&&(k=(0,r.resolveUrl)(this.opts.uriResolver,k,M)),new s({schema:w,schemaId:T,root:g,baseId:k})}return h.call(this,_,S)}}e.resolveSchema=y;let f=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function h(g,{baseId:$,schema:_,root:b}){var k;if(((k=g.fragment)===null||k===void 0?void 0:k[0])!=="/")return;for(let w of g.fragment.slice(1).split("/")){if(typeof _=="boolean")return;let T=_[(0,o.unescapeFragment)(w)];if(T===void 0)return;_=T;let M=typeof _=="object"&&_[this.opts.schemaId];!f.has(w)&&M&&($=(0,r.resolveUrl)(this.opts.uriResolver,$,M))}let z;if(typeof _!="boolean"&&_.$ref&&!(0,o.schemaHasRulesButRef)(_,this.RULES)){let w=(0,r.resolveUrl)(this.opts.uriResolver,$,_.$ref);z=y.call(this,b,w)}let{schemaId:S}=this.opts;if(z=z||new s({schema:_,schemaId:S,root:b,baseId:$}),z.schema!==z.root.schema)return z}})),dq=Z(((e,t)=>{t.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}})),JI=Z(((e,t)=>{let n=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),i=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function r(y){let f="",h=0,g=0;for(g=0;g<y.length;g++)if(h=y[g].charCodeAt(0),h!==48){if(!(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102))return"";f+=y[g];break}for(g+=1;g<y.length;g++){if(h=y[g].charCodeAt(0),!(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102))return"";f+=y[g]}return f}let o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a(y){return y.length=0,!0}function s(y,f,h){if(y.length){let g=r(y);if(g!=="")f.push(g);else return h.error=!0,!1;y.length=0}return!0}function c(y){let f=0,h={error:!1,address:"",zone:""},g=[],$=[],_=!1,b=!1,k=s;for(let z=0;z<y.length;z++){let S=y[z];if(!(S==="["||S==="]"))if(S===":"){if(_===!0&&(b=!0),!k($,g,h))break;if(++f>7){h.error=!0;break}z>0&&y[z-1]===":"&&(_=!0),g.push(":");continue}else if(S==="%"){if(!k($,g,h))break;k=a}else{$.push(S);continue}}return $.length&&(k===a?h.zone=$.join(""):b?g.push($.join("")):g.push(r($))),h.address=g.join(""),h}function l(y){if(u(y,":")<2)return{host:y,isIPV6:!1};let f=c(y);if(f.error)return{host:y,isIPV6:!1};{let h=f.address,g=f.address;return f.zone&&(h+="%"+f.zone,g+="%25"+f.zone),{host:h,isIPV6:!0,escapedHost:g}}}function u(y,f){let h=0;for(let g=0;g<y.length;g++)y[g]===f&&h++;return h}function d(y){let f=y,h=[],g=-1,$=0;for(;$=f.length;){if($===1){if(f===".")break;if(f==="/"){h.push("/");break}else{h.push(f);break}}else if($===2){if(f[0]==="."){if(f[1]===".")break;if(f[1]==="/"){f=f.slice(2);continue}}else if(f[0]==="/"&&(f[1]==="."||f[1]==="/")){h.push("/");break}}else if($===3&&f==="/.."){h.length!==0&&h.pop(),h.push("/");break}if(f[0]==="."){if(f[1]==="."){if(f[2]==="/"){f=f.slice(3);continue}}else if(f[1]==="/"){f=f.slice(2);continue}}else if(f[0]==="/"&&f[1]==="."){if(f[2]==="/"){f=f.slice(2);continue}else if(f[2]==="."&&f[3]==="/"){f=f.slice(3),h.length!==0&&h.pop();continue}}if((g=f.indexOf("/",1))===-1){h.push(f);break}else h.push(f.slice(0,g)),f=f.slice(g)}return h.join("")}function m(y,f){let h=f!==!0?escape:unescape;return y.scheme!==void 0&&(y.scheme=h(y.scheme)),y.userinfo!==void 0&&(y.userinfo=h(y.userinfo)),y.host!==void 0&&(y.host=h(y.host)),y.path!==void 0&&(y.path=h(y.path)),y.query!==void 0&&(y.query=h(y.query)),y.fragment!==void 0&&(y.fragment=h(y.fragment)),y}function v(y){let f=[];if(y.userinfo!==void 0&&(f.push(y.userinfo),f.push("@")),y.host!==void 0){let h=unescape(y.host);if(!i(h)){let g=l(h);g.isIPV6===!0?h=`[${g.escapedHost}]`:h=y.host}f.push(h)}return(typeof y.port=="number"||typeof y.port=="string")&&(f.push(":"),f.push(String(y.port))),f.length?f.join(""):void 0}t.exports={nonSimpleDomain:o,recomposeAuthority:v,normalizeComponentEncoding:m,removeDotSegments:d,isIPv4:i,isUUID:n,normalizeIPv6:l,stringArrayToHexStripped:r}})),mq=Z(((e,t)=>{let{isUUID:n}=JI(),i=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function o(S){return r.indexOf(S)!==-1}function a(S){return S.secure===!0?!0:S.secure===!1?!1:S.scheme?S.scheme.length===3&&(S.scheme[0]==="w"||S.scheme[0]==="W")&&(S.scheme[1]==="s"||S.scheme[1]==="S")&&(S.scheme[2]==="s"||S.scheme[2]==="S"):!1}function s(S){return S.host||(S.error=S.error||"HTTP URIs must have a host."),S}function c(S){let w=String(S.scheme).toLowerCase()==="https";return(S.port===(w?443:80)||S.port==="")&&(S.port=void 0),S.path||(S.path="/"),S}function l(S){return S.secure=a(S),S.resourceName=(S.path||"/")+(S.query?"?"+S.query:""),S.path=void 0,S.query=void 0,S}function u(S){if((S.port===(a(S)?443:80)||S.port==="")&&(S.port=void 0),typeof S.secure=="boolean"&&(S.scheme=S.secure?"wss":"ws",S.secure=void 0),S.resourceName){let[w,T]=S.resourceName.split("?");S.path=w&&w!=="/"?w:void 0,S.query=T,S.resourceName=void 0}return S.fragment=void 0,S}function d(S,w){if(!S.path)return S.error="URN can not be parsed",S;let T=S.path.match(i);if(T){let M=w.scheme||S.scheme||"urn";S.nid=T[1].toLowerCase(),S.nss=T[2];let N=z(`${M}:${w.nid||S.nid}`);S.path=void 0,N&&(S=N.parse(S,w))}else S.error=S.error||"URN can not be parsed.";return S}function m(S,w){if(S.nid===void 0)throw new Error("URN without nid cannot be serialized");let T=w.scheme||S.scheme||"urn",M=S.nid.toLowerCase(),N=z(`${T}:${w.nid||M}`);N&&(S=N.serialize(S,w));let U=S,X=S.nss;return U.path=`${M||w.nid}:${X}`,w.skipEscape=!0,U}function v(S,w){let T=S;return T.uuid=T.nss,T.nss=void 0,!w.tolerant&&(!T.uuid||!n(T.uuid))&&(T.error=T.error||"UUID is not valid."),T}function y(S){let w=S;return w.nss=(S.uuid||"").toLowerCase(),w}let f={scheme:"http",domainHost:!0,parse:s,serialize:c},h={scheme:"https",domainHost:f.domainHost,parse:s,serialize:c},g={scheme:"ws",domainHost:!0,parse:l,serialize:u},$={scheme:"wss",domainHost:g.domainHost,parse:g.parse,serialize:g.serialize},k={http:f,https:h,ws:g,wss:$,urn:{scheme:"urn",parse:d,serialize:m,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:v,serialize:y,skipNormalize:!0}};Object.setPrototypeOf(k,null);function z(S){return S&&(k[S]||k[S.toLowerCase()])||void 0}t.exports={wsIsSecure:a,SCHEMES:k,isValidSchemeName:o,getSchemeHandler:z}})),pq=Z(((e,t)=>{let{normalizeIPv6:n,removeDotSegments:i,recomposeAuthority:r,normalizeComponentEncoding:o,isIPv4:a,nonSimpleDomain:s}=JI(),{SCHEMES:c,getSchemeHandler:l}=mq();function u($,_){return typeof $=="string"?$=y(h($,_),_):typeof $=="object"&&($=h(y($,_),_)),$}function d($,_,b){let k=b?Object.assign({scheme:"null"},b):{scheme:"null"},z=m(h($,k),h(_,k),k,!0);return k.skipEscape=!0,y(z,k)}function m($,_,b,k){let z={};return k||($=h(y($,b),b),_=h(y(_,b),b)),b=b||{},!b.tolerant&&_.scheme?(z.scheme=_.scheme,z.userinfo=_.userinfo,z.host=_.host,z.port=_.port,z.path=i(_.path||""),z.query=_.query):(_.userinfo!==void 0||_.host!==void 0||_.port!==void 0?(z.userinfo=_.userinfo,z.host=_.host,z.port=_.port,z.path=i(_.path||""),z.query=_.query):(_.path?(_.path[0]==="/"?z.path=i(_.path):(($.userinfo!==void 0||$.host!==void 0||$.port!==void 0)&&!$.path?z.path="/"+_.path:$.path?z.path=$.path.slice(0,$.path.lastIndexOf("/")+1)+_.path:z.path=_.path,z.path=i(z.path)),z.query=_.query):(z.path=$.path,_.query!==void 0?z.query=_.query:z.query=$.query),z.userinfo=$.userinfo,z.host=$.host,z.port=$.port),z.scheme=$.scheme),z.fragment=_.fragment,z}function v($,_,b){return typeof $=="string"?($=unescape($),$=y(o(h($,b),!0),{...b,skipEscape:!0})):typeof $=="object"&&($=y(o($,!0),{...b,skipEscape:!0})),typeof _=="string"?(_=unescape(_),_=y(o(h(_,b),!0),{...b,skipEscape:!0})):typeof _=="object"&&(_=y(o(_,!0),{...b,skipEscape:!0})),$.toLowerCase()===_.toLowerCase()}function y($,_){let b={host:$.host,scheme:$.scheme,userinfo:$.userinfo,port:$.port,path:$.path,query:$.query,nid:$.nid,nss:$.nss,uuid:$.uuid,fragment:$.fragment,reference:$.reference,resourceName:$.resourceName,secure:$.secure,error:""},k=Object.assign({},_),z=[],S=l(k.scheme||b.scheme);S&&S.serialize&&S.serialize(b,k),b.path!==void 0&&(k.skipEscape?b.path=unescape(b.path):(b.path=escape(b.path),b.scheme!==void 0&&(b.path=b.path.split("%3A").join(":")))),k.reference!=="suffix"&&b.scheme&&z.push(b.scheme,":");let w=r(b);if(w!==void 0&&(k.reference!=="suffix"&&z.push("//"),z.push(w),b.path&&b.path[0]!=="/"&&z.push("/")),b.path!==void 0){let T=b.path;!k.absolutePath&&(!S||!S.absolutePath)&&(T=i(T)),w===void 0&&T[0]==="/"&&T[1]==="/"&&(T="/%2F"+T.slice(2)),z.push(T)}return b.query!==void 0&&z.push("?",b.query),b.fragment!==void 0&&z.push("#",b.fragment),z.join("")}let f=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function h($,_){let b=Object.assign({},_),k={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},z=!1;b.reference==="suffix"&&(b.scheme?$=b.scheme+":"+$:$="//"+$);let S=$.match(f);if(S){if(k.scheme=S[1],k.userinfo=S[3],k.host=S[4],k.port=parseInt(S[5],10),k.path=S[6]||"",k.query=S[7],k.fragment=S[8],isNaN(k.port)&&(k.port=S[5]),k.host)if(a(k.host)===!1){let T=n(k.host);k.host=T.host.toLowerCase(),z=T.isIPV6}else z=!0;k.scheme===void 0&&k.userinfo===void 0&&k.host===void 0&&k.port===void 0&&k.query===void 0&&!k.path?k.reference="same-document":k.scheme===void 0?k.reference="relative":k.fragment===void 0?k.reference="absolute":k.reference="uri",b.reference&&b.reference!=="suffix"&&b.reference!==k.reference&&(k.error=k.error||"URI is not a "+b.reference+" reference.");let w=l(b.scheme||k.scheme);if(!b.unicodeSupport&&(!w||!w.unicodeSupport)&&k.host&&(b.domainHost||w&&w.domainHost)&&z===!1&&s(k.host))try{k.host=URL.domainToASCII(k.host.toLowerCase())}catch(T){k.error=k.error||"Host's domain name can not be converted to ASCII: "+T}(!w||w&&!w.skipNormalize)&&($.indexOf("%")!==-1&&(k.scheme!==void 0&&(k.scheme=unescape(k.scheme)),k.host!==void 0&&(k.host=unescape(k.host))),k.path&&(k.path=escape(unescape(k.path))),k.fragment&&(k.fragment=encodeURI(decodeURIComponent(k.fragment)))),w&&w.parse&&w.parse(k,b)}else k.error=k.error||"URI can not be parsed.";return k}let g={SCHEMES:c,normalize:u,resolve:d,resolveComponent:m,equal:v,serialize:y,parse:h};t.exports=g,t.exports.default=g,t.exports.fastUri=g})),fq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=pq();t.code='require("ajv/dist/runtime/uri").default',e.default=t})),_b=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=_o();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=ve();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});let i=Ls(),r=So(),o=VI(),a=cp(),s=ve(),c=sp(),l=op(),u=ke(),d=dq(),m=fq(),v=(O,L)=>new RegExp(O,L);v.code="new RegExp";let y=["removeAdditional","useDefaults","coerceTypes"],f=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),h={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},$=200;function _(O){var L,B,R,E,A,Y,ce,_e,pe,Ne,ut,P,D,F,de,me,ye,Ue,He,nt,Je,Ce,Et,We,rr;let Ct=O.strict,nr=(L=O.code)===null||L===void 0?void 0:L.optimize,gr=nr===!0||nr===void 0?1:nr||0,vr=(R=(B=O.code)===null||B===void 0?void 0:B.regExp)!==null&&R!==void 0?R:v,un=(E=O.uriResolver)!==null&&E!==void 0?E:m.default;return{strictSchema:(Y=(A=O.strictSchema)!==null&&A!==void 0?A:Ct)!==null&&Y!==void 0?Y:!0,strictNumbers:(_e=(ce=O.strictNumbers)!==null&&ce!==void 0?ce:Ct)!==null&&_e!==void 0?_e:!0,strictTypes:(Ne=(pe=O.strictTypes)!==null&&pe!==void 0?pe:Ct)!==null&&Ne!==void 0?Ne:"log",strictTuples:(P=(ut=O.strictTuples)!==null&&ut!==void 0?ut:Ct)!==null&&P!==void 0?P:"log",strictRequired:(F=(D=O.strictRequired)!==null&&D!==void 0?D:Ct)!==null&&F!==void 0?F:!1,code:O.code?{...O.code,optimize:gr,regExp:vr}:{optimize:gr,regExp:vr},loopRequired:(de=O.loopRequired)!==null&&de!==void 0?de:$,loopEnum:(me=O.loopEnum)!==null&&me!==void 0?me:$,meta:(ye=O.meta)!==null&&ye!==void 0?ye:!0,messages:(Ue=O.messages)!==null&&Ue!==void 0?Ue:!0,inlineRefs:(He=O.inlineRefs)!==null&&He!==void 0?He:!0,schemaId:(nt=O.schemaId)!==null&&nt!==void 0?nt:"$id",addUsedSchema:(Je=O.addUsedSchema)!==null&&Je!==void 0?Je:!0,validateSchema:(Ce=O.validateSchema)!==null&&Ce!==void 0?Ce:!0,validateFormats:(Et=O.validateFormats)!==null&&Et!==void 0?Et:!0,unicodeRegExp:(We=O.unicodeRegExp)!==null&&We!==void 0?We:!0,int32range:(rr=O.int32range)!==null&&rr!==void 0?rr:!0,uriResolver:un}}var b=class{constructor(O={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,O=this.opts={...O,..._(O)};let{es5:L,lines:B}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:f,es5:L,lines:B}),this.logger=U(O.logger);let R=O.validateFormats;O.validateFormats=!1,this.RULES=(0,o.getRules)(),k.call(this,h,O,"NOT SUPPORTED"),k.call(this,g,O,"DEPRECATED","warn"),this._metaOpts=M.call(this),O.formats&&w.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),O.keywords&&T.call(this,O.keywords),typeof O.meta=="object"&&this.addMetaSchema(O.meta),S.call(this),O.validateFormats=R}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:O,meta:L,schemaId:B}=this.opts,R=d;B==="id"&&(R={...d},R.id=R.$id,delete R.$id),L&&O&&this.addMetaSchema(R,R[B],!1)}defaultMeta(){let{meta:O,schemaId:L}=this.opts;return this.opts.defaultMeta=typeof O=="object"?O[L]||O:void 0}validate(O,L){let B;if(typeof O=="string"){if(B=this.getSchema(O),!B)throw new Error(`no schema with key or ref "${O}"`)}else B=this.compile(O);let R=B(L);return"$async"in B||(this.errors=B.errors),R}compile(O,L){let B=this._addSchema(O,L);return B.validate||this._compileSchemaEnv(B)}compileAsync(O,L){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:B}=this.opts;return R.call(this,O,L);async function R(pe,Ne){await E.call(this,pe.$schema);let ut=this._addSchema(pe,Ne);return ut.validate||A.call(this,ut)}async function E(pe){pe&&!this.getSchema(pe)&&await R.call(this,{$ref:pe},!0)}async function A(pe){try{return this._compileSchemaEnv(pe)}catch(Ne){if(!(Ne instanceof r.default))throw Ne;return Y.call(this,Ne),await ce.call(this,Ne.missingSchema),A.call(this,pe)}}function Y({missingSchema:pe,missingRef:Ne}){if(this.refs[pe])throw new Error(`AnySchema ${pe} is loaded but ${Ne} cannot be resolved`)}async function ce(pe){let Ne=await _e.call(this,pe);this.refs[pe]||await E.call(this,Ne.$schema),this.refs[pe]||this.addSchema(Ne,pe,L)}async function _e(pe){let Ne=this._loading[pe];if(Ne)return Ne;try{return await(this._loading[pe]=B(pe))}finally{delete this._loading[pe]}}}addSchema(O,L,B,R=this.opts.validateSchema){if(Array.isArray(O)){for(let A of O)this.addSchema(A,void 0,B,R);return this}let E;if(typeof O=="object"){let{schemaId:A}=this.opts;if(E=O[A],E!==void 0&&typeof E!="string")throw new Error(`schema ${A} must be string`)}return L=(0,c.normalizeId)(L||E),this._checkUnique(L),this.schemas[L]=this._addSchema(O,B,L,R,!0),this}addMetaSchema(O,L,B=this.opts.validateSchema){return this.addSchema(O,L,!0,B),this}validateSchema(O,L){if(typeof O=="boolean")return!0;let B;if(B=O.$schema,B!==void 0&&typeof B!="string")throw new Error("$schema must be a string");if(B=B||this.opts.defaultMeta||this.defaultMeta(),!B)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let R=this.validate(B,O);if(!R&&L){let E="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(E);else throw new Error(E)}return R}getSchema(O){let L;for(;typeof(L=z.call(this,O))=="string";)O=L;if(L===void 0){let{schemaId:B}=this.opts,R=new a.SchemaEnv({schema:{},schemaId:B});if(L=a.resolveSchema.call(this,R,O),!L)return;this.refs[O]=L}return L.validate||this._compileSchemaEnv(L)}removeSchema(O){if(O instanceof RegExp)return this._removeAllSchemas(this.schemas,O),this._removeAllSchemas(this.refs,O),this;switch(typeof O){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let L=z.call(this,O);return typeof L=="object"&&this._cache.delete(L.schema),delete this.schemas[O],delete this.refs[O],this}case"object":{let L=O;this._cache.delete(L);let B=O[this.opts.schemaId];return B&&(B=(0,c.normalizeId)(B),delete this.schemas[B],delete this.refs[B]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(O){for(let L of O)this.addKeyword(L);return this}addKeyword(O,L){let B;if(typeof O=="string")B=O,typeof L=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),L.keyword=B);else if(typeof O=="object"&&L===void 0){if(L=O,B=L.keyword,Array.isArray(B)&&!B.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(ne.call(this,B,L),!L)return(0,u.eachItem)(B,E=>be.call(this,E)),this;xe.call(this,L);let R={...L,type:(0,l.getJSONTypes)(L.type),schemaType:(0,l.getJSONTypes)(L.schemaType)};return(0,u.eachItem)(B,R.type.length===0?E=>be.call(this,E,R):E=>R.type.forEach(A=>be.call(this,E,R,A))),this}getKeyword(O){let L=this.RULES.all[O];return typeof L=="object"?L.definition:!!L}removeKeyword(O){let{RULES:L}=this;delete L.keywords[O],delete L.all[O];for(let B of L.rules){let R=B.rules.findIndex(E=>E.keyword===O);R>=0&&B.rules.splice(R,1)}return this}addFormat(O,L){return typeof L=="string"&&(L=new RegExp(L)),this.formats[O]=L,this}errorsText(O=this.errors,{separator:L=", ",dataVar:B="data"}={}){return!O||O.length===0?"No errors":O.map(R=>`${B}${R.instancePath} ${R.message}`).reduce((R,E)=>R+L+E)}$dataMetaSchema(O,L){let B=this.RULES.all;O=JSON.parse(JSON.stringify(O));for(let R of L){let E=R.split("/").slice(1),A=O;for(let Y of E)A=A[Y];for(let Y in B){let ce=B[Y];if(typeof ce!="object")continue;let{$data:_e}=ce.definition,pe=A[Y];_e&&pe&&(A[Y]=ze(pe))}}return O}_removeAllSchemas(O,L){for(let B in O){let R=O[B];(!L||L.test(B))&&(typeof R=="string"?delete O[B]:R&&!R.meta&&(this._cache.delete(R.schema),delete O[B]))}}_addSchema(O,L,B,R=this.opts.validateSchema,E=this.opts.addUsedSchema){let A,{schemaId:Y}=this.opts;if(typeof O=="object")A=O[Y];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof O!="boolean")throw new Error("schema must be object or boolean")}let ce=this._cache.get(O);if(ce!==void 0)return ce;B=(0,c.normalizeId)(A||B);let _e=c.getSchemaRefs.call(this,O,B);return ce=new a.SchemaEnv({schema:O,schemaId:Y,meta:L,baseId:B,localRefs:_e}),this._cache.set(ce.schema,ce),E&&!B.startsWith("#")&&(B&&this._checkUnique(B),this.refs[B]=ce),R&&this.validateSchema(O,!0),ce}_checkUnique(O){if(this.schemas[O]||this.refs[O])throw new Error(`schema with key or id "${O}" already exists`)}_compileSchemaEnv(O){if(O.meta?this._compileMetaSchema(O):a.compileSchema.call(this,O),!O.validate)throw new Error("ajv implementation error");return O.validate}_compileMetaSchema(O){let L=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,O)}finally{this.opts=L}}};b.ValidationError=i.default,b.MissingRefError=r.default,e.default=b;function k(O,L,B,R="error"){for(let E in O){let A=E;A in L&&this.logger[R](`${B}: option ${E}. ${O[A]}`)}}function z(O){return O=(0,c.normalizeId)(O),this.schemas[O]||this.refs[O]}function S(){let O=this.opts.schemas;if(O)if(Array.isArray(O))this.addSchema(O);else for(let L in O)this.addSchema(O[L],L)}function w(){for(let O in this.opts.formats){let L=this.opts.formats[O];L&&this.addFormat(O,L)}}function T(O){if(Array.isArray(O)){this.addVocabulary(O);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let L in O){let B=O[L];B.keyword||(B.keyword=L),this.addKeyword(B)}}function M(){let O={...this.opts};for(let L of y)delete O[L];return O}let N={log(){},warn(){},error(){}};function U(O){if(O===!1)return N;if(O===void 0)return console;if(O.log&&O.warn&&O.error)return O;throw new Error("logger must implement log, warn and error methods")}let X=/^[a-z_$][a-z0-9_$:-]*$/i;function ne(O,L){let{RULES:B}=this;if((0,u.eachItem)(O,R=>{if(B.keywords[R])throw new Error(`Keyword ${R} is already defined`);if(!X.test(R))throw new Error(`Keyword ${R} has invalid name`)}),!!L&&L.$data&&!("code"in L||"validate"in L))throw new Error('$data keyword must have "code" or "validate" function')}function be(O,L,B){var R;let E=L?.post;if(B&&E)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:A}=this,Y=E?A.post:A.rules.find(({type:_e})=>_e===B);if(Y||(Y={type:B,rules:[]},A.rules.push(Y)),A.keywords[O]=!0,!L)return;let ce={keyword:O,definition:{...L,type:(0,l.getJSONTypes)(L.type),schemaType:(0,l.getJSONTypes)(L.schemaType)}};L.before?je.call(this,Y,ce,L.before):Y.rules.push(ce),A.all[O]=ce,(R=L.implements)===null||R===void 0||R.forEach(_e=>this.addKeyword(_e))}function je(O,L,B){let R=O.rules.findIndex(E=>E.keyword===B);R>=0?O.rules.splice(R,0,L):(O.rules.push(L),this.logger.warn(`rule ${B} is not defined`))}function xe(O){let{metaSchema:L}=O;L!==void 0&&(O.$data&&this.opts.$data&&(L=ze(L)),O.validateSchema=this.compile(L,!0))}let Ze={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ze(O){return{anyOf:[O,Ze]}}})),hq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};e.default=t})),Sb=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;let t=So(),n=Bt(),i=ve(),r=Jt(),o=cp(),a=ke(),s={keyword:"$ref",schemaType:"string",code(u){let{gen:d,schema:m,it:v}=u,{baseId:y,schemaEnv:f,validateName:h,opts:g,self:$}=v,{root:_}=f;if((m==="#"||m==="#/")&&y===_.baseId)return k();let b=o.resolveRef.call($,_,y,m);if(b===void 0)throw new t.default(v.opts.uriResolver,y,m);if(b instanceof o.SchemaEnv)return z(b);return S(b);function k(){if(f===_)return l(u,h,f,f.$async);let w=d.scopeValue("root",{ref:_});return l(u,(0,i._)`${w}.validate`,_,_.$async)}function z(w){l(u,c(u,w),w,w.$async)}function S(w){let T=d.scopeValue("schema",g.code.source===!0?{ref:w,code:(0,i.stringify)(w)}:{ref:w}),M=d.name("valid"),N=u.subschema({schema:w,dataTypes:[],schemaPath:i.nil,topSchemaRef:T,errSchemaPath:m},M);u.mergeEvaluated(N),u.ok(M)}}};function c(u,d){let{gen:m}=u;return d.validate?m.scopeValue("validate",{ref:d.validate}):(0,i._)`${m.scopeValue("wrapper",{ref:d})}.validate`}e.getValidate=c;function l(u,d,m,v){let{gen:y,it:f}=u,{allErrors:h,schemaEnv:g,opts:$}=f,_=$.passContext?r.default.this:i.nil;v?b():k();function b(){if(!g.$async)throw new Error("async schema referenced by sync schema");let w=y.let("valid");y.try(()=>{y.code((0,i._)`await ${(0,n.callValidateCode)(u,d,_)}`),S(d),h||y.assign(w,!0)},T=>{y.if((0,i._)`!(${T} instanceof ${f.ValidationError})`,()=>y.throw(T)),z(T),h||y.assign(w,!1)}),u.ok(w)}function k(){u.result((0,n.callValidateCode)(u,d,_),()=>S(d),()=>z(d))}function z(w){let T=(0,i._)`${w}.errors`;y.assign(r.default.vErrors,(0,i._)`${r.default.vErrors} === null ? ${T} : ${r.default.vErrors}.concat(${T})`),y.assign(r.default.errors,(0,i._)`${r.default.vErrors}.length`)}function S(w){var T;if(!f.opts.unevaluated)return;let M=(T=m?.validate)===null||T===void 0?void 0:T.evaluated;if(f.props!==!0)if(M&&!M.dynamicProps)M.props!==void 0&&(f.props=a.mergeEvaluated.props(y,M.props,f.props));else{let N=y.var("props",(0,i._)`${w}.evaluated.props`);f.props=a.mergeEvaluated.props(y,N,f.props,i.Name)}if(f.items!==!0)if(M&&!M.dynamicItems)M.items!==void 0&&(f.items=a.mergeEvaluated.items(y,M.items,f.items));else{let N=y.var("items",(0,i._)`${w}.evaluated.items`);f.items=a.mergeEvaluated.items(y,N,f.items,i.Name)}}}e.callRef=l,e.default=s})),BI=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=hq(),n=Sb(),i=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,n.default];e.default=i})),gq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n=t.operators,i={maximum:{okStr:"<=",ok:n.LTE,fail:n.GT},minimum:{okStr:">=",ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},r={keyword:Object.keys(i),type:"number",schemaType:"number",$data:!0,error:{message:({keyword:o,schemaCode:a})=>(0,t.str)`must be ${i[o].okStr} ${a}`,params:({keyword:o,schemaCode:a})=>(0,t._)`{comparison: ${i[o].okStr}, limit: ${a}}`},code(o){let{keyword:a,data:s,schemaCode:c}=o;o.fail$data((0,t._)`${s} ${i[a].fail} ${c} || isNaN(${s})`)}};e.default=r})),vq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:i})=>(0,t.str)`must be multiple of ${i}`,params:({schemaCode:i})=>(0,t._)`{multipleOf: ${i}}`},code(i){let{gen:r,data:o,schemaCode:a,it:s}=i,c=s.opts.multipleOfPrecision,l=r.let("res"),u=c?(0,t._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${c}`:(0,t._)`${l} !== parseInt(${l})`;i.fail$data((0,t._)`(${a} === 0 || (${l} = ${o}/${a}, ${u}))`)}};e.default=n})),yq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(n){let i=n.length,r=0,o=0,a;for(;o<i;)r++,a=n.charCodeAt(o++),a>=55296&&a<=56319&&o<i&&(a=n.charCodeAt(o),(a&64512)===56320&&o++);return r}e.default=t,t.code='require("ajv/dist/runtime/ucs2length").default'})),_q=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n=ke(),i=yq(),r={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:a}){let s=o==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${s} than ${a} characters`},params:({schemaCode:o})=>(0,t._)`{limit: ${o}}`},code(o){let{keyword:a,data:s,schemaCode:c,it:l}=o,u=a==="maxLength"?t.operators.GT:t.operators.LT,d=l.opts.unicode===!1?(0,t._)`${s}.length`:(0,t._)`${(0,n.useFunc)(o.gen,i.default)}(${s})`;o.fail$data((0,t._)`${d} ${u} ${c}`)}};e.default=r})),Sq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Bt(),n=ke(),i=ve(),r={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,i.str)`must match pattern "${o}"`,params:({schemaCode:o})=>(0,i._)`{pattern: ${o}}`},code(o){let{gen:a,data:s,$data:c,schema:l,schemaCode:u,it:d}=o,m=d.opts.unicodeRegExp?"u":"";if(c){let{regExp:v}=d.opts.code,y=v.code==="new RegExp"?(0,i._)`new RegExp`:(0,n.useFunc)(a,v),f=a.let("valid");a.try(()=>a.assign(f,(0,i._)`${y}(${u}, ${m}).test(${s})`),()=>a.assign(f,!1)),o.fail$data((0,i._)`!${f}`)}else{let v=(0,t.usePattern)(o,l);o.fail$data((0,i._)`!${v}.test(${s})`)}}};e.default=r})),bq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:r}){let o=i==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${o} than ${r} properties`},params:({schemaCode:i})=>(0,t._)`{limit: ${i}}`},code(i){let{keyword:r,data:o,schemaCode:a}=i,s=r==="maxProperties"?t.operators.GT:t.operators.LT;i.fail$data((0,t._)`Object.keys(${o}).length ${s} ${a}`)}};e.default=n})),$q=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Bt(),n=ve(),i=ke(),r={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:o}})=>(0,n.str)`must have required property '${o}'`,params:({params:{missingProperty:o}})=>(0,n._)`{missingProperty: ${o}}`},code(o){let{gen:a,schema:s,schemaCode:c,data:l,$data:u,it:d}=o,{opts:m}=d;if(!u&&s.length===0)return;let v=s.length>=m.loopRequired;if(d.allErrors?y():f(),m.strictRequired){let $=o.parentSchema.properties,{definedProperties:_}=o.it;for(let b of s)if($?.[b]===void 0&&!_.has(b)){let k=`required property "${b}" is not defined at "${d.schemaEnv.baseId+d.errSchemaPath}" (strictRequired)`;(0,i.checkStrictMode)(d,k,d.opts.strictRequired)}}function y(){if(v||u)o.block$data(n.nil,h);else for(let $ of s)(0,t.checkReportMissingProp)(o,$)}function f(){let $=a.let("missing");if(v||u){let _=a.let("valid",!0);o.block$data(_,()=>g($,_)),o.ok(_)}else a.if((0,t.checkMissingProp)(o,s,$)),(0,t.reportMissingProp)(o,$),a.else()}function h(){a.forOf("prop",c,$=>{o.setParams({missingProperty:$}),a.if((0,t.noPropertyInData)(a,l,$,m.ownProperties),()=>o.error())})}function g($,_){o.setParams({missingProperty:$}),a.forOf($,c,()=>{a.assign(_,(0,t.propertyInData)(a,l,$,m.ownProperties)),a.if((0,n.not)(_),()=>{o.error(),a.break()})},n.nil)}}};e.default=r})),wq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:r}){let o=i==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${o} than ${r} items`},params:({schemaCode:i})=>(0,t._)`{limit: ${i}}`},code(i){let{keyword:r,data:o,schemaCode:a}=i,s=r==="maxItems"?t.operators.GT:t.operators.LT;i.fail$data((0,t._)`${o}.length ${s} ${a}`)}};e.default=n})),bb=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ZI();t.code='require("ajv/dist/runtime/equal").default',e.default=t})),zq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=op(),n=ve(),i=ke(),r=bb(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:a,j:s}})=>(0,n.str)`must NOT have duplicate items (items ## ${s} and ${a} are identical)`,params:({params:{i:a,j:s}})=>(0,n._)`{i: ${a}, j: ${s}}`},code(a){let{gen:s,data:c,$data:l,schema:u,parentSchema:d,schemaCode:m,it:v}=a;if(!l&&!u)return;let y=s.let("valid"),f=d.items?(0,t.getSchemaTypes)(d.items):[];a.block$data(y,h,(0,n._)`${m} === false`),a.ok(y);function h(){let b=s.let("i",(0,n._)`${c}.length`),k=s.let("j");a.setParams({i:b,j:k}),s.assign(y,!0),s.if((0,n._)`${b} > 1`,()=>(g()?$:_)(b,k))}function g(){return f.length>0&&!f.some(b=>b==="object"||b==="array")}function $(b,k){let z=s.name("item"),S=(0,t.checkDataTypes)(f,z,v.opts.strictNumbers,t.DataType.Wrong),w=s.const("indices",(0,n._)`{}`);s.for((0,n._)`;${b}--;`,()=>{s.let(z,(0,n._)`${c}[${b}]`),s.if(S,(0,n._)`continue`),f.length>1&&s.if((0,n._)`typeof ${z} == "string"`,(0,n._)`${z} += "_"`),s.if((0,n._)`typeof ${w}[${z}] == "number"`,()=>{s.assign(k,(0,n._)`${w}[${z}]`),a.error(),s.assign(y,!1).break()}).code((0,n._)`${w}[${z}] = ${b}`)})}function _(b,k){let z=(0,i.useFunc)(s,r.default),S=s.name("outer");s.label(S).for((0,n._)`;${b}--;`,()=>s.for((0,n._)`${k} = ${b}; ${k}--;`,()=>s.if((0,n._)`${z}(${c}[${b}], ${c}[${k}])`,()=>{a.error(),s.assign(y,!1).break(S)})))}}};e.default=o})),kq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n=ke(),i=bb(),r={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,t._)`{allowedValue: ${o}}`},code(o){let{gen:a,data:s,$data:c,schemaCode:l,schema:u}=o;c||u&&typeof u=="object"?o.fail$data((0,t._)`!${(0,n.useFunc)(a,i.default)}(${s}, ${l})`):o.fail((0,t._)`${u} !== ${s}`)}};e.default=r})),Rq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n=ke(),i=bb(),r={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,t._)`{allowedValues: ${o}}`},code(o){let{gen:a,data:s,$data:c,schema:l,schemaCode:u,it:d}=o;if(!c&&l.length===0)throw new Error("enum must have non-empty array");let m=l.length>=d.opts.loopEnum,v,y=()=>v??(v=(0,n.useFunc)(a,i.default)),f;if(m||c)f=a.let("valid"),o.block$data(f,h);else{if(!Array.isArray(l))throw new Error("ajv implementation error");let $=a.const("vSchema",u);f=(0,t.or)(...l.map((_,b)=>g($,b)))}o.pass(f);function h(){a.assign(f,!1),a.forOf("v",u,$=>a.if((0,t._)`${y()}(${s}, ${$})`,()=>a.assign(f,!0).break()))}function g($,_){let b=l[_];return typeof b=="object"&&b!==null?(0,t._)`${y()}(${s}, ${$}[${_}])`:(0,t._)`${s} === ${b}`}}};e.default=r})),KI=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=gq(),n=vq(),i=_q(),r=Sq(),o=bq(),a=$q(),s=wq(),c=zq(),l=kq(),u=Rq(),d=[t.default,n.default,i.default,r.default,o.default,a.default,s.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,u.default];e.default=d})),HI=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;let t=ve(),n=ke(),i={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,t.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,t._)`{limit: ${o}}`},code(o){let{parentSchema:a,it:s}=o,{items:c}=a;if(!Array.isArray(c)){(0,n.checkStrictMode)(s,'"additionalItems" is ignored when "items" is not an array of schemas');return}r(o,c)}};function r(o,a){let{gen:s,schema:c,data:l,keyword:u,it:d}=o;d.items=!0;let m=s.const("len",(0,t._)`${l}.length`);if(c===!1)o.setParams({len:a.length}),o.pass((0,t._)`${m} <= ${a.length}`);else if(typeof c=="object"&&!(0,n.alwaysValidSchema)(d,c)){let y=s.var("valid",(0,t._)`${m} <= ${a.length}`);s.if((0,t.not)(y),()=>v(y)),o.ok(y)}function v(y){s.forRange("i",a.length,m,f=>{o.subschema({keyword:u,dataProp:f,dataPropType:n.Type.Num},y),d.allErrors||s.if((0,t.not)(y),()=>s.break())})}}e.validateAdditionalItems=r,e.default=i})),GI=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;let t=ve(),n=ke(),i=Bt(),r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){let{schema:s,it:c}=a;if(Array.isArray(s))return o(a,"additionalItems",s);c.items=!0,!(0,n.alwaysValidSchema)(c,s)&&a.ok((0,i.validateArray)(a))}};function o(a,s,c=a.schema){let{gen:l,parentSchema:u,data:d,keyword:m,it:v}=a;h(u),v.opts.unevaluated&&c.length&&v.items!==!0&&(v.items=n.mergeEvaluated.items(l,c.length,v.items));let y=l.name("valid"),f=l.const("len",(0,t._)`${d}.length`);c.forEach((g,$)=>{(0,n.alwaysValidSchema)(v,g)||(l.if((0,t._)`${f} > ${$}`,()=>a.subschema({keyword:m,schemaProp:$,dataProp:$},y)),a.ok(y))});function h(g){let{opts:$,errSchemaPath:_}=v,b=c.length,k=b===g.minItems&&(b===g.maxItems||g[s]===!1);if($.strictTuples&&!k){let z=`"${m}" is ${b}-tuple, but minItems or maxItems/${s} are not specified or different at path "${_}"`;(0,n.checkStrictMode)(v,z,$.strictTuples)}}}e.validateTuple=o,e.default=r})),Iq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=GI(),n={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:i=>(0,t.validateTuple)(i,"items")};e.default=n})),Pq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n=ke(),i=Bt(),r=HI(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,t.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,t._)`{limit: ${a}}`},code(a){let{schema:s,parentSchema:c,it:l}=a,{prefixItems:u}=c;l.items=!0,!(0,n.alwaysValidSchema)(l,s)&&(u?(0,r.validateAdditionalItems)(a,u):a.ok((0,i.validateArray)(a)))}};e.default=o})),Eq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n=ke(),i={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:r,max:o}})=>o===void 0?(0,t.str)`must contain at least ${r} valid item(s)`:(0,t.str)`must contain at least ${r} and no more than ${o} valid item(s)`,params:({params:{min:r,max:o}})=>o===void 0?(0,t._)`{minContains: ${r}}`:(0,t._)`{minContains: ${r}, maxContains: ${o}}`},code(r){let{gen:o,schema:a,parentSchema:s,data:c,it:l}=r,u,d,{minContains:m,maxContains:v}=s;l.opts.next?(u=m===void 0?1:m,d=v):u=1;let y=o.const("len",(0,t._)`${c}.length`);if(r.setParams({min:u,max:d}),d===void 0&&u===0){(0,n.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(d!==void 0&&u>d){(0,n.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),r.fail();return}if((0,n.alwaysValidSchema)(l,a)){let _=(0,t._)`${y} >= ${u}`;d!==void 0&&(_=(0,t._)`${_} && ${y} <= ${d}`),r.pass(_);return}l.items=!0;let f=o.name("valid");d===void 0&&u===1?g(f,()=>o.if(f,()=>o.break())):u===0?(o.let(f,!0),d!==void 0&&o.if((0,t._)`${c}.length > 0`,h)):(o.let(f,!1),h()),r.result(f,()=>r.reset());function h(){let _=o.name("_valid"),b=o.let("count",0);g(_,()=>o.if(_,()=>$(b)))}function g(_,b){o.forRange("i",0,y,k=>{r.subschema({keyword:"contains",dataProp:k,dataPropType:n.Type.Num,compositeRule:!0},_),b()})}function $(_){o.code((0,t._)`${_}++`),d===void 0?o.if((0,t._)`${_} >= ${u}`,()=>o.assign(f,!0).break()):(o.if((0,t._)`${_} > ${d}`,()=>o.assign(f,!1).break()),u===1?o.assign(f,!0):o.if((0,t._)`${_} >= ${u}`,()=>o.assign(f,!0)))}}};e.default=i})),$b=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;let t=ve(),n=ke(),i=Bt();e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{let d=l===1?"property":"properties";return(0,t.str)`must have ${d} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:d}})=>(0,t._)`{property: ${c},
|
|
213
|
+
missingProperty: ${d},
|
|
214
|
+
depsCount: ${l},
|
|
215
|
+
deps: ${u}}`};let r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){let[l,u]=o(c);a(c,l),s(c,u)}};function o({schema:c}){let l={},u={};for(let d in c){if(d==="__proto__")continue;let m=Array.isArray(c[d])?l:u;m[d]=c[d]}return[l,u]}function a(c,l=c.schema){let{gen:u,data:d,it:m}=c;if(Object.keys(l).length===0)return;let v=u.let("missing");for(let y in l){let f=l[y];if(f.length===0)continue;let h=(0,i.propertyInData)(u,d,y,m.opts.ownProperties);c.setParams({property:y,depsCount:f.length,deps:f.join(", ")}),m.allErrors?u.if(h,()=>{for(let g of f)(0,i.checkReportMissingProp)(c,g)}):(u.if((0,t._)`${h} && (${(0,i.checkMissingProp)(c,f,v)})`),(0,i.reportMissingProp)(c,v),u.else())}}e.validatePropertyDeps=a;function s(c,l=c.schema){let{gen:u,data:d,keyword:m,it:v}=c,y=u.name("valid");for(let f in l)(0,n.alwaysValidSchema)(v,l[f])||(u.if((0,i.propertyInData)(u,d,f,v.opts.ownProperties),()=>{let h=c.subschema({keyword:m,schemaProp:f},y);c.mergeValidEvaluated(h,y)},()=>u.var(y,!0)),c.ok(y))}e.validateSchemaDeps=s,e.default=r})),Tq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n=ke(),i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:r})=>(0,t._)`{propertyName: ${r.propertyName}}`},code(r){let{gen:o,schema:a,data:s,it:c}=r;if((0,n.alwaysValidSchema)(c,a))return;let l=o.name("valid");o.forIn("key",s,u=>{r.setParams({propertyName:u}),r.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},l),o.if((0,t.not)(l),()=>{r.error(!0),c.allErrors||o.break()})}),r.ok(l)}};e.default=i})),WI=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Bt(),n=ve(),i=Jt(),r=ke(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:a})=>(0,n._)`{additionalProperty: ${a.additionalProperty}}`},code(a){let{gen:s,schema:c,parentSchema:l,data:u,errsCount:d,it:m}=a;if(!d)throw new Error("ajv implementation error");let{allErrors:v,opts:y}=m;if(m.props=!0,y.removeAdditional!=="all"&&(0,r.alwaysValidSchema)(m,c))return;let f=(0,t.allSchemaProperties)(l.properties),h=(0,t.allSchemaProperties)(l.patternProperties);g(),a.ok((0,n._)`${d} === ${i.default.errors}`);function g(){s.forIn("key",u,z=>{!f.length&&!h.length?b(z):s.if($(z),()=>b(z))})}function $(z){let S;if(f.length>8){let w=(0,r.schemaRefOrVal)(m,l.properties,"properties");S=(0,t.isOwnProperty)(s,w,z)}else f.length?S=(0,n.or)(...f.map(w=>(0,n._)`${z} === ${w}`)):S=n.nil;return h.length&&(S=(0,n.or)(S,...h.map(w=>(0,n._)`${(0,t.usePattern)(a,w)}.test(${z})`))),(0,n.not)(S)}function _(z){s.code((0,n._)`delete ${u}[${z}]`)}function b(z){if(y.removeAdditional==="all"||y.removeAdditional&&c===!1){_(z);return}if(c===!1){a.setParams({additionalProperty:z}),a.error(),v||s.break();return}if(typeof c=="object"&&!(0,r.alwaysValidSchema)(m,c)){let S=s.name("valid");y.removeAdditional==="failing"?(k(z,S,!1),s.if((0,n.not)(S),()=>{a.reset(),_(z)})):(k(z,S),v||s.if((0,n.not)(S),()=>s.break()))}}function k(z,S,w){let T={keyword:"additionalProperties",dataProp:z,dataPropType:r.Type.Str};w===!1&&Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1}),a.subschema(T,S)}}};e.default=o})),Oq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=_o(),n=Bt(),i=ke(),r=WI(),o={keyword:"properties",type:"object",schemaType:"object",code(a){let{gen:s,schema:c,parentSchema:l,data:u,it:d}=a;d.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&r.default.code(new t.KeywordCxt(d,r.default,"additionalProperties"));let m=(0,n.allSchemaProperties)(c);for(let g of m)d.definedProperties.add(g);d.opts.unevaluated&&m.length&&d.props!==!0&&(d.props=i.mergeEvaluated.props(s,(0,i.toHash)(m),d.props));let v=m.filter(g=>!(0,i.alwaysValidSchema)(d,c[g]));if(v.length===0)return;let y=s.name("valid");for(let g of v)f(g)?h(g):(s.if((0,n.propertyInData)(s,u,g,d.opts.ownProperties)),h(g),d.allErrors||s.else().var(y,!0),s.endIf()),a.it.definedProperties.add(g),a.ok(y);function f(g){return d.opts.useDefaults&&!d.compositeRule&&c[g].default!==void 0}function h(g){a.subschema({keyword:"properties",schemaProp:g,dataProp:g},y)}}};e.default=o})),xq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Bt(),n=ve(),i=ke(),r=ke(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(a){let{gen:s,schema:c,data:l,parentSchema:u,it:d}=a,{opts:m}=d,v=(0,t.allSchemaProperties)(c),y=v.filter(k=>(0,i.alwaysValidSchema)(d,c[k]));if(v.length===0||y.length===v.length&&(!d.opts.unevaluated||d.props===!0))return;let f=m.strictSchema&&!m.allowMatchingProperties&&u.properties,h=s.name("valid");d.props!==!0&&!(d.props instanceof n.Name)&&(d.props=(0,r.evaluatedPropsToName)(s,d.props));let{props:g}=d;$();function $(){for(let k of v)f&&_(k),d.allErrors?b(k):(s.var(h,!0),b(k),s.if(h))}function _(k){for(let z in f)new RegExp(k).test(z)&&(0,i.checkStrictMode)(d,`property ${z} matches pattern ${k} (use allowMatchingProperties)`)}function b(k){s.forIn("key",l,z=>{s.if((0,n._)`${(0,t.usePattern)(a,k)}.test(${z})`,()=>{let S=y.includes(k);S||a.subschema({keyword:"patternProperties",schemaProp:k,dataProp:z,dataPropType:r.Type.Str},h),d.opts.unevaluated&&g!==!0?s.assign((0,n._)`${g}[${z}]`,!0):!S&&!d.allErrors&&s.if((0,n.not)(h),()=>s.break())})})}}};e.default=o})),Nq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ke(),n={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(i){let{gen:r,schema:o,it:a}=i;if((0,t.alwaysValidSchema)(a,o)){i.fail();return}let s=r.name("valid");i.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),i.failResult(s,()=>i.reset(),()=>i.error())},error:{message:"must NOT be valid"}};e.default=n})),jq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Bt().validateUnion,error:{message:"must match a schema in anyOf"}};e.default=t})),Cq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n=ke(),i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:r})=>(0,t._)`{passingSchemas: ${r.passing}}`},code(r){let{gen:o,schema:a,parentSchema:s,it:c}=r;if(!Array.isArray(a))throw new Error("ajv implementation error");if(c.opts.discriminator&&s.discriminator)return;let l=a,u=o.let("valid",!1),d=o.let("passing",null),m=o.name("_valid");r.setParams({passing:d}),o.block(v),r.result(u,()=>r.reset(),()=>r.error(!0));function v(){l.forEach((y,f)=>{let h;(0,n.alwaysValidSchema)(c,y)?o.var(m,!0):h=r.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},m),f>0&&o.if((0,t._)`${m} && ${u}`).assign(u,!1).assign(d,(0,t._)`[${d}, ${f}]`).else(),o.if(m,()=>{o.assign(u,!0),o.assign(d,f),h&&r.mergeEvaluated(h,t.Name)})})}}};e.default=i})),Aq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ke(),n={keyword:"allOf",schemaType:"array",code(i){let{gen:r,schema:o,it:a}=i;if(!Array.isArray(o))throw new Error("ajv implementation error");let s=r.name("valid");o.forEach((c,l)=>{if((0,t.alwaysValidSchema)(a,c))return;let u=i.subschema({keyword:"allOf",schemaProp:l},s);i.ok(s),i.mergeEvaluated(u)})}};e.default=n})),qq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n=ke(),i={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,t.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,t._)`{failingKeyword: ${o.ifClause}}`},code(o){let{gen:a,parentSchema:s,it:c}=o;s.then===void 0&&s.else===void 0&&(0,n.checkStrictMode)(c,'"if" without "then" and "else" is ignored');let l=r(c,"then"),u=r(c,"else");if(!l&&!u)return;let d=a.let("valid",!0),m=a.name("_valid");if(v(),o.reset(),l&&u){let f=a.let("ifClause");o.setParams({ifClause:f}),a.if(m,y("then",f),y("else",f))}else l?a.if(m,y("then")):a.if((0,t.not)(m),y("else"));o.pass(d,()=>o.error(!0));function v(){let f=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},m);o.mergeEvaluated(f)}function y(f,h){return()=>{let g=o.subschema({keyword:f},m);a.assign(d,m),o.mergeValidEvaluated(g,d),h?a.assign(h,(0,t._)`${f}`):o.setParams({ifClause:f})}}}};function r(o,a){let s=o.schema[a];return s!==void 0&&!(0,n.alwaysValidSchema)(o,s)}e.default=i})),Mq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ke(),n={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:i,parentSchema:r,it:o}){r.if===void 0&&(0,t.checkStrictMode)(o,`"${i}" without "if" is ignored`)}};e.default=n})),YI=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=HI(),n=Iq(),i=GI(),r=Pq(),o=Eq(),a=$b(),s=Tq(),c=WI(),l=Oq(),u=xq(),d=Nq(),m=jq(),v=Cq(),y=Aq(),f=qq(),h=Mq();function g($=!1){let _=[d.default,m.default,v.default,y.default,f.default,h.default,s.default,c.default,a.default,l.default,u.default];return $?_.push(n.default,r.default):_.push(t.default,i.default),_.push(o.default),_}e.default=g})),Lq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,t.str)`must match format "${i}"`,params:({schemaCode:i})=>(0,t._)`{format: ${i}}`},code(i,r){let{gen:o,data:a,$data:s,schema:c,schemaCode:l,it:u}=i,{opts:d,errSchemaPath:m,schemaEnv:v,self:y}=u;if(!d.validateFormats)return;s?f():h();function f(){let g=o.scopeValue("formats",{ref:y.formats,code:d.code.formats}),$=o.const("fDef",(0,t._)`${g}[${l}]`),_=o.let("fType"),b=o.let("format");o.if((0,t._)`typeof ${$} == "object" && !(${$} instanceof RegExp)`,()=>o.assign(_,(0,t._)`${$}.type || "string"`).assign(b,(0,t._)`${$}.validate`),()=>o.assign(_,(0,t._)`"string"`).assign(b,$)),i.fail$data((0,t.or)(k(),z()));function k(){return d.strictSchema===!1?t.nil:(0,t._)`${l} && !${b}`}function z(){let S=v.$async?(0,t._)`(${$}.async ? await ${b}(${a}) : ${b}(${a}))`:(0,t._)`${b}(${a})`,w=(0,t._)`(typeof ${b} == "function" ? ${S} : ${b}.test(${a}))`;return(0,t._)`${b} && ${b} !== true && ${_} === ${r} && !${w}`}}function h(){let g=y.formats[c];if(!g){k();return}if(g===!0)return;let[$,_,b]=z(g);$===r&&i.pass(S());function k(){if(d.strictSchema===!1){y.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${c}" ignored in schema at path "${m}"`}}function z(w){let T=w instanceof RegExp?(0,t.regexpCode)(w):d.code.formats?(0,t._)`${d.code.formats}${(0,t.getProperty)(c)}`:void 0,M=o.scopeValue("formats",{key:c,ref:w,code:T});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,t._)`${M}.validate`]:["string",w,M]}function S(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!v.$async)throw new Error("async format in sync schema");return(0,t._)`await ${b}(${a})`}return typeof _=="function"?(0,t._)`${b}(${a})`:(0,t._)`${b}.test(${a})`}}}};e.default=n})),QI=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=[Lq().default];e.default=t})),XI=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],e.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]})),eP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=BI(),n=KI(),i=YI(),r=QI(),o=XI(),a=[t.default,n.default,(0,i.default)(),r.default,o.metadataVocabulary,o.contentVocabulary];e.default=a})),Dq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0;var t;(function(n){n.Tag="tag",n.Mapping="mapping"})(t||(e.DiscrError=t={}))})),wb=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n=Dq(),i=cp(),r=So(),o=ke(),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:s,tagName:c}})=>s===n.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:s,tag:c,tagName:l}})=>(0,t._)`{error: ${s}, tag: ${l}, tagValue: ${c}}`},code(s){let{gen:c,data:l,schema:u,parentSchema:d,it:m}=s,{oneOf:v}=d;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");let y=u.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");let f=c.let("valid",!1),h=c.const("tag",(0,t._)`${l}${(0,t.getProperty)(y)}`);c.if((0,t._)`typeof ${h} == "string"`,()=>g(),()=>s.error(!1,{discrError:n.DiscrError.Tag,tag:h,tagName:y})),s.ok(f);function g(){let b=_();c.if(!1);for(let k in b)c.elseIf((0,t._)`${h} === ${k}`),c.assign(f,$(b[k]));c.else(),s.error(!1,{discrError:n.DiscrError.Mapping,tag:h,tagName:y}),c.endIf()}function $(b){let k=c.name("valid"),z=s.subschema({keyword:"oneOf",schemaProp:b},k);return s.mergeEvaluated(z,t.Name),k}function _(){var b;let k={},z=w(d),S=!0;for(let N=0;N<v.length;N++){let U=v[N];if(U?.$ref&&!(0,o.schemaHasRulesButRef)(U,m.self.RULES)){let ne=U.$ref;if(U=i.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,ne),U instanceof i.SchemaEnv&&(U=U.schema),U===void 0)throw new r.default(m.opts.uriResolver,m.baseId,ne)}let X=(b=U?.properties)===null||b===void 0?void 0:b[y];if(typeof X!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);S=S&&(z||w(U)),T(X,N)}if(!S)throw new Error(`discriminator: "${y}" must be required`);return k;function w({required:N}){return Array.isArray(N)&&N.includes(y)}function T(N,U){if(N.const)M(N.const,U);else if(N.enum)for(let X of N.enum)M(X,U);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function M(N,U){if(typeof N!="string"||N in k)throw new Error(`discriminator: "${y}" values must be unique strings`);k[N]=U}}}};e.default=a})),Uq=Z(((e,t)=>{t.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}})),tP=Z(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;let n=_b(),i=eP(),r=wb(),o=Uq(),a=["/properties"],s="http://json-schema.org/draft-07/schema";var c=class extends n.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(v=>this.addVocabulary(v)),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let v=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(v,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}};e.Ajv=c,t.exports=e=c,t.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var l=_o();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=ve();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=Ls();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return d.default}});var m=So();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})),rP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicAnchor=void 0;let t=ve(),n=Jt(),i=cp(),r=Sb(),o={keyword:"$dynamicAnchor",schemaType:"string",code:c=>a(c,c.schema)};function a(c,l){let{gen:u,it:d}=c;d.schemaEnv.root.dynamicAnchors[l]=!0;let m=(0,t._)`${n.default.dynamicAnchors}${(0,t.getProperty)(l)}`,v=d.errSchemaPath==="#"?d.validateName:s(c);u.if((0,t._)`!${m}`,()=>u.assign(m,v))}e.dynamicAnchor=a;function s(c){let{schemaEnv:l,schema:u,self:d}=c.it,{root:m,baseId:v,localRefs:y,meta:f}=l.root,{schemaId:h}=d.opts,g=new i.SchemaEnv({schema:u,schemaId:h,root:m,baseId:v,localRefs:y,meta:f});return i.compileSchema.call(d,g),(0,r.getValidate)(c,g)}e.default=o})),nP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicRef=void 0;let t=ve(),n=Jt(),i=Sb(),r={keyword:"$dynamicRef",schemaType:"string",code:a=>o(a,a.schema)};function o(a,s){let{gen:c,keyword:l,it:u}=a;if(s[0]!=="#")throw new Error(`"${l}" only supports hash fragment reference`);let d=s.slice(1);if(u.allErrors)m();else{let y=c.let("valid",!1);m(y),a.ok(y)}function m(y){if(u.schemaEnv.root.dynamicAnchors[d]){let f=c.let("_v",(0,t._)`${n.default.dynamicAnchors}${(0,t.getProperty)(d)}`);c.if(f,v(f,y),v(u.validateName,y))}else v(u.validateName,y)()}function v(y,f){return f?()=>c.block(()=>{(0,i.callRef)(a,y),c.let(f,!0)}):()=>(0,i.callRef)(a,y)}}e.dynamicRef=o,e.default=r})),Vq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=rP(),n=ke(),i={keyword:"$recursiveAnchor",schemaType:"boolean",code(r){r.schema?(0,t.dynamicAnchor)(r,""):(0,n.checkStrictMode)(r.it,"$recursiveAnchor: false is ignored")}};e.default=i})),Fq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=nP(),n={keyword:"$recursiveRef",schemaType:"string",code:i=>(0,t.dynamicRef)(i,i.schema)};e.default=n})),iP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=rP(),n=nP(),i=Vq(),r=Fq(),o=[t.default,n.default,i.default,r.default];e.default=o})),Zq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=$b(),n={keyword:"dependentRequired",type:"object",schemaType:"object",error:t.error,code:i=>(0,t.validatePropertyDeps)(i)};e.default=n})),Jq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=$b(),n={keyword:"dependentSchemas",type:"object",schemaType:"object",code:i=>(0,t.validateSchemaDeps)(i)};e.default=n})),Bq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ke(),n={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:i,parentSchema:r,it:o}){r.contains===void 0&&(0,t.checkStrictMode)(o,`"${i}" without "contains" is ignored`)}};e.default=n})),oP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Zq(),n=Jq(),i=Bq(),r=[t.default,n.default,i.default];e.default=r})),Kq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n=ke(),i=Jt(),r={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:o})=>(0,t._)`{unevaluatedProperty: ${o.unevaluatedProperty}}`},code(o){let{gen:a,schema:s,data:c,errsCount:l,it:u}=o;if(!l)throw new Error("ajv implementation error");let{allErrors:d,props:m}=u;m instanceof t.Name?a.if((0,t._)`${m} !== true`,()=>a.forIn("key",c,h=>a.if(y(m,h),()=>v(h)))):m!==!0&&a.forIn("key",c,h=>m===void 0?v(h):a.if(f(m,h),()=>v(h))),u.props=!0,o.ok((0,t._)`${l} === ${i.default.errors}`);function v(h){if(s===!1){o.setParams({unevaluatedProperty:h}),o.error(),d||a.break();return}if(!(0,n.alwaysValidSchema)(u,s)){let g=a.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:h,dataPropType:n.Type.Str},g),d||a.if((0,t.not)(g),()=>a.break())}}function y(h,g){return(0,t._)`!${h} || !${h}[${g}]`}function f(h,g){let $=[];for(let _ in h)h[_]===!0&&$.push((0,t._)`${g} !== ${_}`);return(0,t.and)(...$)}}};e.default=r})),Hq=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve(),n=ke(),i={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:r}})=>(0,t.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,t._)`{limit: ${r}}`},code(r){let{gen:o,schema:a,data:s,it:c}=r,l=c.items||0;if(l===!0)return;let u=o.const("len",(0,t._)`${s}.length`);if(a===!1)r.setParams({len:l}),r.fail((0,t._)`${u} > ${l}`);else if(typeof a=="object"&&!(0,n.alwaysValidSchema)(c,a)){let m=o.var("valid",(0,t._)`${u} <= ${l}`);o.if((0,t.not)(m),()=>d(m,l)),r.ok(m)}c.items=!0;function d(m,v){o.forRange("i",v,u,y=>{r.subschema({keyword:"unevaluatedItems",dataProp:y,dataPropType:n.Type.Num},m),c.allErrors||o.if((0,t.not)(m),()=>o.break())})}}};e.default=i})),aP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Kq(),n=Hq(),i=[t.default,n.default];e.default=i})),Gq=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/schema",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0,"https://json-schema.org/draft/2019-09/vocab/applicator":!0,"https://json-schema.org/draft/2019-09/vocab/validation":!0,"https://json-schema.org/draft/2019-09/vocab/meta-data":!0,"https://json-schema.org/draft/2019-09/vocab/format":!1,"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format"},{$ref:"meta/content"}],type:["object","boolean"],properties:{definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$recursiveRef:"#"},{$ref:"meta/validation#/$defs/stringArray"}]}}}}})),Wq=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/applicator":!0},$recursiveAnchor:!0,title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{additionalItems:{$recursiveRef:"#"},unevaluatedItems:{$recursiveRef:"#"},items:{anyOf:[{$recursiveRef:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$recursiveRef:"#"},additionalProperties:{$recursiveRef:"#"},unevaluatedProperties:{$recursiveRef:"#"},properties:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$recursiveRef:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$recursiveRef:"#"}},propertyNames:{$recursiveRef:"#"},if:{$recursiveRef:"#"},then:{$recursiveRef:"#"},else:{$recursiveRef:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$recursiveRef:"#"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$recursiveRef:"#"}}}}})),Yq=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/content",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$recursiveRef:"#"}}}})),Qq=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/core",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0},$recursiveAnchor:!0,title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveRef:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}}}}})),Xq=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/format",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/format":!0},$recursiveAnchor:!0,title:"Format vocabulary meta-schema",type:["object","boolean"],properties:{format:{type:"string"}}}})),eM=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/meta-data":!0},$recursiveAnchor:!0,title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}})),tM=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/validation",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/validation":!0},$recursiveAnchor:!0,title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}})),rM=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Gq(),n=Wq(),i=Yq(),r=Qq(),o=Xq(),a=eM(),s=tM(),c=["/properties"];function l(u){return[t,n,i,r,d(this,o),a,d(this,s)].forEach(m=>this.addMetaSchema(m,void 0,!1)),this;function d(m,v){return u?m.$dataMetaSchema(v,c):v}}e.default=l})),nM=Z(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2019=void 0;let n=_b(),i=eP(),r=iP(),o=oP(),a=aP(),s=wb(),c=rM(),l="https://json-schema.org/draft/2019-09/schema";var u=class extends n.default{constructor(f={}){super({...f,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(r.default),i.default.forEach(f=>this.addVocabulary(f)),this.addVocabulary(o.default),this.addVocabulary(a.default),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:f,meta:h}=this.opts;h&&(c.default.call(this,f),this.refs["http://json-schema.org/schema"]=l)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}};e.Ajv2019=u,t.exports=e=u,t.exports.Ajv2019=u,Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var d=_o();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var m=ve();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var v=Ls();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return v.default}});var y=So();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})),iM=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=BI(),n=KI(),i=YI(),r=iP(),o=oP(),a=aP(),s=QI(),c=XI(),l=[r.default,t.default,n.default,(0,i.default)(!0),s.default,c.metadataVocabulary,c.contentVocabulary,o.default,a.default];e.default=l})),oM=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}})),aM=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}})),sM=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}})),cM=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}})),lM=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}})),uM=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}})),dM=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}})),mM=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}})),pM=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=oM(),n=aM(),i=sM(),r=cM(),o=lM(),a=uM(),s=dM(),c=mM(),l=["/properties"];function u(d){return[t,n,i,r,o,m(this,a),s,m(this,c)].forEach(v=>this.addMetaSchema(v,void 0,!1)),this;function m(v,y){return d?v.$dataMetaSchema(y,l):y}}e.default=u})),fM=Z(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2020=void 0;let n=_b(),i=iM(),r=wb(),o=pM(),a="https://json-schema.org/draft/2020-12/schema";var s=class extends n.default{constructor(m={}){super({...m,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),i.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:m,meta:v}=this.opts;v&&(o.default.call(this,m),this.refs["http://json-schema.org/schema"]=a)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}};e.Ajv2020=s,t.exports=e=s,t.exports.Ajv2020=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var c=_o();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=ve();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var u=Ls();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=So();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return d.default}})})),hM=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(N,U){return{validate:N,compare:U}}e.fullFormats={date:t(o,a),time:t(c(!0),l),"date-time":t(m(!0),v),"iso-time":t(c(),u),"iso-date-time":t(m(),y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:g,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:M,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:_,int32:{type:"number",validate:z},int64:{type:"number",validate:S},float:{type:"number",validate:w},double:{type:"number",validate:w},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,y),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(N){return N%4===0&&(N%100!==0||N%400===0)}let i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,r=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(N){let U=i.exec(N);if(!U)return!1;let X=+U[1],ne=+U[2],be=+U[3];return ne>=1&&ne<=12&&be>=1&&be<=(ne===2&&n(X)?29:r[ne])}function a(N,U){if(N&&U)return N>U?1:N<U?-1:0}let s=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(N){return function(X){let ne=s.exec(X);if(!ne)return!1;let be=+ne[1],je=+ne[2],xe=+ne[3],Ze=ne[4],ze=ne[5]==="-"?-1:1,O=+(ne[6]||0),L=+(ne[7]||0);if(O>23||L>59||N&&!Ze)return!1;if(be<=23&&je<=59&&xe<60)return!0;let B=je-L*ze,R=be-O*ze-(B<0?1:0);return(R===23||R===-1)&&(B===59||B===-1)&&xe<61}}function l(N,U){if(!(N&&U))return;let X=new Date("2020-01-01T"+N).valueOf(),ne=new Date("2020-01-01T"+U).valueOf();if(X&&ne)return X-ne}function u(N,U){if(!(N&&U))return;let X=s.exec(N),ne=s.exec(U);if(X&&ne)return N=X[1]+X[2]+X[3],U=ne[1]+ne[2]+ne[3],N>U?1:N<U?-1:0}let d=/t|\s/i;function m(N){let U=c(N);return function(ne){let be=ne.split(d);return be.length===2&&o(be[0])&&U(be[1])}}function v(N,U){if(!(N&&U))return;let X=new Date(N).valueOf(),ne=new Date(U).valueOf();if(X&&ne)return X-ne}function y(N,U){if(!(N&&U))return;let[X,ne]=N.split(d),[be,je]=U.split(d),xe=a(X,be);if(xe!==void 0)return xe||l(ne,je)}let f=/\/|:/,h=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function g(N){return f.test(N)&&h.test(N)}let $=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function _(N){return $.lastIndex=0,$.test(N)}let b=-(2**31),k=2**31-1;function z(N){return Number.isInteger(N)&&N<=k&&N>=b}function S(N){return Number.isInteger(N)}function w(){return!0}let T=/[^\\]\\Z/;function M(N){if(T.test(N))return!1;try{return new RegExp(N),!0}catch{return!1}}})),gM=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;let t=tP(),n=ve(),i=n.operators,r={formatMaximum:{okStr:"<=",ok:i.LTE,fail:i.GT},formatMinimum:{okStr:">=",ok:i.GTE,fail:i.LT},formatExclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},formatExclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},o={message:({keyword:s,schemaCode:c})=>(0,n.str)`should be ${r[s].okStr} ${c}`,params:({keyword:s,schemaCode:c})=>(0,n._)`{comparison: ${r[s].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(r),type:"string",schemaType:"string",$data:!0,error:o,code(s){let{gen:c,data:l,schemaCode:u,keyword:d,it:m}=s,{opts:v,self:y}=m;if(!v.validateFormats)return;let f=new t.KeywordCxt(m,y.RULES.all.format.definition,"format");f.$data?h():g();function h(){let _=c.scopeValue("formats",{ref:y.formats,code:v.code.formats}),b=c.const("fmt",(0,n._)`${_}[${f.schemaCode}]`);s.fail$data((0,n.or)((0,n._)`typeof ${b} != "object"`,(0,n._)`${b} instanceof RegExp`,(0,n._)`typeof ${b}.compare != "function"`,$(b)))}function g(){let _=f.schema,b=y.formats[_];if(!b||b===!0)return;if(typeof b!="object"||b instanceof RegExp||typeof b.compare!="function")throw new Error(`"${d}": format "${_}" does not define "compare" function`);let k=c.scopeValue("formats",{key:_,ref:b,code:v.code.formats?(0,n._)`${v.code.formats}${(0,n.getProperty)(_)}`:void 0});s.fail$data($(k))}function $(_){return(0,n._)`${_}.compare(${l}, ${u}) ${r[d].fail} 0`}},dependencies:["format"]};let a=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=a})),vM=Z(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});let n=hM(),i=gM(),r=ve(),o=new r.Name("fullFormats"),a=new r.Name("fastFormats"),s=(l,u={keywords:!0})=>{if(Array.isArray(u))return c(l,u,n.fullFormats,o),l;let[d,m]=u.mode==="fast"?[n.fastFormats,a]:[n.fullFormats,o];return c(l,u.formats||n.formatNames,d,m),u.keywords&&(0,i.default)(l),l};s.get=(l,u="full")=>{let d=(u==="fast"?n.fastFormats:n.fullFormats)[l];if(!d)throw new Error(`Unknown format "${l}"`);return d};function c(l,u,d,m){var v,y;(v=(y=l.opts.code).formats)!==null&&v!==void 0||(y.formats=(0,r._)`require("ajv-formats/dist/formats").${m}`);for(let f of u)l.addFormat(f,d[f])}t.exports=e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s})),sP=tP(),yM=nM(),_M=fM(),SM=Yu(vM(),1),bM=SM.default;function yb(e){let t=new e({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return bM(t),t}var lp=class{_ajv;_ajvDraft7;_ajv2019;_userAjv;constructor(e){this._userAjv=e!==void 0,this._ajv=e}get ajv(){return this._ajv??=yb(_M.Ajv2020)}_engineFor(e){if(this._userAjv)return this.ajv;let t=DR(e,"pass a pre-configured Ajv instance to AjvJsonSchemaValidator(ajv) to validate other dialects.");return t==="2020-12"?this.ajv:t==="2019-09"?this._ajv2019??=yb(yM.Ajv2019):this._ajvDraft7??=yb(sP.Ajv)}getValidator(e){let t=this._engineFor(e),n="$id"in e&&typeof e.$id=="string"?t.getSchema(e.$id)??t.compile(e):t.compile(e);return i=>n(i)?{valid:!0,data:i,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:t.errorsText(n.errors)}}},J6=sP.Ajv;import zb from"node:process";var gP=Symbol.for("mcp.completable");function Rb(e){return!!e&&typeof e=="object"&&gP in e}function wM(e){return e[gP]?.complete}var AV=2**31-1;function zM(e,t){switch(t.kind){case"tools_list_changed":return e.toolsListChanged===!0;case"prompts_list_changed":return e.promptsListChanged===!0;case"resources_list_changed":return e.resourcesListChanged===!0;case"resource_updated":return e.resourceSubscriptions!==void 0&&e.resourceSubscriptions.includes(t.uri)}}function kM(e,t){let n={},i=r=>t===void 0||r===!0;return e.toolsListChanged===!0&&i(t?.tools?.listChanged)&&(n.toolsListChanged=!0),e.promptsListChanged===!0&&i(t?.prompts?.listChanged)&&(n.promptsListChanged=!0),e.resourcesListChanged===!0&&i(t?.resources?.listChanged)&&(n.resourcesListChanged=!0),e.resourceSubscriptions!==void 0&&e.resourceSubscriptions.length>0&&i(t?.resources?.subscribe)&&(n.resourceSubscriptions=[...e.resourceSubscriptions]),n}var up=1024;function cP(e,t){return{method:e.method,params:{...e.params,_meta:{...e.params?._meta,[Un]:t}}}}function RM(e){let t=an(qs).validateRequest("subscriptions/listen",e);return t.ok?t.value.params?.notifications:void 0}var IM=new Set(["notifications/tools/list_changed","notifications/prompts/list_changed","notifications/resources/list_changed","notifications/resources/updated"]),vP=class{_subs=new Map;_serverCapabilities;_serverInfo;constructor(e=up,t,n){this._maxSubscriptions=e,this._serverCapabilities=t,this._serverInfo=n}setServerCapabilities(e,t){this._serverCapabilities=e,t!==void 0&&(this._serverInfo=t)}has(e){return this._subs.has(e)}serve(e){if(this._serverCapabilities===void 0)throw new Error("StdioListenRouter.serve() called before setServerCapabilities(); refusing to honor a filter without capabilities");if(this._subs.size>=this._maxSubscriptions)return{jsonrpc:"2.0",id:e.id,error:{code:-32603,message:"Subscription limit reached"}};let t=RM(e);if(t===void 0)return{jsonrpc:"2.0",id:e.id,error:{code:-32602,message:"Invalid params: 'notifications' is required and must be a valid SubscriptionFilter"}};let n=kM(t,this._serverCapabilities);return this._subs.set(e.id,n),cP({method:"notifications/subscriptions/acknowledged",params:{notifications:n}},e.id)}cancel(e){return this._subs.delete(e)}routeOutbound(e){if(!IM.has(e.method))return"passthrough";let t=e.params?.uri,n=typeof t=="string"?t:void 0,i=PM(e.method,n),r=[];for(let[o,a]of this._subs)zM(a,i)&&r.push(cP({method:e.method,params:e.params??{}},o));return r}teardownAll(){let e=[];for(let t of this._subs.keys())e.push({jsonrpc:"2.0",id:t,result:{resultType:"complete",_meta:{[Un]:t,...this._serverInfo!==void 0&&{[tr]:this._serverInfo}}}});return this._subs.clear(),e}};function PM(e,t){switch(e){case"notifications/tools/list_changed":return{kind:"tools_list_changed"};case"notifications/prompts/list_changed":return{kind:"prompts_list_changed"};case"notifications/resources/list_changed":return{kind:"resources_list_changed"};default:return{kind:"resource_updated",uri:t??""}}}var EM=8,TM=6e5;function OM(e){if(e?.maxRounds!==void 0&&(!Number.isInteger(e.maxRounds)||e.maxRounds<1))throw new RangeError(`inputRequired.maxRounds must be a positive integer (got ${e.maxRounds})`);if(e?.roundTimeoutMs!==void 0&&(!Number.isFinite(e.roundTimeoutMs)||e.roundTimeoutMs<=0))throw new RangeError(`inputRequired.roundTimeoutMs must be a positive number (got ${e.roundTimeoutMs})`);return{maxRounds:e?.maxRounds??EM,roundTimeoutMs:e?.roundTimeoutMs??TM,legacyShim:e?.legacyShim??!0}}function yP(e,t,n){if(n===null||typeof n!="object"||typeof n.method!="string")throw new ue(Q.InternalError,`Handler for ${e} returned an invalid input request '${t}': each inputRequests entry must be an embedded elicitation/create, sampling/createMessage, or roots/list request`);let i=n,r=lI(i);if(r===void 0)throw new ue(Q.InternalError,`Handler for ${e} returned an input request '${t}' of kind '${i.method}', which is not an embedded request the 2026-07-28 revision defines`);return{embedded:i,required:r}}function xM(){let e=globalThis.crypto;if(e?.randomUUID!==void 0)return e.randomUUID();let t=new Uint8Array(16);e.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=[...t].map(i=>i.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}function kb(e,t){if(e==="tools/call")return{content:[{type:"text",text:t}],isError:!0};throw new ue(Q.InternalError,t)}var NM=class{constructor(e){this._host=e}async fulfill(e,t,n,i,r){let{maxRounds:o,roundTimeoutMs:a}=this._host,s=i.mcpReq.signal,c=r,l=0;for(;;){if(l+=1,l>o)return kb(e,OI(e,o));let u=c.inputRequests,d=u!=null&&Object.keys(u).length>0,m=typeof c.requestState=="string"?c.requestState:void 0;if(!d&&m===void 0)throw new ue(Q.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);let v;if(d){let h=this._host.resolvedClientCapabilities(i),g=[];for(let[_,b]of Object.entries(u)){let{embedded:k,required:z}=yP(e,_,b);if(k.method!=="roots/list"&&k.params===void 0)throw new ue(Q.InternalError,`Handler for ${e} returned an input request '${_}' of kind '${k.method}' without params`);if(Km(z,h)!==void 0)return kb(e,`Cannot request input '${_}' (${k.method}): the client on this 2025-era connection did not declare the required capability${h===void 0?" (no client capabilities are available on this connection \u2014 per-request legacy serving cannot receive server-to-client requests)":""}`);g.push([_,k])}let $=NI(s);try{let _={relatedRequestId:i.mcpReq.id,timeout:a,resetTimeoutOnProgress:!0,onprogress:()=>{},signal:$.signal},b=await Promise.all(g.map(async([k,z])=>{try{return[k,await this._dispatchLeg(z,_)]}catch(S){throw $.abort(S),S}}));v=Object.fromEntries(b)}catch(_){if(s.aborted)throw _;return kb(e,`Fulfilling input required by '${e}' failed: ${_ instanceof Error?_.message:String(_)}`)}finally{$.dispose()}}else await xI(TI,s);let y={...i,mcpReq:{...i.mcpReq,inputResponses:v,droppedInputResponseKeys:void 0,requestState:Ms(m)}};if(m!==void 0){let h=await this._host.verifyRequestState(m,y,e);h!==void 0&&(y=db(y,h))}let f=await t(n,y);if(!hr(f))return f;c=f}}async _dispatchLeg(e,t){switch(e.method){case"elicitation/create":{let n=e.params;return n.mode==="url"&&n.elicitationId===void 0&&(n={...n,elicitationId:xM()}),await this._host.sendElicitation(n,t)}case"sampling/createMessage":return await this._host.sendSampling(e.params,t);case"roots/list":return await this._host.listRoots(e.params,t)}}},jM=new Set(["tools/call","prompts/get","resources/read"]),CM,_P,SP;function Ib(e,t){_P(e,t)}function Pb(e){return SP(e)}var bP=class extends pb{_clientCapabilities;_clientVersion;static{CM=(e,t)=>{t.clientCapabilities!==void 0&&(e._clientCapabilities=t.clientCapabilities),t.clientInfo!==void 0&&(e._clientVersion=t.clientInfo)},_P=(e,t)=>{let n=t.filter(i=>!e._supportedProtocolVersions.includes(i));n.length>0&&(e._supportedProtocolVersions=[...e._supportedProtocolVersions,...n]),e.setRequestHandler("server/discover",()=>e._ondiscover())},SP=e=>e._serverInfo}_capabilities;_instructions;_jsonSchemaValidator;_cacheHints;_requestStateVerify;_inputRequiredServing;_legacyShim;_legacyInputRequiredShim(){return this._legacyShim??=new NM({maxRounds:this._inputRequiredServing.maxRounds,roundTimeoutMs:this._inputRequiredServing.roundTimeoutMs,resolvedClientCapabilities:e=>this._inputRequestCapabilityView(e),verifyRequestState:(e,t,n)=>this._verifyRequestState(e,t,n),sendElicitation:(e,t)=>this._sendElicitationLeg(e,t,{validateAcceptedContent:!1}),sendSampling:(e,t)=>this.createMessage(e,t),listRoots:(e,t)=>this.listRoots(e,t)})}oninitialized;constructor(e,t){if(super(t),this._serverInfo=e,this._capabilities=t?.capabilities?{...t.capabilities}:{},this._instructions=t?.instructions,this._jsonSchemaValidator=t?.jsonSchemaValidator??new lp,this._requestStateVerify=t?.requestState?.verify,this._inputRequiredServing=OM(t?.inputRequired),t?.cacheHints!==void 0){for(let[n,i]of Object.entries(t.cacheHints))i!==void 0&&rb(i,`cacheHints['${n}']`);this._cacheHints=t.cacheHints}this.setRequestHandler("initialize",n=>this._oninitialize(n)),this.setNotificationHandler("notifications/initialized",()=>this.oninitialized?.()),WS(this._supportedProtocolVersions).length>0&&this.setRequestHandler("server/discover",()=>this._ondiscover()),this._capabilities.logging&&this._registerLoggingHandler()}_registerLoggingHandler(){this.setRequestHandler("logging/setLevel",async(e,t)=>{let n=t.sessionId||t.http?.req?.headers.get("mcp-session-id")||void 0,{level:i}=e.params,r=tp(nn,i);return r.success&&this._loggingLevels.set(n,r.data),{}})}buildContext(e,t){let n=e.http||t?.request||t?.closeSSEStream||t?.closeStandaloneSSEStream;return{...e,mcpReq:{...e.mcpReq,log:(i,r,o)=>{if(!this._capabilities.logging)return Promise.resolve();let a;if(this._servedModernEra()){if(a=e.mcpReq.envelope?.[Yr],a===void 0)return Promise.resolve()}else a=this._loggingLevels.get(e.sessionId)??this._loggingLevels.get(void 0);return a!==void 0&&this.LOG_LEVEL_SEVERITY.get(i)<this.LOG_LEVEL_SEVERITY.get(a)?Promise.resolve():e.mcpReq.notify({method:"notifications/message",params:{level:i,data:r,logger:o}})},elicitInput:(i,r)=>this.elicitInput(i,r),requestSampling:(i,r)=>this.createMessage(i,r)},http:n?{...e.http,req:t?.request,closeSSE:t?.closeSSEStream,closeStandaloneSSE:t?.closeStandaloneSSEStream}:void 0}}_loggingLevels=new Map;LOG_LEVEL_SEVERITY=new Map(nn.options.map((e,t)=>[e,t]));isMessageIgnored=(e,t)=>{let n=this._loggingLevels.get(t);return n?this.LOG_LEVEL_SEVERITY.get(e)<this.LOG_LEVEL_SEVERITY.get(n):!1};registerCapabilities(e){if(this.transport)throw new ge($e.AlreadyConnected,"Cannot register capabilities after connecting to transport");let t=!!this._capabilities.logging;this._capabilities=fb(this._capabilities,e),!t&&this._capabilities.logging&&this._registerLoggingHandler()}_wrapHandler(e,t){if(e!=="tools/call"){let n=this._cacheHints?.[e],i=jM.has(e);return n===void 0&&!i?async(r,o)=>{let a=await t(r,o);if(hr(a))throw new ue(Q.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return a}:async(r,o)=>{let a=i?await this._invokeInputRequiredCapableHandler(e,t,r,o):await t(r,o);if(hr(a)){if(!i)throw new ue(Q.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return a}return n===void 0?a:Hm(a,n)}}return async(n,i)=>{let r=an(this._negotiatedProtocolVersion),o=r.validateRequest("tools/call",n);if(!o.ok)throw new ue(o.reason==="not-in-era"?Q.InternalError:Q.InvalidParams,o.reason==="not-in-era"?"No wire schema for tools/call in the resolved era":`Invalid tools/call request: ${o.message}`);let a=await this._invokeInputRequiredCapableHandler("tools/call",t,n,i);if(hr(a))return a;let s=YS(a),c=r.validateResult("tools/call",s);if(!c.ok)throw new ue(c.reason==="not-in-era"?Q.InternalError:Q.InvalidParams,c.reason==="not-in-era"?"No wire schema for tools/call in the resolved era":`Invalid tools/call result: ${c.message}`);return c.value}}_servedModernEra(){return this._negotiatedProtocolVersion!==void 0&&vo(this._negotiatedProtocolVersion)}async _invokeInputRequiredCapableHandler(e,t,n,i){let r=this._servedModernEra(),o=i.mcpReq.requestState();if(o!==void 0&&typeof o!="string")throw new ue(Q.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"});let a=i;if(typeof o=="string"){let d=await this._verifyRequestState(o,i,e);d!==void 0&&(a=db(i,d))}let s;try{s=await t(n,a)}catch(d){throw d instanceof ue&&d.code===Q.UrlElicitationRequired&&r?new ue(Q.InternalError,`URL elicitation cannot be signalled by throwing UrlElicitationRequiredError on protocol revision ${this._negotiatedProtocolVersion}: return inputRequired({ inputRequests: { \u2026: inputRequired.elicitUrl(...) } }) from the handler instead. The urlElicitationRequired error (-32042) of earlier revisions is not available on this revision.`):d}if(!hr(s))return s;if(!r){if(!this._inputRequiredServing.legacyShim)throw new ue(Q.InternalError,`Handler for ${e} returned an input-required result, but this request is served on protocol revision ${this._negotiatedProtocolVersion??Dn}, which has no input_required vocabulary`);return await this._legacyInputRequiredShim().fulfill(e,t,n,a,s)}let c=s.inputRequests,l=c!=null&&Object.keys(c).length>0,u=typeof s.requestState=="string";if(!l&&!u)throw new ue(Q.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);if(l){let d=this._inputRequestCapabilityView(i);for(let[m,v]of Object.entries(c)){let{embedded:y,required:f}=yP(e,m,v),h=Km(f,d);if(h!==void 0)throw new Wm({requiredCapabilities:h},`Cannot request input '${m}' (${y.method}): the request's client capabilities do not declare the required capability`)}}return s}async _verifyRequestState(e,t,n){if(this._requestStateVerify!==void 0)try{return await this._requestStateVerify(e,t)}catch(i){throw this.onerror?.(new Error(`requestState verification rejected ${n}: ${i instanceof Error?i.message:String(i)}`)),new ue(Q.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"})}}_inputRequestCapabilityView(e){return this._servedModernEra()?e.mcpReq.envelope?.[pr]:this._clientCapabilities}_assertPushApiInServedEra(e){if(this._servedModernEra())throw new ge($e.MethodNotSupportedByProtocolVersion,`Server-to-client requests are not available on protocol revision ${this._negotiatedProtocolVersion}: '${e}' cannot be sent while serving a request on that revision. Return inputRequired({ ... }) from the handler instead \u2014 the client fulfils the embedded requests and retries the original request (multi round-trip requests).`,{method:e,era:"2026-07-28"})}assertCapabilityForMethod(e){switch(e){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new ge($e.CapabilityNotSupported,`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new ge($e.CapabilityNotSupported,`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new ge($e.CapabilityNotSupported,`Client does not support listing roots (required for ${e})`);break;case"ping":break}}assertNotificationCapability(e){switch(e){case"notifications/message":if(!this._capabilities.logging)throw new ge($e.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new ge($e.CapabilityNotSupported,`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new ge($e.CapabilityNotSupported,`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new ge($e.CapabilityNotSupported,`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new ge($e.CapabilityNotSupported,`Client does not support URL elicitation (required for ${e})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){switch(e){case"completion/complete":if(!this._capabilities.completions)throw new ge($e.CapabilityNotSupported,`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new ge($e.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new ge($e.CapabilityNotSupported,`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new ge($e.CapabilityNotSupported,`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new ge($e.CapabilityNotSupported,`Server does not support tools (required for ${e})`);break;case"ping":case"initialize":break}}async _oninitialize(e){let t=e.params.protocolVersion;this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo;let n=dI(this._supportedProtocolVersions),i=n.includes(t)?t:n[0]??Dn;return this._negotiatedProtocolVersion=i,this.transport?.setProtocolVersion?.(i),{protocolVersion:i,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}_ondiscover(){return{supportedVersions:WS(this._supportedProtocolVersions),capabilities:AM(this.getCapabilities()),...this._instructions&&{instructions:this._instructions}}}_outboundServerInfo(){return this._serverInfo}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getNegotiatedProtocolVersion(){return this._negotiatedProtocolVersion}projectCallToolResult(e,t){return this._wireCodec().projectCallToolResult(e,t)}getCapabilities(){return this._capabilities}async ping(){return this._assertPushApiInServedEra("ping"),this.request({method:"ping"})}async createMessage(e,t){if(this._assertPushApiInServedEra("sampling/createMessage"),(e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new ge($e.CapabilityNotSupported,"Client does not support sampling tools capability.");if(e.messages.length>0){let o=e.messages.at(-1),a=Array.isArray(o.content)?o.content:[o.content],s=a.some(d=>d.type==="tool_result"),c=e.messages.length>1?e.messages.at(-2):void 0,l=c?Array.isArray(c.content)?c.content:[c.content]:[],u=l.some(d=>d.type==="tool_use");if(s){if(a.some(d=>d.type!=="tool_result"))throw new ue(Q.InvalidParams,"The last message must contain only tool_result content if any is present");if(!u)throw new ue(Q.InvalidParams,"tool_result blocks are not matching any tool_use from the previous message")}if(u){let d=new Set(l.filter(v=>v.type==="tool_use").map(v=>v.id)),m=new Set(a.filter(v=>v.type==="tool_result").map(v=>v.toolUseId));if(d.size!==m.size||![...d].every(v=>m.has(v)))throw new ue(Q.InvalidParams,"ids of tool_result blocks and tool_use blocks from previous message do not match")}}let n=!!(e.tools||e.toolChoice),i=await this.request({method:"sampling/createMessage",params:e},t),r=this._wireCodec().samplingResultVariant(n,i);if(!r.ok)throw new ge($e.InvalidResult,`Invalid sampling/createMessage result: ${r.reason==="invalid"?r.message:r.reason}`);return r.value}async elicitInput(e,t){switch(this._assertPushApiInServedEra("elicitation/create"),e.mode??"form"){case"url":if(!this._clientCapabilities?.elicitation?.url)throw new ge($e.CapabilityNotSupported,"Client does not support url elicitation.");break;case"form":if(!this._clientCapabilities?.elicitation?.form)throw new ge($e.CapabilityNotSupported,"Client does not support form elicitation.");break}return this._sendElicitationLeg(e,t)}async _sendElicitationLeg(e,t,n){let i=e.mode??"form",r=n?.validateAcceptedContent??!0;switch(i){case"url":{let o=e;return this.request({method:"elicitation/create",params:o},t)}case"form":{let o=e.mode==="form"?e:{...e,mode:"form"},a=await this.request({method:"elicitation/create",params:o},t);if(r&&a.action==="accept"&&a.content&&o.requestedSchema)try{let s=this._jsonSchemaValidator.getValidator(o.requestedSchema)(a.content);if(!s.valid)throw new ue(Q.InvalidParams,`Elicitation response content does not match requested schema: ${s.errorMessage}`)}catch(s){throw s instanceof ue?s:new ue(Q.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return a}}}createElicitationCompletionNotifier(e,t){if(!this._clientCapabilities?.elicitation?.url)throw new ge($e.CapabilityNotSupported,"Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},t)}async listRoots(e,t){return this._assertPushApiInServedEra("roots/list"),this.request({method:"roots/list",params:e},t)}async sendLoggingMessage(e,t){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,t))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};function AM(e){return{...e}}var Us=class{server;_registeredResources={};_registeredResourceTemplates={};_registeredTools={};_registeredPrompts={};_toolInputSchemaJson={};toolInputSchemaJson(e){let t=this._registeredTools[e];if(!(t===void 0||!t.enabled)){if(Object.hasOwn(this._toolInputSchemaJson,e))return this._toolInputSchemaJson[e];if(t.inputSchema===void 0)return uP;try{let n=ln(t.inputSchema,"input");return this._toolInputSchemaJson[e]=n,n}catch{return}}}constructor(e,t){this.server=new bP(e,t),t?.capabilities?.tools&&this.setToolRequestHandlers(),t?.capabilities?.resources&&this.setResourceRequestHandlers(),t?.capabilities?.prompts&&this.setPromptRequestHandlers()}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}_toolHandlersInitialized=!1;setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler("tools/list"),this.server.assertCanSetRequestHandler("tools/call"),this.server.registerCapabilities({tools:{listChanged:this.server.getCapabilities().tools?.listChanged??!0}}),this.server.setRequestHandler("tools/list",()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?ln(t.inputSchema,"input"):uP,annotations:t.annotations,icons:t.icons,execution:t.execution,_meta:t._meta};return t.outputSchema&&(n.outputSchema=ln(t.outputSchema,"output")),n})})),this.server.setRequestHandler("tools/call",async(e,t)=>{let n=this._registeredTools[e.params.name];if(!n)throw new ue(Q.InvalidParams,`Tool ${e.params.name} not found`);if(!n.enabled)throw new ue(Q.InvalidParams,`Tool ${e.params.name} disabled`);try{let i=await this.validateToolInput(n,e.params.arguments,e.params.name),r=await this.executeToolHandler(n,i,t);return await this.validateToolOutput(n,r,e.params.name),hr(r)?r:this.server.projectCallToolResult(r,n.outputSchemaJson)}catch(i){if(i instanceof ue&&i.code===Q.UrlElicitationRequired)throw i;return this.createToolError(i instanceof Error?i.message:String(i))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,t,n){if(!e.inputSchema)return;let i=await Zn(e.inputSchema,t??{});if(!i.success)throw new ue(Q.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${i.error}`);return i.data}async validateToolOutput(e,t,n){if(!e.outputSchema||hr(t)||t.isError)return;if(t.structuredContent===void 0)throw new ue(Q.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let i=await Zn(e.outputSchema,t.structuredContent);if(!i.success)throw new ue(Q.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${i.error}`)}async executeToolHandler(e,t,n){return e.executor(t,n)}_completionHandlerInitialized=!1;setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler("completion/complete"),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler("completion/complete",async e=>{switch(e.params.ref.type){case"ref/prompt":return ob(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return ab(e),this.handleResourceCompletion(e,e.params.ref);default:throw new ue(Q.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,t){let n=this._registeredPrompts[t.name];if(!n)throw new ue(Q.InvalidParams,`Prompt ${t.name} not found`);if(!n.enabled)throw new ue(Q.InvalidParams,`Prompt ${t.name} disabled`);if(!n.argsSchema)return Ds;let i=hP(fP(n.argsSchema)?.[e.params.argument.name]);if(!Rb(i))return Ds;let r=wM(i);return r?pP(await r(e.params.argument.value,e.params.context)):Ds}async handleResourceCompletion(e,t){let n=Object.values(this._registeredResourceTemplates).find(r=>r.resourceTemplate.uriTemplate.toString()===t.uri);if(!n){if(this._registeredResources[t.uri])return Ds;throw new ue(Q.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let i=n.resourceTemplate.completeCallback(e.params.argument.name);return i?pP(await i(e.params.argument.value,e.params.context)):Ds}_resourceHandlersInitialized=!1;setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler("resources/list"),this.server.assertCanSetRequestHandler("resources/templates/list"),this.server.assertCanSetRequestHandler("resources/read"),this.server.registerCapabilities({resources:{listChanged:this.server.getCapabilities().resources?.listChanged??!0}}),this.server.setRequestHandler("resources/list",async(e,t)=>{let n=Object.entries(this._registeredResources).filter(([r,o])=>o.enabled).map(([r,o])=>({uri:r,name:o.name,...o.metadata})),i=[];for(let r of Object.values(this._registeredResourceTemplates)){if(!r.resourceTemplate.listCallback)continue;let o=await r.resourceTemplate.listCallback(t);for(let a of o.resources)i.push({...r.metadata,...a})}return{resources:[...n,...i]}}),this.server.setRequestHandler("resources/templates/list",async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([e,t])=>({name:e,uriTemplate:t.resourceTemplate.uriTemplate.toString(),...t.metadata}))})),this.server.setRequestHandler("resources/read",async(e,t)=>{let n;try{n=new URL(e.params.uri)}catch{throw new ue(Q.InvalidParams,`Resource URI ${e.params.uri} is invalid`,{uri:e.params.uri,reason:"invalid_uri"})}let i=this._registeredResources[n.toString()];if(i){if(!i.enabled)throw new ue(Q.InvalidParams,`Resource ${n} disabled`);return Hm(await i.readCallback(n,t),i.cacheHint)}for(let r of Object.values(this._registeredResourceTemplates)){let o=r.resourceTemplate.uriTemplate.match(n.toString());if(o)return Hm(await r.readCallback(n,o,t),r.cacheHint)}throw new Gm(e.params.uri)}),this._resourceHandlersInitialized=!0)}_promptHandlersInitialized=!1;setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler("prompts/list"),this.server.assertCanSetRequestHandler("prompts/get"),this.server.registerCapabilities({prompts:{listChanged:this.server.getCapabilities().prompts?.listChanged??!0}}),this.server.setRequestHandler("prompts/list",()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,t])=>({name:e,title:t.title,description:t.description,arguments:t.argsSchema?EI(t.argsSchema):void 0,icons:t.icons,_meta:t._meta}))})),this.server.setRequestHandler("prompts/get",async(e,t)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new ue(Q.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new ue(Q.InvalidParams,`Prompt ${e.params.name} disabled`);return n.handler(e.params.arguments,t)}),this._promptHandlersInitialized=!0)}registerResource(e,t,n,i){let r=n.cacheHint,o=n;if(r!==void 0){rb(r,`resource ${e}`);let a={...n};delete a.cacheHint,o=a}if(typeof t=="string"){if(this._registeredResources[t])throw new Error(`Resource ${t} is already registered`);let a=this._createRegisteredResource(e,n.title,t,o,i);return r!==void 0&&(a.cacheHint=r),this.setResourceRequestHandlers(),this.sendResourceListChanged(),a}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let a=this._createRegisteredResourceTemplate(e,n.title,t,o,i);return r!==void 0&&(a.cacheHint=r),this.setResourceRequestHandlers(),this.sendResourceListChanged(),a}}_createRegisteredResource(e,t,n,i,r){let o={name:e,title:t,metadata:i,readCallback:r,enabled:!0,disable:()=>o.update({enabled:!1}),enable:()=>o.update({enabled:!0}),remove:()=>o.update({uri:null}),update:a=>{a.uri!==void 0&&a.uri!==n&&(delete this._registeredResources[n],a.uri&&(this._registeredResources[a.uri]=o)),a.name!==void 0&&(o.name=a.name),a.title!==void 0&&(o.title=a.title),a.metadata!==void 0&&(o.metadata=a.metadata),a.callback!==void 0&&(o.readCallback=a.callback),a.enabled!==void 0&&(o.enabled=a.enabled),this.sendResourceListChanged()}};return this._registeredResources[n]=o,o}_createRegisteredResourceTemplate(e,t,n,i,r){let o={resourceTemplate:n,title:t,metadata:i,readCallback:r,enabled:!0,disable:()=>o.update({enabled:!1}),enable:()=>o.update({enabled:!0}),remove:()=>o.update({name:null}),update:s=>{s.name!==void 0&&s.name!==e&&(delete this._registeredResourceTemplates[e],s.name&&(this._registeredResourceTemplates[s.name]=o)),s.title!==void 0&&(o.title=s.title),s.template!==void 0&&(o.resourceTemplate=s.template),s.metadata!==void 0&&(o.metadata=s.metadata),s.callback!==void 0&&(o.readCallback=s.callback),s.enabled!==void 0&&(o.enabled=s.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=o;let a=n.uriTemplate.variableNames;return Array.isArray(a)&&a.some(s=>!!n.completeCallback(s))&&this.setCompletionRequestHandler(),o}_createRegisteredPrompt(e,t,n,i,r,o,a){let s=i,c=r,l={title:t,description:n,argsSchema:i,icons:o,_meta:a,handler:mP(e,i,r),enabled:!0,disable:()=>l.update({enabled:!1}),enable:()=>l.update({enabled:!0}),remove:()=>l.update({name:null}),update:u=>{u.name!==void 0&&u.name!==e&&(delete this._registeredPrompts[e],u.name&&(this._registeredPrompts[u.name]=l)),u.title!==void 0&&(l.title=u.title),u.description!==void 0&&(l.description=u.description),u.icons!==void 0&&(l.icons=u.icons),u._meta!==void 0&&(l._meta=u._meta);let d=!1;u.argsSchema!==void 0&&(l.argsSchema=u.argsSchema,s=u.argsSchema,d=!0),u.callback!==void 0&&(c=u.callback,d=!0),d&&(l.handler=mP(e,s,c)),u.enabled!==void 0&&(l.enabled=u.enabled),this.sendPromptListChanged()}};if(this._registeredPrompts[e]=l,i){let u=fP(i);u&&Object.values(u).some(d=>Rb(hP(d)))&&this.setCompletionRequestHandler()}return l}_createRegisteredTool(e,t,n,i,r,o,a,s,c,l){if(vb(e),i!==void 0)try{let m=ln(i,"input");this._toolInputSchemaJson[e]=m;let v=sb(m);v.valid||console.warn(`[mcp-sdk] tool '${e}' carries an invalid x-mcp-header declaration and will be excluded by conforming Streamable HTTP clients: ${v.reason}`)}catch{}let u=l,d={title:t,description:n,inputSchema:i,outputSchema:r,outputSchemaJson:dP(r),annotations:o,icons:a,execution:s,_meta:c,handler:l,executor:lP(i,l),enabled:!0,disable:()=>d.update({enabled:!1}),enable:()=>d.update({enabled:!0}),remove:()=>d.update({name:null}),update:m=>{m.name!==void 0&&m.name!==e&&(typeof m.name=="string"&&vb(m.name),delete this._registeredTools[e],delete this._toolInputSchemaJson[e],m.name&&(delete this._toolInputSchemaJson[m.name],this._registeredTools[m.name]=d,e=m.name)),m.title!==void 0&&(d.title=m.title),m.description!==void 0&&(d.description=m.description);let v=!1;m.paramsSchema!==void 0&&(d.inputSchema=m.paramsSchema,delete this._toolInputSchemaJson[e],v=!0),m.callback!==void 0&&(d.handler=m.callback,u=m.callback,v=!0),v&&(d.executor=lP(d.inputSchema,u)),m.outputSchema!==void 0&&(d.outputSchema=m.outputSchema,d.outputSchemaJson=dP(m.outputSchema)),m.annotations!==void 0&&(d.annotations=m.annotations),m.icons!==void 0&&(d.icons=m.icons),m._meta!==void 0&&(d._meta=m._meta),m.enabled!==void 0&&(d.enabled=m.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=d,this.setToolRequestHandlers(),this.sendToolListChanged(),d}registerTool(e,t,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:i,description:r,inputSchema:o,outputSchema:a,annotations:s,icons:c,_meta:l}=t;return this._createRegisteredTool(e,i,r,rp(o),rp(a),s,c,void 0,l,n)}registerPrompt(e,t,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:i,description:r,argsSchema:o,icons:a,_meta:s}=t,c=this._createRegisteredPrompt(e,i,r,rp(o),n,a,s);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),c}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,t){return this.server.sendLoggingMessage(e,t)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};function lP(e,t){if(e){let i=t;return async(r,o)=>i(r,o)}let n=t;return async(i,r)=>n(r)}var uP={type:"object",properties:{}};function dP(e){if(e!==void 0)try{return ln(e,"output")}catch{return}}function mP(e,t,n){if(t){let i=n;return async(r,o)=>{let a=await Zn(t,r);if(!a.success)throw new ue(Q.InvalidParams,`Invalid arguments for prompt ${e}: ${a.error}`);return i(a.data,o)}}else{let i=n;return async(r,o)=>i(o)}}function pP(e){return{completion:{values:e.map(String).slice(0,100),total:e.length,hasMore:e.length>100}}}var Ds={completion:{values:[],hasMore:!1}};function fP(e){let t=e;if(t.shape&&typeof t.shape=="object")return t.shape}function qM(e){return e?.type==="optional"}function hP(e){return qM(e)?e.def?.innerType??e:e}var MM=class{_readBuffer;_started=!1;_closed=!1;constructor(e=zb.stdin,t=zb.stdout,n){this._stdin=e,this._stdout=t,this._readBuffer=new hb({maxBufferSize:n?.maxBufferSize})}onclose;onerror;onmessage;_ondata=e=>{try{this._readBuffer.append(e),this.processReadBuffer()}catch(t){this.onerror?.(t),this.close().catch(()=>{})}};_onerror=e=>{this.onerror?.(e)};_onstdouterror=e=>{this.onerror?.(e),this.close().catch(()=>{})};async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror),this._stdout.on("error",this._onstdouterror)}processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._closed||(this._closed=!0,this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdout.off("error",this._onstdouterror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.())}send(e){return this._closed?Promise.reject(new Error("StdioServerTransport is closed")):new Promise((t,n)=>{let i=gb(e),r=!1,o=s=>{r||(r=!0,this._stdout.off("error",o),this._stdout.off("drain",a),n(s))},a=()=>{r||(r=!0,this._stdout.off("error",o),this._stdout.off("drain",a),t())};if(this._stdout.once("error",o),this._stdout.write(i)){if(r)return;r=!0,this._stdout.off("error",o),t()}else r||this._stdout.once("drain",a)})}},$P=3e3,LM=class{onclose;onerror;onmessage;_closed=!1;_pendingRequests=new Set;_drainWaiters=[];constructor(e,t,n){this._wire=e,this._onInstanceClose=t,this._outboundIntercept=n}async start(){}async send(e,t){if(Cs(e)||ep(e)){let{id:n}=e;n!==void 0&&this._settle(n)}if(!this._closed&&this._outboundIntercept?.(e)!=="handled")return this._wire.send(e,t)}setProtocolVersion=e=>{this._wire.setProtocolVersion?.(e)};deliver(e,t){if(!this._closed){if(Nt(e))this._pendingRequests.add(e.id);else if(cn(e)&&e.method==="notifications/cancelled"){let n=e.params?.requestId;n!==void 0&&this._settle(n)}this.onmessage?.(e,t)}}async whenRequestsAnswered(e){return this._closed||this._pendingRequests.size===0?!0:await new Promise(t=>{let n=()=>{clearTimeout(i),t(!0)},i=setTimeout(()=>{this._drainWaiters=this._drainWaiters.filter(r=>r!==n),t(!1)},e);this._drainWaiters.push(n)})}async close(){if(!this._closed){this._closed=!0,this._pendingRequests.clear(),this._releaseDrainWaiters();try{this._onInstanceClose()}finally{this.onclose?.()}}}_settle(e){this._pendingRequests.delete(e),this._pendingRequests.size===0&&this._releaseDrainWaiters()}_releaseDrainWaiters(){let e=this._drainWaiters;this._drainWaiters=[];for(let t of e)t()}};function DM(e){let t=e.params;if(e.method==="initialize"&&!cb(t)){let o=t!==null&&typeof t=="object"&&typeof t.protocolVersion=="string"?t.protocolVersion:void 0;return{kind:"legacy",reason:"initialize",...o!==void 0&&{requestedVersion:o}}}if(!Ym(t))return{kind:"legacy",reason:"no-claim"};let n=Bn(t),i=(n===void 0?[]:Xm(n))[0];if(i!==void 0)return{kind:"invalid-envelope",issue:i};let r=Qm(t);return r===void 0||!sn.includes(r)?{kind:"unsupported-revision",requested:r??"unknown"}:{kind:"modern",revision:r,classification:{era:"modern",revision:r}}}function wP(e,t={}){let n=t.legacy??"serve",i=t.transport??new MM,r={phase:"opening"},o,a=!1,s=()=>a||r.phase==="closed",c=w=>{try{t.onerror?.(w)}catch{}},l=(w,T,M,N)=>i.send({jsonrpc:"2.0",id:w,error:{code:T,message:M,...N!==void 0&&{data:N}}}).catch(U=>c(Kt(U))),u=new vP(t.maxSubscriptions??up),d=w=>{if(!cn(w))return;let T=u.routeOutbound(w);if(T!=="passthrough"){for(let M of T)i.send({jsonrpc:"2.0",...M}).catch(N=>c(Kt(N)));return"handled"}},m=async w=>{if(Nt(w)&&w.method==="subscriptions/listen"){let T=Bn(w.params),M=Ym(w.params)?(T===void 0?[]:Xm(T))[0]:{key:"_meta",problem:"the per-request envelope is required on protocol revision 2026-07-28"},N=Qm(w.params),U;if(M!==void 0)U={jsonrpc:"2.0",id:w.id,error:{code:-32602,message:`Invalid _meta envelope: ${M.key}: ${M.problem}`}};else if(N===void 0||!sn.includes(N)){let X=new yo({supported:[...sn],requested:N??"unknown"});U={jsonrpc:"2.0",id:w.id,error:{code:X.code,message:X.message,data:X.data}}}else U=u.serve(w);return await i.send("error"in U?U:{jsonrpc:"2.0",method:U.method,params:U.params}).catch(X=>c(Kt(X))),!0}if(cn(w)&&w.method==="notifications/cancelled"){let T=w.params?.requestId;if(T!==void 0&&u.cancel(T))return!0}return!1},v=(w,T,M)=>{let N=lb({kind:"legacy",reason:T,...M!==void 0&&{requestedVersion:M}},sn);return N===void 0?Promise.resolve():(c(new Error(`Rejected 2025-era request on a modern-only stdio connection (${N.cell}): ${N.message}`)),l(w.id,N.code,N.message,N.data))},y=w=>{a||w===o||z()},f=async(w,T)=>{let M=await e({era:w}),N=M instanceof Us?M.server:M;w==="modern"&&(mb(N,T),Ib(N,sn),u.setServerCapabilities(N.getCapabilities(),Pb(N)));let U=new LM(i,()=>y(U),w==="modern"?d:void 0);return await M.connect(U),{product:M,channel:U}},h=w=>w.product.close().catch(T=>c(Kt(T))),g=async w=>{o=w.channel;try{await w.channel.whenRequestsAnswered($P)||c(new Error(`Discarded the probe instance with requests still unanswered after ${$P}ms; continuing with the fallback`)),await w.product.close()}catch(T){c(Kt(T))}finally{o=void 0}},$=async w=>{if(r.phase==="closed")return;if(r.phase==="pinned"){if(r.era==="modern"&&Nt(w)&&w.method==="initialize"&&!cb(w.params)){await v(w,"initialize",w.params!==null&&typeof w.params=="object"&&typeof w.params.protocolVersion=="string"?w.params.protocolVersion:void 0);return}if(r.era==="modern"&&await m(w))return;r.instance.channel.deliver(w);return}if(!Nt(w)&&!cn(w)){c(new Error("Discarded a JSON-RPC response received before the connection negotiated an era"));return}let T=DM(w);switch(T.kind){case"invalid-envelope":{let M=`Invalid _meta envelope for protocol revision 2026-07-28: ${T.issue.key}: ${T.issue.problem}`;Nt(w)?await l(w.id,Q.InvalidParams,M,{envelope:T.issue}):c(new Error(`Discarded a notification with a malformed envelope: ${M}`));return}case"unsupported-revision":if(Nt(w)){let M=new yo({supported:[...sn],requested:T.requested});c(M),await l(w.id,M.code,M.message,M.data)}else c(new Error(`Discarded a notification claiming unsupported protocol revision ${T.requested}`));return;case"modern":if(Nt(w)&&w.method==="server/discover"){if(r.phase==="probe"){r.instance.channel.deliver(w,{classification:T.classification});return}let M=await f("modern",T.revision);if(s()){await h(M);return}r={phase:"probe",instance:M},M.channel.deliver(w,{classification:T.classification});return}if(r.phase==="probe"){if(cn(w)){r.instance.channel.deliver(w,{classification:T.classification});return}r={phase:"pinned",era:"modern",instance:r.instance}}else{let M=await f("modern",T.revision);if(s()){await h(M);return}r={phase:"pinned",era:"modern",instance:M}}if(await m(w))return;r.instance.channel.deliver(w,{classification:T.classification});return;case"legacy":{if(n==="reject"){Nt(w)&&await v(w,T.reason,T.requestedVersion);return}if(r.phase==="probe"){if(await g(r.instance),s())return;r={phase:"opening"}}let M=await f("legacy");if(s()){await h(M);return}r={phase:"pinned",era:"legacy",instance:M},r.instance.channel.deliver(w);return}}},_=[],b=!1,k=async()=>{if(!b){b=!0;try{for(;_.length>0;){let w=_.shift();try{await $(w)}catch(T){Nt(w)&&await l(w.id,Q.InternalError,"Internal server error"),c(Kt(T))}}}finally{b=!1}}},z=async()=>{if(a||r.phase==="closed")return;a=!0;let w=r;r={phase:"closed"};for(let T of u.teardownAll())await i.send(T).catch(M=>c(Kt(M)));(w.phase==="probe"||w.phase==="pinned")&&await w.instance.product.close().catch(T=>c(Kt(T))),await i.close().catch(T=>c(Kt(T)))};i.onmessage=w=>{_.push(w),k()},i.onerror=w=>{c(w),(r.phase==="probe"||r.phase==="pinned")&&r.instance.channel.onerror?.(w)},i.onclose=()=>{if(a||r.phase==="closed")return;a=!0;let w=r;r={phase:"closed"},(w.phase==="probe"||w.phase==="pinned")&&w.instance.product.close().catch(T=>c(Kt(T)))};let S=i.start().catch(w=>{throw c(Kt(w)),w});return S.catch(()=>{}),{close:async()=>{await S.catch(()=>{}),await z()}}}function Kt(e){return e instanceof Error?e:new Error(String(e))}function zP(e,t){let n=e.config.computers.find(({name:o,id:a})=>o===t||a===t);if(!n)throw new Error(`Computer ${t} was not found.`);let i=e.secrets.computers[n.id];if(!i)throw new Error(`Secret material for ${n.name} is missing.`);let r=`http://127.0.0.1:${e.config.gatewayPort}/computers/${n.id}`;wP(()=>{let o=new Us({name:`qubicl-stdio-${n.id}`,version:Ke.version});for(let a of RR){let s=Q_[a];o.registerTool(a,{description:s.description,inputSchema:s.input},async c=>{try{let l=await fetch(`${r}/v1/tools/${a}`,{method:"POST",headers:{authorization:`Bearer ${i.token}`,"content-type":"application/json"},body:JSON.stringify(c)}),u=await l.json();return{isError:!l.ok,content:[{type:"text",text:JSON.stringify(u)}],structuredContent:u}}catch(l){let u={error:{code:"bridge_error",message:l instanceof Error?l.message:String(l)}};return{isError:!0,content:[{type:"text",text:JSON.stringify(u)}],structuredContent:u}}})}return o},{onerror:o=>console.error(o)})}async function IP(e,t){if(_L(e,t),br(t,"help")){console.log(RP);return}switch(e){case void 0:case"help":console.log(RP);return;case"version":console.log(kR());return;case"init":return HM(t);case"up":return GM();case"down":return WM();case"create":return YM(t);case"list":return QM();case"status":return XM(t.positionals[0]);case"inspect":return eL(Xe(t.positionals[0],"computer name"));case"logs":return tL(t.positionals[0]);case"doctor":return rL();case"start":return nL(Xe(t.positionals[0],"computer name"));case"stop":return iL(Xe(t.positionals[0],"computer name"));case"restart":return oL(Xe(t.positionals[0],"computer name"));case"rename":return aL(Xe(t.positionals[0],"old name"),Xe(t.positionals[1],"new name"));case"delete":return sL(Xe(t.positionals[0],"computer name"));case"restore":return cL(Xe(t.positionals[0],"computer name or ID"));case"purge":return lL(Xe(t.positionals[0],"computer name or ID"),br(t,"yes"));case"view":return uL(Xe(t.positionals[0],"computer name"),br(t,"no-open"));case"connect":return dL(Xe(t.positionals[0],"computer name"),ii(t,"client")??"generic");case"mcp":return mL(Xe(t.positionals[0],"computer name"));case"token":return pL(t);case"image":return fL(t);case"export":return hL(ii(t,"output")??"qubicl.yaml");case"apply":return gL(Xe(t.positionals[0],"manifest path"),br(t,"dry-run"),br(t,"prune"));default:throw new Error(`Unknown command ${e}. Run qubicl help.`)}}async function HM(e){await Kr();let t=st();await wt(t,async()=>{let n=await TR(t);!br(e,"empty")&&n.config.computers.length===0&&await Ob(n,void 0,{}),await Zt(n),await Hr(n,!0),await Xi(n);for(let i of n.config.computers)await Gr(n,i);console.log(`Qubicl is initialized at ${n.paths.root}.`);for(let i of n.config.computers)xb(n,i)})}async function GM(){let e=st();await wt(e,async()=>{let t=await qe(e);await Kr(),await Zt(t),await Hr(t,!0),await Xi(t);for(let n of t.config.computers)await Gr(t,n);console.log(`Started Qubicl with ${t.config.computers.length} computer${t.config.computers.length===1?"":"s"}.`)})}async function WM(){let e=st();await wt(e,async()=>{let t=await qe(e);await Mn(t,["stop"]),console.log("Stopped Qubicl. Persistent homes were left intact.")})}async function YM(e){let t=st();await wt(t,async()=>{let n=await qe(t);await Kr();let i=ii(e,"image"),r=qb(e,"cpus"),o=ii(e,"memory"),a=await Ob(n,e.positionals[0],{...i===void 0?{}:{image:i},...r===void 0?{}:{cpus:r},...o===void 0?{}:{memory:o}});await Zt(n),await Hr(n,!0),await Gr(n,a),xb(n,a)})}async function QM(){let e=await qe(),t=await Promise.all(e.config.computers.map(async n=>({computer:n,runtime:await eo(n.id)})));if(!t.length){console.log("No Qubicl computers.");return}console.log("NAME STATUS HEALTH ID IMAGE");for(let{computer:n,runtime:i}of t)console.log(`${n.name} ${i.status} ${i.health??"-"} ${n.id} ${n.image}`)}async function XM(e){let t=await qe();if(e){let r=jt(t,e);console.log(JSON.stringify({qubicl:Ke,...r,runtime:await eo(r.id),endpoints:bo(t,r)},null,2));return}let n=await Fe(["inspect","--format","{{.State.Status}}",Ft],{allowFailure:!0}),i=await Promise.all(t.config.computers.map(async r=>({name:r.name,id:r.id,...await eo(r.id)})));console.log(JSON.stringify({qubicl:Ke,gateway:n||"absent",computers:i},null,2))}async function eL(e){let t=await qe(),n=jt(t,e),i=await Fe(["inspect",Br(n.id)],{allowFailure:!0});console.log(JSON.stringify(Bu({config:n,endpoints:bo(t,n),runtime:i?JSON.parse(i):null}),null,2))}async function tL(e){let t=await qe(),n=e?[qn(jt(t,e).id)]:[];await Mn(t,["logs","--tail","200",...n],{inherit:!0})}async function rL(){let e=[{check:"qubicl",ok:!0,detail:`${Ke.version} revision=${Ke.revision} built=${Ke.date}`},{check:"platform",ok:["darwin","linux"].includes(process.platform)&&["arm64","x64"].includes(process.arch),detail:`${process.platform}-${process.arch}`},{check:"node",ok:zR(),detail:`${process.versions.node} (supported: ${wR})`},{check:"computer-image",ok:!0,detail:K_},{check:"gateway-image",ok:!0,detail:Ki}];try{let t=await Fe(["--version"]);e.push({check:"docker-cli",ok:!0,detail:t})}catch(t){e.push({check:"docker-cli",ok:!1,detail:Vs(t)})}try{let t=await Fe(["info","--format","{{.ServerVersion}}"]);e.push({check:"docker-engine",ok:Wi(t,Hi),detail:`${t} (minimum: ${Hi})`})}catch(t){e.push({check:"docker-engine",ok:!1,detail:Vs(t)})}try{let t=await Fe(["compose","version","--short"]);e.push({check:"docker-compose",ok:Wi(t,Gi),detail:`${t} (minimum: ${Gi})`})}catch(t){e.push({check:"docker-compose",ok:!1,detail:Vs(t)})}try{let t=await qe();e.push({check:"state",ok:!0,detail:t.paths.root});let n=(await ZM(t.paths.secrets)).mode&511;e.push({check:"secrets-mode",ok:n===384,detail:`0${n.toString(8)}`});let i=await fetch(`http://127.0.0.1:${t.config.gatewayPort}/health`).catch(()=>{});e.push({check:"gateway",ok:i?.ok??!1,detail:i?`${i.status}`:"not reachable"})}catch(t){e.push({check:"state",ok:!1,detail:Vs(t)})}for(let t of e)console.log(`${t.ok?"ok":"FAIL"} ${t.check} ${t.detail}`);if(e.some(({ok:t})=>!t))throw new Error("One or more doctor checks failed.")}async function nL(e){let t=st();await wt(t,async()=>{let n=await qe(t);await Kr();let i=jt(n,e);await Zt(n),await Hr(n,!0),await Gr(n,i),console.log(`Started ${i.name}.`)})}async function iL(e){let t=st();await wt(t,async()=>{let n=await qe(t),i=jt(n,e);await Mn(n,["stop",qn(i.id)]),console.log(`Stopped ${i.name}. Its home remains durable; root changes are not guaranteed.`)})}async function oL(e){let t=st();await wt(t,async()=>{let n=await qe(t),i=jt(n,e);await Zt(n),await Hr(n,!0),await Xi(n),await Mn(n,["restart",qn(i.id)]);try{await Fe(["network","connect",Qi(i.id),Ft])}catch(r){if(!Vs(r).includes("already exists in network"))throw r}await uS(i.id),await Gu(n,i.id),console.log(`Restarted ${i.name}.`)})}async function aL(e,t){W_(t);let n=st();await wt(n,async()=>{let i=await qe(n),r=jt(i,e),o=await eo(r.id);if(i.config.computers.some(({name:a,id:s})=>a===t&&s!==r.id))throw new Error(`Computer name ${t} is already in use.`);r.name=t,await An(i.paths,r),await Jr(i),await Zt(i),(o.status==="running"||o.status==="restarting")&&await Gr(i,r),console.log(`Renamed ${e} to ${t}. ID, routes, token, and home are unchanged.`)})}async function sL(e){let t=st();await wt(t,async()=>{let n=await qe(t);await Kr();let i=jt(n,e);n.config.computers=n.config.computers.filter(({id:o})=>o!==i.id),delete n.secrets.computers[i.id],await Jr(n),await Zt(n),await AR(n,i.id),await lS(i.id);let r={...i,deletedAt:new Date().toISOString()};await An(n.paths,r),await Eb(Fs(n.paths.computers,i.id),Fs(n.paths.trash,i.id)),console.log(`Moved ${i.name} to recoverable trash and invalidated its token.`)})}async function cL(e){let t=st();await wt(t,async()=>{let n=await qe(t);await Kr();let i=await nS(n.paths,e);if(n.config.computers.some(({name:a})=>a===i.metadata.name))throw new Error(`Active computer name ${i.metadata.name} is already in use.`);let{deletedAt:r,...o}=i.metadata;await Eb(i.directory,Fs(n.paths.computers,o.id)),n.config.computers.push(o),n.secrets.computers[o.id]=Ku(),await An(n.paths,o),await Jr(n),await Zt(n),await Hr(n,!0),await Gr(n,o),console.log(`Restored ${o.name} with the same ID, route, and home and a new token.`),xb(n,o)})}async function lL(e,t){let n=st();await wt(n,async()=>{let i=await qe(n),r=await nS(i.paths,e);if(!t){if(!kP.isTTY)throw new Error("Permanent purge requires --yes when stdin is not interactive.");let o=BM({input:kP,output:KM}),a=await o.question(`Permanently delete the home for ${r.metadata.name}? Type its name to confirm: `);if(o.close(),a!==r.metadata.name)throw new Error("Confirmation did not match; nothing was purged.")}await FM(r.directory,{recursive:!0,force:!1}),console.log(`Permanently purged ${r.metadata.name}. This cannot be recovered by Qubicl.`)})}async function uL(e,t){let n=await qe(),i=jt(n,e),r=n.secrets.computers[i.id],o=`http://127.0.0.1:${n.config.gatewayPort}`,a=await fetch(`${o}/computers/${i.id}/view-ticket`,{method:"POST",headers:{authorization:`Bearer ${r.token}`}}),s=await a.json();if(!a.ok||!s.url)throw new Error(s.error?.message??`Gateway returned ${a.status}.`);let c=`${o}${s.url}`;console.log(c),t||await vL(c)}async function dL(e,t){let n=await qe(),i=jt(n,e),r=n.secrets.computers[i.id],o=bo(n,i).mcp;if(t==="stdio"){console.log(JSON.stringify({command:"qubicl",args:["mcp",i.name]},null,2));return}if(t==="openapi"){console.log(JSON.stringify({type:"openapi",url:bo(n,i).openapi,headers:{Authorization:`Bearer ${r.token}`}},null,2));return}if(t==="generic"){console.log(JSON.stringify({mcp:{type:"http",url:o,headers:{Authorization:`Bearer ${r.token}`}},openapi:{url:bo(n,i).openapi,headers:{Authorization:`Bearer ${r.token}`}},stdio:{command:"qubicl",args:["mcp",i.name]}},null,2));return}console.log(JSON.stringify({client:t,mcpServers:{[i.name]:{type:"http",url:o,headers:{Authorization:`Bearer ${r.token}`}}}},null,2))}async function mL(e){zP(await qe(),e)}async function pL(e){let t=Xe(e.positionals[0],"token action (show or rotate)"),n=Xe(e.positionals[1],"computer name"),i=st();await wt(i,async()=>{let r=await qe(i),o=jt(r,n);if(t==="show"){console.log(r.secrets.computers[o.id].token);return}if(t!=="rotate")throw new Error("Token action must be show or rotate.");r.secrets.computers[o.id].token=Ku().token,await Jr(r),await Zt(r),await CR(r,o.id,r.secrets.computers[o.id].token),console.log(r.secrets.computers[o.id].token)})}async function fL(e){let t=Xe(e.positionals[0],"image action");if(t==="build-system"){if(e.positionals.length!==1)throw new Error("Image build-system does not accept additional arguments.");await sS(!0);return}if(t!=="build")throw new Error("Image action must be build.");if(e.positionals.length!==3)throw new Error("Image build requires an image tag and build directory.");let n=Xe(e.positionals[1],"image tag"),i=dp(Xe(e.positionals[2],"build directory"));await Fe(["build","--tag",n,i],{inherit:!0})}async function hL(e){let t=await qe(),n={version:1,gateway:{port:t.config.gatewayPort},computers:t.config.computers.map(({name:i,image:r,cpus:o,memory:a})=>({name:i,image:r,cpus:o,memory:a}))};await JM(dp(e),Tb.default.stringify(n)),console.log(`Exported secret-free manifest to ${dp(e)}.`)}async function gL(e,t,n){let i=vR.parse(Tb.default.parse(await VM(dp(e),"utf8"))),r=st();await wt(r,async()=>{let o=await qe(r),a=bR(o.config,i,n),s=a.trashes;if(console.log(JSON.stringify({create:a.creates.map(({name:c})=>c),update:a.updates.map(({name:c})=>c),trash:s.map(({name:c})=>c),gatewayPort:a.gatewayPortChanged?i.gateway.port:"unchanged"},null,2)),!t){if(await Kr(),a.gatewayPortChanged){let c=o.config.gatewayPort;o.config.gatewayPort=i.gateway.port;try{await cS(o)}catch(l){throw o.config.gatewayPort=c,l}}o.config.gatewayPort=i.gateway.port;for(let c of i.computers){let l=o.config.computers.find(({name:u})=>u===c.name);l?(c.image&&(l.image=c.image),c.cpus&&(l.cpus=c.cpus),c.memory&&(l.memory=c.memory),await An(o.paths,l)):await Ob(o,c.name,{...c.image===void 0?{}:{image:c.image},...c.cpus===void 0?{}:{cpus:c.cpus},...c.memory===void 0?{}:{memory:c.memory}},!1)}for(let c of s)o.config.computers=o.config.computers.filter(({id:l})=>l!==c.id),delete o.secrets.computers[c.id],await An(o.paths,{...c,deletedAt:new Date().toISOString()});await Jr(o),await Zt(o);for(let c of s)await lS(c.id),await Eb(Fs(o.paths.computers,c.id),Fs(o.paths.trash,c.id));await Hr(o,!0),await Xi(o);for(let c of i.computers)await Gr(o,jt(o,c.name))}})}async function Ob(e,t,n,i=!0){let r=t?W_(t):SR(e.config);if(e.config.computers.some(a=>a.name===r))throw new Error(`Computer name ${r} is already in use.`);let o=Ju.parse({id:UM(),name:r,image:n.image??e.config.defaults.image,cpus:n.cpus??e.config.defaults.cpus,memory:n.memory??e.config.defaults.memory,createdAt:new Date().toISOString()});return e.config.computers.push(o),e.secrets.computers[o.id]=Ku(),await An(e.paths,o),i&&await Jr(e),o}function jt(e,t){let n=e.config.computers.find(({name:i,id:r})=>i===t||r===t);if(!n)throw new Error(`Computer ${t} was not found.`);return n}function bo(e,t){let n=`http://127.0.0.1:${e.config.gatewayPort}/computers/${t.id}`;return{mcp:`${n}/mcp`,openapi:`${n}/openapi.json`,view:`${n}/view`,health:`${n}/health`}}function xb(e,t){console.log(JSON.stringify({name:t.name,id:t.id,...bo(e,t),token:e.secrets.computers[t.id].token,stdio:`qubicl mcp ${t.name}`},null,2))}async function vL(e){let t=process.platform;await aS(t==="darwin"?"open":t==="win32"?"cmd":"xdg-open",t==="win32"?["/c","start","",e]:[e],{allowFailure:!1})}function Xe(e,t){if(!e)throw new Error(`Missing ${t}.`);return e}function Vs(e){return e instanceof Error?e.message:String(e)}var yL={help:{minPositionals:0,maxPositionals:0},version:{minPositionals:0,maxPositionals:0},init:{minPositionals:0,maxPositionals:0,options:["empty"]},up:{minPositionals:0,maxPositionals:0},down:{minPositionals:0,maxPositionals:0},create:{minPositionals:0,maxPositionals:1,options:["image","cpus","memory"]},list:{minPositionals:0,maxPositionals:0},status:{minPositionals:0,maxPositionals:1},inspect:{minPositionals:1,maxPositionals:1},logs:{minPositionals:0,maxPositionals:1},doctor:{minPositionals:0,maxPositionals:0},start:{minPositionals:1,maxPositionals:1},stop:{minPositionals:1,maxPositionals:1},restart:{minPositionals:1,maxPositionals:1},rename:{minPositionals:2,maxPositionals:2},delete:{minPositionals:1,maxPositionals:1},restore:{minPositionals:1,maxPositionals:1},purge:{minPositionals:1,maxPositionals:1,options:["yes"]},view:{minPositionals:1,maxPositionals:1,options:["no-open"]},connect:{minPositionals:1,maxPositionals:1,options:["client"]},mcp:{minPositionals:1,maxPositionals:1},token:{minPositionals:2,maxPositionals:2},image:{minPositionals:1,maxPositionals:3},export:{minPositionals:0,maxPositionals:0,options:["output"]},apply:{minPositionals:1,maxPositionals:1,options:["dry-run","prune"]}};function _L(e,t){let n=e??"help",i=yL[n];if(!i)throw new Error(`Unknown command ${n}. Run qubicl help.`);let r=new Set([...i.options??[],"help"]);for(let o of t.options.keys())if(!r.has(o))throw new Error(`Command ${n} does not accept --${o}.`);if(!br(t,"help")){if(t.positionals.length<i.minPositionals)throw new Error(`Command ${n} is missing required arguments. Run qubicl help.`);if(t.positionals.length>i.maxPositionals)throw new Error(`Command ${n} received too many arguments. Run qubicl help.`)}}var RP=`Qubicl \u2014 private Docker computers for any compatible LLM
|
|
216
|
+
|
|
217
|
+
Usage: qubicl <command> [arguments]
|
|
218
|
+
|
|
219
|
+
version Print build version and revision
|
|
220
|
+
init [--empty] Initialize and start Qubicl
|
|
221
|
+
up | down Start or stop all resources
|
|
222
|
+
create [name] [--image ref] [--cpus n] [--memory 4g]
|
|
223
|
+
Create and start a computer
|
|
224
|
+
list | status [name] | inspect <name> Inspect runtime state
|
|
225
|
+
logs [name] | doctor Diagnose Qubicl
|
|
226
|
+
start|stop|restart <name> Manage one computer
|
|
227
|
+
rename <old> <new> Rename without changing identity
|
|
228
|
+
delete <name> Move a computer to recoverable trash
|
|
229
|
+
restore <name-or-id> Restore with a new token
|
|
230
|
+
purge <name-or-id> [--yes] Permanently delete trashed data
|
|
231
|
+
view <name> [--no-open] Open the interactive desktop
|
|
232
|
+
connect <name> --client <client> Print generic, MCP, OpenAPI, or stdio config
|
|
233
|
+
mcp <name> Serve an MCP stdio bridge
|
|
234
|
+
token show|rotate <name> Manage bearer tokens
|
|
235
|
+
image build <tag> <directory> Build a custom computer image
|
|
236
|
+
export [--output qubicl.yaml] Export a secret-free manifest
|
|
237
|
+
apply <file> [--dry-run] [--prune] Reconcile a manifest`;var[Zs,...SL]=process.argv.slice(2),bL=Zs==="--help"||Zs==="-h"?"help":Zs==="--version"||Zs==="-V"?"version":Zs;IP(bL,Ab(SL)).catch(e=>{console.error(`qubicl: ${e instanceof Error?e.message:String(e)}`),process.exitCode=1});
|
|
238
|
+
/*! Bundled license information:
|
|
239
|
+
|
|
240
|
+
@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs:
|
|
241
|
+
(*!
|
|
242
|
+
* content-type
|
|
243
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
244
|
+
* MIT Licensed
|
|
245
|
+
*)
|
|
246
|
+
*/
|