@autodevjapan/godd-mcp-alpha 1.2.8 → 1.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/godd.cjs +102 -103
  2. package/package.json +1 -1
package/dist/godd.cjs CHANGED
@@ -1,31 +1,31 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var AT=Object.create;var qp=Object.defineProperty;var RT=Object.getOwnPropertyDescriptor;var MT=Object.getOwnPropertyNames;var LT=Object.getPrototypeOf,UT=Object.prototype.hasOwnProperty;var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ur=(e,t)=>{for(var r in t)qp(e,r,{get:t[r],enumerable:!0})},qT=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of MT(t))!UT.call(e,n)&&n!==r&&qp(e,n,{get:()=>t[n],enumerable:!(i=RT(t,n))||i.enumerable});return e};var hc=(e,t,r)=>(r=e!=null?AT(LT(e)):{},qT(t||!e||!e.__esModule?qp(r,"default",{value:e,enumerable:!0}):r,e));var ia=v(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.regexpCode=pe.getEsmExportName=pe.getProperty=pe.safeStringify=pe.stringify=pe.strConcat=pe.addCodeArg=pe.str=pe._=pe.nil=pe._Code=pe.Name=pe.IDENTIFIER=pe._CodeOrName=void 0;var ra=class{};pe._CodeOrName=ra;pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Cn=class extends ra{constructor(t){if(super(),!pe.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};pe.Name=Cn;var Et=class extends ra{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,i)=>`${r}${i}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,i)=>(i instanceof Cn&&(r[i.str]=(r[i.str]||0)+1),r),{})}};pe._Code=Et;pe.nil=new Et("");function Ix(e,...t){let r=[e[0]],i=0;for(;i<t.length;)py(r,t[i]),r.push(e[++i]);return new Et(r)}pe._=Ix;var fy=new Et("+");function zx(e,...t){let r=[na(e[0])],i=0;for(;i<t.length;)r.push(fy),py(r,t[i]),r.push(fy,na(e[++i]));return PC(r),new Et(r)}pe.str=zx;function py(e,t){t instanceof Et?e.push(...t._items):t instanceof Cn?e.push(t):e.push(NC(t))}pe.addCodeArg=py;function PC(e){let t=1;for(;t<e.length-1;){if(e[t]===fy){let r=TC(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function TC(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Cn||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Cn))return`"${e}${t.slice(1)}`}function EC(e,t){return t.emptyStr()?e:e.emptyStr()?t:zx`${e}${t}`}pe.strConcat=EC;function NC(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:na(Array.isArray(e)?e.join(","):e)}function OC(e){return new Et(na(e))}pe.stringify=OC;function na(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}pe.safeStringify=na;function jC(e){return typeof e=="string"&&pe.IDENTIFIER.test(e)?new Et(`.${e}`):Ix`[${e}]`}pe.getProperty=jC;function CC(e){if(typeof e=="string"&&pe.IDENTIFIER.test(e))return new Et(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}pe.getEsmExportName=CC;function DC(e){return new Et(e.toString())}pe.regexpCode=DC});var hy=v(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.ValueScope=mt.ValueScopeName=mt.Scope=mt.varKinds=mt.UsedValueState=void 0;var pt=ia(),my=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Rd;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Rd||(mt.UsedValueState=Rd={}));mt.varKinds={const:new pt.Name("const"),let:new pt.Name("let"),var:new pt.Name("var")};var Md=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof pt.Name?t:this.name(t)}name(t){return new pt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,i;if(!((i=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||i===void 0)&&i.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};mt.Scope=Md;var Ld=class extends pt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:i}){this.value=t,this.scopePath=(0,pt._)`.${new pt.Name(r)}[${i}]`}};mt.ValueScopeName=Ld;var AC=(0,pt._)`\n`,gy=class extends Md{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?AC:pt.nil}}get(){return this._scope}name(t){return new Ld(t,this._newName(t))}value(t,r){var i;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(t),{prefix:o}=n,s=(i=r.key)!==null&&i!==void 0?i:r.ref,a=this._values[o];if(a){let u=a.get(s);if(u)return u}else a=this._values[o]=new Map;a.set(s,n);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,n.setValue(r,{property:o,itemIndex:l}),n}getValue(t,r){let i=this._values[t];if(i)return i.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,pt._)`${t}${i.scopePath}`})}scopeCode(t=this._values,r,i){return this._reduceValues(t,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,i)}_reduceValues(t,r,i={},n){let o=pt.nil;for(let s in t){let a=t[s];if(!a)continue;let c=i[s]=i[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,Rd.Started);let u=r(l);if(u){let d=this.opts.es5?mt.varKinds.var:mt.varKinds.const;o=(0,pt._)`${o}${d} ${l} = ${u};${this.opts._n}`}else if(u=n?.(l))o=(0,pt._)`${o}${u}${this.opts._n}`;else throw new my(l);c.set(l,Rd.Completed)})}return o}};mt.ValueScope=gy});var te=v(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.or=ie.and=ie.not=ie.CodeGen=ie.operators=ie.varKinds=ie.ValueScopeName=ie.ValueScope=ie.Scope=ie.Name=ie.regexpCode=ie.stringify=ie.getProperty=ie.nil=ie.strConcat=ie.str=ie._=void 0;var ce=ia(),qt=hy(),Br=ia();Object.defineProperty(ie,"_",{enumerable:!0,get:function(){return Br._}});Object.defineProperty(ie,"str",{enumerable:!0,get:function(){return Br.str}});Object.defineProperty(ie,"strConcat",{enumerable:!0,get:function(){return Br.strConcat}});Object.defineProperty(ie,"nil",{enumerable:!0,get:function(){return Br.nil}});Object.defineProperty(ie,"getProperty",{enumerable:!0,get:function(){return Br.getProperty}});Object.defineProperty(ie,"stringify",{enumerable:!0,get:function(){return Br.stringify}});Object.defineProperty(ie,"regexpCode",{enumerable:!0,get:function(){return Br.regexpCode}});Object.defineProperty(ie,"Name",{enumerable:!0,get:function(){return Br.Name}});var Fd=hy();Object.defineProperty(ie,"Scope",{enumerable:!0,get:function(){return Fd.Scope}});Object.defineProperty(ie,"ValueScope",{enumerable:!0,get:function(){return Fd.ValueScope}});Object.defineProperty(ie,"ValueScopeName",{enumerable:!0,get:function(){return Fd.ValueScopeName}});Object.defineProperty(ie,"varKinds",{enumerable:!0,get:function(){return Fd.varKinds}});ie.operators={GT:new ce._Code(">"),GTE:new ce._Code(">="),LT:new ce._Code("<"),LTE:new ce._Code("<="),EQ:new ce._Code("==="),NEQ:new ce._Code("!=="),NOT:new ce._Code("!"),OR:new ce._Code("||"),AND:new ce._Code("&&"),ADD:new ce._Code("+")};var _r=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},yy=class extends _r{constructor(t,r,i){super(),this.varKind=t,this.name=r,this.rhs=i}render({es5:t,_n:r}){let i=t?qt.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Wi(this.rhs,t,r)),this}get names(){return this.rhs instanceof ce._CodeOrName?this.rhs.names:{}}},Ud=class extends _r{constructor(t,r,i){super(),this.lhs=t,this.rhs=r,this.sideEffects=i}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof ce.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Wi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ce.Name?{}:{...this.lhs.names};return Zd(t,this.rhs)}},vy=class extends Ud{constructor(t,r,i,n){super(t,i,n),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},_y=class extends _r{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},by=class extends _r{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},$y=class extends _r{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},ky=class extends _r{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Wi(this.code,t,r),this}get names(){return this.code instanceof ce._CodeOrName?this.code.names:{}}},oa=class extends _r{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,i)=>r+i.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let i=t[r].optimizeNodes();Array.isArray(i)?t.splice(r,1,...i):i?t[r]=i:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:i}=this,n=i.length;for(;n--;){let o=i[n];o.optimizeNames(t,r)||(RC(t,o.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Rn(t,r.names),{})}},br=class extends oa{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Sy=class extends oa{},Hi=class extends br{};Hi.kind="else";var Dn=class e extends br{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let i=r.optimizeNodes();r=this.else=Array.isArray(i)?new Hi(i):i}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(Px(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var i;if(this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Wi(this.condition,t,r),this}get names(){let t=super.names;return Zd(t,this.condition),this.else&&Rn(t,this.else.names),t}};Dn.kind="if";var An=class extends br{};An.kind="for";var xy=class extends An{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Wi(this.iteration,t,r),this}get names(){return Rn(super.names,this.iteration.names)}},wy=class extends An{constructor(t,r,i,n){super(),this.varKind=t,this.name=r,this.from=i,this.to=n}render(t){let r=t.es5?qt.varKinds.var:this.varKind,{name:i,from:n,to:o}=this;return`for(${r} ${i}=${n}; ${i}<${o}; ${i}++)`+super.render(t)}get names(){let t=Zd(super.names,this.from);return Zd(t,this.to)}},qd=class extends An{constructor(t,r,i,n){super(),this.loop=t,this.varKind=r,this.name=i,this.iterable=n}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Wi(this.iterable,t,r),this}get names(){return Rn(super.names,this.iterable.names)}},sa=class extends br{constructor(t,r,i){super(),this.name=t,this.args=r,this.async=i}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};sa.kind="func";var aa=class extends oa{render(t){return"return "+super.render(t)}};aa.kind="return";var Iy=class extends br{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var i,n;return super.optimizeNames(t,r),(i=this.catch)===null||i===void 0||i.optimizeNames(t,r),(n=this.finally)===null||n===void 0||n.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Rn(t,this.catch.names),this.finally&&Rn(t,this.finally.names),t}},ca=class extends br{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};ca.kind="catch";var la=class extends br{render(t){return"finally"+super.render(t)}};la.kind="finally";var zy=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
3
- `:""},this._extScope=t,this._scope=new qt.Scope({parent:t}),this._nodes=[new Sy]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let i=this._extScope.value(t,r);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,i,n){let o=this._scope.toName(r);return i!==void 0&&n&&(this._constants[o.str]=i),this._leafNode(new yy(t,o,i)),o}const(t,r,i){return this._def(qt.varKinds.const,t,r,i)}let(t,r,i){return this._def(qt.varKinds.let,t,r,i)}var(t,r,i){return this._def(qt.varKinds.var,t,r,i)}assign(t,r,i){return this._leafNode(new Ud(t,r,i))}add(t,r){return this._leafNode(new vy(t,ie.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ce.nil&&this._leafNode(new ky(t)),this}object(...t){let r=["{"];for(let[i,n]of t)r.length>1&&r.push(","),r.push(i),(i!==n||this.opts.es5)&&(r.push(":"),(0,ce.addCodeArg)(r,n));return r.push("}"),new ce._Code(r)}if(t,r,i){if(this._blockNode(new Dn(t)),r&&i)this.code(r).else().code(i).endIf();else if(r)this.code(r).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Dn(t))}else(){return this._elseNode(new Hi)}endIf(){return this._endBlockNode(Dn,Hi)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new xy(t),r)}forRange(t,r,i,n,o=this.opts.es5?qt.varKinds.var:qt.varKinds.let){let s=this._scope.toName(t);return this._for(new wy(o,s,r,i),()=>n(s))}forOf(t,r,i,n=qt.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let s=r instanceof ce.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ce._)`${s}.length`,a=>{this.var(o,(0,ce._)`${s}[${a}]`),i(o)})}return this._for(new qd("of",n,o,r),()=>i(o))}forIn(t,r,i,n=this.opts.es5?qt.varKinds.var:qt.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ce._)`Object.keys(${r})`,i);let o=this._scope.toName(t);return this._for(new qd("in",n,o,r),()=>i(o))}endFor(){return this._endBlockNode(An)}label(t){return this._leafNode(new _y(t))}break(t){return this._leafNode(new by(t))}return(t){let r=new aa;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(aa)}try(t,r,i){if(!r&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new Iy;if(this._blockNode(n),this.code(t),r){let o=this.name("e");this._currNode=n.catch=new ca(o),r(o)}return i&&(this._currNode=n.finally=new la,this.code(i)),this._endBlockNode(ca,la)}throw(t){return this._leafNode(new $y(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-r;if(i<0||t!==void 0&&i!==t)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=ce.nil,i,n){return this._blockNode(new sa(t,r,i)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(sa)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let i=this._currNode;if(i instanceof t||r&&i instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Dn))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};ie.CodeGen=zy;function Rn(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Zd(e,t){return t instanceof ce._CodeOrName?Rn(e,t.names):e}function Wi(e,t,r){if(e instanceof ce.Name)return i(e);if(!n(e))return e;return new ce._Code(e._items.reduce((o,s)=>(s instanceof ce.Name&&(s=i(s)),s instanceof ce._Code?o.push(...s._items):o.push(s),o),[]));function i(o){let s=r[o.str];return s===void 0||t[o.str]!==1?o:(delete t[o.str],s)}function n(o){return o instanceof ce._Code&&o._items.some(s=>s instanceof ce.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function RC(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function Px(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ce._)`!${Py(e)}`}ie.not=Px;var MC=Tx(ie.operators.AND);function LC(...e){return e.reduce(MC)}ie.and=LC;var UC=Tx(ie.operators.OR);function qC(...e){return e.reduce(UC)}ie.or=qC;function Tx(e){return(t,r)=>t===ce.nil?r:r===ce.nil?t:(0,ce._)`${Py(t)} ${e} ${Py(r)}`}function Py(e){return e instanceof ce.Name?e:(0,ce._)`(${e})`}});var le=v(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.checkStrictMode=oe.getErrorPath=oe.Type=oe.useFunc=oe.setEvaluated=oe.evaluatedPropsToName=oe.mergeEvaluated=oe.eachItem=oe.unescapeJsonPointer=oe.escapeJsonPointer=oe.escapeFragment=oe.unescapeFragment=oe.schemaRefOrVal=oe.schemaHasRulesButRef=oe.schemaHasRules=oe.checkUnknownRules=oe.alwaysValidSchema=oe.toHash=void 0;var we=te(),ZC=ia();function FC(e){let t={};for(let r of e)t[r]=!0;return t}oe.toHash=FC;function VC(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Ox(e,t),!jx(t,e.self.RULES.all))}oe.alwaysValidSchema=VC;function Ox(e,t=e.schema){let{opts:r,self:i}=e;if(!r.strictSchema||typeof t=="boolean")return;let n=i.RULES.keywords;for(let o in t)n[o]||Ax(e,`unknown keyword: "${o}"`)}oe.checkUnknownRules=Ox;function jx(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}oe.schemaHasRules=jx;function KC(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}oe.schemaHasRulesButRef=KC;function GC({topSchemaRef:e,schemaPath:t},r,i,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,we._)`${r}`}return(0,we._)`${e}${t}${(0,we.getProperty)(i)}`}oe.schemaRefOrVal=GC;function BC(e){return Cx(decodeURIComponent(e))}oe.unescapeFragment=BC;function JC(e){return encodeURIComponent(Ey(e))}oe.escapeFragment=JC;function Ey(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}oe.escapeJsonPointer=Ey;function Cx(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}oe.unescapeJsonPointer=Cx;function HC(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}oe.eachItem=HC;function Ex({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:i}){return(n,o,s,a)=>{let c=s===void 0?o:s instanceof we.Name?(o instanceof we.Name?e(n,o,s):t(n,o,s),s):o instanceof we.Name?(t(n,s,o),o):r(o,s);return a===we.Name&&!(c instanceof we.Name)?i(n,c):c}}oe.mergeEvaluated={props:Ex({mergeNames:(e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,we._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,we._)`${r} || {}`).code((0,we._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,we._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,we._)`${r} || {}`),Ny(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Dx}),items:Ex({mergeNames:(e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,we._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,we._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,we._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Dx(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,we._)`{}`);return t!==void 0&&Ny(e,r,t),r}oe.evaluatedPropsToName=Dx;function Ny(e,t,r){Object.keys(r).forEach(i=>e.assign((0,we._)`${t}${(0,we.getProperty)(i)}`,!0))}oe.setEvaluated=Ny;var Nx={};function WC(e,t){return e.scopeValue("func",{ref:t,code:Nx[t.code]||(Nx[t.code]=new ZC._Code(t.code))})}oe.useFunc=WC;var Ty;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ty||(oe.Type=Ty={}));function YC(e,t,r){if(e instanceof we.Name){let i=t===Ty.Num;return r?i?(0,we._)`"[" + ${e} + "]"`:(0,we._)`"['" + ${e} + "']"`:i?(0,we._)`"/" + ${e}`:(0,we._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,we.getProperty)(e).toString():"/"+Ey(e)}oe.getErrorPath=YC;function Ax(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}oe.checkStrictMode=Ax});var $r=v(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var et=te(),QC={data:new et.Name("data"),valCxt:new et.Name("valCxt"),instancePath:new et.Name("instancePath"),parentData:new et.Name("parentData"),parentDataProperty:new et.Name("parentDataProperty"),rootData:new et.Name("rootData"),dynamicAnchors:new et.Name("dynamicAnchors"),vErrors:new et.Name("vErrors"),errors:new et.Name("errors"),this:new et.Name("this"),self:new et.Name("self"),scope:new et.Name("scope"),json:new et.Name("json"),jsonPos:new et.Name("jsonPos"),jsonLen:new et.Name("jsonLen"),jsonPart:new et.Name("jsonPart")};Oy.default=QC});var ua=v(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.extendErrors=tt.resetErrorsCount=tt.reportExtraError=tt.reportError=tt.keyword$DataError=tt.keywordError=void 0;var ue=te(),Vd=le(),st=$r();tt.keywordError={message:({keyword:e})=>(0,ue.str)`must pass "${e}" keyword validation`};tt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,ue.str)`"${e}" keyword must be ${t} ($data)`:(0,ue.str)`"${e}" keyword is invalid ($data)`};function XC(e,t=tt.keywordError,r,i){let{it:n}=e,{gen:o,compositeRule:s,allErrors:a}=n,c=Lx(e,t,r);i??(s||a)?Rx(o,c):Mx(n,(0,ue._)`[${c}]`)}tt.reportError=XC;function e1(e,t=tt.keywordError,r){let{it:i}=e,{gen:n,compositeRule:o,allErrors:s}=i,a=Lx(e,t,r);Rx(n,a),o||s||Mx(i,st.default.vErrors)}tt.reportExtraError=e1;function t1(e,t){e.assign(st.default.errors,t),e.if((0,ue._)`${st.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ue._)`${st.default.vErrors}.length`,t),()=>e.assign(st.default.vErrors,null)))}tt.resetErrorsCount=t1;function r1({gen:e,keyword:t,schemaValue:r,data:i,errsCount:n,it:o}){if(n===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",n,st.default.errors,a=>{e.const(s,(0,ue._)`${st.default.vErrors}[${a}]`),e.if((0,ue._)`${s}.instancePath === undefined`,()=>e.assign((0,ue._)`${s}.instancePath`,(0,ue.strConcat)(st.default.instancePath,o.errorPath))),e.assign((0,ue._)`${s}.schemaPath`,(0,ue.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,ue._)`${s}.schema`,r),e.assign((0,ue._)`${s}.data`,i))})}tt.extendErrors=r1;function Rx(e,t){let r=e.const("err",t);e.if((0,ue._)`${st.default.vErrors} === null`,()=>e.assign(st.default.vErrors,(0,ue._)`[${r}]`),(0,ue._)`${st.default.vErrors}.push(${r})`),e.code((0,ue._)`${st.default.errors}++`)}function Mx(e,t){let{gen:r,validateName:i,schemaEnv:n}=e;n.$async?r.throw((0,ue._)`new ${e.ValidationError}(${t})`):(r.assign((0,ue._)`${i}.errors`,t),r.return(!1))}var Mn={keyword:new ue.Name("keyword"),schemaPath:new ue.Name("schemaPath"),params:new ue.Name("params"),propertyName:new ue.Name("propertyName"),message:new ue.Name("message"),schema:new ue.Name("schema"),parentSchema:new ue.Name("parentSchema")};function Lx(e,t,r){let{createErrors:i}=e.it;return i===!1?(0,ue._)`{}`:n1(e,t,r)}function n1(e,t,r={}){let{gen:i,it:n}=e,o=[i1(n,r),o1(e,r)];return s1(e,t,o),i.object(...o)}function i1({errorPath:e},{instancePath:t}){let r=t?(0,ue.str)`${e}${(0,Vd.getErrorPath)(t,Vd.Type.Str)}`:e;return[st.default.instancePath,(0,ue.strConcat)(st.default.instancePath,r)]}function o1({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:i}){let n=i?t:(0,ue.str)`${t}/${e}`;return r&&(n=(0,ue.str)`${n}${(0,Vd.getErrorPath)(r,Vd.Type.Str)}`),[Mn.schemaPath,n]}function s1(e,{params:t,message:r},i){let{keyword:n,data:o,schemaValue:s,it:a}=e,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:d}=a;i.push([Mn.keyword,n],[Mn.params,typeof t=="function"?t(e):t||(0,ue._)`{}`]),c.messages&&i.push([Mn.message,typeof r=="function"?r(e):r]),c.verbose&&i.push([Mn.schema,s],[Mn.parentSchema,(0,ue._)`${u}${d}`],[st.default.data,o]),l&&i.push([Mn.propertyName,l])}});var qx=v(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.boolOrEmptySchema=Yi.topBoolOrEmptySchema=void 0;var a1=ua(),c1=te(),l1=$r(),u1={message:"boolean schema is false"};function d1(e){let{gen:t,schema:r,validateName:i}=e;r===!1?Ux(e,!1):typeof r=="object"&&r.$async===!0?t.return(l1.default.data):(t.assign((0,c1._)`${i}.errors`,null),t.return(!0))}Yi.topBoolOrEmptySchema=d1;function f1(e,t){let{gen:r,schema:i}=e;i===!1?(r.var(t,!1),Ux(e)):r.var(t,!0)}Yi.boolOrEmptySchema=f1;function Ux(e,t){let{gen:r,data:i}=e,n={gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,a1.reportError)(n,u1,void 0,t)}});var jy=v(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.getRules=Qi.isJSONType=void 0;var p1=["string","number","integer","boolean","null","object","array"],m1=new Set(p1);function g1(e){return typeof e=="string"&&m1.has(e)}Qi.isJSONType=g1;function h1(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Qi.getRules=h1});var Cy=v(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.shouldUseRule=Jr.shouldUseGroup=Jr.schemaHasRulesForType=void 0;function y1({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&Zx(e,i)}Jr.schemaHasRulesForType=y1;function Zx(e,t){return t.rules.some(r=>Fx(e,r))}Jr.shouldUseGroup=Zx;function Fx(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(i=>e[i]!==void 0))}Jr.shouldUseRule=Fx});var da=v(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.reportTypeError=rt.checkDataTypes=rt.checkDataType=rt.coerceAndCheckDataType=rt.getJSONTypes=rt.getSchemaTypes=rt.DataType=void 0;var v1=jy(),_1=Cy(),b1=ua(),X=te(),Vx=le(),Xi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Xi||(rt.DataType=Xi={}));function $1(e){let t=Kx(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}rt.getSchemaTypes=$1;function Kx(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(v1.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}rt.getJSONTypes=Kx;function k1(e,t){let{gen:r,data:i,opts:n}=e,o=S1(t,n.coerceTypes),s=t.length>0&&!(o.length===0&&t.length===1&&(0,_1.schemaHasRulesForType)(e,t[0]));if(s){let a=Ay(t,i,n.strictNumbers,Xi.Wrong);r.if(a,()=>{o.length?x1(e,t,o):Ry(e)})}return s}rt.coerceAndCheckDataType=k1;var Gx=new Set(["string","number","integer","boolean","null"]);function S1(e,t){return t?e.filter(r=>Gx.has(r)||t==="array"&&r==="array"):[]}function x1(e,t,r){let{gen:i,data:n,opts:o}=e,s=i.let("dataType",(0,X._)`typeof ${n}`),a=i.let("coerced",(0,X._)`undefined`);o.coerceTypes==="array"&&i.if((0,X._)`${s} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>i.assign(n,(0,X._)`${n}[0]`).assign(s,(0,X._)`typeof ${n}`).if(Ay(t,n,o.strictNumbers),()=>i.assign(a,n))),i.if((0,X._)`${a} !== undefined`);for(let l of r)(Gx.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);i.else(),Ry(e),i.endIf(),i.if((0,X._)`${a} !== undefined`,()=>{i.assign(n,a),w1(e,a)});function c(l){switch(l){case"string":i.elseIf((0,X._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,X._)`"" + ${n}`).elseIf((0,X._)`${n} === null`).assign(a,(0,X._)`""`);return;case"number":i.elseIf((0,X._)`${s} == "boolean" || ${n} === null
2
+ "use strict";var RT=Object.create;var qp=Object.defineProperty;var MT=Object.getOwnPropertyDescriptor;var LT=Object.getOwnPropertyNames;var UT=Object.getPrototypeOf,qT=Object.prototype.hasOwnProperty;var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ur=(e,t)=>{for(var r in t)qp(e,r,{get:t[r],enumerable:!0})},ZT=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of LT(t))!qT.call(e,n)&&n!==r&&qp(e,n,{get:()=>t[n],enumerable:!(i=MT(t,n))||i.enumerable});return e};var Eo=(e,t,r)=>(r=e!=null?RT(UT(e)):{},ZT(t||!e||!e.__esModule?qp(r,"default",{value:e,enumerable:!0}):r,e));var oa=v(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.regexpCode=pe.getEsmExportName=pe.getProperty=pe.safeStringify=pe.stringify=pe.strConcat=pe.addCodeArg=pe.str=pe._=pe.nil=pe._Code=pe.Name=pe.IDENTIFIER=pe._CodeOrName=void 0;var na=class{};pe._CodeOrName=na;pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Cn=class extends na{constructor(t){if(super(),!pe.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};pe.Name=Cn;var Et=class extends na{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,i)=>`${r}${i}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,i)=>(i instanceof Cn&&(r[i.str]=(r[i.str]||0)+1),r),{})}};pe._Code=Et;pe.nil=new Et("");function zx(e,...t){let r=[e[0]],i=0;for(;i<t.length;)py(r,t[i]),r.push(e[++i]);return new Et(r)}pe._=zx;var fy=new Et("+");function Px(e,...t){let r=[ia(e[0])],i=0;for(;i<t.length;)r.push(fy),py(r,t[i]),r.push(fy,ia(e[++i]));return TC(r),new Et(r)}pe.str=Px;function py(e,t){t instanceof Et?e.push(...t._items):t instanceof Cn?e.push(t):e.push(OC(t))}pe.addCodeArg=py;function TC(e){let t=1;for(;t<e.length-1;){if(e[t]===fy){let r=EC(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function EC(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Cn||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Cn))return`"${e}${t.slice(1)}`}function NC(e,t){return t.emptyStr()?e:e.emptyStr()?t:Px`${e}${t}`}pe.strConcat=NC;function OC(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ia(Array.isArray(e)?e.join(","):e)}function jC(e){return new Et(ia(e))}pe.stringify=jC;function ia(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}pe.safeStringify=ia;function CC(e){return typeof e=="string"&&pe.IDENTIFIER.test(e)?new Et(`.${e}`):zx`[${e}]`}pe.getProperty=CC;function DC(e){if(typeof e=="string"&&pe.IDENTIFIER.test(e))return new Et(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}pe.getEsmExportName=DC;function AC(e){return new Et(e.toString())}pe.regexpCode=AC});var hy=v(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.ValueScope=mt.ValueScopeName=mt.Scope=mt.varKinds=mt.UsedValueState=void 0;var pt=oa(),my=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Rd;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Rd||(mt.UsedValueState=Rd={}));mt.varKinds={const:new pt.Name("const"),let:new pt.Name("let"),var:new pt.Name("var")};var Md=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof pt.Name?t:this.name(t)}name(t){return new pt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,i;if(!((i=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||i===void 0)&&i.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};mt.Scope=Md;var Ld=class extends pt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:i}){this.value=t,this.scopePath=(0,pt._)`.${new pt.Name(r)}[${i}]`}};mt.ValueScopeName=Ld;var RC=(0,pt._)`\n`,gy=class extends Md{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?RC:pt.nil}}get(){return this._scope}name(t){return new Ld(t,this._newName(t))}value(t,r){var i;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(t),{prefix:o}=n,s=(i=r.key)!==null&&i!==void 0?i:r.ref,a=this._values[o];if(a){let u=a.get(s);if(u)return u}else a=this._values[o]=new Map;a.set(s,n);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,n.setValue(r,{property:o,itemIndex:l}),n}getValue(t,r){let i=this._values[t];if(i)return i.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,pt._)`${t}${i.scopePath}`})}scopeCode(t=this._values,r,i){return this._reduceValues(t,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,i)}_reduceValues(t,r,i={},n){let o=pt.nil;for(let s in t){let a=t[s];if(!a)continue;let c=i[s]=i[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,Rd.Started);let u=r(l);if(u){let d=this.opts.es5?mt.varKinds.var:mt.varKinds.const;o=(0,pt._)`${o}${d} ${l} = ${u};${this.opts._n}`}else if(u=n?.(l))o=(0,pt._)`${o}${u}${this.opts._n}`;else throw new my(l);c.set(l,Rd.Completed)})}return o}};mt.ValueScope=gy});var te=v(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.or=ie.and=ie.not=ie.CodeGen=ie.operators=ie.varKinds=ie.ValueScopeName=ie.ValueScope=ie.Scope=ie.Name=ie.regexpCode=ie.stringify=ie.getProperty=ie.nil=ie.strConcat=ie.str=ie._=void 0;var ce=oa(),qt=hy(),Br=oa();Object.defineProperty(ie,"_",{enumerable:!0,get:function(){return Br._}});Object.defineProperty(ie,"str",{enumerable:!0,get:function(){return Br.str}});Object.defineProperty(ie,"strConcat",{enumerable:!0,get:function(){return Br.strConcat}});Object.defineProperty(ie,"nil",{enumerable:!0,get:function(){return Br.nil}});Object.defineProperty(ie,"getProperty",{enumerable:!0,get:function(){return Br.getProperty}});Object.defineProperty(ie,"stringify",{enumerable:!0,get:function(){return Br.stringify}});Object.defineProperty(ie,"regexpCode",{enumerable:!0,get:function(){return Br.regexpCode}});Object.defineProperty(ie,"Name",{enumerable:!0,get:function(){return Br.Name}});var Fd=hy();Object.defineProperty(ie,"Scope",{enumerable:!0,get:function(){return Fd.Scope}});Object.defineProperty(ie,"ValueScope",{enumerable:!0,get:function(){return Fd.ValueScope}});Object.defineProperty(ie,"ValueScopeName",{enumerable:!0,get:function(){return Fd.ValueScopeName}});Object.defineProperty(ie,"varKinds",{enumerable:!0,get:function(){return Fd.varKinds}});ie.operators={GT:new ce._Code(">"),GTE:new ce._Code(">="),LT:new ce._Code("<"),LTE:new ce._Code("<="),EQ:new ce._Code("==="),NEQ:new ce._Code("!=="),NOT:new ce._Code("!"),OR:new ce._Code("||"),AND:new ce._Code("&&"),ADD:new ce._Code("+")};var _r=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},yy=class extends _r{constructor(t,r,i){super(),this.varKind=t,this.name=r,this.rhs=i}render({es5:t,_n:r}){let i=t?qt.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Wi(this.rhs,t,r)),this}get names(){return this.rhs instanceof ce._CodeOrName?this.rhs.names:{}}},Ud=class extends _r{constructor(t,r,i){super(),this.lhs=t,this.rhs=r,this.sideEffects=i}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof ce.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Wi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ce.Name?{}:{...this.lhs.names};return Zd(t,this.rhs)}},vy=class extends Ud{constructor(t,r,i,n){super(t,i,n),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},_y=class extends _r{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},by=class extends _r{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},$y=class extends _r{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},ky=class extends _r{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Wi(this.code,t,r),this}get names(){return this.code instanceof ce._CodeOrName?this.code.names:{}}},sa=class extends _r{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,i)=>r+i.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let i=t[r].optimizeNodes();Array.isArray(i)?t.splice(r,1,...i):i?t[r]=i:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:i}=this,n=i.length;for(;n--;){let o=i[n];o.optimizeNames(t,r)||(MC(t,o.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Rn(t,r.names),{})}},br=class extends sa{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Sy=class extends sa{},Hi=class extends br{};Hi.kind="else";var Dn=class e extends br{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let i=r.optimizeNodes();r=this.else=Array.isArray(i)?new Hi(i):i}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(Tx(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var i;if(this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Wi(this.condition,t,r),this}get names(){let t=super.names;return Zd(t,this.condition),this.else&&Rn(t,this.else.names),t}};Dn.kind="if";var An=class extends br{};An.kind="for";var xy=class extends An{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Wi(this.iteration,t,r),this}get names(){return Rn(super.names,this.iteration.names)}},wy=class extends An{constructor(t,r,i,n){super(),this.varKind=t,this.name=r,this.from=i,this.to=n}render(t){let r=t.es5?qt.varKinds.var:this.varKind,{name:i,from:n,to:o}=this;return`for(${r} ${i}=${n}; ${i}<${o}; ${i}++)`+super.render(t)}get names(){let t=Zd(super.names,this.from);return Zd(t,this.to)}},qd=class extends An{constructor(t,r,i,n){super(),this.loop=t,this.varKind=r,this.name=i,this.iterable=n}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Wi(this.iterable,t,r),this}get names(){return Rn(super.names,this.iterable.names)}},aa=class extends br{constructor(t,r,i){super(),this.name=t,this.args=r,this.async=i}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};aa.kind="func";var ca=class extends sa{render(t){return"return "+super.render(t)}};ca.kind="return";var Iy=class extends br{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var i,n;return super.optimizeNames(t,r),(i=this.catch)===null||i===void 0||i.optimizeNames(t,r),(n=this.finally)===null||n===void 0||n.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Rn(t,this.catch.names),this.finally&&Rn(t,this.finally.names),t}},la=class extends br{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};la.kind="catch";var ua=class extends br{render(t){return"finally"+super.render(t)}};ua.kind="finally";var zy=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
3
+ `:""},this._extScope=t,this._scope=new qt.Scope({parent:t}),this._nodes=[new Sy]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let i=this._extScope.value(t,r);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,i,n){let o=this._scope.toName(r);return i!==void 0&&n&&(this._constants[o.str]=i),this._leafNode(new yy(t,o,i)),o}const(t,r,i){return this._def(qt.varKinds.const,t,r,i)}let(t,r,i){return this._def(qt.varKinds.let,t,r,i)}var(t,r,i){return this._def(qt.varKinds.var,t,r,i)}assign(t,r,i){return this._leafNode(new Ud(t,r,i))}add(t,r){return this._leafNode(new vy(t,ie.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ce.nil&&this._leafNode(new ky(t)),this}object(...t){let r=["{"];for(let[i,n]of t)r.length>1&&r.push(","),r.push(i),(i!==n||this.opts.es5)&&(r.push(":"),(0,ce.addCodeArg)(r,n));return r.push("}"),new ce._Code(r)}if(t,r,i){if(this._blockNode(new Dn(t)),r&&i)this.code(r).else().code(i).endIf();else if(r)this.code(r).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Dn(t))}else(){return this._elseNode(new Hi)}endIf(){return this._endBlockNode(Dn,Hi)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new xy(t),r)}forRange(t,r,i,n,o=this.opts.es5?qt.varKinds.var:qt.varKinds.let){let s=this._scope.toName(t);return this._for(new wy(o,s,r,i),()=>n(s))}forOf(t,r,i,n=qt.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let s=r instanceof ce.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ce._)`${s}.length`,a=>{this.var(o,(0,ce._)`${s}[${a}]`),i(o)})}return this._for(new qd("of",n,o,r),()=>i(o))}forIn(t,r,i,n=this.opts.es5?qt.varKinds.var:qt.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ce._)`Object.keys(${r})`,i);let o=this._scope.toName(t);return this._for(new qd("in",n,o,r),()=>i(o))}endFor(){return this._endBlockNode(An)}label(t){return this._leafNode(new _y(t))}break(t){return this._leafNode(new by(t))}return(t){let r=new ca;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ca)}try(t,r,i){if(!r&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new Iy;if(this._blockNode(n),this.code(t),r){let o=this.name("e");this._currNode=n.catch=new la(o),r(o)}return i&&(this._currNode=n.finally=new ua,this.code(i)),this._endBlockNode(la,ua)}throw(t){return this._leafNode(new $y(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-r;if(i<0||t!==void 0&&i!==t)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=ce.nil,i,n){return this._blockNode(new aa(t,r,i)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(aa)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let i=this._currNode;if(i instanceof t||r&&i instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Dn))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};ie.CodeGen=zy;function Rn(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Zd(e,t){return t instanceof ce._CodeOrName?Rn(e,t.names):e}function Wi(e,t,r){if(e instanceof ce.Name)return i(e);if(!n(e))return e;return new ce._Code(e._items.reduce((o,s)=>(s instanceof ce.Name&&(s=i(s)),s instanceof ce._Code?o.push(...s._items):o.push(s),o),[]));function i(o){let s=r[o.str];return s===void 0||t[o.str]!==1?o:(delete t[o.str],s)}function n(o){return o instanceof ce._Code&&o._items.some(s=>s instanceof ce.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function MC(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function Tx(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ce._)`!${Py(e)}`}ie.not=Tx;var LC=Ex(ie.operators.AND);function UC(...e){return e.reduce(LC)}ie.and=UC;var qC=Ex(ie.operators.OR);function ZC(...e){return e.reduce(qC)}ie.or=ZC;function Ex(e){return(t,r)=>t===ce.nil?r:r===ce.nil?t:(0,ce._)`${Py(t)} ${e} ${Py(r)}`}function Py(e){return e instanceof ce.Name?e:(0,ce._)`(${e})`}});var le=v(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.checkStrictMode=oe.getErrorPath=oe.Type=oe.useFunc=oe.setEvaluated=oe.evaluatedPropsToName=oe.mergeEvaluated=oe.eachItem=oe.unescapeJsonPointer=oe.escapeJsonPointer=oe.escapeFragment=oe.unescapeFragment=oe.schemaRefOrVal=oe.schemaHasRulesButRef=oe.schemaHasRules=oe.checkUnknownRules=oe.alwaysValidSchema=oe.toHash=void 0;var we=te(),FC=oa();function VC(e){let t={};for(let r of e)t[r]=!0;return t}oe.toHash=VC;function KC(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(jx(e,t),!Cx(t,e.self.RULES.all))}oe.alwaysValidSchema=KC;function jx(e,t=e.schema){let{opts:r,self:i}=e;if(!r.strictSchema||typeof t=="boolean")return;let n=i.RULES.keywords;for(let o in t)n[o]||Rx(e,`unknown keyword: "${o}"`)}oe.checkUnknownRules=jx;function Cx(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}oe.schemaHasRules=Cx;function GC(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}oe.schemaHasRulesButRef=GC;function BC({topSchemaRef:e,schemaPath:t},r,i,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,we._)`${r}`}return(0,we._)`${e}${t}${(0,we.getProperty)(i)}`}oe.schemaRefOrVal=BC;function JC(e){return Dx(decodeURIComponent(e))}oe.unescapeFragment=JC;function HC(e){return encodeURIComponent(Ey(e))}oe.escapeFragment=HC;function Ey(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}oe.escapeJsonPointer=Ey;function Dx(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}oe.unescapeJsonPointer=Dx;function WC(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}oe.eachItem=WC;function Nx({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:i}){return(n,o,s,a)=>{let c=s===void 0?o:s instanceof we.Name?(o instanceof we.Name?e(n,o,s):t(n,o,s),s):o instanceof we.Name?(t(n,s,o),o):r(o,s);return a===we.Name&&!(c instanceof we.Name)?i(n,c):c}}oe.mergeEvaluated={props:Nx({mergeNames:(e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,we._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,we._)`${r} || {}`).code((0,we._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,we._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,we._)`${r} || {}`),Ny(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Ax}),items:Nx({mergeNames:(e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,we._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,we._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,we._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Ax(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,we._)`{}`);return t!==void 0&&Ny(e,r,t),r}oe.evaluatedPropsToName=Ax;function Ny(e,t,r){Object.keys(r).forEach(i=>e.assign((0,we._)`${t}${(0,we.getProperty)(i)}`,!0))}oe.setEvaluated=Ny;var Ox={};function YC(e,t){return e.scopeValue("func",{ref:t,code:Ox[t.code]||(Ox[t.code]=new FC._Code(t.code))})}oe.useFunc=YC;var Ty;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ty||(oe.Type=Ty={}));function QC(e,t,r){if(e instanceof we.Name){let i=t===Ty.Num;return r?i?(0,we._)`"[" + ${e} + "]"`:(0,we._)`"['" + ${e} + "']"`:i?(0,we._)`"/" + ${e}`:(0,we._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,we.getProperty)(e).toString():"/"+Ey(e)}oe.getErrorPath=QC;function Rx(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}oe.checkStrictMode=Rx});var $r=v(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var et=te(),XC={data:new et.Name("data"),valCxt:new et.Name("valCxt"),instancePath:new et.Name("instancePath"),parentData:new et.Name("parentData"),parentDataProperty:new et.Name("parentDataProperty"),rootData:new et.Name("rootData"),dynamicAnchors:new et.Name("dynamicAnchors"),vErrors:new et.Name("vErrors"),errors:new et.Name("errors"),this:new et.Name("this"),self:new et.Name("self"),scope:new et.Name("scope"),json:new et.Name("json"),jsonPos:new et.Name("jsonPos"),jsonLen:new et.Name("jsonLen"),jsonPart:new et.Name("jsonPart")};Oy.default=XC});var da=v(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.extendErrors=tt.resetErrorsCount=tt.reportExtraError=tt.reportError=tt.keyword$DataError=tt.keywordError=void 0;var ue=te(),Vd=le(),st=$r();tt.keywordError={message:({keyword:e})=>(0,ue.str)`must pass "${e}" keyword validation`};tt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,ue.str)`"${e}" keyword must be ${t} ($data)`:(0,ue.str)`"${e}" keyword is invalid ($data)`};function e1(e,t=tt.keywordError,r,i){let{it:n}=e,{gen:o,compositeRule:s,allErrors:a}=n,c=Ux(e,t,r);i??(s||a)?Mx(o,c):Lx(n,(0,ue._)`[${c}]`)}tt.reportError=e1;function t1(e,t=tt.keywordError,r){let{it:i}=e,{gen:n,compositeRule:o,allErrors:s}=i,a=Ux(e,t,r);Mx(n,a),o||s||Lx(i,st.default.vErrors)}tt.reportExtraError=t1;function r1(e,t){e.assign(st.default.errors,t),e.if((0,ue._)`${st.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ue._)`${st.default.vErrors}.length`,t),()=>e.assign(st.default.vErrors,null)))}tt.resetErrorsCount=r1;function n1({gen:e,keyword:t,schemaValue:r,data:i,errsCount:n,it:o}){if(n===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",n,st.default.errors,a=>{e.const(s,(0,ue._)`${st.default.vErrors}[${a}]`),e.if((0,ue._)`${s}.instancePath === undefined`,()=>e.assign((0,ue._)`${s}.instancePath`,(0,ue.strConcat)(st.default.instancePath,o.errorPath))),e.assign((0,ue._)`${s}.schemaPath`,(0,ue.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,ue._)`${s}.schema`,r),e.assign((0,ue._)`${s}.data`,i))})}tt.extendErrors=n1;function Mx(e,t){let r=e.const("err",t);e.if((0,ue._)`${st.default.vErrors} === null`,()=>e.assign(st.default.vErrors,(0,ue._)`[${r}]`),(0,ue._)`${st.default.vErrors}.push(${r})`),e.code((0,ue._)`${st.default.errors}++`)}function Lx(e,t){let{gen:r,validateName:i,schemaEnv:n}=e;n.$async?r.throw((0,ue._)`new ${e.ValidationError}(${t})`):(r.assign((0,ue._)`${i}.errors`,t),r.return(!1))}var Mn={keyword:new ue.Name("keyword"),schemaPath:new ue.Name("schemaPath"),params:new ue.Name("params"),propertyName:new ue.Name("propertyName"),message:new ue.Name("message"),schema:new ue.Name("schema"),parentSchema:new ue.Name("parentSchema")};function Ux(e,t,r){let{createErrors:i}=e.it;return i===!1?(0,ue._)`{}`:i1(e,t,r)}function i1(e,t,r={}){let{gen:i,it:n}=e,o=[o1(n,r),s1(e,r)];return a1(e,t,o),i.object(...o)}function o1({errorPath:e},{instancePath:t}){let r=t?(0,ue.str)`${e}${(0,Vd.getErrorPath)(t,Vd.Type.Str)}`:e;return[st.default.instancePath,(0,ue.strConcat)(st.default.instancePath,r)]}function s1({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:i}){let n=i?t:(0,ue.str)`${t}/${e}`;return r&&(n=(0,ue.str)`${n}${(0,Vd.getErrorPath)(r,Vd.Type.Str)}`),[Mn.schemaPath,n]}function a1(e,{params:t,message:r},i){let{keyword:n,data:o,schemaValue:s,it:a}=e,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:d}=a;i.push([Mn.keyword,n],[Mn.params,typeof t=="function"?t(e):t||(0,ue._)`{}`]),c.messages&&i.push([Mn.message,typeof r=="function"?r(e):r]),c.verbose&&i.push([Mn.schema,s],[Mn.parentSchema,(0,ue._)`${u}${d}`],[st.default.data,o]),l&&i.push([Mn.propertyName,l])}});var Zx=v(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.boolOrEmptySchema=Yi.topBoolOrEmptySchema=void 0;var c1=da(),l1=te(),u1=$r(),d1={message:"boolean schema is false"};function f1(e){let{gen:t,schema:r,validateName:i}=e;r===!1?qx(e,!1):typeof r=="object"&&r.$async===!0?t.return(u1.default.data):(t.assign((0,l1._)`${i}.errors`,null),t.return(!0))}Yi.topBoolOrEmptySchema=f1;function p1(e,t){let{gen:r,schema:i}=e;i===!1?(r.var(t,!1),qx(e)):r.var(t,!0)}Yi.boolOrEmptySchema=p1;function qx(e,t){let{gen:r,data:i}=e,n={gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,c1.reportError)(n,d1,void 0,t)}});var jy=v(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.getRules=Qi.isJSONType=void 0;var m1=["string","number","integer","boolean","null","object","array"],g1=new Set(m1);function h1(e){return typeof e=="string"&&g1.has(e)}Qi.isJSONType=h1;function y1(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Qi.getRules=y1});var Cy=v(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.shouldUseRule=Jr.shouldUseGroup=Jr.schemaHasRulesForType=void 0;function v1({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&Fx(e,i)}Jr.schemaHasRulesForType=v1;function Fx(e,t){return t.rules.some(r=>Vx(e,r))}Jr.shouldUseGroup=Fx;function Vx(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(i=>e[i]!==void 0))}Jr.shouldUseRule=Vx});var fa=v(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.reportTypeError=rt.checkDataTypes=rt.checkDataType=rt.coerceAndCheckDataType=rt.getJSONTypes=rt.getSchemaTypes=rt.DataType=void 0;var _1=jy(),b1=Cy(),$1=da(),X=te(),Kx=le(),Xi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Xi||(rt.DataType=Xi={}));function k1(e){let t=Gx(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}rt.getSchemaTypes=k1;function Gx(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(_1.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}rt.getJSONTypes=Gx;function S1(e,t){let{gen:r,data:i,opts:n}=e,o=x1(t,n.coerceTypes),s=t.length>0&&!(o.length===0&&t.length===1&&(0,b1.schemaHasRulesForType)(e,t[0]));if(s){let a=Ay(t,i,n.strictNumbers,Xi.Wrong);r.if(a,()=>{o.length?w1(e,t,o):Ry(e)})}return s}rt.coerceAndCheckDataType=S1;var Bx=new Set(["string","number","integer","boolean","null"]);function x1(e,t){return t?e.filter(r=>Bx.has(r)||t==="array"&&r==="array"):[]}function w1(e,t,r){let{gen:i,data:n,opts:o}=e,s=i.let("dataType",(0,X._)`typeof ${n}`),a=i.let("coerced",(0,X._)`undefined`);o.coerceTypes==="array"&&i.if((0,X._)`${s} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>i.assign(n,(0,X._)`${n}[0]`).assign(s,(0,X._)`typeof ${n}`).if(Ay(t,n,o.strictNumbers),()=>i.assign(a,n))),i.if((0,X._)`${a} !== undefined`);for(let l of r)(Bx.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);i.else(),Ry(e),i.endIf(),i.if((0,X._)`${a} !== undefined`,()=>{i.assign(n,a),I1(e,a)});function c(l){switch(l){case"string":i.elseIf((0,X._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,X._)`"" + ${n}`).elseIf((0,X._)`${n} === null`).assign(a,(0,X._)`""`);return;case"number":i.elseIf((0,X._)`${s} == "boolean" || ${n} === null
4
4
  || (${s} == "string" && ${n} && ${n} == +${n})`).assign(a,(0,X._)`+${n}`);return;case"integer":i.elseIf((0,X._)`${s} === "boolean" || ${n} === null
5
5
  || (${s} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(a,(0,X._)`+${n}`);return;case"boolean":i.elseIf((0,X._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(a,!1).elseIf((0,X._)`${n} === "true" || ${n} === 1`).assign(a,!0);return;case"null":i.elseIf((0,X._)`${n} === "" || ${n} === 0 || ${n} === false`),i.assign(a,null);return;case"array":i.elseIf((0,X._)`${s} === "string" || ${s} === "number"
6
- || ${s} === "boolean" || ${n} === null`).assign(a,(0,X._)`[${n}]`)}}}function w1({gen:e,parentData:t,parentDataProperty:r},i){e.if((0,X._)`${t} !== undefined`,()=>e.assign((0,X._)`${t}[${r}]`,i))}function Dy(e,t,r,i=Xi.Correct){let n=i===Xi.Correct?X.operators.EQ:X.operators.NEQ,o;switch(e){case"null":return(0,X._)`${t} ${n} null`;case"array":o=(0,X._)`Array.isArray(${t})`;break;case"object":o=(0,X._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s((0,X._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return(0,X._)`typeof ${t} ${n} ${e}`}return i===Xi.Correct?o:(0,X.not)(o);function s(a=X.nil){return(0,X.and)((0,X._)`typeof ${t} == "number"`,a,r?(0,X._)`isFinite(${t})`:X.nil)}}rt.checkDataType=Dy;function Ay(e,t,r,i){if(e.length===1)return Dy(e[0],t,r,i);let n,o=(0,Vx.toHash)(e);if(o.array&&o.object){let s=(0,X._)`typeof ${t} != "object"`;n=o.null?s:(0,X._)`!${t} || ${s}`,delete o.null,delete o.array,delete o.object}else n=X.nil;o.number&&delete o.integer;for(let s in o)n=(0,X.and)(n,Dy(s,t,r,i));return n}rt.checkDataTypes=Ay;var I1={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,X._)`{type: ${e}}`:(0,X._)`{type: ${t}}`};function Ry(e){let t=z1(e);(0,b1.reportError)(t,I1)}rt.reportTypeError=Ry;function z1(e){let{gen:t,data:r,schema:i}=e,n=(0,Vx.schemaRefOrVal)(e,i,"type");return{gen:t,keyword:"type",data:r,schema:i.type,schemaCode:n,schemaValue:n,parentSchema:i,params:{},it:e}}});var Jx=v(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.assignDefaults=void 0;var eo=te(),P1=le();function T1(e,t){let{properties:r,items:i}=e.schema;if(t==="object"&&r)for(let n in r)Bx(e,n,r[n].default);else t==="array"&&Array.isArray(i)&&i.forEach((n,o)=>Bx(e,o,n.default))}Kd.assignDefaults=T1;function Bx(e,t,r){let{gen:i,compositeRule:n,data:o,opts:s}=e;if(r===void 0)return;let a=(0,eo._)`${o}${(0,eo.getProperty)(t)}`;if(n){(0,P1.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,eo._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,eo._)`${c} || ${a} === null || ${a} === ""`),i.if(c,(0,eo._)`${a} = ${(0,eo.stringify)(r)}`)}});var Nt=v(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.validateUnion=Se.validateArray=Se.usePattern=Se.callValidateCode=Se.schemaProperties=Se.allSchemaProperties=Se.noPropertyInData=Se.propertyInData=Se.isOwnProperty=Se.hasPropFunc=Se.reportMissingProp=Se.checkMissingProp=Se.checkReportMissingProp=void 0;var ze=te(),My=le(),Hr=$r(),E1=le();function N1(e,t){let{gen:r,data:i,it:n}=e;r.if(Uy(r,i,t,n.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ze._)`${t}`},!0),e.error()})}Se.checkReportMissingProp=N1;function O1({gen:e,data:t,it:{opts:r}},i,n){return(0,ze.or)(...i.map(o=>(0,ze.and)(Uy(e,t,o,r.ownProperties),(0,ze._)`${n} = ${o}`)))}Se.checkMissingProp=O1;function j1(e,t){e.setParams({missingProperty:t},!0),e.error()}Se.reportMissingProp=j1;function Hx(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ze._)`Object.prototype.hasOwnProperty`})}Se.hasPropFunc=Hx;function Ly(e,t,r){return(0,ze._)`${Hx(e)}.call(${t}, ${r})`}Se.isOwnProperty=Ly;function C1(e,t,r,i){let n=(0,ze._)`${t}${(0,ze.getProperty)(r)} !== undefined`;return i?(0,ze._)`${n} && ${Ly(e,t,r)}`:n}Se.propertyInData=C1;function Uy(e,t,r,i){let n=(0,ze._)`${t}${(0,ze.getProperty)(r)} === undefined`;return i?(0,ze.or)(n,(0,ze.not)(Ly(e,t,r))):n}Se.noPropertyInData=Uy;function Wx(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Se.allSchemaProperties=Wx;function D1(e,t){return Wx(t).filter(r=>!(0,My.alwaysValidSchema)(e,t[r]))}Se.schemaProperties=D1;function A1({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:n,errorPath:o},it:s},a,c,l){let u=l?(0,ze._)`${e}, ${t}, ${i}${n}`:t,d=[[Hr.default.instancePath,(0,ze.strConcat)(Hr.default.instancePath,o)],[Hr.default.parentData,s.parentData],[Hr.default.parentDataProperty,s.parentDataProperty],[Hr.default.rootData,Hr.default.rootData]];s.opts.dynamicRef&&d.push([Hr.default.dynamicAnchors,Hr.default.dynamicAnchors]);let f=(0,ze._)`${u}, ${r.object(...d)}`;return c!==ze.nil?(0,ze._)`${a}.call(${c}, ${f})`:(0,ze._)`${a}(${f})`}Se.callValidateCode=A1;var R1=(0,ze._)`new RegExp`;function M1({gen:e,it:{opts:t}},r){let i=t.unicodeRegExp?"u":"",{regExp:n}=t.code,o=n(r,i);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,ze._)`${n.code==="new RegExp"?R1:(0,E1.useFunc)(e,n)}(${r}, ${i})`})}Se.usePattern=M1;function L1(e){let{gen:t,data:r,keyword:i,it:n}=e,o=t.name("valid");if(n.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){let c=t.const("len",(0,ze._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:My.Type.Num},o),t.if((0,ze.not)(o),a)})}}Se.validateArray=L1;function U1(e){let{gen:t,schema:r,keyword:i,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,My.alwaysValidSchema)(n,c))&&!n.opts.unevaluated)return;let s=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let u=e.subschema({keyword:i,schemaProp:l,compositeRule:!0},a);t.assign(s,(0,ze._)`${s} || ${a}`),e.mergeValidEvaluated(u,a)||t.if((0,ze.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Se.validateUnion=U1});var Xx=v(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.validateKeywordUsage=Xt.validSchemaType=Xt.funcKeywordCode=Xt.macroKeywordCode=void 0;var at=te(),Ln=$r(),q1=Nt(),Z1=ua();function F1(e,t){let{gen:r,keyword:i,schema:n,parentSchema:o,it:s}=e,a=t.macro.call(s.self,n,o,s),c=Qx(r,i,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:at.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}Xt.macroKeywordCode=F1;function V1(e,t){var r;let{gen:i,keyword:n,schema:o,parentSchema:s,$data:a,it:c}=e;G1(c,t);let l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=Qx(i,n,l),d=i.let("valid");e.block$data(d,f),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function f(){if(t.errors===!1)m(),t.modifying&&Yx(e),h(()=>e.error());else{let $=t.async?p():g();t.modifying&&Yx(e),h(()=>K1(e,$))}}function p(){let $=i.let("ruleErrs",null);return i.try(()=>m((0,at._)`await `),k=>i.assign(d,!1).if((0,at._)`${k} instanceof ${c.ValidationError}`,()=>i.assign($,(0,at._)`${k}.errors`),()=>i.throw(k))),$}function g(){let $=(0,at._)`${u}.errors`;return i.assign($,null),m(at.nil),$}function m($=t.async?(0,at._)`await `:at.nil){let k=c.opts.passContext?Ln.default.this:Ln.default.self,x=!("compile"in t&&!a||t.schema===!1);i.assign(d,(0,at._)`${$}${(0,q1.callValidateCode)(e,u,k,x)}`,t.modifying)}function h($){var k;i.if((0,at.not)((k=t.valid)!==null&&k!==void 0?k:d),$)}}Xt.funcKeywordCode=V1;function Yx(e){let{gen:t,data:r,it:i}=e;t.if(i.parentData,()=>t.assign(r,(0,at._)`${i.parentData}[${i.parentDataProperty}]`))}function K1(e,t){let{gen:r}=e;r.if((0,at._)`Array.isArray(${t})`,()=>{r.assign(Ln.default.vErrors,(0,at._)`${Ln.default.vErrors} === null ? ${t} : ${Ln.default.vErrors}.concat(${t})`).assign(Ln.default.errors,(0,at._)`${Ln.default.vErrors}.length`),(0,Z1.extendErrors)(e)},()=>e.error())}function G1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function Qx(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,at.stringify)(r)})}function B1(e,t,r=!1){return!t.length||t.some(i=>i==="array"?Array.isArray(e):i==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==i||r&&typeof e>"u")}Xt.validSchemaType=B1;function J1({schema:e,opts:t,self:r,errSchemaPath:i},n,o){if(Array.isArray(n.keyword)?!n.keyword.includes(o):n.keyword!==o)throw new Error("ajv implementation error");let s=n.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(n.validateSchema&&!n.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${i}": `+r.errorsText(n.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}Xt.validateKeywordUsage=J1});var tw=v(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.extendSubschemaMode=Wr.extendSubschemaData=Wr.getSubschema=void 0;var er=te(),ew=le();function H1(e,{keyword:t,schemaProp:r,schema:i,schemaPath:n,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,er._)`${e.schemaPath}${(0,er.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,er._)`${e.schemaPath}${(0,er.getProperty)(t)}${(0,er.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,ew.escapeFragment)(r)}`}}if(i!==void 0){if(n===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:n,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}Wr.getSubschema=H1;function W1(e,t,{dataProp:r,dataPropType:i,data:n,dataTypes:o,propertyName:s}){if(n!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:d}=t,f=a.let("data",(0,er._)`${t.data}${(0,er.getProperty)(r)}`,!0);c(f),e.errorPath=(0,er.str)`${l}${(0,ew.getErrorPath)(r,i,d.jsPropertySyntax)}`,e.parentDataProperty=(0,er._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(n!==void 0){let l=n instanceof er.Name?n:a.let("data",n,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}Wr.extendSubschemaData=W1;function Y1(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:i,createErrors:n,allErrors:o}){i!==void 0&&(e.compositeRule=i),n!==void 0&&(e.createErrors=n),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}Wr.extendSubschemaMode=Y1});var qy=v((Y3,rw)=>{"use strict";rw.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var i,n,o;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(n=i;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),i=o.length,i!==Object.keys(r).length)return!1;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=i;n--!==0;){var s=o[n];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var iw=v((Q3,nw)=>{"use strict";var Yr=nw.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var i=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};Gd(t,i,n,e,"",e)};Yr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Yr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Yr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Yr.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 Gd(e,t,r,i,n,o,s,a,c,l){if(i&&typeof i=="object"&&!Array.isArray(i)){t(i,n,o,s,a,c,l);for(var u in i){var d=i[u];if(Array.isArray(d)){if(u in Yr.arrayKeywords)for(var f=0;f<d.length;f++)Gd(e,t,r,d[f],n+"/"+u+"/"+f,o,n,u,i,f)}else if(u in Yr.propsKeywords){if(d&&typeof d=="object")for(var p in d)Gd(e,t,r,d[p],n+"/"+u+"/"+Q1(p),o,n,u,i,p)}else(u in Yr.keywords||e.allKeys&&!(u in Yr.skipKeywords))&&Gd(e,t,r,d,n+"/"+u,o,n,u,i)}r(i,n,o,s,a,c,l)}}function Q1(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var fa=v(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.getSchemaRefs=gt.resolveUrl=gt.normalizeId=gt._getFullPath=gt.getFullPath=gt.inlineRef=void 0;var X1=le(),eD=qy(),tD=iw(),rD=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function nD(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Zy(e):t?ow(e)<=t:!1}gt.inlineRef=nD;var iD=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Zy(e){for(let t in e){if(iD.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Zy)||typeof r=="object"&&Zy(r))return!0}return!1}function ow(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!rD.has(r)&&(typeof e[r]=="object"&&(0,X1.eachItem)(e[r],i=>t+=ow(i)),t===1/0))return 1/0}return t}function sw(e,t="",r){r!==!1&&(t=to(t));let i=e.parse(t);return aw(e,i)}gt.getFullPath=sw;function aw(e,t){return e.serialize(t).split("#")[0]+"#"}gt._getFullPath=aw;var oD=/#\/?$/;function to(e){return e?e.replace(oD,""):""}gt.normalizeId=to;function sD(e,t,r){return r=to(r),e.resolve(t,r)}gt.resolveUrl=sD;var aD=/^[a-z_][-a-z0-9._]*$/i;function cD(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:i}=this.opts,n=to(e[r]||t),o={"":n},s=sw(i,n,!1),a={},c=new Set;return tD(e,{allKeys:!0},(d,f,p,g)=>{if(g===void 0)return;let m=s+f,h=o[g];typeof d[r]=="string"&&(h=$.call(this,d[r])),k.call(this,d.$anchor),k.call(this,d.$dynamicAnchor),o[f]=h;function $(x){let N=this.opts.uriResolver.resolve;if(x=to(h?N(h,x):x),c.has(x))throw u(x);c.add(x);let w=this.refs[x];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?l(d,w.schema,x):x!==to(m)&&(x[0]==="#"?(l(d,a[x],x),a[x]=d):this.refs[x]=m),x}function k(x){if(typeof x=="string"){if(!aD.test(x))throw new Error(`invalid anchor "${x}"`);$.call(this,`#${x}`)}}}),a;function l(d,f,p){if(f!==void 0&&!eD(d,f))throw u(p)}function u(d){return new Error(`reference "${d}" resolves to more than one schema`)}}gt.getSchemaRefs=cD});var ga=v(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.getData=Qr.KeywordCxt=Qr.validateFunctionCode=void 0;var fw=qx(),cw=da(),Vy=Cy(),Bd=da(),lD=Jx(),ma=Xx(),Fy=tw(),U=te(),B=$r(),uD=fa(),kr=le(),pa=ua();function dD(e){if(gw(e)&&(hw(e),mw(e))){mD(e);return}pw(e,()=>(0,fw.topBoolOrEmptySchema)(e))}Qr.validateFunctionCode=dD;function pw({gen:e,validateName:t,schema:r,schemaEnv:i,opts:n},o){n.code.es5?e.func(t,(0,U._)`${B.default.data}, ${B.default.valCxt}`,i.$async,()=>{e.code((0,U._)`"use strict"; ${lw(r,n)}`),pD(e,n),e.code(o)}):e.func(t,(0,U._)`${B.default.data}, ${fD(n)}`,i.$async,()=>e.code(lw(r,n)).code(o))}function fD(e){return(0,U._)`{${B.default.instancePath}="", ${B.default.parentData}, ${B.default.parentDataProperty}, ${B.default.rootData}=${B.default.data}${e.dynamicRef?(0,U._)`, ${B.default.dynamicAnchors}={}`:U.nil}}={}`}function pD(e,t){e.if(B.default.valCxt,()=>{e.var(B.default.instancePath,(0,U._)`${B.default.valCxt}.${B.default.instancePath}`),e.var(B.default.parentData,(0,U._)`${B.default.valCxt}.${B.default.parentData}`),e.var(B.default.parentDataProperty,(0,U._)`${B.default.valCxt}.${B.default.parentDataProperty}`),e.var(B.default.rootData,(0,U._)`${B.default.valCxt}.${B.default.rootData}`),t.dynamicRef&&e.var(B.default.dynamicAnchors,(0,U._)`${B.default.valCxt}.${B.default.dynamicAnchors}`)},()=>{e.var(B.default.instancePath,(0,U._)`""`),e.var(B.default.parentData,(0,U._)`undefined`),e.var(B.default.parentDataProperty,(0,U._)`undefined`),e.var(B.default.rootData,B.default.data),t.dynamicRef&&e.var(B.default.dynamicAnchors,(0,U._)`{}`)})}function mD(e){let{schema:t,opts:r,gen:i}=e;pw(e,()=>{r.$comment&&t.$comment&&vw(e),_D(e),i.let(B.default.vErrors,null),i.let(B.default.errors,0),r.unevaluated&&gD(e),yw(e),kD(e)})}function gD(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,U._)`${r}.evaluated`),t.if((0,U._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,U._)`${e.evaluated}.props`,(0,U._)`undefined`)),t.if((0,U._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,U._)`${e.evaluated}.items`,(0,U._)`undefined`))}function lw(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,U._)`/*# sourceURL=${r} */`:U.nil}function hD(e,t){if(gw(e)&&(hw(e),mw(e))){yD(e,t);return}(0,fw.boolOrEmptySchema)(e,t)}function mw({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function gw(e){return typeof e.schema!="boolean"}function yD(e,t){let{schema:r,gen:i,opts:n}=e;n.$comment&&r.$comment&&vw(e),bD(e),$D(e);let o=i.const("_errs",B.default.errors);yw(e,o),i.var(t,(0,U._)`${o} === ${B.default.errors}`)}function hw(e){(0,kr.checkUnknownRules)(e),vD(e)}function yw(e,t){if(e.opts.jtd)return uw(e,[],!1,t);let r=(0,cw.getSchemaTypes)(e.schema),i=(0,cw.coerceAndCheckDataType)(e,r);uw(e,r,!i,t)}function vD(e){let{schema:t,errSchemaPath:r,opts:i,self:n}=e;t.$ref&&i.ignoreKeywordsWithRef&&(0,kr.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function _D(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,kr.checkStrictMode)(e,"default is ignored in the schema root")}function bD(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,uD.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function $D(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function vw({gen:e,schemaEnv:t,schema:r,errSchemaPath:i,opts:n}){let o=r.$comment;if(n.$comment===!0)e.code((0,U._)`${B.default.self}.logger.log(${o})`);else if(typeof n.$comment=="function"){let s=(0,U.str)`${i}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,U._)`${B.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function kD(e){let{gen:t,schemaEnv:r,validateName:i,ValidationError:n,opts:o}=e;r.$async?t.if((0,U._)`${B.default.errors} === 0`,()=>t.return(B.default.data),()=>t.throw((0,U._)`new ${n}(${B.default.vErrors})`)):(t.assign((0,U._)`${i}.errors`,B.default.vErrors),o.unevaluated&&SD(e),t.return((0,U._)`${B.default.errors} === 0`))}function SD({gen:e,evaluated:t,props:r,items:i}){r instanceof U.Name&&e.assign((0,U._)`${t}.props`,r),i instanceof U.Name&&e.assign((0,U._)`${t}.items`,i)}function uw(e,t,r,i){let{gen:n,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,kr.schemaHasRulesButRef)(o,u))){n.block(()=>bw(e,"$ref",u.all.$ref.definition));return}c.jtd||xD(e,t),n.block(()=>{for(let f of u.rules)d(f);d(u.post)});function d(f){(0,Vy.shouldUseGroup)(o,f)&&(f.type?(n.if((0,Bd.checkDataType)(f.type,s,c.strictNumbers)),dw(e,f),t.length===1&&t[0]===f.type&&r&&(n.else(),(0,Bd.reportTypeError)(e)),n.endIf()):dw(e,f),a||n.if((0,U._)`${B.default.errors} === ${i||0}`))}}function dw(e,t){let{gen:r,schema:i,opts:{useDefaults:n}}=e;n&&(0,lD.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Vy.shouldUseRule)(i,o)&&bw(e,o.keyword,o.definition,t.type)})}function xD(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(wD(e,t),e.opts.allowUnionTypes||ID(e,t),zD(e,e.dataTypes))}function wD(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{_w(e.dataTypes,r)||Ky(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),TD(e,t)}}function ID(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Ky(e,"use allowUnionTypes to allow union type keyword")}function zD(e,t){let r=e.self.RULES.all;for(let i in r){let n=r[i];if(typeof n=="object"&&(0,Vy.shouldUseRule)(e.schema,n)){let{type:o}=n.definition;o.length&&!o.some(s=>PD(t,s))&&Ky(e,`missing type "${o.join(",")}" for keyword "${i}"`)}}}function PD(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function _w(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function TD(e,t){let r=[];for(let i of e.dataTypes)_w(t,i)?r.push(i):t.includes("integer")&&i==="number"&&r.push("integer");e.dataTypes=r}function Ky(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,kr.checkStrictMode)(e,t,e.opts.strictTypes)}var Jd=class{constructor(t,r,i){if((0,ma.validateKeywordUsage)(t,r,i),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=i,this.data=t.data,this.schema=t.schema[i],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,kr.schemaRefOrVal)(t,this.schema,i,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",$w(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,ma.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${i} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",B.default.errors))}result(t,r,i){this.failResult((0,U.not)(t),r,i)}failResult(t,r,i){this.gen.if(t),i?i():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,U.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,U._)`${r} !== undefined && (${(0,U.or)(this.invalid$data(),t)})`)}error(t,r,i){if(r){this.setParams(r),this._error(t,i),this.setParams({});return}this._error(t,i)}_error(t,r){(t?pa.reportExtraError:pa.reportError)(this,this.def.error,r)}$dataError(){(0,pa.reportError)(this,this.def.$dataError||pa.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,pa.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,i=U.nil){this.gen.block(()=>{this.check$data(t,i),r()})}check$data(t=U.nil,r=U.nil){if(!this.$data)return;let{gen:i,schemaCode:n,schemaType:o,def:s}=this;i.if((0,U.or)((0,U._)`${n} === undefined`,r)),t!==U.nil&&i.assign(t,!0),(o.length||s.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),t!==U.nil&&i.assign(t,!1)),i.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:i,def:n,it:o}=this;return(0,U.or)(s(),a());function s(){if(i.length){if(!(r instanceof U.Name))throw new Error("ajv implementation error");let c=Array.isArray(i)?i:[i];return(0,U._)`${(0,Bd.checkDataTypes)(c,r,o.opts.strictNumbers,Bd.DataType.Wrong)}`}return U.nil}function a(){if(n.validateSchema){let c=t.scopeValue("validate$data",{ref:n.validateSchema});return(0,U._)`!${c}(${r})`}return U.nil}}subschema(t,r){let i=(0,Fy.getSubschema)(this.it,t);(0,Fy.extendSubschemaData)(i,this.it,t),(0,Fy.extendSubschemaMode)(i,t);let n={...this.it,...i,items:void 0,props:void 0};return hD(n,r),n}mergeEvaluated(t,r){let{it:i,gen:n}=this;i.opts.unevaluated&&(i.props!==!0&&t.props!==void 0&&(i.props=kr.mergeEvaluated.props(n,t.props,i.props,r)),i.items!==!0&&t.items!==void 0&&(i.items=kr.mergeEvaluated.items(n,t.items,i.items,r)))}mergeValidEvaluated(t,r){let{it:i,gen:n}=this;if(i.opts.unevaluated&&(i.props!==!0||i.items!==!0))return n.if(r,()=>this.mergeEvaluated(t,U.Name)),!0}};Qr.KeywordCxt=Jd;function bw(e,t,r,i){let n=new Jd(e,r,t);"code"in r?r.code(n,i):n.$data&&r.validate?(0,ma.funcKeywordCode)(n,r):"macro"in r?(0,ma.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,ma.funcKeywordCode)(n,r)}var ED=/^\/(?:[^~]|~0|~1)*$/,ND=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $w(e,{dataLevel:t,dataNames:r,dataPathArr:i}){let n,o;if(e==="")return B.default.rootData;if(e[0]==="/"){if(!ED.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,o=B.default.rootData}else{let l=ND.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let u=+l[1];if(n=l[2],n==="#"){if(u>=t)throw new Error(c("property/index",u));return i[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!n)return o}let s=o,a=n.split("/");for(let l of a)l&&(o=(0,U._)`${o}${(0,U.getProperty)((0,kr.unescapeJsonPointer)(l))}`,s=(0,U._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}Qr.getData=$w});var Hd=v(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});var Gy=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};By.default=Gy});var ha=v(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var Jy=fa(),Hy=class extends Error{constructor(t,r,i,n){super(n||`can't resolve reference ${i} from id ${r}`),this.missingRef=(0,Jy.resolveUrl)(t,r,i),this.missingSchema=(0,Jy.normalizeId)((0,Jy.getFullPath)(t,this.missingRef))}};Wy.default=Hy});var Yd=v(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.resolveSchema=Ot.getCompilingSchema=Ot.resolveRef=Ot.compileSchema=Ot.SchemaEnv=void 0;var Zt=te(),OD=Hd(),Un=$r(),Ft=fa(),kw=le(),jD=ga(),ro=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let i;typeof t.schema=="object"&&(i=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Ft.normalizeId)(i?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=i?.$async,this.refs={}}};Ot.SchemaEnv=ro;function Qy(e){let t=Sw.call(this,e);if(t)return t;let r=(0,Ft.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:i,lines:n}=this.opts.code,{ownProperties:o}=this.opts,s=new Zt.CodeGen(this.scope,{es5:i,lines:n,ownProperties:o}),a;e.$async&&(a=s.scopeValue("Error",{ref:OD.default,code:(0,Zt._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:Un.default.data,parentData:Un.default.parentData,parentDataProperty:Un.default.parentDataProperty,dataNames:[Un.default.data],dataPathArr:[Zt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Zt.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Zt.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Zt._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(e),(0,jD.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let d=s.toString();u=`${s.scopeRefs(Un.default.scope)}return ${d}`,this.opts.code.process&&(u=this.opts.code.process(u,e));let p=new Function(`${Un.default.self}`,`${Un.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:p}),p.errors=null,p.schema=e.schema,p.schemaEnv=e,e.$async&&(p.$async=!0),this.opts.code.source===!0&&(p.source={validateName:c,validateCode:d,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:m}=l;p.evaluated={props:g instanceof Zt.Name?void 0:g,items:m instanceof Zt.Name?void 0:m,dynamicProps:g instanceof Zt.Name,dynamicItems:m instanceof Zt.Name},p.source&&(p.source.evaluated=(0,Zt.stringify)(p.evaluated))}return e.validate=p,e}catch(d){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),d}finally{this._compilations.delete(e)}}Ot.compileSchema=Qy;function CD(e,t,r){var i;r=(0,Ft.resolveUrl)(this.opts.uriResolver,t,r);let n=e.refs[r];if(n)return n;let o=RD.call(this,e,r);if(o===void 0){let s=(i=e.localRefs)===null||i===void 0?void 0:i[r],{schemaId:a}=this.opts;s&&(o=new ro({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=DD.call(this,o)}Ot.resolveRef=CD;function DD(e){return(0,Ft.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Qy.call(this,e)}function Sw(e){for(let t of this._compilations)if(AD(t,e))return t}Ot.getCompilingSchema=Sw;function AD(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function RD(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Wd.call(this,e,t)}function Wd(e,t){let r=this.opts.uriResolver.parse(t),i=(0,Ft._getFullPath)(this.opts.uriResolver,r),n=(0,Ft.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&i===n)return Yy.call(this,r,e);let o=(0,Ft.normalizeId)(i),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){let a=Wd.call(this,e,s);return typeof a?.schema!="object"?void 0:Yy.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||Qy.call(this,s),o===(0,Ft.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(n=(0,Ft.resolveUrl)(this.opts.uriResolver,n,l)),new ro({schema:a,schemaId:c,root:e,baseId:n})}return Yy.call(this,r,s)}}Ot.resolveSchema=Wd;var MD=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Yy(e,{baseId:t,schema:r,root:i}){var n;if(((n=e.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,kw.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!MD.has(a)&&l&&(t=(0,Ft.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,kw.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Ft.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Wd.call(this,i,a)}let{schemaId:s}=this.opts;if(o=o||new ro({schema:r,schemaId:s,root:i,baseId:t}),o.schema!==o.root.schema)return o}});var xw=v((iH,LD)=>{LD.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}});var ev=v((oH,Pw)=>{"use strict";var UD=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Iw=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 Xy(e){let t="",r=0,i=0;for(i=0;i<e.length;i++)if(r=e[i].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[i];break}for(i+=1;i<e.length;i++){if(r=e[i].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[i]}return t}var qD=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function ww(e){return e.length=0,!0}function ZD(e,t,r){if(e.length){let i=Xy(e);if(i!=="")t.push(i);else return r.error=!0,!1;e.length=0}return!0}function FD(e){let t=0,r={error:!1,address:"",zone:""},i=[],n=[],o=!1,s=!1,a=ZD;for(let c=0;c<e.length;c++){let l=e[c];if(!(l==="["||l==="]"))if(l===":"){if(o===!0&&(s=!0),!a(n,i,r))break;if(++t>7){r.error=!0;break}c>0&&e[c-1]===":"&&(o=!0),i.push(":");continue}else if(l==="%"){if(!a(n,i,r))break;a=ww}else{n.push(l);continue}}return n.length&&(a===ww?r.zone=n.join(""):s?i.push(n.join("")):i.push(Xy(n))),r.address=i.join(""),r}function zw(e){if(VD(e,":")<2)return{host:e,isIPV6:!1};let t=FD(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,i=t.address;return t.zone&&(r+="%"+t.zone,i+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:i}}}function VD(e,t){let r=0;for(let i=0;i<e.length;i++)e[i]===t&&r++;return r}function KD(e){let t=e,r=[],i=-1,n=0;for(;n=t.length;){if(n===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(n===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(n===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((i=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,i)),t=t.slice(i)}return r.join("")}function GD(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function BD(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!Iw(r)){let i=zw(r);i.isIPV6===!0?r=`[${i.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}Pw.exports={nonSimpleDomain:qD,recomposeAuthority:BD,normalizeComponentEncoding:GD,removeDotSegments:KD,isIPv4:Iw,isUUID:UD,normalizeIPv6:zw,stringArrayToHexStripped:Xy}});var jw=v((sH,Ow)=>{"use strict";var{isUUID:JD}=ev(),HD=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,WD=["http","https","ws","wss","urn","urn:uuid"];function YD(e){return WD.indexOf(e)!==-1}function tv(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function Tw(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Ew(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function QD(e){return e.secure=tv(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function XD(e){if((e.port===(tv(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function eA(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(HD);if(r){let i=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let n=`${i}:${t.nid||e.nid}`,o=rv(n);e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function tA(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",i=e.nid.toLowerCase(),n=`${r}:${t.nid||i}`,o=rv(n);o&&(e=o.serialize(e,t));let s=e,a=e.nss;return s.path=`${i||t.nid}:${a}`,t.skipEscape=!0,s}function rA(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!JD(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function nA(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var Nw={scheme:"http",domainHost:!0,parse:Tw,serialize:Ew},iA={scheme:"https",domainHost:Nw.domainHost,parse:Tw,serialize:Ew},Qd={scheme:"ws",domainHost:!0,parse:QD,serialize:XD},oA={scheme:"wss",domainHost:Qd.domainHost,parse:Qd.parse,serialize:Qd.serialize},sA={scheme:"urn",parse:eA,serialize:tA,skipNormalize:!0},aA={scheme:"urn:uuid",parse:rA,serialize:nA,skipNormalize:!0},Xd={http:Nw,https:iA,ws:Qd,wss:oA,urn:sA,"urn:uuid":aA};Object.setPrototypeOf(Xd,null);function rv(e){return e&&(Xd[e]||Xd[e.toLowerCase()])||void 0}Ow.exports={wsIsSecure:tv,SCHEMES:Xd,isValidSchemeName:YD,getSchemeHandler:rv}});var Aw=v((aH,tf)=>{"use strict";var{normalizeIPv6:cA,removeDotSegments:ya,recomposeAuthority:lA,normalizeComponentEncoding:ef,isIPv4:uA,nonSimpleDomain:dA}=ev(),{SCHEMES:fA,getSchemeHandler:Cw}=jw();function pA(e,t){return typeof e=="string"?e=tr(Sr(e,t),t):typeof e=="object"&&(e=Sr(tr(e,t),t)),e}function mA(e,t,r){let i=r?Object.assign({scheme:"null"},r):{scheme:"null"},n=Dw(Sr(e,i),Sr(t,i),i,!0);return i.skipEscape=!0,tr(n,i)}function Dw(e,t,r,i){let n={};return i||(e=Sr(tr(e,r),r),t=Sr(tr(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=ya(t.path||""),n.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=ya(t.path||""),n.query=t.query):(t.path?(t.path[0]==="/"?n.path=ya(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?n.path="/"+t.path:e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path,n.path=ya(n.path)),n.query=t.query):(n.path=e.path,t.query!==void 0?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function gA(e,t,r){return typeof e=="string"?(e=unescape(e),e=tr(ef(Sr(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=tr(ef(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=tr(ef(Sr(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=tr(ef(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function tr(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},i=Object.assign({},t),n=[],o=Cw(i.scheme||r.scheme);o&&o.serialize&&o.serialize(r,i),r.path!==void 0&&(i.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),i.reference!=="suffix"&&r.scheme&&n.push(r.scheme,":");let s=lA(r);if(s!==void 0&&(i.reference!=="suffix"&&n.push("//"),n.push(s),r.path&&r.path[0]!=="/"&&n.push("/")),r.path!==void 0){let a=r.path;!i.absolutePath&&(!o||!o.absolutePath)&&(a=ya(a)),s===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),n.push(a)}return r.query!==void 0&&n.push("?",r.query),r.fragment!==void 0&&n.push("#",r.fragment),n.join("")}var hA=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Sr(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let o=e.match(hA);if(o){if(i.scheme=o[1],i.userinfo=o[3],i.host=o[4],i.port=parseInt(o[5],10),i.path=o[6]||"",i.query=o[7],i.fragment=o[8],isNaN(i.port)&&(i.port=o[5]),i.host)if(uA(i.host)===!1){let c=cA(i.host);i.host=c.host.toLowerCase(),n=c.isIPV6}else n=!0;i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path?i.reference="same-document":i.scheme===void 0?i.reference="relative":i.fragment===void 0?i.reference="absolute":i.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==i.reference&&(i.error=i.error||"URI is not a "+r.reference+" reference.");let s=Cw(r.scheme||i.scheme);if(!r.unicodeSupport&&(!s||!s.unicodeSupport)&&i.host&&(r.domainHost||s&&s.domainHost)&&n===!1&&dA(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(a){i.error=i.error||"Host's domain name can not be converted to ASCII: "+a}(!s||s&&!s.skipNormalize)&&(e.indexOf("%")!==-1&&(i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),i.host!==void 0&&(i.host=unescape(i.host))),i.path&&(i.path=escape(unescape(i.path))),i.fragment&&(i.fragment=encodeURI(decodeURIComponent(i.fragment)))),s&&s.parse&&s.parse(i,r)}else i.error=i.error||"URI can not be parsed.";return i}var nv={SCHEMES:fA,normalize:pA,resolve:mA,resolveComponent:Dw,equal:gA,serialize:tr,parse:Sr};tf.exports=nv;tf.exports.default=nv;tf.exports.fastUri=nv});var Mw=v(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0});var Rw=Aw();Rw.code='require("ajv/dist/runtime/uri").default';iv.default=Rw});var Gw=v(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.CodeGen=Be.Name=Be.nil=Be.stringify=Be.str=Be._=Be.KeywordCxt=void 0;var yA=ga();Object.defineProperty(Be,"KeywordCxt",{enumerable:!0,get:function(){return yA.KeywordCxt}});var no=te();Object.defineProperty(Be,"_",{enumerable:!0,get:function(){return no._}});Object.defineProperty(Be,"str",{enumerable:!0,get:function(){return no.str}});Object.defineProperty(Be,"stringify",{enumerable:!0,get:function(){return no.stringify}});Object.defineProperty(Be,"nil",{enumerable:!0,get:function(){return no.nil}});Object.defineProperty(Be,"Name",{enumerable:!0,get:function(){return no.Name}});Object.defineProperty(Be,"CodeGen",{enumerable:!0,get:function(){return no.CodeGen}});var vA=Hd(),Fw=ha(),_A=jy(),va=Yd(),bA=te(),_a=fa(),rf=da(),sv=le(),Lw=xw(),$A=Mw(),Vw=(e,t)=>new RegExp(e,t);Vw.code="new RegExp";var kA=["removeAdditional","useDefaults","coerceTypes"],SA=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),xA={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."},wA={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Uw=200;function IA(e){var t,r,i,n,o,s,a,c,l,u,d,f,p,g,m,h,$,k,x,N,w,q,ee,R,W;let me=e.strict,Ae=(t=e.code)===null||t===void 0?void 0:t.optimize,Ie=Ae===!0||Ae===void 0?1:Ae||0,To=(i=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&i!==void 0?i:Vw,DT=(n=e.uriResolver)!==null&&n!==void 0?n:$A.default;return{strictSchema:(s=(o=e.strictSchema)!==null&&o!==void 0?o:me)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:me)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=e.strictTypes)!==null&&l!==void 0?l:me)!==null&&u!==void 0?u:"log",strictTuples:(f=(d=e.strictTuples)!==null&&d!==void 0?d:me)!==null&&f!==void 0?f:"log",strictRequired:(g=(p=e.strictRequired)!==null&&p!==void 0?p:me)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:Ie,regExp:To}:{optimize:Ie,regExp:To},loopRequired:(m=e.loopRequired)!==null&&m!==void 0?m:Uw,loopEnum:(h=e.loopEnum)!==null&&h!==void 0?h:Uw,meta:($=e.meta)!==null&&$!==void 0?$:!0,messages:(k=e.messages)!==null&&k!==void 0?k:!0,inlineRefs:(x=e.inlineRefs)!==null&&x!==void 0?x:!0,schemaId:(N=e.schemaId)!==null&&N!==void 0?N:"$id",addUsedSchema:(w=e.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(q=e.validateSchema)!==null&&q!==void 0?q:!0,validateFormats:(ee=e.validateFormats)!==null&&ee!==void 0?ee:!0,unicodeRegExp:(R=e.unicodeRegExp)!==null&&R!==void 0?R:!0,int32range:(W=e.int32range)!==null&&W!==void 0?W:!0,uriResolver:DT}}var ba=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...IA(t)};let{es5:r,lines:i}=this.opts.code;this.scope=new bA.ValueScope({scope:{},prefixes:SA,es5:r,lines:i}),this.logger=OA(t.logger);let n=t.validateFormats;t.validateFormats=!1,this.RULES=(0,_A.getRules)(),qw.call(this,xA,t,"NOT SUPPORTED"),qw.call(this,wA,t,"DEPRECATED","warn"),this._metaOpts=EA.call(this),t.formats&&PA.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&TA.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),zA.call(this),t.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:i}=this.opts,n=Lw;i==="id"&&(n={...Lw},n.id=n.$id,delete n.$id),r&&t&&this.addMetaSchema(n,n[i],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let i;if(typeof t=="string"){if(i=this.getSchema(t),!i)throw new Error(`no schema with key or ref "${t}"`)}else i=this.compile(t);let n=i(r);return"$async"in i||(this.errors=i.errors),n}compile(t,r){let i=this._addSchema(t,r);return i.validate||this._compileSchemaEnv(i)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:i}=this.opts;return n.call(this,t,r);async function n(u,d){await o.call(this,u.$schema);let f=this._addSchema(u,d);return f.validate||s.call(this,f)}async function o(u){u&&!this.getSchema(u)&&await n.call(this,{$ref:u},!0)}async function s(u){try{return this._compileSchemaEnv(u)}catch(d){if(!(d instanceof Fw.default))throw d;return a.call(this,d),await c.call(this,d.missingSchema),s.call(this,u)}}function a({missingSchema:u,missingRef:d}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${d} cannot be resolved`)}async function c(u){let d=await l.call(this,u);this.refs[u]||await o.call(this,d.$schema),this.refs[u]||this.addSchema(d,u,r)}async function l(u){let d=this._loading[u];if(d)return d;try{return await(this._loading[u]=i(u))}finally{delete this._loading[u]}}}addSchema(t,r,i,n=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,i,n);return this}let o;if(typeof t=="object"){let{schemaId:s}=this.opts;if(o=t[s],o!==void 0&&typeof o!="string")throw new Error(`schema ${s} must be string`)}return r=(0,_a.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,i,r,n,!0),this}addMetaSchema(t,r,i=this.opts.validateSchema){return this.addSchema(t,r,!0,i),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let i;if(i=t.$schema,i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this.opts.defaultMeta||this.defaultMeta(),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(i,t);if(!n&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return n}getSchema(t){let r;for(;typeof(r=Zw.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:i}=this.opts,n=new va.SchemaEnv({schema:{},schemaId:i});if(r=va.resolveSchema.call(this,n,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Zw.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let i=t[this.opts.schemaId];return i&&(i=(0,_a.normalizeId)(i),delete this.schemas[i],delete this.refs[i]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let i;if(typeof t=="string")i=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=i);else if(typeof t=="object"&&r===void 0){if(r=t,i=r.keyword,Array.isArray(i)&&!i.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(CA.call(this,i,r),!r)return(0,sv.eachItem)(i,o=>ov.call(this,o)),this;AA.call(this,r);let n={...r,type:(0,rf.getJSONTypes)(r.type),schemaType:(0,rf.getJSONTypes)(r.schemaType)};return(0,sv.eachItem)(i,n.type.length===0?o=>ov.call(this,o,n):o=>n.type.forEach(s=>ov.call(this,o,n,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let i of r.rules){let n=i.rules.findIndex(o=>o.keyword===t);n>=0&&i.rules.splice(n,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:i="data"}={}){return!t||t.length===0?"No errors":t.map(n=>`${i}${n.instancePath} ${n.message}`).reduce((n,o)=>n+r+o)}$dataMetaSchema(t,r){let i=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let n of r){let o=n.split("/").slice(1),s=t;for(let a of o)s=s[a];for(let a in i){let c=i[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=s[a];l&&u&&(s[a]=Kw(u))}}return t}_removeAllSchemas(t,r){for(let i in t){let n=t[i];(!r||r.test(i))&&(typeof n=="string"?delete t[i]:n&&!n.meta&&(this._cache.delete(n.schema),delete t[i]))}}_addSchema(t,r,i,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;i=(0,_a.normalizeId)(s||i);let l=_a.getSchemaRefs.call(this,t,i);return c=new va.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:i,localRefs:l}),this._cache.set(c.schema,c),o&&!i.startsWith("#")&&(i&&this._checkUnique(i),this.refs[i]=c),n&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):va.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{va.compileSchema.call(this,t)}finally{this.opts=r}}};ba.ValidationError=vA.default;ba.MissingRefError=Fw.default;Be.default=ba;function qw(e,t,r,i="error"){for(let n in e){let o=n;o in t&&this.logger[i](`${r}: option ${n}. ${e[o]}`)}}function Zw(e){return e=(0,_a.normalizeId)(e),this.schemas[e]||this.refs[e]}function zA(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function PA(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function TA(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function EA(){let e={...this.opts};for(let t of kA)delete e[t];return e}var NA={log(){},warn(){},error(){}};function OA(e){if(e===!1)return NA;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var jA=/^[a-z_$][a-z0-9_$:-]*$/i;function CA(e,t){let{RULES:r}=this;if((0,sv.eachItem)(e,i=>{if(r.keywords[i])throw new Error(`Keyword ${i} is already defined`);if(!jA.test(i))throw new Error(`Keyword ${i} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function ov(e,t,r){var i;let n=t?.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,s=n?o.post:o.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,rf.getJSONTypes)(t.type),schemaType:(0,rf.getJSONTypes)(t.schemaType)}};t.before?DA.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,(i=t.implements)===null||i===void 0||i.forEach(c=>this.addKeyword(c))}function DA(e,t,r){let i=e.rules.findIndex(n=>n.keyword===r);i>=0?e.rules.splice(i,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function AA(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Kw(t)),e.validateSchema=this.compile(t,!0))}var RA={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Kw(e){return{anyOf:[e,RA]}}});var Bw=v(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});var MA={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};av.default=MA});var Yw=v(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.callRef=qn.getValidate=void 0;var LA=ha(),Jw=Nt(),ht=te(),io=$r(),Hw=Yd(),nf=le(),UA={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:i}=e,{baseId:n,schemaEnv:o,validateName:s,opts:a,self:c}=i,{root:l}=o;if((r==="#"||r==="#/")&&n===l.baseId)return d();let u=Hw.resolveRef.call(c,l,n,r);if(u===void 0)throw new LA.default(i.opts.uriResolver,n,r);if(u instanceof Hw.SchemaEnv)return f(u);return p(u);function d(){if(o===l)return of(e,s,o,o.$async);let g=t.scopeValue("root",{ref:l});return of(e,(0,ht._)`${g}.validate`,l,l.$async)}function f(g){let m=Ww(e,g);of(e,m,g,g.$async)}function p(g){let m=t.scopeValue("schema",a.code.source===!0?{ref:g,code:(0,ht.stringify)(g)}:{ref:g}),h=t.name("valid"),$=e.subschema({schema:g,dataTypes:[],schemaPath:ht.nil,topSchemaRef:m,errSchemaPath:r},h);e.mergeEvaluated($),e.ok(h)}}};function Ww(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,ht._)`${r.scopeValue("wrapper",{ref:t})}.validate`}qn.getValidate=Ww;function of(e,t,r,i){let{gen:n,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?io.default.this:ht.nil;i?u():d();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let g=n.let("valid");n.try(()=>{n.code((0,ht._)`await ${(0,Jw.callValidateCode)(e,t,l)}`),p(t),s||n.assign(g,!0)},m=>{n.if((0,ht._)`!(${m} instanceof ${o.ValidationError})`,()=>n.throw(m)),f(m),s||n.assign(g,!1)}),e.ok(g)}function d(){e.result((0,Jw.callValidateCode)(e,t,l),()=>p(t),()=>f(t))}function f(g){let m=(0,ht._)`${g}.errors`;n.assign(io.default.vErrors,(0,ht._)`${io.default.vErrors} === null ? ${m} : ${io.default.vErrors}.concat(${m})`),n.assign(io.default.errors,(0,ht._)`${io.default.vErrors}.length`)}function p(g){var m;if(!o.opts.unevaluated)return;let h=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(o.props!==!0)if(h&&!h.dynamicProps)h.props!==void 0&&(o.props=nf.mergeEvaluated.props(n,h.props,o.props));else{let $=n.var("props",(0,ht._)`${g}.evaluated.props`);o.props=nf.mergeEvaluated.props(n,$,o.props,ht.Name)}if(o.items!==!0)if(h&&!h.dynamicItems)h.items!==void 0&&(o.items=nf.mergeEvaluated.items(n,h.items,o.items));else{let $=n.var("items",(0,ht._)`${g}.evaluated.items`);o.items=nf.mergeEvaluated.items(n,$,o.items,ht.Name)}}}qn.callRef=of;qn.default=UA});var Qw=v(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});var qA=Bw(),ZA=Yw(),FA=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",qA.default,ZA.default];cv.default=FA});var Xw=v(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0});var sf=te(),Xr=sf.operators,af={maximum:{okStr:"<=",ok:Xr.LTE,fail:Xr.GT},minimum:{okStr:">=",ok:Xr.GTE,fail:Xr.LT},exclusiveMaximum:{okStr:"<",ok:Xr.LT,fail:Xr.GTE},exclusiveMinimum:{okStr:">",ok:Xr.GT,fail:Xr.LTE}},VA={message:({keyword:e,schemaCode:t})=>(0,sf.str)`must be ${af[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,sf._)`{comparison: ${af[e].okStr}, limit: ${t}}`},KA={keyword:Object.keys(af),type:"number",schemaType:"number",$data:!0,error:VA,code(e){let{keyword:t,data:r,schemaCode:i}=e;e.fail$data((0,sf._)`${r} ${af[t].fail} ${i} || isNaN(${r})`)}};lv.default=KA});var e0=v(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0});var $a=te(),GA={message:({schemaCode:e})=>(0,$a.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,$a._)`{multipleOf: ${e}}`},BA={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:GA,code(e){let{gen:t,data:r,schemaCode:i,it:n}=e,o=n.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,$a._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,$a._)`${s} !== parseInt(${s})`;e.fail$data((0,$a._)`(${i} === 0 || (${s} = ${r}/${i}, ${a}))`)}};uv.default=BA});var r0=v(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});function t0(e){let t=e.length,r=0,i=0,n;for(;i<t;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<t&&(n=e.charCodeAt(i),(n&64512)===56320&&i++);return r}dv.default=t0;t0.code='require("ajv/dist/runtime/ucs2length").default'});var n0=v(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});var Zn=te(),JA=le(),HA=r0(),WA={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Zn.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Zn._)`{limit: ${e}}`},YA={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:WA,code(e){let{keyword:t,data:r,schemaCode:i,it:n}=e,o=t==="maxLength"?Zn.operators.GT:Zn.operators.LT,s=n.opts.unicode===!1?(0,Zn._)`${r}.length`:(0,Zn._)`${(0,JA.useFunc)(e.gen,HA.default)}(${r})`;e.fail$data((0,Zn._)`${s} ${o} ${i}`)}};fv.default=YA});var i0=v(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});var QA=Nt(),XA=le(),oo=te(),eR={message:({schemaCode:e})=>(0,oo.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,oo._)`{pattern: ${e}}`},tR={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:eR,code(e){let{gen:t,data:r,$data:i,schema:n,schemaCode:o,it:s}=e,a=s.opts.unicodeRegExp?"u":"";if(i){let{regExp:c}=s.opts.code,l=c.code==="new RegExp"?(0,oo._)`new RegExp`:(0,XA.useFunc)(t,c),u=t.let("valid");t.try(()=>t.assign(u,(0,oo._)`${l}(${o}, ${a}).test(${r})`),()=>t.assign(u,!1)),e.fail$data((0,oo._)`!${u}`)}else{let c=(0,QA.usePattern)(e,n);e.fail$data((0,oo._)`!${c}.test(${r})`)}}};pv.default=tR});var o0=v(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});var ka=te(),rR={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,ka.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,ka._)`{limit: ${e}}`},nR={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:rR,code(e){let{keyword:t,data:r,schemaCode:i}=e,n=t==="maxProperties"?ka.operators.GT:ka.operators.LT;e.fail$data((0,ka._)`Object.keys(${r}).length ${n} ${i}`)}};mv.default=nR});var s0=v(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});var Sa=Nt(),xa=te(),iR=le(),oR={message:({params:{missingProperty:e}})=>(0,xa.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,xa._)`{missingProperty: ${e}}`},sR={keyword:"required",type:"object",schemaType:"array",$data:!0,error:oR,code(e){let{gen:t,schema:r,schemaCode:i,data:n,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){let p=e.parentSchema.properties,{definedProperties:g}=e.it;for(let m of r)if(p?.[m]===void 0&&!g.has(m)){let h=s.schemaEnv.baseId+s.errSchemaPath,$=`required property "${m}" is not defined at "${h}" (strictRequired)`;(0,iR.checkStrictMode)(s,$,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(xa.nil,d);else for(let p of r)(0,Sa.checkReportMissingProp)(e,p)}function u(){let p=t.let("missing");if(c||o){let g=t.let("valid",!0);e.block$data(g,()=>f(p,g)),e.ok(g)}else t.if((0,Sa.checkMissingProp)(e,r,p)),(0,Sa.reportMissingProp)(e,p),t.else()}function d(){t.forOf("prop",i,p=>{e.setParams({missingProperty:p}),t.if((0,Sa.noPropertyInData)(t,n,p,a.ownProperties),()=>e.error())})}function f(p,g){e.setParams({missingProperty:p}),t.forOf(p,i,()=>{t.assign(g,(0,Sa.propertyInData)(t,n,p,a.ownProperties)),t.if((0,xa.not)(g),()=>{e.error(),t.break()})},xa.nil)}}};gv.default=sR});var a0=v(hv=>{"use strict";Object.defineProperty(hv,"__esModule",{value:!0});var wa=te(),aR={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,wa.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,wa._)`{limit: ${e}}`},cR={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:aR,code(e){let{keyword:t,data:r,schemaCode:i}=e,n=t==="maxItems"?wa.operators.GT:wa.operators.LT;e.fail$data((0,wa._)`${r}.length ${n} ${i}`)}};hv.default=cR});var cf=v(yv=>{"use strict";Object.defineProperty(yv,"__esModule",{value:!0});var c0=qy();c0.code='require("ajv/dist/runtime/equal").default';yv.default=c0});var l0=v(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});var vv=da(),Je=te(),lR=le(),uR=cf(),dR={message:({params:{i:e,j:t}})=>(0,Je.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Je._)`{i: ${e}, j: ${t}}`},fR={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:dR,code(e){let{gen:t,data:r,$data:i,schema:n,parentSchema:o,schemaCode:s,it:a}=e;if(!i&&!n)return;let c=t.let("valid"),l=o.items?(0,vv.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,Je._)`${s} === false`),e.ok(c);function u(){let g=t.let("i",(0,Je._)`${r}.length`),m=t.let("j");e.setParams({i:g,j:m}),t.assign(c,!0),t.if((0,Je._)`${g} > 1`,()=>(d()?f:p)(g,m))}function d(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}function f(g,m){let h=t.name("item"),$=(0,vv.checkDataTypes)(l,h,a.opts.strictNumbers,vv.DataType.Wrong),k=t.const("indices",(0,Je._)`{}`);t.for((0,Je._)`;${g}--;`,()=>{t.let(h,(0,Je._)`${r}[${g}]`),t.if($,(0,Je._)`continue`),l.length>1&&t.if((0,Je._)`typeof ${h} == "string"`,(0,Je._)`${h} += "_"`),t.if((0,Je._)`typeof ${k}[${h}] == "number"`,()=>{t.assign(m,(0,Je._)`${k}[${h}]`),e.error(),t.assign(c,!1).break()}).code((0,Je._)`${k}[${h}] = ${g}`)})}function p(g,m){let h=(0,lR.useFunc)(t,uR.default),$=t.name("outer");t.label($).for((0,Je._)`;${g}--;`,()=>t.for((0,Je._)`${m} = ${g}; ${m}--;`,()=>t.if((0,Je._)`${h}(${r}[${g}], ${r}[${m}])`,()=>{e.error(),t.assign(c,!1).break($)})))}}};_v.default=fR});var u0=v($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0});var bv=te(),pR=le(),mR=cf(),gR={message:"must be equal to constant",params:({schemaCode:e})=>(0,bv._)`{allowedValue: ${e}}`},hR={keyword:"const",$data:!0,error:gR,code(e){let{gen:t,data:r,$data:i,schemaCode:n,schema:o}=e;i||o&&typeof o=="object"?e.fail$data((0,bv._)`!${(0,pR.useFunc)(t,mR.default)}(${r}, ${n})`):e.fail((0,bv._)`${o} !== ${r}`)}};$v.default=hR});var d0=v(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0});var Ia=te(),yR=le(),vR=cf(),_R={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ia._)`{allowedValues: ${e}}`},bR={keyword:"enum",schemaType:"array",$data:!0,error:_R,code(e){let{gen:t,data:r,$data:i,schema:n,schemaCode:o,it:s}=e;if(!i&&n.length===0)throw new Error("enum must have non-empty array");let a=n.length>=s.opts.loopEnum,c,l=()=>c??(c=(0,yR.useFunc)(t,vR.default)),u;if(a||i)u=t.let("valid"),e.block$data(u,d);else{if(!Array.isArray(n))throw new Error("ajv implementation error");let p=t.const("vSchema",o);u=(0,Ia.or)(...n.map((g,m)=>f(p,m)))}e.pass(u);function d(){t.assign(u,!1),t.forOf("v",o,p=>t.if((0,Ia._)`${l()}(${r}, ${p})`,()=>t.assign(u,!0).break()))}function f(p,g){let m=n[g];return typeof m=="object"&&m!==null?(0,Ia._)`${l()}(${r}, ${p}[${g}])`:(0,Ia._)`${r} === ${m}`}}};kv.default=bR});var f0=v(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});var $R=Xw(),kR=e0(),SR=n0(),xR=i0(),wR=o0(),IR=s0(),zR=a0(),PR=l0(),TR=u0(),ER=d0(),NR=[$R.default,kR.default,SR.default,xR.default,wR.default,IR.default,zR.default,PR.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},TR.default,ER.default];Sv.default=NR});var wv=v(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.validateAdditionalItems=void 0;var Fn=te(),xv=le(),OR={message:({params:{len:e}})=>(0,Fn.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Fn._)`{limit: ${e}}`},jR={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:OR,code(e){let{parentSchema:t,it:r}=e,{items:i}=t;if(!Array.isArray(i)){(0,xv.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}p0(e,i)}};function p0(e,t){let{gen:r,schema:i,data:n,keyword:o,it:s}=e;s.items=!0;let a=r.const("len",(0,Fn._)`${n}.length`);if(i===!1)e.setParams({len:t.length}),e.pass((0,Fn._)`${a} <= ${t.length}`);else if(typeof i=="object"&&!(0,xv.alwaysValidSchema)(s,i)){let l=r.var("valid",(0,Fn._)`${a} <= ${t.length}`);r.if((0,Fn.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:xv.Type.Num},l),s.allErrors||r.if((0,Fn.not)(l),()=>r.break())})}}za.validateAdditionalItems=p0;za.default=jR});var Iv=v(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.validateTuple=void 0;var m0=te(),lf=le(),CR=Nt(),DR={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return g0(e,"additionalItems",t);r.items=!0,!(0,lf.alwaysValidSchema)(r,t)&&e.ok((0,CR.validateArray)(e))}};function g0(e,t,r=e.schema){let{gen:i,parentSchema:n,data:o,keyword:s,it:a}=e;u(n),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=lf.mergeEvaluated.items(i,r.length,a.items));let c=i.name("valid"),l=i.const("len",(0,m0._)`${o}.length`);r.forEach((d,f)=>{(0,lf.alwaysValidSchema)(a,d)||(i.if((0,m0._)`${l} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function u(d){let{opts:f,errSchemaPath:p}=a,g=r.length,m=g===d.minItems&&(g===d.maxItems||d[t]===!1);if(f.strictTuples&&!m){let h=`"${s}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${p}"`;(0,lf.checkStrictMode)(a,h,f.strictTuples)}}}Pa.validateTuple=g0;Pa.default=DR});var h0=v(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var AR=Iv(),RR={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,AR.validateTuple)(e,"items")};zv.default=RR});var v0=v(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});var y0=te(),MR=le(),LR=Nt(),UR=wv(),qR={message:({params:{len:e}})=>(0,y0.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,y0._)`{limit: ${e}}`},ZR={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:qR,code(e){let{schema:t,parentSchema:r,it:i}=e,{prefixItems:n}=r;i.items=!0,!(0,MR.alwaysValidSchema)(i,t)&&(n?(0,UR.validateAdditionalItems)(e,n):e.ok((0,LR.validateArray)(e)))}};Pv.default=ZR});var _0=v(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});var jt=te(),uf=le(),FR={message:({params:{min:e,max:t}})=>t===void 0?(0,jt.str)`must contain at least ${e} valid item(s)`:(0,jt.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,jt._)`{minContains: ${e}}`:(0,jt._)`{minContains: ${e}, maxContains: ${t}}`},VR={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:FR,code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:o}=e,s,a,{minContains:c,maxContains:l}=i;o.opts.next?(s=c===void 0?1:c,a=l):s=1;let u=t.const("len",(0,jt._)`${n}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,uf.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,uf.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,uf.alwaysValidSchema)(o,r)){let m=(0,jt._)`${u} >= ${s}`;a!==void 0&&(m=(0,jt._)`${m} && ${u} <= ${a}`),e.pass(m);return}o.items=!0;let d=t.name("valid");a===void 0&&s===1?p(d,()=>t.if(d,()=>t.break())):s===0?(t.let(d,!0),a!==void 0&&t.if((0,jt._)`${n}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){let m=t.name("_valid"),h=t.let("count",0);p(m,()=>t.if(m,()=>g(h)))}function p(m,h){t.forRange("i",0,u,$=>{e.subschema({keyword:"contains",dataProp:$,dataPropType:uf.Type.Num,compositeRule:!0},m),h()})}function g(m){t.code((0,jt._)`${m}++`),a===void 0?t.if((0,jt._)`${m} >= ${s}`,()=>t.assign(d,!0).break()):(t.if((0,jt._)`${m} > ${a}`,()=>t.assign(d,!1).break()),s===1?t.assign(d,!0):t.if((0,jt._)`${m} >= ${s}`,()=>t.assign(d,!0)))}}};Tv.default=VR});var k0=v(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.validateSchemaDeps=rr.validatePropertyDeps=rr.error=void 0;var Ev=te(),KR=le(),Ta=Nt();rr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let i=t===1?"property":"properties";return(0,Ev.str)`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>(0,Ev._)`{property: ${e},
6
+ || ${s} === "boolean" || ${n} === null`).assign(a,(0,X._)`[${n}]`)}}}function I1({gen:e,parentData:t,parentDataProperty:r},i){e.if((0,X._)`${t} !== undefined`,()=>e.assign((0,X._)`${t}[${r}]`,i))}function Dy(e,t,r,i=Xi.Correct){let n=i===Xi.Correct?X.operators.EQ:X.operators.NEQ,o;switch(e){case"null":return(0,X._)`${t} ${n} null`;case"array":o=(0,X._)`Array.isArray(${t})`;break;case"object":o=(0,X._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s((0,X._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return(0,X._)`typeof ${t} ${n} ${e}`}return i===Xi.Correct?o:(0,X.not)(o);function s(a=X.nil){return(0,X.and)((0,X._)`typeof ${t} == "number"`,a,r?(0,X._)`isFinite(${t})`:X.nil)}}rt.checkDataType=Dy;function Ay(e,t,r,i){if(e.length===1)return Dy(e[0],t,r,i);let n,o=(0,Kx.toHash)(e);if(o.array&&o.object){let s=(0,X._)`typeof ${t} != "object"`;n=o.null?s:(0,X._)`!${t} || ${s}`,delete o.null,delete o.array,delete o.object}else n=X.nil;o.number&&delete o.integer;for(let s in o)n=(0,X.and)(n,Dy(s,t,r,i));return n}rt.checkDataTypes=Ay;var z1={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,X._)`{type: ${e}}`:(0,X._)`{type: ${t}}`};function Ry(e){let t=P1(e);(0,$1.reportError)(t,z1)}rt.reportTypeError=Ry;function P1(e){let{gen:t,data:r,schema:i}=e,n=(0,Kx.schemaRefOrVal)(e,i,"type");return{gen:t,keyword:"type",data:r,schema:i.type,schemaCode:n,schemaValue:n,parentSchema:i,params:{},it:e}}});var Hx=v(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.assignDefaults=void 0;var eo=te(),T1=le();function E1(e,t){let{properties:r,items:i}=e.schema;if(t==="object"&&r)for(let n in r)Jx(e,n,r[n].default);else t==="array"&&Array.isArray(i)&&i.forEach((n,o)=>Jx(e,o,n.default))}Kd.assignDefaults=E1;function Jx(e,t,r){let{gen:i,compositeRule:n,data:o,opts:s}=e;if(r===void 0)return;let a=(0,eo._)`${o}${(0,eo.getProperty)(t)}`;if(n){(0,T1.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,eo._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,eo._)`${c} || ${a} === null || ${a} === ""`),i.if(c,(0,eo._)`${a} = ${(0,eo.stringify)(r)}`)}});var Nt=v(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.validateUnion=Se.validateArray=Se.usePattern=Se.callValidateCode=Se.schemaProperties=Se.allSchemaProperties=Se.noPropertyInData=Se.propertyInData=Se.isOwnProperty=Se.hasPropFunc=Se.reportMissingProp=Se.checkMissingProp=Se.checkReportMissingProp=void 0;var ze=te(),My=le(),Hr=$r(),N1=le();function O1(e,t){let{gen:r,data:i,it:n}=e;r.if(Uy(r,i,t,n.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ze._)`${t}`},!0),e.error()})}Se.checkReportMissingProp=O1;function j1({gen:e,data:t,it:{opts:r}},i,n){return(0,ze.or)(...i.map(o=>(0,ze.and)(Uy(e,t,o,r.ownProperties),(0,ze._)`${n} = ${o}`)))}Se.checkMissingProp=j1;function C1(e,t){e.setParams({missingProperty:t},!0),e.error()}Se.reportMissingProp=C1;function Wx(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ze._)`Object.prototype.hasOwnProperty`})}Se.hasPropFunc=Wx;function Ly(e,t,r){return(0,ze._)`${Wx(e)}.call(${t}, ${r})`}Se.isOwnProperty=Ly;function D1(e,t,r,i){let n=(0,ze._)`${t}${(0,ze.getProperty)(r)} !== undefined`;return i?(0,ze._)`${n} && ${Ly(e,t,r)}`:n}Se.propertyInData=D1;function Uy(e,t,r,i){let n=(0,ze._)`${t}${(0,ze.getProperty)(r)} === undefined`;return i?(0,ze.or)(n,(0,ze.not)(Ly(e,t,r))):n}Se.noPropertyInData=Uy;function Yx(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Se.allSchemaProperties=Yx;function A1(e,t){return Yx(t).filter(r=>!(0,My.alwaysValidSchema)(e,t[r]))}Se.schemaProperties=A1;function R1({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:n,errorPath:o},it:s},a,c,l){let u=l?(0,ze._)`${e}, ${t}, ${i}${n}`:t,d=[[Hr.default.instancePath,(0,ze.strConcat)(Hr.default.instancePath,o)],[Hr.default.parentData,s.parentData],[Hr.default.parentDataProperty,s.parentDataProperty],[Hr.default.rootData,Hr.default.rootData]];s.opts.dynamicRef&&d.push([Hr.default.dynamicAnchors,Hr.default.dynamicAnchors]);let f=(0,ze._)`${u}, ${r.object(...d)}`;return c!==ze.nil?(0,ze._)`${a}.call(${c}, ${f})`:(0,ze._)`${a}(${f})`}Se.callValidateCode=R1;var M1=(0,ze._)`new RegExp`;function L1({gen:e,it:{opts:t}},r){let i=t.unicodeRegExp?"u":"",{regExp:n}=t.code,o=n(r,i);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,ze._)`${n.code==="new RegExp"?M1:(0,N1.useFunc)(e,n)}(${r}, ${i})`})}Se.usePattern=L1;function U1(e){let{gen:t,data:r,keyword:i,it:n}=e,o=t.name("valid");if(n.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){let c=t.const("len",(0,ze._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:My.Type.Num},o),t.if((0,ze.not)(o),a)})}}Se.validateArray=U1;function q1(e){let{gen:t,schema:r,keyword:i,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,My.alwaysValidSchema)(n,c))&&!n.opts.unevaluated)return;let s=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let u=e.subschema({keyword:i,schemaProp:l,compositeRule:!0},a);t.assign(s,(0,ze._)`${s} || ${a}`),e.mergeValidEvaluated(u,a)||t.if((0,ze.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Se.validateUnion=q1});var ew=v(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.validateKeywordUsage=Xt.validSchemaType=Xt.funcKeywordCode=Xt.macroKeywordCode=void 0;var at=te(),Ln=$r(),Z1=Nt(),F1=da();function V1(e,t){let{gen:r,keyword:i,schema:n,parentSchema:o,it:s}=e,a=t.macro.call(s.self,n,o,s),c=Xx(r,i,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:at.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}Xt.macroKeywordCode=V1;function K1(e,t){var r;let{gen:i,keyword:n,schema:o,parentSchema:s,$data:a,it:c}=e;B1(c,t);let l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=Xx(i,n,l),d=i.let("valid");e.block$data(d,f),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function f(){if(t.errors===!1)m(),t.modifying&&Qx(e),h(()=>e.error());else{let $=t.async?p():g();t.modifying&&Qx(e),h(()=>G1(e,$))}}function p(){let $=i.let("ruleErrs",null);return i.try(()=>m((0,at._)`await `),k=>i.assign(d,!1).if((0,at._)`${k} instanceof ${c.ValidationError}`,()=>i.assign($,(0,at._)`${k}.errors`),()=>i.throw(k))),$}function g(){let $=(0,at._)`${u}.errors`;return i.assign($,null),m(at.nil),$}function m($=t.async?(0,at._)`await `:at.nil){let k=c.opts.passContext?Ln.default.this:Ln.default.self,x=!("compile"in t&&!a||t.schema===!1);i.assign(d,(0,at._)`${$}${(0,Z1.callValidateCode)(e,u,k,x)}`,t.modifying)}function h($){var k;i.if((0,at.not)((k=t.valid)!==null&&k!==void 0?k:d),$)}}Xt.funcKeywordCode=K1;function Qx(e){let{gen:t,data:r,it:i}=e;t.if(i.parentData,()=>t.assign(r,(0,at._)`${i.parentData}[${i.parentDataProperty}]`))}function G1(e,t){let{gen:r}=e;r.if((0,at._)`Array.isArray(${t})`,()=>{r.assign(Ln.default.vErrors,(0,at._)`${Ln.default.vErrors} === null ? ${t} : ${Ln.default.vErrors}.concat(${t})`).assign(Ln.default.errors,(0,at._)`${Ln.default.vErrors}.length`),(0,F1.extendErrors)(e)},()=>e.error())}function B1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function Xx(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,at.stringify)(r)})}function J1(e,t,r=!1){return!t.length||t.some(i=>i==="array"?Array.isArray(e):i==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==i||r&&typeof e>"u")}Xt.validSchemaType=J1;function H1({schema:e,opts:t,self:r,errSchemaPath:i},n,o){if(Array.isArray(n.keyword)?!n.keyword.includes(o):n.keyword!==o)throw new Error("ajv implementation error");let s=n.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(n.validateSchema&&!n.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${i}": `+r.errorsText(n.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}Xt.validateKeywordUsage=H1});var rw=v(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.extendSubschemaMode=Wr.extendSubschemaData=Wr.getSubschema=void 0;var er=te(),tw=le();function W1(e,{keyword:t,schemaProp:r,schema:i,schemaPath:n,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,er._)`${e.schemaPath}${(0,er.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,er._)`${e.schemaPath}${(0,er.getProperty)(t)}${(0,er.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,tw.escapeFragment)(r)}`}}if(i!==void 0){if(n===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:n,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}Wr.getSubschema=W1;function Y1(e,t,{dataProp:r,dataPropType:i,data:n,dataTypes:o,propertyName:s}){if(n!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:d}=t,f=a.let("data",(0,er._)`${t.data}${(0,er.getProperty)(r)}`,!0);c(f),e.errorPath=(0,er.str)`${l}${(0,tw.getErrorPath)(r,i,d.jsPropertySyntax)}`,e.parentDataProperty=(0,er._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(n!==void 0){let l=n instanceof er.Name?n:a.let("data",n,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}Wr.extendSubschemaData=Y1;function Q1(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:i,createErrors:n,allErrors:o}){i!==void 0&&(e.compositeRule=i),n!==void 0&&(e.createErrors=n),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}Wr.extendSubschemaMode=Q1});var qy=v((Q3,nw)=>{"use strict";nw.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var i,n,o;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(n=i;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),i=o.length,i!==Object.keys(r).length)return!1;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=i;n--!==0;){var s=o[n];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var ow=v((X3,iw)=>{"use strict";var Yr=iw.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var i=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};Gd(t,i,n,e,"",e)};Yr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Yr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Yr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Yr.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 Gd(e,t,r,i,n,o,s,a,c,l){if(i&&typeof i=="object"&&!Array.isArray(i)){t(i,n,o,s,a,c,l);for(var u in i){var d=i[u];if(Array.isArray(d)){if(u in Yr.arrayKeywords)for(var f=0;f<d.length;f++)Gd(e,t,r,d[f],n+"/"+u+"/"+f,o,n,u,i,f)}else if(u in Yr.propsKeywords){if(d&&typeof d=="object")for(var p in d)Gd(e,t,r,d[p],n+"/"+u+"/"+X1(p),o,n,u,i,p)}else(u in Yr.keywords||e.allKeys&&!(u in Yr.skipKeywords))&&Gd(e,t,r,d,n+"/"+u,o,n,u,i)}r(i,n,o,s,a,c,l)}}function X1(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var pa=v(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.getSchemaRefs=gt.resolveUrl=gt.normalizeId=gt._getFullPath=gt.getFullPath=gt.inlineRef=void 0;var eD=le(),tD=qy(),rD=ow(),nD=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function iD(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Zy(e):t?sw(e)<=t:!1}gt.inlineRef=iD;var oD=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Zy(e){for(let t in e){if(oD.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Zy)||typeof r=="object"&&Zy(r))return!0}return!1}function sw(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!nD.has(r)&&(typeof e[r]=="object"&&(0,eD.eachItem)(e[r],i=>t+=sw(i)),t===1/0))return 1/0}return t}function aw(e,t="",r){r!==!1&&(t=to(t));let i=e.parse(t);return cw(e,i)}gt.getFullPath=aw;function cw(e,t){return e.serialize(t).split("#")[0]+"#"}gt._getFullPath=cw;var sD=/#\/?$/;function to(e){return e?e.replace(sD,""):""}gt.normalizeId=to;function aD(e,t,r){return r=to(r),e.resolve(t,r)}gt.resolveUrl=aD;var cD=/^[a-z_][-a-z0-9._]*$/i;function lD(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:i}=this.opts,n=to(e[r]||t),o={"":n},s=aw(i,n,!1),a={},c=new Set;return rD(e,{allKeys:!0},(d,f,p,g)=>{if(g===void 0)return;let m=s+f,h=o[g];typeof d[r]=="string"&&(h=$.call(this,d[r])),k.call(this,d.$anchor),k.call(this,d.$dynamicAnchor),o[f]=h;function $(x){let N=this.opts.uriResolver.resolve;if(x=to(h?N(h,x):x),c.has(x))throw u(x);c.add(x);let w=this.refs[x];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?l(d,w.schema,x):x!==to(m)&&(x[0]==="#"?(l(d,a[x],x),a[x]=d):this.refs[x]=m),x}function k(x){if(typeof x=="string"){if(!cD.test(x))throw new Error(`invalid anchor "${x}"`);$.call(this,`#${x}`)}}}),a;function l(d,f,p){if(f!==void 0&&!tD(d,f))throw u(p)}function u(d){return new Error(`reference "${d}" resolves to more than one schema`)}}gt.getSchemaRefs=lD});var ha=v(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.getData=Qr.KeywordCxt=Qr.validateFunctionCode=void 0;var pw=Zx(),lw=fa(),Vy=Cy(),Bd=fa(),uD=Hx(),ga=ew(),Fy=rw(),U=te(),B=$r(),dD=pa(),kr=le(),ma=da();function fD(e){if(hw(e)&&(yw(e),gw(e))){gD(e);return}mw(e,()=>(0,pw.topBoolOrEmptySchema)(e))}Qr.validateFunctionCode=fD;function mw({gen:e,validateName:t,schema:r,schemaEnv:i,opts:n},o){n.code.es5?e.func(t,(0,U._)`${B.default.data}, ${B.default.valCxt}`,i.$async,()=>{e.code((0,U._)`"use strict"; ${uw(r,n)}`),mD(e,n),e.code(o)}):e.func(t,(0,U._)`${B.default.data}, ${pD(n)}`,i.$async,()=>e.code(uw(r,n)).code(o))}function pD(e){return(0,U._)`{${B.default.instancePath}="", ${B.default.parentData}, ${B.default.parentDataProperty}, ${B.default.rootData}=${B.default.data}${e.dynamicRef?(0,U._)`, ${B.default.dynamicAnchors}={}`:U.nil}}={}`}function mD(e,t){e.if(B.default.valCxt,()=>{e.var(B.default.instancePath,(0,U._)`${B.default.valCxt}.${B.default.instancePath}`),e.var(B.default.parentData,(0,U._)`${B.default.valCxt}.${B.default.parentData}`),e.var(B.default.parentDataProperty,(0,U._)`${B.default.valCxt}.${B.default.parentDataProperty}`),e.var(B.default.rootData,(0,U._)`${B.default.valCxt}.${B.default.rootData}`),t.dynamicRef&&e.var(B.default.dynamicAnchors,(0,U._)`${B.default.valCxt}.${B.default.dynamicAnchors}`)},()=>{e.var(B.default.instancePath,(0,U._)`""`),e.var(B.default.parentData,(0,U._)`undefined`),e.var(B.default.parentDataProperty,(0,U._)`undefined`),e.var(B.default.rootData,B.default.data),t.dynamicRef&&e.var(B.default.dynamicAnchors,(0,U._)`{}`)})}function gD(e){let{schema:t,opts:r,gen:i}=e;mw(e,()=>{r.$comment&&t.$comment&&_w(e),bD(e),i.let(B.default.vErrors,null),i.let(B.default.errors,0),r.unevaluated&&hD(e),vw(e),SD(e)})}function hD(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,U._)`${r}.evaluated`),t.if((0,U._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,U._)`${e.evaluated}.props`,(0,U._)`undefined`)),t.if((0,U._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,U._)`${e.evaluated}.items`,(0,U._)`undefined`))}function uw(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,U._)`/*# sourceURL=${r} */`:U.nil}function yD(e,t){if(hw(e)&&(yw(e),gw(e))){vD(e,t);return}(0,pw.boolOrEmptySchema)(e,t)}function gw({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function hw(e){return typeof e.schema!="boolean"}function vD(e,t){let{schema:r,gen:i,opts:n}=e;n.$comment&&r.$comment&&_w(e),$D(e),kD(e);let o=i.const("_errs",B.default.errors);vw(e,o),i.var(t,(0,U._)`${o} === ${B.default.errors}`)}function yw(e){(0,kr.checkUnknownRules)(e),_D(e)}function vw(e,t){if(e.opts.jtd)return dw(e,[],!1,t);let r=(0,lw.getSchemaTypes)(e.schema),i=(0,lw.coerceAndCheckDataType)(e,r);dw(e,r,!i,t)}function _D(e){let{schema:t,errSchemaPath:r,opts:i,self:n}=e;t.$ref&&i.ignoreKeywordsWithRef&&(0,kr.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function bD(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,kr.checkStrictMode)(e,"default is ignored in the schema root")}function $D(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,dD.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function kD(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function _w({gen:e,schemaEnv:t,schema:r,errSchemaPath:i,opts:n}){let o=r.$comment;if(n.$comment===!0)e.code((0,U._)`${B.default.self}.logger.log(${o})`);else if(typeof n.$comment=="function"){let s=(0,U.str)`${i}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,U._)`${B.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function SD(e){let{gen:t,schemaEnv:r,validateName:i,ValidationError:n,opts:o}=e;r.$async?t.if((0,U._)`${B.default.errors} === 0`,()=>t.return(B.default.data),()=>t.throw((0,U._)`new ${n}(${B.default.vErrors})`)):(t.assign((0,U._)`${i}.errors`,B.default.vErrors),o.unevaluated&&xD(e),t.return((0,U._)`${B.default.errors} === 0`))}function xD({gen:e,evaluated:t,props:r,items:i}){r instanceof U.Name&&e.assign((0,U._)`${t}.props`,r),i instanceof U.Name&&e.assign((0,U._)`${t}.items`,i)}function dw(e,t,r,i){let{gen:n,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,kr.schemaHasRulesButRef)(o,u))){n.block(()=>$w(e,"$ref",u.all.$ref.definition));return}c.jtd||wD(e,t),n.block(()=>{for(let f of u.rules)d(f);d(u.post)});function d(f){(0,Vy.shouldUseGroup)(o,f)&&(f.type?(n.if((0,Bd.checkDataType)(f.type,s,c.strictNumbers)),fw(e,f),t.length===1&&t[0]===f.type&&r&&(n.else(),(0,Bd.reportTypeError)(e)),n.endIf()):fw(e,f),a||n.if((0,U._)`${B.default.errors} === ${i||0}`))}}function fw(e,t){let{gen:r,schema:i,opts:{useDefaults:n}}=e;n&&(0,uD.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Vy.shouldUseRule)(i,o)&&$w(e,o.keyword,o.definition,t.type)})}function wD(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(ID(e,t),e.opts.allowUnionTypes||zD(e,t),PD(e,e.dataTypes))}function ID(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{bw(e.dataTypes,r)||Ky(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),ED(e,t)}}function zD(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Ky(e,"use allowUnionTypes to allow union type keyword")}function PD(e,t){let r=e.self.RULES.all;for(let i in r){let n=r[i];if(typeof n=="object"&&(0,Vy.shouldUseRule)(e.schema,n)){let{type:o}=n.definition;o.length&&!o.some(s=>TD(t,s))&&Ky(e,`missing type "${o.join(",")}" for keyword "${i}"`)}}}function TD(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function bw(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function ED(e,t){let r=[];for(let i of e.dataTypes)bw(t,i)?r.push(i):t.includes("integer")&&i==="number"&&r.push("integer");e.dataTypes=r}function Ky(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,kr.checkStrictMode)(e,t,e.opts.strictTypes)}var Jd=class{constructor(t,r,i){if((0,ga.validateKeywordUsage)(t,r,i),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=i,this.data=t.data,this.schema=t.schema[i],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,kr.schemaRefOrVal)(t,this.schema,i,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",kw(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,ga.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${i} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",B.default.errors))}result(t,r,i){this.failResult((0,U.not)(t),r,i)}failResult(t,r,i){this.gen.if(t),i?i():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,U.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,U._)`${r} !== undefined && (${(0,U.or)(this.invalid$data(),t)})`)}error(t,r,i){if(r){this.setParams(r),this._error(t,i),this.setParams({});return}this._error(t,i)}_error(t,r){(t?ma.reportExtraError:ma.reportError)(this,this.def.error,r)}$dataError(){(0,ma.reportError)(this,this.def.$dataError||ma.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ma.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,i=U.nil){this.gen.block(()=>{this.check$data(t,i),r()})}check$data(t=U.nil,r=U.nil){if(!this.$data)return;let{gen:i,schemaCode:n,schemaType:o,def:s}=this;i.if((0,U.or)((0,U._)`${n} === undefined`,r)),t!==U.nil&&i.assign(t,!0),(o.length||s.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),t!==U.nil&&i.assign(t,!1)),i.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:i,def:n,it:o}=this;return(0,U.or)(s(),a());function s(){if(i.length){if(!(r instanceof U.Name))throw new Error("ajv implementation error");let c=Array.isArray(i)?i:[i];return(0,U._)`${(0,Bd.checkDataTypes)(c,r,o.opts.strictNumbers,Bd.DataType.Wrong)}`}return U.nil}function a(){if(n.validateSchema){let c=t.scopeValue("validate$data",{ref:n.validateSchema});return(0,U._)`!${c}(${r})`}return U.nil}}subschema(t,r){let i=(0,Fy.getSubschema)(this.it,t);(0,Fy.extendSubschemaData)(i,this.it,t),(0,Fy.extendSubschemaMode)(i,t);let n={...this.it,...i,items:void 0,props:void 0};return yD(n,r),n}mergeEvaluated(t,r){let{it:i,gen:n}=this;i.opts.unevaluated&&(i.props!==!0&&t.props!==void 0&&(i.props=kr.mergeEvaluated.props(n,t.props,i.props,r)),i.items!==!0&&t.items!==void 0&&(i.items=kr.mergeEvaluated.items(n,t.items,i.items,r)))}mergeValidEvaluated(t,r){let{it:i,gen:n}=this;if(i.opts.unevaluated&&(i.props!==!0||i.items!==!0))return n.if(r,()=>this.mergeEvaluated(t,U.Name)),!0}};Qr.KeywordCxt=Jd;function $w(e,t,r,i){let n=new Jd(e,r,t);"code"in r?r.code(n,i):n.$data&&r.validate?(0,ga.funcKeywordCode)(n,r):"macro"in r?(0,ga.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,ga.funcKeywordCode)(n,r)}var ND=/^\/(?:[^~]|~0|~1)*$/,OD=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function kw(e,{dataLevel:t,dataNames:r,dataPathArr:i}){let n,o;if(e==="")return B.default.rootData;if(e[0]==="/"){if(!ND.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,o=B.default.rootData}else{let l=OD.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let u=+l[1];if(n=l[2],n==="#"){if(u>=t)throw new Error(c("property/index",u));return i[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!n)return o}let s=o,a=n.split("/");for(let l of a)l&&(o=(0,U._)`${o}${(0,U.getProperty)((0,kr.unescapeJsonPointer)(l))}`,s=(0,U._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}Qr.getData=kw});var Hd=v(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});var Gy=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};By.default=Gy});var ya=v(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var Jy=pa(),Hy=class extends Error{constructor(t,r,i,n){super(n||`can't resolve reference ${i} from id ${r}`),this.missingRef=(0,Jy.resolveUrl)(t,r,i),this.missingSchema=(0,Jy.normalizeId)((0,Jy.getFullPath)(t,this.missingRef))}};Wy.default=Hy});var Yd=v(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.resolveSchema=Ot.getCompilingSchema=Ot.resolveRef=Ot.compileSchema=Ot.SchemaEnv=void 0;var Zt=te(),jD=Hd(),Un=$r(),Ft=pa(),Sw=le(),CD=ha(),ro=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let i;typeof t.schema=="object"&&(i=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Ft.normalizeId)(i?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=i?.$async,this.refs={}}};Ot.SchemaEnv=ro;function Qy(e){let t=xw.call(this,e);if(t)return t;let r=(0,Ft.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:i,lines:n}=this.opts.code,{ownProperties:o}=this.opts,s=new Zt.CodeGen(this.scope,{es5:i,lines:n,ownProperties:o}),a;e.$async&&(a=s.scopeValue("Error",{ref:jD.default,code:(0,Zt._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:Un.default.data,parentData:Un.default.parentData,parentDataProperty:Un.default.parentDataProperty,dataNames:[Un.default.data],dataPathArr:[Zt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Zt.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Zt.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Zt._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(e),(0,CD.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let d=s.toString();u=`${s.scopeRefs(Un.default.scope)}return ${d}`,this.opts.code.process&&(u=this.opts.code.process(u,e));let p=new Function(`${Un.default.self}`,`${Un.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:p}),p.errors=null,p.schema=e.schema,p.schemaEnv=e,e.$async&&(p.$async=!0),this.opts.code.source===!0&&(p.source={validateName:c,validateCode:d,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:m}=l;p.evaluated={props:g instanceof Zt.Name?void 0:g,items:m instanceof Zt.Name?void 0:m,dynamicProps:g instanceof Zt.Name,dynamicItems:m instanceof Zt.Name},p.source&&(p.source.evaluated=(0,Zt.stringify)(p.evaluated))}return e.validate=p,e}catch(d){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),d}finally{this._compilations.delete(e)}}Ot.compileSchema=Qy;function DD(e,t,r){var i;r=(0,Ft.resolveUrl)(this.opts.uriResolver,t,r);let n=e.refs[r];if(n)return n;let o=MD.call(this,e,r);if(o===void 0){let s=(i=e.localRefs)===null||i===void 0?void 0:i[r],{schemaId:a}=this.opts;s&&(o=new ro({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=AD.call(this,o)}Ot.resolveRef=DD;function AD(e){return(0,Ft.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Qy.call(this,e)}function xw(e){for(let t of this._compilations)if(RD(t,e))return t}Ot.getCompilingSchema=xw;function RD(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function MD(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Wd.call(this,e,t)}function Wd(e,t){let r=this.opts.uriResolver.parse(t),i=(0,Ft._getFullPath)(this.opts.uriResolver,r),n=(0,Ft.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&i===n)return Yy.call(this,r,e);let o=(0,Ft.normalizeId)(i),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){let a=Wd.call(this,e,s);return typeof a?.schema!="object"?void 0:Yy.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||Qy.call(this,s),o===(0,Ft.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(n=(0,Ft.resolveUrl)(this.opts.uriResolver,n,l)),new ro({schema:a,schemaId:c,root:e,baseId:n})}return Yy.call(this,r,s)}}Ot.resolveSchema=Wd;var LD=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Yy(e,{baseId:t,schema:r,root:i}){var n;if(((n=e.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,Sw.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!LD.has(a)&&l&&(t=(0,Ft.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Sw.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Ft.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Wd.call(this,i,a)}let{schemaId:s}=this.opts;if(o=o||new ro({schema:r,schemaId:s,root:i,baseId:t}),o.schema!==o.root.schema)return o}});var ww=v((oH,UD)=>{UD.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}});var ev=v((sH,Tw)=>{"use strict";var qD=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),zw=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 Xy(e){let t="",r=0,i=0;for(i=0;i<e.length;i++)if(r=e[i].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[i];break}for(i+=1;i<e.length;i++){if(r=e[i].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[i]}return t}var ZD=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Iw(e){return e.length=0,!0}function FD(e,t,r){if(e.length){let i=Xy(e);if(i!=="")t.push(i);else return r.error=!0,!1;e.length=0}return!0}function VD(e){let t=0,r={error:!1,address:"",zone:""},i=[],n=[],o=!1,s=!1,a=FD;for(let c=0;c<e.length;c++){let l=e[c];if(!(l==="["||l==="]"))if(l===":"){if(o===!0&&(s=!0),!a(n,i,r))break;if(++t>7){r.error=!0;break}c>0&&e[c-1]===":"&&(o=!0),i.push(":");continue}else if(l==="%"){if(!a(n,i,r))break;a=Iw}else{n.push(l);continue}}return n.length&&(a===Iw?r.zone=n.join(""):s?i.push(n.join("")):i.push(Xy(n))),r.address=i.join(""),r}function Pw(e){if(KD(e,":")<2)return{host:e,isIPV6:!1};let t=VD(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,i=t.address;return t.zone&&(r+="%"+t.zone,i+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:i}}}function KD(e,t){let r=0;for(let i=0;i<e.length;i++)e[i]===t&&r++;return r}function GD(e){let t=e,r=[],i=-1,n=0;for(;n=t.length;){if(n===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(n===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(n===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((i=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,i)),t=t.slice(i)}return r.join("")}function BD(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function JD(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!zw(r)){let i=Pw(r);i.isIPV6===!0?r=`[${i.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}Tw.exports={nonSimpleDomain:ZD,recomposeAuthority:JD,normalizeComponentEncoding:BD,removeDotSegments:GD,isIPv4:zw,isUUID:qD,normalizeIPv6:Pw,stringArrayToHexStripped:Xy}});var Cw=v((aH,jw)=>{"use strict";var{isUUID:HD}=ev(),WD=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,YD=["http","https","ws","wss","urn","urn:uuid"];function QD(e){return YD.indexOf(e)!==-1}function tv(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function Ew(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Nw(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function XD(e){return e.secure=tv(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function eA(e){if((e.port===(tv(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function tA(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(WD);if(r){let i=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let n=`${i}:${t.nid||e.nid}`,o=rv(n);e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function rA(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",i=e.nid.toLowerCase(),n=`${r}:${t.nid||i}`,o=rv(n);o&&(e=o.serialize(e,t));let s=e,a=e.nss;return s.path=`${i||t.nid}:${a}`,t.skipEscape=!0,s}function nA(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!HD(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function iA(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var Ow={scheme:"http",domainHost:!0,parse:Ew,serialize:Nw},oA={scheme:"https",domainHost:Ow.domainHost,parse:Ew,serialize:Nw},Qd={scheme:"ws",domainHost:!0,parse:XD,serialize:eA},sA={scheme:"wss",domainHost:Qd.domainHost,parse:Qd.parse,serialize:Qd.serialize},aA={scheme:"urn",parse:tA,serialize:rA,skipNormalize:!0},cA={scheme:"urn:uuid",parse:nA,serialize:iA,skipNormalize:!0},Xd={http:Ow,https:oA,ws:Qd,wss:sA,urn:aA,"urn:uuid":cA};Object.setPrototypeOf(Xd,null);function rv(e){return e&&(Xd[e]||Xd[e.toLowerCase()])||void 0}jw.exports={wsIsSecure:tv,SCHEMES:Xd,isValidSchemeName:QD,getSchemeHandler:rv}});var Rw=v((cH,tf)=>{"use strict";var{normalizeIPv6:lA,removeDotSegments:va,recomposeAuthority:uA,normalizeComponentEncoding:ef,isIPv4:dA,nonSimpleDomain:fA}=ev(),{SCHEMES:pA,getSchemeHandler:Dw}=Cw();function mA(e,t){return typeof e=="string"?e=tr(Sr(e,t),t):typeof e=="object"&&(e=Sr(tr(e,t),t)),e}function gA(e,t,r){let i=r?Object.assign({scheme:"null"},r):{scheme:"null"},n=Aw(Sr(e,i),Sr(t,i),i,!0);return i.skipEscape=!0,tr(n,i)}function Aw(e,t,r,i){let n={};return i||(e=Sr(tr(e,r),r),t=Sr(tr(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=va(t.path||""),n.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=va(t.path||""),n.query=t.query):(t.path?(t.path[0]==="/"?n.path=va(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?n.path="/"+t.path:e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path,n.path=va(n.path)),n.query=t.query):(n.path=e.path,t.query!==void 0?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function hA(e,t,r){return typeof e=="string"?(e=unescape(e),e=tr(ef(Sr(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=tr(ef(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=tr(ef(Sr(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=tr(ef(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function tr(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},i=Object.assign({},t),n=[],o=Dw(i.scheme||r.scheme);o&&o.serialize&&o.serialize(r,i),r.path!==void 0&&(i.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),i.reference!=="suffix"&&r.scheme&&n.push(r.scheme,":");let s=uA(r);if(s!==void 0&&(i.reference!=="suffix"&&n.push("//"),n.push(s),r.path&&r.path[0]!=="/"&&n.push("/")),r.path!==void 0){let a=r.path;!i.absolutePath&&(!o||!o.absolutePath)&&(a=va(a)),s===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),n.push(a)}return r.query!==void 0&&n.push("?",r.query),r.fragment!==void 0&&n.push("#",r.fragment),n.join("")}var yA=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Sr(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let o=e.match(yA);if(o){if(i.scheme=o[1],i.userinfo=o[3],i.host=o[4],i.port=parseInt(o[5],10),i.path=o[6]||"",i.query=o[7],i.fragment=o[8],isNaN(i.port)&&(i.port=o[5]),i.host)if(dA(i.host)===!1){let c=lA(i.host);i.host=c.host.toLowerCase(),n=c.isIPV6}else n=!0;i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path?i.reference="same-document":i.scheme===void 0?i.reference="relative":i.fragment===void 0?i.reference="absolute":i.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==i.reference&&(i.error=i.error||"URI is not a "+r.reference+" reference.");let s=Dw(r.scheme||i.scheme);if(!r.unicodeSupport&&(!s||!s.unicodeSupport)&&i.host&&(r.domainHost||s&&s.domainHost)&&n===!1&&fA(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(a){i.error=i.error||"Host's domain name can not be converted to ASCII: "+a}(!s||s&&!s.skipNormalize)&&(e.indexOf("%")!==-1&&(i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),i.host!==void 0&&(i.host=unescape(i.host))),i.path&&(i.path=escape(unescape(i.path))),i.fragment&&(i.fragment=encodeURI(decodeURIComponent(i.fragment)))),s&&s.parse&&s.parse(i,r)}else i.error=i.error||"URI can not be parsed.";return i}var nv={SCHEMES:pA,normalize:mA,resolve:gA,resolveComponent:Aw,equal:hA,serialize:tr,parse:Sr};tf.exports=nv;tf.exports.default=nv;tf.exports.fastUri=nv});var Lw=v(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0});var Mw=Rw();Mw.code='require("ajv/dist/runtime/uri").default';iv.default=Mw});var Bw=v(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.CodeGen=Be.Name=Be.nil=Be.stringify=Be.str=Be._=Be.KeywordCxt=void 0;var vA=ha();Object.defineProperty(Be,"KeywordCxt",{enumerable:!0,get:function(){return vA.KeywordCxt}});var no=te();Object.defineProperty(Be,"_",{enumerable:!0,get:function(){return no._}});Object.defineProperty(Be,"str",{enumerable:!0,get:function(){return no.str}});Object.defineProperty(Be,"stringify",{enumerable:!0,get:function(){return no.stringify}});Object.defineProperty(Be,"nil",{enumerable:!0,get:function(){return no.nil}});Object.defineProperty(Be,"Name",{enumerable:!0,get:function(){return no.Name}});Object.defineProperty(Be,"CodeGen",{enumerable:!0,get:function(){return no.CodeGen}});var _A=Hd(),Vw=ya(),bA=jy(),_a=Yd(),$A=te(),ba=pa(),rf=fa(),sv=le(),Uw=ww(),kA=Lw(),Kw=(e,t)=>new RegExp(e,t);Kw.code="new RegExp";var SA=["removeAdditional","useDefaults","coerceTypes"],xA=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),wA={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."},IA={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},qw=200;function zA(e){var t,r,i,n,o,s,a,c,l,u,d,f,p,g,m,h,$,k,x,N,w,q,ee,R,W;let me=e.strict,Ae=(t=e.code)===null||t===void 0?void 0:t.optimize,Ie=Ae===!0||Ae===void 0?1:Ae||0,To=(i=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&i!==void 0?i:Kw,AT=(n=e.uriResolver)!==null&&n!==void 0?n:kA.default;return{strictSchema:(s=(o=e.strictSchema)!==null&&o!==void 0?o:me)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:me)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=e.strictTypes)!==null&&l!==void 0?l:me)!==null&&u!==void 0?u:"log",strictTuples:(f=(d=e.strictTuples)!==null&&d!==void 0?d:me)!==null&&f!==void 0?f:"log",strictRequired:(g=(p=e.strictRequired)!==null&&p!==void 0?p:me)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:Ie,regExp:To}:{optimize:Ie,regExp:To},loopRequired:(m=e.loopRequired)!==null&&m!==void 0?m:qw,loopEnum:(h=e.loopEnum)!==null&&h!==void 0?h:qw,meta:($=e.meta)!==null&&$!==void 0?$:!0,messages:(k=e.messages)!==null&&k!==void 0?k:!0,inlineRefs:(x=e.inlineRefs)!==null&&x!==void 0?x:!0,schemaId:(N=e.schemaId)!==null&&N!==void 0?N:"$id",addUsedSchema:(w=e.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(q=e.validateSchema)!==null&&q!==void 0?q:!0,validateFormats:(ee=e.validateFormats)!==null&&ee!==void 0?ee:!0,unicodeRegExp:(R=e.unicodeRegExp)!==null&&R!==void 0?R:!0,int32range:(W=e.int32range)!==null&&W!==void 0?W:!0,uriResolver:AT}}var $a=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...zA(t)};let{es5:r,lines:i}=this.opts.code;this.scope=new $A.ValueScope({scope:{},prefixes:xA,es5:r,lines:i}),this.logger=jA(t.logger);let n=t.validateFormats;t.validateFormats=!1,this.RULES=(0,bA.getRules)(),Zw.call(this,wA,t,"NOT SUPPORTED"),Zw.call(this,IA,t,"DEPRECATED","warn"),this._metaOpts=NA.call(this),t.formats&&TA.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&EA.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),PA.call(this),t.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:i}=this.opts,n=Uw;i==="id"&&(n={...Uw},n.id=n.$id,delete n.$id),r&&t&&this.addMetaSchema(n,n[i],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let i;if(typeof t=="string"){if(i=this.getSchema(t),!i)throw new Error(`no schema with key or ref "${t}"`)}else i=this.compile(t);let n=i(r);return"$async"in i||(this.errors=i.errors),n}compile(t,r){let i=this._addSchema(t,r);return i.validate||this._compileSchemaEnv(i)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:i}=this.opts;return n.call(this,t,r);async function n(u,d){await o.call(this,u.$schema);let f=this._addSchema(u,d);return f.validate||s.call(this,f)}async function o(u){u&&!this.getSchema(u)&&await n.call(this,{$ref:u},!0)}async function s(u){try{return this._compileSchemaEnv(u)}catch(d){if(!(d instanceof Vw.default))throw d;return a.call(this,d),await c.call(this,d.missingSchema),s.call(this,u)}}function a({missingSchema:u,missingRef:d}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${d} cannot be resolved`)}async function c(u){let d=await l.call(this,u);this.refs[u]||await o.call(this,d.$schema),this.refs[u]||this.addSchema(d,u,r)}async function l(u){let d=this._loading[u];if(d)return d;try{return await(this._loading[u]=i(u))}finally{delete this._loading[u]}}}addSchema(t,r,i,n=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,i,n);return this}let o;if(typeof t=="object"){let{schemaId:s}=this.opts;if(o=t[s],o!==void 0&&typeof o!="string")throw new Error(`schema ${s} must be string`)}return r=(0,ba.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,i,r,n,!0),this}addMetaSchema(t,r,i=this.opts.validateSchema){return this.addSchema(t,r,!0,i),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let i;if(i=t.$schema,i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this.opts.defaultMeta||this.defaultMeta(),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(i,t);if(!n&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return n}getSchema(t){let r;for(;typeof(r=Fw.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:i}=this.opts,n=new _a.SchemaEnv({schema:{},schemaId:i});if(r=_a.resolveSchema.call(this,n,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Fw.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let i=t[this.opts.schemaId];return i&&(i=(0,ba.normalizeId)(i),delete this.schemas[i],delete this.refs[i]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let i;if(typeof t=="string")i=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=i);else if(typeof t=="object"&&r===void 0){if(r=t,i=r.keyword,Array.isArray(i)&&!i.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(DA.call(this,i,r),!r)return(0,sv.eachItem)(i,o=>ov.call(this,o)),this;RA.call(this,r);let n={...r,type:(0,rf.getJSONTypes)(r.type),schemaType:(0,rf.getJSONTypes)(r.schemaType)};return(0,sv.eachItem)(i,n.type.length===0?o=>ov.call(this,o,n):o=>n.type.forEach(s=>ov.call(this,o,n,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let i of r.rules){let n=i.rules.findIndex(o=>o.keyword===t);n>=0&&i.rules.splice(n,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:i="data"}={}){return!t||t.length===0?"No errors":t.map(n=>`${i}${n.instancePath} ${n.message}`).reduce((n,o)=>n+r+o)}$dataMetaSchema(t,r){let i=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let n of r){let o=n.split("/").slice(1),s=t;for(let a of o)s=s[a];for(let a in i){let c=i[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=s[a];l&&u&&(s[a]=Gw(u))}}return t}_removeAllSchemas(t,r){for(let i in t){let n=t[i];(!r||r.test(i))&&(typeof n=="string"?delete t[i]:n&&!n.meta&&(this._cache.delete(n.schema),delete t[i]))}}_addSchema(t,r,i,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;i=(0,ba.normalizeId)(s||i);let l=ba.getSchemaRefs.call(this,t,i);return c=new _a.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:i,localRefs:l}),this._cache.set(c.schema,c),o&&!i.startsWith("#")&&(i&&this._checkUnique(i),this.refs[i]=c),n&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):_a.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{_a.compileSchema.call(this,t)}finally{this.opts=r}}};$a.ValidationError=_A.default;$a.MissingRefError=Vw.default;Be.default=$a;function Zw(e,t,r,i="error"){for(let n in e){let o=n;o in t&&this.logger[i](`${r}: option ${n}. ${e[o]}`)}}function Fw(e){return e=(0,ba.normalizeId)(e),this.schemas[e]||this.refs[e]}function PA(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function TA(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function EA(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function NA(){let e={...this.opts};for(let t of SA)delete e[t];return e}var OA={log(){},warn(){},error(){}};function jA(e){if(e===!1)return OA;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var CA=/^[a-z_$][a-z0-9_$:-]*$/i;function DA(e,t){let{RULES:r}=this;if((0,sv.eachItem)(e,i=>{if(r.keywords[i])throw new Error(`Keyword ${i} is already defined`);if(!CA.test(i))throw new Error(`Keyword ${i} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function ov(e,t,r){var i;let n=t?.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,s=n?o.post:o.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,rf.getJSONTypes)(t.type),schemaType:(0,rf.getJSONTypes)(t.schemaType)}};t.before?AA.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,(i=t.implements)===null||i===void 0||i.forEach(c=>this.addKeyword(c))}function AA(e,t,r){let i=e.rules.findIndex(n=>n.keyword===r);i>=0?e.rules.splice(i,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function RA(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Gw(t)),e.validateSchema=this.compile(t,!0))}var MA={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Gw(e){return{anyOf:[e,MA]}}});var Jw=v(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});var LA={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};av.default=LA});var Qw=v(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.callRef=qn.getValidate=void 0;var UA=ya(),Hw=Nt(),ht=te(),io=$r(),Ww=Yd(),nf=le(),qA={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:i}=e,{baseId:n,schemaEnv:o,validateName:s,opts:a,self:c}=i,{root:l}=o;if((r==="#"||r==="#/")&&n===l.baseId)return d();let u=Ww.resolveRef.call(c,l,n,r);if(u===void 0)throw new UA.default(i.opts.uriResolver,n,r);if(u instanceof Ww.SchemaEnv)return f(u);return p(u);function d(){if(o===l)return of(e,s,o,o.$async);let g=t.scopeValue("root",{ref:l});return of(e,(0,ht._)`${g}.validate`,l,l.$async)}function f(g){let m=Yw(e,g);of(e,m,g,g.$async)}function p(g){let m=t.scopeValue("schema",a.code.source===!0?{ref:g,code:(0,ht.stringify)(g)}:{ref:g}),h=t.name("valid"),$=e.subschema({schema:g,dataTypes:[],schemaPath:ht.nil,topSchemaRef:m,errSchemaPath:r},h);e.mergeEvaluated($),e.ok(h)}}};function Yw(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,ht._)`${r.scopeValue("wrapper",{ref:t})}.validate`}qn.getValidate=Yw;function of(e,t,r,i){let{gen:n,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?io.default.this:ht.nil;i?u():d();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let g=n.let("valid");n.try(()=>{n.code((0,ht._)`await ${(0,Hw.callValidateCode)(e,t,l)}`),p(t),s||n.assign(g,!0)},m=>{n.if((0,ht._)`!(${m} instanceof ${o.ValidationError})`,()=>n.throw(m)),f(m),s||n.assign(g,!1)}),e.ok(g)}function d(){e.result((0,Hw.callValidateCode)(e,t,l),()=>p(t),()=>f(t))}function f(g){let m=(0,ht._)`${g}.errors`;n.assign(io.default.vErrors,(0,ht._)`${io.default.vErrors} === null ? ${m} : ${io.default.vErrors}.concat(${m})`),n.assign(io.default.errors,(0,ht._)`${io.default.vErrors}.length`)}function p(g){var m;if(!o.opts.unevaluated)return;let h=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(o.props!==!0)if(h&&!h.dynamicProps)h.props!==void 0&&(o.props=nf.mergeEvaluated.props(n,h.props,o.props));else{let $=n.var("props",(0,ht._)`${g}.evaluated.props`);o.props=nf.mergeEvaluated.props(n,$,o.props,ht.Name)}if(o.items!==!0)if(h&&!h.dynamicItems)h.items!==void 0&&(o.items=nf.mergeEvaluated.items(n,h.items,o.items));else{let $=n.var("items",(0,ht._)`${g}.evaluated.items`);o.items=nf.mergeEvaluated.items(n,$,o.items,ht.Name)}}}qn.callRef=of;qn.default=qA});var Xw=v(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});var ZA=Jw(),FA=Qw(),VA=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",ZA.default,FA.default];cv.default=VA});var e0=v(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0});var sf=te(),Xr=sf.operators,af={maximum:{okStr:"<=",ok:Xr.LTE,fail:Xr.GT},minimum:{okStr:">=",ok:Xr.GTE,fail:Xr.LT},exclusiveMaximum:{okStr:"<",ok:Xr.LT,fail:Xr.GTE},exclusiveMinimum:{okStr:">",ok:Xr.GT,fail:Xr.LTE}},KA={message:({keyword:e,schemaCode:t})=>(0,sf.str)`must be ${af[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,sf._)`{comparison: ${af[e].okStr}, limit: ${t}}`},GA={keyword:Object.keys(af),type:"number",schemaType:"number",$data:!0,error:KA,code(e){let{keyword:t,data:r,schemaCode:i}=e;e.fail$data((0,sf._)`${r} ${af[t].fail} ${i} || isNaN(${r})`)}};lv.default=GA});var t0=v(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0});var ka=te(),BA={message:({schemaCode:e})=>(0,ka.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,ka._)`{multipleOf: ${e}}`},JA={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:BA,code(e){let{gen:t,data:r,schemaCode:i,it:n}=e,o=n.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,ka._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,ka._)`${s} !== parseInt(${s})`;e.fail$data((0,ka._)`(${i} === 0 || (${s} = ${r}/${i}, ${a}))`)}};uv.default=JA});var n0=v(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});function r0(e){let t=e.length,r=0,i=0,n;for(;i<t;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<t&&(n=e.charCodeAt(i),(n&64512)===56320&&i++);return r}dv.default=r0;r0.code='require("ajv/dist/runtime/ucs2length").default'});var i0=v(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});var Zn=te(),HA=le(),WA=n0(),YA={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Zn.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Zn._)`{limit: ${e}}`},QA={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:YA,code(e){let{keyword:t,data:r,schemaCode:i,it:n}=e,o=t==="maxLength"?Zn.operators.GT:Zn.operators.LT,s=n.opts.unicode===!1?(0,Zn._)`${r}.length`:(0,Zn._)`${(0,HA.useFunc)(e.gen,WA.default)}(${r})`;e.fail$data((0,Zn._)`${s} ${o} ${i}`)}};fv.default=QA});var o0=v(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});var XA=Nt(),eR=le(),oo=te(),tR={message:({schemaCode:e})=>(0,oo.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,oo._)`{pattern: ${e}}`},rR={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:tR,code(e){let{gen:t,data:r,$data:i,schema:n,schemaCode:o,it:s}=e,a=s.opts.unicodeRegExp?"u":"";if(i){let{regExp:c}=s.opts.code,l=c.code==="new RegExp"?(0,oo._)`new RegExp`:(0,eR.useFunc)(t,c),u=t.let("valid");t.try(()=>t.assign(u,(0,oo._)`${l}(${o}, ${a}).test(${r})`),()=>t.assign(u,!1)),e.fail$data((0,oo._)`!${u}`)}else{let c=(0,XA.usePattern)(e,n);e.fail$data((0,oo._)`!${c}.test(${r})`)}}};pv.default=rR});var s0=v(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});var Sa=te(),nR={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Sa.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Sa._)`{limit: ${e}}`},iR={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:nR,code(e){let{keyword:t,data:r,schemaCode:i}=e,n=t==="maxProperties"?Sa.operators.GT:Sa.operators.LT;e.fail$data((0,Sa._)`Object.keys(${r}).length ${n} ${i}`)}};mv.default=iR});var a0=v(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});var xa=Nt(),wa=te(),oR=le(),sR={message:({params:{missingProperty:e}})=>(0,wa.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,wa._)`{missingProperty: ${e}}`},aR={keyword:"required",type:"object",schemaType:"array",$data:!0,error:sR,code(e){let{gen:t,schema:r,schemaCode:i,data:n,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){let p=e.parentSchema.properties,{definedProperties:g}=e.it;for(let m of r)if(p?.[m]===void 0&&!g.has(m)){let h=s.schemaEnv.baseId+s.errSchemaPath,$=`required property "${m}" is not defined at "${h}" (strictRequired)`;(0,oR.checkStrictMode)(s,$,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(wa.nil,d);else for(let p of r)(0,xa.checkReportMissingProp)(e,p)}function u(){let p=t.let("missing");if(c||o){let g=t.let("valid",!0);e.block$data(g,()=>f(p,g)),e.ok(g)}else t.if((0,xa.checkMissingProp)(e,r,p)),(0,xa.reportMissingProp)(e,p),t.else()}function d(){t.forOf("prop",i,p=>{e.setParams({missingProperty:p}),t.if((0,xa.noPropertyInData)(t,n,p,a.ownProperties),()=>e.error())})}function f(p,g){e.setParams({missingProperty:p}),t.forOf(p,i,()=>{t.assign(g,(0,xa.propertyInData)(t,n,p,a.ownProperties)),t.if((0,wa.not)(g),()=>{e.error(),t.break()})},wa.nil)}}};gv.default=aR});var c0=v(hv=>{"use strict";Object.defineProperty(hv,"__esModule",{value:!0});var Ia=te(),cR={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ia.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Ia._)`{limit: ${e}}`},lR={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:cR,code(e){let{keyword:t,data:r,schemaCode:i}=e,n=t==="maxItems"?Ia.operators.GT:Ia.operators.LT;e.fail$data((0,Ia._)`${r}.length ${n} ${i}`)}};hv.default=lR});var cf=v(yv=>{"use strict";Object.defineProperty(yv,"__esModule",{value:!0});var l0=qy();l0.code='require("ajv/dist/runtime/equal").default';yv.default=l0});var u0=v(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});var vv=fa(),Je=te(),uR=le(),dR=cf(),fR={message:({params:{i:e,j:t}})=>(0,Je.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Je._)`{i: ${e}, j: ${t}}`},pR={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fR,code(e){let{gen:t,data:r,$data:i,schema:n,parentSchema:o,schemaCode:s,it:a}=e;if(!i&&!n)return;let c=t.let("valid"),l=o.items?(0,vv.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,Je._)`${s} === false`),e.ok(c);function u(){let g=t.let("i",(0,Je._)`${r}.length`),m=t.let("j");e.setParams({i:g,j:m}),t.assign(c,!0),t.if((0,Je._)`${g} > 1`,()=>(d()?f:p)(g,m))}function d(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}function f(g,m){let h=t.name("item"),$=(0,vv.checkDataTypes)(l,h,a.opts.strictNumbers,vv.DataType.Wrong),k=t.const("indices",(0,Je._)`{}`);t.for((0,Je._)`;${g}--;`,()=>{t.let(h,(0,Je._)`${r}[${g}]`),t.if($,(0,Je._)`continue`),l.length>1&&t.if((0,Je._)`typeof ${h} == "string"`,(0,Je._)`${h} += "_"`),t.if((0,Je._)`typeof ${k}[${h}] == "number"`,()=>{t.assign(m,(0,Je._)`${k}[${h}]`),e.error(),t.assign(c,!1).break()}).code((0,Je._)`${k}[${h}] = ${g}`)})}function p(g,m){let h=(0,uR.useFunc)(t,dR.default),$=t.name("outer");t.label($).for((0,Je._)`;${g}--;`,()=>t.for((0,Je._)`${m} = ${g}; ${m}--;`,()=>t.if((0,Je._)`${h}(${r}[${g}], ${r}[${m}])`,()=>{e.error(),t.assign(c,!1).break($)})))}}};_v.default=pR});var d0=v($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0});var bv=te(),mR=le(),gR=cf(),hR={message:"must be equal to constant",params:({schemaCode:e})=>(0,bv._)`{allowedValue: ${e}}`},yR={keyword:"const",$data:!0,error:hR,code(e){let{gen:t,data:r,$data:i,schemaCode:n,schema:o}=e;i||o&&typeof o=="object"?e.fail$data((0,bv._)`!${(0,mR.useFunc)(t,gR.default)}(${r}, ${n})`):e.fail((0,bv._)`${o} !== ${r}`)}};$v.default=yR});var f0=v(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0});var za=te(),vR=le(),_R=cf(),bR={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,za._)`{allowedValues: ${e}}`},$R={keyword:"enum",schemaType:"array",$data:!0,error:bR,code(e){let{gen:t,data:r,$data:i,schema:n,schemaCode:o,it:s}=e;if(!i&&n.length===0)throw new Error("enum must have non-empty array");let a=n.length>=s.opts.loopEnum,c,l=()=>c??(c=(0,vR.useFunc)(t,_R.default)),u;if(a||i)u=t.let("valid"),e.block$data(u,d);else{if(!Array.isArray(n))throw new Error("ajv implementation error");let p=t.const("vSchema",o);u=(0,za.or)(...n.map((g,m)=>f(p,m)))}e.pass(u);function d(){t.assign(u,!1),t.forOf("v",o,p=>t.if((0,za._)`${l()}(${r}, ${p})`,()=>t.assign(u,!0).break()))}function f(p,g){let m=n[g];return typeof m=="object"&&m!==null?(0,za._)`${l()}(${r}, ${p}[${g}])`:(0,za._)`${r} === ${m}`}}};kv.default=$R});var p0=v(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});var kR=e0(),SR=t0(),xR=i0(),wR=o0(),IR=s0(),zR=a0(),PR=c0(),TR=u0(),ER=d0(),NR=f0(),OR=[kR.default,SR.default,xR.default,wR.default,IR.default,zR.default,PR.default,TR.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ER.default,NR.default];Sv.default=OR});var wv=v(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.validateAdditionalItems=void 0;var Fn=te(),xv=le(),jR={message:({params:{len:e}})=>(0,Fn.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Fn._)`{limit: ${e}}`},CR={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:jR,code(e){let{parentSchema:t,it:r}=e,{items:i}=t;if(!Array.isArray(i)){(0,xv.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}m0(e,i)}};function m0(e,t){let{gen:r,schema:i,data:n,keyword:o,it:s}=e;s.items=!0;let a=r.const("len",(0,Fn._)`${n}.length`);if(i===!1)e.setParams({len:t.length}),e.pass((0,Fn._)`${a} <= ${t.length}`);else if(typeof i=="object"&&!(0,xv.alwaysValidSchema)(s,i)){let l=r.var("valid",(0,Fn._)`${a} <= ${t.length}`);r.if((0,Fn.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:xv.Type.Num},l),s.allErrors||r.if((0,Fn.not)(l),()=>r.break())})}}Pa.validateAdditionalItems=m0;Pa.default=CR});var Iv=v(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.validateTuple=void 0;var g0=te(),lf=le(),DR=Nt(),AR={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return h0(e,"additionalItems",t);r.items=!0,!(0,lf.alwaysValidSchema)(r,t)&&e.ok((0,DR.validateArray)(e))}};function h0(e,t,r=e.schema){let{gen:i,parentSchema:n,data:o,keyword:s,it:a}=e;u(n),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=lf.mergeEvaluated.items(i,r.length,a.items));let c=i.name("valid"),l=i.const("len",(0,g0._)`${o}.length`);r.forEach((d,f)=>{(0,lf.alwaysValidSchema)(a,d)||(i.if((0,g0._)`${l} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function u(d){let{opts:f,errSchemaPath:p}=a,g=r.length,m=g===d.minItems&&(g===d.maxItems||d[t]===!1);if(f.strictTuples&&!m){let h=`"${s}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${p}"`;(0,lf.checkStrictMode)(a,h,f.strictTuples)}}}Ta.validateTuple=h0;Ta.default=AR});var y0=v(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var RR=Iv(),MR={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,RR.validateTuple)(e,"items")};zv.default=MR});var _0=v(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});var v0=te(),LR=le(),UR=Nt(),qR=wv(),ZR={message:({params:{len:e}})=>(0,v0.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,v0._)`{limit: ${e}}`},FR={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:ZR,code(e){let{schema:t,parentSchema:r,it:i}=e,{prefixItems:n}=r;i.items=!0,!(0,LR.alwaysValidSchema)(i,t)&&(n?(0,qR.validateAdditionalItems)(e,n):e.ok((0,UR.validateArray)(e)))}};Pv.default=FR});var b0=v(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});var jt=te(),uf=le(),VR={message:({params:{min:e,max:t}})=>t===void 0?(0,jt.str)`must contain at least ${e} valid item(s)`:(0,jt.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,jt._)`{minContains: ${e}}`:(0,jt._)`{minContains: ${e}, maxContains: ${t}}`},KR={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:VR,code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:o}=e,s,a,{minContains:c,maxContains:l}=i;o.opts.next?(s=c===void 0?1:c,a=l):s=1;let u=t.const("len",(0,jt._)`${n}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,uf.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,uf.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,uf.alwaysValidSchema)(o,r)){let m=(0,jt._)`${u} >= ${s}`;a!==void 0&&(m=(0,jt._)`${m} && ${u} <= ${a}`),e.pass(m);return}o.items=!0;let d=t.name("valid");a===void 0&&s===1?p(d,()=>t.if(d,()=>t.break())):s===0?(t.let(d,!0),a!==void 0&&t.if((0,jt._)`${n}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){let m=t.name("_valid"),h=t.let("count",0);p(m,()=>t.if(m,()=>g(h)))}function p(m,h){t.forRange("i",0,u,$=>{e.subschema({keyword:"contains",dataProp:$,dataPropType:uf.Type.Num,compositeRule:!0},m),h()})}function g(m){t.code((0,jt._)`${m}++`),a===void 0?t.if((0,jt._)`${m} >= ${s}`,()=>t.assign(d,!0).break()):(t.if((0,jt._)`${m} > ${a}`,()=>t.assign(d,!1).break()),s===1?t.assign(d,!0):t.if((0,jt._)`${m} >= ${s}`,()=>t.assign(d,!0)))}}};Tv.default=KR});var S0=v(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.validateSchemaDeps=rr.validatePropertyDeps=rr.error=void 0;var Ev=te(),GR=le(),Ea=Nt();rr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let i=t===1?"property":"properties";return(0,Ev.str)`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>(0,Ev._)`{property: ${e},
7
7
  missingProperty: ${i},
8
8
  depsCount: ${t},
9
- deps: ${r}}`};var GR={keyword:"dependencies",type:"object",schemaType:"object",error:rr.error,code(e){let[t,r]=BR(e);b0(e,t),$0(e,r)}};function BR({schema:e}){let t={},r={};for(let i in e){if(i==="__proto__")continue;let n=Array.isArray(e[i])?t:r;n[i]=e[i]}return[t,r]}function b0(e,t=e.schema){let{gen:r,data:i,it:n}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,Ta.propertyInData)(r,i,s,n.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),n.allErrors?r.if(c,()=>{for(let l of a)(0,Ta.checkReportMissingProp)(e,l)}):(r.if((0,Ev._)`${c} && (${(0,Ta.checkMissingProp)(e,a,o)})`),(0,Ta.reportMissingProp)(e,o),r.else())}}rr.validatePropertyDeps=b0;function $0(e,t=e.schema){let{gen:r,data:i,keyword:n,it:o}=e,s=r.name("valid");for(let a in t)(0,KR.alwaysValidSchema)(o,t[a])||(r.if((0,Ta.propertyInData)(r,i,a,o.opts.ownProperties),()=>{let c=e.subschema({keyword:n,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}rr.validateSchemaDeps=$0;rr.default=GR});var x0=v(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0});var S0=te(),JR=le(),HR={message:"property name must be valid",params:({params:e})=>(0,S0._)`{propertyName: ${e.propertyName}}`},WR={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:HR,code(e){let{gen:t,schema:r,data:i,it:n}=e;if((0,JR.alwaysValidSchema)(n,r))return;let o=t.name("valid");t.forIn("key",i,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,S0.not)(o),()=>{e.error(!0),n.allErrors||t.break()})}),e.ok(o)}};Nv.default=WR});var jv=v(Ov=>{"use strict";Object.defineProperty(Ov,"__esModule",{value:!0});var df=Nt(),Vt=te(),YR=$r(),ff=le(),QR={message:"must NOT have additional properties",params:({params:e})=>(0,Vt._)`{additionalProperty: ${e.additionalProperty}}`},XR={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:QR,code(e){let{gen:t,schema:r,parentSchema:i,data:n,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,ff.alwaysValidSchema)(s,r))return;let l=(0,df.allSchemaProperties)(i.properties),u=(0,df.allSchemaProperties)(i.patternProperties);d(),e.ok((0,Vt._)`${o} === ${YR.default.errors}`);function d(){t.forIn("key",n,h=>{!l.length&&!u.length?g(h):t.if(f(h),()=>g(h))})}function f(h){let $;if(l.length>8){let k=(0,ff.schemaRefOrVal)(s,i.properties,"properties");$=(0,df.isOwnProperty)(t,k,h)}else l.length?$=(0,Vt.or)(...l.map(k=>(0,Vt._)`${h} === ${k}`)):$=Vt.nil;return u.length&&($=(0,Vt.or)($,...u.map(k=>(0,Vt._)`${(0,df.usePattern)(e,k)}.test(${h})`))),(0,Vt.not)($)}function p(h){t.code((0,Vt._)`delete ${n}[${h}]`)}function g(h){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){p(h);return}if(r===!1){e.setParams({additionalProperty:h}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,ff.alwaysValidSchema)(s,r)){let $=t.name("valid");c.removeAdditional==="failing"?(m(h,$,!1),t.if((0,Vt.not)($),()=>{e.reset(),p(h)})):(m(h,$),a||t.if((0,Vt.not)($),()=>t.break()))}}function m(h,$,k){let x={keyword:"additionalProperties",dataProp:h,dataPropType:ff.Type.Str};k===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(x,$)}}};Ov.default=XR});var z0=v(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});var eM=ga(),w0=Nt(),Cv=le(),I0=jv(),tM={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:o}=e;o.opts.removeAdditional==="all"&&i.additionalProperties===void 0&&I0.default.code(new eM.KeywordCxt(o,I0.default,"additionalProperties"));let s=(0,w0.allSchemaProperties)(r);for(let d of s)o.definedProperties.add(d);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=Cv.mergeEvaluated.props(t,(0,Cv.toHash)(s),o.props));let a=s.filter(d=>!(0,Cv.alwaysValidSchema)(o,r[d]));if(a.length===0)return;let c=t.name("valid");for(let d of a)l(d)?u(d):(t.if((0,w0.propertyInData)(t,n,d,o.opts.ownProperties)),u(d),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(c);function l(d){return o.opts.useDefaults&&!o.compositeRule&&r[d].default!==void 0}function u(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},c)}}};Dv.default=tM});var N0=v(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});var P0=Nt(),pf=te(),T0=le(),E0=le(),rM={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:i,parentSchema:n,it:o}=e,{opts:s}=o,a=(0,P0.allSchemaProperties)(r),c=a.filter(m=>(0,T0.alwaysValidSchema)(o,r[m]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&n.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof pf.Name)&&(o.props=(0,E0.evaluatedPropsToName)(t,o.props));let{props:d}=o;f();function f(){for(let m of a)l&&p(m),o.allErrors?g(m):(t.var(u,!0),g(m),t.if(u))}function p(m){for(let h in l)new RegExp(m).test(h)&&(0,T0.checkStrictMode)(o,`property ${h} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){t.forIn("key",i,h=>{t.if((0,pf._)`${(0,P0.usePattern)(e,m)}.test(${h})`,()=>{let $=c.includes(m);$||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:h,dataPropType:E0.Type.Str},u),o.opts.unevaluated&&d!==!0?t.assign((0,pf._)`${d}[${h}]`,!0):!$&&!o.allErrors&&t.if((0,pf.not)(u),()=>t.break())})})}}};Av.default=rM});var O0=v(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});var nM=le(),iM={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:i}=e;if((0,nM.alwaysValidSchema)(i,r)){e.fail();return}let n=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),e.failResult(n,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Rv.default=iM});var j0=v(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});var oM=Nt(),sM={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:oM.validateUnion,error:{message:"must match a schema in anyOf"}};Mv.default=sM});var C0=v(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});var mf=te(),aM=le(),cM={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,mf._)`{passingSchemas: ${e.passing}}`},lM={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:cM,code(e){let{gen:t,schema:r,parentSchema:i,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&i.discriminator)return;let o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,d)=>{let f;(0,aM.alwaysValidSchema)(n,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},c),d>0&&t.if((0,mf._)`${c} && ${s}`).assign(s,!1).assign(a,(0,mf._)`[${a}, ${d}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,d),f&&e.mergeEvaluated(f,mf.Name)})})}}};Lv.default=lM});var D0=v(Uv=>{"use strict";Object.defineProperty(Uv,"__esModule",{value:!0});var uM=le(),dM={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let n=t.name("valid");r.forEach((o,s)=>{if((0,uM.alwaysValidSchema)(i,o))return;let a=e.subschema({keyword:"allOf",schemaProp:s},n);e.ok(n),e.mergeEvaluated(a)})}};Uv.default=dM});var M0=v(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});var gf=te(),R0=le(),fM={message:({params:e})=>(0,gf.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,gf._)`{failingKeyword: ${e.ifClause}}`},pM={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:fM,code(e){let{gen:t,parentSchema:r,it:i}=e;r.then===void 0&&r.else===void 0&&(0,R0.checkStrictMode)(i,'"if" without "then" and "else" is ignored');let n=A0(i,"then"),o=A0(i,"else");if(!n&&!o)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),n&&o){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else n?t.if(a,l("then")):t.if((0,gf.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,d){return()=>{let f=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(f,s),d?t.assign(d,(0,gf._)`${u}`):e.setParams({ifClause:u})}}}};function A0(e,t){let r=e.schema[t];return r!==void 0&&!(0,R0.alwaysValidSchema)(e,r)}qv.default=pM});var L0=v(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0});var mM=le(),gM={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,mM.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Zv.default=gM});var U0=v(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});var hM=wv(),yM=h0(),vM=Iv(),_M=v0(),bM=_0(),$M=k0(),kM=x0(),SM=jv(),xM=z0(),wM=N0(),IM=O0(),zM=j0(),PM=C0(),TM=D0(),EM=M0(),NM=L0();function OM(e=!1){let t=[IM.default,zM.default,PM.default,TM.default,EM.default,NM.default,kM.default,SM.default,$M.default,xM.default,wM.default];return e?t.push(yM.default,_M.default):t.push(hM.default,vM.default),t.push(bM.default),t}Fv.default=OM});var q0=v(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});var Ne=te(),jM={message:({schemaCode:e})=>(0,Ne.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ne._)`{format: ${e}}`},CM={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:jM,code(e,t){let{gen:r,data:i,$data:n,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:d}=a;if(!c.validateFormats)return;n?f():p();function f(){let g=r.scopeValue("formats",{ref:d.formats,code:c.code.formats}),m=r.const("fDef",(0,Ne._)`${g}[${s}]`),h=r.let("fType"),$=r.let("format");r.if((0,Ne._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(h,(0,Ne._)`${m}.type || "string"`).assign($,(0,Ne._)`${m}.validate`),()=>r.assign(h,(0,Ne._)`"string"`).assign($,m)),e.fail$data((0,Ne.or)(k(),x()));function k(){return c.strictSchema===!1?Ne.nil:(0,Ne._)`${s} && !${$}`}function x(){let N=u.$async?(0,Ne._)`(${m}.async ? await ${$}(${i}) : ${$}(${i}))`:(0,Ne._)`${$}(${i})`,w=(0,Ne._)`(typeof ${$} == "function" ? ${N} : ${$}.test(${i}))`;return(0,Ne._)`${$} && ${$} !== true && ${h} === ${t} && !${w}`}}function p(){let g=d.formats[o];if(!g){k();return}if(g===!0)return;let[m,h,$]=x(g);m===t&&e.pass(N());function k(){if(c.strictSchema===!1){d.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function x(w){let q=w instanceof RegExp?(0,Ne.regexpCode)(w):c.code.formats?(0,Ne._)`${c.code.formats}${(0,Ne.getProperty)(o)}`:void 0,ee=r.scopeValue("formats",{key:o,ref:w,code:q});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,Ne._)`${ee}.validate`]:["string",w,ee]}function N(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ne._)`await ${$}(${i})`}return typeof h=="function"?(0,Ne._)`${$}(${i})`:(0,Ne._)`${$}.test(${i})`}}}};Vv.default=CM});var Z0=v(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});var DM=q0(),AM=[DM.default];Kv.default=AM});var F0=v(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.contentVocabulary=so.metadataVocabulary=void 0;so.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];so.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var K0=v(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0});var RM=Qw(),MM=f0(),LM=U0(),UM=Z0(),V0=F0(),qM=[RM.default,MM.default,(0,LM.default)(),UM.default,V0.metadataVocabulary,V0.contentVocabulary];Gv.default=qM});var B0=v(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.DiscrError=void 0;var G0;(function(e){e.Tag="tag",e.Mapping="mapping"})(G0||(hf.DiscrError=G0={}))});var H0=v(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0});var ao=te(),Bv=B0(),J0=Yd(),ZM=ha(),FM=le(),VM={message:({params:{discrError:e,tagName:t}})=>e===Bv.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,ao._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},KM={keyword:"discriminator",type:"object",schemaType:"object",error:VM,code(e){let{gen:t,data:r,schema:i,parentSchema:n,it:o}=e,{oneOf:s}=n;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=i.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,ao._)`${r}${(0,ao.getProperty)(a)}`);t.if((0,ao._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:Bv.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){let p=f();t.if(!1);for(let g in p)t.elseIf((0,ao._)`${l} === ${g}`),t.assign(c,d(p[g]));t.else(),e.error(!1,{discrError:Bv.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function d(p){let g=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:p},g);return e.mergeEvaluated(m,ao.Name),g}function f(){var p;let g={},m=$(n),h=!0;for(let N=0;N<s.length;N++){let w=s[N];if(w?.$ref&&!(0,FM.schemaHasRulesButRef)(w,o.self.RULES)){let ee=w.$ref;if(w=J0.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,ee),w instanceof J0.SchemaEnv&&(w=w.schema),w===void 0)throw new ZM.default(o.opts.uriResolver,o.baseId,ee)}let q=(p=w?.properties)===null||p===void 0?void 0:p[a];if(typeof q!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);h=h&&(m||$(w)),k(q,N)}if(!h)throw new Error(`discriminator: "${a}" must be required`);return g;function $({required:N}){return Array.isArray(N)&&N.includes(a)}function k(N,w){if(N.const)x(N.const,w);else if(N.enum)for(let q of N.enum)x(q,w);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function x(N,w){if(typeof N!="string"||N in g)throw new Error(`discriminator: "${a}" values must be unique strings`);g[N]=w}}}};Jv.default=KM});var W0=v((HH,GM)=>{GM.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}});var Wv=v((Pe,Hv)=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.MissingRefError=Pe.ValidationError=Pe.CodeGen=Pe.Name=Pe.nil=Pe.stringify=Pe.str=Pe._=Pe.KeywordCxt=Pe.Ajv=void 0;var BM=Gw(),JM=K0(),HM=H0(),Y0=W0(),WM=["/properties"],yf="http://json-schema.org/draft-07/schema",co=class extends BM.default{_addVocabularies(){super._addVocabularies(),JM.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(HM.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Y0,WM):Y0;this.addMetaSchema(t,yf,!1),this.refs["http://json-schema.org/schema"]=yf}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(yf)?yf:void 0)}};Pe.Ajv=co;Hv.exports=Pe=co;Hv.exports.Ajv=co;Object.defineProperty(Pe,"__esModule",{value:!0});Pe.default=co;var YM=ga();Object.defineProperty(Pe,"KeywordCxt",{enumerable:!0,get:function(){return YM.KeywordCxt}});var lo=te();Object.defineProperty(Pe,"_",{enumerable:!0,get:function(){return lo._}});Object.defineProperty(Pe,"str",{enumerable:!0,get:function(){return lo.str}});Object.defineProperty(Pe,"stringify",{enumerable:!0,get:function(){return lo.stringify}});Object.defineProperty(Pe,"nil",{enumerable:!0,get:function(){return lo.nil}});Object.defineProperty(Pe,"Name",{enumerable:!0,get:function(){return lo.Name}});Object.defineProperty(Pe,"CodeGen",{enumerable:!0,get:function(){return lo.CodeGen}});var QM=Hd();Object.defineProperty(Pe,"ValidationError",{enumerable:!0,get:function(){return QM.default}});var XM=ha();Object.defineProperty(Pe,"MissingRefError",{enumerable:!0,get:function(){return XM.default}})});var oI=v(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.formatNames=ir.fastFormats=ir.fullFormats=void 0;function nr(e,t){return{validate:e,compare:t}}ir.fullFormats={date:nr(tI,e_),time:nr(Qv(!0),t_),"date-time":nr(Q0(!0),nI),"iso-time":nr(Qv(),rI),"iso-date-time":nr(Q0(),iI),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:o4,"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:f4,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:s4,int32:{type:"number",validate:l4},int64:{type:"number",validate:u4},float:{type:"number",validate:eI},double:{type:"number",validate:eI},password:!0,binary:!0};ir.fastFormats={...ir.fullFormats,date:nr(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,e_),time:nr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,t_),"date-time":nr(/^\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,nI),"iso-time":nr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,rI),"iso-date-time":nr(/^\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,iI),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};ir.formatNames=Object.keys(ir.fullFormats);function e4(e){return e%4===0&&(e%100!==0||e%400===0)}var t4=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,r4=[0,31,28,31,30,31,30,31,31,30,31,30,31];function tI(e){let t=t4.exec(e);if(!t)return!1;let r=+t[1],i=+t[2],n=+t[3];return i>=1&&i<=12&&n>=1&&n<=(i===2&&e4(r)?29:r4[i])}function e_(e,t){if(e&&t)return e>t?1:e<t?-1:0}var Yv=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Qv(e){return function(r){let i=Yv.exec(r);if(!i)return!1;let n=+i[1],o=+i[2],s=+i[3],a=i[4],c=i[5]==="-"?-1:1,l=+(i[6]||0),u=+(i[7]||0);if(l>23||u>59||e&&!a)return!1;if(n<=23&&o<=59&&s<60)return!0;let d=o-u*c,f=n-l*c-(d<0?1:0);return(f===23||f===-1)&&(d===59||d===-1)&&s<61}}function t_(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),i=new Date("2020-01-01T"+t).valueOf();if(r&&i)return r-i}function rI(e,t){if(!(e&&t))return;let r=Yv.exec(e),i=Yv.exec(t);if(r&&i)return e=r[1]+r[2]+r[3],t=i[1]+i[2]+i[3],e>t?1:e<t?-1:0}var Xv=/t|\s/i;function Q0(e){let t=Qv(e);return function(i){let n=i.split(Xv);return n.length===2&&tI(n[0])&&t(n[1])}}function nI(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),i=new Date(t).valueOf();if(r&&i)return r-i}function iI(e,t){if(!(e&&t))return;let[r,i]=e.split(Xv),[n,o]=t.split(Xv),s=e_(r,n);if(s!==void 0)return s||t_(i,o)}var n4=/\/|:/,i4=/^(?:[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 o4(e){return n4.test(e)&&i4.test(e)}var X0=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function s4(e){return X0.lastIndex=0,X0.test(e)}var a4=-(2**31),c4=2**31-1;function l4(e){return Number.isInteger(e)&&e<=c4&&e>=a4}function u4(e){return Number.isInteger(e)}function eI(){return!0}var d4=/[^\\]\\Z/;function f4(e){if(d4.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var sI=v(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.formatLimitDefinition=void 0;var p4=Wv(),Kt=te(),en=Kt.operators,vf={formatMaximum:{okStr:"<=",ok:en.LTE,fail:en.GT},formatMinimum:{okStr:">=",ok:en.GTE,fail:en.LT},formatExclusiveMaximum:{okStr:"<",ok:en.LT,fail:en.GTE},formatExclusiveMinimum:{okStr:">",ok:en.GT,fail:en.LTE}},m4={message:({keyword:e,schemaCode:t})=>(0,Kt.str)`should be ${vf[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Kt._)`{comparison: ${vf[e].okStr}, limit: ${t}}`};uo.formatLimitDefinition={keyword:Object.keys(vf),type:"string",schemaType:"string",$data:!0,error:m4,code(e){let{gen:t,data:r,schemaCode:i,keyword:n,it:o}=e,{opts:s,self:a}=o;if(!s.validateFormats)return;let c=new p4.KeywordCxt(o,a.RULES.all.format.definition,"format");c.$data?l():u();function l(){let f=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),p=t.const("fmt",(0,Kt._)`${f}[${c.schemaCode}]`);e.fail$data((0,Kt.or)((0,Kt._)`typeof ${p} != "object"`,(0,Kt._)`${p} instanceof RegExp`,(0,Kt._)`typeof ${p}.compare != "function"`,d(p)))}function u(){let f=c.schema,p=a.formats[f];if(!p||p===!0)return;if(typeof p!="object"||p instanceof RegExp||typeof p.compare!="function")throw new Error(`"${n}": format "${f}" does not define "compare" function`);let g=t.scopeValue("formats",{key:f,ref:p,code:s.code.formats?(0,Kt._)`${s.code.formats}${(0,Kt.getProperty)(f)}`:void 0});e.fail$data(d(g))}function d(f){return(0,Kt._)`${f}.compare(${r}, ${i}) ${vf[n].fail} 0`}},dependencies:["format"]};var g4=e=>(e.addKeyword(uo.formatLimitDefinition),e);uo.default=g4});var uI=v((Ea,lI)=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var fo=oI(),h4=sI(),r_=te(),aI=new r_.Name("fullFormats"),y4=new r_.Name("fastFormats"),n_=(e,t={keywords:!0})=>{if(Array.isArray(t))return cI(e,t,fo.fullFormats,aI),e;let[r,i]=t.mode==="fast"?[fo.fastFormats,y4]:[fo.fullFormats,aI],n=t.formats||fo.formatNames;return cI(e,n,r,i),t.keywords&&(0,h4.default)(e),e};n_.get=(e,t="full")=>{let i=(t==="fast"?fo.fastFormats:fo.fullFormats)[e];if(!i)throw new Error(`Unknown format "${e}"`);return i};function cI(e,t,r,i){var n,o;(n=(o=e.opts.code).formats)!==null&&n!==void 0||(o.formats=(0,r_._)`require("ajv-formats/dist/formats").${i}`);for(let s of t)e.addFormat(s,r[s])}lI.exports=Ea=n_;Object.defineProperty(Ea,"__esModule",{value:!0});Ea.default=n_});var de=v(He=>{"use strict";var o_=Symbol.for("yaml.alias"),yI=Symbol.for("yaml.document"),xf=Symbol.for("yaml.map"),vI=Symbol.for("yaml.pair"),s_=Symbol.for("yaml.scalar"),wf=Symbol.for("yaml.seq"),xr=Symbol.for("yaml.node.type"),b4=e=>!!e&&typeof e=="object"&&e[xr]===o_,$4=e=>!!e&&typeof e=="object"&&e[xr]===yI,k4=e=>!!e&&typeof e=="object"&&e[xr]===xf,S4=e=>!!e&&typeof e=="object"&&e[xr]===vI,_I=e=>!!e&&typeof e=="object"&&e[xr]===s_,x4=e=>!!e&&typeof e=="object"&&e[xr]===wf;function bI(e){if(e&&typeof e=="object")switch(e[xr]){case xf:case wf:return!0}return!1}function w4(e){if(e&&typeof e=="object")switch(e[xr]){case o_:case xf:case s_:case wf:return!0}return!1}var I4=e=>(_I(e)||bI(e))&&!!e.anchor;He.ALIAS=o_;He.DOC=yI;He.MAP=xf;He.NODE_TYPE=xr;He.PAIR=vI;He.SCALAR=s_;He.SEQ=wf;He.hasAnchor=I4;He.isAlias=b4;He.isCollection=bI;He.isDocument=$4;He.isMap=k4;He.isNode=w4;He.isPair=S4;He.isScalar=_I;He.isSeq=x4});var Na=v(a_=>{"use strict";var Ce=de(),yt=Symbol("break visit"),$I=Symbol("skip children"),or=Symbol("remove node");function If(e,t){let r=kI(t);Ce.isDocument(e)?po(null,e.contents,r,Object.freeze([e]))===or&&(e.contents=null):po(null,e,r,Object.freeze([]))}If.BREAK=yt;If.SKIP=$I;If.REMOVE=or;function po(e,t,r,i){let n=SI(e,t,r,i);if(Ce.isNode(n)||Ce.isPair(n))return xI(e,i,n),po(e,n,r,i);if(typeof n!="symbol"){if(Ce.isCollection(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){let s=po(o,t.items[o],r,i);if(typeof s=="number")o=s-1;else{if(s===yt)return yt;s===or&&(t.items.splice(o,1),o-=1)}}}else if(Ce.isPair(t)){i=Object.freeze(i.concat(t));let o=po("key",t.key,r,i);if(o===yt)return yt;o===or&&(t.key=null);let s=po("value",t.value,r,i);if(s===yt)return yt;s===or&&(t.value=null)}}return n}async function zf(e,t){let r=kI(t);Ce.isDocument(e)?await mo(null,e.contents,r,Object.freeze([e]))===or&&(e.contents=null):await mo(null,e,r,Object.freeze([]))}zf.BREAK=yt;zf.SKIP=$I;zf.REMOVE=or;async function mo(e,t,r,i){let n=await SI(e,t,r,i);if(Ce.isNode(n)||Ce.isPair(n))return xI(e,i,n),mo(e,n,r,i);if(typeof n!="symbol"){if(Ce.isCollection(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){let s=await mo(o,t.items[o],r,i);if(typeof s=="number")o=s-1;else{if(s===yt)return yt;s===or&&(t.items.splice(o,1),o-=1)}}}else if(Ce.isPair(t)){i=Object.freeze(i.concat(t));let o=await mo("key",t.key,r,i);if(o===yt)return yt;o===or&&(t.key=null);let s=await mo("value",t.value,r,i);if(s===yt)return yt;s===or&&(t.value=null)}}return n}function kI(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 SI(e,t,r,i){if(typeof r=="function")return r(e,t,i);if(Ce.isMap(t))return r.Map?.(e,t,i);if(Ce.isSeq(t))return r.Seq?.(e,t,i);if(Ce.isPair(t))return r.Pair?.(e,t,i);if(Ce.isScalar(t))return r.Scalar?.(e,t,i);if(Ce.isAlias(t))return r.Alias?.(e,t,i)}function xI(e,t,r){let i=t[t.length-1];if(Ce.isCollection(i))i.items[e]=r;else if(Ce.isPair(i))e==="key"?i.key=r:i.value=r;else if(Ce.isDocument(i))i.contents=r;else{let n=Ce.isAlias(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}a_.visit=If;a_.visitAsync=zf});var c_=v(II=>{"use strict";var wI=de(),z4=Na(),P4={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},T4=e=>e.replace(/[!,[\]{}]/g,t=>P4[t]),Oa=class e{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,r)}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,r){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]+/),n=i.shift();switch(n){case"%TAG":{if(i.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;let[o,s]=i;return this.tags[o]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return r(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 s=/^\d+\.\d+$/.test(o);return r(6,`Unsupported YAML version ${o}`,s),!1}}default:return r(0,`Unknown directive ${n}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let s=t.slice(2,-1);return s==="!"||s==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),s)}let[,i,n]=t.match(/^(.*!)([^!]*)$/s);n||r(`The ${t} tag has no suffix`);let o=this.tags[i];if(o)try{return o+decodeURIComponent(n)}catch(s){return r(String(s)),null}return i==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[r,i]of Object.entries(this.tags))if(t.startsWith(i))return r+T4(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),n;if(t&&i.length>0&&wI.isNode(t.contents)){let o={};z4.visit(t.contents,(s,a)=>{wI.isNode(a)&&a.tag&&(o[a.tag]=!0)}),n=Object.keys(o)}else n=[];for(let[o,s]of i)o==="!!"&&s==="tag:yaml.org,2002:"||(!t||n.some(a=>a.startsWith(s)))&&r.push(`%TAG ${o} ${s}`);return r.join(`
10
- `)}};Oa.defaultYaml={explicit:!1,version:"1.2"};Oa.defaultTags={"!!":"tag:yaml.org,2002:"};II.Directives=Oa});var Pf=v(ja=>{"use strict";var zI=de(),E4=Na();function N4(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function PI(e){let t=new Set;return E4.visit(e,{Value(r,i){i.anchor&&t.add(i.anchor)}}),t}function TI(e,t){for(let r=1;;++r){let i=`${e}${r}`;if(!t.has(i))return i}}function O4(e,t){let r=[],i=new Map,n=null;return{onAnchor:o=>{r.push(o),n??(n=PI(e));let s=TI(t,n);return n.add(s),s},setAnchors:()=>{for(let o of r){let s=i.get(o);if(typeof s=="object"&&s.anchor&&(zI.isScalar(s.node)||zI.isCollection(s.node)))s.node.anchor=s.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=o,a}}},sourceObjects:i}}ja.anchorIsValid=N4;ja.anchorNames=PI;ja.createNodeAnchors=O4;ja.findNewAnchor=TI});var l_=v(EI=>{"use strict";function Ca(e,t,r,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let n=0,o=i.length;n<o;++n){let s=i[n],a=Ca(e,i,String(n),s);a===void 0?delete i[n]:a!==s&&(i[n]=a)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let o=i.get(n),s=Ca(e,i,n,o);s===void 0?i.delete(n):s!==o&&i.set(n,s)}else if(i instanceof Set)for(let n of Array.from(i)){let o=Ca(e,i,n,n);o===void 0?i.delete(n):o!==n&&(i.delete(n),i.add(o))}else for(let[n,o]of Object.entries(i)){let s=Ca(e,i,n,o);s===void 0?delete i[n]:s!==o&&(i[n]=s)}return e.call(t,r,i)}EI.applyReviver=Ca});var rn=v(OI=>{"use strict";var j4=de();function NI(e,t,r){if(Array.isArray(e))return e.map((i,n)=>NI(i,String(n),r));if(e&&typeof e.toJSON=="function"){if(!r||!j4.hasAnchor(e))return e.toJSON(t,r);let i={aliasCount:0,count:1,res:void 0};r.anchors.set(e,i),r.onCreate=o=>{i.res=o,delete r.onCreate};let n=e.toJSON(t,r);return r.onCreate&&r.onCreate(n),n}return typeof e=="bigint"&&!r?.keep?Number(e):e}OI.toJS=NI});var Tf=v(CI=>{"use strict";var C4=l_(),jI=de(),D4=rn(),u_=class{constructor(t){Object.defineProperty(this,jI.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:r,maxAliasCount:i,onAnchor:n,reviver:o}={}){if(!jI.isDocument(t))throw new TypeError("A document argument is required");let s={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},a=D4.toJS(this,"",s);if(typeof n=="function")for(let{count:c,res:l}of s.anchors.values())n(l,c);return typeof o=="function"?C4.applyReviver(o,{"":a},"",a):a}};CI.NodeBase=u_});var Da=v(DI=>{"use strict";var A4=Pf(),R4=Na(),go=de(),M4=Tf(),L4=rn(),d_=class extends M4.NodeBase{constructor(t){super(go.ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,r){let i;r?.aliasResolveCache?i=r.aliasResolveCache:(i=[],R4.visit(t,{Node:(o,s)=>{(go.isAlias(s)||go.hasAnchor(s))&&i.push(s)}}),r&&(r.aliasResolveCache=i));let n;for(let o of i){if(o===this)break;o.anchor===this.source&&(n=o)}return n}toJSON(t,r){if(!r)return{source:this.source};let{anchors:i,doc:n,maxAliasCount:o}=r,s=this.resolve(n,r);if(!s){let c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let a=i.get(s);if(a||(L4.toJS(s,null,r),a=i.get(s)),a?.res===void 0){let c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(o>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Ef(n,s,i)),a.count*a.aliasCount>o)){let c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(t,r,i){let n=`*${this.source}`;if(t){if(A4.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`${n} `}return n}};function Ef(e,t,r){if(go.isAlias(t)){let i=t.resolve(e),n=r&&i&&r.get(i);return n?n.count*n.aliasCount:0}else if(go.isCollection(t)){let i=0;for(let n of t.items){let o=Ef(e,n,r);o>i&&(i=o)}return i}else if(go.isPair(t)){let i=Ef(e,t.key,r),n=Ef(e,t.value,r);return Math.max(i,n)}return 1}DI.Alias=d_});var Oe=v(f_=>{"use strict";var U4=de(),q4=Tf(),Z4=rn(),F4=e=>!e||typeof e!="function"&&typeof e!="object",nn=class extends q4.NodeBase{constructor(t){super(U4.SCALAR),this.value=t}toJSON(t,r){return r?.keep?this.value:Z4.toJS(this.value,t,r)}toString(){return String(this.value)}};nn.BLOCK_FOLDED="BLOCK_FOLDED";nn.BLOCK_LITERAL="BLOCK_LITERAL";nn.PLAIN="PLAIN";nn.QUOTE_DOUBLE="QUOTE_DOUBLE";nn.QUOTE_SINGLE="QUOTE_SINGLE";f_.Scalar=nn;f_.isScalarValue=F4});var Aa=v(RI=>{"use strict";var V4=Da(),Vn=de(),AI=Oe(),K4="tag:yaml.org,2002:";function G4(e,t,r){if(t){let i=r.filter(o=>o.tag===t),n=i.find(o=>!o.format)??i[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find(i=>i.identify?.(e)&&!i.format)}function B4(e,t,r){if(Vn.isDocument(e)&&(e=e.contents),Vn.isNode(e))return e;if(Vn.isPair(e)){let d=r.schema[Vn.MAP].createNode?.(r.schema,null,r);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:n,onTagObj:o,schema:s,sourceObjects:a}=r,c;if(i&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor??(c.anchor=n(e)),new V4.Alias(c.anchor);c={anchor:null,node:null},a.set(e,c)}t?.startsWith("!!")&&(t=K4+t.slice(2));let l=G4(e,t,s.tags);if(!l){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let d=new AI.Scalar(e);return c&&(c.node=d),d}l=e instanceof Map?s[Vn.MAP]:Symbol.iterator in Object(e)?s[Vn.SEQ]:s[Vn.MAP]}o&&(o(l),delete r.onTagObj);let u=l?.createNode?l.createNode(r.schema,e,r):typeof l?.nodeClass?.from=="function"?l.nodeClass.from(r.schema,e,r):new AI.Scalar(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}RI.createNode=B4});var Of=v(Nf=>{"use strict";var J4=Aa(),sr=de(),H4=Tf();function p_(e,t,r){let i=r;for(let n=t.length-1;n>=0;--n){let o=t[n];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){let s=[];s[o]=i,i=s}else i=new Map([[o,i]])}return J4.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 MI=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,m_=class extends H4.NodeBase{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){let r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(i=>sr.isNode(i)||sr.isPair(i)?i.clone(t):i),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(MI(t))this.add(r);else{let[i,...n]=t,o=this.get(i,!0);if(sr.isCollection(o))o.addIn(n,r);else if(o===void 0&&this.schema)this.set(i,p_(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}deleteIn(t){let[r,...i]=t;if(i.length===0)return this.delete(r);let n=this.get(r,!0);if(sr.isCollection(n))return n.deleteIn(i);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}getIn(t,r){let[i,...n]=t,o=this.get(i,!0);return n.length===0?!r&&sr.isScalar(o)?o.value:o:sr.isCollection(o)?o.getIn(n,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!sr.isPair(r))return!1;let i=r.value;return i==null||t&&sr.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){let[r,...i]=t;if(i.length===0)return this.has(r);let n=this.get(r,!0);return sr.isCollection(n)?n.hasIn(i):!1}setIn(t,r){let[i,...n]=t;if(n.length===0)this.set(i,r);else{let o=this.get(i,!0);if(sr.isCollection(o))o.setIn(n,r);else if(o===void 0&&this.schema)this.set(i,p_(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}};Nf.Collection=m_;Nf.collectionFromPath=p_;Nf.isEmptyPath=MI});var Ra=v(jf=>{"use strict";var W4=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function g_(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Y4=(e,t,r)=>e.endsWith(`
9
+ deps: ${r}}`};var BR={keyword:"dependencies",type:"object",schemaType:"object",error:rr.error,code(e){let[t,r]=JR(e);$0(e,t),k0(e,r)}};function JR({schema:e}){let t={},r={};for(let i in e){if(i==="__proto__")continue;let n=Array.isArray(e[i])?t:r;n[i]=e[i]}return[t,r]}function $0(e,t=e.schema){let{gen:r,data:i,it:n}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,Ea.propertyInData)(r,i,s,n.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),n.allErrors?r.if(c,()=>{for(let l of a)(0,Ea.checkReportMissingProp)(e,l)}):(r.if((0,Ev._)`${c} && (${(0,Ea.checkMissingProp)(e,a,o)})`),(0,Ea.reportMissingProp)(e,o),r.else())}}rr.validatePropertyDeps=$0;function k0(e,t=e.schema){let{gen:r,data:i,keyword:n,it:o}=e,s=r.name("valid");for(let a in t)(0,GR.alwaysValidSchema)(o,t[a])||(r.if((0,Ea.propertyInData)(r,i,a,o.opts.ownProperties),()=>{let c=e.subschema({keyword:n,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}rr.validateSchemaDeps=k0;rr.default=BR});var w0=v(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0});var x0=te(),HR=le(),WR={message:"property name must be valid",params:({params:e})=>(0,x0._)`{propertyName: ${e.propertyName}}`},YR={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:WR,code(e){let{gen:t,schema:r,data:i,it:n}=e;if((0,HR.alwaysValidSchema)(n,r))return;let o=t.name("valid");t.forIn("key",i,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,x0.not)(o),()=>{e.error(!0),n.allErrors||t.break()})}),e.ok(o)}};Nv.default=YR});var jv=v(Ov=>{"use strict";Object.defineProperty(Ov,"__esModule",{value:!0});var df=Nt(),Vt=te(),QR=$r(),ff=le(),XR={message:"must NOT have additional properties",params:({params:e})=>(0,Vt._)`{additionalProperty: ${e.additionalProperty}}`},eM={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:XR,code(e){let{gen:t,schema:r,parentSchema:i,data:n,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,ff.alwaysValidSchema)(s,r))return;let l=(0,df.allSchemaProperties)(i.properties),u=(0,df.allSchemaProperties)(i.patternProperties);d(),e.ok((0,Vt._)`${o} === ${QR.default.errors}`);function d(){t.forIn("key",n,h=>{!l.length&&!u.length?g(h):t.if(f(h),()=>g(h))})}function f(h){let $;if(l.length>8){let k=(0,ff.schemaRefOrVal)(s,i.properties,"properties");$=(0,df.isOwnProperty)(t,k,h)}else l.length?$=(0,Vt.or)(...l.map(k=>(0,Vt._)`${h} === ${k}`)):$=Vt.nil;return u.length&&($=(0,Vt.or)($,...u.map(k=>(0,Vt._)`${(0,df.usePattern)(e,k)}.test(${h})`))),(0,Vt.not)($)}function p(h){t.code((0,Vt._)`delete ${n}[${h}]`)}function g(h){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){p(h);return}if(r===!1){e.setParams({additionalProperty:h}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,ff.alwaysValidSchema)(s,r)){let $=t.name("valid");c.removeAdditional==="failing"?(m(h,$,!1),t.if((0,Vt.not)($),()=>{e.reset(),p(h)})):(m(h,$),a||t.if((0,Vt.not)($),()=>t.break()))}}function m(h,$,k){let x={keyword:"additionalProperties",dataProp:h,dataPropType:ff.Type.Str};k===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(x,$)}}};Ov.default=eM});var P0=v(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});var tM=ha(),I0=Nt(),Cv=le(),z0=jv(),rM={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:o}=e;o.opts.removeAdditional==="all"&&i.additionalProperties===void 0&&z0.default.code(new tM.KeywordCxt(o,z0.default,"additionalProperties"));let s=(0,I0.allSchemaProperties)(r);for(let d of s)o.definedProperties.add(d);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=Cv.mergeEvaluated.props(t,(0,Cv.toHash)(s),o.props));let a=s.filter(d=>!(0,Cv.alwaysValidSchema)(o,r[d]));if(a.length===0)return;let c=t.name("valid");for(let d of a)l(d)?u(d):(t.if((0,I0.propertyInData)(t,n,d,o.opts.ownProperties)),u(d),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(c);function l(d){return o.opts.useDefaults&&!o.compositeRule&&r[d].default!==void 0}function u(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},c)}}};Dv.default=rM});var O0=v(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});var T0=Nt(),pf=te(),E0=le(),N0=le(),nM={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:i,parentSchema:n,it:o}=e,{opts:s}=o,a=(0,T0.allSchemaProperties)(r),c=a.filter(m=>(0,E0.alwaysValidSchema)(o,r[m]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&n.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof pf.Name)&&(o.props=(0,N0.evaluatedPropsToName)(t,o.props));let{props:d}=o;f();function f(){for(let m of a)l&&p(m),o.allErrors?g(m):(t.var(u,!0),g(m),t.if(u))}function p(m){for(let h in l)new RegExp(m).test(h)&&(0,E0.checkStrictMode)(o,`property ${h} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){t.forIn("key",i,h=>{t.if((0,pf._)`${(0,T0.usePattern)(e,m)}.test(${h})`,()=>{let $=c.includes(m);$||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:h,dataPropType:N0.Type.Str},u),o.opts.unevaluated&&d!==!0?t.assign((0,pf._)`${d}[${h}]`,!0):!$&&!o.allErrors&&t.if((0,pf.not)(u),()=>t.break())})})}}};Av.default=nM});var j0=v(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});var iM=le(),oM={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:i}=e;if((0,iM.alwaysValidSchema)(i,r)){e.fail();return}let n=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),e.failResult(n,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Rv.default=oM});var C0=v(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});var sM=Nt(),aM={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:sM.validateUnion,error:{message:"must match a schema in anyOf"}};Mv.default=aM});var D0=v(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});var mf=te(),cM=le(),lM={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,mf._)`{passingSchemas: ${e.passing}}`},uM={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:lM,code(e){let{gen:t,schema:r,parentSchema:i,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&i.discriminator)return;let o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,d)=>{let f;(0,cM.alwaysValidSchema)(n,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},c),d>0&&t.if((0,mf._)`${c} && ${s}`).assign(s,!1).assign(a,(0,mf._)`[${a}, ${d}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,d),f&&e.mergeEvaluated(f,mf.Name)})})}}};Lv.default=uM});var A0=v(Uv=>{"use strict";Object.defineProperty(Uv,"__esModule",{value:!0});var dM=le(),fM={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let n=t.name("valid");r.forEach((o,s)=>{if((0,dM.alwaysValidSchema)(i,o))return;let a=e.subschema({keyword:"allOf",schemaProp:s},n);e.ok(n),e.mergeEvaluated(a)})}};Uv.default=fM});var L0=v(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});var gf=te(),M0=le(),pM={message:({params:e})=>(0,gf.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,gf._)`{failingKeyword: ${e.ifClause}}`},mM={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:pM,code(e){let{gen:t,parentSchema:r,it:i}=e;r.then===void 0&&r.else===void 0&&(0,M0.checkStrictMode)(i,'"if" without "then" and "else" is ignored');let n=R0(i,"then"),o=R0(i,"else");if(!n&&!o)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),n&&o){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else n?t.if(a,l("then")):t.if((0,gf.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,d){return()=>{let f=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(f,s),d?t.assign(d,(0,gf._)`${u}`):e.setParams({ifClause:u})}}}};function R0(e,t){let r=e.schema[t];return r!==void 0&&!(0,M0.alwaysValidSchema)(e,r)}qv.default=mM});var U0=v(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0});var gM=le(),hM={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,gM.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Zv.default=hM});var q0=v(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});var yM=wv(),vM=y0(),_M=Iv(),bM=_0(),$M=b0(),kM=S0(),SM=w0(),xM=jv(),wM=P0(),IM=O0(),zM=j0(),PM=C0(),TM=D0(),EM=A0(),NM=L0(),OM=U0();function jM(e=!1){let t=[zM.default,PM.default,TM.default,EM.default,NM.default,OM.default,SM.default,xM.default,kM.default,wM.default,IM.default];return e?t.push(vM.default,bM.default):t.push(yM.default,_M.default),t.push($M.default),t}Fv.default=jM});var Z0=v(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});var Ne=te(),CM={message:({schemaCode:e})=>(0,Ne.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ne._)`{format: ${e}}`},DM={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:CM,code(e,t){let{gen:r,data:i,$data:n,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:d}=a;if(!c.validateFormats)return;n?f():p();function f(){let g=r.scopeValue("formats",{ref:d.formats,code:c.code.formats}),m=r.const("fDef",(0,Ne._)`${g}[${s}]`),h=r.let("fType"),$=r.let("format");r.if((0,Ne._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(h,(0,Ne._)`${m}.type || "string"`).assign($,(0,Ne._)`${m}.validate`),()=>r.assign(h,(0,Ne._)`"string"`).assign($,m)),e.fail$data((0,Ne.or)(k(),x()));function k(){return c.strictSchema===!1?Ne.nil:(0,Ne._)`${s} && !${$}`}function x(){let N=u.$async?(0,Ne._)`(${m}.async ? await ${$}(${i}) : ${$}(${i}))`:(0,Ne._)`${$}(${i})`,w=(0,Ne._)`(typeof ${$} == "function" ? ${N} : ${$}.test(${i}))`;return(0,Ne._)`${$} && ${$} !== true && ${h} === ${t} && !${w}`}}function p(){let g=d.formats[o];if(!g){k();return}if(g===!0)return;let[m,h,$]=x(g);m===t&&e.pass(N());function k(){if(c.strictSchema===!1){d.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function x(w){let q=w instanceof RegExp?(0,Ne.regexpCode)(w):c.code.formats?(0,Ne._)`${c.code.formats}${(0,Ne.getProperty)(o)}`:void 0,ee=r.scopeValue("formats",{key:o,ref:w,code:q});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,Ne._)`${ee}.validate`]:["string",w,ee]}function N(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ne._)`await ${$}(${i})`}return typeof h=="function"?(0,Ne._)`${$}(${i})`:(0,Ne._)`${$}.test(${i})`}}}};Vv.default=DM});var F0=v(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});var AM=Z0(),RM=[AM.default];Kv.default=RM});var V0=v(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.contentVocabulary=so.metadataVocabulary=void 0;so.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];so.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var G0=v(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0});var MM=Xw(),LM=p0(),UM=q0(),qM=F0(),K0=V0(),ZM=[MM.default,LM.default,(0,UM.default)(),qM.default,K0.metadataVocabulary,K0.contentVocabulary];Gv.default=ZM});var J0=v(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.DiscrError=void 0;var B0;(function(e){e.Tag="tag",e.Mapping="mapping"})(B0||(hf.DiscrError=B0={}))});var W0=v(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0});var ao=te(),Bv=J0(),H0=Yd(),FM=ya(),VM=le(),KM={message:({params:{discrError:e,tagName:t}})=>e===Bv.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,ao._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},GM={keyword:"discriminator",type:"object",schemaType:"object",error:KM,code(e){let{gen:t,data:r,schema:i,parentSchema:n,it:o}=e,{oneOf:s}=n;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=i.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,ao._)`${r}${(0,ao.getProperty)(a)}`);t.if((0,ao._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:Bv.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){let p=f();t.if(!1);for(let g in p)t.elseIf((0,ao._)`${l} === ${g}`),t.assign(c,d(p[g]));t.else(),e.error(!1,{discrError:Bv.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function d(p){let g=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:p},g);return e.mergeEvaluated(m,ao.Name),g}function f(){var p;let g={},m=$(n),h=!0;for(let N=0;N<s.length;N++){let w=s[N];if(w?.$ref&&!(0,VM.schemaHasRulesButRef)(w,o.self.RULES)){let ee=w.$ref;if(w=H0.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,ee),w instanceof H0.SchemaEnv&&(w=w.schema),w===void 0)throw new FM.default(o.opts.uriResolver,o.baseId,ee)}let q=(p=w?.properties)===null||p===void 0?void 0:p[a];if(typeof q!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);h=h&&(m||$(w)),k(q,N)}if(!h)throw new Error(`discriminator: "${a}" must be required`);return g;function $({required:N}){return Array.isArray(N)&&N.includes(a)}function k(N,w){if(N.const)x(N.const,w);else if(N.enum)for(let q of N.enum)x(q,w);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function x(N,w){if(typeof N!="string"||N in g)throw new Error(`discriminator: "${a}" values must be unique strings`);g[N]=w}}}};Jv.default=GM});var Y0=v((WH,BM)=>{BM.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}});var Wv=v((Pe,Hv)=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.MissingRefError=Pe.ValidationError=Pe.CodeGen=Pe.Name=Pe.nil=Pe.stringify=Pe.str=Pe._=Pe.KeywordCxt=Pe.Ajv=void 0;var JM=Bw(),HM=G0(),WM=W0(),Q0=Y0(),YM=["/properties"],yf="http://json-schema.org/draft-07/schema",co=class extends JM.default{_addVocabularies(){super._addVocabularies(),HM.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(WM.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Q0,YM):Q0;this.addMetaSchema(t,yf,!1),this.refs["http://json-schema.org/schema"]=yf}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(yf)?yf:void 0)}};Pe.Ajv=co;Hv.exports=Pe=co;Hv.exports.Ajv=co;Object.defineProperty(Pe,"__esModule",{value:!0});Pe.default=co;var QM=ha();Object.defineProperty(Pe,"KeywordCxt",{enumerable:!0,get:function(){return QM.KeywordCxt}});var lo=te();Object.defineProperty(Pe,"_",{enumerable:!0,get:function(){return lo._}});Object.defineProperty(Pe,"str",{enumerable:!0,get:function(){return lo.str}});Object.defineProperty(Pe,"stringify",{enumerable:!0,get:function(){return lo.stringify}});Object.defineProperty(Pe,"nil",{enumerable:!0,get:function(){return lo.nil}});Object.defineProperty(Pe,"Name",{enumerable:!0,get:function(){return lo.Name}});Object.defineProperty(Pe,"CodeGen",{enumerable:!0,get:function(){return lo.CodeGen}});var XM=Hd();Object.defineProperty(Pe,"ValidationError",{enumerable:!0,get:function(){return XM.default}});var e4=ya();Object.defineProperty(Pe,"MissingRefError",{enumerable:!0,get:function(){return e4.default}})});var sI=v(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.formatNames=ir.fastFormats=ir.fullFormats=void 0;function nr(e,t){return{validate:e,compare:t}}ir.fullFormats={date:nr(rI,e_),time:nr(Qv(!0),t_),"date-time":nr(X0(!0),iI),"iso-time":nr(Qv(),nI),"iso-date-time":nr(X0(),oI),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:s4,"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:p4,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:a4,int32:{type:"number",validate:u4},int64:{type:"number",validate:d4},float:{type:"number",validate:tI},double:{type:"number",validate:tI},password:!0,binary:!0};ir.fastFormats={...ir.fullFormats,date:nr(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,e_),time:nr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,t_),"date-time":nr(/^\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,iI),"iso-time":nr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,nI),"iso-date-time":nr(/^\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,oI),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};ir.formatNames=Object.keys(ir.fullFormats);function t4(e){return e%4===0&&(e%100!==0||e%400===0)}var r4=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n4=[0,31,28,31,30,31,30,31,31,30,31,30,31];function rI(e){let t=r4.exec(e);if(!t)return!1;let r=+t[1],i=+t[2],n=+t[3];return i>=1&&i<=12&&n>=1&&n<=(i===2&&t4(r)?29:n4[i])}function e_(e,t){if(e&&t)return e>t?1:e<t?-1:0}var Yv=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Qv(e){return function(r){let i=Yv.exec(r);if(!i)return!1;let n=+i[1],o=+i[2],s=+i[3],a=i[4],c=i[5]==="-"?-1:1,l=+(i[6]||0),u=+(i[7]||0);if(l>23||u>59||e&&!a)return!1;if(n<=23&&o<=59&&s<60)return!0;let d=o-u*c,f=n-l*c-(d<0?1:0);return(f===23||f===-1)&&(d===59||d===-1)&&s<61}}function t_(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),i=new Date("2020-01-01T"+t).valueOf();if(r&&i)return r-i}function nI(e,t){if(!(e&&t))return;let r=Yv.exec(e),i=Yv.exec(t);if(r&&i)return e=r[1]+r[2]+r[3],t=i[1]+i[2]+i[3],e>t?1:e<t?-1:0}var Xv=/t|\s/i;function X0(e){let t=Qv(e);return function(i){let n=i.split(Xv);return n.length===2&&rI(n[0])&&t(n[1])}}function iI(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),i=new Date(t).valueOf();if(r&&i)return r-i}function oI(e,t){if(!(e&&t))return;let[r,i]=e.split(Xv),[n,o]=t.split(Xv),s=e_(r,n);if(s!==void 0)return s||t_(i,o)}var i4=/\/|:/,o4=/^(?:[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 s4(e){return i4.test(e)&&o4.test(e)}var eI=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function a4(e){return eI.lastIndex=0,eI.test(e)}var c4=-(2**31),l4=2**31-1;function u4(e){return Number.isInteger(e)&&e<=l4&&e>=c4}function d4(e){return Number.isInteger(e)}function tI(){return!0}var f4=/[^\\]\\Z/;function p4(e){if(f4.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var aI=v(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.formatLimitDefinition=void 0;var m4=Wv(),Kt=te(),en=Kt.operators,vf={formatMaximum:{okStr:"<=",ok:en.LTE,fail:en.GT},formatMinimum:{okStr:">=",ok:en.GTE,fail:en.LT},formatExclusiveMaximum:{okStr:"<",ok:en.LT,fail:en.GTE},formatExclusiveMinimum:{okStr:">",ok:en.GT,fail:en.LTE}},g4={message:({keyword:e,schemaCode:t})=>(0,Kt.str)`should be ${vf[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Kt._)`{comparison: ${vf[e].okStr}, limit: ${t}}`};uo.formatLimitDefinition={keyword:Object.keys(vf),type:"string",schemaType:"string",$data:!0,error:g4,code(e){let{gen:t,data:r,schemaCode:i,keyword:n,it:o}=e,{opts:s,self:a}=o;if(!s.validateFormats)return;let c=new m4.KeywordCxt(o,a.RULES.all.format.definition,"format");c.$data?l():u();function l(){let f=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),p=t.const("fmt",(0,Kt._)`${f}[${c.schemaCode}]`);e.fail$data((0,Kt.or)((0,Kt._)`typeof ${p} != "object"`,(0,Kt._)`${p} instanceof RegExp`,(0,Kt._)`typeof ${p}.compare != "function"`,d(p)))}function u(){let f=c.schema,p=a.formats[f];if(!p||p===!0)return;if(typeof p!="object"||p instanceof RegExp||typeof p.compare!="function")throw new Error(`"${n}": format "${f}" does not define "compare" function`);let g=t.scopeValue("formats",{key:f,ref:p,code:s.code.formats?(0,Kt._)`${s.code.formats}${(0,Kt.getProperty)(f)}`:void 0});e.fail$data(d(g))}function d(f){return(0,Kt._)`${f}.compare(${r}, ${i}) ${vf[n].fail} 0`}},dependencies:["format"]};var h4=e=>(e.addKeyword(uo.formatLimitDefinition),e);uo.default=h4});var dI=v((Na,uI)=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var fo=sI(),y4=aI(),r_=te(),cI=new r_.Name("fullFormats"),v4=new r_.Name("fastFormats"),n_=(e,t={keywords:!0})=>{if(Array.isArray(t))return lI(e,t,fo.fullFormats,cI),e;let[r,i]=t.mode==="fast"?[fo.fastFormats,v4]:[fo.fullFormats,cI],n=t.formats||fo.formatNames;return lI(e,n,r,i),t.keywords&&(0,y4.default)(e),e};n_.get=(e,t="full")=>{let i=(t==="fast"?fo.fastFormats:fo.fullFormats)[e];if(!i)throw new Error(`Unknown format "${e}"`);return i};function lI(e,t,r,i){var n,o;(n=(o=e.opts.code).formats)!==null&&n!==void 0||(o.formats=(0,r_._)`require("ajv-formats/dist/formats").${i}`);for(let s of t)e.addFormat(s,r[s])}uI.exports=Na=n_;Object.defineProperty(Na,"__esModule",{value:!0});Na.default=n_});var de=v(He=>{"use strict";var o_=Symbol.for("yaml.alias"),vI=Symbol.for("yaml.document"),xf=Symbol.for("yaml.map"),_I=Symbol.for("yaml.pair"),s_=Symbol.for("yaml.scalar"),wf=Symbol.for("yaml.seq"),xr=Symbol.for("yaml.node.type"),$4=e=>!!e&&typeof e=="object"&&e[xr]===o_,k4=e=>!!e&&typeof e=="object"&&e[xr]===vI,S4=e=>!!e&&typeof e=="object"&&e[xr]===xf,x4=e=>!!e&&typeof e=="object"&&e[xr]===_I,bI=e=>!!e&&typeof e=="object"&&e[xr]===s_,w4=e=>!!e&&typeof e=="object"&&e[xr]===wf;function $I(e){if(e&&typeof e=="object")switch(e[xr]){case xf:case wf:return!0}return!1}function I4(e){if(e&&typeof e=="object")switch(e[xr]){case o_:case xf:case s_:case wf:return!0}return!1}var z4=e=>(bI(e)||$I(e))&&!!e.anchor;He.ALIAS=o_;He.DOC=vI;He.MAP=xf;He.NODE_TYPE=xr;He.PAIR=_I;He.SCALAR=s_;He.SEQ=wf;He.hasAnchor=z4;He.isAlias=$4;He.isCollection=$I;He.isDocument=k4;He.isMap=S4;He.isNode=I4;He.isPair=x4;He.isScalar=bI;He.isSeq=w4});var Oa=v(a_=>{"use strict";var Ce=de(),yt=Symbol("break visit"),kI=Symbol("skip children"),or=Symbol("remove node");function If(e,t){let r=SI(t);Ce.isDocument(e)?po(null,e.contents,r,Object.freeze([e]))===or&&(e.contents=null):po(null,e,r,Object.freeze([]))}If.BREAK=yt;If.SKIP=kI;If.REMOVE=or;function po(e,t,r,i){let n=xI(e,t,r,i);if(Ce.isNode(n)||Ce.isPair(n))return wI(e,i,n),po(e,n,r,i);if(typeof n!="symbol"){if(Ce.isCollection(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){let s=po(o,t.items[o],r,i);if(typeof s=="number")o=s-1;else{if(s===yt)return yt;s===or&&(t.items.splice(o,1),o-=1)}}}else if(Ce.isPair(t)){i=Object.freeze(i.concat(t));let o=po("key",t.key,r,i);if(o===yt)return yt;o===or&&(t.key=null);let s=po("value",t.value,r,i);if(s===yt)return yt;s===or&&(t.value=null)}}return n}async function zf(e,t){let r=SI(t);Ce.isDocument(e)?await mo(null,e.contents,r,Object.freeze([e]))===or&&(e.contents=null):await mo(null,e,r,Object.freeze([]))}zf.BREAK=yt;zf.SKIP=kI;zf.REMOVE=or;async function mo(e,t,r,i){let n=await xI(e,t,r,i);if(Ce.isNode(n)||Ce.isPair(n))return wI(e,i,n),mo(e,n,r,i);if(typeof n!="symbol"){if(Ce.isCollection(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){let s=await mo(o,t.items[o],r,i);if(typeof s=="number")o=s-1;else{if(s===yt)return yt;s===or&&(t.items.splice(o,1),o-=1)}}}else if(Ce.isPair(t)){i=Object.freeze(i.concat(t));let o=await mo("key",t.key,r,i);if(o===yt)return yt;o===or&&(t.key=null);let s=await mo("value",t.value,r,i);if(s===yt)return yt;s===or&&(t.value=null)}}return n}function SI(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 xI(e,t,r,i){if(typeof r=="function")return r(e,t,i);if(Ce.isMap(t))return r.Map?.(e,t,i);if(Ce.isSeq(t))return r.Seq?.(e,t,i);if(Ce.isPair(t))return r.Pair?.(e,t,i);if(Ce.isScalar(t))return r.Scalar?.(e,t,i);if(Ce.isAlias(t))return r.Alias?.(e,t,i)}function wI(e,t,r){let i=t[t.length-1];if(Ce.isCollection(i))i.items[e]=r;else if(Ce.isPair(i))e==="key"?i.key=r:i.value=r;else if(Ce.isDocument(i))i.contents=r;else{let n=Ce.isAlias(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}a_.visit=If;a_.visitAsync=zf});var c_=v(zI=>{"use strict";var II=de(),P4=Oa(),T4={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},E4=e=>e.replace(/[!,[\]{}]/g,t=>T4[t]),ja=class e{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,r)}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,r){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]+/),n=i.shift();switch(n){case"%TAG":{if(i.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;let[o,s]=i;return this.tags[o]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return r(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 s=/^\d+\.\d+$/.test(o);return r(6,`Unsupported YAML version ${o}`,s),!1}}default:return r(0,`Unknown directive ${n}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let s=t.slice(2,-1);return s==="!"||s==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),s)}let[,i,n]=t.match(/^(.*!)([^!]*)$/s);n||r(`The ${t} tag has no suffix`);let o=this.tags[i];if(o)try{return o+decodeURIComponent(n)}catch(s){return r(String(s)),null}return i==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[r,i]of Object.entries(this.tags))if(t.startsWith(i))return r+E4(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),n;if(t&&i.length>0&&II.isNode(t.contents)){let o={};P4.visit(t.contents,(s,a)=>{II.isNode(a)&&a.tag&&(o[a.tag]=!0)}),n=Object.keys(o)}else n=[];for(let[o,s]of i)o==="!!"&&s==="tag:yaml.org,2002:"||(!t||n.some(a=>a.startsWith(s)))&&r.push(`%TAG ${o} ${s}`);return r.join(`
10
+ `)}};ja.defaultYaml={explicit:!1,version:"1.2"};ja.defaultTags={"!!":"tag:yaml.org,2002:"};zI.Directives=ja});var Pf=v(Ca=>{"use strict";var PI=de(),N4=Oa();function O4(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function TI(e){let t=new Set;return N4.visit(e,{Value(r,i){i.anchor&&t.add(i.anchor)}}),t}function EI(e,t){for(let r=1;;++r){let i=`${e}${r}`;if(!t.has(i))return i}}function j4(e,t){let r=[],i=new Map,n=null;return{onAnchor:o=>{r.push(o),n??(n=TI(e));let s=EI(t,n);return n.add(s),s},setAnchors:()=>{for(let o of r){let s=i.get(o);if(typeof s=="object"&&s.anchor&&(PI.isScalar(s.node)||PI.isCollection(s.node)))s.node.anchor=s.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=o,a}}},sourceObjects:i}}Ca.anchorIsValid=O4;Ca.anchorNames=TI;Ca.createNodeAnchors=j4;Ca.findNewAnchor=EI});var l_=v(NI=>{"use strict";function Da(e,t,r,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let n=0,o=i.length;n<o;++n){let s=i[n],a=Da(e,i,String(n),s);a===void 0?delete i[n]:a!==s&&(i[n]=a)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let o=i.get(n),s=Da(e,i,n,o);s===void 0?i.delete(n):s!==o&&i.set(n,s)}else if(i instanceof Set)for(let n of Array.from(i)){let o=Da(e,i,n,n);o===void 0?i.delete(n):o!==n&&(i.delete(n),i.add(o))}else for(let[n,o]of Object.entries(i)){let s=Da(e,i,n,o);s===void 0?delete i[n]:s!==o&&(i[n]=s)}return e.call(t,r,i)}NI.applyReviver=Da});var rn=v(jI=>{"use strict";var C4=de();function OI(e,t,r){if(Array.isArray(e))return e.map((i,n)=>OI(i,String(n),r));if(e&&typeof e.toJSON=="function"){if(!r||!C4.hasAnchor(e))return e.toJSON(t,r);let i={aliasCount:0,count:1,res:void 0};r.anchors.set(e,i),r.onCreate=o=>{i.res=o,delete r.onCreate};let n=e.toJSON(t,r);return r.onCreate&&r.onCreate(n),n}return typeof e=="bigint"&&!r?.keep?Number(e):e}jI.toJS=OI});var Tf=v(DI=>{"use strict";var D4=l_(),CI=de(),A4=rn(),u_=class{constructor(t){Object.defineProperty(this,CI.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:r,maxAliasCount:i,onAnchor:n,reviver:o}={}){if(!CI.isDocument(t))throw new TypeError("A document argument is required");let s={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},a=A4.toJS(this,"",s);if(typeof n=="function")for(let{count:c,res:l}of s.anchors.values())n(l,c);return typeof o=="function"?D4.applyReviver(o,{"":a},"",a):a}};DI.NodeBase=u_});var Aa=v(AI=>{"use strict";var R4=Pf(),M4=Oa(),go=de(),L4=Tf(),U4=rn(),d_=class extends L4.NodeBase{constructor(t){super(go.ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,r){let i;r?.aliasResolveCache?i=r.aliasResolveCache:(i=[],M4.visit(t,{Node:(o,s)=>{(go.isAlias(s)||go.hasAnchor(s))&&i.push(s)}}),r&&(r.aliasResolveCache=i));let n;for(let o of i){if(o===this)break;o.anchor===this.source&&(n=o)}return n}toJSON(t,r){if(!r)return{source:this.source};let{anchors:i,doc:n,maxAliasCount:o}=r,s=this.resolve(n,r);if(!s){let c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let a=i.get(s);if(a||(U4.toJS(s,null,r),a=i.get(s)),a?.res===void 0){let c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(o>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Ef(n,s,i)),a.count*a.aliasCount>o)){let c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(t,r,i){let n=`*${this.source}`;if(t){if(R4.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`${n} `}return n}};function Ef(e,t,r){if(go.isAlias(t)){let i=t.resolve(e),n=r&&i&&r.get(i);return n?n.count*n.aliasCount:0}else if(go.isCollection(t)){let i=0;for(let n of t.items){let o=Ef(e,n,r);o>i&&(i=o)}return i}else if(go.isPair(t)){let i=Ef(e,t.key,r),n=Ef(e,t.value,r);return Math.max(i,n)}return 1}AI.Alias=d_});var Oe=v(f_=>{"use strict";var q4=de(),Z4=Tf(),F4=rn(),V4=e=>!e||typeof e!="function"&&typeof e!="object",nn=class extends Z4.NodeBase{constructor(t){super(q4.SCALAR),this.value=t}toJSON(t,r){return r?.keep?this.value:F4.toJS(this.value,t,r)}toString(){return String(this.value)}};nn.BLOCK_FOLDED="BLOCK_FOLDED";nn.BLOCK_LITERAL="BLOCK_LITERAL";nn.PLAIN="PLAIN";nn.QUOTE_DOUBLE="QUOTE_DOUBLE";nn.QUOTE_SINGLE="QUOTE_SINGLE";f_.Scalar=nn;f_.isScalarValue=V4});var Ra=v(MI=>{"use strict";var K4=Aa(),Vn=de(),RI=Oe(),G4="tag:yaml.org,2002:";function B4(e,t,r){if(t){let i=r.filter(o=>o.tag===t),n=i.find(o=>!o.format)??i[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find(i=>i.identify?.(e)&&!i.format)}function J4(e,t,r){if(Vn.isDocument(e)&&(e=e.contents),Vn.isNode(e))return e;if(Vn.isPair(e)){let d=r.schema[Vn.MAP].createNode?.(r.schema,null,r);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:n,onTagObj:o,schema:s,sourceObjects:a}=r,c;if(i&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor??(c.anchor=n(e)),new K4.Alias(c.anchor);c={anchor:null,node:null},a.set(e,c)}t?.startsWith("!!")&&(t=G4+t.slice(2));let l=B4(e,t,s.tags);if(!l){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let d=new RI.Scalar(e);return c&&(c.node=d),d}l=e instanceof Map?s[Vn.MAP]:Symbol.iterator in Object(e)?s[Vn.SEQ]:s[Vn.MAP]}o&&(o(l),delete r.onTagObj);let u=l?.createNode?l.createNode(r.schema,e,r):typeof l?.nodeClass?.from=="function"?l.nodeClass.from(r.schema,e,r):new RI.Scalar(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}MI.createNode=J4});var Of=v(Nf=>{"use strict";var H4=Ra(),sr=de(),W4=Tf();function p_(e,t,r){let i=r;for(let n=t.length-1;n>=0;--n){let o=t[n];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){let s=[];s[o]=i,i=s}else i=new Map([[o,i]])}return H4.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 LI=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,m_=class extends W4.NodeBase{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){let r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(i=>sr.isNode(i)||sr.isPair(i)?i.clone(t):i),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(LI(t))this.add(r);else{let[i,...n]=t,o=this.get(i,!0);if(sr.isCollection(o))o.addIn(n,r);else if(o===void 0&&this.schema)this.set(i,p_(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}deleteIn(t){let[r,...i]=t;if(i.length===0)return this.delete(r);let n=this.get(r,!0);if(sr.isCollection(n))return n.deleteIn(i);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}getIn(t,r){let[i,...n]=t,o=this.get(i,!0);return n.length===0?!r&&sr.isScalar(o)?o.value:o:sr.isCollection(o)?o.getIn(n,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!sr.isPair(r))return!1;let i=r.value;return i==null||t&&sr.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){let[r,...i]=t;if(i.length===0)return this.has(r);let n=this.get(r,!0);return sr.isCollection(n)?n.hasIn(i):!1}setIn(t,r){let[i,...n]=t;if(n.length===0)this.set(i,r);else{let o=this.get(i,!0);if(sr.isCollection(o))o.setIn(n,r);else if(o===void 0&&this.schema)this.set(i,p_(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}};Nf.Collection=m_;Nf.collectionFromPath=p_;Nf.isEmptyPath=LI});var Ma=v(jf=>{"use strict";var Y4=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function g_(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Q4=(e,t,r)=>e.endsWith(`
11
11
  `)?g_(r,t):r.includes(`
12
12
  `)?`
13
- `+g_(r,t):(e.endsWith(" ")?"":" ")+r;jf.indentComment=g_;jf.lineComment=Y4;jf.stringifyComment=W4});var UI=v(Ma=>{"use strict";var Q4="flow",h_="block",Cf="quoted";function X4(e,t,r="flow",{indentAtStart:i,lineWidth:n=80,minContentWidth:o=20,onFold:s,onOverflow:a}={}){if(!n||n<0)return e;n<o&&(o=0);let c=Math.max(1+o,1+n-t.length);if(e.length<=c)return e;let l=[],u={},d=n-t.length;typeof i=="number"&&(i>n-Math.max(2,o)?l.push(0):d=n-i);let f,p,g=!1,m=-1,h=-1,$=-1;r===h_&&(m=LI(e,m,t.length),m!==-1&&(d=m+c));for(let x;x=e[m+=1];){if(r===Cf&&x==="\\"){switch(h=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}$=m}if(x===`
14
- `)r===h_&&(m=LI(e,m,t.length)),d=m+t.length+c,f=void 0;else{if(x===" "&&p&&p!==" "&&p!==`
13
+ `+g_(r,t):(e.endsWith(" ")?"":" ")+r;jf.indentComment=g_;jf.lineComment=Q4;jf.stringifyComment=Y4});var qI=v(La=>{"use strict";var X4="flow",h_="block",Cf="quoted";function eL(e,t,r="flow",{indentAtStart:i,lineWidth:n=80,minContentWidth:o=20,onFold:s,onOverflow:a}={}){if(!n||n<0)return e;n<o&&(o=0);let c=Math.max(1+o,1+n-t.length);if(e.length<=c)return e;let l=[],u={},d=n-t.length;typeof i=="number"&&(i>n-Math.max(2,o)?l.push(0):d=n-i);let f,p,g=!1,m=-1,h=-1,$=-1;r===h_&&(m=UI(e,m,t.length),m!==-1&&(d=m+c));for(let x;x=e[m+=1];){if(r===Cf&&x==="\\"){switch(h=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}$=m}if(x===`
14
+ `)r===h_&&(m=UI(e,m,t.length)),d=m+t.length+c,f=void 0;else{if(x===" "&&p&&p!==" "&&p!==`
15
15
  `&&p!==" "){let N=e[m+1];N&&N!==" "&&N!==`
16
16
  `&&N!==" "&&(f=m)}if(m>=d)if(f)l.push(f),d=f+c,f=void 0;else if(r===Cf){for(;p===" "||p===" ";)p=x,x=e[m+=1],g=!0;let N=m>$+1?m-2:h-1;if(u[N])return e;l.push(N),u[N]=!0,d=N+c,f=void 0}else g=!0}p=x}if(g&&a&&a(),l.length===0)return e;s&&s();let k=e.slice(0,l[0]);for(let x=0;x<l.length;++x){let N=l[x],w=l[x+1]||e.length;N===0?k=`
17
17
  ${t}${e.slice(0,w)}`:(r===Cf&&u[N]&&(k+=`${e[N]}\\`),k+=`
18
- ${t}${e.slice(N+1,w)}`)}return k}function LI(e,t,r){let i=t,n=t+1,o=e[n];for(;o===" "||o===" ";)if(t<n+r)o=e[++t];else{do o=e[++t];while(o&&o!==`
19
- `);i=t,n=t+1,o=e[n]}return i}Ma.FOLD_BLOCK=h_;Ma.FOLD_FLOW=Q4;Ma.FOLD_QUOTED=Cf;Ma.foldFlowLines=X4});var Ua=v(qI=>{"use strict";var Gt=Oe(),on=UI(),Af=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Rf=e=>/^(%|---|\.\.\.)/m.test(e);function eL(e,t,r){if(!t||t<0)return!1;let i=t-r,n=e.length;if(n<=i)return!1;for(let o=0,s=0;o<n;++o)if(e[o]===`
20
- `){if(o-s>i)return!0;if(s=o+1,n-s<=i)return!1}return!0}function La(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:i}=t,n=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(Rf(e)?" ":""),s="",a=0;for(let c=0,l=r[c];l;l=r[++c])if(l===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(s+=r.slice(a,c)+"\\ ",c+=1,a=c,l="\\"),l==="\\")switch(r[c+1]){case"u":{s+=r.slice(a,c);let u=r.substr(c+2,4);switch(u){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:u.substr(0,2)==="00"?s+="\\x"+u.substr(2):s+=r.substr(c,6)}c+=5,a=c+1}break;case"n":if(i||r[c+2]==='"'||r.length<n)c+=1;else{for(s+=r.slice(a,c)+`
18
+ ${t}${e.slice(N+1,w)}`)}return k}function UI(e,t,r){let i=t,n=t+1,o=e[n];for(;o===" "||o===" ";)if(t<n+r)o=e[++t];else{do o=e[++t];while(o&&o!==`
19
+ `);i=t,n=t+1,o=e[n]}return i}La.FOLD_BLOCK=h_;La.FOLD_FLOW=X4;La.FOLD_QUOTED=Cf;La.foldFlowLines=eL});var qa=v(ZI=>{"use strict";var Gt=Oe(),on=qI(),Af=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Rf=e=>/^(%|---|\.\.\.)/m.test(e);function tL(e,t,r){if(!t||t<0)return!1;let i=t-r,n=e.length;if(n<=i)return!1;for(let o=0,s=0;o<n;++o)if(e[o]===`
20
+ `){if(o-s>i)return!0;if(s=o+1,n-s<=i)return!1}return!0}function Ua(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:i}=t,n=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(Rf(e)?" ":""),s="",a=0;for(let c=0,l=r[c];l;l=r[++c])if(l===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(s+=r.slice(a,c)+"\\ ",c+=1,a=c,l="\\"),l==="\\")switch(r[c+1]){case"u":{s+=r.slice(a,c);let u=r.substr(c+2,4);switch(u){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:u.substr(0,2)==="00"?s+="\\x"+u.substr(2):s+=r.substr(c,6)}c+=5,a=c+1}break;case"n":if(i||r[c+2]==='"'||r.length<n)c+=1;else{for(s+=r.slice(a,c)+`
21
21
 
22
22
  `;r[c+2]==="\\"&&r[c+3]==="n"&&r[c+4]!=='"';)s+=`
23
23
  `,c+=2;s+=o,r[c+2]===" "&&(s+="\\"),c+=1,a=c+1}break;default:c+=1}return s=a?s+r.slice(a):r,i?s:on.foldFlowLines(s,o,on.FOLD_QUOTED,Af(t,!1))}function y_(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
24
- `)||/[ \t]\n|\n[ \t]/.test(e))return La(e,t);let r=t.indent||(Rf(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
25
- ${r}`)+"'";return t.implicitKey?i:on.foldFlowLines(i,r,on.FOLD_FLOW,Af(t,!1))}function ho(e,t){let{singleQuote:r}=t.options,i;if(r===!1)i=La;else{let n=e.includes('"'),o=e.includes("'");n&&!o?i=y_:o&&!n?i=La:i=r?y_:La}return i(e,t)}var v_;try{v_=new RegExp(`(^|(?<!
24
+ `)||/[ \t]\n|\n[ \t]/.test(e))return Ua(e,t);let r=t.indent||(Rf(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
25
+ ${r}`)+"'";return t.implicitKey?i:on.foldFlowLines(i,r,on.FOLD_FLOW,Af(t,!1))}function ho(e,t){let{singleQuote:r}=t.options,i;if(r===!1)i=Ua;else{let n=e.includes('"'),o=e.includes("'");n&&!o?i=y_:o&&!n?i=Ua:i=r?y_:Ua}return i(e,t)}var v_;try{v_=new RegExp(`(^|(?<!
26
26
  ))
27
27
  +(?!
28
- |$)`,"g")}catch{v_=/\n+(?!\n|$)/g}function Df({comment:e,type:t,value:r},i,n,o){let{blockQuote:s,commentString:a,lineWidth:c}=i.options;if(!s||/\n[\t ]+$/.test(r))return ho(r,i);let l=i.indent||(i.forceBlockIndent||Rf(r)?" ":""),u=s==="literal"?!0:s==="folded"||t===Gt.Scalar.BLOCK_FOLDED?!1:t===Gt.Scalar.BLOCK_LITERAL?!0:!eL(r,c,l.length);if(!r)return u?`|
28
+ |$)`,"g")}catch{v_=/\n+(?!\n|$)/g}function Df({comment:e,type:t,value:r},i,n,o){let{blockQuote:s,commentString:a,lineWidth:c}=i.options;if(!s||/\n[\t ]+$/.test(r))return ho(r,i);let l=i.indent||(i.forceBlockIndent||Rf(r)?" ":""),u=s==="literal"?!0:s==="folded"||t===Gt.Scalar.BLOCK_FOLDED?!1:t===Gt.Scalar.BLOCK_LITERAL?!0:!tL(r,c,l.length);if(!r)return u?`|
29
29
  `:`>
30
30
  `;let d,f;for(f=r.length;f>0;--f){let w=r[f-1];if(w!==`
31
31
  `&&w!==" "&&w!==" ")break}let p=r.substring(f),g=p.indexOf(`
@@ -34,47 +34,47 @@ ${r}`)+"'";return t.implicitKey?i:on.foldFlowLines(i,r,on.FOLD_FLOW,Af(t,!1))}fu
34
34
  `)$=h;else break}let k=r.substring(0,$<h?$+1:h);k&&(r=r.substring(k.length),k=k.replace(/\n+/g,`$&${l}`));let N=(m?l?"2":"1":"")+d;if(e&&(N+=" "+a(e.replace(/ ?[\r\n]+/g," ")),n&&n()),!u){let w=r.replace(/\n+/g,`
35
35
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`),q=!1,ee=Af(i,!0);s!=="folded"&&t!==Gt.Scalar.BLOCK_FOLDED&&(ee.onOverflow=()=>{q=!0});let R=on.foldFlowLines(`${k}${w}${p}`,l,on.FOLD_BLOCK,ee);if(!q)return`>${N}
36
36
  ${l}${R}`}return r=r.replace(/\n+/g,`$&${l}`),`|${N}
37
- ${l}${k}${r}${p}`}function tL(e,t,r,i){let{type:n,value:o}=e,{actualString:s,implicitKey:a,indent:c,indentStep:l,inFlow:u}=t;if(a&&o.includes(`
37
+ ${l}${k}${r}${p}`}function rL(e,t,r,i){let{type:n,value:o}=e,{actualString:s,implicitKey:a,indent:c,indentStep:l,inFlow:u}=t;if(a&&o.includes(`
38
38
  `)||u&&/[[\]{},]/.test(o))return ho(o,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return a||u||!o.includes(`
39
39
  `)?ho(o,t):Df(e,t,r,i);if(!a&&!u&&n!==Gt.Scalar.PLAIN&&o.includes(`
40
40
  `))return Df(e,t,r,i);if(Rf(o)){if(c==="")return t.forceBlockIndent=!0,Df(e,t,r,i);if(a&&c===l)return ho(o,t)}let d=o.replace(/\n+/g,`$&
41
- ${c}`);if(s){let f=m=>m.default&&m.tag!=="tag:yaml.org,2002:str"&&m.test?.test(d),{compat:p,tags:g}=t.doc.schema;if(g.some(f)||p?.some(f))return ho(o,t)}return a?d:on.foldFlowLines(d,c,on.FOLD_FLOW,Af(t,!1))}function rL(e,t,r,i){let{implicitKey:n,inFlow:o}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:a}=e;a!==Gt.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Gt.Scalar.QUOTE_DOUBLE);let c=u=>{switch(u){case Gt.Scalar.BLOCK_FOLDED:case Gt.Scalar.BLOCK_LITERAL:return n||o?ho(s.value,t):Df(s,t,r,i);case Gt.Scalar.QUOTE_DOUBLE:return La(s.value,t);case Gt.Scalar.QUOTE_SINGLE:return y_(s.value,t);case Gt.Scalar.PLAIN:return tL(s,t,r,i);default:return null}},l=c(a);if(l===null){let{defaultKeyType:u,defaultStringType:d}=t.options,f=n&&u||d;if(l=c(f),l===null)throw new Error(`Unsupported default string type ${f}`)}return l}qI.stringifyString=rL});var qa=v(__=>{"use strict";var nL=Pf(),sn=de(),iL=Ra(),oL=Ua();function sL(e,t){let r=Object.assign({blockQuote:!0,commentString:iL.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(r.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:i,options:r}}function aL(e,t){if(t.tag){let n=e.filter(o=>o.tag===t.tag);if(n.length>0)return n.find(o=>o.format===t.format)??n[0]}let r,i;if(sn.isScalar(t)){i=t.value;let n=e.filter(o=>o.identify?.(i));if(n.length>1){let o=n.filter(s=>s.test);o.length>0&&(n=o)}r=n.find(o=>o.format===t.format)??n.find(o=>!o.format)}else i=t,r=e.find(n=>n.nodeClass&&i instanceof n.nodeClass);if(!r){let n=i?.constructor?.name??(i===null?"null":typeof i);throw new Error(`Tag not resolved for ${n} value`)}return r}function cL(e,t,{anchors:r,doc:i}){if(!i.directives)return"";let n=[],o=(sn.isScalar(e)||sn.isCollection(e))&&e.anchor;o&&nL.anchorIsValid(o)&&(r.add(o),n.push(`&${o}`));let s=e.tag??(t.default?null:t.tag);return s&&n.push(i.directives.tagString(s)),n.join(" ")}function lL(e,t,r,i){if(sn.isPair(e))return e.toString(t,r,i);if(sn.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 n,o=sn.isNode(e)?e:t.doc.createNode(e,{onTagObj:c=>n=c});n??(n=aL(t.doc.schema.tags,o));let s=cL(o,n,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);let a=typeof n.stringify=="function"?n.stringify(o,t,r,i):sn.isScalar(o)?oL.stringifyString(o,t,r,i):o.toString(t,r,i);return s?sn.isScalar(o)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
42
- ${t.indent}${a}`:a}__.createStringifyContext=sL;__.stringify=lL});var KI=v(VI=>{"use strict";var wr=de(),ZI=Oe(),FI=qa(),Za=Ra();function uL({key:e,value:t},r,i,n){let{allNullValues:o,doc:s,indent:a,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=r,f=wr.isNode(e)&&e.comment||null;if(d){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(wr.isCollection(e)||!wr.isNode(e)&&typeof e=="object"){let ee="With simple keys, collection cannot be used as a key value";throw new Error(ee)}}let p=!d&&(!e||f&&t==null&&!r.inFlow||wr.isCollection(e)||(wr.isScalar(e)?e.type===ZI.Scalar.BLOCK_FOLDED||e.type===ZI.Scalar.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!p&&(d||!o),indent:a+c});let g=!1,m=!1,h=FI.stringify(e,r,()=>g=!0,()=>m=!0);if(!p&&!r.inFlow&&h.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(r.inFlow){if(o||t==null)return g&&i&&i(),h===""?"?":p?`? ${h}`:h}else if(o&&!d||t==null&&p)return h=`? ${h}`,f&&!g?h+=Za.lineComment(h,r.indent,l(f)):m&&n&&n(),h;g&&(f=null),p?(f&&(h+=Za.lineComment(h,r.indent,l(f))),h=`? ${h}
43
- ${a}:`):(h=`${h}:`,f&&(h+=Za.lineComment(h,r.indent,l(f))));let $,k,x;wr.isNode(t)?($=!!t.spaceBefore,k=t.commentBefore,x=t.comment):($=!1,k=null,x=null,t&&typeof t=="object"&&(t=s.createNode(t))),r.implicitKey=!1,!p&&!f&&wr.isScalar(t)&&(r.indentAtStart=h.length+1),m=!1,!u&&c.length>=2&&!r.inFlow&&!p&&wr.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let N=!1,w=FI.stringify(t,r,()=>N=!0,()=>m=!0),q=" ";if(f||$||k){if(q=$?`
41
+ ${c}`);if(s){let f=m=>m.default&&m.tag!=="tag:yaml.org,2002:str"&&m.test?.test(d),{compat:p,tags:g}=t.doc.schema;if(g.some(f)||p?.some(f))return ho(o,t)}return a?d:on.foldFlowLines(d,c,on.FOLD_FLOW,Af(t,!1))}function nL(e,t,r,i){let{implicitKey:n,inFlow:o}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:a}=e;a!==Gt.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Gt.Scalar.QUOTE_DOUBLE);let c=u=>{switch(u){case Gt.Scalar.BLOCK_FOLDED:case Gt.Scalar.BLOCK_LITERAL:return n||o?ho(s.value,t):Df(s,t,r,i);case Gt.Scalar.QUOTE_DOUBLE:return Ua(s.value,t);case Gt.Scalar.QUOTE_SINGLE:return y_(s.value,t);case Gt.Scalar.PLAIN:return rL(s,t,r,i);default:return null}},l=c(a);if(l===null){let{defaultKeyType:u,defaultStringType:d}=t.options,f=n&&u||d;if(l=c(f),l===null)throw new Error(`Unsupported default string type ${f}`)}return l}ZI.stringifyString=nL});var Za=v(__=>{"use strict";var iL=Pf(),sn=de(),oL=Ma(),sL=qa();function aL(e,t){let r=Object.assign({blockQuote:!0,commentString:oL.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(r.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:i,options:r}}function cL(e,t){if(t.tag){let n=e.filter(o=>o.tag===t.tag);if(n.length>0)return n.find(o=>o.format===t.format)??n[0]}let r,i;if(sn.isScalar(t)){i=t.value;let n=e.filter(o=>o.identify?.(i));if(n.length>1){let o=n.filter(s=>s.test);o.length>0&&(n=o)}r=n.find(o=>o.format===t.format)??n.find(o=>!o.format)}else i=t,r=e.find(n=>n.nodeClass&&i instanceof n.nodeClass);if(!r){let n=i?.constructor?.name??(i===null?"null":typeof i);throw new Error(`Tag not resolved for ${n} value`)}return r}function lL(e,t,{anchors:r,doc:i}){if(!i.directives)return"";let n=[],o=(sn.isScalar(e)||sn.isCollection(e))&&e.anchor;o&&iL.anchorIsValid(o)&&(r.add(o),n.push(`&${o}`));let s=e.tag??(t.default?null:t.tag);return s&&n.push(i.directives.tagString(s)),n.join(" ")}function uL(e,t,r,i){if(sn.isPair(e))return e.toString(t,r,i);if(sn.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 n,o=sn.isNode(e)?e:t.doc.createNode(e,{onTagObj:c=>n=c});n??(n=cL(t.doc.schema.tags,o));let s=lL(o,n,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);let a=typeof n.stringify=="function"?n.stringify(o,t,r,i):sn.isScalar(o)?sL.stringifyString(o,t,r,i):o.toString(t,r,i);return s?sn.isScalar(o)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
42
+ ${t.indent}${a}`:a}__.createStringifyContext=aL;__.stringify=uL});var GI=v(KI=>{"use strict";var wr=de(),FI=Oe(),VI=Za(),Fa=Ma();function dL({key:e,value:t},r,i,n){let{allNullValues:o,doc:s,indent:a,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=r,f=wr.isNode(e)&&e.comment||null;if(d){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(wr.isCollection(e)||!wr.isNode(e)&&typeof e=="object"){let ee="With simple keys, collection cannot be used as a key value";throw new Error(ee)}}let p=!d&&(!e||f&&t==null&&!r.inFlow||wr.isCollection(e)||(wr.isScalar(e)?e.type===FI.Scalar.BLOCK_FOLDED||e.type===FI.Scalar.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!p&&(d||!o),indent:a+c});let g=!1,m=!1,h=VI.stringify(e,r,()=>g=!0,()=>m=!0);if(!p&&!r.inFlow&&h.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(r.inFlow){if(o||t==null)return g&&i&&i(),h===""?"?":p?`? ${h}`:h}else if(o&&!d||t==null&&p)return h=`? ${h}`,f&&!g?h+=Fa.lineComment(h,r.indent,l(f)):m&&n&&n(),h;g&&(f=null),p?(f&&(h+=Fa.lineComment(h,r.indent,l(f))),h=`? ${h}
43
+ ${a}:`):(h=`${h}:`,f&&(h+=Fa.lineComment(h,r.indent,l(f))));let $,k,x;wr.isNode(t)?($=!!t.spaceBefore,k=t.commentBefore,x=t.comment):($=!1,k=null,x=null,t&&typeof t=="object"&&(t=s.createNode(t))),r.implicitKey=!1,!p&&!f&&wr.isScalar(t)&&(r.indentAtStart=h.length+1),m=!1,!u&&c.length>=2&&!r.inFlow&&!p&&wr.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let N=!1,w=VI.stringify(t,r,()=>N=!0,()=>m=!0),q=" ";if(f||$||k){if(q=$?`
44
44
  `:"",k){let ee=l(k);q+=`
45
- ${Za.indentComment(ee,r.indent)}`}w===""&&!r.inFlow?q===`
45
+ ${Fa.indentComment(ee,r.indent)}`}w===""&&!r.inFlow?q===`
46
46
  `&&x&&(q=`
47
47
 
48
48
  `):q+=`
49
49
  ${r.indent}`}else if(!p&&wr.isCollection(t)){let ee=w[0],R=w.indexOf(`
50
50
  `),W=R!==-1,me=r.inFlow??t.flow??t.items.length===0;if(W||!me){let Ae=!1;if(W&&(ee==="&"||ee==="!")){let Ie=w.indexOf(" ");ee==="&"&&Ie!==-1&&Ie<R&&w[Ie+1]==="!"&&(Ie=w.indexOf(" ",Ie+1)),(Ie===-1||R<Ie)&&(Ae=!0)}Ae||(q=`
51
51
  ${r.indent}`)}}else(w===""||w[0]===`
52
- `)&&(q="");return h+=q+w,r.inFlow?N&&i&&i():x&&!N?h+=Za.lineComment(h,r.indent,l(x)):m&&n&&n(),h}VI.stringifyPair=uL});var $_=v(b_=>{"use strict";var GI=require("process");function dL(e,...t){e==="debug"&&console.log(...t)}function fL(e,t){(e==="debug"||e==="warn")&&(typeof GI.emitWarning=="function"?GI.emitWarning(t):console.warn(t))}b_.debug=dL;b_.warn=fL});var qf=v(Uf=>{"use strict";var Fa=de(),BI=Oe(),Mf="<<",Lf={identify:e=>e===Mf||typeof e=="symbol"&&e.description===Mf,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new BI.Scalar(Symbol(Mf)),{addToJSMap:JI}),stringify:()=>Mf},pL=(e,t)=>(Lf.identify(t)||Fa.isScalar(t)&&(!t.type||t.type===BI.Scalar.PLAIN)&&Lf.identify(t.value))&&e?.doc.schema.tags.some(r=>r.tag===Lf.tag&&r.default);function JI(e,t,r){if(r=e&&Fa.isAlias(r)?r.resolve(e.doc):r,Fa.isSeq(r))for(let i of r.items)k_(e,t,i);else if(Array.isArray(r))for(let i of r)k_(e,t,i);else k_(e,t,r)}function k_(e,t,r){let i=e&&Fa.isAlias(r)?r.resolve(e.doc):r;if(!Fa.isMap(i))throw new Error("Merge sources must be maps or map aliases");let n=i.toJSON(null,e,Map);for(let[o,s]of n)t instanceof Map?t.has(o)||t.set(o,s):t instanceof Set?t.add(o):Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}Uf.addMergeToJSMap=JI;Uf.isMergeKey=pL;Uf.merge=Lf});var x_=v(YI=>{"use strict";var mL=$_(),HI=qf(),gL=qa(),WI=de(),S_=rn();function hL(e,t,{key:r,value:i}){if(WI.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,i);else if(HI.isMergeKey(e,r))HI.addMergeToJSMap(e,t,i);else{let n=S_.toJS(r,"",e);if(t instanceof Map)t.set(n,S_.toJS(i,n,e));else if(t instanceof Set)t.add(n);else{let o=yL(r,n,e),s=S_.toJS(i,o,e);o in t?Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[o]=s}}return t}function yL(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(WI.isNode(e)&&r?.doc){let i=gL.createStringifyContext(r.doc,{});i.anchors=new Set;for(let o of r.anchors.keys())i.anchors.add(o.anchor);i.inFlow=!0,i.inStringifyKey=!0;let n=e.toString(i);if(!r.mapKeyWarned){let o=JSON.stringify(n);o.length>40&&(o=o.substring(0,36)+'..."'),mL.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(t)}YI.addPairToJSMap=hL});var an=v(w_=>{"use strict";var QI=Aa(),vL=KI(),_L=x_(),Zf=de();function bL(e,t,r){let i=QI.createNode(e,void 0,r),n=QI.createNode(t,void 0,r);return new Ff(i,n)}var Ff=class e{constructor(t,r=null){Object.defineProperty(this,Zf.NODE_TYPE,{value:Zf.PAIR}),this.key=t,this.value=r}clone(t){let{key:r,value:i}=this;return Zf.isNode(r)&&(r=r.clone(t)),Zf.isNode(i)&&(i=i.clone(t)),new e(r,i)}toJSON(t,r){let i=r?.mapAsMap?new Map:{};return _L.addPairToJSMap(r,i,this)}toString(t,r,i){return t?.doc?vL.stringifyPair(this,t,r,i):JSON.stringify(this)}};w_.Pair=Ff;w_.createPair=bL});var I_=v(ez=>{"use strict";var Kn=de(),XI=qa(),Vf=Ra();function $L(e,t,r){return(t.inFlow??e.flow?SL:kL)(e,t,r)}function kL({comment:e,items:t},r,{blockItemPrefix:i,flowChars:n,itemIndent:o,onChompKeep:s,onComment:a}){let{indent:c,options:{commentString:l}}=r,u=Object.assign({},r,{indent:o,type:null}),d=!1,f=[];for(let g=0;g<t.length;++g){let m=t[g],h=null;if(Kn.isNode(m))!d&&m.spaceBefore&&f.push(""),Kf(r,f,m.commentBefore,d),m.comment&&(h=m.comment);else if(Kn.isPair(m)){let k=Kn.isNode(m.key)?m.key:null;k&&(!d&&k.spaceBefore&&f.push(""),Kf(r,f,k.commentBefore,d))}d=!1;let $=XI.stringify(m,u,()=>h=null,()=>d=!0);h&&($+=Vf.lineComment($,o,l(h))),d&&h&&(d=!1),f.push(i+$)}let p;if(f.length===0)p=n.start+n.end;else{p=f[0];for(let g=1;g<f.length;++g){let m=f[g];p+=m?`
52
+ `)&&(q="");return h+=q+w,r.inFlow?N&&i&&i():x&&!N?h+=Fa.lineComment(h,r.indent,l(x)):m&&n&&n(),h}KI.stringifyPair=dL});var $_=v(b_=>{"use strict";var BI=require("process");function fL(e,...t){e==="debug"&&console.log(...t)}function pL(e,t){(e==="debug"||e==="warn")&&(typeof BI.emitWarning=="function"?BI.emitWarning(t):console.warn(t))}b_.debug=fL;b_.warn=pL});var qf=v(Uf=>{"use strict";var Va=de(),JI=Oe(),Mf="<<",Lf={identify:e=>e===Mf||typeof e=="symbol"&&e.description===Mf,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new JI.Scalar(Symbol(Mf)),{addToJSMap:HI}),stringify:()=>Mf},mL=(e,t)=>(Lf.identify(t)||Va.isScalar(t)&&(!t.type||t.type===JI.Scalar.PLAIN)&&Lf.identify(t.value))&&e?.doc.schema.tags.some(r=>r.tag===Lf.tag&&r.default);function HI(e,t,r){if(r=e&&Va.isAlias(r)?r.resolve(e.doc):r,Va.isSeq(r))for(let i of r.items)k_(e,t,i);else if(Array.isArray(r))for(let i of r)k_(e,t,i);else k_(e,t,r)}function k_(e,t,r){let i=e&&Va.isAlias(r)?r.resolve(e.doc):r;if(!Va.isMap(i))throw new Error("Merge sources must be maps or map aliases");let n=i.toJSON(null,e,Map);for(let[o,s]of n)t instanceof Map?t.has(o)||t.set(o,s):t instanceof Set?t.add(o):Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}Uf.addMergeToJSMap=HI;Uf.isMergeKey=mL;Uf.merge=Lf});var x_=v(QI=>{"use strict";var gL=$_(),WI=qf(),hL=Za(),YI=de(),S_=rn();function yL(e,t,{key:r,value:i}){if(YI.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,i);else if(WI.isMergeKey(e,r))WI.addMergeToJSMap(e,t,i);else{let n=S_.toJS(r,"",e);if(t instanceof Map)t.set(n,S_.toJS(i,n,e));else if(t instanceof Set)t.add(n);else{let o=vL(r,n,e),s=S_.toJS(i,o,e);o in t?Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[o]=s}}return t}function vL(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(YI.isNode(e)&&r?.doc){let i=hL.createStringifyContext(r.doc,{});i.anchors=new Set;for(let o of r.anchors.keys())i.anchors.add(o.anchor);i.inFlow=!0,i.inStringifyKey=!0;let n=e.toString(i);if(!r.mapKeyWarned){let o=JSON.stringify(n);o.length>40&&(o=o.substring(0,36)+'..."'),gL.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(t)}QI.addPairToJSMap=yL});var an=v(w_=>{"use strict";var XI=Ra(),_L=GI(),bL=x_(),Zf=de();function $L(e,t,r){let i=XI.createNode(e,void 0,r),n=XI.createNode(t,void 0,r);return new Ff(i,n)}var Ff=class e{constructor(t,r=null){Object.defineProperty(this,Zf.NODE_TYPE,{value:Zf.PAIR}),this.key=t,this.value=r}clone(t){let{key:r,value:i}=this;return Zf.isNode(r)&&(r=r.clone(t)),Zf.isNode(i)&&(i=i.clone(t)),new e(r,i)}toJSON(t,r){let i=r?.mapAsMap?new Map:{};return bL.addPairToJSMap(r,i,this)}toString(t,r,i){return t?.doc?_L.stringifyPair(this,t,r,i):JSON.stringify(this)}};w_.Pair=Ff;w_.createPair=$L});var I_=v(tz=>{"use strict";var Kn=de(),ez=Za(),Vf=Ma();function kL(e,t,r){return(t.inFlow??e.flow?xL:SL)(e,t,r)}function SL({comment:e,items:t},r,{blockItemPrefix:i,flowChars:n,itemIndent:o,onChompKeep:s,onComment:a}){let{indent:c,options:{commentString:l}}=r,u=Object.assign({},r,{indent:o,type:null}),d=!1,f=[];for(let g=0;g<t.length;++g){let m=t[g],h=null;if(Kn.isNode(m))!d&&m.spaceBefore&&f.push(""),Kf(r,f,m.commentBefore,d),m.comment&&(h=m.comment);else if(Kn.isPair(m)){let k=Kn.isNode(m.key)?m.key:null;k&&(!d&&k.spaceBefore&&f.push(""),Kf(r,f,k.commentBefore,d))}d=!1;let $=ez.stringify(m,u,()=>h=null,()=>d=!0);h&&($+=Vf.lineComment($,o,l(h))),d&&h&&(d=!1),f.push(i+$)}let p;if(f.length===0)p=n.start+n.end;else{p=f[0];for(let g=1;g<f.length;++g){let m=f[g];p+=m?`
53
53
  ${c}${m}`:`
54
54
  `}}return e?(p+=`
55
- `+Vf.indentComment(l(e),c),a&&a()):d&&s&&s(),p}function SL({items:e},t,{flowChars:r,itemIndent:i}){let{indent:n,indentStep:o,flowCollectionPadding:s,options:{commentString:a}}=t;i+=o;let c=Object.assign({},t,{indent:i,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let g=0;g<e.length;++g){let m=e[g],h=null;if(Kn.isNode(m))m.spaceBefore&&d.push(""),Kf(t,d,m.commentBefore,!1),m.comment&&(h=m.comment);else if(Kn.isPair(m)){let k=Kn.isNode(m.key)?m.key:null;k&&(k.spaceBefore&&d.push(""),Kf(t,d,k.commentBefore,!1),k.comment&&(l=!0));let x=Kn.isNode(m.value)?m.value:null;x?(x.comment&&(h=x.comment),x.commentBefore&&(l=!0)):m.value==null&&k?.comment&&(h=k.comment)}h&&(l=!0);let $=XI.stringify(m,c,()=>h=null);l||(l=d.length>u||$.includes(`
55
+ `+Vf.indentComment(l(e),c),a&&a()):d&&s&&s(),p}function xL({items:e},t,{flowChars:r,itemIndent:i}){let{indent:n,indentStep:o,flowCollectionPadding:s,options:{commentString:a}}=t;i+=o;let c=Object.assign({},t,{indent:i,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let g=0;g<e.length;++g){let m=e[g],h=null;if(Kn.isNode(m))m.spaceBefore&&d.push(""),Kf(t,d,m.commentBefore,!1),m.comment&&(h=m.comment);else if(Kn.isPair(m)){let k=Kn.isNode(m.key)?m.key:null;k&&(k.spaceBefore&&d.push(""),Kf(t,d,k.commentBefore,!1),k.comment&&(l=!0));let x=Kn.isNode(m.value)?m.value:null;x?(x.comment&&(h=x.comment),x.commentBefore&&(l=!0)):m.value==null&&k?.comment&&(h=k.comment)}h&&(l=!0);let $=ez.stringify(m,c,()=>h=null);l||(l=d.length>u||$.includes(`
56
56
  `)),g<e.length-1?$+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(l||(l=d.reduce((k,x)=>k+x.length+2,2)+($.length+2)>t.options.lineWidth)),l&&($+=",")),h&&($+=Vf.lineComment($,i,a(h))),d.push($),u=d.length}let{start:f,end:p}=r;if(d.length===0)return f+p;if(!l){let g=d.reduce((m,h)=>m+h.length+2,2);l=t.options.lineWidth>0&&g>t.options.lineWidth}if(l){let g=f;for(let m of d)g+=m?`
57
57
  ${o}${n}${m}`:`
58
58
  `;return`${g}
59
- ${n}${p}`}else return`${f}${s}${d.join(" ")}${s}${p}`}function Kf({indent:e,options:{commentString:t}},r,i,n){if(i&&n&&(i=i.replace(/^\n+/,"")),i){let o=Vf.indentComment(t(i),e);r.push(o.trimStart())}}ez.stringifyCollection=$L});var ln=v(P_=>{"use strict";var xL=I_(),wL=x_(),IL=Of(),cn=de(),Gf=an(),zL=Oe();function Va(e,t){let r=cn.isScalar(t)?t.value:t;for(let i of e)if(cn.isPair(i)&&(i.key===t||i.key===r||cn.isScalar(i.key)&&i.key.value===r))return i}var z_=class extends IL.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(cn.MAP,t),this.items=[]}static from(t,r,i){let{keepUndefined:n,replacer:o}=i,s=new this(t),a=(c,l)=>{if(typeof o=="function")l=o.call(r,c,l);else if(Array.isArray(o)&&!o.includes(c))return;(l!==void 0||n)&&s.items.push(Gf.createPair(c,l,i))};if(r instanceof Map)for(let[c,l]of r)a(c,l);else if(r&&typeof r=="object")for(let c of Object.keys(r))a(c,r[c]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,r){let i;cn.isPair(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new Gf.Pair(t,t?.value):i=new Gf.Pair(t.key,t.value);let n=Va(this.items,i.key),o=this.schema?.sortMapEntries;if(n){if(!r)throw new Error(`Key ${i.key} already set`);cn.isScalar(n.value)&&zL.isScalarValue(i.value)?n.value.value=i.value:n.value=i.value}else if(o){let s=this.items.findIndex(a=>o(i,a)<0);s===-1?this.items.push(i):this.items.splice(s,0,i)}else this.items.push(i)}delete(t){let r=Va(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){let n=Va(this.items,t)?.value;return(!r&&cn.isScalar(n)?n.value:n)??void 0}has(t){return!!Va(this.items,t)}set(t,r){this.add(new Gf.Pair(t,r),!0)}toJSON(t,r,i){let n=i?new i:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(n);for(let o of this.items)wL.addPairToJSMap(r,n,o);return n}toString(t,r,i){if(!t)return JSON.stringify(this);for(let n of this.items)if(!cn.isPair(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),xL.stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:r})}};P_.YAMLMap=z_;P_.findPair=Va});var yo=v(rz=>{"use strict";var PL=de(),tz=ln(),TL={collection:"map",default:!0,nodeClass:tz.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return PL.isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>tz.YAMLMap.from(e,t,r)};rz.map=TL});var un=v(nz=>{"use strict";var EL=Aa(),NL=I_(),OL=Of(),Jf=de(),jL=Oe(),CL=rn(),T_=class extends OL.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Jf.SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){let r=Bf(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){let i=Bf(t);if(typeof i!="number")return;let n=this.items[i];return!r&&Jf.isScalar(n)?n.value:n}has(t){let r=Bf(t);return typeof r=="number"&&r<this.items.length}set(t,r){let i=Bf(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);let n=this.items[i];Jf.isScalar(n)&&jL.isScalarValue(r)?n.value=r:this.items[i]=r}toJSON(t,r){let i=[];r?.onCreate&&r.onCreate(i);let n=0;for(let o of this.items)i.push(CL.toJS(o,String(n++),r));return i}toString(t,r,i){return t?NL.stringifyCollection(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:r}):JSON.stringify(this)}static from(t,r,i){let{replacer:n}=i,o=new this(t);if(r&&Symbol.iterator in Object(r)){let s=0;for(let a of r){if(typeof n=="function"){let c=r instanceof Set?a:String(s++);a=n.call(r,c,a)}o.items.push(EL.createNode(a,void 0,i))}}return o}};function Bf(e){let t=Jf.isScalar(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}nz.YAMLSeq=T_});var vo=v(oz=>{"use strict";var DL=de(),iz=un(),AL={collection:"seq",default:!0,nodeClass:iz.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return DL.isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>iz.YAMLSeq.from(e,t,r)};oz.seq=AL});var Ka=v(sz=>{"use strict";var RL=Ua(),ML={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,i){return t=Object.assign({actualString:!0},t),RL.stringifyString(e,t,r,i)}};sz.string=ML});var Hf=v(lz=>{"use strict";var az=Oe(),cz={identify:e=>e==null,createNode:()=>new az.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new az.Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&cz.test.test(e)?e:t.options.nullStr};lz.nullTag=cz});var E_=v(dz=>{"use strict";var LL=Oe(),uz={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new LL.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&uz.test.test(e)){let i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?r.options.trueStr:r.options.falseStr}};dz.boolTag=uz});var _o=v(fz=>{"use strict";function UL({format:e,minFractionDigits:t,tag:r,value:i}){if(typeof i=="bigint")return String(i);let n=typeof i=="number"?i:Number(i);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let o=Object.is(i,-0)?"-0":JSON.stringify(i);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let s=o.indexOf(".");s<0&&(s=o.length,o+=".");let a=t-(o.length-s-1);for(;a-- >0;)o+="0"}return o}fz.stringifyNumber=UL});var O_=v(Wf=>{"use strict";var qL=Oe(),N_=_o(),ZL={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:N_.stringifyNumber},FL={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():N_.stringifyNumber(e)}},VL={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 qL.Scalar(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:N_.stringifyNumber};Wf.float=VL;Wf.floatExp=FL;Wf.floatNaN=ZL});var C_=v(Qf=>{"use strict";var pz=_o(),Yf=e=>typeof e=="bigint"||Number.isInteger(e),j_=(e,t,r,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),r);function mz(e,t,r){let{value:i}=e;return Yf(i)&&i>=0?r+i.toString(t):pz.stringifyNumber(e)}var KL={identify:e=>Yf(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>j_(e,2,8,r),stringify:e=>mz(e,8,"0o")},GL={identify:Yf,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>j_(e,0,10,r),stringify:pz.stringifyNumber},BL={identify:e=>Yf(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>j_(e,2,16,r),stringify:e=>mz(e,16,"0x")};Qf.int=GL;Qf.intHex=BL;Qf.intOct=KL});var hz=v(gz=>{"use strict";var JL=yo(),HL=Hf(),WL=vo(),YL=Ka(),QL=E_(),D_=O_(),A_=C_(),XL=[JL.map,WL.seq,YL.string,HL.nullTag,QL.boolTag,A_.intOct,A_.int,A_.intHex,D_.floatNaN,D_.floatExp,D_.float];gz.schema=XL});var _z=v(vz=>{"use strict";var eU=Oe(),tU=yo(),rU=vo();function yz(e){return typeof e=="bigint"||Number.isInteger(e)}var Xf=({value:e})=>JSON.stringify(e),nU=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Xf},{identify:e=>e==null,createNode:()=>new eU.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Xf},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:Xf},{identify:yz,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>yz(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:Xf}],iU={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},oU=[tU.map,rU.seq].concat(nU,iU);vz.schema=oU});var M_=v(bz=>{"use strict";var Ga=require("buffer"),R_=Oe(),sU=Ua(),aU={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Ga.Buffer=="function")return Ga.Buffer.from(e,"base64");if(typeof atob=="function"){let r=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(r.length);for(let n=0;n<r.length;++n)i[n]=r.charCodeAt(n);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:r},i,n,o){if(!r)return"";let s=r,a;if(typeof Ga.Buffer=="function")a=s instanceof Ga.Buffer?s.toString("base64"):Ga.Buffer.from(s.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let l=0;l<s.length;++l)c+=String.fromCharCode(s[l]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=R_.Scalar.BLOCK_LITERAL),t!==R_.Scalar.QUOTE_DOUBLE){let c=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),l=Math.ceil(a.length/c),u=new Array(l);for(let d=0,f=0;d<l;++d,f+=c)u[d]=a.substr(f,c);a=u.join(t===R_.Scalar.BLOCK_LITERAL?`
60
- `:" ")}return sU.stringifyString({comment:e,type:t,value:a},i,n,o)}};bz.binary=aU});var rp=v(tp=>{"use strict";var ep=de(),L_=an(),cU=Oe(),lU=un();function $z(e,t){if(ep.isSeq(e))for(let r=0;r<e.items.length;++r){let i=e.items[r];if(!ep.isPair(i)){if(ep.isMap(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");let n=i.items[0]||new L_.Pair(new cU.Scalar(null));if(i.commentBefore&&(n.key.commentBefore=n.key.commentBefore?`${i.commentBefore}
59
+ ${n}${p}`}else return`${f}${s}${d.join(" ")}${s}${p}`}function Kf({indent:e,options:{commentString:t}},r,i,n){if(i&&n&&(i=i.replace(/^\n+/,"")),i){let o=Vf.indentComment(t(i),e);r.push(o.trimStart())}}tz.stringifyCollection=kL});var ln=v(P_=>{"use strict";var wL=I_(),IL=x_(),zL=Of(),cn=de(),Gf=an(),PL=Oe();function Ka(e,t){let r=cn.isScalar(t)?t.value:t;for(let i of e)if(cn.isPair(i)&&(i.key===t||i.key===r||cn.isScalar(i.key)&&i.key.value===r))return i}var z_=class extends zL.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(cn.MAP,t),this.items=[]}static from(t,r,i){let{keepUndefined:n,replacer:o}=i,s=new this(t),a=(c,l)=>{if(typeof o=="function")l=o.call(r,c,l);else if(Array.isArray(o)&&!o.includes(c))return;(l!==void 0||n)&&s.items.push(Gf.createPair(c,l,i))};if(r instanceof Map)for(let[c,l]of r)a(c,l);else if(r&&typeof r=="object")for(let c of Object.keys(r))a(c,r[c]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,r){let i;cn.isPair(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new Gf.Pair(t,t?.value):i=new Gf.Pair(t.key,t.value);let n=Ka(this.items,i.key),o=this.schema?.sortMapEntries;if(n){if(!r)throw new Error(`Key ${i.key} already set`);cn.isScalar(n.value)&&PL.isScalarValue(i.value)?n.value.value=i.value:n.value=i.value}else if(o){let s=this.items.findIndex(a=>o(i,a)<0);s===-1?this.items.push(i):this.items.splice(s,0,i)}else this.items.push(i)}delete(t){let r=Ka(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){let n=Ka(this.items,t)?.value;return(!r&&cn.isScalar(n)?n.value:n)??void 0}has(t){return!!Ka(this.items,t)}set(t,r){this.add(new Gf.Pair(t,r),!0)}toJSON(t,r,i){let n=i?new i:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(n);for(let o of this.items)IL.addPairToJSMap(r,n,o);return n}toString(t,r,i){if(!t)return JSON.stringify(this);for(let n of this.items)if(!cn.isPair(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),wL.stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:r})}};P_.YAMLMap=z_;P_.findPair=Ka});var yo=v(nz=>{"use strict";var TL=de(),rz=ln(),EL={collection:"map",default:!0,nodeClass:rz.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return TL.isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>rz.YAMLMap.from(e,t,r)};nz.map=EL});var un=v(iz=>{"use strict";var NL=Ra(),OL=I_(),jL=Of(),Jf=de(),CL=Oe(),DL=rn(),T_=class extends jL.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Jf.SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){let r=Bf(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){let i=Bf(t);if(typeof i!="number")return;let n=this.items[i];return!r&&Jf.isScalar(n)?n.value:n}has(t){let r=Bf(t);return typeof r=="number"&&r<this.items.length}set(t,r){let i=Bf(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);let n=this.items[i];Jf.isScalar(n)&&CL.isScalarValue(r)?n.value=r:this.items[i]=r}toJSON(t,r){let i=[];r?.onCreate&&r.onCreate(i);let n=0;for(let o of this.items)i.push(DL.toJS(o,String(n++),r));return i}toString(t,r,i){return t?OL.stringifyCollection(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:r}):JSON.stringify(this)}static from(t,r,i){let{replacer:n}=i,o=new this(t);if(r&&Symbol.iterator in Object(r)){let s=0;for(let a of r){if(typeof n=="function"){let c=r instanceof Set?a:String(s++);a=n.call(r,c,a)}o.items.push(NL.createNode(a,void 0,i))}}return o}};function Bf(e){let t=Jf.isScalar(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}iz.YAMLSeq=T_});var vo=v(sz=>{"use strict";var AL=de(),oz=un(),RL={collection:"seq",default:!0,nodeClass:oz.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return AL.isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>oz.YAMLSeq.from(e,t,r)};sz.seq=RL});var Ga=v(az=>{"use strict";var ML=qa(),LL={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,i){return t=Object.assign({actualString:!0},t),ML.stringifyString(e,t,r,i)}};az.string=LL});var Hf=v(uz=>{"use strict";var cz=Oe(),lz={identify:e=>e==null,createNode:()=>new cz.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new cz.Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&lz.test.test(e)?e:t.options.nullStr};uz.nullTag=lz});var E_=v(fz=>{"use strict";var UL=Oe(),dz={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new UL.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&dz.test.test(e)){let i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?r.options.trueStr:r.options.falseStr}};fz.boolTag=dz});var _o=v(pz=>{"use strict";function qL({format:e,minFractionDigits:t,tag:r,value:i}){if(typeof i=="bigint")return String(i);let n=typeof i=="number"?i:Number(i);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let o=Object.is(i,-0)?"-0":JSON.stringify(i);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let s=o.indexOf(".");s<0&&(s=o.length,o+=".");let a=t-(o.length-s-1);for(;a-- >0;)o+="0"}return o}pz.stringifyNumber=qL});var O_=v(Wf=>{"use strict";var ZL=Oe(),N_=_o(),FL={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:N_.stringifyNumber},VL={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():N_.stringifyNumber(e)}},KL={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 ZL.Scalar(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:N_.stringifyNumber};Wf.float=KL;Wf.floatExp=VL;Wf.floatNaN=FL});var C_=v(Qf=>{"use strict";var mz=_o(),Yf=e=>typeof e=="bigint"||Number.isInteger(e),j_=(e,t,r,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),r);function gz(e,t,r){let{value:i}=e;return Yf(i)&&i>=0?r+i.toString(t):mz.stringifyNumber(e)}var GL={identify:e=>Yf(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>j_(e,2,8,r),stringify:e=>gz(e,8,"0o")},BL={identify:Yf,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>j_(e,0,10,r),stringify:mz.stringifyNumber},JL={identify:e=>Yf(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>j_(e,2,16,r),stringify:e=>gz(e,16,"0x")};Qf.int=BL;Qf.intHex=JL;Qf.intOct=GL});var yz=v(hz=>{"use strict";var HL=yo(),WL=Hf(),YL=vo(),QL=Ga(),XL=E_(),D_=O_(),A_=C_(),eU=[HL.map,YL.seq,QL.string,WL.nullTag,XL.boolTag,A_.intOct,A_.int,A_.intHex,D_.floatNaN,D_.floatExp,D_.float];hz.schema=eU});var bz=v(_z=>{"use strict";var tU=Oe(),rU=yo(),nU=vo();function vz(e){return typeof e=="bigint"||Number.isInteger(e)}var Xf=({value:e})=>JSON.stringify(e),iU=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Xf},{identify:e=>e==null,createNode:()=>new tU.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Xf},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:Xf},{identify:vz,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>vz(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:Xf}],oU={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},sU=[rU.map,nU.seq].concat(iU,oU);_z.schema=sU});var M_=v($z=>{"use strict";var Ba=require("buffer"),R_=Oe(),aU=qa(),cU={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Ba.Buffer=="function")return Ba.Buffer.from(e,"base64");if(typeof atob=="function"){let r=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(r.length);for(let n=0;n<r.length;++n)i[n]=r.charCodeAt(n);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:r},i,n,o){if(!r)return"";let s=r,a;if(typeof Ba.Buffer=="function")a=s instanceof Ba.Buffer?s.toString("base64"):Ba.Buffer.from(s.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let l=0;l<s.length;++l)c+=String.fromCharCode(s[l]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=R_.Scalar.BLOCK_LITERAL),t!==R_.Scalar.QUOTE_DOUBLE){let c=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),l=Math.ceil(a.length/c),u=new Array(l);for(let d=0,f=0;d<l;++d,f+=c)u[d]=a.substr(f,c);a=u.join(t===R_.Scalar.BLOCK_LITERAL?`
60
+ `:" ")}return aU.stringifyString({comment:e,type:t,value:a},i,n,o)}};$z.binary=cU});var rp=v(tp=>{"use strict";var ep=de(),L_=an(),lU=Oe(),uU=un();function kz(e,t){if(ep.isSeq(e))for(let r=0;r<e.items.length;++r){let i=e.items[r];if(!ep.isPair(i)){if(ep.isMap(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");let n=i.items[0]||new L_.Pair(new lU.Scalar(null));if(i.commentBefore&&(n.key.commentBefore=n.key.commentBefore?`${i.commentBefore}
61
61
  ${n.key.commentBefore}`:i.commentBefore),i.comment){let o=n.value??n.key;o.comment=o.comment?`${i.comment}
62
- ${o.comment}`:i.comment}i=n}e.items[r]=ep.isPair(i)?i:new L_.Pair(i)}}else t("Expected a sequence for this tag");return e}function kz(e,t,r){let{replacer:i}=r,n=new lU.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof i=="function"&&(s=i.call(t,String(o++),s));let a,c;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let l=Object.keys(s);if(l.length===1)a=l[0],c=s[a];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else a=s;n.items.push(L_.createPair(a,c,r))}return n}var uU={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:$z,createNode:kz};tp.createPairs=kz;tp.pairs=uU;tp.resolvePairs=$z});var Z_=v(q_=>{"use strict";var Sz=de(),U_=rn(),Ba=ln(),dU=un(),xz=rp(),Gn=class e extends dU.YAMLSeq{constructor(){super(),this.add=Ba.YAMLMap.prototype.add.bind(this),this.delete=Ba.YAMLMap.prototype.delete.bind(this),this.get=Ba.YAMLMap.prototype.get.bind(this),this.has=Ba.YAMLMap.prototype.has.bind(this),this.set=Ba.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(t,r){if(!r)return super.toJSON(t);let i=new Map;r?.onCreate&&r.onCreate(i);for(let n of this.items){let o,s;if(Sz.isPair(n)?(o=U_.toJS(n.key,"",r),s=U_.toJS(n.value,o,r)):o=U_.toJS(n,"",r),i.has(o))throw new Error("Ordered maps must not include duplicate keys");i.set(o,s)}return i}static from(t,r,i){let n=xz.createPairs(t,r,i),o=new this;return o.items=n.items,o}};Gn.tag="tag:yaml.org,2002:omap";var fU={collection:"seq",identify:e=>e instanceof Map,nodeClass:Gn,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=xz.resolvePairs(e,t),i=[];for(let{key:n}of r.items)Sz.isScalar(n)&&(i.includes(n.value)?t(`Ordered maps must not include duplicate keys: ${n.value}`):i.push(n.value));return Object.assign(new Gn,r)},createNode:(e,t,r)=>Gn.from(e,t,r)};q_.YAMLOMap=Gn;q_.omap=fU});var Tz=v(F_=>{"use strict";var wz=Oe();function Iz({value:e,source:t},r){return t&&(e?zz:Pz).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}var zz={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 wz.Scalar(!0),stringify:Iz},Pz={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 wz.Scalar(!1),stringify:Iz};F_.falseTag=Pz;F_.trueTag=zz});var Ez=v(np=>{"use strict";var pU=Oe(),V_=_o(),mU={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:V_.stringifyNumber},gU={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():V_.stringifyNumber(e)}},hU={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 pU.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){let i=e.substring(r+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:V_.stringifyNumber};np.float=hU;np.floatExp=gU;np.floatNaN=mU});var Oz=v(Ha=>{"use strict";var Nz=_o(),Ja=e=>typeof e=="bigint"||Number.isInteger(e);function ip(e,t,r,{intAsBigInt:i}){let n=e[0];if((n==="-"||n==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let s=BigInt(e);return n==="-"?BigInt(-1)*s:s}let o=parseInt(e,r);return n==="-"?-1*o:o}function K_(e,t,r){let{value:i}=e;if(Ja(i)){let n=i.toString(t);return i<0?"-"+r+n.substr(1):r+n}return Nz.stringifyNumber(e)}var yU={identify:Ja,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>ip(e,2,2,r),stringify:e=>K_(e,2,"0b")},vU={identify:Ja,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>ip(e,1,8,r),stringify:e=>K_(e,8,"0")},_U={identify:Ja,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>ip(e,0,10,r),stringify:Nz.stringifyNumber},bU={identify:Ja,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>ip(e,2,16,r),stringify:e=>K_(e,16,"0x")};Ha.int=_U;Ha.intBin=yU;Ha.intHex=bU;Ha.intOct=vU});var B_=v(G_=>{"use strict";var ap=de(),op=an(),sp=ln(),Bn=class e extends sp.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(t){let r;ap.isPair(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new op.Pair(t.key,null):r=new op.Pair(t,null),sp.findPair(this.items,r.key)||this.items.push(r)}get(t,r){let i=sp.findPair(this.items,t);return!r&&ap.isPair(i)?ap.isScalar(i.key)?i.key.value:i.key:i}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);let i=sp.findPair(this.items,t);i&&!r?this.items.splice(this.items.indexOf(i),1):!i&&r&&this.items.push(new op.Pair(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,i);throw new Error("Set items must all have null values")}static from(t,r,i){let{replacer:n}=i,o=new this(t);if(r&&Symbol.iterator in Object(r))for(let s of r)typeof n=="function"&&(s=n.call(r,s,s)),o.items.push(op.createPair(s,null,i));return o}};Bn.tag="tag:yaml.org,2002:set";var $U={collection:"map",identify:e=>e instanceof Set,nodeClass:Bn,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>Bn.from(e,t,r),resolve(e,t){if(ap.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new Bn,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};G_.YAMLSet=Bn;G_.set=$U});var H_=v(cp=>{"use strict";var kU=_o();function J_(e,t){let r=e[0],i=r==="-"||r==="+"?e.substring(1):e,n=s=>t?BigInt(s):Number(s),o=i.replace(/_/g,"").split(":").reduce((s,a)=>s*n(60)+n(a),n(0));return r==="-"?n(-1)*o:o}function jz(e){let{value:t}=e,r=s=>s;if(typeof t=="bigint")r=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return kU.stringifyNumber(e);let i="";t<0&&(i="-",t*=r(-1));let n=r(60),o=[t%n];return t<60?o.unshift(0):(t=(t-o[0])/n,o.unshift(t%n),t>=60&&(t=(t-o[0])/n,o.unshift(t))),i+o.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var SU={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:r})=>J_(e,r),stringify:jz},xU={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=>J_(e,!1),stringify:jz},Cz={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(Cz.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,i,n,o,s,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0,l=Date.UTC(r,i-1,n,o||0,s||0,a||0,c),u=t[8];if(u&&u!=="Z"){let d=J_(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$/,"")??""};cp.floatTime=xU;cp.intTime=SU;cp.timestamp=Cz});var Rz=v(Az=>{"use strict";var wU=yo(),IU=Hf(),zU=vo(),PU=Ka(),TU=M_(),Dz=Tz(),W_=Ez(),lp=Oz(),EU=qf(),NU=Z_(),OU=rp(),jU=B_(),Y_=H_(),CU=[wU.map,zU.seq,PU.string,IU.nullTag,Dz.trueTag,Dz.falseTag,lp.intBin,lp.intOct,lp.int,lp.intHex,W_.floatNaN,W_.floatExp,W_.float,TU.binary,EU.merge,NU.omap,OU.pairs,jU.set,Y_.intTime,Y_.floatTime,Y_.timestamp];Az.schema=CU});var Bz=v(eb=>{"use strict";var qz=yo(),DU=Hf(),Zz=vo(),AU=Ka(),RU=E_(),Q_=O_(),X_=C_(),MU=hz(),LU=_z(),Fz=M_(),Wa=qf(),Vz=Z_(),Kz=rp(),Mz=Rz(),Gz=B_(),up=H_(),Lz=new Map([["core",MU.schema],["failsafe",[qz.map,Zz.seq,AU.string]],["json",LU.schema],["yaml11",Mz.schema],["yaml-1.1",Mz.schema]]),Uz={binary:Fz.binary,bool:RU.boolTag,float:Q_.float,floatExp:Q_.floatExp,floatNaN:Q_.floatNaN,floatTime:up.floatTime,int:X_.int,intHex:X_.intHex,intOct:X_.intOct,intTime:up.intTime,map:qz.map,merge:Wa.merge,null:DU.nullTag,omap:Vz.omap,pairs:Kz.pairs,seq:Zz.seq,set:Gz.set,timestamp:up.timestamp},UU={"tag:yaml.org,2002:binary":Fz.binary,"tag:yaml.org,2002:merge":Wa.merge,"tag:yaml.org,2002:omap":Vz.omap,"tag:yaml.org,2002:pairs":Kz.pairs,"tag:yaml.org,2002:set":Gz.set,"tag:yaml.org,2002:timestamp":up.timestamp};function qU(e,t,r){let i=Lz.get(t);if(i&&!e)return r&&!i.includes(Wa.merge)?i.concat(Wa.merge):i.slice();let n=i;if(!n)if(Array.isArray(e))n=[];else{let o=Array.from(Lz.keys()).filter(s=>s!=="yaml11").map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${o} or define customTags array`)}if(Array.isArray(e))for(let o of e)n=n.concat(o);else typeof e=="function"&&(n=e(n.slice()));return r&&(n=n.concat(Wa.merge)),n.reduce((o,s)=>{let a=typeof s=="string"?Uz[s]:s;if(!a){let c=JSON.stringify(s),l=Object.keys(Uz).map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${l}`)}return o.includes(a)||o.push(a),o},[])}eb.coreKnownTags=UU;eb.getTags=qU});var nb=v(Jz=>{"use strict";var tb=de(),ZU=yo(),FU=vo(),VU=Ka(),dp=Bz(),KU=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,rb=class e{constructor({compat:t,customTags:r,merge:i,resolveKnownTags:n,schema:o,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?dp.getTags(t,"compat"):t?dp.getTags(null,t):null,this.name=typeof o=="string"&&o||"core",this.knownTags=n?dp.coreKnownTags:{},this.tags=dp.getTags(r,this.name,i),this.toStringOptions=a??null,Object.defineProperty(this,tb.MAP,{value:ZU.map}),Object.defineProperty(this,tb.SCALAR,{value:VU.string}),Object.defineProperty(this,tb.SEQ,{value:FU.seq}),this.sortMapEntries=typeof s=="function"?s:s===!0?KU:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};Jz.Schema=rb});var Wz=v(Hz=>{"use strict";var GU=de(),ib=qa(),Ya=Ra();function BU(e,t){let r=[],i=t.directives===!0;if(t.directives!==!1&&e.directives){let c=e.directives.toString(e);c?(r.push(c),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");let n=ib.createStringifyContext(e,t),{commentString:o}=n.options;if(e.commentBefore){r.length!==1&&r.unshift("");let c=o(e.commentBefore);r.unshift(Ya.indentComment(c,""))}let s=!1,a=null;if(e.contents){if(GU.isNode(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){let u=o(e.contents.commentBefore);r.push(Ya.indentComment(u,""))}n.forceBlockIndent=!!e.comment,a=e.contents.comment}let c=a?void 0:()=>s=!0,l=ib.stringify(e.contents,n,()=>a=null,c);a&&(l+=Ya.lineComment(l,"",o(a))),(l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${l}`:r.push(l)}else r.push(ib.stringify(e.contents,n));if(e.directives?.docEnd)if(e.comment){let c=o(e.comment);c.includes(`
63
- `)?(r.push("..."),r.push(Ya.indentComment(c,""))):r.push(`... ${c}`)}else r.push("...");else{let c=e.comment;c&&s&&(c=c.replace(/^\n+/,"")),c&&((!s||a)&&r[r.length-1]!==""&&r.push(""),r.push(Ya.indentComment(o(c),"")))}return r.join(`
62
+ ${o.comment}`:i.comment}i=n}e.items[r]=ep.isPair(i)?i:new L_.Pair(i)}}else t("Expected a sequence for this tag");return e}function Sz(e,t,r){let{replacer:i}=r,n=new uU.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof i=="function"&&(s=i.call(t,String(o++),s));let a,c;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let l=Object.keys(s);if(l.length===1)a=l[0],c=s[a];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else a=s;n.items.push(L_.createPair(a,c,r))}return n}var dU={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:kz,createNode:Sz};tp.createPairs=Sz;tp.pairs=dU;tp.resolvePairs=kz});var Z_=v(q_=>{"use strict";var xz=de(),U_=rn(),Ja=ln(),fU=un(),wz=rp(),Gn=class e extends fU.YAMLSeq{constructor(){super(),this.add=Ja.YAMLMap.prototype.add.bind(this),this.delete=Ja.YAMLMap.prototype.delete.bind(this),this.get=Ja.YAMLMap.prototype.get.bind(this),this.has=Ja.YAMLMap.prototype.has.bind(this),this.set=Ja.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(t,r){if(!r)return super.toJSON(t);let i=new Map;r?.onCreate&&r.onCreate(i);for(let n of this.items){let o,s;if(xz.isPair(n)?(o=U_.toJS(n.key,"",r),s=U_.toJS(n.value,o,r)):o=U_.toJS(n,"",r),i.has(o))throw new Error("Ordered maps must not include duplicate keys");i.set(o,s)}return i}static from(t,r,i){let n=wz.createPairs(t,r,i),o=new this;return o.items=n.items,o}};Gn.tag="tag:yaml.org,2002:omap";var pU={collection:"seq",identify:e=>e instanceof Map,nodeClass:Gn,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=wz.resolvePairs(e,t),i=[];for(let{key:n}of r.items)xz.isScalar(n)&&(i.includes(n.value)?t(`Ordered maps must not include duplicate keys: ${n.value}`):i.push(n.value));return Object.assign(new Gn,r)},createNode:(e,t,r)=>Gn.from(e,t,r)};q_.YAMLOMap=Gn;q_.omap=pU});var Ez=v(F_=>{"use strict";var Iz=Oe();function zz({value:e,source:t},r){return t&&(e?Pz:Tz).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}var Pz={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 Iz.Scalar(!0),stringify:zz},Tz={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 Iz.Scalar(!1),stringify:zz};F_.falseTag=Tz;F_.trueTag=Pz});var Nz=v(np=>{"use strict";var mU=Oe(),V_=_o(),gU={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:V_.stringifyNumber},hU={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():V_.stringifyNumber(e)}},yU={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 mU.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){let i=e.substring(r+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:V_.stringifyNumber};np.float=yU;np.floatExp=hU;np.floatNaN=gU});var jz=v(Wa=>{"use strict";var Oz=_o(),Ha=e=>typeof e=="bigint"||Number.isInteger(e);function ip(e,t,r,{intAsBigInt:i}){let n=e[0];if((n==="-"||n==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let s=BigInt(e);return n==="-"?BigInt(-1)*s:s}let o=parseInt(e,r);return n==="-"?-1*o:o}function K_(e,t,r){let{value:i}=e;if(Ha(i)){let n=i.toString(t);return i<0?"-"+r+n.substr(1):r+n}return Oz.stringifyNumber(e)}var vU={identify:Ha,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>ip(e,2,2,r),stringify:e=>K_(e,2,"0b")},_U={identify:Ha,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>ip(e,1,8,r),stringify:e=>K_(e,8,"0")},bU={identify:Ha,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>ip(e,0,10,r),stringify:Oz.stringifyNumber},$U={identify:Ha,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>ip(e,2,16,r),stringify:e=>K_(e,16,"0x")};Wa.int=bU;Wa.intBin=vU;Wa.intHex=$U;Wa.intOct=_U});var B_=v(G_=>{"use strict";var ap=de(),op=an(),sp=ln(),Bn=class e extends sp.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(t){let r;ap.isPair(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new op.Pair(t.key,null):r=new op.Pair(t,null),sp.findPair(this.items,r.key)||this.items.push(r)}get(t,r){let i=sp.findPair(this.items,t);return!r&&ap.isPair(i)?ap.isScalar(i.key)?i.key.value:i.key:i}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);let i=sp.findPair(this.items,t);i&&!r?this.items.splice(this.items.indexOf(i),1):!i&&r&&this.items.push(new op.Pair(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,i);throw new Error("Set items must all have null values")}static from(t,r,i){let{replacer:n}=i,o=new this(t);if(r&&Symbol.iterator in Object(r))for(let s of r)typeof n=="function"&&(s=n.call(r,s,s)),o.items.push(op.createPair(s,null,i));return o}};Bn.tag="tag:yaml.org,2002:set";var kU={collection:"map",identify:e=>e instanceof Set,nodeClass:Bn,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>Bn.from(e,t,r),resolve(e,t){if(ap.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new Bn,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};G_.YAMLSet=Bn;G_.set=kU});var H_=v(cp=>{"use strict";var SU=_o();function J_(e,t){let r=e[0],i=r==="-"||r==="+"?e.substring(1):e,n=s=>t?BigInt(s):Number(s),o=i.replace(/_/g,"").split(":").reduce((s,a)=>s*n(60)+n(a),n(0));return r==="-"?n(-1)*o:o}function Cz(e){let{value:t}=e,r=s=>s;if(typeof t=="bigint")r=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return SU.stringifyNumber(e);let i="";t<0&&(i="-",t*=r(-1));let n=r(60),o=[t%n];return t<60?o.unshift(0):(t=(t-o[0])/n,o.unshift(t%n),t>=60&&(t=(t-o[0])/n,o.unshift(t))),i+o.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var xU={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:r})=>J_(e,r),stringify:Cz},wU={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=>J_(e,!1),stringify:Cz},Dz={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(Dz.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,i,n,o,s,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0,l=Date.UTC(r,i-1,n,o||0,s||0,a||0,c),u=t[8];if(u&&u!=="Z"){let d=J_(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$/,"")??""};cp.floatTime=wU;cp.intTime=xU;cp.timestamp=Dz});var Mz=v(Rz=>{"use strict";var IU=yo(),zU=Hf(),PU=vo(),TU=Ga(),EU=M_(),Az=Ez(),W_=Nz(),lp=jz(),NU=qf(),OU=Z_(),jU=rp(),CU=B_(),Y_=H_(),DU=[IU.map,PU.seq,TU.string,zU.nullTag,Az.trueTag,Az.falseTag,lp.intBin,lp.intOct,lp.int,lp.intHex,W_.floatNaN,W_.floatExp,W_.float,EU.binary,NU.merge,OU.omap,jU.pairs,CU.set,Y_.intTime,Y_.floatTime,Y_.timestamp];Rz.schema=DU});var Jz=v(eb=>{"use strict";var Zz=yo(),AU=Hf(),Fz=vo(),RU=Ga(),MU=E_(),Q_=O_(),X_=C_(),LU=yz(),UU=bz(),Vz=M_(),Ya=qf(),Kz=Z_(),Gz=rp(),Lz=Mz(),Bz=B_(),up=H_(),Uz=new Map([["core",LU.schema],["failsafe",[Zz.map,Fz.seq,RU.string]],["json",UU.schema],["yaml11",Lz.schema],["yaml-1.1",Lz.schema]]),qz={binary:Vz.binary,bool:MU.boolTag,float:Q_.float,floatExp:Q_.floatExp,floatNaN:Q_.floatNaN,floatTime:up.floatTime,int:X_.int,intHex:X_.intHex,intOct:X_.intOct,intTime:up.intTime,map:Zz.map,merge:Ya.merge,null:AU.nullTag,omap:Kz.omap,pairs:Gz.pairs,seq:Fz.seq,set:Bz.set,timestamp:up.timestamp},qU={"tag:yaml.org,2002:binary":Vz.binary,"tag:yaml.org,2002:merge":Ya.merge,"tag:yaml.org,2002:omap":Kz.omap,"tag:yaml.org,2002:pairs":Gz.pairs,"tag:yaml.org,2002:set":Bz.set,"tag:yaml.org,2002:timestamp":up.timestamp};function ZU(e,t,r){let i=Uz.get(t);if(i&&!e)return r&&!i.includes(Ya.merge)?i.concat(Ya.merge):i.slice();let n=i;if(!n)if(Array.isArray(e))n=[];else{let o=Array.from(Uz.keys()).filter(s=>s!=="yaml11").map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${o} or define customTags array`)}if(Array.isArray(e))for(let o of e)n=n.concat(o);else typeof e=="function"&&(n=e(n.slice()));return r&&(n=n.concat(Ya.merge)),n.reduce((o,s)=>{let a=typeof s=="string"?qz[s]:s;if(!a){let c=JSON.stringify(s),l=Object.keys(qz).map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${l}`)}return o.includes(a)||o.push(a),o},[])}eb.coreKnownTags=qU;eb.getTags=ZU});var nb=v(Hz=>{"use strict";var tb=de(),FU=yo(),VU=vo(),KU=Ga(),dp=Jz(),GU=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,rb=class e{constructor({compat:t,customTags:r,merge:i,resolveKnownTags:n,schema:o,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?dp.getTags(t,"compat"):t?dp.getTags(null,t):null,this.name=typeof o=="string"&&o||"core",this.knownTags=n?dp.coreKnownTags:{},this.tags=dp.getTags(r,this.name,i),this.toStringOptions=a??null,Object.defineProperty(this,tb.MAP,{value:FU.map}),Object.defineProperty(this,tb.SCALAR,{value:KU.string}),Object.defineProperty(this,tb.SEQ,{value:VU.seq}),this.sortMapEntries=typeof s=="function"?s:s===!0?GU:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};Hz.Schema=rb});var Yz=v(Wz=>{"use strict";var BU=de(),ib=Za(),Qa=Ma();function JU(e,t){let r=[],i=t.directives===!0;if(t.directives!==!1&&e.directives){let c=e.directives.toString(e);c?(r.push(c),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");let n=ib.createStringifyContext(e,t),{commentString:o}=n.options;if(e.commentBefore){r.length!==1&&r.unshift("");let c=o(e.commentBefore);r.unshift(Qa.indentComment(c,""))}let s=!1,a=null;if(e.contents){if(BU.isNode(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){let u=o(e.contents.commentBefore);r.push(Qa.indentComment(u,""))}n.forceBlockIndent=!!e.comment,a=e.contents.comment}let c=a?void 0:()=>s=!0,l=ib.stringify(e.contents,n,()=>a=null,c);a&&(l+=Qa.lineComment(l,"",o(a))),(l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${l}`:r.push(l)}else r.push(ib.stringify(e.contents,n));if(e.directives?.docEnd)if(e.comment){let c=o(e.comment);c.includes(`
63
+ `)?(r.push("..."),r.push(Qa.indentComment(c,""))):r.push(`... ${c}`)}else r.push("...");else{let c=e.comment;c&&s&&(c=c.replace(/^\n+/,"")),c&&((!s||a)&&r[r.length-1]!==""&&r.push(""),r.push(Qa.indentComment(o(c),"")))}return r.join(`
64
64
  `)+`
65
- `}Hz.stringifyDocument=BU});var Qa=v(Yz=>{"use strict";var JU=Da(),bo=Of(),Ct=de(),HU=an(),WU=rn(),YU=nb(),QU=Wz(),ob=Pf(),XU=l_(),eq=Aa(),sb=c_(),ab=class e{constructor(t,r,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ct.NODE_TYPE,{value:Ct.DOC});let n=null;typeof r=="function"||Array.isArray(r)?n=r:i===void 0&&r&&(i=r,r=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:s}=o;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new sb.Directives({version:s}),this.setSchema(s,i),this.contents=t===void 0?null:this.createNode(t,n,i)}clone(){let t=Object.create(e.prototype,{[Ct.NODE_TYPE]:{value:Ct.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=Ct.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){$o(this.contents)&&this.contents.add(t)}addIn(t,r){$o(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){let i=ob.anchorNames(this);t.anchor=!r||i.has(r)?ob.findNewAnchor(r||"a",i):r}return new JU.Alias(t.anchor)}createNode(t,r,i){let n;if(typeof r=="function")t=r.call({"":t},"",t),n=r;else if(Array.isArray(r)){let h=k=>typeof k=="number"||k instanceof String||k instanceof Number,$=r.filter(h).map(String);$.length>0&&(r=r.concat($)),n=r}else i===void 0&&r&&(i=r,r=void 0);let{aliasDuplicateObjects:o,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:l,tag:u}=i??{},{onAnchor:d,setAnchors:f,sourceObjects:p}=ob.createNodeAnchors(this,s||"a"),g={aliasDuplicateObjects:o??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:l,replacer:n,schema:this.schema,sourceObjects:p},m=eq.createNode(t,u,g);return a&&Ct.isCollection(m)&&(m.flow=!0),f(),m}createPair(t,r,i={}){let n=this.createNode(t,null,i),o=this.createNode(r,null,i);return new HU.Pair(n,o)}delete(t){return $o(this.contents)?this.contents.delete(t):!1}deleteIn(t){return bo.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):$o(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Ct.isCollection(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return bo.isEmptyPath(t)?!r&&Ct.isScalar(this.contents)?this.contents.value:this.contents:Ct.isCollection(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Ct.isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return bo.isEmptyPath(t)?this.contents!==void 0:Ct.isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=bo.collectionFromPath(this.schema,[t],r):$o(this.contents)&&this.contents.set(t,r)}setIn(t,r){bo.isEmptyPath(t)?this.contents=r:this.contents==null?this.contents=bo.collectionFromPath(this.schema,Array.from(t),r):$o(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new sb.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 sb.Directives({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{let n=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(i)this.schema=new YU.Schema(Object.assign(i,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:i,maxAliasCount:n,onAnchor:o,reviver:s}={}){let a={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},c=WU.toJS(this.contents,r??"",a);if(typeof o=="function")for(let{count:l,res:u}of a.anchors.values())o(u,l);return typeof s=="function"?XU.applyReviver(s,{"":c},"",c):c}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}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 r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return QU.stringifyDocument(this,t)}};function $o(e){if(Ct.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}Yz.Document=ab});var tc=v(ec=>{"use strict";var Xa=class extends Error{constructor(t,r,i,n){super(),this.name=t,this.code=i,this.message=n,this.pos=r}},cb=class extends Xa{constructor(t,r,i){super("YAMLParseError",t,r,i)}},lb=class extends Xa{constructor(t,r,i){super("YAMLWarning",t,r,i)}},tq=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(a=>t.linePos(a));let{line:i,col:n}=r.linePos[0];r.message+=` at line ${i}, column ${n}`;let o=n-1,s=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(o>=60&&s.length>80){let a=Math.min(o-39,s.length-79);s="\u2026"+s.substring(a),o-=a-1}if(s.length>80&&(s=s.substring(0,79)+"\u2026"),i>1&&/^ *$/.test(s.substring(0,o))){let a=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);a.length>80&&(a=a.substring(0,79)+`\u2026
65
+ `}Wz.stringifyDocument=JU});var Xa=v(Qz=>{"use strict";var HU=Aa(),bo=Of(),Ct=de(),WU=an(),YU=rn(),QU=nb(),XU=Yz(),ob=Pf(),eq=l_(),tq=Ra(),sb=c_(),ab=class e{constructor(t,r,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ct.NODE_TYPE,{value:Ct.DOC});let n=null;typeof r=="function"||Array.isArray(r)?n=r:i===void 0&&r&&(i=r,r=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:s}=o;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new sb.Directives({version:s}),this.setSchema(s,i),this.contents=t===void 0?null:this.createNode(t,n,i)}clone(){let t=Object.create(e.prototype,{[Ct.NODE_TYPE]:{value:Ct.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=Ct.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){$o(this.contents)&&this.contents.add(t)}addIn(t,r){$o(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){let i=ob.anchorNames(this);t.anchor=!r||i.has(r)?ob.findNewAnchor(r||"a",i):r}return new HU.Alias(t.anchor)}createNode(t,r,i){let n;if(typeof r=="function")t=r.call({"":t},"",t),n=r;else if(Array.isArray(r)){let h=k=>typeof k=="number"||k instanceof String||k instanceof Number,$=r.filter(h).map(String);$.length>0&&(r=r.concat($)),n=r}else i===void 0&&r&&(i=r,r=void 0);let{aliasDuplicateObjects:o,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:l,tag:u}=i??{},{onAnchor:d,setAnchors:f,sourceObjects:p}=ob.createNodeAnchors(this,s||"a"),g={aliasDuplicateObjects:o??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:l,replacer:n,schema:this.schema,sourceObjects:p},m=tq.createNode(t,u,g);return a&&Ct.isCollection(m)&&(m.flow=!0),f(),m}createPair(t,r,i={}){let n=this.createNode(t,null,i),o=this.createNode(r,null,i);return new WU.Pair(n,o)}delete(t){return $o(this.contents)?this.contents.delete(t):!1}deleteIn(t){return bo.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):$o(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Ct.isCollection(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return bo.isEmptyPath(t)?!r&&Ct.isScalar(this.contents)?this.contents.value:this.contents:Ct.isCollection(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Ct.isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return bo.isEmptyPath(t)?this.contents!==void 0:Ct.isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=bo.collectionFromPath(this.schema,[t],r):$o(this.contents)&&this.contents.set(t,r)}setIn(t,r){bo.isEmptyPath(t)?this.contents=r:this.contents==null?this.contents=bo.collectionFromPath(this.schema,Array.from(t),r):$o(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new sb.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 sb.Directives({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{let n=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(i)this.schema=new QU.Schema(Object.assign(i,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:i,maxAliasCount:n,onAnchor:o,reviver:s}={}){let a={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},c=YU.toJS(this.contents,r??"",a);if(typeof o=="function")for(let{count:l,res:u}of a.anchors.values())o(u,l);return typeof s=="function"?eq.applyReviver(s,{"":c},"",c):c}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}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 r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return XU.stringifyDocument(this,t)}};function $o(e){if(Ct.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}Qz.Document=ab});var rc=v(tc=>{"use strict";var ec=class extends Error{constructor(t,r,i,n){super(),this.name=t,this.code=i,this.message=n,this.pos=r}},cb=class extends ec{constructor(t,r,i){super("YAMLParseError",t,r,i)}},lb=class extends ec{constructor(t,r,i){super("YAMLWarning",t,r,i)}},rq=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(a=>t.linePos(a));let{line:i,col:n}=r.linePos[0];r.message+=` at line ${i}, column ${n}`;let o=n-1,s=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(o>=60&&s.length>80){let a=Math.min(o-39,s.length-79);s="\u2026"+s.substring(a),o-=a-1}if(s.length>80&&(s=s.substring(0,79)+"\u2026"),i>1&&/^ *$/.test(s.substring(0,o))){let a=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);a.length>80&&(a=a.substring(0,79)+`\u2026
66
66
  `),s=a+s}if(/[^ ]/.test(s)){let a=1,c=r.linePos[1];c?.line===i&&c.col>n&&(a=Math.max(1,Math.min(c.col-n,80-o)));let l=" ".repeat(o)+"^".repeat(a);r.message+=`:
67
67
 
68
68
  ${s}
69
69
  ${l}
70
- `}};ec.YAMLError=Xa;ec.YAMLParseError=cb;ec.YAMLWarning=lb;ec.prettifyError=tq});var rc=v(Qz=>{"use strict";function rq(e,{flow:t,indicator:r,next:i,offset:n,onError:o,parentIndent:s,startOnNewline:a}){let c=!1,l=a,u=a,d="",f="",p=!1,g=!1,m=null,h=null,$=null,k=null,x=null,N=null,w=null;for(let R of e)switch(g&&(R.type!=="space"&&R.type!=="newline"&&R.type!=="comma"&&o(R.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),m&&(l&&R.type!=="comment"&&R.type!=="newline"&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),R.type){case"space":!t&&(r!=="doc-start"||i?.type!=="flow-collection")&&R.source.includes(" ")&&(m=R),u=!0;break;case"comment":{u||o(R,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let W=R.source.substring(1)||" ";d?d+=f+W:d=W,f="",l=!1;break}case"newline":l?d?d+=R.source:(!N||r!=="seq-item-ind")&&(c=!0):f+=R.source,l=!0,p=!0,(h||$)&&(k=R),u=!0;break;case"anchor":h&&o(R,"MULTIPLE_ANCHORS","A node can have at most one anchor"),R.source.endsWith(":")&&o(R.offset+R.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),h=R,w??(w=R.offset),l=!1,u=!1,g=!0;break;case"tag":{$&&o(R,"MULTIPLE_TAGS","A node can have at most one tag"),$=R,w??(w=R.offset),l=!1,u=!1,g=!0;break}case r:(h||$)&&o(R,"BAD_PROP_ORDER",`Anchors and tags must be after the ${R.source} indicator`),N&&o(R,"UNEXPECTED_TOKEN",`Unexpected ${R.source} in ${t??"collection"}`),N=R,l=r==="seq-item-ind"||r==="explicit-key-ind",u=!1;break;case"comma":if(t){x&&o(R,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),x=R,l=!1,u=!1;break}default:o(R,"UNEXPECTED_TOKEN",`Unexpected ${R.type} token`),l=!1,u=!1}let q=e[e.length-1],ee=q?q.offset+q.source.length:n;return g&&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"),m&&(l&&m.indent<=s||i?.type==="block-map"||i?.type==="block-seq")&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:x,found:N,spaceBefore:c,comment:d,hasNewline:p,anchor:h,tag:$,newlineAfterProp:k,end:ee,start:w??ee}}Qz.resolveProps=rq});var fp=v(Xz=>{"use strict";function ub(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
71
- `))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 r of t.start)if(r.type==="newline")return!0;if(t.sep){for(let r of t.sep)if(r.type==="newline")return!0}if(ub(t.key)||ub(t.value))return!0}return!1;default:return!0}}Xz.containsNewline=ub});var db=v(eP=>{"use strict";var nq=fp();function iq(e,t,r){if(t?.type==="flow-collection"){let i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&nq.containsNewline(t)&&r(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}eP.flowIndentCheck=iq});var fb=v(rP=>{"use strict";var tP=de();function oq(e,t,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let n=typeof i=="function"?i:(o,s)=>o===s||tP.isScalar(o)&&tP.isScalar(s)&&o.value===s.value;return t.some(o=>n(o.key,r))}rP.mapIncludes=oq});var cP=v(aP=>{"use strict";var nP=an(),sq=ln(),iP=rc(),aq=fp(),oP=db(),cq=fb(),sP="All mapping items must start at the same column";function lq({composeNode:e,composeEmptyNode:t},r,i,n,o){let s=o?.nodeClass??sq.YAMLMap,a=new s(r.schema);r.atRoot&&(r.atRoot=!1);let c=i.offset,l=null;for(let u of i.items){let{start:d,key:f,sep:p,value:g}=u,m=iP.resolveProps(d,{indicator:"explicit-key-ind",next:f??p?.[0],offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0}),h=!m.found;if(h){if(f&&(f.type==="block-seq"?n(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in f&&f.indent!==i.indent&&n(c,"BAD_INDENT",sP)),!m.anchor&&!m.tag&&!p){l=m.end,m.comment&&(a.comment?a.comment+=`
72
- `+m.comment:a.comment=m.comment);continue}(m.newlineAfterProp||aq.containsNewline(f))&&n(f??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else m.found?.indent!==i.indent&&n(c,"BAD_INDENT",sP);r.atKey=!0;let $=m.end,k=f?e(r,f,m,n):t(r,$,d,null,m,n);r.schema.compat&&oP.flowIndentCheck(i.indent,f,n),r.atKey=!1,cq.mapIncludes(r,a.items,k)&&n($,"DUPLICATE_KEY","Map keys must be unique");let x=iP.resolveProps(p??[],{indicator:"map-value-ind",next:g,offset:k.range[2],onError:n,parentIndent:i.indent,startOnNewline:!f||f.type==="block-scalar"});if(c=x.end,x.found){h&&(g?.type==="block-map"&&!x.hasNewline&&n(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&m.start<x.found.offset-1024&&n(k.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let N=g?e(r,g,x,n):t(r,c,p,null,x,n);r.schema.compat&&oP.flowIndentCheck(i.indent,g,n),c=N.range[2];let w=new nP.Pair(k,N);r.options.keepSourceTokens&&(w.srcToken=u),a.items.push(w)}else{h&&n(k.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),x.comment&&(k.comment?k.comment+=`
73
- `+x.comment:k.comment=x.comment);let N=new nP.Pair(k);r.options.keepSourceTokens&&(N.srcToken=u),a.items.push(N)}}return l&&l<c&&n(l,"IMPOSSIBLE","Map comment with trailing content"),a.range=[i.offset,c,l??c],a}aP.resolveBlockMap=lq});var uP=v(lP=>{"use strict";var uq=un(),dq=rc(),fq=db();function pq({composeNode:e,composeEmptyNode:t},r,i,n,o){let s=o?.nodeClass??uq.YAMLSeq,a=new s(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=i.offset,l=null;for(let{start:u,value:d}of i.items){let f=dq.resolveProps(u,{indicator:"seq-item-ind",next:d,offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||d)d?.type==="block-seq"?n(f.end,"BAD_INDENT","All sequence items must start at the same column"):n(c,"MISSING_CHAR","Sequence item without - indicator");else{l=f.end,f.comment&&(a.comment=f.comment);continue}let p=d?e(r,d,f,n):t(r,f.end,u,null,f,n);r.schema.compat&&fq.flowIndentCheck(i.indent,d,n),c=p.range[2],a.items.push(p)}return a.range=[i.offset,c,l??c],a}lP.resolveBlockSeq=pq});var ko=v(dP=>{"use strict";function mq(e,t,r,i){let n="";if(e){let o=!1,s="";for(let a of e){let{source:c,type:l}=a;switch(l){case"space":o=!0;break;case"comment":{r&&!o&&i(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let u=c.substring(1)||" ";n?n+=s+u:n=u,s="";break}case"newline":n&&(s+=c),o=!0;break;default:i(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=c.length}}return{comment:n,offset:t}}dP.resolveEnd=mq});var gP=v(mP=>{"use strict";var gq=de(),hq=an(),fP=ln(),yq=un(),vq=ko(),pP=rc(),_q=fp(),bq=fb(),pb="Block collections are not allowed within flow collections",mb=e=>e&&(e.type==="block-map"||e.type==="block-seq");function $q({composeNode:e,composeEmptyNode:t},r,i,n,o){let s=i.start.source==="{",a=s?"flow map":"flow sequence",c=o?.nodeClass??(s?fP.YAMLMap:yq.YAMLSeq),l=new c(r.schema);l.flow=!0;let u=r.atRoot;u&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let d=i.offset+i.start.source.length;for(let h=0;h<i.items.length;++h){let $=i.items[h],{start:k,key:x,sep:N,value:w}=$,q=pP.resolveProps(k,{flow:a,indicator:"explicit-key-ind",next:x??N?.[0],offset:d,onError:n,parentIndent:i.indent,startOnNewline:!1});if(!q.found){if(!q.anchor&&!q.tag&&!N&&!w){h===0&&q.comma?n(q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):h<i.items.length-1&&n(q.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),q.comment&&(l.comment?l.comment+=`
74
- `+q.comment:l.comment=q.comment),d=q.end;continue}!s&&r.options.strict&&_q.containsNewline(x)&&n(x,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(h===0)q.comma&&n(q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(q.comma||n(q.start,"MISSING_CHAR",`Missing , between ${a} items`),q.comment){let ee="";e:for(let R of k)switch(R.type){case"comma":case"space":break;case"comment":ee=R.source.substring(1);break e;default:break e}if(ee){let R=l.items[l.items.length-1];gq.isPair(R)&&(R=R.value??R.key),R.comment?R.comment+=`
75
- `+ee:R.comment=ee,q.comment=q.comment.substring(ee.length+1)}}if(!s&&!N&&!q.found){let ee=w?e(r,w,q,n):t(r,q.end,N,null,q,n);l.items.push(ee),d=ee.range[2],mb(w)&&n(ee.range,"BLOCK_IN_FLOW",pb)}else{r.atKey=!0;let ee=q.end,R=x?e(r,x,q,n):t(r,ee,k,null,q,n);mb(x)&&n(R.range,"BLOCK_IN_FLOW",pb),r.atKey=!1;let W=pP.resolveProps(N??[],{flow:a,indicator:"map-value-ind",next:w,offset:R.range[2],onError:n,parentIndent:i.indent,startOnNewline:!1});if(W.found){if(!s&&!q.found&&r.options.strict){if(N)for(let Ie of N){if(Ie===W.found)break;if(Ie.type==="newline"){n(Ie,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}q.start<W.found.offset-1024&&n(W.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else w&&("source"in w&&w.source?.[0]===":"?n(w,"MISSING_CHAR",`Missing space after : in ${a}`):n(W.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let me=w?e(r,w,W,n):W.found?t(r,W.end,N,null,W,n):null;me?mb(w)&&n(me.range,"BLOCK_IN_FLOW",pb):W.comment&&(R.comment?R.comment+=`
76
- `+W.comment:R.comment=W.comment);let Ae=new hq.Pair(R,me);if(r.options.keepSourceTokens&&(Ae.srcToken=$),s){let Ie=l;bq.mapIncludes(r,Ie.items,R)&&n(ee,"DUPLICATE_KEY","Map keys must be unique"),Ie.items.push(Ae)}else{let Ie=new fP.YAMLMap(r.schema);Ie.flow=!0,Ie.items.push(Ae);let To=(me??R).range;Ie.range=[R.range[0],To[1],To[2]],l.items.push(Ie)}d=me?me.range[2]:W.end}}let f=s?"}":"]",[p,...g]=i.end,m=d;if(p?.source===f)m=p.offset+p.source.length;else{let h=a[0].toUpperCase()+a.substring(1),$=u?`${h} must end with a ${f}`:`${h} in block collection must be sufficiently indented and end with a ${f}`;n(d,u?"MISSING_CHAR":"BAD_INDENT",$),p&&p.source.length!==1&&g.unshift(p)}if(g.length>0){let h=vq.resolveEnd(g,m,r.options.strict,n);h.comment&&(l.comment?l.comment+=`
77
- `+h.comment:l.comment=h.comment),l.range=[i.offset,m,h.offset]}else l.range=[i.offset,m,m];return l}mP.resolveFlowCollection=$q});var yP=v(hP=>{"use strict";var kq=de(),Sq=Oe(),xq=ln(),wq=un(),Iq=cP(),zq=uP(),Pq=gP();function gb(e,t,r,i,n,o){let s=r.type==="block-map"?Iq.resolveBlockMap(e,t,r,i,o):r.type==="block-seq"?zq.resolveBlockSeq(e,t,r,i,o):Pq.resolveFlowCollection(e,t,r,i,o),a=s.constructor;return n==="!"||n===a.tagName?(s.tag=a.tagName,s):(n&&(s.tag=n),s)}function Tq(e,t,r,i,n){let o=i.tag,s=o?t.directives.tagName(o.source,f=>n(o,"TAG_RESOLVE_FAILED",f)):null;if(r.type==="block-seq"){let{anchor:f,newlineAfterProp:p}=i,g=f&&o?f.offset>o.offset?f:o:f??o;g&&(!p||p.offset<g.offset)&&n(g,"MISSING_CHAR","Missing newline after block sequence props")}let a=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!o||!s||s==="!"||s===xq.YAMLMap.tagName&&a==="map"||s===wq.YAMLSeq.tagName&&a==="seq")return gb(e,t,r,n,s);let c=t.schema.tags.find(f=>f.tag===s&&f.collection===a);if(!c){let f=t.schema.knownTags[s];if(f?.collection===a)t.schema.tags.push(Object.assign({},f,{default:!1})),c=f;else return f?n(o,"BAD_COLLECTION_TYPE",`${f.tag} used for ${a} collection, but expects ${f.collection??"scalar"}`,!0):n(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),gb(e,t,r,n,s)}let l=gb(e,t,r,n,s,c),u=c.resolve?.(l,f=>n(o,"TAG_RESOLVE_FAILED",f),t.options)??l,d=kq.isNode(u)?u:new Sq.Scalar(u);return d.range=l.range,d.tag=s,c?.format&&(d.format=c.format),d}hP.composeCollection=Tq});var yb=v(vP=>{"use strict";var hb=Oe();function Eq(e,t,r){let i=t.offset,n=Nq(t,e.options.strict,r);if(!n)return{value:"",type:null,comment:"",range:[i,i,i]};let o=n.mode===">"?hb.Scalar.BLOCK_FOLDED:hb.Scalar.BLOCK_LITERAL,s=t.source?Oq(t.source):[],a=s.length;for(let m=s.length-1;m>=0;--m){let h=s[m][1];if(h===""||h==="\r")a=m;else break}if(a===0){let m=n.chomp==="+"&&s.length>0?`
70
+ `}};tc.YAMLError=ec;tc.YAMLParseError=cb;tc.YAMLWarning=lb;tc.prettifyError=rq});var nc=v(Xz=>{"use strict";function nq(e,{flow:t,indicator:r,next:i,offset:n,onError:o,parentIndent:s,startOnNewline:a}){let c=!1,l=a,u=a,d="",f="",p=!1,g=!1,m=null,h=null,$=null,k=null,x=null,N=null,w=null;for(let R of e)switch(g&&(R.type!=="space"&&R.type!=="newline"&&R.type!=="comma"&&o(R.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),m&&(l&&R.type!=="comment"&&R.type!=="newline"&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),R.type){case"space":!t&&(r!=="doc-start"||i?.type!=="flow-collection")&&R.source.includes(" ")&&(m=R),u=!0;break;case"comment":{u||o(R,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let W=R.source.substring(1)||" ";d?d+=f+W:d=W,f="",l=!1;break}case"newline":l?d?d+=R.source:(!N||r!=="seq-item-ind")&&(c=!0):f+=R.source,l=!0,p=!0,(h||$)&&(k=R),u=!0;break;case"anchor":h&&o(R,"MULTIPLE_ANCHORS","A node can have at most one anchor"),R.source.endsWith(":")&&o(R.offset+R.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),h=R,w??(w=R.offset),l=!1,u=!1,g=!0;break;case"tag":{$&&o(R,"MULTIPLE_TAGS","A node can have at most one tag"),$=R,w??(w=R.offset),l=!1,u=!1,g=!0;break}case r:(h||$)&&o(R,"BAD_PROP_ORDER",`Anchors and tags must be after the ${R.source} indicator`),N&&o(R,"UNEXPECTED_TOKEN",`Unexpected ${R.source} in ${t??"collection"}`),N=R,l=r==="seq-item-ind"||r==="explicit-key-ind",u=!1;break;case"comma":if(t){x&&o(R,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),x=R,l=!1,u=!1;break}default:o(R,"UNEXPECTED_TOKEN",`Unexpected ${R.type} token`),l=!1,u=!1}let q=e[e.length-1],ee=q?q.offset+q.source.length:n;return g&&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"),m&&(l&&m.indent<=s||i?.type==="block-map"||i?.type==="block-seq")&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:x,found:N,spaceBefore:c,comment:d,hasNewline:p,anchor:h,tag:$,newlineAfterProp:k,end:ee,start:w??ee}}Xz.resolveProps=nq});var fp=v(eP=>{"use strict";function ub(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
71
+ `))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 r of t.start)if(r.type==="newline")return!0;if(t.sep){for(let r of t.sep)if(r.type==="newline")return!0}if(ub(t.key)||ub(t.value))return!0}return!1;default:return!0}}eP.containsNewline=ub});var db=v(tP=>{"use strict";var iq=fp();function oq(e,t,r){if(t?.type==="flow-collection"){let i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&iq.containsNewline(t)&&r(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}tP.flowIndentCheck=oq});var fb=v(nP=>{"use strict";var rP=de();function sq(e,t,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let n=typeof i=="function"?i:(o,s)=>o===s||rP.isScalar(o)&&rP.isScalar(s)&&o.value===s.value;return t.some(o=>n(o.key,r))}nP.mapIncludes=sq});var lP=v(cP=>{"use strict";var iP=an(),aq=ln(),oP=nc(),cq=fp(),sP=db(),lq=fb(),aP="All mapping items must start at the same column";function uq({composeNode:e,composeEmptyNode:t},r,i,n,o){let s=o?.nodeClass??aq.YAMLMap,a=new s(r.schema);r.atRoot&&(r.atRoot=!1);let c=i.offset,l=null;for(let u of i.items){let{start:d,key:f,sep:p,value:g}=u,m=oP.resolveProps(d,{indicator:"explicit-key-ind",next:f??p?.[0],offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0}),h=!m.found;if(h){if(f&&(f.type==="block-seq"?n(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in f&&f.indent!==i.indent&&n(c,"BAD_INDENT",aP)),!m.anchor&&!m.tag&&!p){l=m.end,m.comment&&(a.comment?a.comment+=`
72
+ `+m.comment:a.comment=m.comment);continue}(m.newlineAfterProp||cq.containsNewline(f))&&n(f??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else m.found?.indent!==i.indent&&n(c,"BAD_INDENT",aP);r.atKey=!0;let $=m.end,k=f?e(r,f,m,n):t(r,$,d,null,m,n);r.schema.compat&&sP.flowIndentCheck(i.indent,f,n),r.atKey=!1,lq.mapIncludes(r,a.items,k)&&n($,"DUPLICATE_KEY","Map keys must be unique");let x=oP.resolveProps(p??[],{indicator:"map-value-ind",next:g,offset:k.range[2],onError:n,parentIndent:i.indent,startOnNewline:!f||f.type==="block-scalar"});if(c=x.end,x.found){h&&(g?.type==="block-map"&&!x.hasNewline&&n(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&m.start<x.found.offset-1024&&n(k.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let N=g?e(r,g,x,n):t(r,c,p,null,x,n);r.schema.compat&&sP.flowIndentCheck(i.indent,g,n),c=N.range[2];let w=new iP.Pair(k,N);r.options.keepSourceTokens&&(w.srcToken=u),a.items.push(w)}else{h&&n(k.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),x.comment&&(k.comment?k.comment+=`
73
+ `+x.comment:k.comment=x.comment);let N=new iP.Pair(k);r.options.keepSourceTokens&&(N.srcToken=u),a.items.push(N)}}return l&&l<c&&n(l,"IMPOSSIBLE","Map comment with trailing content"),a.range=[i.offset,c,l??c],a}cP.resolveBlockMap=uq});var dP=v(uP=>{"use strict";var dq=un(),fq=nc(),pq=db();function mq({composeNode:e,composeEmptyNode:t},r,i,n,o){let s=o?.nodeClass??dq.YAMLSeq,a=new s(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=i.offset,l=null;for(let{start:u,value:d}of i.items){let f=fq.resolveProps(u,{indicator:"seq-item-ind",next:d,offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||d)d?.type==="block-seq"?n(f.end,"BAD_INDENT","All sequence items must start at the same column"):n(c,"MISSING_CHAR","Sequence item without - indicator");else{l=f.end,f.comment&&(a.comment=f.comment);continue}let p=d?e(r,d,f,n):t(r,f.end,u,null,f,n);r.schema.compat&&pq.flowIndentCheck(i.indent,d,n),c=p.range[2],a.items.push(p)}return a.range=[i.offset,c,l??c],a}uP.resolveBlockSeq=mq});var ko=v(fP=>{"use strict";function gq(e,t,r,i){let n="";if(e){let o=!1,s="";for(let a of e){let{source:c,type:l}=a;switch(l){case"space":o=!0;break;case"comment":{r&&!o&&i(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let u=c.substring(1)||" ";n?n+=s+u:n=u,s="";break}case"newline":n&&(s+=c),o=!0;break;default:i(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=c.length}}return{comment:n,offset:t}}fP.resolveEnd=gq});var hP=v(gP=>{"use strict";var hq=de(),yq=an(),pP=ln(),vq=un(),_q=ko(),mP=nc(),bq=fp(),$q=fb(),pb="Block collections are not allowed within flow collections",mb=e=>e&&(e.type==="block-map"||e.type==="block-seq");function kq({composeNode:e,composeEmptyNode:t},r,i,n,o){let s=i.start.source==="{",a=s?"flow map":"flow sequence",c=o?.nodeClass??(s?pP.YAMLMap:vq.YAMLSeq),l=new c(r.schema);l.flow=!0;let u=r.atRoot;u&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let d=i.offset+i.start.source.length;for(let h=0;h<i.items.length;++h){let $=i.items[h],{start:k,key:x,sep:N,value:w}=$,q=mP.resolveProps(k,{flow:a,indicator:"explicit-key-ind",next:x??N?.[0],offset:d,onError:n,parentIndent:i.indent,startOnNewline:!1});if(!q.found){if(!q.anchor&&!q.tag&&!N&&!w){h===0&&q.comma?n(q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):h<i.items.length-1&&n(q.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),q.comment&&(l.comment?l.comment+=`
74
+ `+q.comment:l.comment=q.comment),d=q.end;continue}!s&&r.options.strict&&bq.containsNewline(x)&&n(x,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(h===0)q.comma&&n(q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(q.comma||n(q.start,"MISSING_CHAR",`Missing , between ${a} items`),q.comment){let ee="";e:for(let R of k)switch(R.type){case"comma":case"space":break;case"comment":ee=R.source.substring(1);break e;default:break e}if(ee){let R=l.items[l.items.length-1];hq.isPair(R)&&(R=R.value??R.key),R.comment?R.comment+=`
75
+ `+ee:R.comment=ee,q.comment=q.comment.substring(ee.length+1)}}if(!s&&!N&&!q.found){let ee=w?e(r,w,q,n):t(r,q.end,N,null,q,n);l.items.push(ee),d=ee.range[2],mb(w)&&n(ee.range,"BLOCK_IN_FLOW",pb)}else{r.atKey=!0;let ee=q.end,R=x?e(r,x,q,n):t(r,ee,k,null,q,n);mb(x)&&n(R.range,"BLOCK_IN_FLOW",pb),r.atKey=!1;let W=mP.resolveProps(N??[],{flow:a,indicator:"map-value-ind",next:w,offset:R.range[2],onError:n,parentIndent:i.indent,startOnNewline:!1});if(W.found){if(!s&&!q.found&&r.options.strict){if(N)for(let Ie of N){if(Ie===W.found)break;if(Ie.type==="newline"){n(Ie,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}q.start<W.found.offset-1024&&n(W.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else w&&("source"in w&&w.source?.[0]===":"?n(w,"MISSING_CHAR",`Missing space after : in ${a}`):n(W.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let me=w?e(r,w,W,n):W.found?t(r,W.end,N,null,W,n):null;me?mb(w)&&n(me.range,"BLOCK_IN_FLOW",pb):W.comment&&(R.comment?R.comment+=`
76
+ `+W.comment:R.comment=W.comment);let Ae=new yq.Pair(R,me);if(r.options.keepSourceTokens&&(Ae.srcToken=$),s){let Ie=l;$q.mapIncludes(r,Ie.items,R)&&n(ee,"DUPLICATE_KEY","Map keys must be unique"),Ie.items.push(Ae)}else{let Ie=new pP.YAMLMap(r.schema);Ie.flow=!0,Ie.items.push(Ae);let To=(me??R).range;Ie.range=[R.range[0],To[1],To[2]],l.items.push(Ie)}d=me?me.range[2]:W.end}}let f=s?"}":"]",[p,...g]=i.end,m=d;if(p?.source===f)m=p.offset+p.source.length;else{let h=a[0].toUpperCase()+a.substring(1),$=u?`${h} must end with a ${f}`:`${h} in block collection must be sufficiently indented and end with a ${f}`;n(d,u?"MISSING_CHAR":"BAD_INDENT",$),p&&p.source.length!==1&&g.unshift(p)}if(g.length>0){let h=_q.resolveEnd(g,m,r.options.strict,n);h.comment&&(l.comment?l.comment+=`
77
+ `+h.comment:l.comment=h.comment),l.range=[i.offset,m,h.offset]}else l.range=[i.offset,m,m];return l}gP.resolveFlowCollection=kq});var vP=v(yP=>{"use strict";var Sq=de(),xq=Oe(),wq=ln(),Iq=un(),zq=lP(),Pq=dP(),Tq=hP();function gb(e,t,r,i,n,o){let s=r.type==="block-map"?zq.resolveBlockMap(e,t,r,i,o):r.type==="block-seq"?Pq.resolveBlockSeq(e,t,r,i,o):Tq.resolveFlowCollection(e,t,r,i,o),a=s.constructor;return n==="!"||n===a.tagName?(s.tag=a.tagName,s):(n&&(s.tag=n),s)}function Eq(e,t,r,i,n){let o=i.tag,s=o?t.directives.tagName(o.source,f=>n(o,"TAG_RESOLVE_FAILED",f)):null;if(r.type==="block-seq"){let{anchor:f,newlineAfterProp:p}=i,g=f&&o?f.offset>o.offset?f:o:f??o;g&&(!p||p.offset<g.offset)&&n(g,"MISSING_CHAR","Missing newline after block sequence props")}let a=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!o||!s||s==="!"||s===wq.YAMLMap.tagName&&a==="map"||s===Iq.YAMLSeq.tagName&&a==="seq")return gb(e,t,r,n,s);let c=t.schema.tags.find(f=>f.tag===s&&f.collection===a);if(!c){let f=t.schema.knownTags[s];if(f?.collection===a)t.schema.tags.push(Object.assign({},f,{default:!1})),c=f;else return f?n(o,"BAD_COLLECTION_TYPE",`${f.tag} used for ${a} collection, but expects ${f.collection??"scalar"}`,!0):n(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),gb(e,t,r,n,s)}let l=gb(e,t,r,n,s,c),u=c.resolve?.(l,f=>n(o,"TAG_RESOLVE_FAILED",f),t.options)??l,d=Sq.isNode(u)?u:new xq.Scalar(u);return d.range=l.range,d.tag=s,c?.format&&(d.format=c.format),d}yP.composeCollection=Eq});var yb=v(_P=>{"use strict";var hb=Oe();function Nq(e,t,r){let i=t.offset,n=Oq(t,e.options.strict,r);if(!n)return{value:"",type:null,comment:"",range:[i,i,i]};let o=n.mode===">"?hb.Scalar.BLOCK_FOLDED:hb.Scalar.BLOCK_LITERAL,s=t.source?jq(t.source):[],a=s.length;for(let m=s.length-1;m>=0;--m){let h=s[m][1];if(h===""||h==="\r")a=m;else break}if(a===0){let m=n.chomp==="+"&&s.length>0?`
78
78
  `.repeat(Math.max(1,s.length-1)):"",h=i+n.length;return t.source&&(h+=t.source.length),{value:m,type:o,comment:n.comment,range:[i,h,h]}}let c=t.indent+n.indent,l=t.offset+n.length,u=0;for(let m=0;m<a;++m){let[h,$]=s[m];if($===""||$==="\r")n.indent===0&&h.length>c&&(c=h.length);else{h.length<c&&r(l+h.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),n.indent===0&&(c=h.length),u=m,c===0&&!e.atRoot&&r(l,"BAD_INDENT","Block scalar values in collections must be indented");break}l+=h.length+$.length+1}for(let m=s.length-1;m>=a;--m)s[m][0].length>c&&(a=m+1);let d="",f="",p=!1;for(let m=0;m<u;++m)d+=s[m][0].slice(c)+`
79
79
  `;for(let m=u;m<a;++m){let[h,$]=s[m];l+=h.length+$.length+1;let k=$[$.length-1]==="\r";if(k&&($=$.slice(0,-1)),$&&h.length<c){let N=`Block scalar lines must not be less indented than their ${n.indent?"explicit indentation indicator":"first line"}`;r(l-$.length-(k?2:1),"BAD_INDENT",N),h=""}o===hb.Scalar.BLOCK_LITERAL?(d+=f+h.slice(c)+$,f=`
80
80
  `):h.length>c||$[0]===" "?(f===" "?f=`
@@ -89,65 +89,65 @@ ${l}
89
89
  `+s[m][0].slice(c);d[d.length-1]!==`
90
90
  `&&(d+=`
91
91
  `);break;default:d+=`
92
- `}let g=i+n.length+t.source.length;return{value:d,type:o,comment:n.comment,range:[i,g,g]}}function Nq({offset:e,props:t},r,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:n}=t[0],o=n[0],s=0,a="",c=-1;for(let f=1;f<n.length;++f){let p=n[f];if(!a&&(p==="-"||p==="+"))a=p;else{let g=Number(p);!s&&g?s=g:c===-1&&(c=e+f)}}c!==-1&&i(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let l=!1,u="",d=n.length;for(let f=1;f<t.length;++f){let p=t[f];switch(p.type){case"space":l=!0;case"newline":d+=p.source.length;break;case"comment":r&&!l&&i(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=p.source.length,u=p.source.substring(1);break;case"error":i(p,"UNEXPECTED_TOKEN",p.message),d+=p.source.length;break;default:{let g=`Unexpected token in block scalar header: ${p.type}`;i(p,"UNEXPECTED_TOKEN",g);let m=p.source;m&&typeof m=="string"&&(d+=m.length)}}}return{mode:o,indent:s,chomp:a,comment:u,length:d}}function Oq(e){let t=e.split(/\n( *)/),r=t[0],i=r.match(/^( *)/),o=[i?.[1]?[i[1],r.slice(i[1].length)]:["",r]];for(let s=1;s<t.length;s+=2)o.push([t[s],t[s+1]]);return o}vP.resolveBlockScalar=Eq});var _b=v(bP=>{"use strict";var vb=Oe(),jq=ko();function Cq(e,t,r){let{offset:i,type:n,source:o,end:s}=e,a,c,l=(f,p,g)=>r(i+f,p,g);switch(n){case"scalar":a=vb.Scalar.PLAIN,c=Dq(o,l);break;case"single-quoted-scalar":a=vb.Scalar.QUOTE_SINGLE,c=Aq(o,l);break;case"double-quoted-scalar":a=vb.Scalar.QUOTE_DOUBLE,c=Rq(o,l);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${n}`),{value:"",type:null,comment:"",range:[i,i+o.length,i+o.length]}}let u=i+o.length,d=jq.resolveEnd(s,u,t,r);return{value:c,type:a,comment:d.comment,range:[i,u,d.offset]}}function Dq(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),_P(e)}function Aq(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),_P(e.slice(1,-1)).replace(/''/g,"'")}function _P(e){let t,r;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
92
+ `}let g=i+n.length+t.source.length;return{value:d,type:o,comment:n.comment,range:[i,g,g]}}function Oq({offset:e,props:t},r,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:n}=t[0],o=n[0],s=0,a="",c=-1;for(let f=1;f<n.length;++f){let p=n[f];if(!a&&(p==="-"||p==="+"))a=p;else{let g=Number(p);!s&&g?s=g:c===-1&&(c=e+f)}}c!==-1&&i(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let l=!1,u="",d=n.length;for(let f=1;f<t.length;++f){let p=t[f];switch(p.type){case"space":l=!0;case"newline":d+=p.source.length;break;case"comment":r&&!l&&i(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=p.source.length,u=p.source.substring(1);break;case"error":i(p,"UNEXPECTED_TOKEN",p.message),d+=p.source.length;break;default:{let g=`Unexpected token in block scalar header: ${p.type}`;i(p,"UNEXPECTED_TOKEN",g);let m=p.source;m&&typeof m=="string"&&(d+=m.length)}}}return{mode:o,indent:s,chomp:a,comment:u,length:d}}function jq(e){let t=e.split(/\n( *)/),r=t[0],i=r.match(/^( *)/),o=[i?.[1]?[i[1],r.slice(i[1].length)]:["",r]];for(let s=1;s<t.length;s+=2)o.push([t[s],t[s+1]]);return o}_P.resolveBlockScalar=Nq});var _b=v($P=>{"use strict";var vb=Oe(),Cq=ko();function Dq(e,t,r){let{offset:i,type:n,source:o,end:s}=e,a,c,l=(f,p,g)=>r(i+f,p,g);switch(n){case"scalar":a=vb.Scalar.PLAIN,c=Aq(o,l);break;case"single-quoted-scalar":a=vb.Scalar.QUOTE_SINGLE,c=Rq(o,l);break;case"double-quoted-scalar":a=vb.Scalar.QUOTE_DOUBLE,c=Mq(o,l);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${n}`),{value:"",type:null,comment:"",range:[i,i+o.length,i+o.length]}}let u=i+o.length,d=Cq.resolveEnd(s,u,t,r);return{value:c,type:a,comment:d.comment,range:[i,u,d.offset]}}function Aq(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),bP(e)}function Rq(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),bP(e.slice(1,-1)).replace(/''/g,"'")}function bP(e){let t,r;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
93
93
  `,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
94
94
  `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let n=i[1],o=" ",s=t.lastIndex;for(r.lastIndex=s;i=r.exec(e);)i[1]===""?o===`
95
95
  `?n+=o:o=`
96
- `:(n+=o+i[1],o=" "),s=r.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=s,i=a.exec(e),n+o+(i?.[1]??"")}function Rq(e,t){let r="";for(let i=1;i<e.length-1;++i){let n=e[i];if(!(n==="\r"&&e[i+1]===`
96
+ `:(n+=o+i[1],o=" "),s=r.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=s,i=a.exec(e),n+o+(i?.[1]??"")}function Mq(e,t){let r="";for(let i=1;i<e.length-1;++i){let n=e[i];if(!(n==="\r"&&e[i+1]===`
97
97
  `))if(n===`
98
- `){let{fold:o,offset:s}=Mq(e,i);r+=o,i=s}else if(n==="\\"){let o=e[++i],s=Lq[o];if(s)r+=s;else if(o===`
98
+ `){let{fold:o,offset:s}=Lq(e,i);r+=o,i=s}else if(n==="\\"){let o=e[++i],s=Uq[o];if(s)r+=s;else if(o===`
99
99
  `)for(o=e[i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="\r"&&e[i+1]===`
100
- `)for(o=e[++i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="x"||o==="u"||o==="U"){let a={x:2,u:4,U:8}[o];r+=Uq(e,i+1,a,t),i+=a}else{let a=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),r+=a}}else if(n===" "||n===" "){let o=i,s=e[i+1];for(;s===" "||s===" ";)s=e[++i+1];s!==`
100
+ `)for(o=e[++i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="x"||o==="u"||o==="U"){let a={x:2,u:4,U:8}[o];r+=qq(e,i+1,a,t),i+=a}else{let a=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),r+=a}}else if(n===" "||n===" "){let o=i,s=e[i+1];for(;s===" "||s===" ";)s=e[++i+1];s!==`
101
101
  `&&!(s==="\r"&&e[i+2]===`
102
- `)&&(r+=i>o?e.slice(o,i+1):n)}else r+=n}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function Mq(e,t){let r="",i=e[t+1];for(;(i===" "||i===" "||i===`
102
+ `)&&(r+=i>o?e.slice(o,i+1):n)}else r+=n}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function Lq(e,t){let r="",i=e[t+1];for(;(i===" "||i===" "||i===`
103
103
  `||i==="\r")&&!(i==="\r"&&e[t+2]!==`
104
104
  `);)i===`
105
105
  `&&(r+=`
106
- `),t+=1,i=e[t+1];return r||(r=" "),{fold:r,offset:t}}var Lq={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
107
- `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Uq(e,t,r,i){let n=e.substr(t,r),s=n.length===r&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;if(isNaN(s)){let a=e.substr(t-2,r+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(s)}bP.resolveFlowScalar=Cq});var SP=v(kP=>{"use strict";var Jn=de(),$P=Oe(),qq=yb(),Zq=_b();function Fq(e,t,r,i){let{value:n,type:o,comment:s,range:a}=t.type==="block-scalar"?qq.resolveBlockScalar(e,t,i):Zq.resolveFlowScalar(t,e.options.strict,i),c=r?e.directives.tagName(r.source,d=>i(r,"TAG_RESOLVE_FAILED",d)):null,l;e.options.stringKeys&&e.atKey?l=e.schema[Jn.SCALAR]:c?l=Vq(e.schema,n,c,r,i):t.type==="scalar"?l=Kq(e,n,t,i):l=e.schema[Jn.SCALAR];let u;try{let d=l.resolve(n,f=>i(r??t,"TAG_RESOLVE_FAILED",f),e.options);u=Jn.isScalar(d)?d:new $P.Scalar(d)}catch(d){let f=d instanceof Error?d.message:String(d);i(r??t,"TAG_RESOLVE_FAILED",f),u=new $P.Scalar(n)}return u.range=a,u.source=n,o&&(u.type=o),c&&(u.tag=c),l.format&&(u.format=l.format),s&&(u.comment=s),u}function Vq(e,t,r,i,n){if(r==="!")return e[Jn.SCALAR];let o=[];for(let a of e.tags)if(!a.collection&&a.tag===r)if(a.default&&a.test)o.push(a);else return a;for(let a of o)if(a.test?.test(t))return a;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(n(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[Jn.SCALAR])}function Kq({atKey:e,directives:t,schema:r},i,n,o){let s=r.tags.find(a=>(a.default===!0||e&&a.default==="key")&&a.test?.test(i))||r[Jn.SCALAR];if(r.compat){let a=r.compat.find(c=>c.default&&c.test?.test(i))??r[Jn.SCALAR];if(s.tag!==a.tag){let c=t.tagString(s.tag),l=t.tagString(a.tag),u=`Value may be parsed as either ${c} or ${l}`;o(n,"TAG_RESOLVE_FAILED",u,!0)}}return s}kP.composeScalar=Fq});var wP=v(xP=>{"use strict";function Gq(e,t,r){if(t){r??(r=t.length);for(let i=r-1;i>=0;--i){let n=t[i];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++i];n?.type==="space";)e+=n.source.length,n=t[++i];break}}return e}xP.emptyScalarPosition=Gq});var PP=v($b=>{"use strict";var Bq=Da(),Jq=de(),Hq=yP(),IP=SP(),Wq=ko(),Yq=wP(),Qq={composeNode:zP,composeEmptyNode:bb};function zP(e,t,r,i){let n=e.atKey,{spaceBefore:o,comment:s,anchor:a,tag:c}=r,l,u=!0;switch(t.type){case"alias":l=Xq(e,t,i),(a||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=IP.composeScalar(e,t,c,i),a&&(l.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{l=Hq.composeCollection(Qq,e,t,r,i),a&&(l.anchor=a.source.substring(1))}catch(d){let f=d instanceof Error?d.message:String(d);i(t,"RESOURCE_EXHAUSTION",f)}break;default:{let d=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",d),u=!1}}return l??(l=bb(e,t.offset,void 0,null,r,i)),a&&l.anchor===""&&i(a,"BAD_ALIAS","Anchor cannot be an empty string"),n&&e.options.stringKeys&&(!Jq.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),s&&(t.type==="scalar"&&t.source===""?l.comment=s:l.commentBefore=s),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function bb(e,t,r,i,{spaceBefore:n,comment:o,anchor:s,tag:a,end:c},l){let u={type:"scalar",offset:Yq.emptyScalarPosition(t,r,i),indent:-1,source:""},d=IP.composeScalar(e,u,a,l);return s&&(d.anchor=s.source.substring(1),d.anchor===""&&l(s,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(d.spaceBefore=!0),o&&(d.comment=o,d.range[2]=c),d}function Xq({options:e},{offset:t,source:r,end:i},n){let o=new Bq.Alias(r.substring(1));o.source===""&&n(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&n(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let s=t+r.length,a=Wq.resolveEnd(i,s,e.strict,n);return o.range=[t,s,a.offset],a.comment&&(o.comment=a.comment),o}$b.composeEmptyNode=bb;$b.composeNode=zP});var NP=v(EP=>{"use strict";var eZ=Qa(),TP=PP(),tZ=ko(),rZ=rc();function nZ(e,t,{offset:r,start:i,value:n,end:o},s){let a=Object.assign({_directives:t},e),c=new eZ.Document(void 0,a),l={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},u=rZ.resolveProps(i,{indicator:"doc-start",next:n??o?.[0],offset:r,onError:s,parentIndent:0,startOnNewline:!0});u.found&&(c.directives.docStart=!0,n&&(n.type==="block-map"||n.type==="block-seq")&&!u.hasNewline&&s(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=n?TP.composeNode(l,n,u,s):TP.composeEmptyNode(l,u.end,i,null,u,s);let d=c.contents.range[2],f=tZ.resolveEnd(o,d,!1,s);return f.comment&&(c.comment=f.comment),c.range=[r,d,f.offset],c}EP.composeDoc=nZ});var Sb=v(CP=>{"use strict";var iZ=require("process"),oZ=c_(),sZ=Qa(),nc=tc(),OP=de(),aZ=NP(),cZ=ko();function ic(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:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function jP(e){let t="",r=!1,i=!1;for(let n=0;n<e.length;++n){let o=e[n];switch(o[0]){case"#":t+=(t===""?"":i?`
106
+ `),t+=1,i=e[t+1];return r||(r=" "),{fold:r,offset:t}}var Uq={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
107
+ `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function qq(e,t,r,i){let n=e.substr(t,r),s=n.length===r&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;if(isNaN(s)){let a=e.substr(t-2,r+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(s)}$P.resolveFlowScalar=Dq});var xP=v(SP=>{"use strict";var Jn=de(),kP=Oe(),Zq=yb(),Fq=_b();function Vq(e,t,r,i){let{value:n,type:o,comment:s,range:a}=t.type==="block-scalar"?Zq.resolveBlockScalar(e,t,i):Fq.resolveFlowScalar(t,e.options.strict,i),c=r?e.directives.tagName(r.source,d=>i(r,"TAG_RESOLVE_FAILED",d)):null,l;e.options.stringKeys&&e.atKey?l=e.schema[Jn.SCALAR]:c?l=Kq(e.schema,n,c,r,i):t.type==="scalar"?l=Gq(e,n,t,i):l=e.schema[Jn.SCALAR];let u;try{let d=l.resolve(n,f=>i(r??t,"TAG_RESOLVE_FAILED",f),e.options);u=Jn.isScalar(d)?d:new kP.Scalar(d)}catch(d){let f=d instanceof Error?d.message:String(d);i(r??t,"TAG_RESOLVE_FAILED",f),u=new kP.Scalar(n)}return u.range=a,u.source=n,o&&(u.type=o),c&&(u.tag=c),l.format&&(u.format=l.format),s&&(u.comment=s),u}function Kq(e,t,r,i,n){if(r==="!")return e[Jn.SCALAR];let o=[];for(let a of e.tags)if(!a.collection&&a.tag===r)if(a.default&&a.test)o.push(a);else return a;for(let a of o)if(a.test?.test(t))return a;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(n(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[Jn.SCALAR])}function Gq({atKey:e,directives:t,schema:r},i,n,o){let s=r.tags.find(a=>(a.default===!0||e&&a.default==="key")&&a.test?.test(i))||r[Jn.SCALAR];if(r.compat){let a=r.compat.find(c=>c.default&&c.test?.test(i))??r[Jn.SCALAR];if(s.tag!==a.tag){let c=t.tagString(s.tag),l=t.tagString(a.tag),u=`Value may be parsed as either ${c} or ${l}`;o(n,"TAG_RESOLVE_FAILED",u,!0)}}return s}SP.composeScalar=Vq});var IP=v(wP=>{"use strict";function Bq(e,t,r){if(t){r??(r=t.length);for(let i=r-1;i>=0;--i){let n=t[i];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++i];n?.type==="space";)e+=n.source.length,n=t[++i];break}}return e}wP.emptyScalarPosition=Bq});var TP=v($b=>{"use strict";var Jq=Aa(),Hq=de(),Wq=vP(),zP=xP(),Yq=ko(),Qq=IP(),Xq={composeNode:PP,composeEmptyNode:bb};function PP(e,t,r,i){let n=e.atKey,{spaceBefore:o,comment:s,anchor:a,tag:c}=r,l,u=!0;switch(t.type){case"alias":l=eZ(e,t,i),(a||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=zP.composeScalar(e,t,c,i),a&&(l.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{l=Wq.composeCollection(Xq,e,t,r,i),a&&(l.anchor=a.source.substring(1))}catch(d){let f=d instanceof Error?d.message:String(d);i(t,"RESOURCE_EXHAUSTION",f)}break;default:{let d=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",d),u=!1}}return l??(l=bb(e,t.offset,void 0,null,r,i)),a&&l.anchor===""&&i(a,"BAD_ALIAS","Anchor cannot be an empty string"),n&&e.options.stringKeys&&(!Hq.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),s&&(t.type==="scalar"&&t.source===""?l.comment=s:l.commentBefore=s),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function bb(e,t,r,i,{spaceBefore:n,comment:o,anchor:s,tag:a,end:c},l){let u={type:"scalar",offset:Qq.emptyScalarPosition(t,r,i),indent:-1,source:""},d=zP.composeScalar(e,u,a,l);return s&&(d.anchor=s.source.substring(1),d.anchor===""&&l(s,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(d.spaceBefore=!0),o&&(d.comment=o,d.range[2]=c),d}function eZ({options:e},{offset:t,source:r,end:i},n){let o=new Jq.Alias(r.substring(1));o.source===""&&n(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&n(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let s=t+r.length,a=Yq.resolveEnd(i,s,e.strict,n);return o.range=[t,s,a.offset],a.comment&&(o.comment=a.comment),o}$b.composeEmptyNode=bb;$b.composeNode=PP});var OP=v(NP=>{"use strict";var tZ=Xa(),EP=TP(),rZ=ko(),nZ=nc();function iZ(e,t,{offset:r,start:i,value:n,end:o},s){let a=Object.assign({_directives:t},e),c=new tZ.Document(void 0,a),l={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},u=nZ.resolveProps(i,{indicator:"doc-start",next:n??o?.[0],offset:r,onError:s,parentIndent:0,startOnNewline:!0});u.found&&(c.directives.docStart=!0,n&&(n.type==="block-map"||n.type==="block-seq")&&!u.hasNewline&&s(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=n?EP.composeNode(l,n,u,s):EP.composeEmptyNode(l,u.end,i,null,u,s);let d=c.contents.range[2],f=rZ.resolveEnd(o,d,!1,s);return f.comment&&(c.comment=f.comment),c.range=[r,d,f.offset],c}NP.composeDoc=iZ});var Sb=v(DP=>{"use strict";var oZ=require("process"),sZ=c_(),aZ=Xa(),ic=rc(),jP=de(),cZ=OP(),lZ=ko();function oc(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:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function CP(e){let t="",r=!1,i=!1;for(let n=0;n<e.length;++n){let o=e[n];switch(o[0]){case"#":t+=(t===""?"":i?`
108
108
 
109
109
  `:`
110
- `)+(o.substring(1)||" "),r=!0,i=!1;break;case"%":e[n+1]?.[0]!=="#"&&(n+=1),r=!1;break;default:r||(i=!0),r=!1}}return{comment:t,afterEmptyLine:i}}var kb=class{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,i,n,o)=>{let s=ic(r);o?this.warnings.push(new nc.YAMLWarning(s,i,n)):this.errors.push(new nc.YAMLParseError(s,i,n))},this.directives=new oZ.Directives({version:t.version||"1.2"}),this.options=t}decorate(t,r){let{comment:i,afterEmptyLine:n}=jP(this.prelude);if(i){let o=t.contents;if(r)t.comment=t.comment?`${t.comment}
111
- ${i}`:i;else if(n||t.directives.docStart||!o)t.commentBefore=i;else if(OP.isCollection(o)&&!o.flow&&o.items.length>0){let s=o.items[0];OP.isPair(s)&&(s=s.key);let a=s.commentBefore;s.commentBefore=a?`${i}
110
+ `)+(o.substring(1)||" "),r=!0,i=!1;break;case"%":e[n+1]?.[0]!=="#"&&(n+=1),r=!1;break;default:r||(i=!0),r=!1}}return{comment:t,afterEmptyLine:i}}var kb=class{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,i,n,o)=>{let s=oc(r);o?this.warnings.push(new ic.YAMLWarning(s,i,n)):this.errors.push(new ic.YAMLParseError(s,i,n))},this.directives=new sZ.Directives({version:t.version||"1.2"}),this.options=t}decorate(t,r){let{comment:i,afterEmptyLine:n}=CP(this.prelude);if(i){let o=t.contents;if(r)t.comment=t.comment?`${t.comment}
111
+ ${i}`:i;else if(n||t.directives.docStart||!o)t.commentBefore=i;else if(jP.isCollection(o)&&!o.flow&&o.items.length>0){let s=o.items[0];jP.isPair(s)&&(s=s.key);let a=s.commentBefore;s.commentBefore=a?`${i}
112
112
  ${a}`:i}else{let s=o.commentBefore;o.commentBefore=s?`${i}
113
- ${s}`:i}}r?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:jP(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,i=-1){for(let n of t)yield*this.next(n);yield*this.end(r,i)}*next(t){switch(iZ.env.LOG_STREAM&&console.dir(t,{depth:null}),t.type){case"directive":this.directives.add(t.source,(r,i,n)=>{let o=ic(t);o[0]+=r,this.onError(o,"BAD_DIRECTIVE",i,n)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let r=aZ.composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new nc.YAMLParseError(ic(t),"UNEXPECTED_TOKEN",r);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 nc.YAMLParseError(ic(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;let r=cZ.resolveEnd(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){let i=this.doc.comment;this.doc.comment=i?`${i}
114
- ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new nc.YAMLParseError(ic(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-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),n=new sZ.Document(void 0,i);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,r,r],this.decorate(n,!1),yield n}}};CP.Composer=kb});var RP=v(pp=>{"use strict";var lZ=yb(),uZ=_b(),dZ=tc(),DP=Ua();function fZ(e,t=!0,r){if(e){let i=(n,o,s)=>{let a=typeof n=="number"?n:Array.isArray(n)?n[0]:n.offset;if(r)r(a,o,s);else throw new dZ.YAMLParseError([a,a+1],o,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return uZ.resolveFlowScalar(e,t,i);case"block-scalar":return lZ.resolveBlockScalar({options:{strict:t}},e,i)}}return null}function pZ(e,t){let{implicitKey:r=!1,indent:i,inFlow:n=!1,offset:o=-1,type:s="PLAIN"}=t,a=DP.stringifyString({type:s,value:e},{implicitKey:r,indent:i>0?" ".repeat(i):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:"newline",offset:-1,indent:i,source:`
113
+ ${s}`:i}}r?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:CP(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,i=-1){for(let n of t)yield*this.next(n);yield*this.end(r,i)}*next(t){switch(oZ.env.LOG_STREAM&&console.dir(t,{depth:null}),t.type){case"directive":this.directives.add(t.source,(r,i,n)=>{let o=oc(t);o[0]+=r,this.onError(o,"BAD_DIRECTIVE",i,n)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let r=cZ.composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new ic.YAMLParseError(oc(t),"UNEXPECTED_TOKEN",r);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 ic.YAMLParseError(oc(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;let r=lZ.resolveEnd(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){let i=this.doc.comment;this.doc.comment=i?`${i}
114
+ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new ic.YAMLParseError(oc(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-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),n=new aZ.Document(void 0,i);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,r,r],this.decorate(n,!1),yield n}}};DP.Composer=kb});var MP=v(pp=>{"use strict";var uZ=yb(),dZ=_b(),fZ=rc(),AP=qa();function pZ(e,t=!0,r){if(e){let i=(n,o,s)=>{let a=typeof n=="number"?n:Array.isArray(n)?n[0]:n.offset;if(r)r(a,o,s);else throw new fZ.YAMLParseError([a,a+1],o,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return dZ.resolveFlowScalar(e,t,i);case"block-scalar":return uZ.resolveBlockScalar({options:{strict:t}},e,i)}}return null}function mZ(e,t){let{implicitKey:r=!1,indent:i,inFlow:n=!1,offset:o=-1,type:s="PLAIN"}=t,a=AP.stringifyString({type:s,value:e},{implicitKey:r,indent:i>0?" ".repeat(i):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:"newline",offset:-1,indent:i,source:`
115
115
  `}];switch(a[0]){case"|":case">":{let l=a.indexOf(`
116
116
  `),u=a.substring(0,l),d=a.substring(l+1)+`
117
- `,f=[{type:"block-scalar-header",offset:o,indent:i,source:u}];return AP(f,c)||f.push({type:"newline",offset:-1,indent:i,source:`
118
- `}),{type:"block-scalar",offset:o,indent:i,props:f,source:d}}case'"':return{type:"double-quoted-scalar",offset:o,indent:i,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:o,indent:i,source:a,end:c};default:return{type:"scalar",offset:o,indent:i,source:a,end:c}}}function mZ(e,t,r={}){let{afterKey:i=!1,implicitKey:n=!1,inFlow:o=!1,type:s}=r,a="indent"in e?e.indent:null;if(i&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{let l=e.props[0];if(l.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=l.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}let c=DP.stringifyString({type:s,value:t},{implicitKey:n||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":gZ(e,c);break;case'"':xb(e,c,"double-quoted-scalar");break;case"'":xb(e,c,"single-quoted-scalar");break;default:xb(e,c,"scalar")}}function gZ(e,t){let r=t.indexOf(`
117
+ `,f=[{type:"block-scalar-header",offset:o,indent:i,source:u}];return RP(f,c)||f.push({type:"newline",offset:-1,indent:i,source:`
118
+ `}),{type:"block-scalar",offset:o,indent:i,props:f,source:d}}case'"':return{type:"double-quoted-scalar",offset:o,indent:i,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:o,indent:i,source:a,end:c};default:return{type:"scalar",offset:o,indent:i,source:a,end:c}}}function gZ(e,t,r={}){let{afterKey:i=!1,implicitKey:n=!1,inFlow:o=!1,type:s}=r,a="indent"in e?e.indent:null;if(i&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{let l=e.props[0];if(l.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=l.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}let c=AP.stringifyString({type:s,value:t},{implicitKey:n||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":hZ(e,c);break;case'"':xb(e,c,"double-quoted-scalar");break;case"'":xb(e,c,"single-quoted-scalar");break;default:xb(e,c,"scalar")}}function hZ(e,t){let r=t.indexOf(`
119
119
  `),i=t.substring(0,r),n=t.substring(r+1)+`
120
- `;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=n}else{let{offset:o}=e,s="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:o,indent:s,source:i}];AP(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
121
- `});for(let c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:s,props:a,source:n})}}function AP(e,t){if(t)for(let r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function xb(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{let i=e.props.slice(1),n=t.length;e.props[0].type==="block-scalar-header"&&(n-=e.props[0].source.length);for(let o of i)o.offset+=n;delete e.props,Object.assign(e,{type:r,source:t,end:i});break}case"block-map":case"block-seq":{let n={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
122
- `};delete e.items,Object.assign(e,{type:r,source:t,end:[n]});break}default:{let i="indent"in e?e.indent:-1,n="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:r,indent:i,source:t,end:n})}}}pp.createScalarToken=pZ;pp.resolveAsScalar=fZ;pp.setScalarValue=mZ});var LP=v(MP=>{"use strict";var hZ=e=>"type"in e?gp(e):mp(e);function gp(e){switch(e.type){case"block-scalar":{let t="";for(let r of e.props)t+=gp(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(let r of e.items)t+=mp(r);return t}case"flow-collection":{let t=e.start.source;for(let r of e.items)t+=mp(r);for(let r of e.end)t+=r.source;return t}case"document":{let t=mp(e);if(e.end)for(let r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let r of e.end)t+=r.source;return t}}}function mp({start:e,key:t,sep:r,value:i}){let n="";for(let o of e)n+=o.source;if(t&&(n+=gp(t)),r)for(let o of r)n+=o.source;return i&&(n+=gp(i)),n}MP.stringify=hZ});var FP=v(ZP=>{"use strict";var wb=Symbol("break visit"),yZ=Symbol("skip children"),UP=Symbol("remove item");function Hn(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),qP(Object.freeze([]),e,t)}Hn.BREAK=wb;Hn.SKIP=yZ;Hn.REMOVE=UP;Hn.itemAtPath=(e,t)=>{let r=e;for(let[i,n]of t){let o=r?.[i];if(o&&"items"in o)r=o.items[n];else return}return r};Hn.parentCollection=(e,t)=>{let r=Hn.itemAtPath(e,t.slice(0,-1)),i=t[t.length-1][0],n=r?.[i];if(n&&"items"in n)return n;throw new Error("Parent collection not found")};function qP(e,t,r){let i=r(t,e);if(typeof i=="symbol")return i;for(let n of["key","value"]){let o=t[n];if(o&&"items"in o){for(let s=0;s<o.items.length;++s){let a=qP(Object.freeze(e.concat([[n,s]])),o.items[s],r);if(typeof a=="number")s=a-1;else{if(a===wb)return wb;a===UP&&(o.items.splice(s,1),s-=1)}}typeof i=="function"&&n==="key"&&(i=i(t,e))}}return typeof i=="function"?i(t,e):i}ZP.visit=Hn});var hp=v(vt=>{"use strict";var Ib=RP(),vZ=LP(),_Z=FP(),zb="\uFEFF",Pb="",Tb="",Eb="",bZ=e=>!!e&&"items"in e,$Z=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function kZ(e){switch(e){case zb:return"<BOM>";case Pb:return"<DOC>";case Tb:return"<FLOW_END>";case Eb:return"<SCALAR>";default:return JSON.stringify(e)}}function SZ(e){switch(e){case zb:return"byte-order-mark";case Pb:return"doc-mode";case Tb:return"flow-error-end";case Eb:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
120
+ `;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=n}else{let{offset:o}=e,s="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:o,indent:s,source:i}];RP(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
121
+ `});for(let c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:s,props:a,source:n})}}function RP(e,t){if(t)for(let r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function xb(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{let i=e.props.slice(1),n=t.length;e.props[0].type==="block-scalar-header"&&(n-=e.props[0].source.length);for(let o of i)o.offset+=n;delete e.props,Object.assign(e,{type:r,source:t,end:i});break}case"block-map":case"block-seq":{let n={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
122
+ `};delete e.items,Object.assign(e,{type:r,source:t,end:[n]});break}default:{let i="indent"in e?e.indent:-1,n="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:r,indent:i,source:t,end:n})}}}pp.createScalarToken=mZ;pp.resolveAsScalar=pZ;pp.setScalarValue=gZ});var UP=v(LP=>{"use strict";var yZ=e=>"type"in e?gp(e):mp(e);function gp(e){switch(e.type){case"block-scalar":{let t="";for(let r of e.props)t+=gp(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(let r of e.items)t+=mp(r);return t}case"flow-collection":{let t=e.start.source;for(let r of e.items)t+=mp(r);for(let r of e.end)t+=r.source;return t}case"document":{let t=mp(e);if(e.end)for(let r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let r of e.end)t+=r.source;return t}}}function mp({start:e,key:t,sep:r,value:i}){let n="";for(let o of e)n+=o.source;if(t&&(n+=gp(t)),r)for(let o of r)n+=o.source;return i&&(n+=gp(i)),n}LP.stringify=yZ});var VP=v(FP=>{"use strict";var wb=Symbol("break visit"),vZ=Symbol("skip children"),qP=Symbol("remove item");function Hn(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),ZP(Object.freeze([]),e,t)}Hn.BREAK=wb;Hn.SKIP=vZ;Hn.REMOVE=qP;Hn.itemAtPath=(e,t)=>{let r=e;for(let[i,n]of t){let o=r?.[i];if(o&&"items"in o)r=o.items[n];else return}return r};Hn.parentCollection=(e,t)=>{let r=Hn.itemAtPath(e,t.slice(0,-1)),i=t[t.length-1][0],n=r?.[i];if(n&&"items"in n)return n;throw new Error("Parent collection not found")};function ZP(e,t,r){let i=r(t,e);if(typeof i=="symbol")return i;for(let n of["key","value"]){let o=t[n];if(o&&"items"in o){for(let s=0;s<o.items.length;++s){let a=ZP(Object.freeze(e.concat([[n,s]])),o.items[s],r);if(typeof a=="number")s=a-1;else{if(a===wb)return wb;a===qP&&(o.items.splice(s,1),s-=1)}}typeof i=="function"&&n==="key"&&(i=i(t,e))}}return typeof i=="function"?i(t,e):i}FP.visit=Hn});var hp=v(vt=>{"use strict";var Ib=MP(),_Z=UP(),bZ=VP(),zb="\uFEFF",Pb="",Tb="",Eb="",$Z=e=>!!e&&"items"in e,kZ=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function SZ(e){switch(e){case zb:return"<BOM>";case Pb:return"<DOC>";case Tb:return"<FLOW_END>";case Eb:return"<SCALAR>";default:return JSON.stringify(e)}}function xZ(e){switch(e){case zb:return"byte-order-mark";case Pb:return"doc-mode";case Tb:return"flow-error-end";case Eb:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
123
123
  `:case`\r
124
- `: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}vt.createScalarToken=Ib.createScalarToken;vt.resolveAsScalar=Ib.resolveAsScalar;vt.setScalarValue=Ib.setScalarValue;vt.stringify=vZ.stringify;vt.visit=_Z.visit;vt.BOM=zb;vt.DOCUMENT=Pb;vt.FLOW_END=Tb;vt.SCALAR=Eb;vt.isCollection=bZ;vt.isScalar=$Z;vt.prettyToken=kZ;vt.tokenType=SZ});var jb=v(KP=>{"use strict";var oc=hp();function Bt(e){switch(e){case void 0:case" ":case`
125
- `:case"\r":case" ":return!0;default:return!1}}var VP=new Set("0123456789ABCDEFabcdef"),xZ=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),yp=new Set(",[]{}"),wZ=new Set(` ,[]{}
126
- \r `),Nb=e=>!e||wZ.has(e),Ob=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,r=!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=!r;let i=this.next??"stream";for(;i&&(r||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===`
124
+ `: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}vt.createScalarToken=Ib.createScalarToken;vt.resolveAsScalar=Ib.resolveAsScalar;vt.setScalarValue=Ib.setScalarValue;vt.stringify=_Z.stringify;vt.visit=bZ.visit;vt.BOM=zb;vt.DOCUMENT=Pb;vt.FLOW_END=Tb;vt.SCALAR=Eb;vt.isCollection=$Z;vt.isScalar=kZ;vt.prettyToken=SZ;vt.tokenType=xZ});var jb=v(GP=>{"use strict";var sc=hp();function Bt(e){switch(e){case void 0:case" ":case`
125
+ `:case"\r":case" ":return!0;default:return!1}}var KP=new Set("0123456789ABCDEFabcdef"),wZ=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),yp=new Set(",[]{}"),IZ=new Set(` ,[]{}
126
+ \r `),Nb=e=>!e||IZ.has(e),Ob=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,r=!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=!r;let i=this.next??"stream";for(;i&&(r||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===`
127
127
  `?!0:r==="\r"?this.buffer[t+1]===`
128
128
  `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let r=this.buffer[t];if(this.indentNext>0){let i=0;for(;r===" ";)r=this.buffer[++i+t];if(r==="\r"){let n=this.buffer[i+t+1];if(n===`
129
129
  `||!n&&!this.atEnd)return t+i+1}return r===`
130
130
  `||i>=this.indentNext||!r&&!this.atEnd?t+i:-1}if(r==="-"||r==="."){let i=this.buffer.substr(t,3);if((i==="---"||i==="...")&&Bt(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(`
131
- `,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]===oc.BOM&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let r=t.length,i=t.indexOf("#");for(;i!==-1;){let o=t[i-1];if(o===" "||o===" "){r=i-1;break}else i=t.indexOf("#",i+1)}for(;;){let o=t[r-1];if(o===" "||o===" ")r-=1;else break}let n=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let r=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-r),yield*this.pushNewline(),"stream"}return yield oc.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 r=this.peek(3);if((r==="---"||r==="...")&&Bt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Bt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Bt(r)){let i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);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(Nb),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,i=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=i=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);let n=this.getLine();if(n===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&n[0]!=="#"||i===0&&(n.startsWith("---")||n.startsWith("..."))&&Bt(n[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield oc.FLOW_END,yield*this.parseLineStart();let o=0;for(;n[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),n[o]){case void 0:return"flow";case"#":return yield*this.pushCount(n.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(Nb),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let s=this.charAt(1);if(this.flowKey||Bt(s)||s===",")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),r=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let o=0;for(;this.buffer[r-1-o]==="\\";)o+=1;if(o%2===0)break;r=this.buffer.indexOf('"',r+1)}let i=this.buffer.substring(0,r),n=i.indexOf(`
131
+ `,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]===sc.BOM&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let r=t.length,i=t.indexOf("#");for(;i!==-1;){let o=t[i-1];if(o===" "||o===" "){r=i-1;break}else i=t.indexOf("#",i+1)}for(;;){let o=t[r-1];if(o===" "||o===" ")r-=1;else break}let n=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let r=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-r),yield*this.pushNewline(),"stream"}return yield sc.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 r=this.peek(3);if((r==="---"||r==="...")&&Bt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Bt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Bt(r)){let i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);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(Nb),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,i=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=i=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);let n=this.getLine();if(n===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&n[0]!=="#"||i===0&&(n.startsWith("---")||n.startsWith("..."))&&Bt(n[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield sc.FLOW_END,yield*this.parseLineStart();let o=0;for(;n[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),n[o]){case void 0:return"flow";case"#":return yield*this.pushCount(n.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(Nb),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let s=this.charAt(1);if(this.flowKey||Bt(s)||s===",")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),r=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let o=0;for(;this.buffer[r-1-o]==="\\";)o+=1;if(o%2===0)break;r=this.buffer.indexOf('"',r+1)}let i=this.buffer.substring(0,r),n=i.indexOf(`
132
132
  `,this.pos);if(n!==-1){for(;n!==-1;){let o=this.continueScalar(n+1);if(o===-1)break;n=i.indexOf(`
133
133
  `,o)}n!==-1&&(r=n-(i[n-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){let r=this.buffer[++t];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>Bt(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,i;e:for(let o=this.pos;i=this.buffer[o];++o)switch(i){case" ":r+=1;break;case`
134
134
  `:t=o,r=0;break;case"\r":{let s=this.buffer[o+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
135
135
  `)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r: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(`
136
136
  `,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let n=t+1;for(i=this.buffer[n];i===" ";)i=this.buffer[++n];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
137
137
  `;)i=this.buffer[++n];t=n-1}else if(!this.blockScalarKeep)do{let o=t-1,s=this.buffer[o];s==="\r"&&(s=this.buffer[--o]);let a=o;for(;s===" ";)s=this.buffer[--o];if(s===`
138
- `&&o>=this.pos&&o+1+r>a)t=o;else break}while(!0);return yield oc.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t=this.flowLevel>0,r=this.pos-1,i=this.pos-1,n;for(;n=this.buffer[++i];)if(n===":"){let o=this.buffer[i+1];if(Bt(o)||t&&yp.has(o))break;r=i}else if(Bt(n)){let o=this.buffer[i+1];if(n==="\r"&&(o===`
138
+ `&&o>=this.pos&&o+1+r>a)t=o;else break}while(!0);return yield sc.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t=this.flowLevel>0,r=this.pos-1,i=this.pos-1,n;for(;n=this.buffer[++i];)if(n===":"){let o=this.buffer[i+1];if(Bt(o)||t&&yp.has(o))break;r=i}else if(Bt(n)){let o=this.buffer[i+1];if(n==="\r"&&(o===`
139
139
  `?(i+=1,n=`
140
140
  `,o=this.buffer[i+1]):r=i),o==="#"||t&&yp.has(o))break;if(n===`
141
- `){let s=this.continueScalar(i+1);if(s===-1)break;i=Math.max(i,s-2)}}else{if(t&&yp.has(n))break;r=i}return!n&&!this.atEnd?this.setNext("plain-scalar"):(yield oc.SCALAR,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){let i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Nb))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let t=this.flowLevel>0,r=this.charAt(1);if(Bt(r)||t&&yp.has(r))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!Bt(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(xZ.has(r))r=this.buffer[++t];else if(r==="%"&&VP.has(this.buffer[t+1])&&VP.has(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return t===`
141
+ `){let s=this.continueScalar(i+1);if(s===-1)break;i=Math.max(i,s-2)}}else{if(t&&yp.has(n))break;r=i}return!n&&!this.atEnd?this.setNext("plain-scalar"):(yield sc.SCALAR,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){let i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Nb))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let t=this.flowLevel>0,r=this.charAt(1);if(Bt(r)||t&&yp.has(r))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!Bt(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(wZ.has(r))r=this.buffer[++t];else if(r==="%"&&KP.has(this.buffer[t+1])&&KP.has(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return t===`
142
142
  `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
143
- `?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,i;do i=this.buffer[++r];while(i===" "||t&&i===" ");let n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(t){let r=this.pos,i=this.buffer[r];for(;!t(i);)i=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};KP.Lexer=Ob});var Db=v(GP=>{"use strict";var Cb=class{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,i=this.lineStarts.length;for(;r<i;){let o=r+i>>1;this.lineStarts[o]<t?r=o+1:i=o}if(this.lineStarts[r]===t)return{line:r+1,col:1};if(r===0)return{line:0,col:t};let n=this.lineStarts[r-1];return{line:r,col:t-n+1}}}};GP.LineCounter=Cb});var Rb=v(YP=>{"use strict";var IZ=require("process"),BP=hp(),zZ=jb();function dn(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function JP(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 WP(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 vp(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 So(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 HP(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!dn(t.start,"explicit-key-ind")&&!dn(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,WP(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}var Ab=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 zZ.Lexer,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let i of this.lexer.lex(t,r))yield*this.next(i);r||(yield*this.end())}*next(t){if(this.source=t,IZ.env.LOG_TOKENS&&console.log("|",BP.prettyToken(t)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let r=BP.tokenType(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){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 r=t??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{let i=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in i?i.indent:0:r.type==="flow-collection"&&i.type==="document"&&(r.indent=0),r.type==="flow-collection"&&HP(r),i.type){case"document":i.value=r;break;case"block-scalar":i.props.push(r);break;case"block-map":{let n=i.items[i.items.length-1];if(n.value){i.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=r;else{Object.assign(n,{key:r,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=i.items[i.items.length-1];n.value?i.items.push({start:[],value:r}):n.value=r;break}case"flow-collection":{let n=i.items[i.items.length-1];!n||n.value?i.items.push({start:[],key:r,sep:[]}):n.sep?n.value=r:Object.assign(n,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){let n=r.items[r.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&JP(n.start)===-1&&(r.indent===0||n.start.every(o=>o.type!=="comment"||o.indent<r.indent))&&(i.type==="document"?i.end=n.start:i.items.push({start:n.start}),r.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":{JP(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 r=this.startBlockValue(t);r?this.stack.push(r):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 r=vp(this.peek(2)),i=So(r),n;t.end?(n=t.end,n.push(this.sourceToken),delete t.end):n=[this.sourceToken];let o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:n}]};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 r=this.source.indexOf(`
143
+ `?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,i;do i=this.buffer[++r];while(i===" "||t&&i===" ");let n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(t){let r=this.pos,i=this.buffer[r];for(;!t(i);)i=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};GP.Lexer=Ob});var Db=v(BP=>{"use strict";var Cb=class{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,i=this.lineStarts.length;for(;r<i;){let o=r+i>>1;this.lineStarts[o]<t?r=o+1:i=o}if(this.lineStarts[r]===t)return{line:r+1,col:1};if(r===0)return{line:0,col:t};let n=this.lineStarts[r-1];return{line:r,col:t-n+1}}}};BP.LineCounter=Cb});var Rb=v(QP=>{"use strict";var zZ=require("process"),JP=hp(),PZ=jb();function dn(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function HP(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 YP(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 vp(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 So(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 WP(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!dn(t.start,"explicit-key-ind")&&!dn(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,YP(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}var Ab=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 PZ.Lexer,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let i of this.lexer.lex(t,r))yield*this.next(i);r||(yield*this.end())}*next(t){if(this.source=t,zZ.env.LOG_TOKENS&&console.log("|",JP.prettyToken(t)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let r=JP.tokenType(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){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 r=t??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{let i=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in i?i.indent:0:r.type==="flow-collection"&&i.type==="document"&&(r.indent=0),r.type==="flow-collection"&&WP(r),i.type){case"document":i.value=r;break;case"block-scalar":i.props.push(r);break;case"block-map":{let n=i.items[i.items.length-1];if(n.value){i.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=r;else{Object.assign(n,{key:r,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=i.items[i.items.length-1];n.value?i.items.push({start:[],value:r}):n.value=r;break}case"flow-collection":{let n=i.items[i.items.length-1];!n||n.value?i.items.push({start:[],key:r,sep:[]}):n.sep?n.value=r:Object.assign(n,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){let n=r.items[r.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&HP(n.start)===-1&&(r.indent===0||n.start.every(o=>o.type!=="comment"||o.indent<r.indent))&&(i.type==="document"?i.end=n.start:i.items.push({start:n.start}),r.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":{HP(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 r=this.startBlockValue(t);r?this.stack.push(r):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 r=vp(this.peek(2)),i=So(r),n;t.end?(n=t.end,n.push(this.sourceToken),delete t.end):n=[this.sourceToken];let o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:n}]};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 r=this.source.indexOf(`
144
144
  `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
145
- `,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){let i="end"in r.value?r.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 r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){let n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,r.start),n.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let i=!this.onKeyLine&&this.indent===t.indent,n=i&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind",o=[];if(n&&r.sep&&!r.value){let s=[];for(let a=0;a<r.sep.length;++a){let c=r.sep[a];switch(c.type){case"newline":s.push(a);break;case"space":break;case"comment":c.indent>t.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(o=r.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":n||r.value?(o.push(this.sourceToken),t.items.push({start:o}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):n||r.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(r.explicitKey)if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(dn(r.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(WP(r.key)&&!dn(r.sep,"newline")){let s=So(r.start),a=r.key,c=r.sep;c.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:c}]})}else o.length>0?r.sep=r.sep.concat(o,this.sourceToken):r.sep.push(this.sourceToken);else if(dn(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{let s=So(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||n?t.items.push({start:o,key:null,sep:[this.sourceToken]}):dn(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let s=this.flowScalar(this.type);n||r.value?(t.items.push({start:o,key:s,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(s):(Object.assign(r,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{let s=this.startBlockValue(t);if(s){if(s.type==="block-seq"){if(!r.explicitKey&&r.sep&&!dn(r.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(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){let i="end"in r.value?r.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 r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){let n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,r.start),n.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||dn(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.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 r=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":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:n,sep:[]}):r.sep?this.stack.push(n):Object.assign(r,{key:n,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 n=vp(i),o=So(n);HP(t);let s=t.end.splice(1,t.end.length);s.push(this.sourceToken);let a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:o,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(`
145
+ `,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){let i="end"in r.value?r.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 r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){let n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,r.start),n.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let i=!this.onKeyLine&&this.indent===t.indent,n=i&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind",o=[];if(n&&r.sep&&!r.value){let s=[];for(let a=0;a<r.sep.length;++a){let c=r.sep[a];switch(c.type){case"newline":s.push(a);break;case"space":break;case"comment":c.indent>t.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(o=r.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":n||r.value?(o.push(this.sourceToken),t.items.push({start:o}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):n||r.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(r.explicitKey)if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(dn(r.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(YP(r.key)&&!dn(r.sep,"newline")){let s=So(r.start),a=r.key,c=r.sep;c.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:c}]})}else o.length>0?r.sep=r.sep.concat(o,this.sourceToken):r.sep.push(this.sourceToken);else if(dn(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{let s=So(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||n?t.items.push({start:o,key:null,sep:[this.sourceToken]}):dn(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let s=this.flowScalar(this.type);n||r.value?(t.items.push({start:o,key:s,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(s):(Object.assign(r,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{let s=this.startBlockValue(t);if(s){if(s.type==="block-seq"){if(!r.explicitKey&&r.sep&&!dn(r.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(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){let i="end"in r.value?r.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 r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){let n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,r.start),n.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||dn(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.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 r=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":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:n,sep:[]}):r.sep?this.stack.push(n):Object.assign(r,{key:n,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 n=vp(i),o=So(n);WP(t);let s=t.end.splice(1,t.end.length);s.push(this.sourceToken);let a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:o,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(`
146
146
  `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
147
- `,r)+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 r=vp(t),i=So(r);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 r=vp(t),i=So(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!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())}}};YP.Parser=Ab});var rT=v(ac=>{"use strict";var QP=Sb(),PZ=Qa(),sc=tc(),TZ=$_(),EZ=de(),NZ=Db(),XP=Rb();function eT(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new NZ.LineCounter||null,prettyErrors:t}}function OZ(e,t={}){let{lineCounter:r,prettyErrors:i}=eT(t),n=new XP.Parser(r?.addNewLine),o=new QP.Composer(t),s=Array.from(o.compose(n.parse(e)));if(i&&r)for(let a of s)a.errors.forEach(sc.prettifyError(e,r)),a.warnings.forEach(sc.prettifyError(e,r));return s.length>0?s:Object.assign([],{empty:!0},o.streamInfo())}function tT(e,t={}){let{lineCounter:r,prettyErrors:i}=eT(t),n=new XP.Parser(r?.addNewLine),o=new QP.Composer(t),s=null;for(let a of o.compose(n.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new sc.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&r&&(s.errors.forEach(sc.prettifyError(e,r)),s.warnings.forEach(sc.prettifyError(e,r))),s}function jZ(e,t,r){let i;typeof t=="function"?i=t:r===void 0&&t&&typeof t=="object"&&(r=t);let n=tT(e,r);if(!n)return null;if(n.warnings.forEach(o=>TZ.warn(n.options.logLevel,o)),n.errors.length>0){if(n.options.logLevel!=="silent")throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:i},r))}function CZ(e,t,r){let i=null;if(typeof t=="function"||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r=="string"&&(r=r.length),typeof r=="number"){let n=Math.round(r);r=n<1?void 0:n>8?{indent:8}:{indent:n}}if(e===void 0){let{keepUndefined:n}=r??t??{};if(!n)return}return EZ.isDocument(e)&&!i?e.toString(r):new PZ.Document(e,i,r).toString(r)}ac.parse=jZ;ac.parseAllDocuments=OZ;ac.parseDocument=tT;ac.stringify=CZ});var iT=v(he=>{"use strict";var DZ=Sb(),AZ=Qa(),RZ=nb(),Mb=tc(),MZ=Da(),fn=de(),LZ=an(),UZ=Oe(),qZ=ln(),ZZ=un(),FZ=hp(),VZ=jb(),KZ=Db(),GZ=Rb(),_p=rT(),nT=Na();he.Composer=DZ.Composer;he.Document=AZ.Document;he.Schema=RZ.Schema;he.YAMLError=Mb.YAMLError;he.YAMLParseError=Mb.YAMLParseError;he.YAMLWarning=Mb.YAMLWarning;he.Alias=MZ.Alias;he.isAlias=fn.isAlias;he.isCollection=fn.isCollection;he.isDocument=fn.isDocument;he.isMap=fn.isMap;he.isNode=fn.isNode;he.isPair=fn.isPair;he.isScalar=fn.isScalar;he.isSeq=fn.isSeq;he.Pair=LZ.Pair;he.Scalar=UZ.Scalar;he.YAMLMap=qZ.YAMLMap;he.YAMLSeq=ZZ.YAMLSeq;he.CST=FZ;he.Lexer=VZ.Lexer;he.LineCounter=KZ.LineCounter;he.Parser=GZ.Parser;he.parse=_p.parse;he.parseAllDocuments=_p.parseAllDocuments;he.parseDocument=_p.parseDocument;he.stringify=_p.stringify;he.visit=nT.visit;he.visitAsync=nT.visitAsync});var CT=require("node:readline");var se;(function(e){e.assertEqual=n=>{};function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let o={};for(let s of n)o[s]=s;return o},e.getValidEnumValues=n=>{let o=e.objectKeys(n).filter(a=>typeof n[n[a]]!="number"),s={};for(let a of o)s[a]=n[a];return e.objectValues(s)},e.objectValues=n=>e.objectKeys(n).map(function(o){return n[o]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let o=[];for(let s in n)Object.prototype.hasOwnProperty.call(n,s)&&o.push(s);return o},e.find=(n,o)=>{for(let s of n)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function i(n,o=" | "){return n.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(n,o)=>typeof o=="bigint"?o.toString():o})(se||(se={}));var i$;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(i$||(i$={}));var A=se.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dr=e=>{switch(typeof e){case"undefined":return A.undefined;case"string":return A.string;case"number":return Number.isNaN(e)?A.nan:A.number;case"boolean":return A.boolean;case"function":return A.function;case"bigint":return A.bigint;case"symbol":return A.symbol;case"object":return Array.isArray(e)?A.array:e===null?A.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?A.promise:typeof Map<"u"&&e instanceof Map?A.map:typeof Set<"u"&&e instanceof Set?A.set:typeof Date<"u"&&e instanceof Date?A.date:A.object;default:return A.unknown}};var P=se.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var _t=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(o){return o.message},i={_errors:[]},n=o=>{for(let s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(n);else if(s.code==="invalid_return_type")n(s.returnTypeError);else if(s.code==="invalid_arguments")n(s.argumentsError);else if(s.path.length===0)i._errors.push(r(s));else{let a=i,c=0;for(;c<s.path.length;){let l=s.path[c];c===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(s))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};return n(this),i}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,se.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),i=[];for(let n of this.issues)if(n.path.length>0){let o=n.path[0];r[o]=r[o]||[],r[o].push(t(n))}else i.push(t(n));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}};_t.create=e=>new _t(e);var ZT=(e,t)=>{let r;switch(e.code){case P.invalid_type:e.received===A.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case P.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,se.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:r=`Unrecognized key(s) in object: ${se.joinValues(e.keys,", ")}`;break;case P.invalid_union:r="Invalid input";break;case P.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${se.joinValues(e.options)}`;break;case P.invalid_enum_value:r=`Invalid enum value. Expected ${se.joinValues(e.options)}, received '${e.received}'`;break;case P.invalid_arguments:r="Invalid function arguments";break;case P.invalid_return_type:r="Invalid function return type";break;case P.invalid_date:r="Invalid date";break;case P.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:se.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case P.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case P.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case P.custom:r="Invalid input";break;case P.invalid_intersection_types:r="Intersection results could not be merged";break;case P.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case P.not_finite:r="Number must be finite";break;default:r=t.defaultError,se.assertNever(e)}return{message:r}},Pr=ZT;var FT=Pr;function Eo(){return FT}var yc=e=>{let{data:t,path:r,errorMaps:i,issueData:n}=e,o=[...r,...n.path||[]],s={...n,path:o};if(n.message!==void 0)return{...n,path:o,message:n.message};let a="",c=i.filter(l=>!!l).slice().reverse();for(let l of c)a=l(s,{data:t,defaultError:a}).message;return{...n,path:o,message:a}};function j(e,t){let r=Eo(),i=yc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Pr?void 0:Pr].filter(n=>!!n)});e.common.issues.push(i)}var Qe=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let i=[];for(let n of r){if(n.status==="aborted")return K;n.status==="dirty"&&t.dirty(),i.push(n.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,r){let i=[];for(let n of r){let o=await n.key,s=await n.value;i.push({key:o,value:s})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,r){let i={};for(let n of r){let{key:o,value:s}=n;if(o.status==="aborted"||s.status==="aborted")return K;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||n.alwaysSet)&&(i[o.value]=s.value)}return{status:t.value,value:i}}},K=Object.freeze({status:"aborted"}),ei=e=>({status:"dirty",value:e}),nt=e=>({status:"valid",value:e}),Zp=e=>e.status==="aborted",Fp=e=>e.status==="dirty",hn=e=>e.status==="valid",No=e=>typeof Promise<"u"&&e instanceof Promise;var M;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(M||(M={}));var wt=class{constructor(t,r,i,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=i,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},o$=(e,t)=>{if(hn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new _t(e.common.issues);return this._error=r,this._error}}};function J(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:n}=e;if(t&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(s,a)=>{let{message:c}=e;return s.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??i??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:n}}var re=class{get description(){return this._def.description}_getType(t){return dr(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:dr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Qe,ctx:{common:t.parent.common,data:t.data,parsedType:dr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(No(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let i=this.safeParse(t,r);if(i.success)return i.data;throw i.error}safeParse(t,r){let i={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:dr(t)},n=this._parseSync({data:t,path:i.path,parent:i});return o$(i,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:dr(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:r});return hn(i)?{value:i.value}:{issues:r.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>hn(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,r){let i=await this.safeParseAsync(t,r);if(i.success)return i.data;throw i.error}async safeParseAsync(t,r){let i={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:dr(t)},n=this._parse({data:t,path:i.path,parent:i}),o=await(No(n)?n:Promise.resolve(n));return o$(i,o)}refine(t,r){let i=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,o)=>{let s=t(n),a=()=>o.addIssue({code:P.custom,...i(n)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,r){return this._refinement((i,n)=>t(i)?!0:(n.addIssue(typeof r=="function"?r(i,n):r),!1))}_refinement(t){return new At({schema:this,typeName:Z.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Dt.create(this,this._def)}nullable(){return mr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Er.create(this)}promise(){return yn.create(this,this._def)}or(t){return oi.create([this,t],this._def)}and(t){return si.create(this,t,this._def)}transform(t){return new At({...J(this._def),schema:this,typeName:Z.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new di({...J(this._def),innerType:this,defaultValue:r,typeName:Z.ZodDefault})}brand(){return new vc({typeName:Z.ZodBranded,type:this,...J(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new fi({...J(this._def),innerType:this,catchValue:r,typeName:Z.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return _c.create(this,t)}readonly(){return pi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},VT=/^c[^\s-]{8,}$/i,KT=/^[0-9a-z]+$/,GT=/^[0-9A-HJKMNP-TV-Z]{26}$/i,BT=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,JT=/^[a-z0-9_-]{21}$/i,HT=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,WT=/^[-+]?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)?)??$/,YT=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,QT="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Vp,XT=/^(?:(?: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])$/,eE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,tE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,rE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iE=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,s$="((\\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])))",oE=new RegExp(`^${s$}$`);function a$(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function sE(e){return new RegExp(`^${a$(e)}$`)}function aE(e){let t=`${s$}T${a$(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function cE(e,t){return!!((t==="v4"||!t)&&XT.test(e)||(t==="v6"||!t)&&tE.test(e))}function lE(e,t){if(!HT.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let i=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(i));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)}catch{return!1}}function uE(e,t){return!!((t==="v4"||!t)&&eE.test(e)||(t==="v6"||!t)&&rE.test(e))}var ri=class e extends re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==A.string){let o=this._getOrReturnCtx(t);return j(o,{code:P.invalid_type,expected:A.string,received:o.parsedType}),K}let i=new Qe,n;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(n=this._getOrReturnCtx(t,n),j(n,{code:P.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(n=this._getOrReturnCtx(t,n),j(n,{code:P.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){let s=t.data.length>o.value,a=t.data.length<o.value;(s||a)&&(n=this._getOrReturnCtx(t,n),s?j(n,{code:P.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&j(n,{code:P.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")YT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"email",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")Vp||(Vp=new RegExp(QT,"u")),Vp.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"emoji",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")BT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"uuid",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")JT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"nanoid",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")VT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"cuid",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")KT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"cuid2",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")GT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"ulid",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),j(n,{validation:"url",code:P.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"regex",code:P.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(t,n),j(n,{code:P.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(n=this._getOrReturnCtx(t,n),j(n,{code:P.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(n=this._getOrReturnCtx(t,n),j(n,{code:P.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?aE(o).test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{code:P.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?oE.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{code:P.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?sE(o).test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{code:P.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?WT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"duration",code:P.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?cE(t.data,o.version)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"ip",code:P.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?lE(t.data,o.alg)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"jwt",code:P.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?uE(t.data,o.version)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"cidr",code:P.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?nE.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"base64",code:P.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?iE.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"base64url",code:P.invalid_string,message:o.message}),i.dirty()):se.assertNever(o);return{status:i.value,value:t.data}}_regex(t,r,i){return this.refinement(n=>t.test(n),{validation:r,code:P.invalid_string,...M.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...M.errToObj(t)})}url(t){return this._addCheck({kind:"url",...M.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...M.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...M.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...M.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...M.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...M.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...M.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...M.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...M.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...M.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...M.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...M.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...M.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...M.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...M.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...M.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...M.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...M.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...M.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...M.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...M.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...M.errToObj(r)})}nonempty(t){return this.min(1,M.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};ri.create=e=>new ri({checks:[],typeName:Z.ZodString,coerce:e?.coerce??!1,...J(e)});function dE(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i,o=Number.parseInt(e.toFixed(n).replace(".","")),s=Number.parseInt(t.toFixed(n).replace(".",""));return o%s/10**n}var Oo=class e extends re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==A.number){let o=this._getOrReturnCtx(t);return j(o,{code:P.invalid_type,expected:A.number,received:o.parsedType}),K}let i,n=new Qe;for(let o of this._def.checks)o.kind==="int"?se.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),j(i,{code:P.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),j(i,{code:P.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),j(i,{code:P.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="multipleOf"?dE(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),j(i,{code:P.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),j(i,{code:P.not_finite,message:o.message}),n.dirty()):se.assertNever(o);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,M.toString(r))}gt(t,r){return this.setLimit("min",t,!1,M.toString(r))}lte(t,r){return this.setLimit("max",t,!0,M.toString(r))}lt(t,r){return this.setLimit("max",t,!1,M.toString(r))}setLimit(t,r,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:M.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:M.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:M.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:M.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:M.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:M.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:M.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:M.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:M.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:M.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&se.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(r)&&Number.isFinite(t)}};Oo.create=e=>new Oo({checks:[],typeName:Z.ZodNumber,coerce:e?.coerce||!1,...J(e)});var jo=class e extends re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==A.bigint)return this._getInvalidInput(t);let i,n=new Qe;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),j(i,{code:P.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),j(i,{code:P.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),j(i,{code:P.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):se.assertNever(o);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return j(r,{code:P.invalid_type,expected:A.bigint,received:r.parsedType}),K}gte(t,r){return this.setLimit("min",t,!0,M.toString(r))}gt(t,r){return this.setLimit("min",t,!1,M.toString(r))}lte(t,r){return this.setLimit("max",t,!0,M.toString(r))}lt(t,r){return this.setLimit("max",t,!1,M.toString(r))}setLimit(t,r,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:M.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:M.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:M.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:M.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:M.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:M.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};jo.create=e=>new jo({checks:[],typeName:Z.ZodBigInt,coerce:e?.coerce??!1,...J(e)});var Co=class extends re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==A.boolean){let i=this._getOrReturnCtx(t);return j(i,{code:P.invalid_type,expected:A.boolean,received:i.parsedType}),K}return nt(t.data)}};Co.create=e=>new Co({typeName:Z.ZodBoolean,coerce:e?.coerce||!1,...J(e)});var Do=class e extends re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==A.date){let o=this._getOrReturnCtx(t);return j(o,{code:P.invalid_type,expected:A.date,received:o.parsedType}),K}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return j(o,{code:P.invalid_date}),K}let i=new Qe,n;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(n=this._getOrReturnCtx(t,n),j(n,{code:P.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(n=this._getOrReturnCtx(t,n),j(n,{code:P.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):se.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:M.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:M.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};Do.create=e=>new Do({checks:[],coerce:e?.coerce||!1,typeName:Z.ZodDate,...J(e)});var Ao=class extends re{_parse(t){if(this._getType(t)!==A.symbol){let i=this._getOrReturnCtx(t);return j(i,{code:P.invalid_type,expected:A.symbol,received:i.parsedType}),K}return nt(t.data)}};Ao.create=e=>new Ao({typeName:Z.ZodSymbol,...J(e)});var ni=class extends re{_parse(t){if(this._getType(t)!==A.undefined){let i=this._getOrReturnCtx(t);return j(i,{code:P.invalid_type,expected:A.undefined,received:i.parsedType}),K}return nt(t.data)}};ni.create=e=>new ni({typeName:Z.ZodUndefined,...J(e)});var ii=class extends re{_parse(t){if(this._getType(t)!==A.null){let i=this._getOrReturnCtx(t);return j(i,{code:P.invalid_type,expected:A.null,received:i.parsedType}),K}return nt(t.data)}};ii.create=e=>new ii({typeName:Z.ZodNull,...J(e)});var Ro=class extends re{constructor(){super(...arguments),this._any=!0}_parse(t){return nt(t.data)}};Ro.create=e=>new Ro({typeName:Z.ZodAny,...J(e)});var Tr=class extends re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return nt(t.data)}};Tr.create=e=>new Tr({typeName:Z.ZodUnknown,...J(e)});var Wt=class extends re{_parse(t){let r=this._getOrReturnCtx(t);return j(r,{code:P.invalid_type,expected:A.never,received:r.parsedType}),K}};Wt.create=e=>new Wt({typeName:Z.ZodNever,...J(e)});var Mo=class extends re{_parse(t){if(this._getType(t)!==A.undefined){let i=this._getOrReturnCtx(t);return j(i,{code:P.invalid_type,expected:A.void,received:i.parsedType}),K}return nt(t.data)}};Mo.create=e=>new Mo({typeName:Z.ZodVoid,...J(e)});var Er=class e extends re{_parse(t){let{ctx:r,status:i}=this._processInputParams(t),n=this._def;if(r.parsedType!==A.array)return j(r,{code:P.invalid_type,expected:A.array,received:r.parsedType}),K;if(n.exactLength!==null){let s=r.data.length>n.exactLength.value,a=r.data.length<n.exactLength.value;(s||a)&&(j(r,{code:s?P.too_big:P.too_small,minimum:a?n.exactLength.value:void 0,maximum:s?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(j(r,{code:P.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(j(r,{code:P.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((s,a)=>n.type._parseAsync(new wt(r,s,r.path,a)))).then(s=>Qe.mergeArray(i,s));let o=[...r.data].map((s,a)=>n.type._parseSync(new wt(r,s,r.path,a)));return Qe.mergeArray(i,o)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:M.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:M.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:M.toString(r)}})}nonempty(t){return this.min(1,t)}};Er.create=(e,t)=>new Er({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Z.ZodArray,...J(t)});function ti(e){if(e instanceof bt){let t={};for(let r in e.shape){let i=e.shape[r];t[r]=Dt.create(ti(i))}return new bt({...e._def,shape:()=>t})}else return e instanceof Er?new Er({...e._def,type:ti(e.element)}):e instanceof Dt?Dt.create(ti(e.unwrap())):e instanceof mr?mr.create(ti(e.unwrap())):e instanceof pr?pr.create(e.items.map(t=>ti(t))):e}var bt=class e extends re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=se.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==A.object){let l=this._getOrReturnCtx(t);return j(l,{code:P.invalid_type,expected:A.object,received:l.parsedType}),K}let{status:i,ctx:n}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Wt&&this._def.unknownKeys==="strip"))for(let l in n.data)s.includes(l)||a.push(l);let c=[];for(let l of s){let u=o[l],d=n.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new wt(n,d,n.path,l)),alwaysSet:l in n.data})}if(this._def.catchall instanceof Wt){let l=this._def.unknownKeys;if(l==="passthrough")for(let u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:n.data[u]}});else if(l==="strict")a.length>0&&(j(n,{code:P.unrecognized_keys,keys:a}),i.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let u of a){let d=n.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new wt(n,d,n.path,u)),alwaysSet:u in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let l=[];for(let u of c){let d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>Qe.mergeObjectSync(i,l)):Qe.mergeObjectSync(i,c)}get shape(){return this._def.shape()}strict(t){return M.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,i)=>{let n=this._def.errorMap?.(r,i).message??i.defaultError;return r.code==="unrecognized_keys"?{message:M.errToObj(t).message??n}:{message:n}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Z.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let i of se.objectKeys(t))t[i]&&this.shape[i]&&(r[i]=this.shape[i]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let i of se.objectKeys(this.shape))t[i]||(r[i]=this.shape[i]);return new e({...this._def,shape:()=>r})}deepPartial(){return ti(this)}partial(t){let r={};for(let i of se.objectKeys(this.shape)){let n=this.shape[i];t&&!t[i]?r[i]=n:r[i]=n.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let i of se.objectKeys(this.shape))if(t&&!t[i])r[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof Dt;)o=o._def.innerType;r[i]=o}return new e({...this._def,shape:()=>r})}keyof(){return c$(se.objectKeys(this.shape))}};bt.create=(e,t)=>new bt({shape:()=>e,unknownKeys:"strip",catchall:Wt.create(),typeName:Z.ZodObject,...J(t)});bt.strictCreate=(e,t)=>new bt({shape:()=>e,unknownKeys:"strict",catchall:Wt.create(),typeName:Z.ZodObject,...J(t)});bt.lazycreate=(e,t)=>new bt({shape:e,unknownKeys:"strip",catchall:Wt.create(),typeName:Z.ZodObject,...J(t)});var oi=class extends re{_parse(t){let{ctx:r}=this._processInputParams(t),i=this._def.options;function n(o){for(let a of o)if(a.result.status==="valid")return a.result;for(let a of o)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let s=o.map(a=>new _t(a.ctx.common.issues));return j(r,{code:P.invalid_union,unionErrors:s}),K}if(r.common.async)return Promise.all(i.map(async o=>{let s={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(n);{let o,s=[];for(let c of i){let l={...r,common:{...r.common,issues:[]},parent:null},u=c._parseSync({data:r.data,path:r.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:l}),l.common.issues.length&&s.push(l.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;let a=s.map(c=>new _t(c));return j(r,{code:P.invalid_union,unionErrors:a}),K}}get options(){return this._def.options}};oi.create=(e,t)=>new oi({options:e,typeName:Z.ZodUnion,...J(t)});var fr=e=>e instanceof ai?fr(e.schema):e instanceof At?fr(e.innerType()):e instanceof ci?[e.value]:e instanceof li?e.options:e instanceof ui?se.objectValues(e.enum):e instanceof di?fr(e._def.innerType):e instanceof ni?[void 0]:e instanceof ii?[null]:e instanceof Dt?[void 0,...fr(e.unwrap())]:e instanceof mr?[null,...fr(e.unwrap())]:e instanceof vc||e instanceof pi?fr(e.unwrap()):e instanceof fi?fr(e._def.innerType):[],Kp=class e extends re{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==A.object)return j(r,{code:P.invalid_type,expected:A.object,received:r.parsedType}),K;let i=this.discriminator,n=r.data[i],o=this.optionsMap.get(n);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(j(r,{code:P.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),K)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,i){let n=new Map;for(let o of r){let s=fr(o.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of s){if(n.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);n.set(a,o)}}return new e({typeName:Z.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...J(i)})}};function Gp(e,t){let r=dr(e),i=dr(t);if(e===t)return{valid:!0,data:e};if(r===A.object&&i===A.object){let n=se.objectKeys(t),o=se.objectKeys(e).filter(a=>n.indexOf(a)!==-1),s={...e,...t};for(let a of o){let c=Gp(e[a],t[a]);if(!c.valid)return{valid:!1};s[a]=c.data}return{valid:!0,data:s}}else if(r===A.array&&i===A.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let o=0;o<e.length;o++){let s=e[o],a=t[o],c=Gp(s,a);if(!c.valid)return{valid:!1};n.push(c.data)}return{valid:!0,data:n}}else return r===A.date&&i===A.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var si=class extends re{_parse(t){let{status:r,ctx:i}=this._processInputParams(t),n=(o,s)=>{if(Zp(o)||Zp(s))return K;let a=Gp(o.value,s.value);return a.valid?((Fp(o)||Fp(s))&&r.dirty(),{status:r.value,value:a.data}):(j(i,{code:P.invalid_intersection_types}),K)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,s])=>n(o,s)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};si.create=(e,t,r)=>new si({left:e,right:t,typeName:Z.ZodIntersection,...J(r)});var pr=class e extends re{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==A.array)return j(i,{code:P.invalid_type,expected:A.array,received:i.parsedType}),K;if(i.data.length<this._def.items.length)return j(i,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),K;!this._def.rest&&i.data.length>this._def.items.length&&(j(i,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let o=[...i.data].map((s,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new wt(i,s,i.path,a)):null}).filter(s=>!!s);return i.common.async?Promise.all(o).then(s=>Qe.mergeArray(r,s)):Qe.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};pr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new pr({items:e,typeName:Z.ZodTuple,rest:null,...J(t)})};var Bp=class e extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==A.object)return j(i,{code:P.invalid_type,expected:A.object,received:i.parsedType}),K;let n=[],o=this._def.keyType,s=this._def.valueType;for(let a in i.data)n.push({key:o._parse(new wt(i,a,i.path,a)),value:s._parse(new wt(i,i.data[a],i.path,a)),alwaysSet:a in i.data});return i.common.async?Qe.mergeObjectAsync(r,n):Qe.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof re?new e({keyType:t,valueType:r,typeName:Z.ZodRecord,...J(i)}):new e({keyType:ri.create(),valueType:t,typeName:Z.ZodRecord,...J(r)})}},Lo=class extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==A.map)return j(i,{code:P.invalid_type,expected:A.map,received:i.parsedType}),K;let n=this._def.keyType,o=this._def.valueType,s=[...i.data.entries()].map(([a,c],l)=>({key:n._parse(new wt(i,a,i.path,[l,"key"])),value:o._parse(new wt(i,c,i.path,[l,"value"]))}));if(i.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of s){let l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return K;(l.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(l.value,u.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of s){let l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return K;(l.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(l.value,u.value)}return{status:r.value,value:a}}}};Lo.create=(e,t,r)=>new Lo({valueType:t,keyType:e,typeName:Z.ZodMap,...J(r)});var Uo=class e extends re{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==A.set)return j(i,{code:P.invalid_type,expected:A.set,received:i.parsedType}),K;let n=this._def;n.minSize!==null&&i.data.size<n.minSize.value&&(j(i,{code:P.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&i.data.size>n.maxSize.value&&(j(i,{code:P.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let o=this._def.valueType;function s(c){let l=new Set;for(let u of c){if(u.status==="aborted")return K;u.status==="dirty"&&r.dirty(),l.add(u.value)}return{status:r.value,value:l}}let a=[...i.data.values()].map((c,l)=>o._parse(new wt(i,c,i.path,l)));return i.common.async?Promise.all(a).then(c=>s(c)):s(a)}min(t,r){return new e({...this._def,minSize:{value:t,message:M.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:M.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Uo.create=(e,t)=>new Uo({valueType:e,minSize:null,maxSize:null,typeName:Z.ZodSet,...J(t)});var Jp=class e extends re{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==A.function)return j(r,{code:P.invalid_type,expected:A.function,received:r.parsedType}),K;function i(a,c){return yc({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Eo(),Pr].filter(l=>!!l),issueData:{code:P.invalid_arguments,argumentsError:c}})}function n(a,c){return yc({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Eo(),Pr].filter(l=>!!l),issueData:{code:P.invalid_return_type,returnTypeError:c}})}let o={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof yn){let a=this;return nt(async function(...c){let l=new _t([]),u=await a._def.args.parseAsync(c,o).catch(p=>{throw l.addIssue(i(c,p)),l}),d=await Reflect.apply(s,this,u);return await a._def.returns._def.type.parseAsync(d,o).catch(p=>{throw l.addIssue(n(d,p)),l})})}else{let a=this;return nt(function(...c){let l=a._def.args.safeParse(c,o);if(!l.success)throw new _t([i(c,l.error)]);let u=Reflect.apply(s,this,l.data),d=a._def.returns.safeParse(u,o);if(!d.success)throw new _t([n(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:pr.create(t).rest(Tr.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,i){return new e({args:t||pr.create([]).rest(Tr.create()),returns:r||Tr.create(),typeName:Z.ZodFunction,...J(i)})}},ai=class extends re{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};ai.create=(e,t)=>new ai({getter:e,typeName:Z.ZodLazy,...J(t)});var ci=class extends re{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return j(r,{received:r.data,code:P.invalid_literal,expected:this._def.value}),K}return{status:"valid",value:t.data}}get value(){return this._def.value}};ci.create=(e,t)=>new ci({value:e,typeName:Z.ZodLiteral,...J(t)});function c$(e,t){return new li({values:e,typeName:Z.ZodEnum,...J(t)})}var li=class e extends re{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),i=this._def.values;return j(r,{expected:se.joinValues(i),received:r.parsedType,code:P.invalid_type}),K}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),i=this._def.values;return j(r,{received:r.data,code:P.invalid_enum_value,options:i}),K}return nt(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(i=>!t.includes(i)),{...this._def,...r})}};li.create=c$;var ui=class extends re{_parse(t){let r=se.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==A.string&&i.parsedType!==A.number){let n=se.objectValues(r);return j(i,{expected:se.joinValues(n),received:i.parsedType,code:P.invalid_type}),K}if(this._cache||(this._cache=new Set(se.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=se.objectValues(r);return j(i,{received:i.data,code:P.invalid_enum_value,options:n}),K}return nt(t.data)}get enum(){return this._def.values}};ui.create=(e,t)=>new ui({values:e,typeName:Z.ZodNativeEnum,...J(t)});var yn=class extends re{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==A.promise&&r.common.async===!1)return j(r,{code:P.invalid_type,expected:A.promise,received:r.parsedType}),K;let i=r.parsedType===A.promise?r.data:Promise.resolve(r.data);return nt(i.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};yn.create=(e,t)=>new yn({type:e,typeName:Z.ZodPromise,...J(t)});var At=class extends re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Z.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:i}=this._processInputParams(t),n=this._def.effect||null,o={addIssue:s=>{j(i,s),s.fatal?r.abort():r.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let s=n.transform(i.data,o);if(i.common.async)return Promise.resolve(s).then(async a=>{if(r.value==="aborted")return K;let c=await this._def.schema._parseAsync({data:a,path:i.path,parent:i});return c.status==="aborted"?K:c.status==="dirty"?ei(c.value):r.value==="dirty"?ei(c.value):c});{if(r.value==="aborted")return K;let a=this._def.schema._parseSync({data:s,path:i.path,parent:i});return a.status==="aborted"?K:a.status==="dirty"?ei(a.value):r.value==="dirty"?ei(a.value):a}}if(n.type==="refinement"){let s=a=>{let c=n.refinement(a,o);if(i.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?K:(a.status==="dirty"&&r.dirty(),s(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>a.status==="aborted"?K:(a.status==="dirty"&&r.dirty(),s(a.value).then(()=>({status:r.value,value:a.value}))))}if(n.type==="transform")if(i.common.async===!1){let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!hn(s))return K;let a=n.transform(s.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>hn(s)?Promise.resolve(n.transform(s.value,o)).then(a=>({status:r.value,value:a})):K);se.assertNever(n)}};At.create=(e,t,r)=>new At({schema:e,typeName:Z.ZodEffects,effect:t,...J(r)});At.createWithPreprocess=(e,t,r)=>new At({schema:t,effect:{type:"preprocess",transform:e},typeName:Z.ZodEffects,...J(r)});var Dt=class extends re{_parse(t){return this._getType(t)===A.undefined?nt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Dt.create=(e,t)=>new Dt({innerType:e,typeName:Z.ZodOptional,...J(t)});var mr=class extends re{_parse(t){return this._getType(t)===A.null?nt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};mr.create=(e,t)=>new mr({innerType:e,typeName:Z.ZodNullable,...J(t)});var di=class extends re{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return r.parsedType===A.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};di.create=(e,t)=>new di({innerType:e,typeName:Z.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...J(t)});var fi=class extends re{_parse(t){let{ctx:r}=this._processInputParams(t),i={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return No(n)?n.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new _t(i.common.issues)},input:i.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new _t(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};fi.create=(e,t)=>new fi({innerType:e,typeName:Z.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...J(t)});var qo=class extends re{_parse(t){if(this._getType(t)!==A.nan){let i=this._getOrReturnCtx(t);return j(i,{code:P.invalid_type,expected:A.nan,received:i.parsedType}),K}return{status:"valid",value:t.data}}};qo.create=e=>new qo({typeName:Z.ZodNaN,...J(e)});var vc=class extends re{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}},_c=class e extends re{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?K:o.status==="dirty"?(r.dirty(),ei(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{let n=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?K:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:i.path,parent:i})}}static create(t,r){return new e({in:t,out:r,typeName:Z.ZodPipeline})}},pi=class extends re{_parse(t){let r=this._def.innerType._parse(t),i=n=>(hn(n)&&(n.value=Object.freeze(n.value)),n);return No(r)?r.then(n=>i(n)):i(r)}unwrap(){return this._def.innerType}};pi.create=(e,t)=>new pi({innerType:e,typeName:Z.ZodReadonly,...J(t)});var V6={object:bt.lazycreate},Z;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Z||(Z={}));var K6=ri.create,G6=Oo.create,B6=qo.create,J6=jo.create,H6=Co.create,W6=Do.create,Y6=Ao.create,Q6=ni.create,X6=ii.create,eF=Ro.create,tF=Tr.create,rF=Wt.create,nF=Mo.create,iF=Er.create,fE=bt.create,oF=bt.strictCreate,sF=oi.create,aF=Kp.create,cF=si.create,lF=pr.create,uF=Bp.create,dF=Lo.create,fF=Uo.create,pF=Jp.create,mF=ai.create,gF=ci.create,hF=li.create,yF=ui.create,vF=yn.create,_F=At.create,bF=Dt.create,$F=mr.create,kF=At.createWithPreprocess,SF=_c.create;var kt={};ur(kt,{$ZodAny:()=>_l,$ZodArray:()=>xl,$ZodAsyncError:()=>Rt,$ZodBase64:()=>ll,$ZodBase64URL:()=>ul,$ZodBigInt:()=>ts,$ZodBigIntFormat:()=>gl,$ZodBoolean:()=>zi,$ZodCIDRv4:()=>al,$ZodCIDRv6:()=>cl,$ZodCUID:()=>Hc,$ZodCUID2:()=>Wc,$ZodCatch:()=>ql,$ZodCheck:()=>_e,$ZodCheckBigIntFormat:()=>Cm,$ZodCheckEndsWith:()=>Gm,$ZodCheckGreaterThan:()=>Rc,$ZodCheckIncludes:()=>Vm,$ZodCheckLengthEquals:()=>Um,$ZodCheckLessThan:()=>Ac,$ZodCheckLowerCase:()=>Zm,$ZodCheckMaxLength:()=>Mm,$ZodCheckMaxSize:()=>Dm,$ZodCheckMimeType:()=>Jm,$ZodCheckMinLength:()=>Lm,$ZodCheckMinSize:()=>Am,$ZodCheckMultipleOf:()=>Om,$ZodCheckNumberFormat:()=>jm,$ZodCheckOverwrite:()=>Hm,$ZodCheckProperty:()=>Bm,$ZodCheckRegex:()=>qm,$ZodCheckSizeEquals:()=>Rm,$ZodCheckStartsWith:()=>Km,$ZodCheckStringFormat:()=>Ii,$ZodCheckUpperCase:()=>Fm,$ZodCodec:()=>Ti,$ZodCustom:()=>Hl,$ZodCustomStringFormat:()=>pl,$ZodDate:()=>Sl,$ZodDefault:()=>Rl,$ZodDiscriminatedUnion:()=>Il,$ZodE164:()=>dl,$ZodEmail:()=>Kc,$ZodEmoji:()=>Bc,$ZodEncodeError:()=>Nr,$ZodEnum:()=>Nl,$ZodError:()=>Wo,$ZodExactOptional:()=>Dl,$ZodFile:()=>jl,$ZodFunction:()=>Gl,$ZodGUID:()=>Fc,$ZodIPv4:()=>il,$ZodIPv6:()=>ol,$ZodISODate:()=>tl,$ZodISODateTime:()=>el,$ZodISODuration:()=>nl,$ZodISOTime:()=>rl,$ZodIntersection:()=>zl,$ZodJWT:()=>fl,$ZodKSUID:()=>Xc,$ZodLazy:()=>Jl,$ZodLiteral:()=>Ol,$ZodMAC:()=>sl,$ZodMap:()=>Tl,$ZodNaN:()=>Zl,$ZodNanoID:()=>Jc,$ZodNever:()=>$l,$ZodNonOptional:()=>Ll,$ZodNull:()=>vl,$ZodNullable:()=>Al,$ZodNumber:()=>es,$ZodNumberFormat:()=>ml,$ZodObject:()=>Xm,$ZodObjectJIT:()=>eg,$ZodOptional:()=>ns,$ZodPipe:()=>Fl,$ZodPrefault:()=>Ml,$ZodPromise:()=>Bl,$ZodReadonly:()=>Vl,$ZodRealError:()=>ut,$ZodRecord:()=>Pl,$ZodRegistry:()=>Xl,$ZodSet:()=>El,$ZodString:()=>Ar,$ZodStringFormat:()=>ye,$ZodSuccess:()=>Ul,$ZodSymbol:()=>hl,$ZodTemplateLiteral:()=>Kl,$ZodTransform:()=>Cl,$ZodTuple:()=>rs,$ZodType:()=>G,$ZodULID:()=>Yc,$ZodURL:()=>Gc,$ZodUUID:()=>Vc,$ZodUndefined:()=>yl,$ZodUnion:()=>Pi,$ZodUnknown:()=>bl,$ZodVoid:()=>kl,$ZodXID:()=>Qc,$ZodXor:()=>wl,$brand:()=>Fo,$constructor:()=>y,$input:()=>tu,$output:()=>eu,Doc:()=>Xo,JSONSchema:()=>Bk,JSONSchemaGenerator:()=>Fu,NEVER:()=>bc,TimePrecision:()=>ou,_any:()=>Iu,_array:()=>tg,_base64:()=>ks,_base64url:()=>Ss,_bigint:()=>_u,_boolean:()=>yu,_catch:()=>bO,_check:()=>Gk,_cidrv4:()=>bs,_cidrv6:()=>$s,_coercedBigint:()=>bu,_coercedBoolean:()=>vu,_coercedDate:()=>Nu,_coercedNumber:()=>du,_coercedString:()=>nu,_cuid:()=>ps,_cuid2:()=>ms,_custom:()=>Cu,_date:()=>Eu,_decode:()=>zc,_decodeAsync:()=>Tc,_default:()=>yO,_discriminatedUnion:()=>oO,_e164:()=>xs,_email:()=>ss,_emoji:()=>ds,_encode:()=>Ic,_encodeAsync:()=>Pc,_endsWith:()=>In,_enum:()=>dO,_file:()=>ju,_float32:()=>pu,_float64:()=>mu,_gt:()=>Lt,_gte:()=>qe,_guid:()=>Oi,_includes:()=>xn,_int:()=>fu,_int32:()=>gu,_int64:()=>$u,_intersection:()=>sO,_ipv4:()=>vs,_ipv6:()=>_s,_isoDate:()=>au,_isoDateTime:()=>su,_isoDuration:()=>lu,_isoTime:()=>cu,_jwt:()=>ws,_ksuid:()=>ys,_lazy:()=>xO,_length:()=>Lr,_literal:()=>pO,_lowercase:()=>kn,_lt:()=>Mt,_lte:()=>it,_mac:()=>iu,_map:()=>lO,_max:()=>it,_maxLength:()=>Mr,_maxSize:()=>yr,_mime:()=>zn,_min:()=>qe,_minLength:()=>Yt,_minSize:()=>Ut,_multipleOf:()=>hr,_nan:()=>Ou,_nanoid:()=>fs,_nativeEnum:()=>fO,_negative:()=>zs,_never:()=>Pu,_nonnegative:()=>Ts,_nonoptional:()=>vO,_nonpositive:()=>Ps,_normalize:()=>Pn,_null:()=>wu,_nullable:()=>hO,_number:()=>uu,_optional:()=>gO,_overwrite:()=>zt,_parse:()=>_i,_parseAsync:()=>$i,_pipe:()=>$O,_positive:()=>Is,_promise:()=>wO,_property:()=>Es,_readonly:()=>kO,_record:()=>cO,_refine:()=>Du,_regex:()=>$n,_safeDecode:()=>Nc,_safeDecodeAsync:()=>jc,_safeEncode:()=>Ec,_safeEncodeAsync:()=>Oc,_safeParse:()=>Si,_safeParseAsync:()=>xi,_set:()=>uO,_size:()=>Rr,_slugify:()=>Ci,_startsWith:()=>wn,_string:()=>ru,_stringFormat:()=>On,_stringbool:()=>Lu,_success:()=>_O,_superRefine:()=>Au,_symbol:()=>Su,_templateLiteral:()=>SO,_toLowerCase:()=>En,_toUpperCase:()=>Nn,_transform:()=>mO,_trim:()=>Tn,_tuple:()=>aO,_uint32:()=>hu,_uint64:()=>ku,_ulid:()=>gs,_undefined:()=>xu,_union:()=>nO,_unknown:()=>zu,_uppercase:()=>Sn,_url:()=>ji,_uuid:()=>as,_uuidv4:()=>cs,_uuidv6:()=>ls,_uuidv7:()=>us,_void:()=>Tu,_xid:()=>hs,_xor:()=>iO,clone:()=>Ue,config:()=>Te,createStandardJSONSchemaMethod:()=>Di,createToJSONSchemaMethod:()=>rg,decode:()=>$$,decodeAsync:()=>S$,describe:()=>Ru,encode:()=>b$,encodeAsync:()=>k$,extractDefs:()=>qr,finalize:()=>Zr,flattenError:()=>yi,formatError:()=>vi,globalConfig:()=>Zo,globalRegistry:()=>Re,initializeContext:()=>Ur,isValidBase64:()=>Qm,isValidBase64URL:()=>K$,isValidJWT:()=>G$,locales:()=>Ni,meta:()=>Mu,parse:()=>bi,parseAsync:()=>ki,prettifyError:()=>wc,process:()=>ge,regexes:()=>dt,registry:()=>os,safeDecode:()=>w$,safeDecodeAsync:()=>z$,safeEncode:()=>x$,safeEncodeAsync:()=>I$,safeParse:()=>_n,safeParseAsync:()=>wi,toDotPath:()=>_$,toJSONSchema:()=>Ai,treeifyError:()=>xc,util:()=>T,version:()=>Wm});var bc=Object.freeze({status:"aborted"});function y(e,t,r){function i(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,c);let l=s.prototype,u=Object.keys(l);for(let d=0;d<u.length;d++){let f=u[d];f in a||(a[f]=l[f].bind(a))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function s(a){var c;let l=r?.Parent?new o:this;i(l,a),(c=l._zod).deferred??(c.deferred=[]);for(let u of l._zod.deferred)u();return l}return Object.defineProperty(s,"init",{value:i}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var Fo=Symbol("zod_brand"),Rt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Nr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Zo={};function Te(e){return e&&Object.assign(Zo,e),Zo}var T={};ur(T,{BIGINT_FORMAT_RANGES:()=>nm,Class:()=>Wp,NUMBER_FORMAT_RANGES:()=>rm,aborted:()=>Dr,allowsEval:()=>Xp,assert:()=>_E,assertEqual:()=>gE,assertIs:()=>yE,assertNever:()=>vE,assertNotEqual:()=>hE,assignProp:()=>jr,base64ToUint8Array:()=>h$,base64urlToUint8Array:()=>EE,cached:()=>gi,captureStackTrace:()=>kc,cleanEnum:()=>TE,cleanRegex:()=>Go,clone:()=>Ue,cloneDef:()=>$E,createTransparentProxy:()=>zE,defineLazy:()=>Y,esc:()=>$c,escapeRegex:()=>It,extend:()=>f$,finalizeIssue:()=>lt,floatSafeRemainder:()=>Yp,getElementAtPath:()=>kE,getEnumValues:()=>Ko,getLengthableOrigin:()=>Ho,getParsedType:()=>IE,getSizableOrigin:()=>Jo,hexToUint8Array:()=>OE,isObject:()=>vn,isPlainObject:()=>Cr,issue:()=>hi,joinValues:()=>_,jsonStringifyReplacer:()=>mi,merge:()=>PE,mergeDefs:()=>gr,normalizeParams:()=>O,nullish:()=>Or,numKeys:()=>wE,objectClone:()=>bE,omit:()=>d$,optionalKeys:()=>tm,parsedType:()=>E,partial:()=>m$,pick:()=>u$,prefixIssues:()=>$t,primitiveTypes:()=>em,promiseAllObject:()=>SE,propertyKeyTypes:()=>Bo,randomString:()=>xE,required:()=>g$,safeExtend:()=>p$,shallowClone:()=>Sc,slugify:()=>Qp,stringifyPrimitive:()=>z,uint8ArrayToBase64:()=>y$,uint8ArrayToBase64url:()=>NE,uint8ArrayToHex:()=>jE,unwrapMessage:()=>Vo});function gE(e){return e}function hE(e){return e}function yE(e){}function vE(e){throw new Error("Unexpected value in exhaustive check")}function _E(e){}function Ko(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function _(e,t="|"){return e.map(r=>z(r)).join(t)}function mi(e,t){return typeof t=="bigint"?t.toString():t}function gi(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Or(e){return e==null}function Go(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Yp(e,t){let r=(e.toString().split(".")[1]||"").length,i=t.toString(),n=(i.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(i)){let c=i.match(/\d?e-(\d?)/);c?.[1]&&(n=Number.parseInt(c[1]))}let o=r>n?r:n,s=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return s%a/10**o}var l$=Symbol("evaluating");function Y(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==l$)return i===void 0&&(i=l$,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function bE(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function jr(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function gr(...e){let t={};for(let r of e){let i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function $E(e){return gr(e._zod.def)}function kE(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function SE(e){let t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=i[o];return n})}function xE(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function $c(e){return JSON.stringify(e)}function Qp(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var kc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function vn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Xp=gi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Cr(e){if(vn(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(vn(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Sc(e){return Cr(e)?{...e}:Array.isArray(e)?[...e]:e}function wE(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var IE=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}`)}},Bo=new Set(["string","number","symbol"]),em=new Set(["string","number","bigint","boolean","symbol","undefined"]);function It(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ue(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function O(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function zE(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,o){return t??(t=e()),Reflect.set(t,i,n,o)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function tm(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var rm={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]},nm={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function u$(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=gr(e._zod.def,{get shape(){let s={};for(let a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(s[a]=r.shape[a])}return jr(this,"shape",s),s},checks:[]});return Ue(e,o)}function d$(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=gr(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete s[a]}return jr(this,"shape",s),s},checks:[]});return Ue(e,o)}function f$(e,t){if(!Cr(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let o=e._zod.def.shape;for(let s in t)if(Object.getOwnPropertyDescriptor(o,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=gr(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return jr(this,"shape",o),o}});return Ue(e,n)}function p$(e,t){if(!Cr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=gr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return jr(this,"shape",i),i}});return Ue(e,r)}function PE(e,t){let r=gr(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:[]});return Ue(e,r)}function m$(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=gr(t._zod.def,{get shape(){let a=t._zod.def.shape,c={...a};if(r)for(let l in r){if(!(l in a))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(c[l]=e?new e({type:"optional",innerType:a[l]}):a[l])}else for(let l in a)c[l]=e?new e({type:"optional",innerType:a[l]}):a[l];return jr(this,"shape",c),c},checks:[]});return Ue(t,s)}function g$(e,t,r){let i=gr(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};if(r)for(let s in r){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(o[s]=new e({type:"nonoptional",innerType:n[s]}))}else for(let s in n)o[s]=new e({type:"nonoptional",innerType:n[s]});return jr(this,"shape",o),o}});return Ue(t,i)}function Dr(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function $t(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Vo(e){return typeof e=="string"?e:e?.message}function lt(e,t,r){let i={...e,path:e.path??[]};if(!e.message){let n=Vo(e.inst?._zod.def?.error?.(e))??Vo(t?.error?.(e))??Vo(r.customError?.(e))??Vo(r.localeError?.(e))??"Invalid input";i.message=n}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Jo(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ho(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function E(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function hi(...e){let[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function TE(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function h$(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function y$(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function EE(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return h$(t+r)}function NE(e){return y$(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function OE(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function jE(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Wp=class{constructor(...t){}};var v$=(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,mi,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Wo=y("$ZodError",v$),ut=y("$ZodError",v$,{Parent:Error});function yi(e,t=r=>r.message){let r={},i=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function vi(e,t=r=>r.message){let r={_errors:[]},i=n=>{for(let o of n.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>i({issues:s}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)r._errors.push(t(o));else{let s=r,a=0;for(;a<o.path.length;){let c=o.path[a];a===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(o))):s[c]=s[c]||{_errors:[]},s=s[c],a++}}};return i(e),r}function xc(e,t=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var s,a;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>i({issues:l},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else{let l=[...o,...c.path];if(l.length===0){r.errors.push(t(c));continue}let u=r,d=0;for(;d<l.length;){let f=l[d],p=d===l.length-1;typeof f=="string"?(u.properties??(u.properties={}),(s=u.properties)[f]??(s[f]={errors:[]}),u=u.properties[f]):(u.items??(u.items=[]),(a=u.items)[f]??(a[f]={errors:[]}),u=u.items[f]),p&&u.errors.push(t(c)),d++}}};return i(e),r}function _$(e){let t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(let i of r)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 wc(e){let t=[],r=[...e.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${_$(i.path)}`);return t.join(`
148
- `)}var _i=e=>(t,r,i,n)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new Rt;if(s.issues.length){let a=new(n?.Err??e)(s.issues.map(c=>lt(c,o,Te())));throw kc(a,n?.callee),a}return s.value},bi=_i(ut),$i=e=>async(t,r,i,n)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let a=new(n?.Err??e)(s.issues.map(c=>lt(c,o,Te())));throw kc(a,n?.callee),a}return s.value},ki=$i(ut),Si=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new Rt;return o.issues.length?{success:!1,error:new(e??Wo)(o.issues.map(s=>lt(s,n,Te())))}:{success:!0,data:o.value}},_n=Si(ut),xi=e=>async(t,r,i)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(s=>lt(s,n,Te())))}:{success:!0,data:o.value}},wi=xi(ut),Ic=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _i(e)(t,r,n)},b$=Ic(ut),zc=e=>(t,r,i)=>_i(e)(t,r,i),$$=zc(ut),Pc=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return $i(e)(t,r,n)},k$=Pc(ut),Tc=e=>async(t,r,i)=>$i(e)(t,r,i),S$=Tc(ut),Ec=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Si(e)(t,r,n)},x$=Ec(ut),Nc=e=>(t,r,i)=>Si(e)(t,r,i),w$=Nc(ut),Oc=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return xi(e)(t,r,n)},I$=Oc(ut),jc=e=>async(t,r,i)=>xi(e)(t,r,i),z$=jc(ut);var dt={};ur(dt,{base64:()=>_m,base64url:()=>Cc,bigint:()=>wm,boolean:()=>zm,browserEmail:()=>ZE,cidrv4:()=>ym,cidrv6:()=>vm,cuid:()=>im,cuid2:()=>om,date:()=>$m,datetime:()=>Sm,domain:()=>KE,duration:()=>um,e164:()=>bm,email:()=>fm,emoji:()=>pm,extendedDuration:()=>DE,guid:()=>dm,hex:()=>GE,hostname:()=>VE,html5Email:()=>LE,idnEmail:()=>qE,integer:()=>Im,ipv4:()=>mm,ipv6:()=>gm,ksuid:()=>cm,lowercase:()=>Em,mac:()=>hm,md5_base64:()=>JE,md5_base64url:()=>HE,md5_hex:()=>BE,nanoid:()=>lm,null:()=>Pm,number:()=>Dc,rfc5322Email:()=>UE,sha1_base64:()=>YE,sha1_base64url:()=>QE,sha1_hex:()=>WE,sha256_base64:()=>eN,sha256_base64url:()=>tN,sha256_hex:()=>XE,sha384_base64:()=>nN,sha384_base64url:()=>iN,sha384_hex:()=>rN,sha512_base64:()=>sN,sha512_base64url:()=>aN,sha512_hex:()=>oN,string:()=>xm,time:()=>km,ulid:()=>sm,undefined:()=>Tm,unicodeEmail:()=>P$,uppercase:()=>Nm,uuid:()=>bn,uuid4:()=>AE,uuid6:()=>RE,uuid7:()=>ME,xid:()=>am});var im=/^[cC][^\s-]{8,}$/,om=/^[0-9a-z]+$/,sm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,am=/^[0-9a-vA-V]{20}$/,cm=/^[A-Za-z0-9]{27}$/,lm=/^[a-zA-Z0-9_-]{21}$/,um=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,DE=/^[-+]?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)?)??$/,dm=/^([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})$/,bn=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)$/,AE=bn(4),RE=bn(6),ME=bn(7),fm=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,LE=/^[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])?)*$/,UE=/^(([^<>()\[\]\\.,;:\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,}))$/,P$=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,qE=P$,ZE=/^[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])?)*$/,FE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function pm(){return new RegExp(FE,"u")}var mm=/^(?:(?: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])$/,gm=/^(([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}|:))$/,hm=e=>{let t=It(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},ym=/^((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])$/,vm=/^(([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])$/,_m=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Cc=/^[A-Za-z0-9_-]*$/,VE=/^(?=.{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])?)*\.?$/,KE=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,bm=/^\+[1-9]\d{6,14}$/,T$="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",$m=new RegExp(`^${T$}$`);function E$(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 km(e){return new RegExp(`^${E$(e)}$`)}function Sm(e){let t=E$({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${r.join("|")})`;return new RegExp(`^${T$}T(?:${i})$`)}var xm=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},wm=/^-?\d+n?$/,Im=/^-?\d+$/,Dc=/^-?\d+(?:\.\d+)?$/,zm=/^(?:true|false)$/i,Pm=/^null$/i;var Tm=/^undefined$/i;var Em=/^[^A-Z]*$/,Nm=/^[^a-z]*$/,GE=/^[0-9a-fA-F]*$/;function Yo(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Qo(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var BE=/^[0-9a-fA-F]{32}$/,JE=Yo(22,"=="),HE=Qo(22),WE=/^[0-9a-fA-F]{40}$/,YE=Yo(27,"="),QE=Qo(27),XE=/^[0-9a-fA-F]{64}$/,eN=Yo(43,"="),tN=Qo(43),rN=/^[0-9a-fA-F]{96}$/,nN=Yo(64,""),iN=Qo(64),oN=/^[0-9a-fA-F]{128}$/,sN=Yo(86,"=="),aN=Qo(86);var _e=y("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),O$={number:"number",bigint:"bigint",object:"date"},Ac=y("$ZodCheckLessThan",(e,t)=>{_e.init(e,t);let r=O$[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Rc=y("$ZodCheckGreaterThan",(e,t)=>{_e.init(e,t);let r=O$[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Om=y("$ZodCheckMultipleOf",(e,t)=>{_e.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Yp(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),jm=y("$ZodCheckNumberFormat",(e,t)=>{_e.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,o]=rm[t.format];e._zod.onattach.push(s=>{let a=s._zod.bag;a.format=t.format,a.minimum=n,a.maximum=o,r&&(a.pattern=Im)}),e._zod.check=s=>{let a=s.value;if(r){if(!Number.isInteger(a)){s.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,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}):s.issues.push({input:a,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}}a<n&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Cm=y("$ZodCheckBigIntFormat",(e,t)=>{_e.init(e,t);let[r,i]=nm[t.format];e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=i}),e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Dm=y("$ZodCheckMaxSize",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Or(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:Jo(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Am=y("$ZodCheckMinSize",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Or(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:Jo(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Rm=y("$ZodCheckSizeEquals",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Or(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{let n=i.value,o=n.size;if(o===t.size)return;let s=o>t.size;i.issues.push({origin:Jo(n),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Mm=y("$ZodCheckMaxLength",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Or(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;if(n.length<=t.maximum)return;let s=Ho(n);i.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Lm=y("$ZodCheckMinLength",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Or(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;if(n.length>=t.minimum)return;let s=Ho(n);i.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Um=y("$ZodCheckLengthEquals",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Or(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{let n=i.value,o=n.length;if(o===t.length)return;let s=Ho(n),a=o>t.length;i.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ii=y("$ZodCheckStringFormat",(e,t)=>{var r,i;_e.init(e,t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),qm=y("$ZodCheckRegex",(e,t)=>{Ii.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Zm=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Em),Ii.init(e,t)}),Fm=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Nm),Ii.init(e,t)}),Vm=y("$ZodCheckIncludes",(e,t)=>{_e.init(e,t);let r=It(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Km=y("$ZodCheckStartsWith",(e,t)=>{_e.init(e,t);let r=new RegExp(`^${It(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),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})}}),Gm=y("$ZodCheckEndsWith",(e,t)=>{_e.init(e,t);let r=new RegExp(`.*${It(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),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 N$(e,t,r){e.issues.length&&t.issues.push(...$t(r,e.issues))}var Bm=y("$ZodCheckProperty",(e,t)=>{_e.init(e,t),e._zod.check=r=>{let i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>N$(n,r,t.property));N$(i,r,t.property)}}),Jm=y("$ZodCheckMimeType",(e,t)=>{_e.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),Hm=y("$ZodCheckOverwrite",(e,t)=>{_e.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Xo=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(`
147
+ `,r)+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 r=vp(t),i=So(r);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 r=vp(t),i=So(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!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())}}};QP.Parser=Ab});var nT=v(cc=>{"use strict";var XP=Sb(),TZ=Xa(),ac=rc(),EZ=$_(),NZ=de(),OZ=Db(),eT=Rb();function tT(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new OZ.LineCounter||null,prettyErrors:t}}function jZ(e,t={}){let{lineCounter:r,prettyErrors:i}=tT(t),n=new eT.Parser(r?.addNewLine),o=new XP.Composer(t),s=Array.from(o.compose(n.parse(e)));if(i&&r)for(let a of s)a.errors.forEach(ac.prettifyError(e,r)),a.warnings.forEach(ac.prettifyError(e,r));return s.length>0?s:Object.assign([],{empty:!0},o.streamInfo())}function rT(e,t={}){let{lineCounter:r,prettyErrors:i}=tT(t),n=new eT.Parser(r?.addNewLine),o=new XP.Composer(t),s=null;for(let a of o.compose(n.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new ac.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&r&&(s.errors.forEach(ac.prettifyError(e,r)),s.warnings.forEach(ac.prettifyError(e,r))),s}function CZ(e,t,r){let i;typeof t=="function"?i=t:r===void 0&&t&&typeof t=="object"&&(r=t);let n=rT(e,r);if(!n)return null;if(n.warnings.forEach(o=>EZ.warn(n.options.logLevel,o)),n.errors.length>0){if(n.options.logLevel!=="silent")throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:i},r))}function DZ(e,t,r){let i=null;if(typeof t=="function"||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r=="string"&&(r=r.length),typeof r=="number"){let n=Math.round(r);r=n<1?void 0:n>8?{indent:8}:{indent:n}}if(e===void 0){let{keepUndefined:n}=r??t??{};if(!n)return}return NZ.isDocument(e)&&!i?e.toString(r):new TZ.Document(e,i,r).toString(r)}cc.parse=CZ;cc.parseAllDocuments=jZ;cc.parseDocument=rT;cc.stringify=DZ});var Lb=v(he=>{"use strict";var AZ=Sb(),RZ=Xa(),MZ=nb(),Mb=rc(),LZ=Aa(),fn=de(),UZ=an(),qZ=Oe(),ZZ=ln(),FZ=un(),VZ=hp(),KZ=jb(),GZ=Db(),BZ=Rb(),_p=nT(),iT=Oa();he.Composer=AZ.Composer;he.Document=RZ.Document;he.Schema=MZ.Schema;he.YAMLError=Mb.YAMLError;he.YAMLParseError=Mb.YAMLParseError;he.YAMLWarning=Mb.YAMLWarning;he.Alias=LZ.Alias;he.isAlias=fn.isAlias;he.isCollection=fn.isCollection;he.isDocument=fn.isDocument;he.isMap=fn.isMap;he.isNode=fn.isNode;he.isPair=fn.isPair;he.isScalar=fn.isScalar;he.isSeq=fn.isSeq;he.Pair=UZ.Pair;he.Scalar=qZ.Scalar;he.YAMLMap=ZZ.YAMLMap;he.YAMLSeq=FZ.YAMLSeq;he.CST=VZ;he.Lexer=KZ.Lexer;he.LineCounter=GZ.LineCounter;he.Parser=BZ.Parser;he.parse=_p.parse;he.parseAllDocuments=_p.parseAllDocuments;he.parseDocument=_p.parseDocument;he.stringify=_p.stringify;he.visit=iT.visit;he.visitAsync=iT.visitAsync});var DT=require("node:readline");var se;(function(e){e.assertEqual=n=>{};function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let o={};for(let s of n)o[s]=s;return o},e.getValidEnumValues=n=>{let o=e.objectKeys(n).filter(a=>typeof n[n[a]]!="number"),s={};for(let a of o)s[a]=n[a];return e.objectValues(s)},e.objectValues=n=>e.objectKeys(n).map(function(o){return n[o]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let o=[];for(let s in n)Object.prototype.hasOwnProperty.call(n,s)&&o.push(s);return o},e.find=(n,o)=>{for(let s of n)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function i(n,o=" | "){return n.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(n,o)=>typeof o=="bigint"?o.toString():o})(se||(se={}));var o$;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(o$||(o$={}));var A=se.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dr=e=>{switch(typeof e){case"undefined":return A.undefined;case"string":return A.string;case"number":return Number.isNaN(e)?A.nan:A.number;case"boolean":return A.boolean;case"function":return A.function;case"bigint":return A.bigint;case"symbol":return A.symbol;case"object":return Array.isArray(e)?A.array:e===null?A.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?A.promise:typeof Map<"u"&&e instanceof Map?A.map:typeof Set<"u"&&e instanceof Set?A.set:typeof Date<"u"&&e instanceof Date?A.date:A.object;default:return A.unknown}};var P=se.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var _t=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(o){return o.message},i={_errors:[]},n=o=>{for(let s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(n);else if(s.code==="invalid_return_type")n(s.returnTypeError);else if(s.code==="invalid_arguments")n(s.argumentsError);else if(s.path.length===0)i._errors.push(r(s));else{let a=i,c=0;for(;c<s.path.length;){let l=s.path[c];c===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(s))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};return n(this),i}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,se.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),i=[];for(let n of this.issues)if(n.path.length>0){let o=n.path[0];r[o]=r[o]||[],r[o].push(t(n))}else i.push(t(n));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}};_t.create=e=>new _t(e);var FT=(e,t)=>{let r;switch(e.code){case P.invalid_type:e.received===A.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case P.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,se.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:r=`Unrecognized key(s) in object: ${se.joinValues(e.keys,", ")}`;break;case P.invalid_union:r="Invalid input";break;case P.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${se.joinValues(e.options)}`;break;case P.invalid_enum_value:r=`Invalid enum value. Expected ${se.joinValues(e.options)}, received '${e.received}'`;break;case P.invalid_arguments:r="Invalid function arguments";break;case P.invalid_return_type:r="Invalid function return type";break;case P.invalid_date:r="Invalid date";break;case P.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:se.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case P.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case P.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case P.custom:r="Invalid input";break;case P.invalid_intersection_types:r="Intersection results could not be merged";break;case P.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case P.not_finite:r="Number must be finite";break;default:r=t.defaultError,se.assertNever(e)}return{message:r}},Pr=FT;var VT=Pr;function No(){return VT}var yc=e=>{let{data:t,path:r,errorMaps:i,issueData:n}=e,o=[...r,...n.path||[]],s={...n,path:o};if(n.message!==void 0)return{...n,path:o,message:n.message};let a="",c=i.filter(l=>!!l).slice().reverse();for(let l of c)a=l(s,{data:t,defaultError:a}).message;return{...n,path:o,message:a}};function j(e,t){let r=No(),i=yc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Pr?void 0:Pr].filter(n=>!!n)});e.common.issues.push(i)}var Qe=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let i=[];for(let n of r){if(n.status==="aborted")return K;n.status==="dirty"&&t.dirty(),i.push(n.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,r){let i=[];for(let n of r){let o=await n.key,s=await n.value;i.push({key:o,value:s})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,r){let i={};for(let n of r){let{key:o,value:s}=n;if(o.status==="aborted"||s.status==="aborted")return K;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||n.alwaysSet)&&(i[o.value]=s.value)}return{status:t.value,value:i}}},K=Object.freeze({status:"aborted"}),ei=e=>({status:"dirty",value:e}),nt=e=>({status:"valid",value:e}),Zp=e=>e.status==="aborted",Fp=e=>e.status==="dirty",hn=e=>e.status==="valid",Oo=e=>typeof Promise<"u"&&e instanceof Promise;var M;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(M||(M={}));var wt=class{constructor(t,r,i,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=i,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},s$=(e,t)=>{if(hn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new _t(e.common.issues);return this._error=r,this._error}}};function J(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:n}=e;if(t&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(s,a)=>{let{message:c}=e;return s.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??i??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:n}}var re=class{get description(){return this._def.description}_getType(t){return dr(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:dr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Qe,ctx:{common:t.parent.common,data:t.data,parsedType:dr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Oo(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let i=this.safeParse(t,r);if(i.success)return i.data;throw i.error}safeParse(t,r){let i={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:dr(t)},n=this._parseSync({data:t,path:i.path,parent:i});return s$(i,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:dr(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:r});return hn(i)?{value:i.value}:{issues:r.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>hn(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,r){let i=await this.safeParseAsync(t,r);if(i.success)return i.data;throw i.error}async safeParseAsync(t,r){let i={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:dr(t)},n=this._parse({data:t,path:i.path,parent:i}),o=await(Oo(n)?n:Promise.resolve(n));return s$(i,o)}refine(t,r){let i=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,o)=>{let s=t(n),a=()=>o.addIssue({code:P.custom,...i(n)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,r){return this._refinement((i,n)=>t(i)?!0:(n.addIssue(typeof r=="function"?r(i,n):r),!1))}_refinement(t){return new At({schema:this,typeName:Z.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Dt.create(this,this._def)}nullable(){return mr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Er.create(this)}promise(){return yn.create(this,this._def)}or(t){return oi.create([this,t],this._def)}and(t){return si.create(this,t,this._def)}transform(t){return new At({...J(this._def),schema:this,typeName:Z.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new di({...J(this._def),innerType:this,defaultValue:r,typeName:Z.ZodDefault})}brand(){return new vc({typeName:Z.ZodBranded,type:this,...J(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new fi({...J(this._def),innerType:this,catchValue:r,typeName:Z.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return _c.create(this,t)}readonly(){return pi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},KT=/^c[^\s-]{8,}$/i,GT=/^[0-9a-z]+$/,BT=/^[0-9A-HJKMNP-TV-Z]{26}$/i,JT=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,HT=/^[a-z0-9_-]{21}$/i,WT=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,YT=/^[-+]?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)?)??$/,QT=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,XT="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Vp,eE=/^(?:(?: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])$/,tE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,rE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,iE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,oE=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,a$="((\\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])))",sE=new RegExp(`^${a$}$`);function c$(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function aE(e){return new RegExp(`^${c$(e)}$`)}function cE(e){let t=`${a$}T${c$(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function lE(e,t){return!!((t==="v4"||!t)&&eE.test(e)||(t==="v6"||!t)&&rE.test(e))}function uE(e,t){if(!WT.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let i=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(i));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)}catch{return!1}}function dE(e,t){return!!((t==="v4"||!t)&&tE.test(e)||(t==="v6"||!t)&&nE.test(e))}var ri=class e extends re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==A.string){let o=this._getOrReturnCtx(t);return j(o,{code:P.invalid_type,expected:A.string,received:o.parsedType}),K}let i=new Qe,n;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(n=this._getOrReturnCtx(t,n),j(n,{code:P.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(n=this._getOrReturnCtx(t,n),j(n,{code:P.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){let s=t.data.length>o.value,a=t.data.length<o.value;(s||a)&&(n=this._getOrReturnCtx(t,n),s?j(n,{code:P.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&j(n,{code:P.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")QT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"email",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")Vp||(Vp=new RegExp(XT,"u")),Vp.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"emoji",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")JT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"uuid",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")HT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"nanoid",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")KT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"cuid",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")GT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"cuid2",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")BT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"ulid",code:P.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),j(n,{validation:"url",code:P.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"regex",code:P.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(t,n),j(n,{code:P.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(n=this._getOrReturnCtx(t,n),j(n,{code:P.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(n=this._getOrReturnCtx(t,n),j(n,{code:P.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?cE(o).test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{code:P.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?sE.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{code:P.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?aE(o).test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{code:P.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?YT.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"duration",code:P.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?lE(t.data,o.version)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"ip",code:P.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?uE(t.data,o.alg)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"jwt",code:P.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?dE(t.data,o.version)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"cidr",code:P.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?iE.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"base64",code:P.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?oE.test(t.data)||(n=this._getOrReturnCtx(t,n),j(n,{validation:"base64url",code:P.invalid_string,message:o.message}),i.dirty()):se.assertNever(o);return{status:i.value,value:t.data}}_regex(t,r,i){return this.refinement(n=>t.test(n),{validation:r,code:P.invalid_string,...M.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...M.errToObj(t)})}url(t){return this._addCheck({kind:"url",...M.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...M.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...M.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...M.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...M.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...M.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...M.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...M.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...M.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...M.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...M.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...M.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...M.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...M.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...M.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...M.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...M.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...M.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...M.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...M.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...M.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...M.errToObj(r)})}nonempty(t){return this.min(1,M.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};ri.create=e=>new ri({checks:[],typeName:Z.ZodString,coerce:e?.coerce??!1,...J(e)});function fE(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i,o=Number.parseInt(e.toFixed(n).replace(".","")),s=Number.parseInt(t.toFixed(n).replace(".",""));return o%s/10**n}var jo=class e extends re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==A.number){let o=this._getOrReturnCtx(t);return j(o,{code:P.invalid_type,expected:A.number,received:o.parsedType}),K}let i,n=new Qe;for(let o of this._def.checks)o.kind==="int"?se.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),j(i,{code:P.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),j(i,{code:P.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),j(i,{code:P.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="multipleOf"?fE(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),j(i,{code:P.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),j(i,{code:P.not_finite,message:o.message}),n.dirty()):se.assertNever(o);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,M.toString(r))}gt(t,r){return this.setLimit("min",t,!1,M.toString(r))}lte(t,r){return this.setLimit("max",t,!0,M.toString(r))}lt(t,r){return this.setLimit("max",t,!1,M.toString(r))}setLimit(t,r,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:M.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:M.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:M.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:M.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:M.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:M.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:M.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:M.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:M.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:M.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&se.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(r)&&Number.isFinite(t)}};jo.create=e=>new jo({checks:[],typeName:Z.ZodNumber,coerce:e?.coerce||!1,...J(e)});var Co=class e extends re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==A.bigint)return this._getInvalidInput(t);let i,n=new Qe;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),j(i,{code:P.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),j(i,{code:P.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),j(i,{code:P.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):se.assertNever(o);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return j(r,{code:P.invalid_type,expected:A.bigint,received:r.parsedType}),K}gte(t,r){return this.setLimit("min",t,!0,M.toString(r))}gt(t,r){return this.setLimit("min",t,!1,M.toString(r))}lte(t,r){return this.setLimit("max",t,!0,M.toString(r))}lt(t,r){return this.setLimit("max",t,!1,M.toString(r))}setLimit(t,r,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:M.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:M.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:M.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:M.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:M.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:M.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Co.create=e=>new Co({checks:[],typeName:Z.ZodBigInt,coerce:e?.coerce??!1,...J(e)});var Do=class extends re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==A.boolean){let i=this._getOrReturnCtx(t);return j(i,{code:P.invalid_type,expected:A.boolean,received:i.parsedType}),K}return nt(t.data)}};Do.create=e=>new Do({typeName:Z.ZodBoolean,coerce:e?.coerce||!1,...J(e)});var Ao=class e extends re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==A.date){let o=this._getOrReturnCtx(t);return j(o,{code:P.invalid_type,expected:A.date,received:o.parsedType}),K}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return j(o,{code:P.invalid_date}),K}let i=new Qe,n;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(n=this._getOrReturnCtx(t,n),j(n,{code:P.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(n=this._getOrReturnCtx(t,n),j(n,{code:P.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):se.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:M.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:M.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};Ao.create=e=>new Ao({checks:[],coerce:e?.coerce||!1,typeName:Z.ZodDate,...J(e)});var Ro=class extends re{_parse(t){if(this._getType(t)!==A.symbol){let i=this._getOrReturnCtx(t);return j(i,{code:P.invalid_type,expected:A.symbol,received:i.parsedType}),K}return nt(t.data)}};Ro.create=e=>new Ro({typeName:Z.ZodSymbol,...J(e)});var ni=class extends re{_parse(t){if(this._getType(t)!==A.undefined){let i=this._getOrReturnCtx(t);return j(i,{code:P.invalid_type,expected:A.undefined,received:i.parsedType}),K}return nt(t.data)}};ni.create=e=>new ni({typeName:Z.ZodUndefined,...J(e)});var ii=class extends re{_parse(t){if(this._getType(t)!==A.null){let i=this._getOrReturnCtx(t);return j(i,{code:P.invalid_type,expected:A.null,received:i.parsedType}),K}return nt(t.data)}};ii.create=e=>new ii({typeName:Z.ZodNull,...J(e)});var Mo=class extends re{constructor(){super(...arguments),this._any=!0}_parse(t){return nt(t.data)}};Mo.create=e=>new Mo({typeName:Z.ZodAny,...J(e)});var Tr=class extends re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return nt(t.data)}};Tr.create=e=>new Tr({typeName:Z.ZodUnknown,...J(e)});var Wt=class extends re{_parse(t){let r=this._getOrReturnCtx(t);return j(r,{code:P.invalid_type,expected:A.never,received:r.parsedType}),K}};Wt.create=e=>new Wt({typeName:Z.ZodNever,...J(e)});var Lo=class extends re{_parse(t){if(this._getType(t)!==A.undefined){let i=this._getOrReturnCtx(t);return j(i,{code:P.invalid_type,expected:A.void,received:i.parsedType}),K}return nt(t.data)}};Lo.create=e=>new Lo({typeName:Z.ZodVoid,...J(e)});var Er=class e extends re{_parse(t){let{ctx:r,status:i}=this._processInputParams(t),n=this._def;if(r.parsedType!==A.array)return j(r,{code:P.invalid_type,expected:A.array,received:r.parsedType}),K;if(n.exactLength!==null){let s=r.data.length>n.exactLength.value,a=r.data.length<n.exactLength.value;(s||a)&&(j(r,{code:s?P.too_big:P.too_small,minimum:a?n.exactLength.value:void 0,maximum:s?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(j(r,{code:P.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(j(r,{code:P.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((s,a)=>n.type._parseAsync(new wt(r,s,r.path,a)))).then(s=>Qe.mergeArray(i,s));let o=[...r.data].map((s,a)=>n.type._parseSync(new wt(r,s,r.path,a)));return Qe.mergeArray(i,o)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:M.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:M.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:M.toString(r)}})}nonempty(t){return this.min(1,t)}};Er.create=(e,t)=>new Er({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Z.ZodArray,...J(t)});function ti(e){if(e instanceof bt){let t={};for(let r in e.shape){let i=e.shape[r];t[r]=Dt.create(ti(i))}return new bt({...e._def,shape:()=>t})}else return e instanceof Er?new Er({...e._def,type:ti(e.element)}):e instanceof Dt?Dt.create(ti(e.unwrap())):e instanceof mr?mr.create(ti(e.unwrap())):e instanceof pr?pr.create(e.items.map(t=>ti(t))):e}var bt=class e extends re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=se.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==A.object){let l=this._getOrReturnCtx(t);return j(l,{code:P.invalid_type,expected:A.object,received:l.parsedType}),K}let{status:i,ctx:n}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Wt&&this._def.unknownKeys==="strip"))for(let l in n.data)s.includes(l)||a.push(l);let c=[];for(let l of s){let u=o[l],d=n.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new wt(n,d,n.path,l)),alwaysSet:l in n.data})}if(this._def.catchall instanceof Wt){let l=this._def.unknownKeys;if(l==="passthrough")for(let u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:n.data[u]}});else if(l==="strict")a.length>0&&(j(n,{code:P.unrecognized_keys,keys:a}),i.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let u of a){let d=n.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new wt(n,d,n.path,u)),alwaysSet:u in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let l=[];for(let u of c){let d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>Qe.mergeObjectSync(i,l)):Qe.mergeObjectSync(i,c)}get shape(){return this._def.shape()}strict(t){return M.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,i)=>{let n=this._def.errorMap?.(r,i).message??i.defaultError;return r.code==="unrecognized_keys"?{message:M.errToObj(t).message??n}:{message:n}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Z.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let i of se.objectKeys(t))t[i]&&this.shape[i]&&(r[i]=this.shape[i]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let i of se.objectKeys(this.shape))t[i]||(r[i]=this.shape[i]);return new e({...this._def,shape:()=>r})}deepPartial(){return ti(this)}partial(t){let r={};for(let i of se.objectKeys(this.shape)){let n=this.shape[i];t&&!t[i]?r[i]=n:r[i]=n.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let i of se.objectKeys(this.shape))if(t&&!t[i])r[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof Dt;)o=o._def.innerType;r[i]=o}return new e({...this._def,shape:()=>r})}keyof(){return l$(se.objectKeys(this.shape))}};bt.create=(e,t)=>new bt({shape:()=>e,unknownKeys:"strip",catchall:Wt.create(),typeName:Z.ZodObject,...J(t)});bt.strictCreate=(e,t)=>new bt({shape:()=>e,unknownKeys:"strict",catchall:Wt.create(),typeName:Z.ZodObject,...J(t)});bt.lazycreate=(e,t)=>new bt({shape:e,unknownKeys:"strip",catchall:Wt.create(),typeName:Z.ZodObject,...J(t)});var oi=class extends re{_parse(t){let{ctx:r}=this._processInputParams(t),i=this._def.options;function n(o){for(let a of o)if(a.result.status==="valid")return a.result;for(let a of o)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let s=o.map(a=>new _t(a.ctx.common.issues));return j(r,{code:P.invalid_union,unionErrors:s}),K}if(r.common.async)return Promise.all(i.map(async o=>{let s={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(n);{let o,s=[];for(let c of i){let l={...r,common:{...r.common,issues:[]},parent:null},u=c._parseSync({data:r.data,path:r.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:l}),l.common.issues.length&&s.push(l.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;let a=s.map(c=>new _t(c));return j(r,{code:P.invalid_union,unionErrors:a}),K}}get options(){return this._def.options}};oi.create=(e,t)=>new oi({options:e,typeName:Z.ZodUnion,...J(t)});var fr=e=>e instanceof ai?fr(e.schema):e instanceof At?fr(e.innerType()):e instanceof ci?[e.value]:e instanceof li?e.options:e instanceof ui?se.objectValues(e.enum):e instanceof di?fr(e._def.innerType):e instanceof ni?[void 0]:e instanceof ii?[null]:e instanceof Dt?[void 0,...fr(e.unwrap())]:e instanceof mr?[null,...fr(e.unwrap())]:e instanceof vc||e instanceof pi?fr(e.unwrap()):e instanceof fi?fr(e._def.innerType):[],Kp=class e extends re{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==A.object)return j(r,{code:P.invalid_type,expected:A.object,received:r.parsedType}),K;let i=this.discriminator,n=r.data[i],o=this.optionsMap.get(n);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(j(r,{code:P.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),K)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,i){let n=new Map;for(let o of r){let s=fr(o.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of s){if(n.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);n.set(a,o)}}return new e({typeName:Z.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...J(i)})}};function Gp(e,t){let r=dr(e),i=dr(t);if(e===t)return{valid:!0,data:e};if(r===A.object&&i===A.object){let n=se.objectKeys(t),o=se.objectKeys(e).filter(a=>n.indexOf(a)!==-1),s={...e,...t};for(let a of o){let c=Gp(e[a],t[a]);if(!c.valid)return{valid:!1};s[a]=c.data}return{valid:!0,data:s}}else if(r===A.array&&i===A.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let o=0;o<e.length;o++){let s=e[o],a=t[o],c=Gp(s,a);if(!c.valid)return{valid:!1};n.push(c.data)}return{valid:!0,data:n}}else return r===A.date&&i===A.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var si=class extends re{_parse(t){let{status:r,ctx:i}=this._processInputParams(t),n=(o,s)=>{if(Zp(o)||Zp(s))return K;let a=Gp(o.value,s.value);return a.valid?((Fp(o)||Fp(s))&&r.dirty(),{status:r.value,value:a.data}):(j(i,{code:P.invalid_intersection_types}),K)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,s])=>n(o,s)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};si.create=(e,t,r)=>new si({left:e,right:t,typeName:Z.ZodIntersection,...J(r)});var pr=class e extends re{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==A.array)return j(i,{code:P.invalid_type,expected:A.array,received:i.parsedType}),K;if(i.data.length<this._def.items.length)return j(i,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),K;!this._def.rest&&i.data.length>this._def.items.length&&(j(i,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let o=[...i.data].map((s,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new wt(i,s,i.path,a)):null}).filter(s=>!!s);return i.common.async?Promise.all(o).then(s=>Qe.mergeArray(r,s)):Qe.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};pr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new pr({items:e,typeName:Z.ZodTuple,rest:null,...J(t)})};var Bp=class e extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==A.object)return j(i,{code:P.invalid_type,expected:A.object,received:i.parsedType}),K;let n=[],o=this._def.keyType,s=this._def.valueType;for(let a in i.data)n.push({key:o._parse(new wt(i,a,i.path,a)),value:s._parse(new wt(i,i.data[a],i.path,a)),alwaysSet:a in i.data});return i.common.async?Qe.mergeObjectAsync(r,n):Qe.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof re?new e({keyType:t,valueType:r,typeName:Z.ZodRecord,...J(i)}):new e({keyType:ri.create(),valueType:t,typeName:Z.ZodRecord,...J(r)})}},Uo=class extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==A.map)return j(i,{code:P.invalid_type,expected:A.map,received:i.parsedType}),K;let n=this._def.keyType,o=this._def.valueType,s=[...i.data.entries()].map(([a,c],l)=>({key:n._parse(new wt(i,a,i.path,[l,"key"])),value:o._parse(new wt(i,c,i.path,[l,"value"]))}));if(i.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of s){let l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return K;(l.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(l.value,u.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of s){let l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return K;(l.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(l.value,u.value)}return{status:r.value,value:a}}}};Uo.create=(e,t,r)=>new Uo({valueType:t,keyType:e,typeName:Z.ZodMap,...J(r)});var qo=class e extends re{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==A.set)return j(i,{code:P.invalid_type,expected:A.set,received:i.parsedType}),K;let n=this._def;n.minSize!==null&&i.data.size<n.minSize.value&&(j(i,{code:P.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&i.data.size>n.maxSize.value&&(j(i,{code:P.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let o=this._def.valueType;function s(c){let l=new Set;for(let u of c){if(u.status==="aborted")return K;u.status==="dirty"&&r.dirty(),l.add(u.value)}return{status:r.value,value:l}}let a=[...i.data.values()].map((c,l)=>o._parse(new wt(i,c,i.path,l)));return i.common.async?Promise.all(a).then(c=>s(c)):s(a)}min(t,r){return new e({...this._def,minSize:{value:t,message:M.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:M.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};qo.create=(e,t)=>new qo({valueType:e,minSize:null,maxSize:null,typeName:Z.ZodSet,...J(t)});var Jp=class e extends re{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==A.function)return j(r,{code:P.invalid_type,expected:A.function,received:r.parsedType}),K;function i(a,c){return yc({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,No(),Pr].filter(l=>!!l),issueData:{code:P.invalid_arguments,argumentsError:c}})}function n(a,c){return yc({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,No(),Pr].filter(l=>!!l),issueData:{code:P.invalid_return_type,returnTypeError:c}})}let o={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof yn){let a=this;return nt(async function(...c){let l=new _t([]),u=await a._def.args.parseAsync(c,o).catch(p=>{throw l.addIssue(i(c,p)),l}),d=await Reflect.apply(s,this,u);return await a._def.returns._def.type.parseAsync(d,o).catch(p=>{throw l.addIssue(n(d,p)),l})})}else{let a=this;return nt(function(...c){let l=a._def.args.safeParse(c,o);if(!l.success)throw new _t([i(c,l.error)]);let u=Reflect.apply(s,this,l.data),d=a._def.returns.safeParse(u,o);if(!d.success)throw new _t([n(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:pr.create(t).rest(Tr.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,i){return new e({args:t||pr.create([]).rest(Tr.create()),returns:r||Tr.create(),typeName:Z.ZodFunction,...J(i)})}},ai=class extends re{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};ai.create=(e,t)=>new ai({getter:e,typeName:Z.ZodLazy,...J(t)});var ci=class extends re{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return j(r,{received:r.data,code:P.invalid_literal,expected:this._def.value}),K}return{status:"valid",value:t.data}}get value(){return this._def.value}};ci.create=(e,t)=>new ci({value:e,typeName:Z.ZodLiteral,...J(t)});function l$(e,t){return new li({values:e,typeName:Z.ZodEnum,...J(t)})}var li=class e extends re{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),i=this._def.values;return j(r,{expected:se.joinValues(i),received:r.parsedType,code:P.invalid_type}),K}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),i=this._def.values;return j(r,{received:r.data,code:P.invalid_enum_value,options:i}),K}return nt(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(i=>!t.includes(i)),{...this._def,...r})}};li.create=l$;var ui=class extends re{_parse(t){let r=se.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==A.string&&i.parsedType!==A.number){let n=se.objectValues(r);return j(i,{expected:se.joinValues(n),received:i.parsedType,code:P.invalid_type}),K}if(this._cache||(this._cache=new Set(se.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=se.objectValues(r);return j(i,{received:i.data,code:P.invalid_enum_value,options:n}),K}return nt(t.data)}get enum(){return this._def.values}};ui.create=(e,t)=>new ui({values:e,typeName:Z.ZodNativeEnum,...J(t)});var yn=class extends re{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==A.promise&&r.common.async===!1)return j(r,{code:P.invalid_type,expected:A.promise,received:r.parsedType}),K;let i=r.parsedType===A.promise?r.data:Promise.resolve(r.data);return nt(i.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};yn.create=(e,t)=>new yn({type:e,typeName:Z.ZodPromise,...J(t)});var At=class extends re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Z.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:i}=this._processInputParams(t),n=this._def.effect||null,o={addIssue:s=>{j(i,s),s.fatal?r.abort():r.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let s=n.transform(i.data,o);if(i.common.async)return Promise.resolve(s).then(async a=>{if(r.value==="aborted")return K;let c=await this._def.schema._parseAsync({data:a,path:i.path,parent:i});return c.status==="aborted"?K:c.status==="dirty"?ei(c.value):r.value==="dirty"?ei(c.value):c});{if(r.value==="aborted")return K;let a=this._def.schema._parseSync({data:s,path:i.path,parent:i});return a.status==="aborted"?K:a.status==="dirty"?ei(a.value):r.value==="dirty"?ei(a.value):a}}if(n.type==="refinement"){let s=a=>{let c=n.refinement(a,o);if(i.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?K:(a.status==="dirty"&&r.dirty(),s(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>a.status==="aborted"?K:(a.status==="dirty"&&r.dirty(),s(a.value).then(()=>({status:r.value,value:a.value}))))}if(n.type==="transform")if(i.common.async===!1){let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!hn(s))return K;let a=n.transform(s.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>hn(s)?Promise.resolve(n.transform(s.value,o)).then(a=>({status:r.value,value:a})):K);se.assertNever(n)}};At.create=(e,t,r)=>new At({schema:e,typeName:Z.ZodEffects,effect:t,...J(r)});At.createWithPreprocess=(e,t,r)=>new At({schema:t,effect:{type:"preprocess",transform:e},typeName:Z.ZodEffects,...J(r)});var Dt=class extends re{_parse(t){return this._getType(t)===A.undefined?nt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Dt.create=(e,t)=>new Dt({innerType:e,typeName:Z.ZodOptional,...J(t)});var mr=class extends re{_parse(t){return this._getType(t)===A.null?nt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};mr.create=(e,t)=>new mr({innerType:e,typeName:Z.ZodNullable,...J(t)});var di=class extends re{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return r.parsedType===A.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};di.create=(e,t)=>new di({innerType:e,typeName:Z.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...J(t)});var fi=class extends re{_parse(t){let{ctx:r}=this._processInputParams(t),i={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Oo(n)?n.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new _t(i.common.issues)},input:i.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new _t(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};fi.create=(e,t)=>new fi({innerType:e,typeName:Z.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...J(t)});var Zo=class extends re{_parse(t){if(this._getType(t)!==A.nan){let i=this._getOrReturnCtx(t);return j(i,{code:P.invalid_type,expected:A.nan,received:i.parsedType}),K}return{status:"valid",value:t.data}}};Zo.create=e=>new Zo({typeName:Z.ZodNaN,...J(e)});var vc=class extends re{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}},_c=class e extends re{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?K:o.status==="dirty"?(r.dirty(),ei(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{let n=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?K:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:i.path,parent:i})}}static create(t,r){return new e({in:t,out:r,typeName:Z.ZodPipeline})}},pi=class extends re{_parse(t){let r=this._def.innerType._parse(t),i=n=>(hn(n)&&(n.value=Object.freeze(n.value)),n);return Oo(r)?r.then(n=>i(n)):i(r)}unwrap(){return this._def.innerType}};pi.create=(e,t)=>new pi({innerType:e,typeName:Z.ZodReadonly,...J(t)});var K6={object:bt.lazycreate},Z;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Z||(Z={}));var G6=ri.create,B6=jo.create,J6=Zo.create,H6=Co.create,W6=Do.create,Y6=Ao.create,Q6=Ro.create,X6=ni.create,eF=ii.create,tF=Mo.create,rF=Tr.create,nF=Wt.create,iF=Lo.create,oF=Er.create,pE=bt.create,sF=bt.strictCreate,aF=oi.create,cF=Kp.create,lF=si.create,uF=pr.create,dF=Bp.create,fF=Uo.create,pF=qo.create,mF=Jp.create,gF=ai.create,hF=ci.create,yF=li.create,vF=ui.create,_F=yn.create,bF=At.create,$F=Dt.create,kF=mr.create,SF=At.createWithPreprocess,xF=_c.create;var kt={};ur(kt,{$ZodAny:()=>_l,$ZodArray:()=>xl,$ZodAsyncError:()=>Rt,$ZodBase64:()=>ll,$ZodBase64URL:()=>ul,$ZodBigInt:()=>rs,$ZodBigIntFormat:()=>gl,$ZodBoolean:()=>zi,$ZodCIDRv4:()=>al,$ZodCIDRv6:()=>cl,$ZodCUID:()=>Hc,$ZodCUID2:()=>Wc,$ZodCatch:()=>ql,$ZodCheck:()=>_e,$ZodCheckBigIntFormat:()=>Cm,$ZodCheckEndsWith:()=>Gm,$ZodCheckGreaterThan:()=>Rc,$ZodCheckIncludes:()=>Vm,$ZodCheckLengthEquals:()=>Um,$ZodCheckLessThan:()=>Ac,$ZodCheckLowerCase:()=>Zm,$ZodCheckMaxLength:()=>Mm,$ZodCheckMaxSize:()=>Dm,$ZodCheckMimeType:()=>Jm,$ZodCheckMinLength:()=>Lm,$ZodCheckMinSize:()=>Am,$ZodCheckMultipleOf:()=>Om,$ZodCheckNumberFormat:()=>jm,$ZodCheckOverwrite:()=>Hm,$ZodCheckProperty:()=>Bm,$ZodCheckRegex:()=>qm,$ZodCheckSizeEquals:()=>Rm,$ZodCheckStartsWith:()=>Km,$ZodCheckStringFormat:()=>Ii,$ZodCheckUpperCase:()=>Fm,$ZodCodec:()=>Ti,$ZodCustom:()=>Hl,$ZodCustomStringFormat:()=>pl,$ZodDate:()=>Sl,$ZodDefault:()=>Rl,$ZodDiscriminatedUnion:()=>Il,$ZodE164:()=>dl,$ZodEmail:()=>Kc,$ZodEmoji:()=>Bc,$ZodEncodeError:()=>Nr,$ZodEnum:()=>Nl,$ZodError:()=>Yo,$ZodExactOptional:()=>Dl,$ZodFile:()=>jl,$ZodFunction:()=>Gl,$ZodGUID:()=>Fc,$ZodIPv4:()=>il,$ZodIPv6:()=>ol,$ZodISODate:()=>tl,$ZodISODateTime:()=>el,$ZodISODuration:()=>nl,$ZodISOTime:()=>rl,$ZodIntersection:()=>zl,$ZodJWT:()=>fl,$ZodKSUID:()=>Xc,$ZodLazy:()=>Jl,$ZodLiteral:()=>Ol,$ZodMAC:()=>sl,$ZodMap:()=>Tl,$ZodNaN:()=>Zl,$ZodNanoID:()=>Jc,$ZodNever:()=>$l,$ZodNonOptional:()=>Ll,$ZodNull:()=>vl,$ZodNullable:()=>Al,$ZodNumber:()=>ts,$ZodNumberFormat:()=>ml,$ZodObject:()=>Xm,$ZodObjectJIT:()=>eg,$ZodOptional:()=>is,$ZodPipe:()=>Fl,$ZodPrefault:()=>Ml,$ZodPromise:()=>Bl,$ZodReadonly:()=>Vl,$ZodRealError:()=>ut,$ZodRecord:()=>Pl,$ZodRegistry:()=>Xl,$ZodSet:()=>El,$ZodString:()=>Ar,$ZodStringFormat:()=>ye,$ZodSuccess:()=>Ul,$ZodSymbol:()=>hl,$ZodTemplateLiteral:()=>Kl,$ZodTransform:()=>Cl,$ZodTuple:()=>ns,$ZodType:()=>G,$ZodULID:()=>Yc,$ZodURL:()=>Gc,$ZodUUID:()=>Vc,$ZodUndefined:()=>yl,$ZodUnion:()=>Pi,$ZodUnknown:()=>bl,$ZodVoid:()=>kl,$ZodXID:()=>Qc,$ZodXor:()=>wl,$brand:()=>Vo,$constructor:()=>y,$input:()=>tu,$output:()=>eu,Doc:()=>es,JSONSchema:()=>Jk,JSONSchemaGenerator:()=>Fu,NEVER:()=>bc,TimePrecision:()=>ou,_any:()=>Iu,_array:()=>tg,_base64:()=>Ss,_base64url:()=>xs,_bigint:()=>_u,_boolean:()=>yu,_catch:()=>$O,_check:()=>Bk,_cidrv4:()=>$s,_cidrv6:()=>ks,_coercedBigint:()=>bu,_coercedBoolean:()=>vu,_coercedDate:()=>Nu,_coercedNumber:()=>du,_coercedString:()=>nu,_cuid:()=>ms,_cuid2:()=>gs,_custom:()=>Cu,_date:()=>Eu,_decode:()=>zc,_decodeAsync:()=>Tc,_default:()=>vO,_discriminatedUnion:()=>sO,_e164:()=>ws,_email:()=>as,_emoji:()=>fs,_encode:()=>Ic,_encodeAsync:()=>Pc,_endsWith:()=>In,_enum:()=>fO,_file:()=>ju,_float32:()=>pu,_float64:()=>mu,_gt:()=>Lt,_gte:()=>qe,_guid:()=>Oi,_includes:()=>xn,_int:()=>fu,_int32:()=>gu,_int64:()=>$u,_intersection:()=>aO,_ipv4:()=>_s,_ipv6:()=>bs,_isoDate:()=>au,_isoDateTime:()=>su,_isoDuration:()=>lu,_isoTime:()=>cu,_jwt:()=>Is,_ksuid:()=>vs,_lazy:()=>wO,_length:()=>Lr,_literal:()=>mO,_lowercase:()=>kn,_lt:()=>Mt,_lte:()=>it,_mac:()=>iu,_map:()=>uO,_max:()=>it,_maxLength:()=>Mr,_maxSize:()=>yr,_mime:()=>zn,_min:()=>qe,_minLength:()=>Yt,_minSize:()=>Ut,_multipleOf:()=>hr,_nan:()=>Ou,_nanoid:()=>ps,_nativeEnum:()=>pO,_negative:()=>Ps,_never:()=>Pu,_nonnegative:()=>Es,_nonoptional:()=>_O,_nonpositive:()=>Ts,_normalize:()=>Pn,_null:()=>wu,_nullable:()=>yO,_number:()=>uu,_optional:()=>hO,_overwrite:()=>zt,_parse:()=>_i,_parseAsync:()=>$i,_pipe:()=>kO,_positive:()=>zs,_promise:()=>IO,_property:()=>Ns,_readonly:()=>SO,_record:()=>lO,_refine:()=>Du,_regex:()=>$n,_safeDecode:()=>Nc,_safeDecodeAsync:()=>jc,_safeEncode:()=>Ec,_safeEncodeAsync:()=>Oc,_safeParse:()=>Si,_safeParseAsync:()=>xi,_set:()=>dO,_size:()=>Rr,_slugify:()=>Ci,_startsWith:()=>wn,_string:()=>ru,_stringFormat:()=>On,_stringbool:()=>Lu,_success:()=>bO,_superRefine:()=>Au,_symbol:()=>Su,_templateLiteral:()=>xO,_toLowerCase:()=>En,_toUpperCase:()=>Nn,_transform:()=>gO,_trim:()=>Tn,_tuple:()=>cO,_uint32:()=>hu,_uint64:()=>ku,_ulid:()=>hs,_undefined:()=>xu,_union:()=>iO,_unknown:()=>zu,_uppercase:()=>Sn,_url:()=>ji,_uuid:()=>cs,_uuidv4:()=>ls,_uuidv6:()=>us,_uuidv7:()=>ds,_void:()=>Tu,_xid:()=>ys,_xor:()=>oO,clone:()=>Ue,config:()=>Te,createStandardJSONSchemaMethod:()=>Di,createToJSONSchemaMethod:()=>rg,decode:()=>k$,decodeAsync:()=>x$,describe:()=>Ru,encode:()=>$$,encodeAsync:()=>S$,extractDefs:()=>qr,finalize:()=>Zr,flattenError:()=>yi,formatError:()=>vi,globalConfig:()=>Fo,globalRegistry:()=>Re,initializeContext:()=>Ur,isValidBase64:()=>Qm,isValidBase64URL:()=>G$,isValidJWT:()=>B$,locales:()=>Ni,meta:()=>Mu,parse:()=>bi,parseAsync:()=>ki,prettifyError:()=>wc,process:()=>ge,regexes:()=>dt,registry:()=>ss,safeDecode:()=>I$,safeDecodeAsync:()=>P$,safeEncode:()=>w$,safeEncodeAsync:()=>z$,safeParse:()=>_n,safeParseAsync:()=>wi,toDotPath:()=>b$,toJSONSchema:()=>Ai,treeifyError:()=>xc,util:()=>T,version:()=>Wm});var bc=Object.freeze({status:"aborted"});function y(e,t,r){function i(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,c);let l=s.prototype,u=Object.keys(l);for(let d=0;d<u.length;d++){let f=u[d];f in a||(a[f]=l[f].bind(a))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function s(a){var c;let l=r?.Parent?new o:this;i(l,a),(c=l._zod).deferred??(c.deferred=[]);for(let u of l._zod.deferred)u();return l}return Object.defineProperty(s,"init",{value:i}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var Vo=Symbol("zod_brand"),Rt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Nr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Fo={};function Te(e){return e&&Object.assign(Fo,e),Fo}var T={};ur(T,{BIGINT_FORMAT_RANGES:()=>nm,Class:()=>Wp,NUMBER_FORMAT_RANGES:()=>rm,aborted:()=>Dr,allowsEval:()=>Xp,assert:()=>bE,assertEqual:()=>hE,assertIs:()=>vE,assertNever:()=>_E,assertNotEqual:()=>yE,assignProp:()=>jr,base64ToUint8Array:()=>y$,base64urlToUint8Array:()=>NE,cached:()=>gi,captureStackTrace:()=>kc,cleanEnum:()=>EE,cleanRegex:()=>Bo,clone:()=>Ue,cloneDef:()=>kE,createTransparentProxy:()=>PE,defineLazy:()=>Y,esc:()=>$c,escapeRegex:()=>It,extend:()=>p$,finalizeIssue:()=>lt,floatSafeRemainder:()=>Yp,getElementAtPath:()=>SE,getEnumValues:()=>Go,getLengthableOrigin:()=>Wo,getParsedType:()=>zE,getSizableOrigin:()=>Ho,hexToUint8Array:()=>jE,isObject:()=>vn,isPlainObject:()=>Cr,issue:()=>hi,joinValues:()=>_,jsonStringifyReplacer:()=>mi,merge:()=>TE,mergeDefs:()=>gr,normalizeParams:()=>O,nullish:()=>Or,numKeys:()=>IE,objectClone:()=>$E,omit:()=>f$,optionalKeys:()=>tm,parsedType:()=>E,partial:()=>g$,pick:()=>d$,prefixIssues:()=>$t,primitiveTypes:()=>em,promiseAllObject:()=>xE,propertyKeyTypes:()=>Jo,randomString:()=>wE,required:()=>h$,safeExtend:()=>m$,shallowClone:()=>Sc,slugify:()=>Qp,stringifyPrimitive:()=>z,uint8ArrayToBase64:()=>v$,uint8ArrayToBase64url:()=>OE,uint8ArrayToHex:()=>CE,unwrapMessage:()=>Ko});function hE(e){return e}function yE(e){return e}function vE(e){}function _E(e){throw new Error("Unexpected value in exhaustive check")}function bE(e){}function Go(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function _(e,t="|"){return e.map(r=>z(r)).join(t)}function mi(e,t){return typeof t=="bigint"?t.toString():t}function gi(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Or(e){return e==null}function Bo(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Yp(e,t){let r=(e.toString().split(".")[1]||"").length,i=t.toString(),n=(i.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(i)){let c=i.match(/\d?e-(\d?)/);c?.[1]&&(n=Number.parseInt(c[1]))}let o=r>n?r:n,s=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return s%a/10**o}var u$=Symbol("evaluating");function Y(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==u$)return i===void 0&&(i=u$,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function $E(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function jr(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function gr(...e){let t={};for(let r of e){let i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function kE(e){return gr(e._zod.def)}function SE(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function xE(e){let t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=i[o];return n})}function wE(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function $c(e){return JSON.stringify(e)}function Qp(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var kc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function vn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Xp=gi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Cr(e){if(vn(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(vn(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Sc(e){return Cr(e)?{...e}:Array.isArray(e)?[...e]:e}function IE(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var zE=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}`)}},Jo=new Set(["string","number","symbol"]),em=new Set(["string","number","bigint","boolean","symbol","undefined"]);function It(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ue(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function O(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function PE(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,o){return t??(t=e()),Reflect.set(t,i,n,o)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function tm(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var rm={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]},nm={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function d$(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=gr(e._zod.def,{get shape(){let s={};for(let a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(s[a]=r.shape[a])}return jr(this,"shape",s),s},checks:[]});return Ue(e,o)}function f$(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=gr(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete s[a]}return jr(this,"shape",s),s},checks:[]});return Ue(e,o)}function p$(e,t){if(!Cr(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let o=e._zod.def.shape;for(let s in t)if(Object.getOwnPropertyDescriptor(o,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=gr(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return jr(this,"shape",o),o}});return Ue(e,n)}function m$(e,t){if(!Cr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=gr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return jr(this,"shape",i),i}});return Ue(e,r)}function TE(e,t){let r=gr(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:[]});return Ue(e,r)}function g$(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=gr(t._zod.def,{get shape(){let a=t._zod.def.shape,c={...a};if(r)for(let l in r){if(!(l in a))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(c[l]=e?new e({type:"optional",innerType:a[l]}):a[l])}else for(let l in a)c[l]=e?new e({type:"optional",innerType:a[l]}):a[l];return jr(this,"shape",c),c},checks:[]});return Ue(t,s)}function h$(e,t,r){let i=gr(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};if(r)for(let s in r){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(o[s]=new e({type:"nonoptional",innerType:n[s]}))}else for(let s in n)o[s]=new e({type:"nonoptional",innerType:n[s]});return jr(this,"shape",o),o}});return Ue(t,i)}function Dr(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function $t(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Ko(e){return typeof e=="string"?e:e?.message}function lt(e,t,r){let i={...e,path:e.path??[]};if(!e.message){let n=Ko(e.inst?._zod.def?.error?.(e))??Ko(t?.error?.(e))??Ko(r.customError?.(e))??Ko(r.localeError?.(e))??"Invalid input";i.message=n}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Ho(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Wo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function E(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function hi(...e){let[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function EE(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function y$(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function v$(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function NE(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return y$(t+r)}function OE(e){return v$(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function jE(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function CE(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Wp=class{constructor(...t){}};var _$=(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,mi,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Yo=y("$ZodError",_$),ut=y("$ZodError",_$,{Parent:Error});function yi(e,t=r=>r.message){let r={},i=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function vi(e,t=r=>r.message){let r={_errors:[]},i=n=>{for(let o of n.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>i({issues:s}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)r._errors.push(t(o));else{let s=r,a=0;for(;a<o.path.length;){let c=o.path[a];a===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(o))):s[c]=s[c]||{_errors:[]},s=s[c],a++}}};return i(e),r}function xc(e,t=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var s,a;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>i({issues:l},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else{let l=[...o,...c.path];if(l.length===0){r.errors.push(t(c));continue}let u=r,d=0;for(;d<l.length;){let f=l[d],p=d===l.length-1;typeof f=="string"?(u.properties??(u.properties={}),(s=u.properties)[f]??(s[f]={errors:[]}),u=u.properties[f]):(u.items??(u.items=[]),(a=u.items)[f]??(a[f]={errors:[]}),u=u.items[f]),p&&u.errors.push(t(c)),d++}}};return i(e),r}function b$(e){let t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(let i of r)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 wc(e){let t=[],r=[...e.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${b$(i.path)}`);return t.join(`
148
+ `)}var _i=e=>(t,r,i,n)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new Rt;if(s.issues.length){let a=new(n?.Err??e)(s.issues.map(c=>lt(c,o,Te())));throw kc(a,n?.callee),a}return s.value},bi=_i(ut),$i=e=>async(t,r,i,n)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let a=new(n?.Err??e)(s.issues.map(c=>lt(c,o,Te())));throw kc(a,n?.callee),a}return s.value},ki=$i(ut),Si=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new Rt;return o.issues.length?{success:!1,error:new(e??Yo)(o.issues.map(s=>lt(s,n,Te())))}:{success:!0,data:o.value}},_n=Si(ut),xi=e=>async(t,r,i)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(s=>lt(s,n,Te())))}:{success:!0,data:o.value}},wi=xi(ut),Ic=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _i(e)(t,r,n)},$$=Ic(ut),zc=e=>(t,r,i)=>_i(e)(t,r,i),k$=zc(ut),Pc=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return $i(e)(t,r,n)},S$=Pc(ut),Tc=e=>async(t,r,i)=>$i(e)(t,r,i),x$=Tc(ut),Ec=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Si(e)(t,r,n)},w$=Ec(ut),Nc=e=>(t,r,i)=>Si(e)(t,r,i),I$=Nc(ut),Oc=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return xi(e)(t,r,n)},z$=Oc(ut),jc=e=>async(t,r,i)=>xi(e)(t,r,i),P$=jc(ut);var dt={};ur(dt,{base64:()=>_m,base64url:()=>Cc,bigint:()=>wm,boolean:()=>zm,browserEmail:()=>FE,cidrv4:()=>ym,cidrv6:()=>vm,cuid:()=>im,cuid2:()=>om,date:()=>$m,datetime:()=>Sm,domain:()=>GE,duration:()=>um,e164:()=>bm,email:()=>fm,emoji:()=>pm,extendedDuration:()=>AE,guid:()=>dm,hex:()=>BE,hostname:()=>KE,html5Email:()=>UE,idnEmail:()=>ZE,integer:()=>Im,ipv4:()=>mm,ipv6:()=>gm,ksuid:()=>cm,lowercase:()=>Em,mac:()=>hm,md5_base64:()=>HE,md5_base64url:()=>WE,md5_hex:()=>JE,nanoid:()=>lm,null:()=>Pm,number:()=>Dc,rfc5322Email:()=>qE,sha1_base64:()=>QE,sha1_base64url:()=>XE,sha1_hex:()=>YE,sha256_base64:()=>tN,sha256_base64url:()=>rN,sha256_hex:()=>eN,sha384_base64:()=>iN,sha384_base64url:()=>oN,sha384_hex:()=>nN,sha512_base64:()=>aN,sha512_base64url:()=>cN,sha512_hex:()=>sN,string:()=>xm,time:()=>km,ulid:()=>sm,undefined:()=>Tm,unicodeEmail:()=>T$,uppercase:()=>Nm,uuid:()=>bn,uuid4:()=>RE,uuid6:()=>ME,uuid7:()=>LE,xid:()=>am});var im=/^[cC][^\s-]{8,}$/,om=/^[0-9a-z]+$/,sm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,am=/^[0-9a-vA-V]{20}$/,cm=/^[A-Za-z0-9]{27}$/,lm=/^[a-zA-Z0-9_-]{21}$/,um=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,AE=/^[-+]?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)?)??$/,dm=/^([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})$/,bn=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)$/,RE=bn(4),ME=bn(6),LE=bn(7),fm=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,UE=/^[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])?)*$/,qE=/^(([^<>()\[\]\\.,;:\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,}))$/,T$=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,ZE=T$,FE=/^[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])?)*$/,VE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function pm(){return new RegExp(VE,"u")}var mm=/^(?:(?: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])$/,gm=/^(([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}|:))$/,hm=e=>{let t=It(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},ym=/^((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])$/,vm=/^(([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])$/,_m=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Cc=/^[A-Za-z0-9_-]*$/,KE=/^(?=.{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])?)*\.?$/,GE=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,bm=/^\+[1-9]\d{6,14}$/,E$="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",$m=new RegExp(`^${E$}$`);function N$(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function km(e){return new RegExp(`^${N$(e)}$`)}function Sm(e){let t=N$({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${r.join("|")})`;return new RegExp(`^${E$}T(?:${i})$`)}var xm=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},wm=/^-?\d+n?$/,Im=/^-?\d+$/,Dc=/^-?\d+(?:\.\d+)?$/,zm=/^(?:true|false)$/i,Pm=/^null$/i;var Tm=/^undefined$/i;var Em=/^[^A-Z]*$/,Nm=/^[^a-z]*$/,BE=/^[0-9a-fA-F]*$/;function Qo(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Xo(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var JE=/^[0-9a-fA-F]{32}$/,HE=Qo(22,"=="),WE=Xo(22),YE=/^[0-9a-fA-F]{40}$/,QE=Qo(27,"="),XE=Xo(27),eN=/^[0-9a-fA-F]{64}$/,tN=Qo(43,"="),rN=Xo(43),nN=/^[0-9a-fA-F]{96}$/,iN=Qo(64,""),oN=Xo(64),sN=/^[0-9a-fA-F]{128}$/,aN=Qo(86,"=="),cN=Xo(86);var _e=y("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),j$={number:"number",bigint:"bigint",object:"date"},Ac=y("$ZodCheckLessThan",(e,t)=>{_e.init(e,t);let r=j$[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Rc=y("$ZodCheckGreaterThan",(e,t)=>{_e.init(e,t);let r=j$[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Om=y("$ZodCheckMultipleOf",(e,t)=>{_e.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Yp(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),jm=y("$ZodCheckNumberFormat",(e,t)=>{_e.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,o]=rm[t.format];e._zod.onattach.push(s=>{let a=s._zod.bag;a.format=t.format,a.minimum=n,a.maximum=o,r&&(a.pattern=Im)}),e._zod.check=s=>{let a=s.value;if(r){if(!Number.isInteger(a)){s.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,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}):s.issues.push({input:a,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}}a<n&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Cm=y("$ZodCheckBigIntFormat",(e,t)=>{_e.init(e,t);let[r,i]=nm[t.format];e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=i}),e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Dm=y("$ZodCheckMaxSize",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Or(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:Ho(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Am=y("$ZodCheckMinSize",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Or(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:Ho(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Rm=y("$ZodCheckSizeEquals",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Or(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{let n=i.value,o=n.size;if(o===t.size)return;let s=o>t.size;i.issues.push({origin:Ho(n),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Mm=y("$ZodCheckMaxLength",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Or(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;if(n.length<=t.maximum)return;let s=Wo(n);i.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Lm=y("$ZodCheckMinLength",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Or(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;if(n.length>=t.minimum)return;let s=Wo(n);i.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Um=y("$ZodCheckLengthEquals",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Or(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{let n=i.value,o=n.length;if(o===t.length)return;let s=Wo(n),a=o>t.length;i.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ii=y("$ZodCheckStringFormat",(e,t)=>{var r,i;_e.init(e,t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),qm=y("$ZodCheckRegex",(e,t)=>{Ii.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Zm=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Em),Ii.init(e,t)}),Fm=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Nm),Ii.init(e,t)}),Vm=y("$ZodCheckIncludes",(e,t)=>{_e.init(e,t);let r=It(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Km=y("$ZodCheckStartsWith",(e,t)=>{_e.init(e,t);let r=new RegExp(`^${It(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),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})}}),Gm=y("$ZodCheckEndsWith",(e,t)=>{_e.init(e,t);let r=new RegExp(`.*${It(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),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 O$(e,t,r){e.issues.length&&t.issues.push(...$t(r,e.issues))}var Bm=y("$ZodCheckProperty",(e,t)=>{_e.init(e,t),e._zod.check=r=>{let i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>O$(n,r,t.property));O$(i,r,t.property)}}),Jm=y("$ZodCheckMimeType",(e,t)=>{_e.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),Hm=y("$ZodCheckOverwrite",(e,t)=>{_e.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var es=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(`
149
149
  `).filter(s=>s),n=Math.min(...i.map(s=>s.length-s.trimStart().length)),o=i.map(s=>s.slice(n)).map(s=>" ".repeat(this.indent*2)+s);for(let s of o)this.content.push(s)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,n.join(`
150
- `))}};var Wm={major:4,minor:3,patch:6};var G=y("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Wm;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let n of i)for(let o of n._zod.onattach)o(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(s,a,c)=>{let l=Dr(s),u;for(let d of a){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(l)continue;let f=s.issues.length,p=d._zod.check(s);if(p instanceof Promise&&c?.async===!1)throw new Rt;if(u||p instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await p,s.issues.length!==f&&(l||(l=Dr(s,f)))});else{if(s.issues.length===f)continue;l||(l=Dr(s,f))}}return u?u.then(()=>s):s},o=(s,a,c)=>{if(Dr(s))return s.aborted=!0,s;let l=n(a,i,c);if(l instanceof Promise){if(c.async===!1)throw new Rt;return l.then(u=>e._zod.parse(u,c))}return e._zod.parse(l,c)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){let l=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return l instanceof Promise?l.then(u=>o(u,s,a)):o(l,s,a)}let c=e._zod.parse(s,a);if(c instanceof Promise){if(a.async===!1)throw new Rt;return c.then(l=>n(l,i,a))}return n(c,i,a)}}Y(e,"~standard",()=>({validate:n=>{try{let o=_n(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return wi(e,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Ar=y("$ZodString",(e,t)=>{G.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??xm(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ye=y("$ZodStringFormat",(e,t)=>{Ii.init(e,t),Ar.init(e,t)}),Fc=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=dm),ye.init(e,t)}),Vc=y("$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=bn(i))}else t.pattern??(t.pattern=bn());ye.init(e,t)}),Kc=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=fm),ye.init(e,t)}),Gc=y("$ZodURL",(e,t)=>{ye.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Bc=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=pm()),ye.init(e,t)}),Jc=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=lm),ye.init(e,t)}),Hc=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=im),ye.init(e,t)}),Wc=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=om),ye.init(e,t)}),Yc=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=sm),ye.init(e,t)}),Qc=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=am),ye.init(e,t)}),Xc=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=cm),ye.init(e,t)}),el=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Sm(t)),ye.init(e,t)}),tl=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=$m),ye.init(e,t)}),rl=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=km(t)),ye.init(e,t)}),nl=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=um),ye.init(e,t)}),il=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=mm),ye.init(e,t),e._zod.bag.format="ipv4"}),ol=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=gm),ye.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),sl=y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=hm(t.delimiter)),ye.init(e,t),e._zod.bag.format="mac"}),al=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ym),ye.init(e,t)}),cl=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=vm),ye.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[n,o]=i;if(!o)throw new Error;let s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Qm(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var ll=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=_m),ye.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Qm(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function K$(e){if(!Cc.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Qm(r)}var ul=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Cc),ye.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{K$(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),dl=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=bm),ye.init(e,t)});function G$(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var fl=y("$ZodJWT",(e,t)=>{ye.init(e,t),e._zod.check=r=>{G$(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),pl=y("$ZodCustomStringFormat",(e,t)=>{ye.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),es=y("$ZodNumber",(e,t)=>{G.init(e,t),e._zod.pattern=e._zod.bag.pattern??Dc,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),ml=y("$ZodNumberFormat",(e,t)=>{jm.init(e,t),es.init(e,t)}),zi=y("$ZodBoolean",(e,t)=>{G.init(e,t),e._zod.pattern=zm,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),ts=y("$ZodBigInt",(e,t)=>{G.init(e,t),e._zod.pattern=wm,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),gl=y("$ZodBigIntFormat",(e,t)=>{Cm.init(e,t),ts.init(e,t)}),hl=y("$ZodSymbol",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),yl=y("$ZodUndefined",(e,t)=>{G.init(e,t),e._zod.pattern=Tm,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),vl=y("$ZodNull",(e,t)=>{G.init(e,t),e._zod.pattern=Pm,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),_l=y("$ZodAny",(e,t)=>{G.init(e,t),e._zod.parse=r=>r}),bl=y("$ZodUnknown",(e,t)=>{G.init(e,t),e._zod.parse=r=>r}),$l=y("$ZodNever",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),kl=y("$ZodVoid",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Sl=y("$ZodDate",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function C$(e,t,r){e.issues.length&&t.issues.push(...$t(r,e.issues)),t.value[r]=e.value}var xl=y("$ZodArray",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let o=[];for(let s=0;s<n.length;s++){let a=n[s],c=t.element._zod.run({value:a,issues:[]},i);c instanceof Promise?o.push(c.then(l=>C$(l,r,s))):C$(c,r,s)}return o.length?Promise.all(o).then(()=>r):r}});function Zc(e,t,r,i,n){if(e.issues.length){if(n&&!(r in i))return;t.issues.push(...$t(r,e.issues))}e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function B$(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 r=tm(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function J$(e,t,r,i,n,o){let s=[],a=n.keySet,c=n.catchall._zod,l=c.def.type,u=c.optout==="optional";for(let d in t){if(a.has(d))continue;if(l==="never"){s.push(d);continue}let f=c.run({value:t[d],issues:[]},i);f instanceof Promise?e.push(f.then(p=>Zc(p,r,d,t,u))):Zc(f,r,d,t,u)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var Xm=y("$ZodObject",(e,t)=>{if(G.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let a=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...a};return Object.defineProperty(t,"shape",{value:c}),c}})}let i=gi(()=>B$(t));Y(e._zod,"propValues",()=>{let a=t.shape,c={};for(let l in a){let u=a[l]._zod;if(u.values){c[l]??(c[l]=new Set);for(let d of u.values)c[l].add(d)}}return c});let n=vn,o=t.catchall,s;e._zod.parse=(a,c)=>{s??(s=i.value);let l=a.value;if(!n(l))return a.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),a;a.value={};let u=[],d=s.shape;for(let f of s.keys){let p=d[f],g=p._zod.optout==="optional",m=p._zod.run({value:l[f],issues:[]},c);m instanceof Promise?u.push(m.then(h=>Zc(h,a,f,l,g))):Zc(m,a,f,l,g)}return o?J$(u,l,a,c,i.value,e):u.length?Promise.all(u).then(()=>a):a}}),eg=y("$ZodObjectJIT",(e,t)=>{Xm.init(e,t);let r=e._zod.parse,i=gi(()=>B$(t)),n=f=>{let p=new Xo(["shape","payload","ctx"]),g=i.value,m=x=>{let N=$c(x);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};p.write("const input = payload.value;");let h=Object.create(null),$=0;for(let x of g.keys)h[x]=`key_${$++}`;p.write("const newResult = {};");for(let x of g.keys){let N=h[x],w=$c(x),ee=f[x]?._zod?.optout==="optional";p.write(`const ${N} = ${m(x)};`),ee?p.write(`
150
+ `))}};var Wm={major:4,minor:3,patch:6};var G=y("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Wm;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let n of i)for(let o of n._zod.onattach)o(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(s,a,c)=>{let l=Dr(s),u;for(let d of a){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(l)continue;let f=s.issues.length,p=d._zod.check(s);if(p instanceof Promise&&c?.async===!1)throw new Rt;if(u||p instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await p,s.issues.length!==f&&(l||(l=Dr(s,f)))});else{if(s.issues.length===f)continue;l||(l=Dr(s,f))}}return u?u.then(()=>s):s},o=(s,a,c)=>{if(Dr(s))return s.aborted=!0,s;let l=n(a,i,c);if(l instanceof Promise){if(c.async===!1)throw new Rt;return l.then(u=>e._zod.parse(u,c))}return e._zod.parse(l,c)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){let l=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return l instanceof Promise?l.then(u=>o(u,s,a)):o(l,s,a)}let c=e._zod.parse(s,a);if(c instanceof Promise){if(a.async===!1)throw new Rt;return c.then(l=>n(l,i,a))}return n(c,i,a)}}Y(e,"~standard",()=>({validate:n=>{try{let o=_n(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return wi(e,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Ar=y("$ZodString",(e,t)=>{G.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??xm(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ye=y("$ZodStringFormat",(e,t)=>{Ii.init(e,t),Ar.init(e,t)}),Fc=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=dm),ye.init(e,t)}),Vc=y("$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=bn(i))}else t.pattern??(t.pattern=bn());ye.init(e,t)}),Kc=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=fm),ye.init(e,t)}),Gc=y("$ZodURL",(e,t)=>{ye.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Bc=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=pm()),ye.init(e,t)}),Jc=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=lm),ye.init(e,t)}),Hc=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=im),ye.init(e,t)}),Wc=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=om),ye.init(e,t)}),Yc=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=sm),ye.init(e,t)}),Qc=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=am),ye.init(e,t)}),Xc=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=cm),ye.init(e,t)}),el=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Sm(t)),ye.init(e,t)}),tl=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=$m),ye.init(e,t)}),rl=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=km(t)),ye.init(e,t)}),nl=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=um),ye.init(e,t)}),il=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=mm),ye.init(e,t),e._zod.bag.format="ipv4"}),ol=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=gm),ye.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),sl=y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=hm(t.delimiter)),ye.init(e,t),e._zod.bag.format="mac"}),al=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ym),ye.init(e,t)}),cl=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=vm),ye.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[n,o]=i;if(!o)throw new Error;let s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Qm(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var ll=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=_m),ye.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Qm(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function G$(e){if(!Cc.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Qm(r)}var ul=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Cc),ye.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{G$(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),dl=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=bm),ye.init(e,t)});function B$(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var fl=y("$ZodJWT",(e,t)=>{ye.init(e,t),e._zod.check=r=>{B$(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),pl=y("$ZodCustomStringFormat",(e,t)=>{ye.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),ts=y("$ZodNumber",(e,t)=>{G.init(e,t),e._zod.pattern=e._zod.bag.pattern??Dc,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),ml=y("$ZodNumberFormat",(e,t)=>{jm.init(e,t),ts.init(e,t)}),zi=y("$ZodBoolean",(e,t)=>{G.init(e,t),e._zod.pattern=zm,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),rs=y("$ZodBigInt",(e,t)=>{G.init(e,t),e._zod.pattern=wm,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),gl=y("$ZodBigIntFormat",(e,t)=>{Cm.init(e,t),rs.init(e,t)}),hl=y("$ZodSymbol",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),yl=y("$ZodUndefined",(e,t)=>{G.init(e,t),e._zod.pattern=Tm,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),vl=y("$ZodNull",(e,t)=>{G.init(e,t),e._zod.pattern=Pm,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),_l=y("$ZodAny",(e,t)=>{G.init(e,t),e._zod.parse=r=>r}),bl=y("$ZodUnknown",(e,t)=>{G.init(e,t),e._zod.parse=r=>r}),$l=y("$ZodNever",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),kl=y("$ZodVoid",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Sl=y("$ZodDate",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function D$(e,t,r){e.issues.length&&t.issues.push(...$t(r,e.issues)),t.value[r]=e.value}var xl=y("$ZodArray",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let o=[];for(let s=0;s<n.length;s++){let a=n[s],c=t.element._zod.run({value:a,issues:[]},i);c instanceof Promise?o.push(c.then(l=>D$(l,r,s))):D$(c,r,s)}return o.length?Promise.all(o).then(()=>r):r}});function Zc(e,t,r,i,n){if(e.issues.length){if(n&&!(r in i))return;t.issues.push(...$t(r,e.issues))}e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function J$(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 r=tm(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function H$(e,t,r,i,n,o){let s=[],a=n.keySet,c=n.catchall._zod,l=c.def.type,u=c.optout==="optional";for(let d in t){if(a.has(d))continue;if(l==="never"){s.push(d);continue}let f=c.run({value:t[d],issues:[]},i);f instanceof Promise?e.push(f.then(p=>Zc(p,r,d,t,u))):Zc(f,r,d,t,u)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var Xm=y("$ZodObject",(e,t)=>{if(G.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let a=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...a};return Object.defineProperty(t,"shape",{value:c}),c}})}let i=gi(()=>J$(t));Y(e._zod,"propValues",()=>{let a=t.shape,c={};for(let l in a){let u=a[l]._zod;if(u.values){c[l]??(c[l]=new Set);for(let d of u.values)c[l].add(d)}}return c});let n=vn,o=t.catchall,s;e._zod.parse=(a,c)=>{s??(s=i.value);let l=a.value;if(!n(l))return a.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),a;a.value={};let u=[],d=s.shape;for(let f of s.keys){let p=d[f],g=p._zod.optout==="optional",m=p._zod.run({value:l[f],issues:[]},c);m instanceof Promise?u.push(m.then(h=>Zc(h,a,f,l,g))):Zc(m,a,f,l,g)}return o?H$(u,l,a,c,i.value,e):u.length?Promise.all(u).then(()=>a):a}}),eg=y("$ZodObjectJIT",(e,t)=>{Xm.init(e,t);let r=e._zod.parse,i=gi(()=>J$(t)),n=f=>{let p=new es(["shape","payload","ctx"]),g=i.value,m=x=>{let N=$c(x);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};p.write("const input = payload.value;");let h=Object.create(null),$=0;for(let x of g.keys)h[x]=`key_${$++}`;p.write("const newResult = {};");for(let x of g.keys){let N=h[x],w=$c(x),ee=f[x]?._zod?.optout==="optional";p.write(`const ${N} = ${m(x)};`),ee?p.write(`
151
151
  if (${N}.issues.length) {
152
152
  if (${w} in input) {
153
153
  payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
@@ -181,46 +181,45 @@ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.pus
181
181
  newResult[${w}] = ${N}.value;
182
182
  }
183
183
 
184
- `)}p.write("payload.value = newResult;"),p.write("return payload;");let k=p.compile();return(x,N)=>k(f,x,N)},o,s=vn,a=!Zo.jitless,l=a&&Xp.value,u=t.catchall,d;e._zod.parse=(f,p)=>{d??(d=i.value);let g=f.value;return s(g)?a&&l&&p?.async===!1&&p.jitless!==!0?(o||(o=n(t.shape)),f=o(f,p),u?J$([],g,f,p,d,e):f):r(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function D$(e,t,r,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let n=e.filter(o=>!Dr(o));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(s=>lt(s,i,Te())))}),t)}var Pi=y("$ZodUnion",(e,t)=>{G.init(e,t),Y(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Y(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Y(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Y(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>Go(o.source)).join("|")})$`)}});let r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return i(n,o);let s=!1,a=[];for(let c of t.options){let l=c._zod.run({value:n.value,issues:[]},o);if(l instanceof Promise)a.push(l),s=!0;else{if(l.issues.length===0)return l;a.push(l)}}return s?Promise.all(a).then(c=>D$(c,n,e,o)):D$(a,n,e,o)}});function A$(e,t,r,i){let n=e.filter(o=>o.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(s=>lt(s,i,Te())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var wl=y("$ZodXor",(e,t)=>{Pi.init(e,t),t.inclusive=!1;let r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return i(n,o);let s=!1,a=[];for(let c of t.options){let l=c._zod.run({value:n.value,issues:[]},o);l instanceof Promise?(a.push(l),s=!0):a.push(l)}return s?Promise.all(a).then(c=>A$(c,n,e,o)):A$(a,n,e,o)}}),Il=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Pi.init(e,t);let r=e._zod.parse;Y(e._zod,"propValues",()=>{let n={};for(let o of t.options){let s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[a,c]of Object.entries(s)){n[a]||(n[a]=new Set);for(let l of c)n[a].add(l)}}return n});let i=gi(()=>{let n=t.options,o=new Map;for(let s of n){let a=s._zod.propValues?.[t.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let c of a){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,s)}}return o});e._zod.parse=(n,o)=>{let s=n.value;if(!vn(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),n;let a=i.value.get(s?.[t.discriminator]);return a?a._zod.run(n,o):t.unionFallback?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),n)}}),zl=y("$ZodIntersection",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},i),s=t.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([c,l])=>R$(r,c,l)):R$(r,o,s)}});function Ym(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 r=Object.keys(t),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(let o of i){let s=Ym(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n[o]=s.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=e[i],o=t[i],s=Ym(n,o);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function R$(e,t,r){let i=new Map,n;for(let a of t.issues)if(a.code==="unrecognized_keys"){n??(n=a);for(let c of a.keys)i.has(c)||i.set(c,{}),i.get(c).l=!0}else e.issues.push(a);for(let a of r.issues)if(a.code==="unrecognized_keys")for(let c of a.keys)i.has(c)||i.set(c,{}),i.get(c).r=!0;else e.issues.push(a);let o=[...i].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(o.length&&n&&e.issues.push({...n,keys:o}),Dr(e))return e;let s=Ym(t.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var rs=y("$ZodTuple",(e,t)=>{G.init(e,t);let r=t.items;e._zod.parse=(i,n)=>{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 s=[],a=[...r].reverse().findIndex(u=>u._zod.optin!=="optional"),c=a===-1?0:r.length-a;if(!t.rest){let u=o.length>r.length,d=o.length<c-1;if(u||d)return i.issues.push({...u?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),i}let l=-1;for(let u of r){if(l++,l>=o.length&&l>=c)continue;let d=u._zod.run({value:o[l],issues:[]},n);d instanceof Promise?s.push(d.then(f=>Mc(f,i,l))):Mc(d,i,l)}if(t.rest){let u=o.slice(r.length);for(let d of u){l++;let f=t.rest._zod.run({value:d,issues:[]},n);f instanceof Promise?s.push(f.then(p=>Mc(p,i,l))):Mc(f,i,l)}}return s.length?Promise.all(s).then(()=>i):i}});function Mc(e,t,r){e.issues.length&&t.issues.push(...$t(r,e.issues)),t.value[r]=e.value}var Pl=y("$ZodRecord",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Cr(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s){r.value={};let a=new Set;for(let l of s)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){a.add(typeof l=="number"?l.toString():l);let u=t.valueType._zod.run({value:n[l],issues:[]},i);u instanceof Promise?o.push(u.then(d=>{d.issues.length&&r.issues.push(...$t(l,d.issues)),r.value[l]=d.value})):(u.issues.length&&r.issues.push(...$t(l,u.issues)),r.value[l]=u.value)}let c;for(let l in n)a.has(l)||(c=c??[],c.push(l));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let a of Reflect.ownKeys(n)){if(a==="__proto__")continue;let c=t.keyType._zod.run({value:a,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&Dc.test(a)&&c.issues.length){let d=t.keyType._zod.run({value:Number(a),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"?r.value[a]=n[a]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>lt(d,i,Te())),input:a,path:[a],inst:e});continue}let u=t.valueType._zod.run({value:n[a],issues:[]},i);u instanceof Promise?o.push(u.then(d=>{d.issues.length&&r.issues.push(...$t(a,d.issues)),r.value[c.value]=d.value})):(u.issues.length&&r.issues.push(...$t(a,u.issues)),r.value[c.value]=u.value)}}return o.length?Promise.all(o).then(()=>r):r}}),Tl=y("$ZodMap",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let o=[];r.value=new Map;for(let[s,a]of n){let c=t.keyType._zod.run({value:s,issues:[]},i),l=t.valueType._zod.run({value:a,issues:[]},i);c instanceof Promise||l instanceof Promise?o.push(Promise.all([c,l]).then(([u,d])=>{M$(u,d,r,s,n,e,i)})):M$(c,l,r,s,n,e,i)}return o.length?Promise.all(o).then(()=>r):r}});function M$(e,t,r,i,n,o,s){e.issues.length&&(Bo.has(typeof i)?r.issues.push(...$t(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(a=>lt(a,s,Te()))})),t.issues.length&&(Bo.has(typeof i)?r.issues.push(...$t(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(a=>lt(a,s,Te()))})),r.value.set(e.value,t.value)}var El=y("$ZodSet",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let s of n){let a=t.valueType._zod.run({value:s,issues:[]},i);a instanceof Promise?o.push(a.then(c=>L$(c,r))):L$(a,r)}return o.length?Promise.all(o).then(()=>r):r}});function L$(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Nl=y("$ZodEnum",(e,t)=>{G.init(e,t);let r=Ko(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>Bo.has(typeof n)).map(n=>typeof n=="string"?It(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{let s=n.value;return i.has(s)||n.issues.push({code:"invalid_value",values:r,input:s,inst:e}),n}}),Ol=y("$ZodLiteral",(e,t)=>{if(G.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?It(i):i?It(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),jl=y("$ZodFile",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),Cl=y("$ZodTransform",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Nr(e.constructor.name);let n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new Rt;return r.value=n,r}});function U$(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var ns=y("$ZodOptional",(e,t)=>{G.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Y(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Go(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>U$(o,r.value)):U$(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),Dl=y("$ZodExactOptional",(e,t)=>{ns.init(e,t),Y(e._zod,"values",()=>t.innerType._zod.values),Y(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),Al=y("$ZodNullable",(e,t)=>{G.init(e,t),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Go(r.source)}|null)$`):void 0}),Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),Rl=y("$ZodDefault",(e,t)=>{G.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>q$(o,t)):q$(n,t)}});function q$(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Ml=y("$ZodPrefault",(e,t)=>{G.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),Ll=y("$ZodNonOptional",(e,t)=>{G.init(e,t),Y(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Z$(o,e)):Z$(n,e)}});function Z$(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 Ul=y("$ZodSuccess",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Nr("ZodSuccess");let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),ql=y("$ZodCatch",(e,t)=>{G.init(e,t),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(s=>lt(s,i,Te()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>lt(o,i,Te()))},input:r.value}),r.issues=[]),r)}}),Zl=y("$ZodNaN",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Fl=y("$ZodPipe",(e,t)=>{G.init(e,t),Y(e._zod,"values",()=>t.in._zod.values),Y(e._zod,"optin",()=>t.in._zod.optin),Y(e._zod,"optout",()=>t.out._zod.optout),Y(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(s=>Lc(s,t.in,i)):Lc(o,t.in,i)}let n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>Lc(o,t.out,i)):Lc(n,t.out,i)}});function Lc(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Ti=y("$ZodCodec",(e,t)=>{G.init(e,t),Y(e._zod,"values",()=>t.in._zod.values),Y(e._zod,"optin",()=>t.in._zod.optin),Y(e._zod,"optout",()=>t.out._zod.optout),Y(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(r,i);return o instanceof Promise?o.then(s=>Uc(s,t,i)):Uc(o,t,i)}else{let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(s=>Uc(s,t,i)):Uc(o,t,i)}}});function Uc(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(o=>qc(e,o,t.out,r)):qc(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>qc(e,o,t.in,r)):qc(e,n,t.in,r)}}function qc(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}var Vl=y("$ZodReadonly",(e,t)=>{G.init(e,t),Y(e._zod,"propValues",()=>t.innerType._zod.propValues),Y(e._zod,"values",()=>t.innerType._zod.values),Y(e._zod,"optin",()=>t.innerType?._zod?.optin),Y(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(F$):F$(n)}});function F$(e){return e.value=Object.freeze(e.value),e}var Kl=y("$ZodTemplateLiteral",(e,t)=>{G.init(e,t);let r=[];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 n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,s))}else if(i===null||em.has(typeof i))r.push(It(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>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)}),Gl=y("$ZodFunction",(e,t)=>(G.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){let n=e._def.input?bi(e._def.input,i):i,o=Reflect.apply(r,this,n);return e._def.output?bi(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=e._def.input?await ki(e._def.input,i):i,o=await Reflect.apply(r,this,n);return e._def.output?await ki(e._def.output,o):o}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new rs({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),Bl=y("$ZodPromise",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),Jl=y("$ZodLazy",(e,t)=>{G.init(e,t),Y(e._zod,"innerType",()=>t.getter()),Y(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Y(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Y(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Y(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),Hl=y("$ZodCustom",(e,t)=>{_e.init(e,t),G.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{let i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(o=>V$(o,r,i,e));V$(n,r,i,e)}});function V$(e,t,r,i){if(!e){let n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(hi(n))}}var Ni={};ur(Ni,{ar:()=>H$,az:()=>W$,be:()=>Q$,bg:()=>X$,ca:()=>ek,cs:()=>tk,da:()=>rk,de:()=>nk,en:()=>Wl,eo:()=>ik,es:()=>ok,fa:()=>sk,fi:()=>ak,fr:()=>ck,frCA:()=>lk,he:()=>uk,hu:()=>dk,hy:()=>pk,id:()=>mk,is:()=>gk,it:()=>hk,ja:()=>yk,ka:()=>vk,kh:()=>_k,km:()=>Yl,ko:()=>bk,lt:()=>kk,mk:()=>Sk,ms:()=>xk,nl:()=>wk,no:()=>Ik,ota:()=>zk,pl:()=>Tk,ps:()=>Pk,pt:()=>Ek,ru:()=>Ok,sl:()=>jk,sv:()=>Ck,ta:()=>Dk,th:()=>Ak,tr:()=>Rk,ua:()=>Mk,uk:()=>Ql,ur:()=>Lk,uz:()=>Uk,vi:()=>qk,yo:()=>Vk,zhCN:()=>Zk,zhTW:()=>Fk});var lN=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${z(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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 "${n.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}`:`${r[o.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${_(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function H$(){return{localeError:lN()}}var uN=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${a}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${a}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${z(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function W$(){return{localeError:uN()}}function Y$(e,t,r,i){let n=Math.abs(e),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?t:o>=2&&o<=4?r:i}var dN=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${z(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);if(s){let a=Number(n.maximum),c=Y$(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${o}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);if(s){let a=Number(n.minimum),c=Y$(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${o}${n.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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${_(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Q$(){return{localeError:dN()}}var fN=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${z(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function X$(){return{localeError:fN()}}var pN=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${a}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${a}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${z(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${_(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",s=t(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",s=t(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function ek(){return{localeError:pN()}}var mN=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${a}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${a}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${z(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${_(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function tk(){return{localeError:mN()}}var gN=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${a}`:`Ugyldigt input: forventede ${o}, fik ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${z(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin),a=i[n.origin]??n.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${o} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin),a=i[n.origin]??n.origin;return s?`For lille: forventede ${a} ${s.verb} ${o} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${_(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function rk(){return{localeError:gN()}}var hN=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${a}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${a}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${z(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;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: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${_(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function nk(){return{localeError:hN()}}var yN=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return`Invalid input: expected ${o}, received ${a}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.values[0])}`:`Invalid option: expected one of ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Wl(){return{localeError:yN()}}var vN=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${a}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${a}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${z(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function ik(){return{localeError:vN()}}var _N=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${a}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${a}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${z(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin),a=i[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${o}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin),a=i[n.origin]??n.origin;return s?`Demasiado peque\xF1o: se esperaba que ${a} tuviera ${o}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${a} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function ok(){return{localeError:_N()}}var bN=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \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 ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${z(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${_(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;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`:`${r[o.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${_(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function sk(){return{localeError:bN()}}var $N=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${a}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${z(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${_(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function ak(){return{localeError:$N()}}var kN=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${a} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${a} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${z(n.values[0])} attendu`:`Option invalide : une valeur parmi ${_(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Trop grand : ${n.origin??"valeur"} doit ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Trop petit : ${n.origin} doit ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${_(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function ck(){return{localeError:kN()}}var SN=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${a}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${a}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${z(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",s=t(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",s=t(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${_(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function lk(){return{localeError:SN()}}var xN=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=l=>l?e[l]:void 0,i=l=>{let u=r(l);return u?u.label:l??e.unknown.label},n=l=>`\u05D4${i(l)}`,o=l=>(r(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=l=>l?t[l]??null:null,a={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),f=E(l.input),p=c[f]??e[f]?.label??f;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 ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}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 ${z(l.values[0])}`;let u=l.values.map(p=>z(p));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=s(l.origin),d=n(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 g=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 ${g}`}if(l.origin==="array"||l.origin==="set"){let g=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",m=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} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${m}`.trim()}let f=l.inclusive?"<=":"<",p=o(l.origin??"value");return u?.unit?`${u.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${l.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${l.maximum.toString()}`}case"too_small":{let u=s(l.origin),d=n(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 g=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 ${g}`}if(l.origin==="array"||l.origin==="set"){let g=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} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`}let m=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} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${m}`.trim()}let f=l.inclusive?">=":">",p=o(l.origin??"value");return u?.unit?`${u.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${l.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${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=a[u.format],f=d?.label??u.format,g=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${g}`}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"}: ${_(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${n(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function uk(){return{localeError:xN()}}var wN=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${a}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${a}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${z(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function dk(){return{localeError:wN()}}function fk(e,t,r){return Math.abs(e)===1?t:r}function Ei(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var IN=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${z(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);if(s){let a=Number(n.maximum),c=fk(a,s.unit.one,s.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 ${Ei(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.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 ${Ei(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);if(s){let a=Number(n.minimum),c=fk(a,s.unit.one,s.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 ${Ei(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.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 ${Ei(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${_(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Ei(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Ei(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function pk(){return{localeError:IN()}}var zN=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${o}, diterima ${a}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${z(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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}`:`${r[o.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function mk(){return{localeError:zN()}}var PN=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${z(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${_(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function gk(){return{localeError:PN()}}var TN=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${a}`:`Input non valido: atteso ${o}, ricevuto ${a}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${z(n.values[0])}`:`Opzione non valida: atteso uno tra ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${_(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function hk(){return{localeError:TN()}}var EN=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${z(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${_(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=t(n.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=t(n.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;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${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${_(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function yk(){return{localeError:EN()}}var NN=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${z(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${_(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${_(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function vk(){return{localeError:NN()}}var ON=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${z(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${_(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Yl(){return{localeError:ON()}}function _k(){return Yl()}var jN=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${z(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${_(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(n.origin),c=a?.unit??"\uC694\uC18C";return a?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${o}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${s}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(n.origin),c=a?.unit??"\uC694\uC18C";return a?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${o}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${s}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${_(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function bk(){return{localeError:jN()}}var is=e=>e.charAt(0).toUpperCase()+e.slice(1);function $k(e){let t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}var CN=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,o,s,a){let c=e[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[a][s?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${a}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${a}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${z(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${_(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,s=t(n.origin,$k(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${is(o??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.maximum.toString()} ${s.unit??"element\u0173"}`;let a=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${is(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${n.maximum.toString()} ${s?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,s=t(n.origin,$k(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${is(o??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.minimum.toString()} ${s.unit??"element\u0173"}`;let a=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${is(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${n.minimum.toString()} ${s?.unit}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${_(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[n.origin]??n.origin;return`${is(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function kk(){return{localeError:CN()}}var DN=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${_(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Sk(){return{localeError:DN()}}var AN=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${a}`:`Input tidak sah: dijangka ${o}, diterima ${a}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${z(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${_(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function xk(){return{localeError:AN()}}var RN=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${o}, ontving ${a}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${z(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin),a=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin),a=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;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: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function wk(){return{localeError:RN()}}var MN=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${a}`:`Ugyldig input: forventet ${o}, fikk ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${z(n.values[0])}`:`Ugyldig valg: forventet en av ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${_(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function Ik(){return{localeError:MN()}}var LN=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${a}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${a}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${z(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function zk(){return{localeError:LN()}}var UN=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \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 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${z(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${_(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;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`:`${r[o.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${_(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Pk(){return{localeError:UN()}}var qN=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${a}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${a}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${z(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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) ${r[o.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Tk(){return{localeError:qN()}}var ZN=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${a}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${a}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${z(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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}`:`${r[o.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function Ek(){return{localeError:ZN()}}function Nk(e,t,r,i){let n=Math.abs(e),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?t:o>=2&&o<=4?r:i}var FN=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${z(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);if(s){let a=Number(n.maximum),c=Nk(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);if(s){let a=Number(n.minimum),c=Nk(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Ok(){return{localeError:FN()}}var VN=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${a}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${a}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${z(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${_(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function jk(){return{localeError:VN()}}var KN=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${a}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${a}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${z(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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) ${r[o.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${_(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Ck(){return{localeError:KN()}}var GN=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${z(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${_(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Dk(){return{localeError:GN()}}var BN=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${z(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=t(n.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=t(n.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${_(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Ak(){return{localeError:BN()}}var JN=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${a}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${a}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${z(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Rk(){return{localeError:JN()}}var HN=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${z(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Ql(){return{localeError:HN()}}function Mk(){return Ql()}var WN=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \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 ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${z(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${_(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${_(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Lk(){return{localeError:WN()}}var YN=()=>{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"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${a}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${a}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${z(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Uk(){return{localeError:YN()}}var QN=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${z(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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}`:`${r[o.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${_(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function qk(){return{localeError:QN()}}var XN=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${z(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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${r[o.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Zk(){return{localeError:XN()}}var eO=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${a}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${a}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${z(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${_(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Fk(){return{localeError:eO()}}var tO=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${a}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${a}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${z(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${s.verb} ${o}${n.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${s.verb} ${o}${n.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;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: ${r[o.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${_(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Vk(){return{localeError:tO()}}var Kk,eu=Symbol("ZodOutput"),tu=Symbol("ZodInput"),Xl=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let i=r[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 r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function os(){return new Xl}(Kk=globalThis).__zod_globalRegistry??(Kk.__zod_globalRegistry=os());var Re=globalThis.__zod_globalRegistry;function ru(e,t){return new e({type:"string",...O(t)})}function nu(e,t){return new e({type:"string",coerce:!0,...O(t)})}function ss(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...O(t)})}function Oi(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...O(t)})}function as(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...O(t)})}function cs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...O(t)})}function ls(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...O(t)})}function us(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...O(t)})}function ji(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...O(t)})}function ds(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...O(t)})}function fs(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...O(t)})}function ps(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...O(t)})}function ms(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...O(t)})}function gs(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...O(t)})}function hs(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...O(t)})}function ys(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...O(t)})}function vs(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...O(t)})}function _s(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...O(t)})}function iu(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...O(t)})}function bs(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...O(t)})}function $s(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...O(t)})}function ks(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...O(t)})}function Ss(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...O(t)})}function xs(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...O(t)})}function ws(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...O(t)})}var ou={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function su(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...O(t)})}function au(e,t){return new e({type:"string",format:"date",check:"string_format",...O(t)})}function cu(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...O(t)})}function lu(e,t){return new e({type:"string",format:"duration",check:"string_format",...O(t)})}function uu(e,t){return new e({type:"number",checks:[],...O(t)})}function du(e,t){return new e({type:"number",coerce:!0,checks:[],...O(t)})}function fu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...O(t)})}function pu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...O(t)})}function mu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...O(t)})}function gu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...O(t)})}function hu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...O(t)})}function yu(e,t){return new e({type:"boolean",...O(t)})}function vu(e,t){return new e({type:"boolean",coerce:!0,...O(t)})}function _u(e,t){return new e({type:"bigint",...O(t)})}function bu(e,t){return new e({type:"bigint",coerce:!0,...O(t)})}function $u(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...O(t)})}function ku(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...O(t)})}function Su(e,t){return new e({type:"symbol",...O(t)})}function xu(e,t){return new e({type:"undefined",...O(t)})}function wu(e,t){return new e({type:"null",...O(t)})}function Iu(e){return new e({type:"any"})}function zu(e){return new e({type:"unknown"})}function Pu(e,t){return new e({type:"never",...O(t)})}function Tu(e,t){return new e({type:"void",...O(t)})}function Eu(e,t){return new e({type:"date",...O(t)})}function Nu(e,t){return new e({type:"date",coerce:!0,...O(t)})}function Ou(e,t){return new e({type:"nan",...O(t)})}function Mt(e,t){return new Ac({check:"less_than",...O(t),value:e,inclusive:!1})}function it(e,t){return new Ac({check:"less_than",...O(t),value:e,inclusive:!0})}function Lt(e,t){return new Rc({check:"greater_than",...O(t),value:e,inclusive:!1})}function qe(e,t){return new Rc({check:"greater_than",...O(t),value:e,inclusive:!0})}function Is(e){return Lt(0,e)}function zs(e){return Mt(0,e)}function Ps(e){return it(0,e)}function Ts(e){return qe(0,e)}function hr(e,t){return new Om({check:"multiple_of",...O(t),value:e})}function yr(e,t){return new Dm({check:"max_size",...O(t),maximum:e})}function Ut(e,t){return new Am({check:"min_size",...O(t),minimum:e})}function Rr(e,t){return new Rm({check:"size_equals",...O(t),size:e})}function Mr(e,t){return new Mm({check:"max_length",...O(t),maximum:e})}function Yt(e,t){return new Lm({check:"min_length",...O(t),minimum:e})}function Lr(e,t){return new Um({check:"length_equals",...O(t),length:e})}function $n(e,t){return new qm({check:"string_format",format:"regex",...O(t),pattern:e})}function kn(e){return new Zm({check:"string_format",format:"lowercase",...O(e)})}function Sn(e){return new Fm({check:"string_format",format:"uppercase",...O(e)})}function xn(e,t){return new Vm({check:"string_format",format:"includes",...O(t),includes:e})}function wn(e,t){return new Km({check:"string_format",format:"starts_with",...O(t),prefix:e})}function In(e,t){return new Gm({check:"string_format",format:"ends_with",...O(t),suffix:e})}function Es(e,t,r){return new Bm({check:"property",property:e,schema:t,...O(r)})}function zn(e,t){return new Jm({check:"mime_type",mime:e,...O(t)})}function zt(e){return new Hm({check:"overwrite",tx:e})}function Pn(e){return zt(t=>t.normalize(e))}function Tn(){return zt(e=>e.trim())}function En(){return zt(e=>e.toLowerCase())}function Nn(){return zt(e=>e.toUpperCase())}function Ci(){return zt(e=>Qp(e))}function tg(e,t,r){return new e({type:"array",element:t,...O(r)})}function nO(e,t,r){return new e({type:"union",options:t,...O(r)})}function iO(e,t,r){return new e({type:"union",options:t,inclusive:!1,...O(r)})}function oO(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...O(i)})}function sO(e,t,r){return new e({type:"intersection",left:t,right:r})}function aO(e,t,r,i){let n=r instanceof G,o=n?i:r,s=n?r:null;return new e({type:"tuple",items:t,rest:s,...O(o)})}function cO(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...O(i)})}function lO(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...O(i)})}function uO(e,t,r){return new e({type:"set",valueType:t,...O(r)})}function dO(e,t,r){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...O(r)})}function fO(e,t,r){return new e({type:"enum",entries:t,...O(r)})}function pO(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...O(r)})}function ju(e,t){return new e({type:"file",...O(t)})}function mO(e,t){return new e({type:"transform",transform:t})}function gO(e,t){return new e({type:"optional",innerType:t})}function hO(e,t){return new e({type:"nullable",innerType:t})}function yO(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Sc(r)}})}function vO(e,t,r){return new e({type:"nonoptional",innerType:t,...O(r)})}function _O(e,t){return new e({type:"success",innerType:t})}function bO(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function $O(e,t,r){return new e({type:"pipe",in:t,out:r})}function kO(e,t){return new e({type:"readonly",innerType:t})}function SO(e,t,r){return new e({type:"template_literal",parts:t,...O(r)})}function xO(e,t){return new e({type:"lazy",getter:t})}function wO(e,t){return new e({type:"promise",innerType:t})}function Cu(e,t,r){let i=O(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Du(e,t,r){return new e({type:"custom",check:"custom",fn:t,...O(r)})}function Au(e){let t=Gk(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(hi(i,r.value,t._zod.def));else{let n=i;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(hi(n))}},e(r.value,r)));return t}function Gk(e,t){let r=new _e({check:"custom",...O(t)});return r._zod.check=e,r}function Ru(e){let t=new _e({check:"describe"});return t._zod.onattach=[r=>{let i=Re.get(r)??{};Re.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function Mu(e){let t=new _e({check:"meta"});return t._zod.onattach=[r=>{let i=Re.get(r)??{};Re.add(r,{...i,...e})}],t._zod.check=()=>{},t}function Lu(e,t){let r=O(t),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(p=>typeof p=="string"?p.toLowerCase():p),n=n.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(i),s=new Set(n),a=e.Codec??Ti,c=e.Boolean??zi,l=e.String??Ar,u=new l({type:"string",error:r.error}),d=new c({type:"boolean",error:r.error}),f=new a({type:"pipe",in:u,out:d,transform:((p,g)=>{let m=p;return r.case!=="sensitive"&&(m=m.toLowerCase()),o.has(m)?!0:s.has(m)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:g.value,inst:f,continue:!1}),{})}),reverseTransform:((p,g)=>p===!0?i[0]||"true":n[0]||"false"),error:r.error});return f}function On(e,t,r,i={}){let n=O(i),o={...O(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:a=>r.test(a),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Ur(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??Re,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 ge(e,t,r={path:[],schemaPath:[]}){var i;let n=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s);let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,u);else{let f=s.schema,p=t.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(e,t,f,u)}let d=e._zod.parent;d&&(s.ref||(s.ref=d),ge(d,t,u),t.seen.get(d).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),t.io==="input"&&ot(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function qr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=i.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(a,s[0])}}let n=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,f=e.external.uri??(g=>g);if(d)return{ref:f(d)};let p=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=p,{defId:p,ref:`${f("__shared")}#/${a}/${p}`}}if(s[1]===r)return{ref:"#"};let l=`#/${a}/`,u=s[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:l+u}},o=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:l}=n(s);a.def={...a.schema},l&&(a.defId=l);let u=a.schema;for(let d in u)delete u[d];u.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
185
-
186
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){o(s);continue}if(e.external){let l=e.external.registry.get(s[0])?.id;if(t!==s[0]&&l){o(s);continue}}if(e.metadataRegistry.get(s[0])?.id){o(s);continue}if(a.cycle){o(s);continue}if(a.count>1&&e.reused==="ref"){o(s);continue}}}function Zr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let a=e.seen.get(s);if(a.ref===null)return;let c=a.def??a.schema,l={...c},u=a.ref;if(a.ref=null,u){i(u);let f=e.seen.get(u),p=f.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(p)):Object.assign(c,p),Object.assign(c,l),s._zod.parent===u)for(let m in c)m==="$ref"||m==="allOf"||m in l||delete c[m];if(p.$ref&&f.def)for(let m in c)m==="$ref"||m==="allOf"||m in f.def&&JSON.stringify(c[m])===JSON.stringify(f.def[m])&&delete c[m]}let d=s._zod.parent;if(d&&d!==u){i(d);let f=e.seen.get(d);if(f?.schema.$ref&&(c.$ref=f.schema.$ref,f.def))for(let p in c)p==="$ref"||p==="allOf"||p in f.def&&JSON.stringify(c[p])===JSON.stringify(f.def[p])&&delete c[p]}e.override({zodSchema:s,jsonSchema:c,path:a.path??[]})};for(let s of[...e.seen.entries()].reverse())i(s[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Object.assign(n,r.def??r.schema);let o=e.external?.defs??{};for(let s of e.seen.entries()){let a=s[1];a.def&&a.defId&&(o[a.defId]=a.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?n.$defs=o:n.definitions=o);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Di(t,"input",e.processors),output:Di(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function ot(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return ot(i.element,r);if(i.type==="set")return ot(i.valueType,r);if(i.type==="lazy")return ot(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return ot(i.innerType,r);if(i.type==="intersection")return ot(i.left,r)||ot(i.right,r);if(i.type==="record"||i.type==="map")return ot(i.keyType,r)||ot(i.valueType,r);if(i.type==="pipe")return ot(i.in,r)||ot(i.out,r);if(i.type==="object"){for(let n in i.shape)if(ot(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(ot(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(ot(n,r))return!0;return!!(i.rest&&ot(i.rest,r))}return!1}var rg=(e,t={})=>r=>{let i=Ur({...r,processors:t});return ge(e,i),qr(i,e),Zr(i,e)},Di=(e,t,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},s=Ur({...n??{},target:o,io:t,processors:r});return ge(e,s),qr(s,e),Zr(s,e)};var IO={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ng=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:s,format:a,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof s=="number"&&(n.maxLength=s),a&&(n.format=IO[a]??a,n.format===""&&delete n.format,a==="time"&&delete n.format),l&&(n.contentEncoding=l),c&&c.size>0){let u=[...c];u.length===1?n.pattern=u[0].source:u.length>1&&(n.allOf=[...u.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},ig=(e,t,r,i)=>{let n=r,{minimum:o,maximum:s,format:a,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof a=="string"&&a.includes("int")?n.type="integer":n.type="number",typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u),typeof o=="number"&&(n.minimum=o,typeof u=="number"&&t.target!=="draft-04"&&(u>=o?delete n.minimum:delete n.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l),typeof s=="number"&&(n.maximum=s,typeof l=="number"&&t.target!=="draft-04"&&(l<=s?delete n.maximum:delete n.exclusiveMaximum)),typeof c=="number"&&(n.multipleOf=c)},og=(e,t,r,i)=>{r.type="boolean"},sg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},ag=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},cg=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},lg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},ug=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},dg=(e,t,r,i)=>{r.not={}},fg=(e,t,r,i)=>{},pg=(e,t,r,i)=>{},mg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},gg=(e,t,r,i)=>{let n=e._zod.def,o=Ko(n.entries);o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),r.enum=o},hg=(e,t,r,i)=>{let n=e._zod.def,o=[];for(let s of n.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){let s=o[0];r.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[s]:r.const=s}else o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),o.every(s=>typeof s=="boolean")&&(r.type="boolean"),o.every(s=>s===null)&&(r.type="null"),r.enum=o},yg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},vg=(e,t,r,i)=>{let n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},_g=(e,t,r,i)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:c}=e._zod.bag;s!==void 0&&(o.minLength=s),a!==void 0&&(o.maxLength=a),c?c.length===1?(o.contentMediaType=c[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(n,o)},bg=(e,t,r,i)=>{r.type="boolean"},$g=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},kg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Sg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},xg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},wg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Ig=(e,t,r,i)=>{let n=r,o=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(n.minItems=s),typeof a=="number"&&(n.maxItems=a),n.type="array",n.items=ge(o.element,t,{...i,path:[...i.path,"items"]})},zg=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object",n.properties={};let s=o.shape;for(let l in s)n.properties[l]=ge(s[l],t,{...i,path:[...i.path,"properties",l]});let a=new Set(Object.keys(s)),c=new Set([...a].filter(l=>{let u=o.shape[l]._zod;return t.io==="input"?u.optin===void 0:u.optout===void 0}));c.size>0&&(n.required=Array.from(c)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=ge(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},qu=(e,t,r,i)=>{let n=e._zod.def,o=n.inclusive===!1,s=n.options.map((a,c)=>ge(a,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=s:r.anyOf=s},Pg=(e,t,r,i)=>{let n=e._zod.def,o=ge(n.left,t,{...i,path:[...i.path,"allOf",0]}),s=ge(n.right,t,{...i,path:[...i.path,"allOf",1]}),a=l=>"allOf"in l&&Object.keys(l).length===1,c=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];r.allOf=c},Tg=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((f,p)=>ge(f,t,{...i,path:[...i.path,s,p]})),l=o.rest?ge(o.rest,t,{...i,path:[...i.path,a,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,l&&(n.items=l)):t.target==="openapi-3.0"?(n.items={anyOf:c},l&&n.items.anyOf.push(l),n.minItems=c.length,l||(n.maxItems=c.length)):(n.items=c,l&&(n.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u=="number"&&(n.minItems=u),typeof d=="number"&&(n.maxItems=d)},Eg=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object";let s=o.keyType,c=s._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let u=ge(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let d of c)n.patternProperties[d.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=ge(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=ge(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let l=s._zod.values;if(l){let u=[...l].filter(d=>typeof d=="string"||typeof d=="number");u.length>0&&(n.required=u)}},Ng=(e,t,r,i)=>{let n=e._zod.def,o=ge(n.innerType,t,i),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},Og=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},jg=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Cg=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Dg=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},Ag=(e,t,r,i)=>{let n=e._zod.def,o=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;ge(o,t,i);let s=t.seen.get(e);s.ref=o},Rg=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},Mg=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Zu=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Lg=(e,t,r,i)=>{let n=e._zod.innerType;ge(n,t,i);let o=t.seen.get(e);o.ref=n},Uu={string:ng,number:ig,boolean:og,bigint:sg,symbol:ag,null:cg,undefined:lg,void:ug,never:dg,any:fg,unknown:pg,date:mg,enum:gg,literal:hg,nan:yg,template_literal:vg,file:_g,success:bg,custom:$g,function:kg,transform:Sg,map:xg,set:wg,array:Ig,object:zg,union:qu,intersection:Pg,tuple:Tg,record:Eg,nullable:Ng,nonoptional:Og,default:jg,prefault:Cg,catch:Dg,pipe:Ag,readonly:Rg,promise:Mg,optional:Zu,lazy:Lg};function Ai(e,t){if("_idmap"in e){let i=e,n=Ur({...t,processors:Uu}),o={};for(let c of i._idmap.entries()){let[l,u]=c;ge(u,n)}let s={},a={registry:i,uri:t?.uri,defs:o};n.external=a;for(let c of i._idmap.entries()){let[l,u]=c;qr(n,u),s[l]=Zr(n,u)}if(Object.keys(o).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:o}}return{schemas:s}}let r=Ur({...t,processors:Uu});return ge(e,r),qr(r,e),Zr(r,e)}var Fu=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Ur({processors:Uu,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return ge(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),qr(this.ctx,t);let i=Zr(this.ctx,t),{"~standard":n,...o}=i;return o}};var Bk={};function Ri(e){return!!e._zod}function Fr(e,t){return Ri(e)?_n(e,t):e.safeParse(t)}function Vu(e){if(!e)return;let t;if(Ri(e)?t=e._zod?.def?.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function Wk(e){if(Ri(e)){let o=e._zod?.def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}}let r=e._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}let i=e.value;if(i!==void 0)return i}var F={};ur(F,{$brand:()=>Fo,$input:()=>tu,$output:()=>eu,NEVER:()=>bc,TimePrecision:()=>ou,ZodAny:()=>sh,ZodArray:()=>uh,ZodBase64:()=>ud,ZodBase64URL:()=>dd,ZodBigInt:()=>Fi,ZodBigIntFormat:()=>md,ZodBoolean:()=>Zi,ZodCIDRv4:()=>cd,ZodCIDRv6:()=>ld,ZodCUID:()=>td,ZodCUID2:()=>rd,ZodCatch:()=>Eh,ZodCodec:()=>bd,ZodCustom:()=>Zs,ZodCustomStringFormat:()=>Ui,ZodDate:()=>Rs,ZodDefault:()=>xh,ZodDiscriminatedUnion:()=>fh,ZodE164:()=>fd,ZodEmail:()=>Qu,ZodEmoji:()=>Xu,ZodEnum:()=>Mi,ZodError:()=>OO,ZodExactOptional:()=>$h,ZodFile:()=>_h,ZodFirstPartyTypeKind:()=>Zh,ZodFunction:()=>Lh,ZodGUID:()=>Os,ZodIPv4:()=>sd,ZodIPv6:()=>ad,ZodISODate:()=>Bu,ZodISODateTime:()=>Gu,ZodISODuration:()=>Hu,ZodISOTime:()=>Ju,ZodIntersection:()=>ph,ZodIssueCode:()=>CO,ZodJWT:()=>pd,ZodKSUID:()=>od,ZodLazy:()=>Ah,ZodLiteral:()=>vh,ZodMAC:()=>rh,ZodMap:()=>hh,ZodNaN:()=>Oh,ZodNanoID:()=>ed,ZodNever:()=>ch,ZodNonOptional:()=>vd,ZodNull:()=>oh,ZodNullable:()=>Sh,ZodNumber:()=>qi,ZodNumberFormat:()=>jn,ZodObject:()=>Ms,ZodOptional:()=>yd,ZodPipe:()=>_d,ZodPrefault:()=>Ih,ZodPromise:()=>Mh,ZodReadonly:()=>jh,ZodRealError:()=>ft,ZodRecord:()=>qs,ZodSet:()=>yh,ZodString:()=>Li,ZodStringFormat:()=>be,ZodSuccess:()=>Th,ZodSymbol:()=>nh,ZodTemplateLiteral:()=>Dh,ZodTransform:()=>bh,ZodTuple:()=>mh,ZodType:()=>H,ZodULID:()=>nd,ZodURL:()=>Ds,ZodUUID:()=>Qt,ZodUndefined:()=>ih,ZodUnion:()=>Ls,ZodUnknown:()=>ah,ZodVoid:()=>lh,ZodXID:()=>id,ZodXor:()=>dh,_ZodString:()=>Yu,_default:()=>wh,_function:()=>XS,any:()=>DS,array:()=>ne,base64:()=>vS,base64url:()=>_S,bigint:()=>ES,boolean:()=>Ee,catch:()=>Nh,check:()=>ex,cidrv4:()=>hS,cidrv6:()=>yS,clone:()=>Ue,codec:()=>WS,coerce:()=>Fh,config:()=>Te,core:()=>kt,cuid:()=>cS,cuid2:()=>lS,custom:()=>$d,date:()=>RS,decode:()=>Hg,decodeAsync:()=>Yg,describe:()=>tx,discriminatedUnion:()=>Us,e164:()=>bS,email:()=>Qk,emoji:()=>sS,encode:()=>Jg,encodeAsync:()=>Wg,endsWith:()=>In,enum:()=>Fe,exactOptional:()=>kh,file:()=>GS,flattenError:()=>yi,float32:()=>IS,float64:()=>zS,formatError:()=>vi,fromJSONSchema:()=>ax,function:()=>XS,getErrorMap:()=>AO,globalRegistry:()=>Re,gt:()=>Lt,gte:()=>qe,guid:()=>Xk,hash:()=>wS,hex:()=>xS,hostname:()=>SS,httpUrl:()=>oS,includes:()=>xn,instanceof:()=>nx,int:()=>Wu,int32:()=>PS,int64:()=>NS,intersection:()=>Vi,ipv4:()=>pS,ipv6:()=>gS,iso:()=>Vr,json:()=>ox,jwt:()=>$S,keyof:()=>MS,ksuid:()=>fS,lazy:()=>Rh,length:()=>Lr,literal:()=>L,locales:()=>Ni,looseObject:()=>Ze,looseRecord:()=>ZS,lowercase:()=>kn,lt:()=>Mt,lte:()=>it,mac:()=>mS,map:()=>FS,maxLength:()=>Mr,maxSize:()=>yr,meta:()=>rx,mime:()=>zn,minLength:()=>Yt,minSize:()=>Ut,multipleOf:()=>hr,nan:()=>HS,nanoid:()=>aS,nativeEnum:()=>KS,negative:()=>zs,never:()=>gd,nonnegative:()=>Ts,nonoptional:()=>Ph,nonpositive:()=>Ps,normalize:()=>Pn,null:()=>As,nullable:()=>js,nullish:()=>BS,number:()=>fe,object:()=>D,optional:()=>xe,overwrite:()=>zt,parse:()=>Vg,parseAsync:()=>Kg,partialRecord:()=>qS,pipe:()=>Cs,positive:()=>Is,prefault:()=>zh,preprocess:()=>Fs,prettifyError:()=>wc,promise:()=>QS,property:()=>Es,readonly:()=>Ch,record:()=>ve,refine:()=>Uh,regex:()=>$n,regexes:()=>dt,registry:()=>os,safeDecode:()=>Xg,safeDecodeAsync:()=>th,safeEncode:()=>Qg,safeEncodeAsync:()=>eh,safeParse:()=>Gg,safeParseAsync:()=>Bg,set:()=>VS,setErrorMap:()=>DO,size:()=>Rr,slugify:()=>Ci,startsWith:()=>wn,strictObject:()=>LS,string:()=>b,stringFormat:()=>kS,stringbool:()=>ix,success:()=>JS,superRefine:()=>qh,symbol:()=>jS,templateLiteral:()=>YS,toJSONSchema:()=>Ai,toLowerCase:()=>En,toUpperCase:()=>Nn,transform:()=>hd,treeifyError:()=>xc,trim:()=>Tn,tuple:()=>gh,uint32:()=>TS,uint64:()=>OS,ulid:()=>uS,undefined:()=>CS,union:()=>ke,unknown:()=>$e,uppercase:()=>Sn,url:()=>iS,util:()=>T,uuid:()=>eS,uuidv4:()=>tS,uuidv6:()=>rS,uuidv7:()=>nS,void:()=>AS,xid:()=>dS,xor:()=>US});var Ns={};ur(Ns,{ZodAny:()=>sh,ZodArray:()=>uh,ZodBase64:()=>ud,ZodBase64URL:()=>dd,ZodBigInt:()=>Fi,ZodBigIntFormat:()=>md,ZodBoolean:()=>Zi,ZodCIDRv4:()=>cd,ZodCIDRv6:()=>ld,ZodCUID:()=>td,ZodCUID2:()=>rd,ZodCatch:()=>Eh,ZodCodec:()=>bd,ZodCustom:()=>Zs,ZodCustomStringFormat:()=>Ui,ZodDate:()=>Rs,ZodDefault:()=>xh,ZodDiscriminatedUnion:()=>fh,ZodE164:()=>fd,ZodEmail:()=>Qu,ZodEmoji:()=>Xu,ZodEnum:()=>Mi,ZodExactOptional:()=>$h,ZodFile:()=>_h,ZodFunction:()=>Lh,ZodGUID:()=>Os,ZodIPv4:()=>sd,ZodIPv6:()=>ad,ZodIntersection:()=>ph,ZodJWT:()=>pd,ZodKSUID:()=>od,ZodLazy:()=>Ah,ZodLiteral:()=>vh,ZodMAC:()=>rh,ZodMap:()=>hh,ZodNaN:()=>Oh,ZodNanoID:()=>ed,ZodNever:()=>ch,ZodNonOptional:()=>vd,ZodNull:()=>oh,ZodNullable:()=>Sh,ZodNumber:()=>qi,ZodNumberFormat:()=>jn,ZodObject:()=>Ms,ZodOptional:()=>yd,ZodPipe:()=>_d,ZodPrefault:()=>Ih,ZodPromise:()=>Mh,ZodReadonly:()=>jh,ZodRecord:()=>qs,ZodSet:()=>yh,ZodString:()=>Li,ZodStringFormat:()=>be,ZodSuccess:()=>Th,ZodSymbol:()=>nh,ZodTemplateLiteral:()=>Dh,ZodTransform:()=>bh,ZodTuple:()=>mh,ZodType:()=>H,ZodULID:()=>nd,ZodURL:()=>Ds,ZodUUID:()=>Qt,ZodUndefined:()=>ih,ZodUnion:()=>Ls,ZodUnknown:()=>ah,ZodVoid:()=>lh,ZodXID:()=>id,ZodXor:()=>dh,_ZodString:()=>Yu,_default:()=>wh,_function:()=>XS,any:()=>DS,array:()=>ne,base64:()=>vS,base64url:()=>_S,bigint:()=>ES,boolean:()=>Ee,catch:()=>Nh,check:()=>ex,cidrv4:()=>hS,cidrv6:()=>yS,codec:()=>WS,cuid:()=>cS,cuid2:()=>lS,custom:()=>$d,date:()=>RS,describe:()=>tx,discriminatedUnion:()=>Us,e164:()=>bS,email:()=>Qk,emoji:()=>sS,enum:()=>Fe,exactOptional:()=>kh,file:()=>GS,float32:()=>IS,float64:()=>zS,function:()=>XS,guid:()=>Xk,hash:()=>wS,hex:()=>xS,hostname:()=>SS,httpUrl:()=>oS,instanceof:()=>nx,int:()=>Wu,int32:()=>PS,int64:()=>NS,intersection:()=>Vi,ipv4:()=>pS,ipv6:()=>gS,json:()=>ox,jwt:()=>$S,keyof:()=>MS,ksuid:()=>fS,lazy:()=>Rh,literal:()=>L,looseObject:()=>Ze,looseRecord:()=>ZS,mac:()=>mS,map:()=>FS,meta:()=>rx,nan:()=>HS,nanoid:()=>aS,nativeEnum:()=>KS,never:()=>gd,nonoptional:()=>Ph,null:()=>As,nullable:()=>js,nullish:()=>BS,number:()=>fe,object:()=>D,optional:()=>xe,partialRecord:()=>qS,pipe:()=>Cs,prefault:()=>zh,preprocess:()=>Fs,promise:()=>QS,readonly:()=>Ch,record:()=>ve,refine:()=>Uh,set:()=>VS,strictObject:()=>LS,string:()=>b,stringFormat:()=>kS,stringbool:()=>ix,success:()=>JS,superRefine:()=>qh,symbol:()=>jS,templateLiteral:()=>YS,transform:()=>hd,tuple:()=>gh,uint32:()=>TS,uint64:()=>OS,ulid:()=>uS,undefined:()=>CS,union:()=>ke,unknown:()=>$e,url:()=>iS,uuid:()=>eS,uuidv4:()=>tS,uuidv6:()=>rS,uuidv7:()=>nS,void:()=>AS,xid:()=>dS,xor:()=>US});var Ku={};ur(Ku,{endsWith:()=>In,gt:()=>Lt,gte:()=>qe,includes:()=>xn,length:()=>Lr,lowercase:()=>kn,lt:()=>Mt,lte:()=>it,maxLength:()=>Mr,maxSize:()=>yr,mime:()=>zn,minLength:()=>Yt,minSize:()=>Ut,multipleOf:()=>hr,negative:()=>zs,nonnegative:()=>Ts,nonpositive:()=>Ps,normalize:()=>Pn,overwrite:()=>zt,positive:()=>Is,property:()=>Es,regex:()=>$n,size:()=>Rr,slugify:()=>Ci,startsWith:()=>wn,toLowerCase:()=>En,toUpperCase:()=>Nn,trim:()=>Tn,uppercase:()=>Sn});var Vr={};ur(Vr,{ZodISODate:()=>Bu,ZodISODateTime:()=>Gu,ZodISODuration:()=>Hu,ZodISOTime:()=>Ju,date:()=>qg,datetime:()=>Ug,duration:()=>Fg,time:()=>Zg});var Gu=y("ZodISODateTime",(e,t)=>{el.init(e,t),be.init(e,t)});function Ug(e){return su(Gu,e)}var Bu=y("ZodISODate",(e,t)=>{tl.init(e,t),be.init(e,t)});function qg(e){return au(Bu,e)}var Ju=y("ZodISOTime",(e,t)=>{rl.init(e,t),be.init(e,t)});function Zg(e){return cu(Ju,e)}var Hu=y("ZodISODuration",(e,t)=>{nl.init(e,t),be.init(e,t)});function Fg(e){return lu(Hu,e)}var Yk=(e,t)=>{Wo.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>vi(e,r)},flatten:{value:r=>yi(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,mi,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,mi,2)}},isEmpty:{get(){return e.issues.length===0}}})},OO=y("ZodError",Yk),ft=y("ZodError",Yk,{Parent:Error});var Vg=_i(ft),Kg=$i(ft),Gg=Si(ft),Bg=xi(ft),Jg=Ic(ft),Hg=zc(ft),Wg=Pc(ft),Yg=Tc(ft),Qg=Ec(ft),Xg=Nc(ft),eh=Oc(ft),th=jc(ft);var H=y("ZodType",(e,t)=>(G.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Di(e,"input"),output:Di(e,"output")}}),e.toJSONSchema=rg(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(T.mergeDefs(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(r,i)=>Ue(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>Vg(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>Gg(e,r,i),e.parseAsync=async(r,i)=>Kg(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>Bg(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>Jg(e,r,i),e.decode=(r,i)=>Hg(e,r,i),e.encodeAsync=async(r,i)=>Wg(e,r,i),e.decodeAsync=async(r,i)=>Yg(e,r,i),e.safeEncode=(r,i)=>Qg(e,r,i),e.safeDecode=(r,i)=>Xg(e,r,i),e.safeEncodeAsync=async(r,i)=>eh(e,r,i),e.safeDecodeAsync=async(r,i)=>th(e,r,i),e.refine=(r,i)=>e.check(Uh(r,i)),e.superRefine=r=>e.check(qh(r)),e.overwrite=r=>e.check(zt(r)),e.optional=()=>xe(e),e.exactOptional=()=>kh(e),e.nullable=()=>js(e),e.nullish=()=>xe(js(e)),e.nonoptional=r=>Ph(e,r),e.array=()=>ne(e),e.or=r=>ke([e,r]),e.and=r=>Vi(e,r),e.transform=r=>Cs(e,hd(r)),e.default=r=>wh(e,r),e.prefault=r=>zh(e,r),e.catch=r=>Nh(e,r),e.pipe=r=>Cs(e,r),e.readonly=()=>Ch(e),e.describe=r=>{let i=e.clone();return Re.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return Re.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Re.get(e);let i=e.clone();return Re.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),Yu=y("_ZodString",(e,t)=>{Ar.init(e,t),H.init(e,t),e._zod.processJSONSchema=(i,n,o)=>ng(e,i,n,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check($n(...i)),e.includes=(...i)=>e.check(xn(...i)),e.startsWith=(...i)=>e.check(wn(...i)),e.endsWith=(...i)=>e.check(In(...i)),e.min=(...i)=>e.check(Yt(...i)),e.max=(...i)=>e.check(Mr(...i)),e.length=(...i)=>e.check(Lr(...i)),e.nonempty=(...i)=>e.check(Yt(1,...i)),e.lowercase=i=>e.check(kn(i)),e.uppercase=i=>e.check(Sn(i)),e.trim=()=>e.check(Tn()),e.normalize=(...i)=>e.check(Pn(...i)),e.toLowerCase=()=>e.check(En()),e.toUpperCase=()=>e.check(Nn()),e.slugify=()=>e.check(Ci())}),Li=y("ZodString",(e,t)=>{Ar.init(e,t),Yu.init(e,t),e.email=r=>e.check(ss(Qu,r)),e.url=r=>e.check(ji(Ds,r)),e.jwt=r=>e.check(ws(pd,r)),e.emoji=r=>e.check(ds(Xu,r)),e.guid=r=>e.check(Oi(Os,r)),e.uuid=r=>e.check(as(Qt,r)),e.uuidv4=r=>e.check(cs(Qt,r)),e.uuidv6=r=>e.check(ls(Qt,r)),e.uuidv7=r=>e.check(us(Qt,r)),e.nanoid=r=>e.check(fs(ed,r)),e.guid=r=>e.check(Oi(Os,r)),e.cuid=r=>e.check(ps(td,r)),e.cuid2=r=>e.check(ms(rd,r)),e.ulid=r=>e.check(gs(nd,r)),e.base64=r=>e.check(ks(ud,r)),e.base64url=r=>e.check(Ss(dd,r)),e.xid=r=>e.check(hs(id,r)),e.ksuid=r=>e.check(ys(od,r)),e.ipv4=r=>e.check(vs(sd,r)),e.ipv6=r=>e.check(_s(ad,r)),e.cidrv4=r=>e.check(bs(cd,r)),e.cidrv6=r=>e.check($s(ld,r)),e.e164=r=>e.check(xs(fd,r)),e.datetime=r=>e.check(Ug(r)),e.date=r=>e.check(qg(r)),e.time=r=>e.check(Zg(r)),e.duration=r=>e.check(Fg(r))});function b(e){return ru(Li,e)}var be=y("ZodStringFormat",(e,t)=>{ye.init(e,t),Yu.init(e,t)}),Qu=y("ZodEmail",(e,t)=>{Kc.init(e,t),be.init(e,t)});function Qk(e){return ss(Qu,e)}var Os=y("ZodGUID",(e,t)=>{Fc.init(e,t),be.init(e,t)});function Xk(e){return Oi(Os,e)}var Qt=y("ZodUUID",(e,t)=>{Vc.init(e,t),be.init(e,t)});function eS(e){return as(Qt,e)}function tS(e){return cs(Qt,e)}function rS(e){return ls(Qt,e)}function nS(e){return us(Qt,e)}var Ds=y("ZodURL",(e,t)=>{Gc.init(e,t),be.init(e,t)});function iS(e){return ji(Ds,e)}function oS(e){return ji(Ds,{protocol:/^https?$/,hostname:dt.domain,...T.normalizeParams(e)})}var Xu=y("ZodEmoji",(e,t)=>{Bc.init(e,t),be.init(e,t)});function sS(e){return ds(Xu,e)}var ed=y("ZodNanoID",(e,t)=>{Jc.init(e,t),be.init(e,t)});function aS(e){return fs(ed,e)}var td=y("ZodCUID",(e,t)=>{Hc.init(e,t),be.init(e,t)});function cS(e){return ps(td,e)}var rd=y("ZodCUID2",(e,t)=>{Wc.init(e,t),be.init(e,t)});function lS(e){return ms(rd,e)}var nd=y("ZodULID",(e,t)=>{Yc.init(e,t),be.init(e,t)});function uS(e){return gs(nd,e)}var id=y("ZodXID",(e,t)=>{Qc.init(e,t),be.init(e,t)});function dS(e){return hs(id,e)}var od=y("ZodKSUID",(e,t)=>{Xc.init(e,t),be.init(e,t)});function fS(e){return ys(od,e)}var sd=y("ZodIPv4",(e,t)=>{il.init(e,t),be.init(e,t)});function pS(e){return vs(sd,e)}var rh=y("ZodMAC",(e,t)=>{sl.init(e,t),be.init(e,t)});function mS(e){return iu(rh,e)}var ad=y("ZodIPv6",(e,t)=>{ol.init(e,t),be.init(e,t)});function gS(e){return _s(ad,e)}var cd=y("ZodCIDRv4",(e,t)=>{al.init(e,t),be.init(e,t)});function hS(e){return bs(cd,e)}var ld=y("ZodCIDRv6",(e,t)=>{cl.init(e,t),be.init(e,t)});function yS(e){return $s(ld,e)}var ud=y("ZodBase64",(e,t)=>{ll.init(e,t),be.init(e,t)});function vS(e){return ks(ud,e)}var dd=y("ZodBase64URL",(e,t)=>{ul.init(e,t),be.init(e,t)});function _S(e){return Ss(dd,e)}var fd=y("ZodE164",(e,t)=>{dl.init(e,t),be.init(e,t)});function bS(e){return xs(fd,e)}var pd=y("ZodJWT",(e,t)=>{fl.init(e,t),be.init(e,t)});function $S(e){return ws(pd,e)}var Ui=y("ZodCustomStringFormat",(e,t)=>{pl.init(e,t),be.init(e,t)});function kS(e,t,r={}){return On(Ui,e,t,r)}function SS(e){return On(Ui,"hostname",dt.hostname,e)}function xS(e){return On(Ui,"hex",dt.hex,e)}function wS(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=dt[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return On(Ui,i,n,t)}var qi=y("ZodNumber",(e,t)=>{es.init(e,t),H.init(e,t),e._zod.processJSONSchema=(i,n,o)=>ig(e,i,n,o),e.gt=(i,n)=>e.check(Lt(i,n)),e.gte=(i,n)=>e.check(qe(i,n)),e.min=(i,n)=>e.check(qe(i,n)),e.lt=(i,n)=>e.check(Mt(i,n)),e.lte=(i,n)=>e.check(it(i,n)),e.max=(i,n)=>e.check(it(i,n)),e.int=i=>e.check(Wu(i)),e.safe=i=>e.check(Wu(i)),e.positive=i=>e.check(Lt(0,i)),e.nonnegative=i=>e.check(qe(0,i)),e.negative=i=>e.check(Mt(0,i)),e.nonpositive=i=>e.check(it(0,i)),e.multipleOf=(i,n)=>e.check(hr(i,n)),e.step=(i,n)=>e.check(hr(i,n)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function fe(e){return uu(qi,e)}var jn=y("ZodNumberFormat",(e,t)=>{ml.init(e,t),qi.init(e,t)});function Wu(e){return fu(jn,e)}function IS(e){return pu(jn,e)}function zS(e){return mu(jn,e)}function PS(e){return gu(jn,e)}function TS(e){return hu(jn,e)}var Zi=y("ZodBoolean",(e,t)=>{zi.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>og(e,r,i,n)});function Ee(e){return yu(Zi,e)}var Fi=y("ZodBigInt",(e,t)=>{ts.init(e,t),H.init(e,t),e._zod.processJSONSchema=(i,n,o)=>sg(e,i,n,o),e.gte=(i,n)=>e.check(qe(i,n)),e.min=(i,n)=>e.check(qe(i,n)),e.gt=(i,n)=>e.check(Lt(i,n)),e.gte=(i,n)=>e.check(qe(i,n)),e.min=(i,n)=>e.check(qe(i,n)),e.lt=(i,n)=>e.check(Mt(i,n)),e.lte=(i,n)=>e.check(it(i,n)),e.max=(i,n)=>e.check(it(i,n)),e.positive=i=>e.check(Lt(BigInt(0),i)),e.negative=i=>e.check(Mt(BigInt(0),i)),e.nonpositive=i=>e.check(it(BigInt(0),i)),e.nonnegative=i=>e.check(qe(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(hr(i,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function ES(e){return _u(Fi,e)}var md=y("ZodBigIntFormat",(e,t)=>{gl.init(e,t),Fi.init(e,t)});function NS(e){return $u(md,e)}function OS(e){return ku(md,e)}var nh=y("ZodSymbol",(e,t)=>{hl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ag(e,r,i,n)});function jS(e){return Su(nh,e)}var ih=y("ZodUndefined",(e,t)=>{yl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>lg(e,r,i,n)});function CS(e){return xu(ih,e)}var oh=y("ZodNull",(e,t)=>{vl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>cg(e,r,i,n)});function As(e){return wu(oh,e)}var sh=y("ZodAny",(e,t)=>{_l.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>fg(e,r,i,n)});function DS(){return Iu(sh)}var ah=y("ZodUnknown",(e,t)=>{bl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>pg(e,r,i,n)});function $e(){return zu(ah)}var ch=y("ZodNever",(e,t)=>{$l.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>dg(e,r,i,n)});function gd(e){return Pu(ch,e)}var lh=y("ZodVoid",(e,t)=>{kl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ug(e,r,i,n)});function AS(e){return Tu(lh,e)}var Rs=y("ZodDate",(e,t)=>{Sl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(i,n,o)=>mg(e,i,n,o),e.min=(i,n)=>e.check(qe(i,n)),e.max=(i,n)=>e.check(it(i,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function RS(e){return Eu(Rs,e)}var uh=y("ZodArray",(e,t)=>{xl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ig(e,r,i,n),e.element=t.element,e.min=(r,i)=>e.check(Yt(r,i)),e.nonempty=r=>e.check(Yt(1,r)),e.max=(r,i)=>e.check(Mr(r,i)),e.length=(r,i)=>e.check(Lr(r,i)),e.unwrap=()=>e.element});function ne(e,t){return tg(uh,e,t)}function MS(e){let t=e._zod.def.shape;return Fe(Object.keys(t))}var Ms=y("ZodObject",(e,t)=>{eg.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>zg(e,r,i,n),T.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Fe(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:$e()}),e.loose=()=>e.clone({...e._zod.def,catchall:$e()}),e.strict=()=>e.clone({...e._zod.def,catchall:gd()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>T.extend(e,r),e.safeExtend=r=>T.safeExtend(e,r),e.merge=r=>T.merge(e,r),e.pick=r=>T.pick(e,r),e.omit=r=>T.omit(e,r),e.partial=(...r)=>T.partial(yd,e,r[0]),e.required=(...r)=>T.required(vd,e,r[0])});function D(e,t){let r={type:"object",shape:e??{},...T.normalizeParams(t)};return new Ms(r)}function LS(e,t){return new Ms({type:"object",shape:e,catchall:gd(),...T.normalizeParams(t)})}function Ze(e,t){return new Ms({type:"object",shape:e,catchall:$e(),...T.normalizeParams(t)})}var Ls=y("ZodUnion",(e,t)=>{Pi.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>qu(e,r,i,n),e.options=t.options});function ke(e,t){return new Ls({type:"union",options:e,...T.normalizeParams(t)})}var dh=y("ZodXor",(e,t)=>{Ls.init(e,t),wl.init(e,t),e._zod.processJSONSchema=(r,i,n)=>qu(e,r,i,n),e.options=t.options});function US(e,t){return new dh({type:"union",options:e,inclusive:!1,...T.normalizeParams(t)})}var fh=y("ZodDiscriminatedUnion",(e,t)=>{Ls.init(e,t),Il.init(e,t)});function Us(e,t,r){return new fh({type:"union",options:t,discriminator:e,...T.normalizeParams(r)})}var ph=y("ZodIntersection",(e,t)=>{zl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Pg(e,r,i,n)});function Vi(e,t){return new ph({type:"intersection",left:e,right:t})}var mh=y("ZodTuple",(e,t)=>{rs.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Tg(e,r,i,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function gh(e,t,r){let i=t instanceof G,n=i?r:t,o=i?t:null;return new mh({type:"tuple",items:e,rest:o,...T.normalizeParams(n)})}var qs=y("ZodRecord",(e,t)=>{Pl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Eg(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function ve(e,t,r){return new qs({type:"record",keyType:e,valueType:t,...T.normalizeParams(r)})}function qS(e,t,r){let i=Ue(e);return i._zod.values=void 0,new qs({type:"record",keyType:i,valueType:t,...T.normalizeParams(r)})}function ZS(e,t,r){return new qs({type:"record",keyType:e,valueType:t,mode:"loose",...T.normalizeParams(r)})}var hh=y("ZodMap",(e,t)=>{Tl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>xg(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Ut(...r)),e.nonempty=r=>e.check(Ut(1,r)),e.max=(...r)=>e.check(yr(...r)),e.size=(...r)=>e.check(Rr(...r))});function FS(e,t,r){return new hh({type:"map",keyType:e,valueType:t,...T.normalizeParams(r)})}var yh=y("ZodSet",(e,t)=>{El.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>wg(e,r,i,n),e.min=(...r)=>e.check(Ut(...r)),e.nonempty=r=>e.check(Ut(1,r)),e.max=(...r)=>e.check(yr(...r)),e.size=(...r)=>e.check(Rr(...r))});function VS(e,t){return new yh({type:"set",valueType:e,...T.normalizeParams(t)})}var Mi=y("ZodEnum",(e,t)=>{Nl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(i,n,o)=>gg(e,i,n,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{let o={};for(let s of i)if(r.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Mi({...t,checks:[],...T.normalizeParams(n),entries:o})},e.exclude=(i,n)=>{let o={...t.entries};for(let s of i)if(r.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new Mi({...t,checks:[],...T.normalizeParams(n),entries:o})}});function Fe(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Mi({type:"enum",entries:r,...T.normalizeParams(t)})}function KS(e,t){return new Mi({type:"enum",entries:e,...T.normalizeParams(t)})}var vh=y("ZodLiteral",(e,t)=>{Ol.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>hg(e,r,i,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function L(e,t){return new vh({type:"literal",values:Array.isArray(e)?e:[e],...T.normalizeParams(t)})}var _h=y("ZodFile",(e,t)=>{jl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>_g(e,r,i,n),e.min=(r,i)=>e.check(Ut(r,i)),e.max=(r,i)=>e.check(yr(r,i)),e.mime=(r,i)=>e.check(zn(Array.isArray(r)?r:[r],i))});function GS(e){return ju(_h,e)}var bh=y("ZodTransform",(e,t)=>{Cl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Sg(e,r,i,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Nr(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(T.issue(o,r.value,t));else{let s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(T.issue(s))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});function hd(e){return new bh({type:"transform",transform:e})}var yd=y("ZodOptional",(e,t)=>{ns.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function xe(e){return new yd({type:"optional",innerType:e})}var $h=y("ZodExactOptional",(e,t)=>{Dl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function kh(e){return new $h({type:"optional",innerType:e})}var Sh=y("ZodNullable",(e,t)=>{Al.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ng(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function js(e){return new Sh({type:"nullable",innerType:e})}function BS(e){return xe(js(e))}var xh=y("ZodDefault",(e,t)=>{Rl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function wh(e,t){return new xh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():T.shallowClone(t)}})}var Ih=y("ZodPrefault",(e,t)=>{Ml.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function zh(e,t){return new Ih({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():T.shallowClone(t)}})}var vd=y("ZodNonOptional",(e,t)=>{Ll.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Og(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Ph(e,t){return new vd({type:"nonoptional",innerType:e,...T.normalizeParams(t)})}var Th=y("ZodSuccess",(e,t)=>{Ul.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>bg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function JS(e){return new Th({type:"success",innerType:e})}var Eh=y("ZodCatch",(e,t)=>{ql.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Dg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Nh(e,t){return new Eh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Oh=y("ZodNaN",(e,t)=>{Zl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>yg(e,r,i,n)});function HS(e){return Ou(Oh,e)}var _d=y("ZodPipe",(e,t)=>{Fl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ag(e,r,i,n),e.in=t.in,e.out=t.out});function Cs(e,t){return new _d({type:"pipe",in:e,out:t})}var bd=y("ZodCodec",(e,t)=>{_d.init(e,t),Ti.init(e,t)});function WS(e,t,r){return new bd({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var jh=y("ZodReadonly",(e,t)=>{Vl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Rg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Ch(e){return new jh({type:"readonly",innerType:e})}var Dh=y("ZodTemplateLiteral",(e,t)=>{Kl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>vg(e,r,i,n)});function YS(e,t){return new Dh({type:"template_literal",parts:e,...T.normalizeParams(t)})}var Ah=y("ZodLazy",(e,t)=>{Jl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Lg(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function Rh(e){return new Ah({type:"lazy",getter:e})}var Mh=y("ZodPromise",(e,t)=>{Bl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function QS(e){return new Mh({type:"promise",innerType:e})}var Lh=y("ZodFunction",(e,t)=>{Gl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>kg(e,r,i,n)});function XS(e){return new Lh({type:"function",input:Array.isArray(e?.input)?gh(e?.input):e?.input??ne($e()),output:e?.output??$e()})}var Zs=y("ZodCustom",(e,t)=>{Hl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>$g(e,r,i,n)});function ex(e){let t=new _e({check:"custom"});return t._zod.check=e,t}function $d(e,t){return Cu(Zs,e??(()=>!0),t)}function Uh(e,t={}){return Du(Zs,e,t)}function qh(e){return Au(e)}var tx=Ru,rx=Mu;function nx(e,t={}){let r=new Zs({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...T.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}var ix=(...e)=>Lu({Codec:bd,Boolean:Zi,String:Li},...e);function ox(e){let t=Rh(()=>ke([b(e),fe(),Ee(),As(),ne(t),ve(b(),t)]));return t}function Fs(e,t){return Cs(hd(e),t)}var CO={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 DO(e){Te({customError:e})}function AO(){return Te().customError}var Zh;Zh||(Zh={});var C={...Ns,...Ku,iso:Vr},RO=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 MO(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function LO(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function sx(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return C.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return C.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let o=LO(n,t),s=Xe(o,t);return t.refs.set(n,s),t.processing.delete(n),s}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return C.null();if(n.length===0)return C.never();if(n.length===1)return C.literal(n[0]);if(n.every(s=>typeof s=="string"))return C.enum(n);let o=n.map(s=>C.literal(s));return o.length<2?o[0]:C.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return C.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(o=>{let s={...e,type:o};return sx(s,t)});return n.length===0?C.never():n.length===1?n[0]:C.union(n)}if(!r)return C.any();let i;switch(r){case"string":{let n=C.string();if(e.format){let o=e.format;o==="email"?n=n.check(C.email()):o==="uri"||o==="uri-reference"?n=n.check(C.url()):o==="uuid"||o==="guid"?n=n.check(C.uuid()):o==="date-time"?n=n.check(C.iso.datetime()):o==="date"?n=n.check(C.iso.date()):o==="time"?n=n.check(C.iso.time()):o==="duration"?n=n.check(C.iso.duration()):o==="ipv4"?n=n.check(C.ipv4()):o==="ipv6"?n=n.check(C.ipv6()):o==="mac"?n=n.check(C.mac()):o==="cidr"?n=n.check(C.cidrv4()):o==="cidr-v6"?n=n.check(C.cidrv6()):o==="base64"?n=n.check(C.base64()):o==="base64url"?n=n.check(C.base64url()):o==="e164"?n=n.check(C.e164()):o==="jwt"?n=n.check(C.jwt()):o==="emoji"?n=n.check(C.emoji()):o==="nanoid"?n=n.check(C.nanoid()):o==="cuid"?n=n.check(C.cuid()):o==="cuid2"?n=n.check(C.cuid2()):o==="ulid"?n=n.check(C.ulid()):o==="xid"?n=n.check(C.xid()):o==="ksuid"&&(n=n.check(C.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?C.number().int():C.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case"boolean":{i=C.boolean();break}case"null":{i=C.null();break}case"object":{let n={},o=e.properties||{},s=new Set(e.required||[]);for(let[c,l]of Object.entries(o)){let u=Xe(l,t);n[c]=s.has(c)?u:u.optional()}if(e.propertyNames){let c=Xe(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?Xe(e.additionalProperties,t):C.any();if(Object.keys(n).length===0){i=C.record(c,l);break}let u=C.object(n).passthrough(),d=C.looseRecord(c,l);i=C.intersection(u,d);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),u=[];for(let f of l){let p=Xe(c[f],t),g=C.string().regex(new RegExp(f));u.push(C.looseRecord(g,p))}let d=[];if(Object.keys(n).length>0&&d.push(C.object(n).passthrough()),d.push(...u),d.length===0)i=C.object({}).passthrough();else if(d.length===1)i=d[0];else{let f=C.intersection(d[0],d[1]);for(let p=2;p<d.length;p++)f=C.intersection(f,d[p]);i=f}break}let a=C.object(n);e.additionalProperties===!1?i=a.strict():typeof e.additionalProperties=="object"?i=a.catchall(Xe(e.additionalProperties,t)):i=a.passthrough();break}case"array":{let n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){let s=n.map(c=>Xe(c,t)),a=o&&typeof o=="object"&&!Array.isArray(o)?Xe(o,t):void 0;a?i=C.tuple(s).rest(a):i=C.tuple(s),typeof e.minItems=="number"&&(i=i.check(C.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(C.maxLength(e.maxItems)))}else if(Array.isArray(o)){let s=o.map(c=>Xe(c,t)),a=e.additionalItems&&typeof e.additionalItems=="object"?Xe(e.additionalItems,t):void 0;a?i=C.tuple(s).rest(a):i=C.tuple(s),typeof e.minItems=="number"&&(i=i.check(C.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(C.maxLength(e.maxItems)))}else if(o!==void 0){let s=Xe(o,t),a=C.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),i=a}else i=C.array(C.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}function Xe(e,t){if(typeof e=="boolean")return e?C.any():C.never();let r=sx(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(l=>Xe(l,t)),c=C.union(a);r=i?C.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(l=>Xe(l,t)),c=C.xor(a);r=i?C.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:C.any();else{let a=i?r:Xe(e.allOf[0],t),c=i?0:1;for(let l=c;l<e.allOf.length;l++)a=C.intersection(a,Xe(e.allOf[l],t));r=a}e.nullable===!0&&t.version==="openapi-3.0"&&(r=C.nullable(r)),e.readOnly===!0&&(r=C.readonly(r));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of o)a in e&&(n[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(n[a]=e[a]);for(let a of Object.keys(e))RO.has(a)||(n[a]=e[a]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function ax(e,t){if(typeof e=="boolean")return e?C.any():C.never();let r=MO(e,t?.defaultTarget),i=e.$defs||e.definitions||{},n={version:r,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Re};return Xe(e,n)}var Fh={};ur(Fh,{bigint:()=>FO,boolean:()=>ZO,date:()=>VO,number:()=>qO,string:()=>UO});function UO(e){return nu(Li,e)}function qO(e){return du(qi,e)}function ZO(e){return vu(Zi,e)}function FO(e){return bu(Fi,e)}function VO(e){return Nu(Rs,e)}Te(Wl());var Kh="2025-11-25";var cx=[Kh,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Kr="io.modelcontextprotocol/related-task",Sd="2.0",je=$d(e=>e!==null&&(typeof e=="object"||typeof e=="function")),lx=ke([b(),fe().int()]),ux=b(),GK=Ze({ttl:fe().optional(),pollInterval:fe().optional()}),GO=D({ttl:fe().optional()}),BO=D({taskId:b()}),Gh=Ze({progressToken:lx.optional(),[Kr]:BO.optional()}),St=D({_meta:Gh.optional()}),Vs=St.extend({task:GO.optional()}),dx=e=>Vs.safeParse(e).success,Ve=D({method:b(),params:St.loose().optional()}),Pt=D({_meta:Gh.optional()}),Tt=D({method:b(),params:Pt.loose().optional()}),Ke=Ze({_meta:Gh.optional()}),xd=ke([b(),fe().int()]),fx=D({jsonrpc:L(Sd),id:xd,...Ve.shape}).strict(),Bh=e=>fx.safeParse(e).success,px=D({jsonrpc:L(Sd),...Tt.shape}).strict(),mx=e=>px.safeParse(e).success,Jh=D({jsonrpc:L(Sd),id:xd,result:Ke}).strict(),Ks=e=>Jh.safeParse(e).success;var ae;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",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.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(ae||(ae={}));var Hh=D({jsonrpc:L(Sd),id:xd.optional(),error:D({code:fe().int(),message:b(),data:$e().optional()})}).strict();var gx=e=>Hh.safeParse(e).success;var hx=ke([fx,px,Jh,Hh]),BK=ke([Jh,Hh]),wd=Ke.strict(),JO=Pt.extend({requestId:xd.optional(),reason:b().optional()}),Id=Tt.extend({method:L("notifications/cancelled"),params:JO}),HO=D({src:b(),mimeType:b().optional(),sizes:ne(b()).optional(),theme:Fe(["light","dark"]).optional()}),Gs=D({icons:ne(HO).optional()}),Ki=D({name:b(),title:b().optional()}),yx=Ki.extend({...Ki.shape,...Gs.shape,version:b(),websiteUrl:b().optional(),description:b().optional()}),WO=Vi(D({applyDefaults:Ee().optional()}),ve(b(),$e())),YO=Fs(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Vi(D({form:WO.optional(),url:je.optional()}),ve(b(),$e()).optional())),QO=Ze({list:je.optional(),cancel:je.optional(),requests:Ze({sampling:Ze({createMessage:je.optional()}).optional(),elicitation:Ze({create:je.optional()}).optional()}).optional()}),XO=Ze({list:je.optional(),cancel:je.optional(),requests:Ze({tools:Ze({call:je.optional()}).optional()}).optional()}),ej=D({experimental:ve(b(),je).optional(),sampling:D({context:je.optional(),tools:je.optional()}).optional(),elicitation:YO.optional(),roots:D({listChanged:Ee().optional()}).optional(),tasks:QO.optional(),extensions:ve(b(),je).optional()}),tj=St.extend({protocolVersion:b(),capabilities:ej,clientInfo:yx}),Wh=Ve.extend({method:L("initialize"),params:tj});var rj=D({experimental:ve(b(),je).optional(),logging:je.optional(),completions:je.optional(),prompts:D({listChanged:Ee().optional()}).optional(),resources:D({subscribe:Ee().optional(),listChanged:Ee().optional()}).optional(),tools:D({listChanged:Ee().optional()}).optional(),tasks:XO.optional(),extensions:ve(b(),je).optional()}),nj=Ke.extend({protocolVersion:b(),capabilities:rj,serverInfo:yx,instructions:b().optional()}),Yh=Tt.extend({method:L("notifications/initialized"),params:Pt.optional()});var zd=Ve.extend({method:L("ping"),params:St.optional()}),ij=D({progress:fe(),total:xe(fe()),message:xe(b())}),oj=D({...Pt.shape,...ij.shape,progressToken:lx}),Pd=Tt.extend({method:L("notifications/progress"),params:oj}),sj=St.extend({cursor:ux.optional()}),Bs=Ve.extend({params:sj.optional()}),Js=Ke.extend({nextCursor:ux.optional()}),aj=Fe(["working","input_required","completed","failed","cancelled"]),Hs=D({taskId:b(),status:aj,ttl:ke([fe(),As()]),createdAt:b(),lastUpdatedAt:b(),pollInterval:xe(fe()),statusMessage:xe(b())}),Gi=Ke.extend({task:Hs}),cj=Pt.merge(Hs),Ws=Tt.extend({method:L("notifications/tasks/status"),params:cj}),Td=Ve.extend({method:L("tasks/get"),params:St.extend({taskId:b()})}),Ed=Ke.merge(Hs),Nd=Ve.extend({method:L("tasks/result"),params:St.extend({taskId:b()})}),JK=Ke.loose(),Od=Bs.extend({method:L("tasks/list")}),jd=Js.extend({tasks:ne(Hs)}),Cd=Ve.extend({method:L("tasks/cancel"),params:St.extend({taskId:b()})}),vx=Ke.merge(Hs),_x=D({uri:b(),mimeType:xe(b()),_meta:ve(b(),$e()).optional()}),bx=_x.extend({text:b()}),Qh=b().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),$x=_x.extend({blob:Qh}),Ys=Fe(["user","assistant"]),Bi=D({audience:ne(Ys).optional(),priority:fe().min(0).max(1).optional(),lastModified:Vr.datetime({offset:!0}).optional()}),kx=D({...Ki.shape,...Gs.shape,uri:b(),description:xe(b()),mimeType:xe(b()),size:xe(fe()),annotations:Bi.optional(),_meta:xe(Ze({}))}),lj=D({...Ki.shape,...Gs.shape,uriTemplate:b(),description:xe(b()),mimeType:xe(b()),annotations:Bi.optional(),_meta:xe(Ze({}))}),uj=Bs.extend({method:L("resources/list")}),dj=Js.extend({resources:ne(kx)}),fj=Bs.extend({method:L("resources/templates/list")}),pj=Js.extend({resourceTemplates:ne(lj)}),Xh=St.extend({uri:b()}),mj=Xh,gj=Ve.extend({method:L("resources/read"),params:mj}),hj=Ke.extend({contents:ne(ke([bx,$x]))}),yj=Tt.extend({method:L("notifications/resources/list_changed"),params:Pt.optional()}),vj=Xh,_j=Ve.extend({method:L("resources/subscribe"),params:vj}),bj=Xh,$j=Ve.extend({method:L("resources/unsubscribe"),params:bj}),kj=Pt.extend({uri:b()}),Sj=Tt.extend({method:L("notifications/resources/updated"),params:kj}),xj=D({name:b(),description:xe(b()),required:xe(Ee())}),wj=D({...Ki.shape,...Gs.shape,description:xe(b()),arguments:xe(ne(xj)),_meta:xe(Ze({}))}),ey=Bs.extend({method:L("prompts/list")}),Ij=Js.extend({prompts:ne(wj)}),zj=St.extend({name:b(),arguments:ve(b(),b()).optional()}),ty=Ve.extend({method:L("prompts/get"),params:zj}),ry=D({type:L("text"),text:b(),annotations:Bi.optional(),_meta:ve(b(),$e()).optional()}),ny=D({type:L("image"),data:Qh,mimeType:b(),annotations:Bi.optional(),_meta:ve(b(),$e()).optional()}),iy=D({type:L("audio"),data:Qh,mimeType:b(),annotations:Bi.optional(),_meta:ve(b(),$e()).optional()}),Pj=D({type:L("tool_use"),name:b(),id:b(),input:ve(b(),$e()),_meta:ve(b(),$e()).optional()}),Tj=D({type:L("resource"),resource:ke([bx,$x]),annotations:Bi.optional(),_meta:ve(b(),$e()).optional()}),Ej=kx.extend({type:L("resource_link")}),oy=ke([ry,ny,iy,Ej,Tj]),Nj=D({role:Ys,content:oy}),Oj=Ke.extend({description:b().optional(),messages:ne(Nj)}),jj=Tt.extend({method:L("notifications/prompts/list_changed"),params:Pt.optional()}),Cj=D({title:b().optional(),readOnlyHint:Ee().optional(),destructiveHint:Ee().optional(),idempotentHint:Ee().optional(),openWorldHint:Ee().optional()}),Dj=D({taskSupport:Fe(["required","optional","forbidden"]).optional()}),Sx=D({...Ki.shape,...Gs.shape,description:b().optional(),inputSchema:D({type:L("object"),properties:ve(b(),je).optional(),required:ne(b()).optional()}).catchall($e()),outputSchema:D({type:L("object"),properties:ve(b(),je).optional(),required:ne(b()).optional()}).catchall($e()).optional(),annotations:Cj.optional(),execution:Dj.optional(),_meta:ve(b(),$e()).optional()}),sy=Bs.extend({method:L("tools/list")}),Aj=Js.extend({tools:ne(Sx)}),Dd=Ke.extend({content:ne(oy).default([]),structuredContent:ve(b(),$e()).optional(),isError:Ee().optional()}),HK=Dd.or(Ke.extend({toolResult:$e()})),Rj=Vs.extend({name:b(),arguments:ve(b(),$e()).optional()}),Qs=Ve.extend({method:L("tools/call"),params:Rj}),Mj=Tt.extend({method:L("notifications/tools/list_changed"),params:Pt.optional()}),WK=D({autoRefresh:Ee().default(!0),debounceMs:fe().int().nonnegative().default(300)}),Xs=Fe(["debug","info","notice","warning","error","critical","alert","emergency"]),Lj=St.extend({level:Xs}),ay=Ve.extend({method:L("logging/setLevel"),params:Lj}),Uj=Pt.extend({level:Xs,logger:b().optional(),data:$e()}),qj=Tt.extend({method:L("notifications/message"),params:Uj}),Zj=D({name:b().optional()}),Fj=D({hints:ne(Zj).optional(),costPriority:fe().min(0).max(1).optional(),speedPriority:fe().min(0).max(1).optional(),intelligencePriority:fe().min(0).max(1).optional()}),Vj=D({mode:Fe(["auto","required","none"]).optional()}),Kj=D({type:L("tool_result"),toolUseId:b().describe("The unique identifier for the corresponding tool call."),content:ne(oy).default([]),structuredContent:D({}).loose().optional(),isError:Ee().optional(),_meta:ve(b(),$e()).optional()}),Gj=Us("type",[ry,ny,iy]),kd=Us("type",[ry,ny,iy,Pj,Kj]),Bj=D({role:Ys,content:ke([kd,ne(kd)]),_meta:ve(b(),$e()).optional()}),Jj=Vs.extend({messages:ne(Bj),modelPreferences:Fj.optional(),systemPrompt:b().optional(),includeContext:Fe(["none","thisServer","allServers"]).optional(),temperature:fe().optional(),maxTokens:fe().int(),stopSequences:ne(b()).optional(),metadata:je.optional(),tools:ne(Sx).optional(),toolChoice:Vj.optional()}),Hj=Ve.extend({method:L("sampling/createMessage"),params:Jj}),ea=Ke.extend({model:b(),stopReason:xe(Fe(["endTurn","stopSequence","maxTokens"]).or(b())),role:Ys,content:Gj}),cy=Ke.extend({model:b(),stopReason:xe(Fe(["endTurn","stopSequence","maxTokens","toolUse"]).or(b())),role:Ys,content:ke([kd,ne(kd)])}),Wj=D({type:L("boolean"),title:b().optional(),description:b().optional(),default:Ee().optional()}),Yj=D({type:L("string"),title:b().optional(),description:b().optional(),minLength:fe().optional(),maxLength:fe().optional(),format:Fe(["email","uri","date","date-time"]).optional(),default:b().optional()}),Qj=D({type:Fe(["number","integer"]),title:b().optional(),description:b().optional(),minimum:fe().optional(),maximum:fe().optional(),default:fe().optional()}),Xj=D({type:L("string"),title:b().optional(),description:b().optional(),enum:ne(b()),default:b().optional()}),eC=D({type:L("string"),title:b().optional(),description:b().optional(),oneOf:ne(D({const:b(),title:b()})),default:b().optional()}),tC=D({type:L("string"),title:b().optional(),description:b().optional(),enum:ne(b()),enumNames:ne(b()).optional(),default:b().optional()}),rC=ke([Xj,eC]),nC=D({type:L("array"),title:b().optional(),description:b().optional(),minItems:fe().optional(),maxItems:fe().optional(),items:D({type:L("string"),enum:ne(b())}),default:ne(b()).optional()}),iC=D({type:L("array"),title:b().optional(),description:b().optional(),minItems:fe().optional(),maxItems:fe().optional(),items:D({anyOf:ne(D({const:b(),title:b()}))}),default:ne(b()).optional()}),oC=ke([nC,iC]),sC=ke([tC,rC,oC]),aC=ke([sC,Wj,Yj,Qj]),cC=Vs.extend({mode:L("form").optional(),message:b(),requestedSchema:D({type:L("object"),properties:ve(b(),aC),required:ne(b()).optional()})}),lC=Vs.extend({mode:L("url"),message:b(),elicitationId:b(),url:b().url()}),uC=ke([cC,lC]),dC=Ve.extend({method:L("elicitation/create"),params:uC}),fC=Pt.extend({elicitationId:b()}),pC=Tt.extend({method:L("notifications/elicitation/complete"),params:fC}),Ji=Ke.extend({action:Fe(["accept","decline","cancel"]),content:Fs(e=>e===null?void 0:e,ve(b(),ke([b(),fe(),Ee(),ne(b())])).optional())}),mC=D({type:L("ref/resource"),uri:b()});var gC=D({type:L("ref/prompt"),name:b()}),hC=St.extend({ref:ke([gC,mC]),argument:D({name:b(),value:b()}),context:D({arguments:ve(b(),b()).optional()}).optional()}),yC=Ve.extend({method:L("completion/complete"),params:hC});var vC=Ke.extend({completion:Ze({values:ne(b()).max(100),total:xe(fe().int()),hasMore:xe(Ee())})}),_C=D({uri:b().startsWith("file://"),name:b().optional(),_meta:ve(b(),$e()).optional()}),bC=Ve.extend({method:L("roots/list"),params:St.optional()}),ly=Ke.extend({roots:ne(_C)}),$C=Tt.extend({method:L("notifications/roots/list_changed"),params:Pt.optional()}),YK=ke([zd,Wh,yC,ay,ty,ey,uj,fj,gj,_j,$j,Qs,sy,Td,Nd,Od,Cd]),QK=ke([Id,Pd,Yh,$C,Ws]),XK=ke([wd,ea,cy,Ji,ly,Ed,jd,Gi]),eG=ke([zd,Hj,dC,bC,Td,Nd,Od,Cd]),tG=ke([Id,Pd,qj,Sj,yj,Mj,jj,Ws,pC]),rG=ke([wd,nj,vC,Oj,Ij,dj,pj,hj,Dd,Aj,Ed,jd,Gi]),Q=class e extends Error{constructor(t,r,i){super(`MCP error ${t}: ${r}`),this.code=t,this.data=i,this.name="McpError"}static fromError(t,r,i){if(t===ae.UrlElicitationRequired&&i){let n=i;if(n.elicitations)return new Vh(n.elicitations,r)}return new e(t,r,i)}},Vh=class extends Q{constructor(t,r=`URL elicitation${t.length>1?"s":""} required`){super(ae.UrlElicitationRequired,r,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}};function Gr(e){return e==="completed"||e==="failed"||e==="cancelled"}var AG=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function uy(e){let r=Vu(e)?.method;if(!r)throw new Error("Schema is missing a method literal");let i=Wk(r);if(typeof i!="string")throw new Error("Schema method literal must be a string");return i}function dy(e,t){let r=Fr(e,t);if(!r.success)throw r.error;return r.data}var zC=6e4,Ad=class{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Id,r=>{this._oncancel(r)}),this.setNotificationHandler(Pd,r=>{this._onprogress(r)}),this.setRequestHandler(zd,r=>({})),this._taskStore=t?.taskStore,this._taskMessageQueue=t?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Td,async(r,i)=>{let n=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!n)throw new Q(ae.InvalidParams,"Failed to retrieve task: Task not found");return{...n}}),this.setRequestHandler(Nd,async(r,i)=>{let n=async()=>{let o=r.params.taskId;if(this._taskMessageQueue){let a;for(;a=await this._taskMessageQueue.dequeue(o,i.sessionId);){if(a.type==="response"||a.type==="error"){let c=a.message,l=c.id,u=this._requestResolvers.get(l);if(u)if(this._requestResolvers.delete(l),a.type==="response")u(c);else{let d=c,f=new Q(d.error.code,d.error.message,d.error.data);u(f)}else{let d=a.type==="response"?"Response":"Error";this._onerror(new Error(`${d} handler missing for request ${l}`))}continue}await this._transport?.send(a.message,{relatedRequestId:i.requestId})}}let s=await this._taskStore.getTask(o,i.sessionId);if(!s)throw new Q(ae.InvalidParams,`Task not found: ${o}`);if(!Gr(s.status))return await this._waitForTaskUpdate(o,i.signal),await n();if(Gr(s.status)){let a=await this._taskStore.getTaskResult(o,i.sessionId);return this._clearTaskQueue(o),{...a,_meta:{...a._meta,[Kr]:{taskId:o}}}}return await n()};return await n()}),this.setRequestHandler(Od,async(r,i)=>{try{let{tasks:n,nextCursor:o}=await this._taskStore.listTasks(r.params?.cursor,i.sessionId);return{tasks:n,nextCursor:o,_meta:{}}}catch(n){throw new Q(ae.InvalidParams,`Failed to list tasks: ${n instanceof Error?n.message:String(n)}`)}}),this.setRequestHandler(Cd,async(r,i)=>{try{let n=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!n)throw new Q(ae.InvalidParams,`Task not found: ${r.params.taskId}`);if(Gr(n.status))throw new Q(ae.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",i.sessionId),this._clearTaskQueue(r.params.taskId);let o=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!o)throw new Q(ae.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...o}}catch(n){throw n instanceof Q?n:new Q(ae.InvalidRequest,`Failed to cancel task: ${n instanceof Error?n.message:String(n)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;this._requestHandlerAbortControllers.get(t.params.requestId)?.abort(t.params.reason)}_setupTimeout(t,r,i,n,o=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(n,r),startTime:Date.now(),timeout:r,maxTotalTimeout:i,resetTimeoutOnProgress:o,onTimeout:n})}_resetTimeout(t){let r=this._timeoutInfo.get(t);if(!r)return!1;let i=Date.now()-r.startTime;if(r.maxTotalTimeout&&i>=r.maxTotalTimeout)throw this._timeoutInfo.delete(t),Q.fromError(ae.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:i});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(t){let r=this._timeoutInfo.get(t);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(t))}async connect(t){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=t;let r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};let i=this.transport?.onerror;this._transport.onerror=o=>{i?.(o),this._onerror(o)};let n=this._transport?.onmessage;this._transport.onmessage=(o,s)=>{n?.(o,s),Ks(o)||gx(o)?this._onresponse(o):Bh(o)?this._onrequest(o,s):mx(o)?this._onnotification(o):this._onerror(new Error(`Unknown message type: ${JSON.stringify(o)}`))},await this._transport.start()}_onclose(){let t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let i of this._timeoutInfo.values())clearTimeout(i.timeoutId);this._timeoutInfo.clear();for(let i of this._requestHandlerAbortControllers.values())i.abort();this._requestHandlerAbortControllers.clear();let r=Q.fromError(ae.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let i of t.values())i(r)}_onerror(t){this.onerror?.(t)}_onnotification(t){let r=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(t,r){let i=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,n=this._transport,o=t.params?._meta?.[Kr]?.taskId;if(i===void 0){let u={jsonrpc:"2.0",id:t.id,error:{code:ae.MethodNotFound,message:"Method not found"}};o&&this._taskMessageQueue?this._enqueueTaskMessage(o,{type:"error",message:u,timestamp:Date.now()},n?.sessionId).catch(d=>this._onerror(new Error(`Failed to enqueue error response: ${d}`))):n?.send(u).catch(d=>this._onerror(new Error(`Failed to send an error response: ${d}`)));return}let s=new AbortController;this._requestHandlerAbortControllers.set(t.id,s);let a=dx(t.params)?t.params.task:void 0,c=this._taskStore?this.requestTaskStore(t,n?.sessionId):void 0,l={signal:s.signal,sessionId:n?.sessionId,_meta:t.params?._meta,sendNotification:async u=>{if(s.signal.aborted)return;let d={relatedRequestId:t.id};o&&(d.relatedTask={taskId:o}),await this.notification(u,d)},sendRequest:async(u,d,f)=>{if(s.signal.aborted)throw new Q(ae.ConnectionClosed,"Request was cancelled");let p={...f,relatedRequestId:t.id};o&&!p.relatedTask&&(p.relatedTask={taskId:o});let g=p.relatedTask?.taskId??o;return g&&c&&await c.updateTaskStatus(g,"input_required"),await this.request(u,d,p)},authInfo:r?.authInfo,requestId:t.id,requestInfo:r?.requestInfo,taskId:o,taskStore:c,taskRequestedTtl:a?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};Promise.resolve().then(()=>{a&&this.assertTaskHandlerCapability(t.method)}).then(()=>i(t,l)).then(async u=>{if(s.signal.aborted)return;let d={result:u,jsonrpc:"2.0",id:t.id};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"response",message:d,timestamp:Date.now()},n?.sessionId):await n?.send(d)},async u=>{if(s.signal.aborted)return;let d={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(u.code)?u.code:ae.InternalError,message:u.message??"Internal error",...u.data!==void 0&&{data:u.data}}};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"error",message:d,timestamp:Date.now()},n?.sessionId):await n?.send(d)}).catch(u=>this._onerror(new Error(`Failed to send response: ${u}`))).finally(()=>{this._requestHandlerAbortControllers.get(t.id)===s&&this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){let{progressToken:r,...i}=t.params,n=Number(r),o=this._progressHandlers.get(n);if(!o){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}let s=this._responseHandlers.get(n),a=this._timeoutInfo.get(n);if(a&&s&&a.resetTimeoutOnProgress)try{this._resetTimeout(n)}catch(c){this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),s(c);return}o(i)}_onresponse(t){let r=Number(t.id),i=this._requestResolvers.get(r);if(i){if(this._requestResolvers.delete(r),Ks(t))i(t);else{let s=new Q(t.error.code,t.error.message,t.error.data);i(s)}return}let n=this._responseHandlers.get(r);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let o=!1;if(Ks(t)&&t.result&&typeof t.result=="object"){let s=t.result;if(s.task&&typeof s.task=="object"){let a=s.task;typeof a.taskId=="string"&&(o=!0,this._taskProgressTokens.set(a.taskId,r))}}if(o||this._progressHandlers.delete(r),Ks(t))n(t);else{let s=Q.fromError(t.error.code,t.error.message,t.error.data);n(s)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(t,r,i){let{task:n}=i??{};if(!n){try{yield{type:"result",result:await this.request(t,r,i)}}catch(s){yield{type:"error",error:s instanceof Q?s:new Q(ae.InternalError,String(s))}}return}let o;try{let s=await this.request(t,Gi,i);if(s.task)o=s.task.taskId,yield{type:"taskCreated",task:s.task};else throw new Q(ae.InternalError,"Task creation did not return a task");for(;;){let a=await this.getTask({taskId:o},i);if(yield{type:"taskStatus",task:a},Gr(a.status)){a.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:o},r,i)}:a.status==="failed"?yield{type:"error",error:new Q(ae.InternalError,`Task ${o} failed`)}:a.status==="cancelled"&&(yield{type:"error",error:new Q(ae.InternalError,`Task ${o} was cancelled`)});return}if(a.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:o},r,i)};return}let c=a.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(l=>setTimeout(l,c)),i?.signal?.throwIfAborted()}}catch(s){yield{type:"error",error:s instanceof Q?s:new Q(ae.InternalError,String(s))}}}request(t,r,i){let{relatedRequestId:n,resumptionToken:o,onresumptiontoken:s,task:a,relatedTask:c}=i??{};return new Promise((l,u)=>{let d=k=>{u(k)};if(!this._transport){d(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method),a&&this.assertTaskCapability(t.method)}catch(k){d(k);return}i?.signal?.throwIfAborted();let f=this._requestMessageId++,p={...t,jsonrpc:"2.0",id:f};i?.onprogress&&(this._progressHandlers.set(f,i.onprogress),p.params={...t.params,_meta:{...t.params?._meta||{},progressToken:f}}),a&&(p.params={...p.params,task:a}),c&&(p.params={...p.params,_meta:{...p.params?._meta||{},[Kr]:c}});let g=k=>{this._responseHandlers.delete(f),this._progressHandlers.delete(f),this._cleanupTimeout(f),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:f,reason:String(k)}},{relatedRequestId:n,resumptionToken:o,onresumptiontoken:s}).catch(N=>this._onerror(new Error(`Failed to send cancellation: ${N}`)));let x=k instanceof Q?k:new Q(ae.RequestTimeout,String(k));u(x)};this._responseHandlers.set(f,k=>{if(!i?.signal?.aborted){if(k instanceof Error)return u(k);try{let x=Fr(r,k.result);x.success?l(x.data):u(x.error)}catch(x){u(x)}}}),i?.signal?.addEventListener("abort",()=>{g(i?.signal?.reason)});let m=i?.timeout??zC,h=()=>g(Q.fromError(ae.RequestTimeout,"Request timed out",{timeout:m}));this._setupTimeout(f,m,i?.maxTotalTimeout,h,i?.resetTimeoutOnProgress??!1);let $=c?.taskId;if($){let k=x=>{let N=this._responseHandlers.get(f);N?N(x):this._onerror(new Error(`Response handler missing for side-channeled request ${f}`))};this._requestResolvers.set(f,k),this._enqueueTaskMessage($,{type:"request",message:p,timestamp:Date.now()}).catch(x=>{this._cleanupTimeout(f),u(x)})}else this._transport.send(p,{relatedRequestId:n,resumptionToken:o,onresumptiontoken:s}).catch(k=>{this._cleanupTimeout(f),u(k)})})}async getTask(t,r){return this.request({method:"tasks/get",params:t},Ed,r)}async getTaskResult(t,r,i){return this.request({method:"tasks/result",params:t},r,i)}async listTasks(t,r){return this.request({method:"tasks/list",params:t},jd,r)}async cancelTask(t,r){return this.request({method:"tasks/cancel",params:t},vx,r)}async notification(t,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);let i=r?.relatedTask?.taskId;if(i){let a={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...t.params?._meta||{},[Kr]:r.relatedTask}}};await this._enqueueTaskMessage(i,{type:"notification",message:a,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let a={...t,jsonrpc:"2.0"};r?.relatedTask&&(a={...a,params:{...a.params,_meta:{...a.params?._meta||{},[Kr]:r.relatedTask}}}),this._transport?.send(a,r).catch(c=>this._onerror(c))});return}let s={...t,jsonrpc:"2.0"};r?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[Kr]:r.relatedTask}}}),await this._transport.send(s,r)}setRequestHandler(t,r){let i=uy(t);this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(n,o)=>{let s=dy(t,n);return Promise.resolve(r(s,o))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,r){let i=uy(t);this._notificationHandlers.set(i,n=>{let o=dy(t,n);return Promise.resolve(r(o))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){let r=this._taskProgressTokens.get(t);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,r,i){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let n=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,r,i,n)}async _clearTaskQueue(t,r){if(this._taskMessageQueue){let i=await this._taskMessageQueue.dequeueAll(t,r);for(let n of i)if(n.type==="request"&&Bh(n.message)){let o=n.message.id,s=this._requestResolvers.get(o);s?(s(new Q(ae.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(o)):this._onerror(new Error(`Resolver missing for request ${o} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,r){let i=this._options?.defaultTaskPollInterval??1e3;try{let n=await this._taskStore?.getTask(t);n?.pollInterval&&(i=n.pollInterval)}catch{}return new Promise((n,o)=>{if(r.aborted){o(new Q(ae.InvalidRequest,"Request cancelled"));return}let s=setTimeout(n,i);r.addEventListener("abort",()=>{clearTimeout(s),o(new Q(ae.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,r){let i=this._taskStore;if(!i)throw new Error("No task store configured");return{createTask:async n=>{if(!t)throw new Error("No request provided");return await i.createTask(n,t.id,{method:t.method,params:t.params},r)},getTask:async n=>{let o=await i.getTask(n,r);if(!o)throw new Q(ae.InvalidParams,"Failed to retrieve task: Task not found");return o},storeTaskResult:async(n,o,s)=>{await i.storeTaskResult(n,o,s,r);let a=await i.getTask(n,r);if(a){let c=Ws.parse({method:"notifications/tasks/status",params:a});await this.notification(c),Gr(a.status)&&this._cleanupTaskProgressHandler(n)}},getTaskResult:n=>i.getTaskResult(n,r),updateTaskStatus:async(n,o,s)=>{let a=await i.getTask(n,r);if(!a)throw new Q(ae.InvalidParams,`Task "${n}" not found - it may have been cleaned up`);if(Gr(a.status))throw new Q(ae.InvalidParams,`Cannot update task "${n}" from terminal status "${a.status}" to "${o}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await i.updateTaskStatus(n,o,s,r);let c=await i.getTask(n,r);if(c){let l=Ws.parse({method:"notifications/tasks/status",params:c});await this.notification(l),Gr(c.status)&&this._cleanupTaskProgressHandler(n)}},listTasks:n=>i.listTasks(n,r)}}};function xx(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function wx(e,t){let r={...e};for(let i in t){let n=i,o=t[n];if(o===void 0)continue;let s=r[n];xx(s)&&xx(o)?r[n]={...s,...o}:r[n]=o}return r}var dI=hc(Wv(),1),fI=hc(uI(),1);function v4(){let e=new dI.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,fI.default)(e),e}var _f=class{constructor(t){this._ajv=t??v4()}getValidator(t){let r="$id"in t&&typeof t.$id=="string"?this._ajv.getSchema(t.$id)??this._ajv.compile(t):this._ajv.compile(t);return i=>r(i)?{valid:!0,data:i,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}};var bf=class{constructor(t){this._server=t}requestStream(t,r,i){return this._server.requestStream(t,r,i)}createMessageStream(t,r){let i=this._server.getClientCapabilities();if((t.tools||t.toolChoice)&&!i?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(t.messages.length>0){let n=t.messages[t.messages.length-1],o=Array.isArray(n.content)?n.content:[n.content],s=o.some(u=>u.type==="tool_result"),a=t.messages.length>1?t.messages[t.messages.length-2]:void 0,c=a?Array.isArray(a.content)?a.content:[a.content]:[],l=c.some(u=>u.type==="tool_use");if(s){if(o.some(u=>u.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let u=new Set(c.filter(f=>f.type==="tool_use").map(f=>f.id)),d=new Set(o.filter(f=>f.type==="tool_result").map(f=>f.toolUseId));if(u.size!==d.size||![...u].every(f=>d.has(f)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:t},ea,r)}elicitInputStream(t,r){let i=this._server.getClientCapabilities(),n=t.mode??"form";switch(n){case"url":{if(!i?.elicitation?.url)throw new Error("Client does not support url elicitation.");break}case"form":{if(!i?.elicitation?.form)throw new Error("Client does not support form elicitation.");break}}let o=n==="form"&&t.mode===void 0?{...t,mode:"form"}:t;return this.requestStream({method:"elicitation/create",params:o},Ji,r)}async getTask(t,r){return this._server.getTask({taskId:t},r)}async getTaskResult(t,r,i){return this._server.getTaskResult({taskId:t},r,i)}async listTasks(t,r){return this._server.listTasks(t?{cursor:t}:void 0,r)}async cancelTask(t,r){return this._server.cancelTask({taskId:t},r)}};function pI(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"tools/call":if(!e.tools?.call)throw new Error(`${r} does not support task creation for tools/call (required for ${t})`);break;default:break}}function mI(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"sampling/createMessage":if(!e.sampling?.createMessage)throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${t})`);break;case"elicitation/create":if(!e.elicitation?.create)throw new Error(`${r} does not support task creation for elicitation/create (required for ${t})`);break;default:break}}var $f=class extends Ad{constructor(t,r){super(r),this._serverInfo=t,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Xs.options.map((i,n)=>[i,n])),this.isMessageIgnored=(i,n)=>{let o=this._loggingLevels.get(n);return o?this.LOG_LEVEL_SEVERITY.get(i)<this.LOG_LEVEL_SEVERITY.get(o):!1},this._capabilities=r?.capabilities??{},this._instructions=r?.instructions,this._jsonSchemaValidator=r?.jsonSchemaValidator??new _f,this.setRequestHandler(Wh,i=>this._oninitialize(i)),this.setNotificationHandler(Yh,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(ay,async(i,n)=>{let o=n.sessionId||n.requestInfo?.headers["mcp-session-id"]||void 0,{level:s}=i.params,a=Xs.safeParse(s);return a.success&&this._loggingLevels.set(o,a.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new bf(this)}),this._experimental}registerCapabilities(t){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=wx(this._capabilities,t)}setRequestHandler(t,r){let n=Vu(t)?.method;if(!n)throw new Error("Schema is missing a method literal");let o;if(Ri(n)){let a=n;o=a._zod?.def?.value??a.value}else{let a=n;o=a._def?.value??a.value}if(typeof o!="string")throw new Error("Schema method literal must be a string");if(o==="tools/call"){let a=async(c,l)=>{let u=Fr(Qs,c);if(!u.success){let g=u.error instanceof Error?u.error.message:String(u.error);throw new Q(ae.InvalidParams,`Invalid tools/call request: ${g}`)}let{params:d}=u.data,f=await Promise.resolve(r(c,l));if(d.task){let g=Fr(Gi,f);if(!g.success){let m=g.error instanceof Error?g.error.message:String(g.error);throw new Q(ae.InvalidParams,`Invalid task creation result: ${m}`)}return g.data}let p=Fr(Dd,f);if(!p.success){let g=p.error instanceof Error?p.error.message:String(p.error);throw new Q(ae.InvalidParams,`Invalid tools/call result: ${g}`)}return p.data};return super.setRequestHandler(t,a)}return super.setRequestHandler(t,r)}assertCapabilityForMethod(t){switch(t){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new Error(`Client does not support sampling (required for ${t})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new Error(`Client does not support elicitation (required for ${t})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new Error(`Client does not support listing roots (required for ${t})`);break;case"ping":break}}assertNotificationCapability(t){switch(t){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new Error(`Server does not support notifying about resources (required for ${t})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${t})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${t})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new Error(`Client does not support URL elicitation (required for ${t})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(t){if(this._capabilities)switch(t){case"completion/complete":if(!this._capabilities.completions)throw new Error(`Server does not support completions (required for ${t})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${t})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${t})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Server does not support tasks capability (required for ${t})`);break;case"ping":case"initialize":break}}assertTaskCapability(t){mI(this._clientCapabilities?.tasks?.requests,t,"Client")}assertTaskHandlerCapability(t){this._capabilities&&pI(this._capabilities.tasks?.requests,t,"Server")}async _oninitialize(t){let r=t.params.protocolVersion;return this._clientCapabilities=t.params.capabilities,this._clientVersion=t.params.clientInfo,{protocolVersion:cx.includes(r)?r:Kh,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},wd)}async createMessage(t,r){if((t.tools||t.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(t.messages.length>0){let i=t.messages[t.messages.length-1],n=Array.isArray(i.content)?i.content:[i.content],o=n.some(l=>l.type==="tool_result"),s=t.messages.length>1?t.messages[t.messages.length-2]:void 0,a=s?Array.isArray(s.content)?s.content:[s.content]:[],c=a.some(l=>l.type==="tool_use");if(o){if(n.some(l=>l.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!c)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(c){let l=new Set(a.filter(d=>d.type==="tool_use").map(d=>d.id)),u=new Set(n.filter(d=>d.type==="tool_result").map(d=>d.toolUseId));if(l.size!==u.size||![...l].every(d=>u.has(d)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return t.tools?this.request({method:"sampling/createMessage",params:t},cy,r):this.request({method:"sampling/createMessage",params:t},ea,r)}async elicitInput(t,r){switch(t.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support url elicitation.");let n=t;return this.request({method:"elicitation/create",params:n},Ji,r)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw new Error("Client does not support form elicitation.");let n=t.mode==="form"?t:{...t,mode:"form"},o=await this.request({method:"elicitation/create",params:n},Ji,r);if(o.action==="accept"&&o.content&&n.requestedSchema)try{let a=this._jsonSchemaValidator.getValidator(n.requestedSchema)(o.content);if(!a.valid)throw new Q(ae.InvalidParams,`Elicitation response content does not match requested schema: ${a.errorMessage}`)}catch(s){throw s instanceof Q?s:new Q(ae.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return o}}}createElicitationCompletionNotifier(t,r){if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:t}},r)}async listRoots(t,r){return this.request({method:"roots/list",params:t},ly,r)}async sendLoggingMessage(t,r){if(this._capabilities.logging&&!this.isMessageIgnored(t.level,r))return this.notification({method:"notifications/message",params:t})}async sendResourceUpdated(t){return this.notification({method:"notifications/resources/updated",params:t})}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"})}};var i_=hc(require("node:process"),1);var kf=class{append(t){this._buffer=this._buffer?Buffer.concat([this._buffer,t]):t}readMessage(){if(!this._buffer)return null;let t=this._buffer.indexOf(`
187
- `);if(t===-1)return null;let r=this._buffer.toString("utf8",0,t).replace(/\r$/,"");return this._buffer=this._buffer.subarray(t+1),_4(r)}clear(){this._buffer=void 0}};function _4(e){return hx.parse(JSON.parse(e))}function gI(e){return JSON.stringify(e)+`
188
- `}var Sf=class{constructor(t=i_.default.stdin,r=i_.default.stdout){this._stdin=t,this._stdout=r,this._readBuffer=new kf,this._started=!1,this._ondata=i=>{this._readBuffer.append(i),this.processReadBuffer()},this._onerror=i=>{this.onerror?.(i)}}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)}processReadBuffer(){for(;;)try{let t=this._readBuffer.readMessage();if(t===null)break;this.onmessage?.(t)}catch(t){this.onerror?.(t)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(t){return new Promise(r=>{let i=gI(t);this._stdout.write(i)?r():this._stdout.once("drain",r)})}};var hI=process.env.GODD_BRAND_PREFIX??"godd",tn="godd",V={displayName:"GoDD MCP \u03B1",cli:"godd-a",mcpKey:"godd-a",configFile:`config.${hI}`,licensePrefix:hI.toUpperCase(),toolPrefix:""};var bp=require("node:fs"),sT=require("node:path"),aT=hc(iT(),1);var cc=["en","ja","ru"];function xo(e){return cc.includes(e)?e:null}var BZ=F.object({vcs:F.string().optional(),browser_automation:F.string().optional(),e2e_testing:F.string().optional(),unit_testing:F.string().optional(),linting:F.string().optional(),formatting:F.string().optional(),type_checking:F.string().optional(),coverage:F.string().optional(),documentation:F.string().optional(),secret_scanning:F.string().optional(),security_analysis:F.string().optional(),unused_code:F.string().optional(),dependency_analysis:F.string().optional()}),JZ=F.object({docs_dir:F.string().default("documents"),generate_gitattributes:F.preprocess(e=>e==="true"?!0:e==="false"?!1:e,F.boolean().default(!0)),generate_dependabot:F.preprocess(e=>e==="true"?!0:e==="false"?!1:e,F.boolean().default(!0))}),HZ=F.object({tool:F.string().optional(),auto_suggest:F.preprocess(e=>e==="true"?!0:e==="false"?!1:e,F.boolean().optional()),design_review:F.preprocess(e=>e==="true"?!0:e==="false"?!1:e,F.boolean().optional())}),Lb=F.enum(cc),oT=F.object({display_language:Lb.default("en"),main_language:Lb.default("en"),sub_languages:F.array(Lb).default([]),programming_languages:F.array(F.string()).default([]),frontend:F.array(F.string()).default([]),backend:F.array(F.string()).default([]),database:F.array(F.string()).default([]),orm:F.array(F.string()).default([]),infra:F.array(F.string()).default([]),game:F.array(F.string()).default([]),mobile:F.array(F.string()).default([]),other:F.array(F.string()).default([]),tools:BZ.default({}),design:HZ.default({}),godd_files:JZ.default({docs_dir:"documents",generate_gitattributes:!0,generate_dependabot:!0})});function lc(e=process.cwd()){let t=(0,sT.resolve)(e,V.configFile);if(!(0,bp.existsSync)(t))return null;try{let r=(0,bp.readFileSync)(t,"utf-8"),i=(0,aT.parse)(r)??{};return WZ(i),YZ(i),oT.parse(i)}catch(r){return console.error(`[${V.displayName}] Failed to parse ${V.configFile}:`,r instanceof Error?r.message:r),null}}function WZ(e){if("language"in e&&!("display_language"in e)){let t=e.language;e.display_language=t,e.main_language=t,delete e.language}}function YZ(e){if("e2e_tool"in e){let t=typeof e.tools=="object"&&!Array.isArray(e.tools)?e.tools:{};t.e2e_testing=e.e2e_tool,e.tools=t,delete e.e2e_tool}for(let t of["tools","design","godd_files"]){let r=e[t];(r==null||Array.isArray(r)&&r.length===0)&&(e[t]={})}}var $p=new Set(["typescript","javascript","python","java","csharp","cpp","c","go","rust","php","swift","kotlin","ruby","dart","r","scala","objective-c","sql","html-css","bash","elixir","haskell","perl","lua","julia","clojure","fsharp","groovy","visual-basic","powershell","erlang","ocaml","zig","nim","crystal","solidity","fortran","cobol","assembly","d","ada","v","pascal","prolog","gdscript","gdshader"]),kp=new Set(["react","nextjs","vue","nuxt","svelte","angular","flutter","blazor","solid","astro","remix","qwik","ember","htmx","alpine","vite","electron","tauri","liftkit"]),Sp=new Set(["express","nestjs","hono","fastify","fastapi","django","flask","gin","echo","fiber","chi","spring-boot","quarkus","micronaut","ktor","laravel","symfony","slim","codeigniter","cakephp","rails","sinatra","hanami","actix-web","axum","rocket","phoenix","aspnet","vapor","play","akka-http","servant","yesod","mojolicious","dancer","ring","pedestal","dart-frog"]),xp=new Set(["postgresql","mysql","mongodb","redis","sqlite","dynamodb","cassandra","neo4j","elasticsearch","supabase","firebase","cockroachdb"]),wp=new Set(["prisma","drizzle","typeorm","sequelize","sqlalchemy","tortoise-orm","eloquent","doctrine","activerecord","hibernate","mybatis","entity-framework","gorm","ent","diesel","sea-orm","ecto","exposed","peewee","django-orm"]),Ip=new Set(["docker","terraform","vercel","aws","gcp","github-actions","azure","cloudflare","fly-io","render","heroku","kubernetes","ansible","pulumi","netlify","railway"]),zp=new Set(["react-native","expo","flutter","swiftui","uikit","jetpack-compose","kotlin-multiplatform","ionic","capacitor","maui","xamarin","tauri-mobile","nativescript"]),Pp=new Set(["godot","phaser","pyxel","unity","unreal","bevy","love2d","monogame","pygame","libgdx","cocos2d","defold","renpy"]),QZ={typescript:{frontend:["react","nextjs","vue","nuxt","svelte","angular","solid","astro","remix","qwik","ember","htmx","alpine","vite","electron","tauri"],backend:["express","nestjs","hono","fastify"],orm:["prisma","drizzle","typeorm","sequelize"],mobile:["react-native","expo","ionic","capacitor","nativescript"]},javascript:{frontend:["react","nextjs","vue","nuxt","svelte","angular","solid","astro","remix","qwik","ember","htmx","alpine","vite","electron","tauri"],backend:["express","nestjs","hono","fastify"],orm:["prisma","drizzle","typeorm","sequelize"],mobile:["react-native","expo","ionic","capacitor","nativescript"]},python:{backend:["fastapi","django","flask"],orm:["sqlalchemy","tortoise-orm","peewee","django-orm"],game:["pygame","renpy","pyxel"]},go:{backend:["gin","echo","fiber","chi"],orm:["gorm","ent"]},rust:{frontend:["tauri"],backend:["actix-web","axum","rocket"],orm:["diesel","sea-orm"],game:["bevy"]},java:{backend:["spring-boot","quarkus","micronaut"],orm:["hibernate","mybatis"],mobile:["jetpack-compose"],game:["libgdx"]},kotlin:{backend:["spring-boot","ktor"],orm:["exposed","hibernate"],mobile:["jetpack-compose","kotlin-multiplatform"]},php:{backend:["laravel","symfony","slim","codeigniter","cakephp"],orm:["eloquent","doctrine"]},ruby:{backend:["rails","sinatra","hanami"],orm:["activerecord"]},swift:{backend:["vapor"],mobile:["swiftui","uikit"]},dart:{frontend:["flutter"],backend:["dart-frog"],mobile:["flutter"]},csharp:{backend:["aspnet"],orm:["entity-framework"],mobile:["maui","xamarin"],game:["unity","monogame"]},elixir:{backend:["phoenix"],orm:["ecto"]},scala:{backend:["play","akka-http"]},haskell:{backend:["servant","yesod"]},perl:{backend:["mojolicious","dancer"]},clojure:{backend:["ring","pedestal"]},lua:{game:["love2d","defold"]},gdscript:{game:["godot"]},cpp:{game:["unreal","cocos2d","godot"]}};function wo(e,t,r){if(r.length===0)return e;let i=new Set;for(let n of r){let o=QZ[n];if(!o)continue;let s=o[t];if(s)for(let a of s)i.add(a)}return i.size===0?e:e.filter(n=>i.has(n))}function XZ(e,t){let r=e.length,i=t.length,n=Array.from({length:r+1},()=>Array(i+1).fill(0));for(let o=0;o<=r;o++)n[o][0]=o;for(let o=0;o<=i;o++)n[0][o]=o;for(let o=1;o<=r;o++)for(let s=1;s<=i;s++){let a=e[o-1]===t[s-1]?0:1;n[o][s]=Math.min(n[o-1][s]+1,n[o][s-1]+1,n[o-1][s-1]+a)}return n[r][i]}function e2(e,t,r=2){let i=null,n=r+1;for(let o of t){if(Math.abs(o.length-e.length)>r)continue;let s=XZ(e.toLowerCase(),o.toLowerCase());s<n&&(n=s,i=o)}return i}var t2=[{field:"programming_languages",known:$p},{field:"frontend",known:kp},{field:"backend",known:Sp},{field:"database",known:xp},{field:"orm",known:wp},{field:"infra",known:Ip},{field:"game",known:Pp},{field:"mobile",known:zp}];function Tp(e){let t=[];for(let{field:r,known:i}of t2){let n=e[r];if(Array.isArray(n))for(let o of n)typeof o=="string"&&(i.has(o)||t.push({field:r,value:o,suggestion:e2(o,i)}))}return t}var cT=[{field:"display_language",type:"string",descriptions:{en:"GoDD display language (en / ja / ru)",ja:"GoDD \u306E\u8868\u793A\u8A00\u8A9E\uFF08en / ja / ru\uFF09",ru:"\u042F\u0437\u044B\u043A \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F GoDD (en / ja / ru)"},values:["en","ja","ru"]},{field:"main_language",type:"string",descriptions:{en:"Project main language (en / ja / ru)",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30E1\u30A4\u30F3\u8A00\u8A9E\uFF08en / ja / ru\uFF09",ru:"\u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u044F\u0437\u044B\u043A \u043F\u0440\u043E\u0435\u043A\u0442\u0430 (en / ja / ru)"},values:["en","ja","ru"]},{field:"sub_languages",type:"string[]",descriptions:{en:"Team sub-languages",ja:"\u30C1\u30FC\u30E0\u306E\u30B5\u30D6\u8A00\u8A9E",ru:"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u044F\u0437\u044B\u043A\u0438 \u043A\u043E\u043C\u0430\u043D\u0434\u044B"},values:["en","ja","ru"]},{field:"programming_languages",type:"string[]",descriptions:{en:"Programming languages",ja:"\u30D7\u30ED\u30B0\u30E9\u30DF\u30F3\u30B0\u8A00\u8A9E",ru:"\u042F\u0437\u044B\u043A\u0438 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F"},values:[...$p]},{field:"frontend",type:"string[]",descriptions:{en:"Frontend frameworks",ja:"\u30D5\u30ED\u30F3\u30C8\u30A8\u30F3\u30C9\u30D5\u30EC\u30FC\u30E0\u30EF\u30FC\u30AF",ru:"\u0424\u0440\u043E\u043D\u0442\u0435\u043D\u0434-\u0444\u0440\u0435\u0439\u043C\u0432\u043E\u0440\u043A\u0438"},values:[...kp]},{field:"backend",type:"string[]",descriptions:{en:"Backend frameworks",ja:"\u30D0\u30C3\u30AF\u30A8\u30F3\u30C9\u30D5\u30EC\u30FC\u30E0\u30EF\u30FC\u30AF",ru:"\u0411\u044D\u043A\u0435\u043D\u0434-\u0444\u0440\u0435\u0439\u043C\u0432\u043E\u0440\u043A\u0438"},values:[...Sp]},{field:"database",type:"string[]",descriptions:{en:"Databases",ja:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9",ru:"\u0411\u0430\u0437\u044B \u0434\u0430\u043D\u043D\u044B\u0445"},values:[...xp]},{field:"orm",type:"string[]",descriptions:{en:"ORM",ja:"ORM",ru:"ORM"},values:[...wp]},{field:"infra",type:"string[]",descriptions:{en:"Infrastructure",ja:"\u30A4\u30F3\u30D5\u30E9",ru:"\u0418\u043D\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0430"},values:[...Ip]},{field:"game",type:"string[]",descriptions:{en:"Game engines / frameworks",ja:"\u30B2\u30FC\u30E0\u30A8\u30F3\u30B8\u30F3 / \u30D5\u30EC\u30FC\u30E0\u30EF\u30FC\u30AF",ru:"\u0418\u0433\u0440\u043E\u0432\u044B\u0435 \u0434\u0432\u0438\u0436\u043A\u0438 / \u0444\u0440\u0435\u0439\u043C\u0432\u043E\u0440\u043A\u0438"},values:[...Pp]},{field:"mobile",type:"string[]",descriptions:{en:"Mobile / Cross-platform",ja:"\u30E2\u30D0\u30A4\u30EB / \u30AF\u30ED\u30B9\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0",ru:"\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u044B\u0435 / \u041A\u0440\u043E\u0441\u0441\u043F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0435\u043D\u043D\u044B\u0435"},values:[...zp]},{field:"other",type:"string[]",descriptions:{en:"Other (no validation, free text)",ja:"\u305D\u306E\u4ED6\uFF08\u30D0\u30EA\u30C7\u30FC\u30B7\u30E7\u30F3\u5BFE\u8C61\u5916\u3001\u81EA\u7531\u8A18\u8FF0\uFF09",ru:"\u041F\u0440\u043E\u0447\u0435\u0435 (\u0431\u0435\u0437 \u0432\u0430\u043B\u0438\u0434\u0430\u0446\u0438\u0438, \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442)"},values:[]},{field:"design",type:"object",descriptions:{en:"Design tool integration (tool: pencil/figma, auto_suggest: true/false, design_review: true/false)",ja:"\u30C7\u30B6\u30A4\u30F3\u30C4\u30FC\u30EB\u9023\u643A\uFF08tool: pencil/figma\u3001auto_suggest: true/false\u3001design_review: true/false\uFF09",ru:"\u0418\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044F \u0434\u0438\u0437\u0430\u0439\u043D-\u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u0430 (tool: pencil/figma, auto_suggest: true/false, design_review: true/false)"},values:[]},{field:"godd_files",type:"object",descriptions:{en:"GoDD managed files settings (docs_dir: path string, generate_gitattributes: true/false, generate_dependabot: true/false)",ja:"GoDD \u7BA1\u7406\u30D5\u30A1\u30A4\u30EB\u8A2D\u5B9A\uFF08docs_dir: \u30D1\u30B9\u6587\u5B57\u5217\u3001generate_gitattributes: true/false\u3001generate_dependabot: true/false\uFF09",ru:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0444\u0430\u0439\u043B\u043E\u0432 GoDD (docs_dir: \u0441\u0442\u0440\u043E\u043A\u0430 \u043F\u0443\u0442\u0438, generate_gitattributes: true/false, generate_dependabot: true/false)"},values:[]}];function lT(){return new Set([...cT.map(e=>e.field),"tools","design"])}var r2={en:{validValues:"Valid values",toolsDescription:"Tool settings (optional). Keys: vcs, browser_automation, e2e_testing, unit_testing, linting, formatting, type_checking, coverage, documentation, secret_scanning, security_analysis, unused_code, dependency_analysis"},ja:{validValues:"\u6709\u52B9\u5024",toolsDescription:"\u30C4\u30FC\u30EB\u8A2D\u5B9A\uFF08\u7701\u7565\u53EF\uFF09\u3002\u30AD\u30FC: vcs, browser_automation, e2e_testing, unit_testing, linting, formatting, type_checking, coverage, documentation, secret_scanning, security_analysis, unused_code, dependency_analysis"},ru:{validValues:"\u0414\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F",toolsDescription:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 (\u043D\u0435\u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E). \u041A\u043B\u044E\u0447\u0438: vcs, browser_automation, e2e_testing, unit_testing, linting, formatting, type_checking, coverage, documentation, secret_scanning, security_analysis, unused_code, dependency_analysis"}};function uT(e="ja"){let t=r2[e],r=[];for(let i of cT)r.push(`### ${i.field} (${i.type})`),r.push(i.descriptions[e]),i.values.length>0&&r.push(`${t.validValues}: ${i.values.join(", ")}`),r.push("");return r.push("### tools (object)"),r.push(t.toolsDescription),r.push(""),r.join(`
189
- `)}var Ub="https://www.getgodd.dev/contact",n2={en:{header:"\u26A0 config.godd contains unrecognized values. Please fix them and try again.",problemValues:"Problematic values:",suggestion:(e,t)=>` - "${e}" \u2192 did you mean "${t}"?`,unsupported:e=>` - "${e}" \u2192 currently unsupported. Contact ${Ub} to request support.`,fixHeader:"How to fix:",fixEdit:" 1. Edit config.godd directly to correct the values",fixReinit:' 2. Or run "godd init --force" to regenerate'},ja:{header:"\u26A0 config.godd \u306B\u8A8D\u8B58\u3067\u304D\u306A\u3044\u5024\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\u3002\u4FEE\u6B63\u3057\u3066\u304B\u3089\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",problemValues:"\u554F\u984C\u306E\u3042\u308B\u5024:",suggestion:(e,t)=>` - "${e}" \u2192 \u3082\u3057\u304B\u3057\u3066 "${t}" \u3067\u3059\u304B\uFF1F`,unsupported:e=>` - "${e}" \u2192 \u73FE\u5728\u672A\u5BFE\u5FDC\u3067\u3059\u3002\u5BFE\u5FDC\u3092\u3054\u5E0C\u671B\u306E\u5834\u5408\u306F ${Ub} \u304B\u3089\u3054\u9023\u7D61\u304F\u3060\u3055\u3044\u3002`,fixHeader:"\u4FEE\u6B63\u65B9\u6CD5:",fixEdit:" 1. config.godd \u3092\u76F4\u63A5\u7DE8\u96C6\u3057\u3066\u6B63\u3057\u3044\u5024\u306B\u4FEE\u6B63\u3059\u308B",fixReinit:' 2. \u307E\u305F\u306F "godd init --force" \u3067\u518D\u751F\u6210\u3059\u308B'},ru:{header:"\u26A0 config.godd \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F. \u0418\u0441\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u0438\u0445 \u0438 \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",problemValues:"\u041F\u0440\u043E\u0431\u043B\u0435\u043C\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F:",suggestion:(e,t)=>` - "${e}" \u2192 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u0432\u044B \u0438\u043C\u0435\u043B\u0438 \u0432 \u0432\u0438\u0434\u0443 "${t}"?`,unsupported:e=>` - "${e}" \u2192 \u043F\u043E\u043A\u0430 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F. \u0421\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 ${Ub} \u0434\u043B\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438.`,fixHeader:"\u041A\u0430\u043A \u0438\u0441\u043F\u0440\u0430\u0432\u0438\u0442\u044C:",fixEdit:" 1. \u041E\u0442\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0443\u0439\u0442\u0435 config.godd \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E, \u0443\u043A\u0430\u0437\u0430\u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F",fixReinit:' 2. \u0418\u043B\u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u0435 "godd init --force" \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F'}};function dT(e,t="ja"){let r=n2[t],i=new Map;for(let o of e){let s=i.get(o.field)??[];s.push(o),i.set(o.field,s)}let n=[r.header,"",r.problemValues];for(let[o,s]of i){n.push(` ${o}:`);for(let a of s)n.push(a.suggestion?r.suggestion(a.value,a.suggestion):r.unsupported(a.value))}return n.push("",r.fixHeader,r.fixEdit,r.fixReinit),n.join(`
190
- `)}var Ir="1.2.8";var qb={en:{dev:"Development (plan \u2192 implement \u2192 test \u2192 quality \u2192 docs in stages)",check:"Quality gate (verify Spec alignment, tests, types, lint, security)",docs:"Generate/update documentation",ship:"Ship (commit at proper granularity \u2192 quality check \u2192 push \u2192 create PR)",setup:"Environment setup (with recommended stack presets, confirms missing info)",review:"Review (CTO-level review + quality gate)",test:"Run/create tests",impact:"Impact analysis",commit:"Commit changes",push:"Push to remote",pr:"Create PR (template-compliant)",deploy:"Deploy (with verification & rollback plan)",adr:"Create ADR (Architecture Decision Record)",release:"Generate release notes (SemVer-compliant)",github:"GitHub configuration (repository/branch protection, etc.)",config:"Generate/repair config.godd (auto-detect stack + validation)",questions:"Interactive Q&A from question list (\u8CEA\u554F\u30EA\u30B9\u30C8.md)",e2e:"Browser-based E2E testing (execute & verify critical user flows)",benchmark:"Competitive prompt analysis (compare GoDD vs Cursor Rules / Claude Code / Codex)",map:"Project knowledge graph (visualize architecture & dependencies with Mermaid)",learn:"Save/recall project-specific patterns, conventions, and pitfalls",diagram:"Auto-update architecture diagrams (maintain living Mermaid docs in sync with code)",slide:"Generate presentation slides from project docs (Marp Markdown format)",design:"Generate/update visual designs from codebase (Pencil.dev sync)"},ja:{dev:"\u958B\u767A\uFF08\u6BB5\u968E\u7684\u306B\u8A08\u753B\u2192\u5B9F\u88C5\u2192\u30C6\u30B9\u30C8\u2192\u54C1\u8CEA\u2192\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u5B9F\u884C\uFF09",check:"\u54C1\u8CEA\u30B2\u30FC\u30C8\uFF08Spec\u6574\u5408\u30FB\u30C6\u30B9\u30C8\u30FB\u578B\u30FBLint\u30FB\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u3092\u691C\u8A3C\uFF09",docs:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u751F\u6210/\u66F4\u65B0",ship:"\u63D0\u51FA\uFF08\u9069\u5207\u306A\u7C92\u5EA6\u3067\u30B3\u30DF\u30C3\u30C8 \u2192 \u54C1\u8CEA\u30C1\u30A7\u30C3\u30AF \u2192 \u30D7\u30C3\u30B7\u30E5 \u2192 PR \u4F5C\u6210\uFF09",setup:"\u74B0\u5883\u69CB\u7BC9\uFF08\u63A8\u5968\u30B9\u30BF\u30C3\u30AF\u30D7\u30EA\u30BB\u30C3\u30C8\u4ED8\u304D\u30FB\u4E0D\u8DB3\u60C5\u5831\u306F\u78BA\u8A8D\uFF09",review:"\u30EC\u30D3\u30E5\u30FC\uFF08CTO \u30EC\u30D9\u30EB\u306E\u30EC\u30D3\u30E5\u30FC + \u54C1\u8CEA\u30B2\u30FC\u30C8\uFF09",test:"\u30C6\u30B9\u30C8\u5B9F\u884C/\u4F5C\u6210",impact:"\u5F71\u97FF\u5206\u6790",commit:"\u5909\u66F4\u3092\u30B3\u30DF\u30C3\u30C8",push:"\u30EA\u30E2\u30FC\u30C8\u306B\u30D7\u30C3\u30B7\u30E5",pr:"PR \u4F5C\u6210\uFF08\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u6E96\u62E0\uFF09",deploy:"\u30C7\u30D7\u30ED\u30A4\uFF08\u691C\u8A3C\u30FB\u30ED\u30FC\u30EB\u30D0\u30C3\u30AF\u8A08\u753B\u4ED8\u304D\uFF09",adr:"ADR\uFF08Architecture Decision Record\uFF09\u4F5C\u6210",release:"\u30EA\u30EA\u30FC\u30B9\u30CE\u30FC\u30C8\u751F\u6210\uFF08SemVer \u6E96\u62E0\uFF09",github:"GitHub \u8A2D\u5B9A\uFF08\u30EA\u30DD\u30B8\u30C8\u30EA/\u30D6\u30E9\u30F3\u30C1\u4FDD\u8B77\u7B49\uFF09",config:"config.godd \u3092\u6B63\u78BA\u306B\u751F\u6210\u30FB\u4FEE\u6B63\u3059\u308B\uFF08\u30B9\u30BF\u30C3\u30AF\u81EA\u52D5\u691C\u51FA + \u30D0\u30EA\u30C7\u30FC\u30B7\u30E7\u30F3\uFF09",questions:"\u8CEA\u554F\u30EA\u30B9\u30C8\uFF08\u8CEA\u554F\u30EA\u30B9\u30C8.md\uFF09\u304B\u3089\u30A4\u30F3\u30BF\u30E9\u30AF\u30C6\u30A3\u30D6\u306B\u8CEA\u554F\u3092\u7BA1\u7406",e2e:"\u30D6\u30E9\u30A6\u30B6\u30D9\u30FC\u30B9 E2E \u30C6\u30B9\u30C8\uFF08\u91CD\u8981\u30E6\u30FC\u30B6\u30FC\u30D5\u30ED\u30FC\u306E\u5B9F\u884C\u30FB\u691C\u8A3C\uFF09",benchmark:"\u7AF6\u5408\u30D7\u30ED\u30F3\u30D7\u30C8\u5206\u6790\uFF08GoDD vs Cursor Rules / Claude Code / Codex \u3092\u6BD4\u8F03\uFF09",map:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30CA\u30EC\u30C3\u30B8\u30B0\u30E9\u30D5\uFF08Mermaid \u3067\u30A2\u30FC\u30AD\u30C6\u30AF\u30C1\u30E3\u30FB\u4F9D\u5B58\u95A2\u4FC2\u3092\u53EF\u8996\u5316\uFF09",learn:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u56FA\u6709\u306E\u30D1\u30BF\u30FC\u30F3\u30FB\u6163\u4F8B\u30FB\u843D\u3068\u3057\u7A74\u3092\u4FDD\u5B58/\u53C2\u7167",diagram:"\u30A2\u30FC\u30AD\u30C6\u30AF\u30C1\u30E3\u56F3\u306E\u81EA\u52D5\u66F4\u65B0\uFF08\u30B3\u30FC\u30C9\u3068\u540C\u671F\u3057\u305F Mermaid \u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u7DAD\u6301\uFF09",slide:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u304B\u3089\u30D7\u30EC\u30BC\u30F3\u30B9\u30E9\u30A4\u30C9\u3092\u751F\u6210\uFF08Marp Markdown \u5F62\u5F0F\uFF09",design:"\u30B3\u30FC\u30C9\u30D9\u30FC\u30B9\u304B\u3089\u30D3\u30B8\u30E5\u30A2\u30EB\u30C7\u30B6\u30A4\u30F3\u3092\u751F\u6210/\u66F4\u65B0\uFF08Pencil.dev \u540C\u671F\uFF09"},ru:{dev:"\u0420\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0430 (\u043F\u043B\u0430\u043D \u2192 \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u2192 \u0442\u0435\u0441\u0442\u044B \u2192 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u2192 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044F \u043F\u043E\u044D\u0442\u0430\u043F\u043D\u043E)",check:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430 (Spec, \u0442\u0435\u0441\u0442\u044B, \u0442\u0438\u043F\u044B, \u043B\u0438\u043D\u0442\u0435\u0440, \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C)",docs:"\u0413\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u044F/\u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438",ship:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 (\u043A\u043E\u043C\u043C\u0438\u0442 \u2192 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u2192 \u043F\u0443\u0448 \u2192 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 PR)",setup:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0441\u0440\u0435\u0434\u044B (\u0441 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u044B\u043C\u0438 \u043F\u0440\u0435\u0441\u0435\u0442\u0430\u043C\u0438 \u0441\u0442\u0435\u043A\u0430)",review:"\u0420\u0435\u0432\u044C\u044E (CTO-\u0443\u0440\u043E\u0432\u0435\u043D\u044C + \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430)",test:"\u0417\u0430\u043F\u0443\u0441\u043A/\u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0442\u0435\u0441\u0442\u043E\u0432",impact:"\u0410\u043D\u0430\u043B\u0438\u0437 \u0432\u043B\u0438\u044F\u043D\u0438\u044F",commit:"\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F",push:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0432 \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u0439",pr:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C PR (\u043F\u043E \u0448\u0430\u0431\u043B\u043E\u043D\u0443)",deploy:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C (\u0441 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u043E\u0439 \u0438 \u043F\u043B\u0430\u043D\u043E\u043C \u043E\u0442\u043A\u0430\u0442\u0430)",adr:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C ADR (\u0437\u0430\u043F\u0438\u0441\u044C \u0430\u0440\u0445\u0438\u0442\u0435\u043A\u0442\u0443\u0440\u043D\u043E\u0433\u043E \u0440\u0435\u0448\u0435\u043D\u0438\u044F)",release:"\u0421\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u043C\u0435\u0442\u043A\u0438 \u043A \u0440\u0435\u043B\u0438\u0437\u0443 (SemVer)",github:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 GitHub (\u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u0439/\u0437\u0430\u0449\u0438\u0442\u0430 \u0432\u0435\u0442\u043E\u043A \u0438 \u0442.\u0434.)",config:"\u0413\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u044F/\u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 config.godd (\u0430\u0432\u0442\u043E\u0434\u0435\u0442\u0435\u043A\u0442 \u0441\u0442\u0435\u043A\u0430 + \u0432\u0430\u043B\u0438\u0434\u0430\u0446\u0438\u044F)",questions:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0439 Q&A \u0438\u0437 \u0441\u043F\u0438\u0441\u043A\u0430 \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432 (\u8CEA\u554F\u30EA\u30B9\u30C8.md)",e2e:"E2E-\u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 (\u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0438 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u043F\u043E\u0442\u043E\u043A\u043E\u0432)",benchmark:"\u041A\u043E\u043D\u043A\u0443\u0440\u0435\u043D\u0442\u043D\u044B\u0439 \u0430\u043D\u0430\u043B\u0438\u0437 \u043F\u0440\u043E\u043C\u043F\u0442\u043E\u0432 (\u0441\u0440\u0430\u0432\u043D\u0435\u043D\u0438\u0435 GoDD \u0441 Cursor Rules / Claude Code / Codex)",map:"\u0413\u0440\u0430\u0444 \u0437\u043D\u0430\u043D\u0438\u0439 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 (\u0432\u0438\u0437\u0443\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u0430\u0440\u0445\u0438\u0442\u0435\u043A\u0442\u0443\u0440\u044B \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 Mermaid)",learn:"\u0421\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435/\u0432\u044B\u0437\u043E\u0432 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u0447\u043D\u044B\u0445 \u0434\u043B\u044F \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u043F\u0430\u0442\u0442\u0435\u0440\u043D\u043E\u0432, \u0441\u043E\u0433\u043B\u0430\u0448\u0435\u043D\u0438\u0439 \u0438 \u043F\u043E\u0434\u0432\u043E\u0434\u043D\u044B\u0445 \u043A\u0430\u043C\u043D\u0435\u0439",diagram:"\u0410\u0432\u0442\u043E\u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043A\u0442\u0443\u0440\u043D\u044B\u0445 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C (\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0445 Mermaid-\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432)",slide:"\u0413\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u044F \u0441\u043B\u0430\u0439\u0434\u043E\u0432 \u0438\u0437 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 (\u0444\u043E\u0440\u043C\u0430\u0442 Marp Markdown)",design:"\u0413\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u044F/\u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0434\u0438\u0437\u0430\u0439\u043D\u0430 \u0438\u0437 \u043A\u043E\u0434\u043E\u0432\u043E\u0439 \u0431\u0430\u0437\u044B (\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0430\u0446\u0438\u044F Pencil.dev)"}};var i2={dev:[{name:"request",required:!0},{name:"done_when",required:!1}],check:[{name:"target",required:!1}],docs:[{name:"target",required:!1}],ship:[{name:"title",required:!1}],review:[{name:"target",required:!1},{name:"action",required:!1}],test:[{name:"target",required:!1}],impact:[{name:"target",required:!1}],commit:[{name:"message",required:!1}],pr:[{name:"title",required:!1}],deploy:[{name:"target",required:!1}],adr:[{name:"title",required:!1}],release:[{name:"tag",required:!1}],setup:[{name:"preset",required:!1}],github:[{name:"request",required:!1}],config:[],questions:[{name:"action",required:!1}],e2e:[{name:"target",required:!1},{name:"url",required:!1}],benchmark:[{name:"target",required:!1}],map:[{name:"target",required:!1}],learn:[{name:"action",required:!1}],diagram:[{name:"target",required:!1}],slide:[{name:"type",required:!1},{name:"source",required:!1}],design:[{name:"target",required:!1},{name:"output",required:!1}]},Zb={en:{dev:{request:"Request details",done_when:"Completion criteria"},check:{target:"Check target (omit for all recent changes)"},docs:{target:"Target file/feature"},ship:{title:"PR title"},review:{target:"Target file/PR (e.g., PR URL, PR number, file path)",action:"Post-review action (approve / request-changes / comment)"},test:{target:"Test target"},impact:{target:"Analysis target"},commit:{message:"Commit message"},pr:{title:"PR title"},deploy:{target:"Deploy target"},adr:{title:"Decision title"},release:{tag:"Target tag (omit for HEAD since last release)"},setup:{preset:"Stack preset (omakase = recommended)"},github:{request:"Configuration request"},questions:{action:"Action: list (default) / resolve <id> / add <question>"},e2e:{target:"Target page/flow to test",url:"Base URL of the application"},benchmark:{target:"Competitor system to analyze (cursor-rules / claude-code / codex / all)"},map:{target:"Target scope (module/directory/layer to visualize)"},learn:{action:"Action: save <category> <content> / recall / list / forget <id>"},diagram:{target:"Target diagram scope (architecture / module / data-flow / erd / all)"},slide:{type:"Presentation type (sprint-review / architecture / release / onboarding)",source:"Source documents to base slides on"},design:{target:"Design target (all / page name / component name)",output:"Output format (pencil / tokens)"}},ja:{dev:{request:"\u4F9D\u983C\u5185\u5BB9",done_when:"\u5B8C\u4E86\u6761\u4EF6"},check:{target:"\u30C1\u30A7\u30C3\u30AF\u5BFE\u8C61\uFF08\u7701\u7565\u6642: \u76F4\u8FD1\u306E\u5909\u66F4\u5168\u4F53\uFF09"},docs:{target:"\u5BFE\u8C61\u30D5\u30A1\u30A4\u30EB/\u6A5F\u80FD"},ship:{title:"PR \u30BF\u30A4\u30C8\u30EB"},review:{target:"\u5BFE\u8C61\u30D5\u30A1\u30A4\u30EB/PR\uFF08\u4F8B: PR URL, PR\u756A\u53F7, \u30D5\u30A1\u30A4\u30EB\u30D1\u30B9\uFF09",action:"\u30EC\u30D3\u30E5\u30FC\u5F8C\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\uFF08approve / request-changes / comment\uFF09"},test:{target:"\u30C6\u30B9\u30C8\u5BFE\u8C61"},impact:{target:"\u5206\u6790\u5BFE\u8C61"},commit:{message:"\u30B3\u30DF\u30C3\u30C8\u30E1\u30C3\u30BB\u30FC\u30B8"},pr:{title:"PR \u30BF\u30A4\u30C8\u30EB"},deploy:{target:"\u30C7\u30D7\u30ED\u30A4\u5148"},adr:{title:"\u5224\u65AD\u306E\u30BF\u30A4\u30C8\u30EB"},release:{tag:"\u5BFE\u8C61\u30BF\u30B0\uFF08\u7701\u7565\u6642: \u76F4\u8FD1\u30EA\u30EA\u30FC\u30B9\u304B\u3089 HEAD\uFF09"},setup:{preset:"\u30B9\u30BF\u30C3\u30AF\u30D7\u30EA\u30BB\u30C3\u30C8\uFF08omakase = \u63A8\u5968\u69CB\u6210\uFF09"},github:{request:"\u8A2D\u5B9A\u5185\u5BB9"},questions:{action:"\u64CD\u4F5C: list\uFF08\u30C7\u30D5\u30A9\u30EB\u30C8\uFF09/ resolve <id> / add <\u8CEA\u554F\u6587>"},e2e:{target:"\u30C6\u30B9\u30C8\u5BFE\u8C61\u306E\u30DA\u30FC\u30B8/\u30D5\u30ED\u30FC",url:"\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u30D9\u30FC\u30B9 URL"},benchmark:{target:"\u5206\u6790\u5BFE\u8C61\u306E\u7AF6\u5408\uFF08cursor-rules / claude-code / codex / all\uFF09"},map:{target:"\u53EF\u8996\u5316\u5BFE\u8C61\uFF08\u30E2\u30B8\u30E5\u30FC\u30EB/\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA/\u30EC\u30A4\u30E4\u30FC\uFF09"},learn:{action:"\u64CD\u4F5C: save <\u30AB\u30C6\u30B4\u30EA> <\u5185\u5BB9> / recall / list / forget <id>"},diagram:{target:"\u56F3\u306E\u5BFE\u8C61\u7BC4\u56F2\uFF08architecture / module / data-flow / erd / all\uFF09"},slide:{type:"\u30D7\u30EC\u30BC\u30F3\u7A2E\u985E\uFF08sprint-review / architecture / release / onboarding\uFF09",source:"\u30BD\u30FC\u30B9\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8"},design:{target:"\u30C7\u30B6\u30A4\u30F3\u5BFE\u8C61\uFF08all / \u30DA\u30FC\u30B8\u540D / \u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u540D\uFF09",output:"\u51FA\u529B\u5F62\u5F0F\uFF08pencil / tokens\uFF09"}},ru:{dev:{request:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438",done_when:"\u041A\u0440\u0438\u0442\u0435\u0440\u0438\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F"},check:{target:"\u041E\u0431\u044A\u0435\u043A\u0442 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 (\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: \u0432\u0441\u0435 \u043D\u0435\u0434\u0430\u0432\u043D\u0438\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F)"},docs:{target:"\u0426\u0435\u043B\u0435\u0432\u043E\u0439 \u0444\u0430\u0439\u043B/\u0444\u0443\u043D\u043A\u0446\u0438\u044F"},ship:{title:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A PR"},review:{target:"\u0426\u0435\u043B\u0435\u0432\u043E\u0439 \u0444\u0430\u0439\u043B/PR (URL PR, \u043D\u043E\u043C\u0435\u0440 PR, \u043F\u0443\u0442\u044C \u043A \u0444\u0430\u0439\u043B\u0443)",action:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043F\u043E\u0441\u043B\u0435 \u0440\u0435\u0432\u044C\u044E (approve / request-changes / comment)"},test:{target:"\u041E\u0431\u044A\u0435\u043A\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F"},impact:{target:"\u041E\u0431\u044A\u0435\u043A\u0442 \u0430\u043D\u0430\u043B\u0438\u0437\u0430"},commit:{message:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043A\u043E\u043C\u043C\u0438\u0442\u0430"},pr:{title:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A PR"},deploy:{target:"\u0426\u0435\u043B\u044C \u0440\u0430\u0437\u0432\u0451\u0440\u0442\u044B\u0432\u0430\u043D\u0438\u044F"},adr:{title:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0440\u0435\u0448\u0435\u043D\u0438\u044F"},release:{tag:"\u0426\u0435\u043B\u0435\u0432\u043E\u0439 \u0442\u0435\u0433 (\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: \u043E\u0442 HEAD \u0434\u043E \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u0440\u0435\u043B\u0438\u0437\u0430)"},setup:{preset:"\u041F\u0440\u0435\u0441\u0435\u0442 \u0441\u0442\u0435\u043A\u0430 (omakase = \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u0430\u044F \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F)"},github:{request:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"},questions:{action:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435: list (\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E) / resolve <id> / add <\u0432\u043E\u043F\u0440\u043E\u0441>"},e2e:{target:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430/\u043F\u043E\u0442\u043E\u043A \u0434\u043B\u044F \u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",url:"\u0411\u0430\u0437\u043E\u0432\u044B\u0439 URL \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F"},benchmark:{target:"\u041A\u043E\u043D\u043A\u0443\u0440\u0435\u043D\u0442\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430 \u0434\u043B\u044F \u0430\u043D\u0430\u043B\u0438\u0437\u0430 (cursor-rules / claude-code / codex / all)"},map:{target:"\u0426\u0435\u043B\u0435\u0432\u043E\u0439 \u043E\u0431\u044A\u0435\u043A\u0442 (\u043C\u043E\u0434\u0443\u043B\u044C/\u043A\u0430\u0442\u0430\u043B\u043E\u0433/\u0441\u043B\u043E\u0439 \u0434\u043B\u044F \u0432\u0438\u0437\u0443\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438)"},learn:{action:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435: save <\u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u044F> <\u0441\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435> / recall / list / forget <id>"},diagram:{target:"\u0426\u0435\u043B\u0435\u0432\u043E\u0439 \u043E\u0431\u044A\u0435\u043A\u0442 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u044B (architecture / module / data-flow / erd / all)"},slide:{type:"\u0422\u0438\u043F \u043F\u0440\u0435\u0437\u0435\u043D\u0442\u0430\u0446\u0438\u0438 (sprint-review / architecture / release / onboarding)",source:"\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B"},design:{target:"\u0426\u0435\u043B\u044C \u0434\u0438\u0437\u0430\u0439\u043D\u0430 (all / \u0438\u043C\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B / \u0438\u043C\u044F \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u0430)",output:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0432\u044B\u0432\u043E\u0434\u0430 (pencil / tokens)"}}},o2=["dev","check","docs","ship","setup","review","test","impact","commit","push","pr","deploy","adr","release","github","config","questions","e2e","benchmark","map","learn","diagram","slide","design"];var Fb={dev:{slugs:["common","dev"]},ship:{slugs:["common","commit","push","pr","check"]},review:{slugs:["common","review","check"]}};var Ep=new Set(["dev","review","setup","test","impact","docs","check","deploy","adr","release","e2e","benchmark","map","learn","diagram","slide","design"]);function fT(e){return e in Fb||Ep.has(e)}function Vb(e){if(Fb[e])return Fb[e].slugs;if(Ep.has(e))return["common",e]}var Kb=new Set(["config","questions"]);function Gb(e="en"){let t=V.toolPrefix,r=qb[e]??qb.en;return o2.map(i=>({name:`${t}${i}`,description:r[i]??qb.en[i]}))}function pT(e="en"){let t=V.toolPrefix,r=Zb[e]??Zb.en,i=Zb.en;return Gb(e).map(n=>{let o=n.name.replace(t,""),s=i2[o]??[];return{name:n.name,description:n.description,inputSchema:{type:"object",properties:Object.fromEntries(s.map(a=>[a.name,{type:"string",description:r[o]?.[a.name]??i[o]?.[a.name]??a.name}])),required:s.filter(a=>a.required).map(a=>a.name)}}})}var Yn=require("node:fs"),$T=require("node:path");var We=require("node:fs"),Ht=require("node:path"),yT=require("node:readline"),jp=require("node:child_process");var s2={selectDisplayLanguage:"Select display language:",selectMainLanguage:"Select the main language for your project:",selectSubLanguages:"Select sub-languages used in your team:",selectSubLanguagesHint:"(comma-separated numbers, or press Enter to skip)",skipSubLanguages:"No sub-languages selected.",scanningProject:"Scanning project...",detectedStack:"Detected stack:",confirmStack:"Is this correct?",manualStackEntry:"Please select your tech stack manually.",selectProjectType:"What are you building? (select all that apply)",projectTypes:{web:"Web App (frontend + backend)",api:"API / Backend only",mobile:"Mobile App",game:"Game",cli:"CLI / Library / Script",desktop:"Desktop App"},selectProgrammingLanguages:"Programming languages:",selectFrontend:"Frontend frameworks:",selectBackend:"Backend frameworks:",selectDatabase:"Databases:",selectOrm:"ORM:",selectInfra:"Infrastructure:",selectGame:"Game engines / frameworks:",selectMobile:"Mobile / Cross-platform:",toolRecommendationsTitle:"Recommended tools for your stack:",toolInstallMode:"How would you like to install?",toolInstallDefault:"Default (install all)",toolInstallCustom:"Custom (choose individually)",toolInstallSkip:"Skip (install later)",toolInstallPrompt:"Install?",toolInstalling:"Installing",toolInstallSuccess:"Installed successfully.",toolInstallFailed:"Installation failed. You can install it later via setup prompt.",toolUniversalTag:"all projects",toolStackSpecificTag:"your stack",toolCategories:{vcs:"Version Control",browser_automation:"Browser Automation",e2e_testing:"E2E Testing",unit_testing:"Unit Testing",linting:"Linting",formatting:"Formatting",type_checking:"Type Checking",coverage:"Coverage",documentation:"Documentation",secret_scanning:"Secret Scanning",security_analysis:"Security Analysis",unused_code:"Unused Code Detection",dependency_analysis:"Dependency Analysis"},githubDetected:"GitHub repository detected. Configuring auto-delete for merged branches...",githubConfigSuccess:"\u2713 Merged branches will be auto-deleted on GitHub.",githubConfigFailed:"\u2717 Could not configure auto-delete. Run `gh repo edit --delete-branch-on-merge` manually.",configCreated:"Generated",configExists:"already exists",configOverwritten:"Overwritten",useForceFlag:"Use --force to overwrite.",languages:"Languages",frontend:"Frontend",backend:"Backend",database:"Database",orm:"ORM",infra:"Infra",game:"Game",mobile:"Mobile",pressEnterToClose:"Press Enter to close...",unknownCommand:"Unknown command",usage:"Usage:",installSuccess:"Registered with Cursor!",installUpdated:"Configuration updated",installUnchanged:"Already up to date",licenseNotSet:"License key is not set. Set GODD_LICENSE_KEY environment variable or run: godd install --license-key=YOUR_KEY",restartCursor:"Restart Cursor to activate the MCP server.",installFailed:"Installation failed:",uninstallTitle:"Uninstall",uninstallSuccess:"Removed from Cursor",uninstallNotFound:"Not found (already removed)",uninstallFailed:"Uninstall failed:",initTitle:"Project initialization",initAutoHint:"Non-interactive mode (--auto): stack scan + config only; tool install wizard skipped. Use interactive init when you need guided tool setup.",yes:"Yes",no:"No",none:"None",invalidChoice:"Invalid choice. Please try again.",enterNumbers:"Enter numbers",updateAvailable:"A newer version is available:",updateCurrent:"current:",licenseMissing:"GODD_LICENSE_KEY environment variable is not set.",licenseMissingHint:"Re-register with: godd install --license-key=YOUR_KEY",licenseFailed:"License validation failed",configNotFound:"not found in project directory.",configNotFoundHint:'Run "godd init" to generate project configuration for better prompt accuracy.',configUnknownValues:"contains unknown values:",didYouMean:"did you mean",serverStarted:"started (stdio)",corruptMcpJson:"is corrupt. Backed up to {backup} and creating a fresh config.",licenseNotConfigured:"License key is not configured. Set GODD_LICENSE_KEY and restart Cursor.",resolvePromptFailed:"Failed to resolve prompt",resolveToolFailed:"Failed to resolve tool",localToolFailed:"Local tool execution failed",helpInstall:"Register MCP server into Cursor",helpInit:"Initialize project (interactive; use --auto for scan-only)",helpUninstall:"Remove MCP server from Cursor",helpServe:"Start MCP stdio server (called by Cursor)",fatalError:"Fatal error",compositeMissingSlugs:"WARNING: The following sections could not be loaded",goddFilesTitle:"GoDD managed files configuration:",goddFilesDocsPrompt:"Documentation directory (press Enter for default: documents):",goddFilesGitattributesPrompt:"Auto-create .gitattributes on init if missing?",goddFilesDependabotPrompt:"Auto-create .github/dependabot.yml on init if missing?",goddFilesCreated:"GoDD-MCP-alpha.md generated."},a2={selectDisplayLanguage:"\u8868\u793A\u8A00\u8A9E\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044:",selectMainLanguage:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30E1\u30A4\u30F3\u8A00\u8A9E\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044:",selectSubLanguages:"\u30C1\u30FC\u30E0\u3067\u4F7F\u7528\u3059\u308B\u30B5\u30D6\u8A00\u8A9E\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044:",selectSubLanguagesHint:"(\u30AB\u30F3\u30DE\u533A\u5207\u308A\u306E\u756A\u53F7\u3001\u307E\u305F\u306FEnter\u3067\u30B9\u30AD\u30C3\u30D7)",skipSubLanguages:"\u30B5\u30D6\u8A00\u8A9E\u306F\u9078\u629E\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",scanningProject:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u30B9\u30AD\u30E3\u30F3\u4E2D...",detectedStack:"\u691C\u51FA\u3055\u308C\u305F\u30B9\u30BF\u30C3\u30AF:",confirmStack:"\u3053\u306E\u5185\u5BB9\u3067\u6B63\u3057\u3044\u3067\u3059\u304B\uFF1F",manualStackEntry:"\u6280\u8853\u30B9\u30BF\u30C3\u30AF\u3092\u624B\u52D5\u3067\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002",selectProjectType:"\u4F55\u3092\u4F5C\u308A\u307E\u3059\u304B\uFF1F\uFF08\u8A72\u5F53\u3059\u308B\u3082\u306E\u3092\u3059\u3079\u3066\u9078\u629E\uFF09",projectTypes:{web:"Web \u30A2\u30D7\u30EA\uFF08\u30D5\u30ED\u30F3\u30C8 + \u30D0\u30C3\u30AF\u30A8\u30F3\u30C9\uFF09",api:"API / \u30D0\u30C3\u30AF\u30A8\u30F3\u30C9\u306E\u307F",mobile:"\u30E2\u30D0\u30A4\u30EB\u30A2\u30D7\u30EA",game:"\u30B2\u30FC\u30E0",cli:"CLI / \u30E9\u30A4\u30D6\u30E9\u30EA / \u30B9\u30AF\u30EA\u30D7\u30C8",desktop:"\u30C7\u30B9\u30AF\u30C8\u30C3\u30D7\u30A2\u30D7\u30EA"},selectProgrammingLanguages:"\u30D7\u30ED\u30B0\u30E9\u30DF\u30F3\u30B0\u8A00\u8A9E:",selectFrontend:"\u30D5\u30ED\u30F3\u30C8\u30A8\u30F3\u30C9\u30D5\u30EC\u30FC\u30E0\u30EF\u30FC\u30AF:",selectBackend:"\u30D0\u30C3\u30AF\u30A8\u30F3\u30C9\u30D5\u30EC\u30FC\u30E0\u30EF\u30FC\u30AF:",selectDatabase:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9:",selectOrm:"ORM:",selectInfra:"\u30A4\u30F3\u30D5\u30E9:",selectGame:"\u30B2\u30FC\u30E0\u30A8\u30F3\u30B8\u30F3 / \u30D5\u30EC\u30FC\u30E0\u30EF\u30FC\u30AF:",selectMobile:"\u30E2\u30D0\u30A4\u30EB / \u30AF\u30ED\u30B9\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0:",toolRecommendationsTitle:"\u30B9\u30BF\u30C3\u30AF\u306B\u63A8\u5968\u3055\u308C\u308B\u30C4\u30FC\u30EB:",toolInstallMode:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u65B9\u6CD5\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044:",toolInstallDefault:"\u30C7\u30D5\u30A9\u30EB\u30C8\uFF08\u3059\u3079\u3066\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\uFF09",toolInstallCustom:"\u30AB\u30B9\u30BF\u30E0\uFF08\u500B\u5225\u306B\u9078\u629E\uFF09",toolInstallSkip:"\u30B9\u30AD\u30C3\u30D7\uFF08\u5F8C\u3067\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\uFF09",toolInstallPrompt:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059\u304B\uFF1F",toolInstalling:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u4E2D",toolInstallSuccess:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002",toolInstallFailed:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002setup \u30D7\u30ED\u30F3\u30D7\u30C8\u3067\u5F8C\u304B\u3089\u5BFE\u5FDC\u3067\u304D\u307E\u3059\u3002",toolUniversalTag:"\u5168\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u5171\u901A",toolStackSpecificTag:"\u30B9\u30BF\u30C3\u30AF\u56FA\u6709",toolCategories:{vcs:"\u30D0\u30FC\u30B8\u30E7\u30F3\u7BA1\u7406",browser_automation:"\u30D6\u30E9\u30A6\u30B6\u81EA\u52D5\u5316",e2e_testing:"E2E \u30C6\u30B9\u30C8",unit_testing:"\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8",linting:"\u30EA\u30F3\u30BF\u30FC",formatting:"\u30D5\u30A9\u30FC\u30DE\u30C3\u30BF\u30FC",type_checking:"\u578B\u30C1\u30A7\u30C3\u30AF",coverage:"\u30AB\u30D0\u30EC\u30C3\u30B8",documentation:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u751F\u6210",secret_scanning:"\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u30B9\u30AD\u30E3\u30F3",security_analysis:"\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u5206\u6790",unused_code:"\u672A\u4F7F\u7528\u30B3\u30FC\u30C9\u691C\u51FA",dependency_analysis:"\u4F9D\u5B58\u5206\u6790"},githubDetected:"GitHub \u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u30DE\u30FC\u30B8\u6E08\u307F\u30D6\u30E9\u30F3\u30C1\u306E\u81EA\u52D5\u524A\u9664\u3092\u8A2D\u5B9A\u4E2D...",githubConfigSuccess:"\u2713 \u30DE\u30FC\u30B8\u6E08\u307F\u30D6\u30E9\u30F3\u30C1\u306F GitHub \u4E0A\u3067\u81EA\u52D5\u524A\u9664\u3055\u308C\u307E\u3059\u3002",githubConfigFailed:"\u2717 \u81EA\u52D5\u524A\u9664\u306E\u8A2D\u5B9A\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u624B\u52D5\u3067 `gh repo edit --delete-branch-on-merge` \u3092\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",configCreated:"\u3092\u751F\u6210\u3057\u307E\u3057\u305F",configExists:"\u306F\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059",configOverwritten:"\u3092\u4E0A\u66F8\u304D\u3057\u307E\u3057\u305F",useForceFlag:"\u4E0A\u66F8\u304D\u3059\u308B\u5834\u5408\u306F --force \u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",languages:"\u8A00\u8A9E",frontend:"\u30D5\u30ED\u30F3\u30C8\u30A8\u30F3\u30C9",backend:"\u30D0\u30C3\u30AF\u30A8\u30F3\u30C9",database:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9",orm:"ORM",infra:"\u30A4\u30F3\u30D5\u30E9",game:"\u30B2\u30FC\u30E0",mobile:"\u30E2\u30D0\u30A4\u30EB",pressEnterToClose:"Enter \u30AD\u30FC\u3092\u62BC\u3059\u3068\u9589\u3058\u307E\u3059...",unknownCommand:"\u4E0D\u660E\u306A\u30B3\u30DE\u30F3\u30C9",usage:"\u4F7F\u3044\u65B9:",installSuccess:"Cursor \u306B\u767B\u9332\u3057\u307E\u3057\u305F\uFF01",installUpdated:"\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",installUnchanged:"\u65E2\u306B\u6700\u65B0\u306E\u8A2D\u5B9A\u3067\u3059",licenseNotSet:"\u30E9\u30A4\u30BB\u30F3\u30B9\u30AD\u30FC\u304C\u672A\u8A2D\u5B9A\u3067\u3059\u3002\u74B0\u5883\u5909\u6570 GODD_LICENSE_KEY \u3092\u8A2D\u5B9A\u3059\u308B\u304B\u3001godd install --license-key=YOUR_KEY \u3067\u767B\u9332\u3057\u3066\u304F\u3060\u3055\u3044\u3002",restartCursor:"Cursor \u3092\u518D\u8D77\u52D5\u3059\u308B\u3068 MCP \u30B5\u30FC\u30D0\u30FC\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3059\u3002",installFailed:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u306B\u5931\u6557\u3057\u307E\u3057\u305F:",uninstallTitle:"\u30A2\u30F3\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB",uninstallSuccess:"Cursor \u304B\u3089\u524A\u9664\u3057\u307E\u3057\u305F",uninstallNotFound:"\u767B\u9332\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u65E2\u306B\u524A\u9664\u6E08\u307F\uFF09",uninstallFailed:"\u30A2\u30F3\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u306B\u5931\u6557\u3057\u307E\u3057\u305F:",initTitle:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u521D\u671F\u5316",initAutoHint:"\u975E\u5BFE\u8A71\u30E2\u30FC\u30C9\uFF08--auto\uFF09: \u30B9\u30BF\u30C3\u30AF\u81EA\u52D5\u691C\u51FA\u3068 config.godd \u306E\u307F\u3002\u30C4\u30FC\u30EB\u5C0E\u5165\u30A6\u30A3\u30B6\u30FC\u30C9\u306F\u7701\u7565\u3055\u308C\u307E\u3059\u3002\u624B\u52D5\u3067\u30C4\u30FC\u30EB\u3092\u9078\u3073\u305F\u3044\u5834\u5408\u306F\u5BFE\u8A71\u5F0F init \u3092\u4F7F\u3063\u3066\u304F\u3060\u3055\u3044\u3002",yes:"\u306F\u3044",no:"\u3044\u3044\u3048",none:"\u306A\u3057",invalidChoice:"\u7121\u52B9\u306A\u9078\u629E\u3067\u3059\u3002\u3082\u3046\u4E00\u5EA6\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterNumbers:"\u756A\u53F7\u3092\u5165\u529B",updateAvailable:"\u65B0\u3057\u3044\u30D0\u30FC\u30B8\u30E7\u30F3\u304C\u3042\u308A\u307E\u3059:",updateCurrent:"\u73FE\u5728:",licenseMissing:"GODD_LICENSE_KEY \u74B0\u5883\u5909\u6570\u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",licenseMissingHint:"godd install --license-key=YOUR_KEY \u3067\u518D\u767B\u9332\u3057\u3066\u304F\u3060\u3055\u3044\u3002",licenseFailed:"\u30E9\u30A4\u30BB\u30F3\u30B9\u691C\u8A3C\u5931\u6557",configNotFound:"\u304C\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306B\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",configNotFoundHint:"\u300Cgodd init\u300D\u3092\u5B9F\u884C\u3057\u3066\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u8A2D\u5B9A\u3092\u751F\u6210\u3059\u308B\u3068\u3001\u30D7\u30ED\u30F3\u30D7\u30C8\u306E\u7CBE\u5EA6\u304C\u5411\u4E0A\u3057\u307E\u3059\u3002",configUnknownValues:"\u306B\u4E0D\u660E\u306A\u5024\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059:",didYouMean:"\u3082\u3057\u304B\u3057\u3066",serverStarted:"\u3092\u8D77\u52D5\u3057\u307E\u3057\u305F (stdio)",corruptMcpJson:"\u304C\u58CA\u308C\u3066\u3044\u307E\u3059\u3002{backup} \u306B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u4F5C\u6210\u3057\u3001\u65B0\u898F\u8A2D\u5B9A\u3092\u4F5C\u6210\u3057\u307E\u3059\u3002",licenseNotConfigured:"\u30E9\u30A4\u30BB\u30F3\u30B9\u30AD\u30FC\u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002GODD_LICENSE_KEY \u3092\u8A2D\u5B9A\u3057\u3066 Cursor \u3092\u518D\u8D77\u52D5\u3057\u3066\u304F\u3060\u3055\u3044\u3002",resolvePromptFailed:"\u30D7\u30ED\u30F3\u30D7\u30C8\u306E\u89E3\u6C7A\u306B\u5931\u6557\u3057\u307E\u3057\u305F",resolveToolFailed:"\u30C4\u30FC\u30EB\u306E\u89E3\u6C7A\u306B\u5931\u6557\u3057\u307E\u3057\u305F",localToolFailed:"\u30ED\u30FC\u30AB\u30EB\u30C4\u30FC\u30EB\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F",helpInstall:"MCP \u30B5\u30FC\u30D0\u30FC\u3092 Cursor \u306B\u767B\u9332",helpInit:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u521D\u671F\u5316\uFF08\u5BFE\u8A71\u5F0F\uFF0F--auto \u3067\u30B9\u30AD\u30E3\u30F3\u306E\u307F\uFF09",helpUninstall:"MCP \u30B5\u30FC\u30D0\u30FC\u3092 Cursor \u304B\u3089\u524A\u9664",helpServe:"MCP stdio \u30B5\u30FC\u30D0\u30FC\u3092\u8D77\u52D5\uFF08Cursor \u304C\u547C\u3073\u51FA\u3057\uFF09",fatalError:"\u81F4\u547D\u7684\u306A\u30A8\u30E9\u30FC",compositeMissingSlugs:"\u8B66\u544A: \u4EE5\u4E0B\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F",goddFilesTitle:"GoDD \u7BA1\u7406\u30D5\u30A1\u30A4\u30EB\u306E\u8A2D\u5B9A:",goddFilesDocsPrompt:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\uFF08Enter \u3067\u30C7\u30D5\u30A9\u30EB\u30C8: documents\uFF09:",goddFilesGitattributesPrompt:"init \u6642\u306B .gitattributes \u304C\u5B58\u5728\u3057\u306A\u3044\u5834\u5408\u3001\u81EA\u52D5\u4F5C\u6210\u3057\u307E\u3059\u304B\uFF1F",goddFilesDependabotPrompt:"init \u6642\u306B .github/dependabot.yml \u304C\u5B58\u5728\u3057\u306A\u3044\u5834\u5408\u3001\u81EA\u52D5\u4F5C\u6210\u3057\u307E\u3059\u304B\uFF1F",goddFilesCreated:"GoDD-MCP-alpha.md \u3092\u751F\u6210\u3057\u307E\u3057\u305F\u3002"},c2={selectDisplayLanguage:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044F\u0437\u044B\u043A \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F:",selectMainLanguage:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u044F\u0437\u044B\u043A \u043F\u0440\u043E\u0435\u043A\u0442\u0430:",selectSubLanguages:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u044F\u0437\u044B\u043A\u0438 \u043A\u043E\u043C\u0430\u043D\u0434\u044B:",selectSubLanguagesHint:"(\u043D\u043E\u043C\u0435\u0440\u0430 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043F\u044F\u0442\u0443\u044E \u0438\u043B\u0438 Enter \u0434\u043B\u044F \u043F\u0440\u043E\u043F\u0443\u0441\u043A\u0430)",skipSubLanguages:"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u044F\u0437\u044B\u043A\u0438 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u044B.",scanningProject:"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u0430...",detectedStack:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043D\u044B\u0439 \u0441\u0442\u0435\u043A:",confirmStack:"\u0412\u0441\u0451 \u0432\u0435\u0440\u043D\u043E?",manualStackEntry:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0441\u0442\u0435\u043A \u0432\u0440\u0443\u0447\u043D\u0443\u044E.",selectProjectType:"\u0427\u0442\u043E \u0432\u044B \u0441\u043E\u0437\u0434\u0430\u0451\u0442\u0435? (\u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0441\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0435)",projectTypes:{web:"\u0412\u0435\u0431-\u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435 (\u0444\u0440\u043E\u043D\u0442\u0435\u043D\u0434 + \u0431\u044D\u043A\u0435\u043D\u0434)",api:"API / \u0442\u043E\u043B\u044C\u043A\u043E \u0431\u044D\u043A\u0435\u043D\u0434",mobile:"\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435",game:"\u0418\u0433\u0440\u0430",cli:"CLI / \u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 / \u0421\u043A\u0440\u0438\u043F\u0442",desktop:"\u0414\u0435\u0441\u043A\u0442\u043E\u043F\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435"},selectProgrammingLanguages:"\u042F\u0437\u044B\u043A\u0438 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F:",selectFrontend:"\u0424\u0440\u043E\u043D\u0442\u0435\u043D\u0434-\u0444\u0440\u0435\u0439\u043C\u0432\u043E\u0440\u043A\u0438:",selectBackend:"\u0411\u044D\u043A\u0435\u043D\u0434-\u0444\u0440\u0435\u0439\u043C\u0432\u043E\u0440\u043A\u0438:",selectDatabase:"\u0411\u0430\u0437\u044B \u0434\u0430\u043D\u043D\u044B\u0445:",selectOrm:"ORM:",selectInfra:"\u0418\u043D\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0430:",selectGame:"\u0418\u0433\u0440\u043E\u0432\u044B\u0435 \u0434\u0432\u0438\u0436\u043A\u0438 / \u0444\u0440\u0435\u0439\u043C\u0432\u043E\u0440\u043A\u0438:",selectMobile:"\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u044B\u0435 / \u043A\u0440\u043E\u0441\u0441\u043F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0435\u043D\u043D\u044B\u0435:",toolRecommendationsTitle:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u044B\u0435 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u044B \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0442\u0435\u043A\u0430:",toolInstallMode:"\u041A\u0430\u043A \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C?",toolInstallDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E (\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0441\u0435)",toolInstallCustom:"\u0412\u044B\u0431\u043E\u0440\u043E\u0447\u043D\u043E (\u0432\u044B\u0431\u0440\u0430\u0442\u044C \u043F\u043E \u043E\u0434\u043D\u043E\u043C\u0443)",toolInstallSkip:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C (\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u043E\u0437\u0436\u0435)",toolInstallPrompt:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C?",toolInstalling:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430",toolInstallSuccess:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0443\u0441\u043F\u0435\u0448\u043D\u043E.",toolInstallFailed:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C. \u041C\u043E\u0436\u043D\u043E \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u043E\u0437\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 setup.",toolUniversalTag:"\u0432\u0441\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u044B",toolStackSpecificTag:"\u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0442\u0435\u043A\u0430",toolCategories:{vcs:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u044C \u0432\u0435\u0440\u0441\u0438\u0439",browser_automation:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044F \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430",e2e_testing:"E2E \u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",unit_testing:"\u042E\u043D\u0438\u0442-\u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",linting:"\u041B\u0438\u043D\u0442\u0438\u043D\u0433",formatting:"\u0424\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",type_checking:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0442\u0438\u043F\u043E\u0432",coverage:"\u041F\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u0434\u0430",documentation:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044F",secret_scanning:"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0441\u0435\u043A\u0440\u0435\u0442\u043E\u0432",security_analysis:"\u0410\u043D\u0430\u043B\u0438\u0437 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",unused_code:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u0435 \u043D\u0435\u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u043C\u043E\u0433\u043E \u043A\u043E\u0434\u0430",dependency_analysis:"\u0410\u043D\u0430\u043B\u0438\u0437 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0435\u0439"},githubDetected:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0451\u043D GitHub-\u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u0439. \u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0430\u0432\u0442\u043E\u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F \u043E\u0431\u044A\u0435\u0434\u0438\u043D\u0451\u043D\u043D\u044B\u0445 \u0432\u0435\u0442\u043E\u043A...",githubConfigSuccess:"\u2713 \u041E\u0431\u044A\u0435\u0434\u0438\u043D\u0451\u043D\u043D\u044B\u0435 \u0432\u0435\u0442\u043A\u0438 \u0431\u0443\u0434\u0443\u0442 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0443\u0434\u0430\u043B\u044F\u0442\u044C\u0441\u044F \u043D\u0430 GitHub.",githubConfigFailed:"\u2717 \u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435. \u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 `gh repo edit --delete-branch-on-merge` \u0432\u0440\u0443\u0447\u043D\u0443\u044E.",configCreated:"\u0421\u043E\u0437\u0434\u0430\u043D",configExists:"\u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442",configOverwritten:"\u041F\u0435\u0440\u0435\u0437\u0430\u043F\u0438\u0441\u0430\u043D",useForceFlag:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 --force \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0438\u0441\u0438.",languages:"\u042F\u0437\u044B\u043A\u0438",frontend:"\u0424\u0440\u043E\u043D\u0442\u0435\u043D\u0434",backend:"\u0411\u044D\u043A\u0435\u043D\u0434",database:"\u0411\u0430\u0437\u0430 \u0434\u0430\u043D\u043D\u044B\u0445",orm:"ORM",infra:"\u0418\u043D\u0444\u0440\u0430",game:"\u0418\u0433\u0440\u044B",mobile:"\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u044B\u0435",pressEnterToClose:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 Enter \u0434\u043B\u044F \u0432\u044B\u0445\u043E\u0434\u0430...",unknownCommand:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430",usage:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435:",installSuccess:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 Cursor!",installUpdated:"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0430",installUnchanged:"\u0423\u0436\u0435 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E",licenseNotSet:"\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u043E\u043D\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u043D\u0435 \u0437\u0430\u0434\u0430\u043D. \u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 GODD_LICENSE_KEY \u0438\u043B\u0438 \u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435: godd install --license-key=YOUR_KEY",restartCursor:"\u041F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 Cursor \u0434\u043B\u044F \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438 MCP-\u0441\u0435\u0440\u0432\u0435\u0440\u0430.",installFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438:",uninstallTitle:"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435",uninstallSuccess:"\u0423\u0434\u0430\u043B\u0435\u043D\u043E \u0438\u0437 Cursor",uninstallNotFound:"\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E (\u0443\u0436\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u043E)",uninstallFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F:",initTitle:"\u0418\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043F\u0440\u043E\u0435\u043A\u0442\u0430",initAutoHint:"\u041D\u0435\u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C (--auto): \u0442\u043E\u043B\u044C\u043A\u043E \u0430\u0432\u0442\u043E\u0441\u043A\u0430\u043D \u0441\u0442\u0435\u043A\u0430 \u0438 config; \u043C\u0430\u0441\u0442\u0435\u0440 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u043F\u0440\u043E\u043F\u0443\u0449\u0435\u043D. \u0414\u043B\u044F \u0432\u044B\u0431\u043E\u0440\u0430 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0439 init.",yes:"\u0414\u0430",no:"\u041D\u0435\u0442",none:"\u041D\u0435\u0442",invalidChoice:"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u044B\u0431\u043E\u0440. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0451 \u0440\u0430\u0437.",enterNumbers:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440\u0430",updateAvailable:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u043D\u043E\u0432\u0430\u044F \u0432\u0435\u0440\u0441\u0438\u044F:",updateCurrent:"\u0442\u0435\u043A\u0443\u0449\u0430\u044F:",licenseMissing:"\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F \u0441\u0440\u0435\u0434\u044B GODD_LICENSE_KEY \u043D\u0435 \u0437\u0430\u0434\u0430\u043D\u0430.",licenseMissingHint:"\u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435: godd install --license-key=YOUR_KEY",licenseFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043B\u0438\u0446\u0435\u043D\u0437\u0438\u0438",configNotFound:"\u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0432 \u0434\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u0438 \u043F\u0440\u043E\u0435\u043A\u0442\u0430.",configNotFoundHint:'\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 "godd init" \u0434\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043F\u0440\u043E\u0435\u043A\u0442\u0430.',configUnknownValues:"\u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F:",didYouMean:"\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u0432\u044B \u0438\u043C\u0435\u043B\u0438 \u0432 \u0432\u0438\u0434\u0443",serverStarted:"\u0437\u0430\u043F\u0443\u0449\u0435\u043D (stdio)",corruptMcpJson:"\u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0451\u043D. \u0420\u0435\u0437\u0435\u0440\u0432\u043D\u0430\u044F \u043A\u043E\u043F\u0438\u044F: {backup}. \u0421\u043E\u0437\u0434\u0430\u0451\u0442\u0441\u044F \u043D\u043E\u0432\u0430\u044F \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F.",licenseNotConfigured:"\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u043E\u043D\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u043D\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D. \u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 GODD_LICENSE_KEY \u0438 \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 Cursor.",resolvePromptFailed:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u043F\u0440\u043E\u043C\u043F\u0442",resolveToolFailed:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442",localToolFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u0430",helpInstall:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C MCP-\u0441\u0435\u0440\u0432\u0435\u0440 \u0432 Cursor",helpInit:"\u0418\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442 (\u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u043D\u043E; --auto \u2014 \u0442\u043E\u043B\u044C\u043A\u043E \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435)",helpUninstall:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C MCP-\u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u0437 Cursor",helpServe:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C MCP stdio-\u0441\u0435\u0440\u0432\u0435\u0440 (\u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442\u0441\u044F Cursor)",fatalError:"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430",compositeMissingSlugs:"\u0412\u041D\u0418\u041C\u0410\u041D\u0418\u0415: \u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043B\u044B \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C",goddFilesTitle:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0444\u0430\u0439\u043B\u043E\u0432 GoDD:",goddFilesDocsPrompt:"\u0414\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044F \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438 (Enter \u2014 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: documents):",goddFilesGitattributesPrompt:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C .gitattributes \u043F\u0440\u0438 init, \u0435\u0441\u043B\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442?",goddFilesDependabotPrompt:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C .github/dependabot.yml \u043F\u0440\u0438 init, \u0435\u0441\u043B\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442?",goddFilesCreated:"GoDD-MCP-alpha.md \u0441\u043E\u0437\u0434\u0430\u043D."},mT={en:s2,ja:a2,ru:c2};function De(e){return mT[e]??mT.en}var Bb={en:"English",ja:"\u65E5\u672C\u8A9E",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"};var I=e=>({win32:e,darwin:e,linux:e}),S=(e,...t)=>t.some(r=>e.programming_languages.includes(r)),Wn=(e,...t)=>t.some(r=>e.mobile.includes(r)),l2=[{category:"vcs",tool:"gh",installCmd:{win32:"winget install GitHub.cli",darwin:"brew install gh",linux:'(type -p wget >/dev/null || sudo apt-get install wget -y) && sudo mkdir -p -m 755 /etc/apt/keyrings && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null && sudo apt-get update && sudo apt-get install gh -y'},universal:!0,condition:()=>!0},{category:"browser_automation",tool:"browser-use",installCmd:I("pip install --upgrade browser-use"),universal:!0,condition:()=>!0},{category:"secret_scanning",tool:"gitleaks",installCmd:{win32:"winget install Gitleaks.Gitleaks",darwin:"brew install gitleaks",linux:"go install github.com/gitleaks/gitleaks/v8@latest"},universal:!0,condition:()=>!0},{category:"e2e_testing",tool:"playwright",installCmd:I("npm i -D @playwright/test@latest && npx playwright install"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"unit_testing",tool:"vitest",installCmd:I("npm i -D vitest@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"linting",tool:"biome",installCmd:I("npm i -D @biomejs/biome@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"formatting",tool:"biome",installCmd:I("npm i -D @biomejs/biome@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"type_checking",tool:"typescript",installCmd:I("npm i -D typescript@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"coverage",tool:"@vitest/coverage-v8",installCmd:I("npm i -D @vitest/coverage-v8@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"unused_code",tool:"knip",installCmd:I("npm i -D knip@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"dependency_analysis",tool:"dependency-cruiser",installCmd:I("npm i -D dependency-cruiser@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"documentation",tool:"typedoc",installCmd:I("npm i -D typedoc@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"e2e_testing",tool:"pytest",installCmd:I("pip install --upgrade pytest httpx pytest-asyncio"),universal:!1,condition:e=>S(e,"python")},{category:"unit_testing",tool:"pytest",installCmd:I("pip install --upgrade pytest"),universal:!1,condition:e=>S(e,"python")},{category:"linting",tool:"ruff",installCmd:I("pip install --upgrade ruff"),universal:!1,condition:e=>S(e,"python")},{category:"formatting",tool:"ruff",installCmd:I("pip install --upgrade ruff"),universal:!1,condition:e=>S(e,"python")},{category:"type_checking",tool:"pyright",installCmd:I("pip install --upgrade pyright"),universal:!1,condition:e=>S(e,"python")},{category:"coverage",tool:"pytest-cov",installCmd:I("pip install --upgrade pytest-cov"),universal:!1,condition:e=>S(e,"python")},{category:"unused_code",tool:"vulture",installCmd:I("pip install --upgrade vulture"),universal:!1,condition:e=>S(e,"python")},{category:"dependency_analysis",tool:"pipdeptree",installCmd:I("pip install --upgrade pipdeptree"),universal:!1,condition:e=>S(e,"python")},{category:"documentation",tool:"mkdocs",installCmd:I("pip install --upgrade mkdocs mkdocs-material"),universal:!1,condition:e=>S(e,"python")},{category:"security_analysis",tool:"bandit",installCmd:I("pip install --upgrade bandit"),universal:!1,condition:e=>S(e,"python")},{category:"unit_testing",tool:"testify",installCmd:I("go get github.com/stretchr/testify@latest"),universal:!1,condition:e=>S(e,"go")},{category:"formatting",tool:"gofmt",installCmd:I("echo gofmt \u2014 built-in with Go toolchain"),universal:!1,condition:e=>S(e,"go")},{category:"coverage",tool:"go-cover",installCmd:I("echo go test -cover \u2014 built-in with Go toolchain"),universal:!1,condition:e=>S(e,"go")},{category:"linting",tool:"golangci-lint",installCmd:{win32:"go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest",darwin:"brew install golangci-lint",linux:"go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest"},universal:!1,condition:e=>S(e,"go")},{category:"unused_code",tool:"deadcode",installCmd:I("go install golang.org/x/tools/cmd/deadcode@latest"),universal:!1,condition:e=>S(e,"go")},{category:"documentation",tool:"godoc",installCmd:I("go install golang.org/x/tools/cmd/godoc@latest"),universal:!1,condition:e=>S(e,"go")},{category:"security_analysis",tool:"gosec",installCmd:I("go install github.com/securego/gosec/v2/cmd/gosec@latest"),universal:!1,condition:e=>S(e,"go")},{category:"unit_testing",tool:"junit5",installCmd:I("echo JUnit 5 \u2014 add to pom.xml or build.gradle"),universal:!1,condition:e=>S(e,"java")&&!S(e,"kotlin")},{category:"linting",tool:"checkstyle",installCmd:I("echo Checkstyle \u2014 add Gradle/Maven plugin"),universal:!1,condition:e=>S(e,"java")&&!S(e,"kotlin")},{category:"formatting",tool:"google-java-format",installCmd:I("echo google-java-format \u2014 add to build config"),universal:!1,condition:e=>S(e,"java")&&!S(e,"kotlin")},{category:"coverage",tool:"jacoco",installCmd:I("echo JaCoCo \u2014 add Gradle/Maven plugin"),universal:!1,condition:e=>S(e,"java")},{category:"security_analysis",tool:"spotbugs",installCmd:I("echo SpotBugs \u2014 add Gradle/Maven plugin"),universal:!1,condition:e=>S(e,"java")},{category:"unit_testing",tool:"junit5",installCmd:I("echo JUnit 5 + MockK \u2014 add to build.gradle.kts"),universal:!1,condition:e=>S(e,"kotlin")},{category:"linting",tool:"detekt",installCmd:I("echo detekt \u2014 add Gradle plugin"),universal:!1,condition:e=>S(e,"kotlin")},{category:"formatting",tool:"ktlint",installCmd:I("echo ktlint \u2014 add Gradle plugin"),universal:!1,condition:e=>S(e,"kotlin")},{category:"coverage",tool:"kover",installCmd:I("echo Kover \u2014 add Gradle plugin"),universal:!1,condition:e=>S(e,"kotlin")},{category:"documentation",tool:"dokka",installCmd:I("echo Dokka \u2014 add Gradle plugin"),universal:!1,condition:e=>S(e,"kotlin")},{category:"unit_testing",tool:"xunit",installCmd:I("dotnet add package xunit xunit.runner.visualstudio"),universal:!1,condition:e=>S(e,"csharp")},{category:"formatting",tool:"dotnet-format",installCmd:I("echo dotnet format \u2014 built-in (.NET 6+)"),universal:!1,condition:e=>S(e,"csharp")},{category:"coverage",tool:"coverlet",installCmd:I("dotnet add package coverlet.collector"),universal:!1,condition:e=>S(e,"csharp")},{category:"linting",tool:"dotnet-analyzers",installCmd:I("echo .NET Analyzers \u2014 built-in with .NET 5+ SDK"),universal:!1,condition:e=>S(e,"csharp")},{category:"documentation",tool:"docfx",installCmd:I("dotnet tool install -g docfx"),universal:!1,condition:e=>S(e,"csharp")},{category:"unit_testing",tool:"googletest",installCmd:I("echo GoogleTest \u2014 add via CMake FetchContent"),universal:!1,condition:e=>S(e,"cpp","c")},{category:"linting",tool:"clang-tidy",installCmd:{win32:"choco install llvm",darwin:"brew install llvm",linux:"sudo apt-get install -y clang-tidy"},universal:!1,condition:e=>S(e,"cpp","c")},{category:"formatting",tool:"clang-format",installCmd:{win32:"choco install llvm",darwin:"brew install clang-format",linux:"sudo apt-get install -y clang-format"},universal:!1,condition:e=>S(e,"cpp","c")},{category:"coverage",tool:"lcov",installCmd:{win32:"choco install lcov",darwin:"brew install lcov",linux:"sudo apt-get install -y lcov"},universal:!1,condition:e=>S(e,"cpp","c")},{category:"documentation",tool:"doxygen",installCmd:{win32:"choco install doxygen.install",darwin:"brew install doxygen",linux:"sudo apt-get install -y doxygen"},universal:!1,condition:e=>S(e,"cpp","c")},{category:"security_analysis",tool:"cppcheck",installCmd:{win32:"choco install cppcheck",darwin:"brew install cppcheck",linux:"sudo apt-get install -y cppcheck"},universal:!1,condition:e=>S(e,"cpp","c")},{category:"unit_testing",tool:"phpunit",installCmd:I("composer require --dev phpunit/phpunit"),universal:!1,condition:e=>S(e,"php")},{category:"linting",tool:"phpstan",installCmd:I("composer require --dev phpstan/phpstan"),universal:!1,condition:e=>S(e,"php")},{category:"formatting",tool:"php-cs-fixer",installCmd:I("composer require --dev friendsofphp/php-cs-fixer"),universal:!1,condition:e=>S(e,"php")},{category:"documentation",tool:"phpdoc",installCmd:I("composer require --dev phpdocumentor/phpdocumentor"),universal:!1,condition:e=>S(e,"php")},{category:"security_analysis",tool:"psalm",installCmd:I("composer require --dev vimeo/psalm"),universal:!1,condition:e=>S(e,"php")},{category:"unit_testing",tool:"rspec",installCmd:I("gem install rspec && rspec --init"),universal:!1,condition:e=>S(e,"ruby")},{category:"linting",tool:"rubocop",installCmd:I("gem install rubocop"),universal:!1,condition:e=>S(e,"ruby")},{category:"formatting",tool:"rubocop",installCmd:I("gem install rubocop"),universal:!1,condition:e=>S(e,"ruby")},{category:"coverage",tool:"simplecov",installCmd:I("gem install simplecov"),universal:!1,condition:e=>S(e,"ruby")},{category:"documentation",tool:"yard",installCmd:I("gem install yard"),universal:!1,condition:e=>S(e,"ruby")},{category:"security_analysis",tool:"brakeman",installCmd:I("gem install brakeman"),universal:!1,condition:e=>S(e,"ruby")},{category:"linting",tool:"swiftlint",installCmd:{win32:"echo SwiftLint \u2014 not available on Windows",darwin:"brew install swiftlint",linux:"echo SwiftLint \u2014 install from GitHub releases"},universal:!1,condition:e=>S(e,"swift")},{category:"formatting",tool:"swiftformat",installCmd:{win32:"echo SwiftFormat \u2014 not available on Windows",darwin:"brew install swiftformat",linux:"echo SwiftFormat \u2014 install from GitHub releases"},universal:!1,condition:e=>S(e,"swift")},{category:"linting",tool:"clippy",installCmd:I("rustup component add clippy"),universal:!1,condition:e=>S(e,"rust")},{category:"formatting",tool:"rustfmt",installCmd:I("rustup component add rustfmt"),universal:!1,condition:e=>S(e,"rust")},{category:"coverage",tool:"tarpaulin",installCmd:I("cargo install cargo-tarpaulin"),universal:!1,condition:e=>S(e,"rust")},{category:"security_analysis",tool:"cargo-audit",installCmd:I("cargo install cargo-audit"),universal:!1,condition:e=>S(e,"rust")},{category:"unit_testing",tool:"flutter-test",installCmd:I("echo flutter test \u2014 built-in with Flutter SDK"),universal:!1,condition:e=>Wn(e,"flutter")},{category:"linting",tool:"flutter-lints",installCmd:I("dart pub add --dev flutter_lints"),universal:!1,condition:e=>Wn(e,"flutter")},{category:"documentation",tool:"dartdoc",installCmd:I("dart pub global activate dartdoc"),universal:!1,condition:e=>S(e,"dart")},{category:"linting",tool:"credo",installCmd:I('echo Credo \u2014 add {:credo, "~> 1.7"} to mix.exs'),universal:!1,condition:e=>S(e,"elixir")},{category:"type_checking",tool:"dialyxir",installCmd:I('echo Dialyxir \u2014 add {:dialyxir, "~> 1.4"} to mix.exs'),universal:!1,condition:e=>S(e,"elixir")},{category:"coverage",tool:"excoveralls",installCmd:I('echo ExCoveralls \u2014 add {:excoveralls, "~> 0.18"} to mix.exs'),universal:!1,condition:e=>S(e,"elixir")},{category:"documentation",tool:"ex-doc",installCmd:I('echo ExDoc \u2014 add {:ex_doc, "~> 0.34"} to mix.exs'),universal:!1,condition:e=>S(e,"elixir")},{category:"unit_testing",tool:"scalatest",installCmd:I("echo ScalaTest \u2014 add to build.sbt"),universal:!1,condition:e=>S(e,"scala")},{category:"linting",tool:"scalafix",installCmd:I("echo Scalafix \u2014 add sbt plugin"),universal:!1,condition:e=>S(e,"scala")},{category:"formatting",tool:"scalafmt",installCmd:I("echo Scalafmt \u2014 add sbt plugin"),universal:!1,condition:e=>S(e,"scala")},{category:"coverage",tool:"scoverage",installCmd:I("echo Scoverage \u2014 add sbt plugin"),universal:!1,condition:e=>S(e,"scala")},{category:"unit_testing",tool:"testthat",installCmd:I(`Rscript -e 'install.packages("testthat")'`),universal:!1,condition:e=>S(e,"r")},{category:"linting",tool:"lintr",installCmd:I(`Rscript -e 'install.packages("lintr")'`),universal:!1,condition:e=>S(e,"r")},{category:"formatting",tool:"styler",installCmd:I(`Rscript -e 'install.packages("styler")'`),universal:!1,condition:e=>S(e,"r")},{category:"coverage",tool:"covr",installCmd:I(`Rscript -e 'install.packages("covr")'`),universal:!1,condition:e=>S(e,"r")},{category:"documentation",tool:"roxygen2",installCmd:I(`Rscript -e 'install.packages("roxygen2")'`),universal:!1,condition:e=>S(e,"r")},{category:"unit_testing",tool:"hspec",installCmd:I("cabal install hspec"),universal:!1,condition:e=>S(e,"haskell")},{category:"linting",tool:"hlint",installCmd:I("cabal install hlint"),universal:!1,condition:e=>S(e,"haskell")},{category:"formatting",tool:"ormolu",installCmd:I("cabal install ormolu"),universal:!1,condition:e=>S(e,"haskell")},{category:"linting",tool:"perlcritic",installCmd:I("cpanm Perl::Critic"),universal:!1,condition:e=>S(e,"perl")},{category:"formatting",tool:"perltidy",installCmd:I("cpanm Perl::Tidy"),universal:!1,condition:e=>S(e,"perl")},{category:"linting",tool:"clj-kondo",installCmd:{win32:"echo clj-kondo \u2014 download from GitHub releases",darwin:"brew install borkdude/brew/clj-kondo",linux:"echo clj-kondo \u2014 download from GitHub releases"},universal:!1,condition:e=>S(e,"clojure")},{category:"formatting",tool:"cljfmt",installCmd:I("echo cljfmt \u2014 add to deps.edn"),universal:!1,condition:e=>S(e,"clojure")},{category:"formatting",tool:"juliaformatter",installCmd:I(`julia -e 'using Pkg; Pkg.add("JuliaFormatter")'`),universal:!1,condition:e=>S(e,"julia")},{category:"documentation",tool:"documenter",installCmd:I(`julia -e 'using Pkg; Pkg.add("Documenter")'`),universal:!1,condition:e=>S(e,"julia")},{category:"unit_testing",tool:"busted",installCmd:I("luarocks install busted"),universal:!1,condition:e=>S(e,"lua")},{category:"linting",tool:"luacheck",installCmd:I("luarocks install luacheck"),universal:!1,condition:e=>S(e,"lua")},{category:"formatting",tool:"stylua",installCmd:{win32:"cargo install stylua",darwin:"brew install stylua",linux:"cargo install stylua"},universal:!1,condition:e=>S(e,"lua")},{category:"unit_testing",tool:"forge-test",installCmd:{win32:"echo Foundry \u2014 install from https://getfoundry.sh",darwin:"curl -L https://foundry.paradigm.xyz | bash && foundryup",linux:"curl -L https://foundry.paradigm.xyz | bash && foundryup"},universal:!1,condition:e=>S(e,"solidity")},{category:"linting",tool:"solhint",installCmd:I("npm i -g solhint@latest"),universal:!1,condition:e=>S(e,"solidity")},{category:"formatting",tool:"prettier-solidity",installCmd:I("npm i -D prettier@latest prettier-plugin-solidity@latest"),universal:!1,condition:e=>S(e,"solidity")},{category:"security_analysis",tool:"slither",installCmd:I("pip install --upgrade slither-analyzer"),universal:!1,condition:e=>S(e,"solidity")},{category:"e2e_testing",tool:"detox",installCmd:I("npm i -D detox@latest"),universal:!1,condition:e=>Wn(e,"react-native","expo")},{category:"linting",tool:"detekt",installCmd:I("echo detekt \u2014 add Gradle plugin"),universal:!1,condition:e=>Wn(e,"jetpack-compose","kotlin-multiplatform")},{category:"linting",tool:"swiftlint",installCmd:{win32:"echo SwiftLint \u2014 not available on Windows",darwin:"brew install swiftlint",linux:"echo SwiftLint \u2014 install from GitHub releases"},universal:!1,condition:e=>Wn(e,"swiftui","uikit")},{category:"e2e_testing",tool:"cypress",installCmd:I("npm i -D cypress@latest"),universal:!1,condition:e=>Wn(e,"ionic","capacitor")},{category:"unit_testing",tool:"xunit",installCmd:I("dotnet add package xunit xunit.runner.visualstudio"),universal:!1,condition:e=>Wn(e,"maui")},{category:"linting",tool:"gdlint",installCmd:I("pip install --upgrade gdtoolkit"),universal:!1,condition:e=>S(e,"gdscript")},{category:"formatting",tool:"gdformat",installCmd:I("pip install --upgrade gdtoolkit"),universal:!1,condition:e=>S(e,"gdscript")},{category:"unit_testing",tool:"xunit",installCmd:I("dotnet add package xunit xunit.runner.visualstudio"),universal:!1,condition:e=>S(e,"fsharp")},{category:"formatting",tool:"fantomas",installCmd:I("dotnet tool install -g fantomas"),universal:!1,condition:e=>S(e,"fsharp")},{category:"unit_testing",tool:"alcotest",installCmd:I("opam install alcotest"),universal:!1,condition:e=>S(e,"ocaml")},{category:"formatting",tool:"ocamlformat",installCmd:I("opam install ocamlformat"),universal:!1,condition:e=>S(e,"ocaml")},{category:"linting",tool:"elvis",installCmd:I("echo elvis \u2014 add as rebar3 plugin"),universal:!1,condition:e=>S(e,"erlang")},{category:"linting",tool:"ameba",installCmd:I("echo Ameba \u2014 add to shard.yml"),universal:!1,condition:e=>S(e,"crystal")},{category:"linting",tool:"codenarc",installCmd:I("echo CodeNarc \u2014 add Gradle plugin"),universal:!1,condition:e=>S(e,"groovy")},{category:"linting",tool:"oclint",installCmd:{win32:"echo OCLint \u2014 not available on Windows",darwin:"brew install oclint",linux:"echo OCLint \u2014 install from GitHub releases"},universal:!1,condition:e=>S(e,"objective-c")},{category:"formatting",tool:"clang-format",installCmd:{win32:"choco install llvm",darwin:"brew install clang-format",linux:"sudo apt-get install -y clang-format"},universal:!1,condition:e=>S(e,"objective-c")},{category:"unit_testing",tool:"mstest",installCmd:I("dotnet add package MSTest.TestFramework MSTest.TestAdapter"),universal:!1,condition:e=>S(e,"visual-basic")},{category:"unit_testing",tool:"pester",installCmd:I("Install-Module -Name Pester -Force -SkipPublisherCheck"),universal:!1,condition:e=>S(e,"powershell")},{category:"linting",tool:"psscriptanalyzer",installCmd:I("Install-Module -Name PSScriptAnalyzer -Force"),universal:!1,condition:e=>S(e,"powershell")}];function gT(e){let t=new Set,r=[];for(let i of l2)t.has(i.category)||i.condition(e)&&(r.push(i),t.add(i.category));return r}var Me=require("node:fs"),Jt=require("node:path");var Jb="<!-- GoDD:start -->",Np="<!-- GoDD:end -->";function u2(e){let t=(0,Jt.resolve)(e,".godd","state","current-phase.json");if(!(0,Me.existsSync)(t))return null;try{let r=JSON.parse((0,Me.readFileSync)(t,"utf-8")),i=["","### NES Context (Next Edit Suggestions)",""];return r.phase&&i.push(`- **Current phase**: ${r.phase} (${r.status??"unknown"})`),r.workflow_context&&i.push(`- **Context**: ${r.workflow_context}`),Array.isArray(r.next_likely_files)&&r.next_likely_files.length>0&&i.push(`- **Next likely files**: ${r.next_likely_files.join(", ")}`),i.join(`
191
- `)}catch{return null}}function d2(e,t){let r=["### GoDD stack snapshot","",`Auto-detected from this repository (updated when \`${V.toolPrefix}config\` or \`${V.cli} init\` runs):`,""];for(let[n,o]of Object.entries(e))Array.isArray(o)&&o.length>0&&r.push(`- **${n}**: ${o.join(", ")}`);let i=u2(t);return i&&r.push(i),r.push("",`_Generated by ${V.displayName} MCP \u2014 keep this block for drift detection._`),r.join(`
192
- `)}function Io(e,t){let r=(0,Jt.resolve)(e,"AGENTS.md"),i=d2(t,e),n=`${Jb}
184
+ `)}p.write("payload.value = newResult;"),p.write("return payload;");let k=p.compile();return(x,N)=>k(f,x,N)},o,s=vn,a=!Fo.jitless,l=a&&Xp.value,u=t.catchall,d;e._zod.parse=(f,p)=>{d??(d=i.value);let g=f.value;return s(g)?a&&l&&p?.async===!1&&p.jitless!==!0?(o||(o=n(t.shape)),f=o(f,p),u?H$([],g,f,p,d,e):f):r(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function A$(e,t,r,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let n=e.filter(o=>!Dr(o));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(s=>lt(s,i,Te())))}),t)}var Pi=y("$ZodUnion",(e,t)=>{G.init(e,t),Y(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Y(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Y(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Y(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>Bo(o.source)).join("|")})$`)}});let r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return i(n,o);let s=!1,a=[];for(let c of t.options){let l=c._zod.run({value:n.value,issues:[]},o);if(l instanceof Promise)a.push(l),s=!0;else{if(l.issues.length===0)return l;a.push(l)}}return s?Promise.all(a).then(c=>A$(c,n,e,o)):A$(a,n,e,o)}});function R$(e,t,r,i){let n=e.filter(o=>o.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(s=>lt(s,i,Te())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var wl=y("$ZodXor",(e,t)=>{Pi.init(e,t),t.inclusive=!1;let r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return i(n,o);let s=!1,a=[];for(let c of t.options){let l=c._zod.run({value:n.value,issues:[]},o);l instanceof Promise?(a.push(l),s=!0):a.push(l)}return s?Promise.all(a).then(c=>R$(c,n,e,o)):R$(a,n,e,o)}}),Il=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Pi.init(e,t);let r=e._zod.parse;Y(e._zod,"propValues",()=>{let n={};for(let o of t.options){let s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[a,c]of Object.entries(s)){n[a]||(n[a]=new Set);for(let l of c)n[a].add(l)}}return n});let i=gi(()=>{let n=t.options,o=new Map;for(let s of n){let a=s._zod.propValues?.[t.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let c of a){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,s)}}return o});e._zod.parse=(n,o)=>{let s=n.value;if(!vn(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),n;let a=i.value.get(s?.[t.discriminator]);return a?a._zod.run(n,o):t.unionFallback?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),n)}}),zl=y("$ZodIntersection",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},i),s=t.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([c,l])=>M$(r,c,l)):M$(r,o,s)}});function Ym(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 r=Object.keys(t),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(let o of i){let s=Ym(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n[o]=s.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=e[i],o=t[i],s=Ym(n,o);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function M$(e,t,r){let i=new Map,n;for(let a of t.issues)if(a.code==="unrecognized_keys"){n??(n=a);for(let c of a.keys)i.has(c)||i.set(c,{}),i.get(c).l=!0}else e.issues.push(a);for(let a of r.issues)if(a.code==="unrecognized_keys")for(let c of a.keys)i.has(c)||i.set(c,{}),i.get(c).r=!0;else e.issues.push(a);let o=[...i].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(o.length&&n&&e.issues.push({...n,keys:o}),Dr(e))return e;let s=Ym(t.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var ns=y("$ZodTuple",(e,t)=>{G.init(e,t);let r=t.items;e._zod.parse=(i,n)=>{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 s=[],a=[...r].reverse().findIndex(u=>u._zod.optin!=="optional"),c=a===-1?0:r.length-a;if(!t.rest){let u=o.length>r.length,d=o.length<c-1;if(u||d)return i.issues.push({...u?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),i}let l=-1;for(let u of r){if(l++,l>=o.length&&l>=c)continue;let d=u._zod.run({value:o[l],issues:[]},n);d instanceof Promise?s.push(d.then(f=>Mc(f,i,l))):Mc(d,i,l)}if(t.rest){let u=o.slice(r.length);for(let d of u){l++;let f=t.rest._zod.run({value:d,issues:[]},n);f instanceof Promise?s.push(f.then(p=>Mc(p,i,l))):Mc(f,i,l)}}return s.length?Promise.all(s).then(()=>i):i}});function Mc(e,t,r){e.issues.length&&t.issues.push(...$t(r,e.issues)),t.value[r]=e.value}var Pl=y("$ZodRecord",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Cr(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s){r.value={};let a=new Set;for(let l of s)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){a.add(typeof l=="number"?l.toString():l);let u=t.valueType._zod.run({value:n[l],issues:[]},i);u instanceof Promise?o.push(u.then(d=>{d.issues.length&&r.issues.push(...$t(l,d.issues)),r.value[l]=d.value})):(u.issues.length&&r.issues.push(...$t(l,u.issues)),r.value[l]=u.value)}let c;for(let l in n)a.has(l)||(c=c??[],c.push(l));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let a of Reflect.ownKeys(n)){if(a==="__proto__")continue;let c=t.keyType._zod.run({value:a,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&Dc.test(a)&&c.issues.length){let d=t.keyType._zod.run({value:Number(a),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"?r.value[a]=n[a]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>lt(d,i,Te())),input:a,path:[a],inst:e});continue}let u=t.valueType._zod.run({value:n[a],issues:[]},i);u instanceof Promise?o.push(u.then(d=>{d.issues.length&&r.issues.push(...$t(a,d.issues)),r.value[c.value]=d.value})):(u.issues.length&&r.issues.push(...$t(a,u.issues)),r.value[c.value]=u.value)}}return o.length?Promise.all(o).then(()=>r):r}}),Tl=y("$ZodMap",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let o=[];r.value=new Map;for(let[s,a]of n){let c=t.keyType._zod.run({value:s,issues:[]},i),l=t.valueType._zod.run({value:a,issues:[]},i);c instanceof Promise||l instanceof Promise?o.push(Promise.all([c,l]).then(([u,d])=>{L$(u,d,r,s,n,e,i)})):L$(c,l,r,s,n,e,i)}return o.length?Promise.all(o).then(()=>r):r}});function L$(e,t,r,i,n,o,s){e.issues.length&&(Jo.has(typeof i)?r.issues.push(...$t(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(a=>lt(a,s,Te()))})),t.issues.length&&(Jo.has(typeof i)?r.issues.push(...$t(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(a=>lt(a,s,Te()))})),r.value.set(e.value,t.value)}var El=y("$ZodSet",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let s of n){let a=t.valueType._zod.run({value:s,issues:[]},i);a instanceof Promise?o.push(a.then(c=>U$(c,r))):U$(a,r)}return o.length?Promise.all(o).then(()=>r):r}});function U$(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Nl=y("$ZodEnum",(e,t)=>{G.init(e,t);let r=Go(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>Jo.has(typeof n)).map(n=>typeof n=="string"?It(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{let s=n.value;return i.has(s)||n.issues.push({code:"invalid_value",values:r,input:s,inst:e}),n}}),Ol=y("$ZodLiteral",(e,t)=>{if(G.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?It(i):i?It(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),jl=y("$ZodFile",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),Cl=y("$ZodTransform",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Nr(e.constructor.name);let n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new Rt;return r.value=n,r}});function q$(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var is=y("$ZodOptional",(e,t)=>{G.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Y(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Bo(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>q$(o,r.value)):q$(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),Dl=y("$ZodExactOptional",(e,t)=>{is.init(e,t),Y(e._zod,"values",()=>t.innerType._zod.values),Y(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),Al=y("$ZodNullable",(e,t)=>{G.init(e,t),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Bo(r.source)}|null)$`):void 0}),Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),Rl=y("$ZodDefault",(e,t)=>{G.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Z$(o,t)):Z$(n,t)}});function Z$(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Ml=y("$ZodPrefault",(e,t)=>{G.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),Ll=y("$ZodNonOptional",(e,t)=>{G.init(e,t),Y(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>F$(o,e)):F$(n,e)}});function F$(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 Ul=y("$ZodSuccess",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Nr("ZodSuccess");let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),ql=y("$ZodCatch",(e,t)=>{G.init(e,t),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(s=>lt(s,i,Te()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>lt(o,i,Te()))},input:r.value}),r.issues=[]),r)}}),Zl=y("$ZodNaN",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Fl=y("$ZodPipe",(e,t)=>{G.init(e,t),Y(e._zod,"values",()=>t.in._zod.values),Y(e._zod,"optin",()=>t.in._zod.optin),Y(e._zod,"optout",()=>t.out._zod.optout),Y(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(s=>Lc(s,t.in,i)):Lc(o,t.in,i)}let n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>Lc(o,t.out,i)):Lc(n,t.out,i)}});function Lc(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Ti=y("$ZodCodec",(e,t)=>{G.init(e,t),Y(e._zod,"values",()=>t.in._zod.values),Y(e._zod,"optin",()=>t.in._zod.optin),Y(e._zod,"optout",()=>t.out._zod.optout),Y(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(r,i);return o instanceof Promise?o.then(s=>Uc(s,t,i)):Uc(o,t,i)}else{let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(s=>Uc(s,t,i)):Uc(o,t,i)}}});function Uc(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(o=>qc(e,o,t.out,r)):qc(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>qc(e,o,t.in,r)):qc(e,n,t.in,r)}}function qc(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}var Vl=y("$ZodReadonly",(e,t)=>{G.init(e,t),Y(e._zod,"propValues",()=>t.innerType._zod.propValues),Y(e._zod,"values",()=>t.innerType._zod.values),Y(e._zod,"optin",()=>t.innerType?._zod?.optin),Y(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(V$):V$(n)}});function V$(e){return e.value=Object.freeze(e.value),e}var Kl=y("$ZodTemplateLiteral",(e,t)=>{G.init(e,t);let r=[];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 n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,s))}else if(i===null||em.has(typeof i))r.push(It(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>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)}),Gl=y("$ZodFunction",(e,t)=>(G.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){let n=e._def.input?bi(e._def.input,i):i,o=Reflect.apply(r,this,n);return e._def.output?bi(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=e._def.input?await ki(e._def.input,i):i,o=await Reflect.apply(r,this,n);return e._def.output?await ki(e._def.output,o):o}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new ns({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),Bl=y("$ZodPromise",(e,t)=>{G.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),Jl=y("$ZodLazy",(e,t)=>{G.init(e,t),Y(e._zod,"innerType",()=>t.getter()),Y(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Y(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Y(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Y(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),Hl=y("$ZodCustom",(e,t)=>{_e.init(e,t),G.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{let i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(o=>K$(o,r,i,e));K$(n,r,i,e)}});function K$(e,t,r,i){if(!e){let n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(hi(n))}}var Ni={};ur(Ni,{ar:()=>W$,az:()=>Y$,be:()=>X$,bg:()=>ek,ca:()=>tk,cs:()=>rk,da:()=>nk,de:()=>ik,en:()=>Wl,eo:()=>ok,es:()=>sk,fa:()=>ak,fi:()=>ck,fr:()=>lk,frCA:()=>uk,he:()=>dk,hu:()=>fk,hy:()=>mk,id:()=>gk,is:()=>hk,it:()=>yk,ja:()=>vk,ka:()=>_k,kh:()=>bk,km:()=>Yl,ko:()=>$k,lt:()=>Sk,mk:()=>xk,ms:()=>wk,nl:()=>Ik,no:()=>zk,ota:()=>Pk,pl:()=>Ek,ps:()=>Tk,pt:()=>Nk,ru:()=>jk,sl:()=>Ck,sv:()=>Dk,ta:()=>Ak,th:()=>Rk,tr:()=>Mk,ua:()=>Lk,uk:()=>Ql,ur:()=>Uk,uz:()=>qk,vi:()=>Zk,yo:()=>Kk,zhCN:()=>Fk,zhTW:()=>Vk});var uN=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${z(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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 "${n.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}`:`${r[o.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${_(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function W$(){return{localeError:uN()}}var dN=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${a}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${a}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${z(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Y$(){return{localeError:dN()}}function Q$(e,t,r,i){let n=Math.abs(e),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?t:o>=2&&o<=4?r:i}var fN=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${z(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);if(s){let a=Number(n.maximum),c=Q$(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${o}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);if(s){let a=Number(n.minimum),c=Q$(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${o}${n.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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${_(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function X$(){return{localeError:fN()}}var pN=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${z(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function ek(){return{localeError:pN()}}var mN=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${a}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${a}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${z(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${_(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",s=t(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",s=t(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function tk(){return{localeError:mN()}}var gN=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${a}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${a}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${z(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${_(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function rk(){return{localeError:gN()}}var hN=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${a}`:`Ugyldigt input: forventede ${o}, fik ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${z(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin),a=i[n.origin]??n.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${o} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin),a=i[n.origin]??n.origin;return s?`For lille: forventede ${a} ${s.verb} ${o} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${_(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function nk(){return{localeError:hN()}}var yN=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${a}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${a}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${z(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;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: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${_(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function ik(){return{localeError:yN()}}var vN=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return`Invalid input: expected ${o}, received ${a}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.values[0])}`:`Invalid option: expected one of ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Wl(){return{localeError:vN()}}var _N=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${a}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${a}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${z(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function ok(){return{localeError:_N()}}var bN=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${a}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${a}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${z(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin),a=i[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${o}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin),a=i[n.origin]??n.origin;return s?`Demasiado peque\xF1o: se esperaba que ${a} tuviera ${o}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${a} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function sk(){return{localeError:bN()}}var $N=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \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 ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${z(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${_(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;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`:`${r[o.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${_(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function ak(){return{localeError:$N()}}var kN=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${a}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${z(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${_(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function ck(){return{localeError:kN()}}var SN=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${a} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${a} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${z(n.values[0])} attendu`:`Option invalide : une valeur parmi ${_(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Trop grand : ${n.origin??"valeur"} doit ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Trop petit : ${n.origin} doit ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${_(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function lk(){return{localeError:SN()}}var xN=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${a}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${a}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${z(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",s=t(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",s=t(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${_(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function uk(){return{localeError:xN()}}var wN=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=l=>l?e[l]:void 0,i=l=>{let u=r(l);return u?u.label:l??e.unknown.label},n=l=>`\u05D4${i(l)}`,o=l=>(r(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=l=>l?t[l]??null:null,a={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),f=E(l.input),p=c[f]??e[f]?.label??f;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 ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}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 ${z(l.values[0])}`;let u=l.values.map(p=>z(p));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=s(l.origin),d=n(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 g=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 ${g}`}if(l.origin==="array"||l.origin==="set"){let g=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",m=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} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${m}`.trim()}let f=l.inclusive?"<=":"<",p=o(l.origin??"value");return u?.unit?`${u.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${l.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${l.maximum.toString()}`}case"too_small":{let u=s(l.origin),d=n(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 g=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 ${g}`}if(l.origin==="array"||l.origin==="set"){let g=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} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`}let m=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} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${m}`.trim()}let f=l.inclusive?">=":">",p=o(l.origin??"value");return u?.unit?`${u.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${l.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${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=a[u.format],f=d?.label??u.format,g=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${g}`}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"}: ${_(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${n(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function dk(){return{localeError:wN()}}var IN=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${a}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${a}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${z(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function fk(){return{localeError:IN()}}function pk(e,t,r){return Math.abs(e)===1?t:r}function Ei(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var zN=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${z(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);if(s){let a=Number(n.maximum),c=pk(a,s.unit.one,s.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 ${Ei(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.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 ${Ei(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);if(s){let a=Number(n.minimum),c=pk(a,s.unit.one,s.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 ${Ei(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.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 ${Ei(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${_(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Ei(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Ei(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function mk(){return{localeError:zN()}}var PN=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${o}, diterima ${a}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${z(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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}`:`${r[o.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function gk(){return{localeError:PN()}}var TN=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${z(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${_(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function hk(){return{localeError:TN()}}var EN=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${a}`:`Input non valido: atteso ${o}, ricevuto ${a}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${z(n.values[0])}`:`Opzione non valida: atteso uno tra ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${_(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function yk(){return{localeError:EN()}}var NN=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${z(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${_(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=t(n.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=t(n.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;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${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${_(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function vk(){return{localeError:NN()}}var ON=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${z(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${_(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${_(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function _k(){return{localeError:ON()}}var jN=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${z(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${_(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Yl(){return{localeError:jN()}}function bk(){return Yl()}var CN=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${z(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${_(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(n.origin),c=a?.unit??"\uC694\uC18C";return a?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${o}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${s}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(n.origin),c=a?.unit??"\uC694\uC18C";return a?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${o}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${s}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${_(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function $k(){return{localeError:CN()}}var os=e=>e.charAt(0).toUpperCase()+e.slice(1);function kk(e){let t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}var DN=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,o,s,a){let c=e[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[a][s?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${a}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${a}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${z(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${_(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,s=t(n.origin,kk(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${os(o??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.maximum.toString()} ${s.unit??"element\u0173"}`;let a=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${os(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${n.maximum.toString()} ${s?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,s=t(n.origin,kk(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${os(o??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.minimum.toString()} ${s.unit??"element\u0173"}`;let a=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${os(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${n.minimum.toString()} ${s?.unit}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${_(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[n.origin]??n.origin;return`${os(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Sk(){return{localeError:DN()}}var AN=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${_(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function xk(){return{localeError:AN()}}var RN=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${a}`:`Input tidak sah: dijangka ${o}, diterima ${a}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${z(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${_(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function wk(){return{localeError:RN()}}var MN=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${o}, ontving ${a}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${z(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin),a=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin),a=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;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: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function Ik(){return{localeError:MN()}}var LN=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${a}`:`Ugyldig input: forventet ${o}, fikk ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${z(n.values[0])}`:`Ugyldig valg: forventet en av ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${_(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function zk(){return{localeError:LN()}}var UN=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${a}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${a}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${z(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Pk(){return{localeError:UN()}}var qN=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \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 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${z(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${_(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;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`:`${r[o.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${_(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Tk(){return{localeError:qN()}}var ZN=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${a}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${a}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${z(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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) ${r[o.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Ek(){return{localeError:ZN()}}var FN=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${a}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${a}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${z(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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}`:`${r[o.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function Nk(){return{localeError:FN()}}function Ok(e,t,r,i){let n=Math.abs(e),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?t:o>=2&&o<=4?r:i}var VN=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${z(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);if(s){let a=Number(n.maximum),c=Ok(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);if(s){let a=Number(n.minimum),c=Ok(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function jk(){return{localeError:VN()}}var KN=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${a}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${a}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${z(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${_(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function Ck(){return{localeError:KN()}}var GN=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${a}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${a}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${z(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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) ${r[o.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${_(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Dk(){return{localeError:GN()}}var BN=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${z(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${_(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Ak(){return{localeError:BN()}}var JN=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${z(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=t(n.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=t(n.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${_(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Rk(){return{localeError:JN()}}var HN=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${a}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${a}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${z(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Mk(){return{localeError:HN()}}var WN=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${z(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Ql(){return{localeError:WN()}}function Lk(){return Ql()}var YN=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \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 ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${z(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${_(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${_(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Uk(){return{localeError:YN()}}var QN=()=>{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"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${a}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${a}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${z(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function qk(){return{localeError:QN()}}var XN=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${z(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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}`:`${r[o.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${_(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Zk(){return{localeError:XN()}}var eO=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${z(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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${r[o.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Fk(){return{localeError:eO()}}var tO=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${a}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${a}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${z(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${_(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Vk(){return{localeError:tO()}}var rO=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=E(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${a}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${a}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${z(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${s.verb} ${o}${n.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${s.verb} ${o}${n.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;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: ${r[o.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${_(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Kk(){return{localeError:rO()}}var Gk,eu=Symbol("ZodOutput"),tu=Symbol("ZodInput"),Xl=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let i=r[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 r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function ss(){return new Xl}(Gk=globalThis).__zod_globalRegistry??(Gk.__zod_globalRegistry=ss());var Re=globalThis.__zod_globalRegistry;function ru(e,t){return new e({type:"string",...O(t)})}function nu(e,t){return new e({type:"string",coerce:!0,...O(t)})}function as(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...O(t)})}function Oi(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...O(t)})}function cs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...O(t)})}function ls(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...O(t)})}function us(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...O(t)})}function ds(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...O(t)})}function ji(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...O(t)})}function fs(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...O(t)})}function ps(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...O(t)})}function ms(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...O(t)})}function gs(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...O(t)})}function hs(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...O(t)})}function ys(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...O(t)})}function vs(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...O(t)})}function _s(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...O(t)})}function bs(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...O(t)})}function iu(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...O(t)})}function $s(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...O(t)})}function ks(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...O(t)})}function Ss(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...O(t)})}function xs(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...O(t)})}function ws(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...O(t)})}function Is(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...O(t)})}var ou={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function su(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...O(t)})}function au(e,t){return new e({type:"string",format:"date",check:"string_format",...O(t)})}function cu(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...O(t)})}function lu(e,t){return new e({type:"string",format:"duration",check:"string_format",...O(t)})}function uu(e,t){return new e({type:"number",checks:[],...O(t)})}function du(e,t){return new e({type:"number",coerce:!0,checks:[],...O(t)})}function fu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...O(t)})}function pu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...O(t)})}function mu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...O(t)})}function gu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...O(t)})}function hu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...O(t)})}function yu(e,t){return new e({type:"boolean",...O(t)})}function vu(e,t){return new e({type:"boolean",coerce:!0,...O(t)})}function _u(e,t){return new e({type:"bigint",...O(t)})}function bu(e,t){return new e({type:"bigint",coerce:!0,...O(t)})}function $u(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...O(t)})}function ku(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...O(t)})}function Su(e,t){return new e({type:"symbol",...O(t)})}function xu(e,t){return new e({type:"undefined",...O(t)})}function wu(e,t){return new e({type:"null",...O(t)})}function Iu(e){return new e({type:"any"})}function zu(e){return new e({type:"unknown"})}function Pu(e,t){return new e({type:"never",...O(t)})}function Tu(e,t){return new e({type:"void",...O(t)})}function Eu(e,t){return new e({type:"date",...O(t)})}function Nu(e,t){return new e({type:"date",coerce:!0,...O(t)})}function Ou(e,t){return new e({type:"nan",...O(t)})}function Mt(e,t){return new Ac({check:"less_than",...O(t),value:e,inclusive:!1})}function it(e,t){return new Ac({check:"less_than",...O(t),value:e,inclusive:!0})}function Lt(e,t){return new Rc({check:"greater_than",...O(t),value:e,inclusive:!1})}function qe(e,t){return new Rc({check:"greater_than",...O(t),value:e,inclusive:!0})}function zs(e){return Lt(0,e)}function Ps(e){return Mt(0,e)}function Ts(e){return it(0,e)}function Es(e){return qe(0,e)}function hr(e,t){return new Om({check:"multiple_of",...O(t),value:e})}function yr(e,t){return new Dm({check:"max_size",...O(t),maximum:e})}function Ut(e,t){return new Am({check:"min_size",...O(t),minimum:e})}function Rr(e,t){return new Rm({check:"size_equals",...O(t),size:e})}function Mr(e,t){return new Mm({check:"max_length",...O(t),maximum:e})}function Yt(e,t){return new Lm({check:"min_length",...O(t),minimum:e})}function Lr(e,t){return new Um({check:"length_equals",...O(t),length:e})}function $n(e,t){return new qm({check:"string_format",format:"regex",...O(t),pattern:e})}function kn(e){return new Zm({check:"string_format",format:"lowercase",...O(e)})}function Sn(e){return new Fm({check:"string_format",format:"uppercase",...O(e)})}function xn(e,t){return new Vm({check:"string_format",format:"includes",...O(t),includes:e})}function wn(e,t){return new Km({check:"string_format",format:"starts_with",...O(t),prefix:e})}function In(e,t){return new Gm({check:"string_format",format:"ends_with",...O(t),suffix:e})}function Ns(e,t,r){return new Bm({check:"property",property:e,schema:t,...O(r)})}function zn(e,t){return new Jm({check:"mime_type",mime:e,...O(t)})}function zt(e){return new Hm({check:"overwrite",tx:e})}function Pn(e){return zt(t=>t.normalize(e))}function Tn(){return zt(e=>e.trim())}function En(){return zt(e=>e.toLowerCase())}function Nn(){return zt(e=>e.toUpperCase())}function Ci(){return zt(e=>Qp(e))}function tg(e,t,r){return new e({type:"array",element:t,...O(r)})}function iO(e,t,r){return new e({type:"union",options:t,...O(r)})}function oO(e,t,r){return new e({type:"union",options:t,inclusive:!1,...O(r)})}function sO(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...O(i)})}function aO(e,t,r){return new e({type:"intersection",left:t,right:r})}function cO(e,t,r,i){let n=r instanceof G,o=n?i:r,s=n?r:null;return new e({type:"tuple",items:t,rest:s,...O(o)})}function lO(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...O(i)})}function uO(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...O(i)})}function dO(e,t,r){return new e({type:"set",valueType:t,...O(r)})}function fO(e,t,r){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...O(r)})}function pO(e,t,r){return new e({type:"enum",entries:t,...O(r)})}function mO(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...O(r)})}function ju(e,t){return new e({type:"file",...O(t)})}function gO(e,t){return new e({type:"transform",transform:t})}function hO(e,t){return new e({type:"optional",innerType:t})}function yO(e,t){return new e({type:"nullable",innerType:t})}function vO(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Sc(r)}})}function _O(e,t,r){return new e({type:"nonoptional",innerType:t,...O(r)})}function bO(e,t){return new e({type:"success",innerType:t})}function $O(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function kO(e,t,r){return new e({type:"pipe",in:t,out:r})}function SO(e,t){return new e({type:"readonly",innerType:t})}function xO(e,t,r){return new e({type:"template_literal",parts:t,...O(r)})}function wO(e,t){return new e({type:"lazy",getter:t})}function IO(e,t){return new e({type:"promise",innerType:t})}function Cu(e,t,r){let i=O(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Du(e,t,r){return new e({type:"custom",check:"custom",fn:t,...O(r)})}function Au(e){let t=Bk(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(hi(i,r.value,t._zod.def));else{let n=i;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(hi(n))}},e(r.value,r)));return t}function Bk(e,t){let r=new _e({check:"custom",...O(t)});return r._zod.check=e,r}function Ru(e){let t=new _e({check:"describe"});return t._zod.onattach=[r=>{let i=Re.get(r)??{};Re.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function Mu(e){let t=new _e({check:"meta"});return t._zod.onattach=[r=>{let i=Re.get(r)??{};Re.add(r,{...i,...e})}],t._zod.check=()=>{},t}function Lu(e,t){let r=O(t),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(p=>typeof p=="string"?p.toLowerCase():p),n=n.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(i),s=new Set(n),a=e.Codec??Ti,c=e.Boolean??zi,l=e.String??Ar,u=new l({type:"string",error:r.error}),d=new c({type:"boolean",error:r.error}),f=new a({type:"pipe",in:u,out:d,transform:((p,g)=>{let m=p;return r.case!=="sensitive"&&(m=m.toLowerCase()),o.has(m)?!0:s.has(m)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:g.value,inst:f,continue:!1}),{})}),reverseTransform:((p,g)=>p===!0?i[0]||"true":n[0]||"false"),error:r.error});return f}function On(e,t,r,i={}){let n=O(i),o={...O(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:a=>r.test(a),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Ur(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??Re,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 ge(e,t,r={path:[],schemaPath:[]}){var i;let n=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s);let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,u);else{let f=s.schema,p=t.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(e,t,f,u)}let d=e._zod.parent;d&&(s.ref||(s.ref=d),ge(d,t,u),t.seen.get(d).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),t.io==="input"&&ot(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function qr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=i.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(a,s[0])}}let n=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,f=e.external.uri??(g=>g);if(d)return{ref:f(d)};let p=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=p,{defId:p,ref:`${f("__shared")}#/${a}/${p}`}}if(s[1]===r)return{ref:"#"};let l=`#/${a}/`,u=s[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:l+u}},o=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:l}=n(s);a.def={...a.schema},l&&(a.defId=l);let u=a.schema;for(let d in u)delete u[d];u.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
185
+
186
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){o(s);continue}if(e.external){let l=e.external.registry.get(s[0])?.id;if(t!==s[0]&&l){o(s);continue}}if(e.metadataRegistry.get(s[0])?.id){o(s);continue}if(a.cycle){o(s);continue}if(a.count>1&&e.reused==="ref"){o(s);continue}}}function Zr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let a=e.seen.get(s);if(a.ref===null)return;let c=a.def??a.schema,l={...c},u=a.ref;if(a.ref=null,u){i(u);let f=e.seen.get(u),p=f.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(p)):Object.assign(c,p),Object.assign(c,l),s._zod.parent===u)for(let m in c)m==="$ref"||m==="allOf"||m in l||delete c[m];if(p.$ref&&f.def)for(let m in c)m==="$ref"||m==="allOf"||m in f.def&&JSON.stringify(c[m])===JSON.stringify(f.def[m])&&delete c[m]}let d=s._zod.parent;if(d&&d!==u){i(d);let f=e.seen.get(d);if(f?.schema.$ref&&(c.$ref=f.schema.$ref,f.def))for(let p in c)p==="$ref"||p==="allOf"||p in f.def&&JSON.stringify(c[p])===JSON.stringify(f.def[p])&&delete c[p]}e.override({zodSchema:s,jsonSchema:c,path:a.path??[]})};for(let s of[...e.seen.entries()].reverse())i(s[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Object.assign(n,r.def??r.schema);let o=e.external?.defs??{};for(let s of e.seen.entries()){let a=s[1];a.def&&a.defId&&(o[a.defId]=a.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?n.$defs=o:n.definitions=o);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Di(t,"input",e.processors),output:Di(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function ot(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return ot(i.element,r);if(i.type==="set")return ot(i.valueType,r);if(i.type==="lazy")return ot(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return ot(i.innerType,r);if(i.type==="intersection")return ot(i.left,r)||ot(i.right,r);if(i.type==="record"||i.type==="map")return ot(i.keyType,r)||ot(i.valueType,r);if(i.type==="pipe")return ot(i.in,r)||ot(i.out,r);if(i.type==="object"){for(let n in i.shape)if(ot(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(ot(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(ot(n,r))return!0;return!!(i.rest&&ot(i.rest,r))}return!1}var rg=(e,t={})=>r=>{let i=Ur({...r,processors:t});return ge(e,i),qr(i,e),Zr(i,e)},Di=(e,t,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},s=Ur({...n??{},target:o,io:t,processors:r});return ge(e,s),qr(s,e),Zr(s,e)};var zO={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ng=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:s,format:a,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof s=="number"&&(n.maxLength=s),a&&(n.format=zO[a]??a,n.format===""&&delete n.format,a==="time"&&delete n.format),l&&(n.contentEncoding=l),c&&c.size>0){let u=[...c];u.length===1?n.pattern=u[0].source:u.length>1&&(n.allOf=[...u.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},ig=(e,t,r,i)=>{let n=r,{minimum:o,maximum:s,format:a,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof a=="string"&&a.includes("int")?n.type="integer":n.type="number",typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u),typeof o=="number"&&(n.minimum=o,typeof u=="number"&&t.target!=="draft-04"&&(u>=o?delete n.minimum:delete n.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l),typeof s=="number"&&(n.maximum=s,typeof l=="number"&&t.target!=="draft-04"&&(l<=s?delete n.maximum:delete n.exclusiveMaximum)),typeof c=="number"&&(n.multipleOf=c)},og=(e,t,r,i)=>{r.type="boolean"},sg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},ag=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},cg=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},lg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},ug=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},dg=(e,t,r,i)=>{r.not={}},fg=(e,t,r,i)=>{},pg=(e,t,r,i)=>{},mg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},gg=(e,t,r,i)=>{let n=e._zod.def,o=Go(n.entries);o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),r.enum=o},hg=(e,t,r,i)=>{let n=e._zod.def,o=[];for(let s of n.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){let s=o[0];r.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[s]:r.const=s}else o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),o.every(s=>typeof s=="boolean")&&(r.type="boolean"),o.every(s=>s===null)&&(r.type="null"),r.enum=o},yg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},vg=(e,t,r,i)=>{let n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},_g=(e,t,r,i)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:c}=e._zod.bag;s!==void 0&&(o.minLength=s),a!==void 0&&(o.maxLength=a),c?c.length===1?(o.contentMediaType=c[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(n,o)},bg=(e,t,r,i)=>{r.type="boolean"},$g=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},kg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Sg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},xg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},wg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Ig=(e,t,r,i)=>{let n=r,o=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(n.minItems=s),typeof a=="number"&&(n.maxItems=a),n.type="array",n.items=ge(o.element,t,{...i,path:[...i.path,"items"]})},zg=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object",n.properties={};let s=o.shape;for(let l in s)n.properties[l]=ge(s[l],t,{...i,path:[...i.path,"properties",l]});let a=new Set(Object.keys(s)),c=new Set([...a].filter(l=>{let u=o.shape[l]._zod;return t.io==="input"?u.optin===void 0:u.optout===void 0}));c.size>0&&(n.required=Array.from(c)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=ge(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},qu=(e,t,r,i)=>{let n=e._zod.def,o=n.inclusive===!1,s=n.options.map((a,c)=>ge(a,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=s:r.anyOf=s},Pg=(e,t,r,i)=>{let n=e._zod.def,o=ge(n.left,t,{...i,path:[...i.path,"allOf",0]}),s=ge(n.right,t,{...i,path:[...i.path,"allOf",1]}),a=l=>"allOf"in l&&Object.keys(l).length===1,c=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];r.allOf=c},Tg=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((f,p)=>ge(f,t,{...i,path:[...i.path,s,p]})),l=o.rest?ge(o.rest,t,{...i,path:[...i.path,a,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,l&&(n.items=l)):t.target==="openapi-3.0"?(n.items={anyOf:c},l&&n.items.anyOf.push(l),n.minItems=c.length,l||(n.maxItems=c.length)):(n.items=c,l&&(n.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u=="number"&&(n.minItems=u),typeof d=="number"&&(n.maxItems=d)},Eg=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object";let s=o.keyType,c=s._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let u=ge(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let d of c)n.patternProperties[d.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=ge(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=ge(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let l=s._zod.values;if(l){let u=[...l].filter(d=>typeof d=="string"||typeof d=="number");u.length>0&&(n.required=u)}},Ng=(e,t,r,i)=>{let n=e._zod.def,o=ge(n.innerType,t,i),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},Og=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},jg=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Cg=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Dg=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},Ag=(e,t,r,i)=>{let n=e._zod.def,o=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;ge(o,t,i);let s=t.seen.get(e);s.ref=o},Rg=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},Mg=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Zu=(e,t,r,i)=>{let n=e._zod.def;ge(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Lg=(e,t,r,i)=>{let n=e._zod.innerType;ge(n,t,i);let o=t.seen.get(e);o.ref=n},Uu={string:ng,number:ig,boolean:og,bigint:sg,symbol:ag,null:cg,undefined:lg,void:ug,never:dg,any:fg,unknown:pg,date:mg,enum:gg,literal:hg,nan:yg,template_literal:vg,file:_g,success:bg,custom:$g,function:kg,transform:Sg,map:xg,set:wg,array:Ig,object:zg,union:qu,intersection:Pg,tuple:Tg,record:Eg,nullable:Ng,nonoptional:Og,default:jg,prefault:Cg,catch:Dg,pipe:Ag,readonly:Rg,promise:Mg,optional:Zu,lazy:Lg};function Ai(e,t){if("_idmap"in e){let i=e,n=Ur({...t,processors:Uu}),o={};for(let c of i._idmap.entries()){let[l,u]=c;ge(u,n)}let s={},a={registry:i,uri:t?.uri,defs:o};n.external=a;for(let c of i._idmap.entries()){let[l,u]=c;qr(n,u),s[l]=Zr(n,u)}if(Object.keys(o).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:o}}return{schemas:s}}let r=Ur({...t,processors:Uu});return ge(e,r),qr(r,e),Zr(r,e)}var Fu=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Ur({processors:Uu,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return ge(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),qr(this.ctx,t);let i=Zr(this.ctx,t),{"~standard":n,...o}=i;return o}};var Jk={};function Ri(e){return!!e._zod}function Fr(e,t){return Ri(e)?_n(e,t):e.safeParse(t)}function Vu(e){if(!e)return;let t;if(Ri(e)?t=e._zod?.def?.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function Yk(e){if(Ri(e)){let o=e._zod?.def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}}let r=e._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}let i=e.value;if(i!==void 0)return i}var F={};ur(F,{$brand:()=>Vo,$input:()=>tu,$output:()=>eu,NEVER:()=>bc,TimePrecision:()=>ou,ZodAny:()=>sh,ZodArray:()=>uh,ZodBase64:()=>ud,ZodBase64URL:()=>dd,ZodBigInt:()=>Fi,ZodBigIntFormat:()=>md,ZodBoolean:()=>Zi,ZodCIDRv4:()=>cd,ZodCIDRv6:()=>ld,ZodCUID:()=>td,ZodCUID2:()=>rd,ZodCatch:()=>Eh,ZodCodec:()=>bd,ZodCustom:()=>Fs,ZodCustomStringFormat:()=>Ui,ZodDate:()=>Ms,ZodDefault:()=>xh,ZodDiscriminatedUnion:()=>fh,ZodE164:()=>fd,ZodEmail:()=>Qu,ZodEmoji:()=>Xu,ZodEnum:()=>Mi,ZodError:()=>jO,ZodExactOptional:()=>$h,ZodFile:()=>_h,ZodFirstPartyTypeKind:()=>Zh,ZodFunction:()=>Lh,ZodGUID:()=>js,ZodIPv4:()=>sd,ZodIPv6:()=>ad,ZodISODate:()=>Bu,ZodISODateTime:()=>Gu,ZodISODuration:()=>Hu,ZodISOTime:()=>Ju,ZodIntersection:()=>ph,ZodIssueCode:()=>DO,ZodJWT:()=>pd,ZodKSUID:()=>od,ZodLazy:()=>Ah,ZodLiteral:()=>vh,ZodMAC:()=>rh,ZodMap:()=>hh,ZodNaN:()=>Oh,ZodNanoID:()=>ed,ZodNever:()=>ch,ZodNonOptional:()=>vd,ZodNull:()=>oh,ZodNullable:()=>Sh,ZodNumber:()=>qi,ZodNumberFormat:()=>jn,ZodObject:()=>Ls,ZodOptional:()=>yd,ZodPipe:()=>_d,ZodPrefault:()=>Ih,ZodPromise:()=>Mh,ZodReadonly:()=>jh,ZodRealError:()=>ft,ZodRecord:()=>Zs,ZodSet:()=>yh,ZodString:()=>Li,ZodStringFormat:()=>be,ZodSuccess:()=>Th,ZodSymbol:()=>nh,ZodTemplateLiteral:()=>Dh,ZodTransform:()=>bh,ZodTuple:()=>mh,ZodType:()=>H,ZodULID:()=>nd,ZodURL:()=>As,ZodUUID:()=>Qt,ZodUndefined:()=>ih,ZodUnion:()=>Us,ZodUnknown:()=>ah,ZodVoid:()=>lh,ZodXID:()=>id,ZodXor:()=>dh,_ZodString:()=>Yu,_default:()=>wh,_function:()=>ex,any:()=>AS,array:()=>ne,base64:()=>_S,base64url:()=>bS,bigint:()=>NS,boolean:()=>Ee,catch:()=>Nh,check:()=>tx,cidrv4:()=>yS,cidrv6:()=>vS,clone:()=>Ue,codec:()=>YS,coerce:()=>Fh,config:()=>Te,core:()=>kt,cuid:()=>lS,cuid2:()=>uS,custom:()=>$d,date:()=>MS,decode:()=>Hg,decodeAsync:()=>Yg,describe:()=>rx,discriminatedUnion:()=>qs,e164:()=>$S,email:()=>Xk,emoji:()=>aS,encode:()=>Jg,encodeAsync:()=>Wg,endsWith:()=>In,enum:()=>Fe,exactOptional:()=>kh,file:()=>BS,flattenError:()=>yi,float32:()=>zS,float64:()=>PS,formatError:()=>vi,fromJSONSchema:()=>cx,function:()=>ex,getErrorMap:()=>RO,globalRegistry:()=>Re,gt:()=>Lt,gte:()=>qe,guid:()=>eS,hash:()=>IS,hex:()=>wS,hostname:()=>xS,httpUrl:()=>sS,includes:()=>xn,instanceof:()=>ix,int:()=>Wu,int32:()=>TS,int64:()=>OS,intersection:()=>Vi,ipv4:()=>mS,ipv6:()=>hS,iso:()=>Vr,json:()=>sx,jwt:()=>kS,keyof:()=>LS,ksuid:()=>pS,lazy:()=>Rh,length:()=>Lr,literal:()=>L,locales:()=>Ni,looseObject:()=>Ze,looseRecord:()=>FS,lowercase:()=>kn,lt:()=>Mt,lte:()=>it,mac:()=>gS,map:()=>VS,maxLength:()=>Mr,maxSize:()=>yr,meta:()=>nx,mime:()=>zn,minLength:()=>Yt,minSize:()=>Ut,multipleOf:()=>hr,nan:()=>WS,nanoid:()=>cS,nativeEnum:()=>GS,negative:()=>Ps,never:()=>gd,nonnegative:()=>Es,nonoptional:()=>Ph,nonpositive:()=>Ts,normalize:()=>Pn,null:()=>Rs,nullable:()=>Cs,nullish:()=>JS,number:()=>fe,object:()=>D,optional:()=>xe,overwrite:()=>zt,parse:()=>Vg,parseAsync:()=>Kg,partialRecord:()=>ZS,pipe:()=>Ds,positive:()=>zs,prefault:()=>zh,preprocess:()=>Vs,prettifyError:()=>wc,promise:()=>XS,property:()=>Ns,readonly:()=>Ch,record:()=>ve,refine:()=>Uh,regex:()=>$n,regexes:()=>dt,registry:()=>ss,safeDecode:()=>Xg,safeDecodeAsync:()=>th,safeEncode:()=>Qg,safeEncodeAsync:()=>eh,safeParse:()=>Gg,safeParseAsync:()=>Bg,set:()=>KS,setErrorMap:()=>AO,size:()=>Rr,slugify:()=>Ci,startsWith:()=>wn,strictObject:()=>US,string:()=>b,stringFormat:()=>SS,stringbool:()=>ox,success:()=>HS,superRefine:()=>qh,symbol:()=>CS,templateLiteral:()=>QS,toJSONSchema:()=>Ai,toLowerCase:()=>En,toUpperCase:()=>Nn,transform:()=>hd,treeifyError:()=>xc,trim:()=>Tn,tuple:()=>gh,uint32:()=>ES,uint64:()=>jS,ulid:()=>dS,undefined:()=>DS,union:()=>ke,unknown:()=>$e,uppercase:()=>Sn,url:()=>oS,util:()=>T,uuid:()=>tS,uuidv4:()=>rS,uuidv6:()=>nS,uuidv7:()=>iS,void:()=>RS,xid:()=>fS,xor:()=>qS});var Os={};ur(Os,{ZodAny:()=>sh,ZodArray:()=>uh,ZodBase64:()=>ud,ZodBase64URL:()=>dd,ZodBigInt:()=>Fi,ZodBigIntFormat:()=>md,ZodBoolean:()=>Zi,ZodCIDRv4:()=>cd,ZodCIDRv6:()=>ld,ZodCUID:()=>td,ZodCUID2:()=>rd,ZodCatch:()=>Eh,ZodCodec:()=>bd,ZodCustom:()=>Fs,ZodCustomStringFormat:()=>Ui,ZodDate:()=>Ms,ZodDefault:()=>xh,ZodDiscriminatedUnion:()=>fh,ZodE164:()=>fd,ZodEmail:()=>Qu,ZodEmoji:()=>Xu,ZodEnum:()=>Mi,ZodExactOptional:()=>$h,ZodFile:()=>_h,ZodFunction:()=>Lh,ZodGUID:()=>js,ZodIPv4:()=>sd,ZodIPv6:()=>ad,ZodIntersection:()=>ph,ZodJWT:()=>pd,ZodKSUID:()=>od,ZodLazy:()=>Ah,ZodLiteral:()=>vh,ZodMAC:()=>rh,ZodMap:()=>hh,ZodNaN:()=>Oh,ZodNanoID:()=>ed,ZodNever:()=>ch,ZodNonOptional:()=>vd,ZodNull:()=>oh,ZodNullable:()=>Sh,ZodNumber:()=>qi,ZodNumberFormat:()=>jn,ZodObject:()=>Ls,ZodOptional:()=>yd,ZodPipe:()=>_d,ZodPrefault:()=>Ih,ZodPromise:()=>Mh,ZodReadonly:()=>jh,ZodRecord:()=>Zs,ZodSet:()=>yh,ZodString:()=>Li,ZodStringFormat:()=>be,ZodSuccess:()=>Th,ZodSymbol:()=>nh,ZodTemplateLiteral:()=>Dh,ZodTransform:()=>bh,ZodTuple:()=>mh,ZodType:()=>H,ZodULID:()=>nd,ZodURL:()=>As,ZodUUID:()=>Qt,ZodUndefined:()=>ih,ZodUnion:()=>Us,ZodUnknown:()=>ah,ZodVoid:()=>lh,ZodXID:()=>id,ZodXor:()=>dh,_ZodString:()=>Yu,_default:()=>wh,_function:()=>ex,any:()=>AS,array:()=>ne,base64:()=>_S,base64url:()=>bS,bigint:()=>NS,boolean:()=>Ee,catch:()=>Nh,check:()=>tx,cidrv4:()=>yS,cidrv6:()=>vS,codec:()=>YS,cuid:()=>lS,cuid2:()=>uS,custom:()=>$d,date:()=>MS,describe:()=>rx,discriminatedUnion:()=>qs,e164:()=>$S,email:()=>Xk,emoji:()=>aS,enum:()=>Fe,exactOptional:()=>kh,file:()=>BS,float32:()=>zS,float64:()=>PS,function:()=>ex,guid:()=>eS,hash:()=>IS,hex:()=>wS,hostname:()=>xS,httpUrl:()=>sS,instanceof:()=>ix,int:()=>Wu,int32:()=>TS,int64:()=>OS,intersection:()=>Vi,ipv4:()=>mS,ipv6:()=>hS,json:()=>sx,jwt:()=>kS,keyof:()=>LS,ksuid:()=>pS,lazy:()=>Rh,literal:()=>L,looseObject:()=>Ze,looseRecord:()=>FS,mac:()=>gS,map:()=>VS,meta:()=>nx,nan:()=>WS,nanoid:()=>cS,nativeEnum:()=>GS,never:()=>gd,nonoptional:()=>Ph,null:()=>Rs,nullable:()=>Cs,nullish:()=>JS,number:()=>fe,object:()=>D,optional:()=>xe,partialRecord:()=>ZS,pipe:()=>Ds,prefault:()=>zh,preprocess:()=>Vs,promise:()=>XS,readonly:()=>Ch,record:()=>ve,refine:()=>Uh,set:()=>KS,strictObject:()=>US,string:()=>b,stringFormat:()=>SS,stringbool:()=>ox,success:()=>HS,superRefine:()=>qh,symbol:()=>CS,templateLiteral:()=>QS,transform:()=>hd,tuple:()=>gh,uint32:()=>ES,uint64:()=>jS,ulid:()=>dS,undefined:()=>DS,union:()=>ke,unknown:()=>$e,url:()=>oS,uuid:()=>tS,uuidv4:()=>rS,uuidv6:()=>nS,uuidv7:()=>iS,void:()=>RS,xid:()=>fS,xor:()=>qS});var Ku={};ur(Ku,{endsWith:()=>In,gt:()=>Lt,gte:()=>qe,includes:()=>xn,length:()=>Lr,lowercase:()=>kn,lt:()=>Mt,lte:()=>it,maxLength:()=>Mr,maxSize:()=>yr,mime:()=>zn,minLength:()=>Yt,minSize:()=>Ut,multipleOf:()=>hr,negative:()=>Ps,nonnegative:()=>Es,nonpositive:()=>Ts,normalize:()=>Pn,overwrite:()=>zt,positive:()=>zs,property:()=>Ns,regex:()=>$n,size:()=>Rr,slugify:()=>Ci,startsWith:()=>wn,toLowerCase:()=>En,toUpperCase:()=>Nn,trim:()=>Tn,uppercase:()=>Sn});var Vr={};ur(Vr,{ZodISODate:()=>Bu,ZodISODateTime:()=>Gu,ZodISODuration:()=>Hu,ZodISOTime:()=>Ju,date:()=>qg,datetime:()=>Ug,duration:()=>Fg,time:()=>Zg});var Gu=y("ZodISODateTime",(e,t)=>{el.init(e,t),be.init(e,t)});function Ug(e){return su(Gu,e)}var Bu=y("ZodISODate",(e,t)=>{tl.init(e,t),be.init(e,t)});function qg(e){return au(Bu,e)}var Ju=y("ZodISOTime",(e,t)=>{rl.init(e,t),be.init(e,t)});function Zg(e){return cu(Ju,e)}var Hu=y("ZodISODuration",(e,t)=>{nl.init(e,t),be.init(e,t)});function Fg(e){return lu(Hu,e)}var Qk=(e,t)=>{Yo.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>vi(e,r)},flatten:{value:r=>yi(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,mi,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,mi,2)}},isEmpty:{get(){return e.issues.length===0}}})},jO=y("ZodError",Qk),ft=y("ZodError",Qk,{Parent:Error});var Vg=_i(ft),Kg=$i(ft),Gg=Si(ft),Bg=xi(ft),Jg=Ic(ft),Hg=zc(ft),Wg=Pc(ft),Yg=Tc(ft),Qg=Ec(ft),Xg=Nc(ft),eh=Oc(ft),th=jc(ft);var H=y("ZodType",(e,t)=>(G.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Di(e,"input"),output:Di(e,"output")}}),e.toJSONSchema=rg(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(T.mergeDefs(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(r,i)=>Ue(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>Vg(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>Gg(e,r,i),e.parseAsync=async(r,i)=>Kg(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>Bg(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>Jg(e,r,i),e.decode=(r,i)=>Hg(e,r,i),e.encodeAsync=async(r,i)=>Wg(e,r,i),e.decodeAsync=async(r,i)=>Yg(e,r,i),e.safeEncode=(r,i)=>Qg(e,r,i),e.safeDecode=(r,i)=>Xg(e,r,i),e.safeEncodeAsync=async(r,i)=>eh(e,r,i),e.safeDecodeAsync=async(r,i)=>th(e,r,i),e.refine=(r,i)=>e.check(Uh(r,i)),e.superRefine=r=>e.check(qh(r)),e.overwrite=r=>e.check(zt(r)),e.optional=()=>xe(e),e.exactOptional=()=>kh(e),e.nullable=()=>Cs(e),e.nullish=()=>xe(Cs(e)),e.nonoptional=r=>Ph(e,r),e.array=()=>ne(e),e.or=r=>ke([e,r]),e.and=r=>Vi(e,r),e.transform=r=>Ds(e,hd(r)),e.default=r=>wh(e,r),e.prefault=r=>zh(e,r),e.catch=r=>Nh(e,r),e.pipe=r=>Ds(e,r),e.readonly=()=>Ch(e),e.describe=r=>{let i=e.clone();return Re.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return Re.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Re.get(e);let i=e.clone();return Re.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),Yu=y("_ZodString",(e,t)=>{Ar.init(e,t),H.init(e,t),e._zod.processJSONSchema=(i,n,o)=>ng(e,i,n,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check($n(...i)),e.includes=(...i)=>e.check(xn(...i)),e.startsWith=(...i)=>e.check(wn(...i)),e.endsWith=(...i)=>e.check(In(...i)),e.min=(...i)=>e.check(Yt(...i)),e.max=(...i)=>e.check(Mr(...i)),e.length=(...i)=>e.check(Lr(...i)),e.nonempty=(...i)=>e.check(Yt(1,...i)),e.lowercase=i=>e.check(kn(i)),e.uppercase=i=>e.check(Sn(i)),e.trim=()=>e.check(Tn()),e.normalize=(...i)=>e.check(Pn(...i)),e.toLowerCase=()=>e.check(En()),e.toUpperCase=()=>e.check(Nn()),e.slugify=()=>e.check(Ci())}),Li=y("ZodString",(e,t)=>{Ar.init(e,t),Yu.init(e,t),e.email=r=>e.check(as(Qu,r)),e.url=r=>e.check(ji(As,r)),e.jwt=r=>e.check(Is(pd,r)),e.emoji=r=>e.check(fs(Xu,r)),e.guid=r=>e.check(Oi(js,r)),e.uuid=r=>e.check(cs(Qt,r)),e.uuidv4=r=>e.check(ls(Qt,r)),e.uuidv6=r=>e.check(us(Qt,r)),e.uuidv7=r=>e.check(ds(Qt,r)),e.nanoid=r=>e.check(ps(ed,r)),e.guid=r=>e.check(Oi(js,r)),e.cuid=r=>e.check(ms(td,r)),e.cuid2=r=>e.check(gs(rd,r)),e.ulid=r=>e.check(hs(nd,r)),e.base64=r=>e.check(Ss(ud,r)),e.base64url=r=>e.check(xs(dd,r)),e.xid=r=>e.check(ys(id,r)),e.ksuid=r=>e.check(vs(od,r)),e.ipv4=r=>e.check(_s(sd,r)),e.ipv6=r=>e.check(bs(ad,r)),e.cidrv4=r=>e.check($s(cd,r)),e.cidrv6=r=>e.check(ks(ld,r)),e.e164=r=>e.check(ws(fd,r)),e.datetime=r=>e.check(Ug(r)),e.date=r=>e.check(qg(r)),e.time=r=>e.check(Zg(r)),e.duration=r=>e.check(Fg(r))});function b(e){return ru(Li,e)}var be=y("ZodStringFormat",(e,t)=>{ye.init(e,t),Yu.init(e,t)}),Qu=y("ZodEmail",(e,t)=>{Kc.init(e,t),be.init(e,t)});function Xk(e){return as(Qu,e)}var js=y("ZodGUID",(e,t)=>{Fc.init(e,t),be.init(e,t)});function eS(e){return Oi(js,e)}var Qt=y("ZodUUID",(e,t)=>{Vc.init(e,t),be.init(e,t)});function tS(e){return cs(Qt,e)}function rS(e){return ls(Qt,e)}function nS(e){return us(Qt,e)}function iS(e){return ds(Qt,e)}var As=y("ZodURL",(e,t)=>{Gc.init(e,t),be.init(e,t)});function oS(e){return ji(As,e)}function sS(e){return ji(As,{protocol:/^https?$/,hostname:dt.domain,...T.normalizeParams(e)})}var Xu=y("ZodEmoji",(e,t)=>{Bc.init(e,t),be.init(e,t)});function aS(e){return fs(Xu,e)}var ed=y("ZodNanoID",(e,t)=>{Jc.init(e,t),be.init(e,t)});function cS(e){return ps(ed,e)}var td=y("ZodCUID",(e,t)=>{Hc.init(e,t),be.init(e,t)});function lS(e){return ms(td,e)}var rd=y("ZodCUID2",(e,t)=>{Wc.init(e,t),be.init(e,t)});function uS(e){return gs(rd,e)}var nd=y("ZodULID",(e,t)=>{Yc.init(e,t),be.init(e,t)});function dS(e){return hs(nd,e)}var id=y("ZodXID",(e,t)=>{Qc.init(e,t),be.init(e,t)});function fS(e){return ys(id,e)}var od=y("ZodKSUID",(e,t)=>{Xc.init(e,t),be.init(e,t)});function pS(e){return vs(od,e)}var sd=y("ZodIPv4",(e,t)=>{il.init(e,t),be.init(e,t)});function mS(e){return _s(sd,e)}var rh=y("ZodMAC",(e,t)=>{sl.init(e,t),be.init(e,t)});function gS(e){return iu(rh,e)}var ad=y("ZodIPv6",(e,t)=>{ol.init(e,t),be.init(e,t)});function hS(e){return bs(ad,e)}var cd=y("ZodCIDRv4",(e,t)=>{al.init(e,t),be.init(e,t)});function yS(e){return $s(cd,e)}var ld=y("ZodCIDRv6",(e,t)=>{cl.init(e,t),be.init(e,t)});function vS(e){return ks(ld,e)}var ud=y("ZodBase64",(e,t)=>{ll.init(e,t),be.init(e,t)});function _S(e){return Ss(ud,e)}var dd=y("ZodBase64URL",(e,t)=>{ul.init(e,t),be.init(e,t)});function bS(e){return xs(dd,e)}var fd=y("ZodE164",(e,t)=>{dl.init(e,t),be.init(e,t)});function $S(e){return ws(fd,e)}var pd=y("ZodJWT",(e,t)=>{fl.init(e,t),be.init(e,t)});function kS(e){return Is(pd,e)}var Ui=y("ZodCustomStringFormat",(e,t)=>{pl.init(e,t),be.init(e,t)});function SS(e,t,r={}){return On(Ui,e,t,r)}function xS(e){return On(Ui,"hostname",dt.hostname,e)}function wS(e){return On(Ui,"hex",dt.hex,e)}function IS(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=dt[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return On(Ui,i,n,t)}var qi=y("ZodNumber",(e,t)=>{ts.init(e,t),H.init(e,t),e._zod.processJSONSchema=(i,n,o)=>ig(e,i,n,o),e.gt=(i,n)=>e.check(Lt(i,n)),e.gte=(i,n)=>e.check(qe(i,n)),e.min=(i,n)=>e.check(qe(i,n)),e.lt=(i,n)=>e.check(Mt(i,n)),e.lte=(i,n)=>e.check(it(i,n)),e.max=(i,n)=>e.check(it(i,n)),e.int=i=>e.check(Wu(i)),e.safe=i=>e.check(Wu(i)),e.positive=i=>e.check(Lt(0,i)),e.nonnegative=i=>e.check(qe(0,i)),e.negative=i=>e.check(Mt(0,i)),e.nonpositive=i=>e.check(it(0,i)),e.multipleOf=(i,n)=>e.check(hr(i,n)),e.step=(i,n)=>e.check(hr(i,n)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function fe(e){return uu(qi,e)}var jn=y("ZodNumberFormat",(e,t)=>{ml.init(e,t),qi.init(e,t)});function Wu(e){return fu(jn,e)}function zS(e){return pu(jn,e)}function PS(e){return mu(jn,e)}function TS(e){return gu(jn,e)}function ES(e){return hu(jn,e)}var Zi=y("ZodBoolean",(e,t)=>{zi.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>og(e,r,i,n)});function Ee(e){return yu(Zi,e)}var Fi=y("ZodBigInt",(e,t)=>{rs.init(e,t),H.init(e,t),e._zod.processJSONSchema=(i,n,o)=>sg(e,i,n,o),e.gte=(i,n)=>e.check(qe(i,n)),e.min=(i,n)=>e.check(qe(i,n)),e.gt=(i,n)=>e.check(Lt(i,n)),e.gte=(i,n)=>e.check(qe(i,n)),e.min=(i,n)=>e.check(qe(i,n)),e.lt=(i,n)=>e.check(Mt(i,n)),e.lte=(i,n)=>e.check(it(i,n)),e.max=(i,n)=>e.check(it(i,n)),e.positive=i=>e.check(Lt(BigInt(0),i)),e.negative=i=>e.check(Mt(BigInt(0),i)),e.nonpositive=i=>e.check(it(BigInt(0),i)),e.nonnegative=i=>e.check(qe(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(hr(i,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function NS(e){return _u(Fi,e)}var md=y("ZodBigIntFormat",(e,t)=>{gl.init(e,t),Fi.init(e,t)});function OS(e){return $u(md,e)}function jS(e){return ku(md,e)}var nh=y("ZodSymbol",(e,t)=>{hl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ag(e,r,i,n)});function CS(e){return Su(nh,e)}var ih=y("ZodUndefined",(e,t)=>{yl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>lg(e,r,i,n)});function DS(e){return xu(ih,e)}var oh=y("ZodNull",(e,t)=>{vl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>cg(e,r,i,n)});function Rs(e){return wu(oh,e)}var sh=y("ZodAny",(e,t)=>{_l.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>fg(e,r,i,n)});function AS(){return Iu(sh)}var ah=y("ZodUnknown",(e,t)=>{bl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>pg(e,r,i,n)});function $e(){return zu(ah)}var ch=y("ZodNever",(e,t)=>{$l.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>dg(e,r,i,n)});function gd(e){return Pu(ch,e)}var lh=y("ZodVoid",(e,t)=>{kl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ug(e,r,i,n)});function RS(e){return Tu(lh,e)}var Ms=y("ZodDate",(e,t)=>{Sl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(i,n,o)=>mg(e,i,n,o),e.min=(i,n)=>e.check(qe(i,n)),e.max=(i,n)=>e.check(it(i,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function MS(e){return Eu(Ms,e)}var uh=y("ZodArray",(e,t)=>{xl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ig(e,r,i,n),e.element=t.element,e.min=(r,i)=>e.check(Yt(r,i)),e.nonempty=r=>e.check(Yt(1,r)),e.max=(r,i)=>e.check(Mr(r,i)),e.length=(r,i)=>e.check(Lr(r,i)),e.unwrap=()=>e.element});function ne(e,t){return tg(uh,e,t)}function LS(e){let t=e._zod.def.shape;return Fe(Object.keys(t))}var Ls=y("ZodObject",(e,t)=>{eg.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>zg(e,r,i,n),T.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Fe(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:$e()}),e.loose=()=>e.clone({...e._zod.def,catchall:$e()}),e.strict=()=>e.clone({...e._zod.def,catchall:gd()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>T.extend(e,r),e.safeExtend=r=>T.safeExtend(e,r),e.merge=r=>T.merge(e,r),e.pick=r=>T.pick(e,r),e.omit=r=>T.omit(e,r),e.partial=(...r)=>T.partial(yd,e,r[0]),e.required=(...r)=>T.required(vd,e,r[0])});function D(e,t){let r={type:"object",shape:e??{},...T.normalizeParams(t)};return new Ls(r)}function US(e,t){return new Ls({type:"object",shape:e,catchall:gd(),...T.normalizeParams(t)})}function Ze(e,t){return new Ls({type:"object",shape:e,catchall:$e(),...T.normalizeParams(t)})}var Us=y("ZodUnion",(e,t)=>{Pi.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>qu(e,r,i,n),e.options=t.options});function ke(e,t){return new Us({type:"union",options:e,...T.normalizeParams(t)})}var dh=y("ZodXor",(e,t)=>{Us.init(e,t),wl.init(e,t),e._zod.processJSONSchema=(r,i,n)=>qu(e,r,i,n),e.options=t.options});function qS(e,t){return new dh({type:"union",options:e,inclusive:!1,...T.normalizeParams(t)})}var fh=y("ZodDiscriminatedUnion",(e,t)=>{Us.init(e,t),Il.init(e,t)});function qs(e,t,r){return new fh({type:"union",options:t,discriminator:e,...T.normalizeParams(r)})}var ph=y("ZodIntersection",(e,t)=>{zl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Pg(e,r,i,n)});function Vi(e,t){return new ph({type:"intersection",left:e,right:t})}var mh=y("ZodTuple",(e,t)=>{ns.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Tg(e,r,i,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function gh(e,t,r){let i=t instanceof G,n=i?r:t,o=i?t:null;return new mh({type:"tuple",items:e,rest:o,...T.normalizeParams(n)})}var Zs=y("ZodRecord",(e,t)=>{Pl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Eg(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function ve(e,t,r){return new Zs({type:"record",keyType:e,valueType:t,...T.normalizeParams(r)})}function ZS(e,t,r){let i=Ue(e);return i._zod.values=void 0,new Zs({type:"record",keyType:i,valueType:t,...T.normalizeParams(r)})}function FS(e,t,r){return new Zs({type:"record",keyType:e,valueType:t,mode:"loose",...T.normalizeParams(r)})}var hh=y("ZodMap",(e,t)=>{Tl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>xg(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Ut(...r)),e.nonempty=r=>e.check(Ut(1,r)),e.max=(...r)=>e.check(yr(...r)),e.size=(...r)=>e.check(Rr(...r))});function VS(e,t,r){return new hh({type:"map",keyType:e,valueType:t,...T.normalizeParams(r)})}var yh=y("ZodSet",(e,t)=>{El.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>wg(e,r,i,n),e.min=(...r)=>e.check(Ut(...r)),e.nonempty=r=>e.check(Ut(1,r)),e.max=(...r)=>e.check(yr(...r)),e.size=(...r)=>e.check(Rr(...r))});function KS(e,t){return new yh({type:"set",valueType:e,...T.normalizeParams(t)})}var Mi=y("ZodEnum",(e,t)=>{Nl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(i,n,o)=>gg(e,i,n,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{let o={};for(let s of i)if(r.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Mi({...t,checks:[],...T.normalizeParams(n),entries:o})},e.exclude=(i,n)=>{let o={...t.entries};for(let s of i)if(r.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new Mi({...t,checks:[],...T.normalizeParams(n),entries:o})}});function Fe(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Mi({type:"enum",entries:r,...T.normalizeParams(t)})}function GS(e,t){return new Mi({type:"enum",entries:e,...T.normalizeParams(t)})}var vh=y("ZodLiteral",(e,t)=>{Ol.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>hg(e,r,i,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function L(e,t){return new vh({type:"literal",values:Array.isArray(e)?e:[e],...T.normalizeParams(t)})}var _h=y("ZodFile",(e,t)=>{jl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>_g(e,r,i,n),e.min=(r,i)=>e.check(Ut(r,i)),e.max=(r,i)=>e.check(yr(r,i)),e.mime=(r,i)=>e.check(zn(Array.isArray(r)?r:[r],i))});function BS(e){return ju(_h,e)}var bh=y("ZodTransform",(e,t)=>{Cl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Sg(e,r,i,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Nr(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(T.issue(o,r.value,t));else{let s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(T.issue(s))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});function hd(e){return new bh({type:"transform",transform:e})}var yd=y("ZodOptional",(e,t)=>{is.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function xe(e){return new yd({type:"optional",innerType:e})}var $h=y("ZodExactOptional",(e,t)=>{Dl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function kh(e){return new $h({type:"optional",innerType:e})}var Sh=y("ZodNullable",(e,t)=>{Al.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ng(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Cs(e){return new Sh({type:"nullable",innerType:e})}function JS(e){return xe(Cs(e))}var xh=y("ZodDefault",(e,t)=>{Rl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function wh(e,t){return new xh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():T.shallowClone(t)}})}var Ih=y("ZodPrefault",(e,t)=>{Ml.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function zh(e,t){return new Ih({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():T.shallowClone(t)}})}var vd=y("ZodNonOptional",(e,t)=>{Ll.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Og(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Ph(e,t){return new vd({type:"nonoptional",innerType:e,...T.normalizeParams(t)})}var Th=y("ZodSuccess",(e,t)=>{Ul.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>bg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function HS(e){return new Th({type:"success",innerType:e})}var Eh=y("ZodCatch",(e,t)=>{ql.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Dg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Nh(e,t){return new Eh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Oh=y("ZodNaN",(e,t)=>{Zl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>yg(e,r,i,n)});function WS(e){return Ou(Oh,e)}var _d=y("ZodPipe",(e,t)=>{Fl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ag(e,r,i,n),e.in=t.in,e.out=t.out});function Ds(e,t){return new _d({type:"pipe",in:e,out:t})}var bd=y("ZodCodec",(e,t)=>{_d.init(e,t),Ti.init(e,t)});function YS(e,t,r){return new bd({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var jh=y("ZodReadonly",(e,t)=>{Vl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Rg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Ch(e){return new jh({type:"readonly",innerType:e})}var Dh=y("ZodTemplateLiteral",(e,t)=>{Kl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>vg(e,r,i,n)});function QS(e,t){return new Dh({type:"template_literal",parts:e,...T.normalizeParams(t)})}var Ah=y("ZodLazy",(e,t)=>{Jl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Lg(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function Rh(e){return new Ah({type:"lazy",getter:e})}var Mh=y("ZodPromise",(e,t)=>{Bl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function XS(e){return new Mh({type:"promise",innerType:e})}var Lh=y("ZodFunction",(e,t)=>{Gl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>kg(e,r,i,n)});function ex(e){return new Lh({type:"function",input:Array.isArray(e?.input)?gh(e?.input):e?.input??ne($e()),output:e?.output??$e()})}var Fs=y("ZodCustom",(e,t)=>{Hl.init(e,t),H.init(e,t),e._zod.processJSONSchema=(r,i,n)=>$g(e,r,i,n)});function tx(e){let t=new _e({check:"custom"});return t._zod.check=e,t}function $d(e,t){return Cu(Fs,e??(()=>!0),t)}function Uh(e,t={}){return Du(Fs,e,t)}function qh(e){return Au(e)}var rx=Ru,nx=Mu;function ix(e,t={}){let r=new Fs({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...T.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}var ox=(...e)=>Lu({Codec:bd,Boolean:Zi,String:Li},...e);function sx(e){let t=Rh(()=>ke([b(e),fe(),Ee(),Rs(),ne(t),ve(b(),t)]));return t}function Vs(e,t){return Ds(hd(e),t)}var DO={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 AO(e){Te({customError:e})}function RO(){return Te().customError}var Zh;Zh||(Zh={});var C={...Os,...Ku,iso:Vr},MO=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 LO(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function UO(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function ax(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return C.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return C.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let o=UO(n,t),s=Xe(o,t);return t.refs.set(n,s),t.processing.delete(n),s}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return C.null();if(n.length===0)return C.never();if(n.length===1)return C.literal(n[0]);if(n.every(s=>typeof s=="string"))return C.enum(n);let o=n.map(s=>C.literal(s));return o.length<2?o[0]:C.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return C.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(o=>{let s={...e,type:o};return ax(s,t)});return n.length===0?C.never():n.length===1?n[0]:C.union(n)}if(!r)return C.any();let i;switch(r){case"string":{let n=C.string();if(e.format){let o=e.format;o==="email"?n=n.check(C.email()):o==="uri"||o==="uri-reference"?n=n.check(C.url()):o==="uuid"||o==="guid"?n=n.check(C.uuid()):o==="date-time"?n=n.check(C.iso.datetime()):o==="date"?n=n.check(C.iso.date()):o==="time"?n=n.check(C.iso.time()):o==="duration"?n=n.check(C.iso.duration()):o==="ipv4"?n=n.check(C.ipv4()):o==="ipv6"?n=n.check(C.ipv6()):o==="mac"?n=n.check(C.mac()):o==="cidr"?n=n.check(C.cidrv4()):o==="cidr-v6"?n=n.check(C.cidrv6()):o==="base64"?n=n.check(C.base64()):o==="base64url"?n=n.check(C.base64url()):o==="e164"?n=n.check(C.e164()):o==="jwt"?n=n.check(C.jwt()):o==="emoji"?n=n.check(C.emoji()):o==="nanoid"?n=n.check(C.nanoid()):o==="cuid"?n=n.check(C.cuid()):o==="cuid2"?n=n.check(C.cuid2()):o==="ulid"?n=n.check(C.ulid()):o==="xid"?n=n.check(C.xid()):o==="ksuid"&&(n=n.check(C.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?C.number().int():C.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case"boolean":{i=C.boolean();break}case"null":{i=C.null();break}case"object":{let n={},o=e.properties||{},s=new Set(e.required||[]);for(let[c,l]of Object.entries(o)){let u=Xe(l,t);n[c]=s.has(c)?u:u.optional()}if(e.propertyNames){let c=Xe(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?Xe(e.additionalProperties,t):C.any();if(Object.keys(n).length===0){i=C.record(c,l);break}let u=C.object(n).passthrough(),d=C.looseRecord(c,l);i=C.intersection(u,d);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),u=[];for(let f of l){let p=Xe(c[f],t),g=C.string().regex(new RegExp(f));u.push(C.looseRecord(g,p))}let d=[];if(Object.keys(n).length>0&&d.push(C.object(n).passthrough()),d.push(...u),d.length===0)i=C.object({}).passthrough();else if(d.length===1)i=d[0];else{let f=C.intersection(d[0],d[1]);for(let p=2;p<d.length;p++)f=C.intersection(f,d[p]);i=f}break}let a=C.object(n);e.additionalProperties===!1?i=a.strict():typeof e.additionalProperties=="object"?i=a.catchall(Xe(e.additionalProperties,t)):i=a.passthrough();break}case"array":{let n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){let s=n.map(c=>Xe(c,t)),a=o&&typeof o=="object"&&!Array.isArray(o)?Xe(o,t):void 0;a?i=C.tuple(s).rest(a):i=C.tuple(s),typeof e.minItems=="number"&&(i=i.check(C.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(C.maxLength(e.maxItems)))}else if(Array.isArray(o)){let s=o.map(c=>Xe(c,t)),a=e.additionalItems&&typeof e.additionalItems=="object"?Xe(e.additionalItems,t):void 0;a?i=C.tuple(s).rest(a):i=C.tuple(s),typeof e.minItems=="number"&&(i=i.check(C.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(C.maxLength(e.maxItems)))}else if(o!==void 0){let s=Xe(o,t),a=C.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),i=a}else i=C.array(C.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}function Xe(e,t){if(typeof e=="boolean")return e?C.any():C.never();let r=ax(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(l=>Xe(l,t)),c=C.union(a);r=i?C.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(l=>Xe(l,t)),c=C.xor(a);r=i?C.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:C.any();else{let a=i?r:Xe(e.allOf[0],t),c=i?0:1;for(let l=c;l<e.allOf.length;l++)a=C.intersection(a,Xe(e.allOf[l],t));r=a}e.nullable===!0&&t.version==="openapi-3.0"&&(r=C.nullable(r)),e.readOnly===!0&&(r=C.readonly(r));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of o)a in e&&(n[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(n[a]=e[a]);for(let a of Object.keys(e))MO.has(a)||(n[a]=e[a]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function cx(e,t){if(typeof e=="boolean")return e?C.any():C.never();let r=LO(e,t?.defaultTarget),i=e.$defs||e.definitions||{},n={version:r,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Re};return Xe(e,n)}var Fh={};ur(Fh,{bigint:()=>VO,boolean:()=>FO,date:()=>KO,number:()=>ZO,string:()=>qO});function qO(e){return nu(Li,e)}function ZO(e){return du(qi,e)}function FO(e){return vu(Zi,e)}function VO(e){return bu(Fi,e)}function KO(e){return Nu(Ms,e)}Te(Wl());var Kh="2025-11-25";var lx=[Kh,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Kr="io.modelcontextprotocol/related-task",Sd="2.0",je=$d(e=>e!==null&&(typeof e=="object"||typeof e=="function")),ux=ke([b(),fe().int()]),dx=b(),BK=Ze({ttl:fe().optional(),pollInterval:fe().optional()}),BO=D({ttl:fe().optional()}),JO=D({taskId:b()}),Gh=Ze({progressToken:ux.optional(),[Kr]:JO.optional()}),St=D({_meta:Gh.optional()}),Ks=St.extend({task:BO.optional()}),fx=e=>Ks.safeParse(e).success,Ve=D({method:b(),params:St.loose().optional()}),Pt=D({_meta:Gh.optional()}),Tt=D({method:b(),params:Pt.loose().optional()}),Ke=Ze({_meta:Gh.optional()}),xd=ke([b(),fe().int()]),px=D({jsonrpc:L(Sd),id:xd,...Ve.shape}).strict(),Bh=e=>px.safeParse(e).success,mx=D({jsonrpc:L(Sd),...Tt.shape}).strict(),gx=e=>mx.safeParse(e).success,Jh=D({jsonrpc:L(Sd),id:xd,result:Ke}).strict(),Gs=e=>Jh.safeParse(e).success;var ae;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",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.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(ae||(ae={}));var Hh=D({jsonrpc:L(Sd),id:xd.optional(),error:D({code:fe().int(),message:b(),data:$e().optional()})}).strict();var hx=e=>Hh.safeParse(e).success;var yx=ke([px,mx,Jh,Hh]),JK=ke([Jh,Hh]),wd=Ke.strict(),HO=Pt.extend({requestId:xd.optional(),reason:b().optional()}),Id=Tt.extend({method:L("notifications/cancelled"),params:HO}),WO=D({src:b(),mimeType:b().optional(),sizes:ne(b()).optional(),theme:Fe(["light","dark"]).optional()}),Bs=D({icons:ne(WO).optional()}),Ki=D({name:b(),title:b().optional()}),vx=Ki.extend({...Ki.shape,...Bs.shape,version:b(),websiteUrl:b().optional(),description:b().optional()}),YO=Vi(D({applyDefaults:Ee().optional()}),ve(b(),$e())),QO=Vs(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Vi(D({form:YO.optional(),url:je.optional()}),ve(b(),$e()).optional())),XO=Ze({list:je.optional(),cancel:je.optional(),requests:Ze({sampling:Ze({createMessage:je.optional()}).optional(),elicitation:Ze({create:je.optional()}).optional()}).optional()}),ej=Ze({list:je.optional(),cancel:je.optional(),requests:Ze({tools:Ze({call:je.optional()}).optional()}).optional()}),tj=D({experimental:ve(b(),je).optional(),sampling:D({context:je.optional(),tools:je.optional()}).optional(),elicitation:QO.optional(),roots:D({listChanged:Ee().optional()}).optional(),tasks:XO.optional(),extensions:ve(b(),je).optional()}),rj=St.extend({protocolVersion:b(),capabilities:tj,clientInfo:vx}),Wh=Ve.extend({method:L("initialize"),params:rj});var nj=D({experimental:ve(b(),je).optional(),logging:je.optional(),completions:je.optional(),prompts:D({listChanged:Ee().optional()}).optional(),resources:D({subscribe:Ee().optional(),listChanged:Ee().optional()}).optional(),tools:D({listChanged:Ee().optional()}).optional(),tasks:ej.optional(),extensions:ve(b(),je).optional()}),ij=Ke.extend({protocolVersion:b(),capabilities:nj,serverInfo:vx,instructions:b().optional()}),Yh=Tt.extend({method:L("notifications/initialized"),params:Pt.optional()});var zd=Ve.extend({method:L("ping"),params:St.optional()}),oj=D({progress:fe(),total:xe(fe()),message:xe(b())}),sj=D({...Pt.shape,...oj.shape,progressToken:ux}),Pd=Tt.extend({method:L("notifications/progress"),params:sj}),aj=St.extend({cursor:dx.optional()}),Js=Ve.extend({params:aj.optional()}),Hs=Ke.extend({nextCursor:dx.optional()}),cj=Fe(["working","input_required","completed","failed","cancelled"]),Ws=D({taskId:b(),status:cj,ttl:ke([fe(),Rs()]),createdAt:b(),lastUpdatedAt:b(),pollInterval:xe(fe()),statusMessage:xe(b())}),Gi=Ke.extend({task:Ws}),lj=Pt.merge(Ws),Ys=Tt.extend({method:L("notifications/tasks/status"),params:lj}),Td=Ve.extend({method:L("tasks/get"),params:St.extend({taskId:b()})}),Ed=Ke.merge(Ws),Nd=Ve.extend({method:L("tasks/result"),params:St.extend({taskId:b()})}),HK=Ke.loose(),Od=Js.extend({method:L("tasks/list")}),jd=Hs.extend({tasks:ne(Ws)}),Cd=Ve.extend({method:L("tasks/cancel"),params:St.extend({taskId:b()})}),_x=Ke.merge(Ws),bx=D({uri:b(),mimeType:xe(b()),_meta:ve(b(),$e()).optional()}),$x=bx.extend({text:b()}),Qh=b().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),kx=bx.extend({blob:Qh}),Qs=Fe(["user","assistant"]),Bi=D({audience:ne(Qs).optional(),priority:fe().min(0).max(1).optional(),lastModified:Vr.datetime({offset:!0}).optional()}),Sx=D({...Ki.shape,...Bs.shape,uri:b(),description:xe(b()),mimeType:xe(b()),size:xe(fe()),annotations:Bi.optional(),_meta:xe(Ze({}))}),uj=D({...Ki.shape,...Bs.shape,uriTemplate:b(),description:xe(b()),mimeType:xe(b()),annotations:Bi.optional(),_meta:xe(Ze({}))}),dj=Js.extend({method:L("resources/list")}),fj=Hs.extend({resources:ne(Sx)}),pj=Js.extend({method:L("resources/templates/list")}),mj=Hs.extend({resourceTemplates:ne(uj)}),Xh=St.extend({uri:b()}),gj=Xh,hj=Ve.extend({method:L("resources/read"),params:gj}),yj=Ke.extend({contents:ne(ke([$x,kx]))}),vj=Tt.extend({method:L("notifications/resources/list_changed"),params:Pt.optional()}),_j=Xh,bj=Ve.extend({method:L("resources/subscribe"),params:_j}),$j=Xh,kj=Ve.extend({method:L("resources/unsubscribe"),params:$j}),Sj=Pt.extend({uri:b()}),xj=Tt.extend({method:L("notifications/resources/updated"),params:Sj}),wj=D({name:b(),description:xe(b()),required:xe(Ee())}),Ij=D({...Ki.shape,...Bs.shape,description:xe(b()),arguments:xe(ne(wj)),_meta:xe(Ze({}))}),ey=Js.extend({method:L("prompts/list")}),zj=Hs.extend({prompts:ne(Ij)}),Pj=St.extend({name:b(),arguments:ve(b(),b()).optional()}),ty=Ve.extend({method:L("prompts/get"),params:Pj}),ry=D({type:L("text"),text:b(),annotations:Bi.optional(),_meta:ve(b(),$e()).optional()}),ny=D({type:L("image"),data:Qh,mimeType:b(),annotations:Bi.optional(),_meta:ve(b(),$e()).optional()}),iy=D({type:L("audio"),data:Qh,mimeType:b(),annotations:Bi.optional(),_meta:ve(b(),$e()).optional()}),Tj=D({type:L("tool_use"),name:b(),id:b(),input:ve(b(),$e()),_meta:ve(b(),$e()).optional()}),Ej=D({type:L("resource"),resource:ke([$x,kx]),annotations:Bi.optional(),_meta:ve(b(),$e()).optional()}),Nj=Sx.extend({type:L("resource_link")}),oy=ke([ry,ny,iy,Nj,Ej]),Oj=D({role:Qs,content:oy}),jj=Ke.extend({description:b().optional(),messages:ne(Oj)}),Cj=Tt.extend({method:L("notifications/prompts/list_changed"),params:Pt.optional()}),Dj=D({title:b().optional(),readOnlyHint:Ee().optional(),destructiveHint:Ee().optional(),idempotentHint:Ee().optional(),openWorldHint:Ee().optional()}),Aj=D({taskSupport:Fe(["required","optional","forbidden"]).optional()}),xx=D({...Ki.shape,...Bs.shape,description:b().optional(),inputSchema:D({type:L("object"),properties:ve(b(),je).optional(),required:ne(b()).optional()}).catchall($e()),outputSchema:D({type:L("object"),properties:ve(b(),je).optional(),required:ne(b()).optional()}).catchall($e()).optional(),annotations:Dj.optional(),execution:Aj.optional(),_meta:ve(b(),$e()).optional()}),sy=Js.extend({method:L("tools/list")}),Rj=Hs.extend({tools:ne(xx)}),Dd=Ke.extend({content:ne(oy).default([]),structuredContent:ve(b(),$e()).optional(),isError:Ee().optional()}),WK=Dd.or(Ke.extend({toolResult:$e()})),Mj=Ks.extend({name:b(),arguments:ve(b(),$e()).optional()}),Xs=Ve.extend({method:L("tools/call"),params:Mj}),Lj=Tt.extend({method:L("notifications/tools/list_changed"),params:Pt.optional()}),YK=D({autoRefresh:Ee().default(!0),debounceMs:fe().int().nonnegative().default(300)}),ea=Fe(["debug","info","notice","warning","error","critical","alert","emergency"]),Uj=St.extend({level:ea}),ay=Ve.extend({method:L("logging/setLevel"),params:Uj}),qj=Pt.extend({level:ea,logger:b().optional(),data:$e()}),Zj=Tt.extend({method:L("notifications/message"),params:qj}),Fj=D({name:b().optional()}),Vj=D({hints:ne(Fj).optional(),costPriority:fe().min(0).max(1).optional(),speedPriority:fe().min(0).max(1).optional(),intelligencePriority:fe().min(0).max(1).optional()}),Kj=D({mode:Fe(["auto","required","none"]).optional()}),Gj=D({type:L("tool_result"),toolUseId:b().describe("The unique identifier for the corresponding tool call."),content:ne(oy).default([]),structuredContent:D({}).loose().optional(),isError:Ee().optional(),_meta:ve(b(),$e()).optional()}),Bj=qs("type",[ry,ny,iy]),kd=qs("type",[ry,ny,iy,Tj,Gj]),Jj=D({role:Qs,content:ke([kd,ne(kd)]),_meta:ve(b(),$e()).optional()}),Hj=Ks.extend({messages:ne(Jj),modelPreferences:Vj.optional(),systemPrompt:b().optional(),includeContext:Fe(["none","thisServer","allServers"]).optional(),temperature:fe().optional(),maxTokens:fe().int(),stopSequences:ne(b()).optional(),metadata:je.optional(),tools:ne(xx).optional(),toolChoice:Kj.optional()}),Wj=Ve.extend({method:L("sampling/createMessage"),params:Hj}),ta=Ke.extend({model:b(),stopReason:xe(Fe(["endTurn","stopSequence","maxTokens"]).or(b())),role:Qs,content:Bj}),cy=Ke.extend({model:b(),stopReason:xe(Fe(["endTurn","stopSequence","maxTokens","toolUse"]).or(b())),role:Qs,content:ke([kd,ne(kd)])}),Yj=D({type:L("boolean"),title:b().optional(),description:b().optional(),default:Ee().optional()}),Qj=D({type:L("string"),title:b().optional(),description:b().optional(),minLength:fe().optional(),maxLength:fe().optional(),format:Fe(["email","uri","date","date-time"]).optional(),default:b().optional()}),Xj=D({type:Fe(["number","integer"]),title:b().optional(),description:b().optional(),minimum:fe().optional(),maximum:fe().optional(),default:fe().optional()}),eC=D({type:L("string"),title:b().optional(),description:b().optional(),enum:ne(b()),default:b().optional()}),tC=D({type:L("string"),title:b().optional(),description:b().optional(),oneOf:ne(D({const:b(),title:b()})),default:b().optional()}),rC=D({type:L("string"),title:b().optional(),description:b().optional(),enum:ne(b()),enumNames:ne(b()).optional(),default:b().optional()}),nC=ke([eC,tC]),iC=D({type:L("array"),title:b().optional(),description:b().optional(),minItems:fe().optional(),maxItems:fe().optional(),items:D({type:L("string"),enum:ne(b())}),default:ne(b()).optional()}),oC=D({type:L("array"),title:b().optional(),description:b().optional(),minItems:fe().optional(),maxItems:fe().optional(),items:D({anyOf:ne(D({const:b(),title:b()}))}),default:ne(b()).optional()}),sC=ke([iC,oC]),aC=ke([rC,nC,sC]),cC=ke([aC,Yj,Qj,Xj]),lC=Ks.extend({mode:L("form").optional(),message:b(),requestedSchema:D({type:L("object"),properties:ve(b(),cC),required:ne(b()).optional()})}),uC=Ks.extend({mode:L("url"),message:b(),elicitationId:b(),url:b().url()}),dC=ke([lC,uC]),fC=Ve.extend({method:L("elicitation/create"),params:dC}),pC=Pt.extend({elicitationId:b()}),mC=Tt.extend({method:L("notifications/elicitation/complete"),params:pC}),Ji=Ke.extend({action:Fe(["accept","decline","cancel"]),content:Vs(e=>e===null?void 0:e,ve(b(),ke([b(),fe(),Ee(),ne(b())])).optional())}),gC=D({type:L("ref/resource"),uri:b()});var hC=D({type:L("ref/prompt"),name:b()}),yC=St.extend({ref:ke([hC,gC]),argument:D({name:b(),value:b()}),context:D({arguments:ve(b(),b()).optional()}).optional()}),vC=Ve.extend({method:L("completion/complete"),params:yC});var _C=Ke.extend({completion:Ze({values:ne(b()).max(100),total:xe(fe().int()),hasMore:xe(Ee())})}),bC=D({uri:b().startsWith("file://"),name:b().optional(),_meta:ve(b(),$e()).optional()}),$C=Ve.extend({method:L("roots/list"),params:St.optional()}),ly=Ke.extend({roots:ne(bC)}),kC=Tt.extend({method:L("notifications/roots/list_changed"),params:Pt.optional()}),QK=ke([zd,Wh,vC,ay,ty,ey,dj,pj,hj,bj,kj,Xs,sy,Td,Nd,Od,Cd]),XK=ke([Id,Pd,Yh,kC,Ys]),eG=ke([wd,ta,cy,Ji,ly,Ed,jd,Gi]),tG=ke([zd,Wj,fC,$C,Td,Nd,Od,Cd]),rG=ke([Id,Pd,Zj,xj,vj,Lj,Cj,Ys,mC]),nG=ke([wd,ij,_C,jj,zj,fj,mj,yj,Dd,Rj,Ed,jd,Gi]),Q=class e extends Error{constructor(t,r,i){super(`MCP error ${t}: ${r}`),this.code=t,this.data=i,this.name="McpError"}static fromError(t,r,i){if(t===ae.UrlElicitationRequired&&i){let n=i;if(n.elicitations)return new Vh(n.elicitations,r)}return new e(t,r,i)}},Vh=class extends Q{constructor(t,r=`URL elicitation${t.length>1?"s":""} required`){super(ae.UrlElicitationRequired,r,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}};function Gr(e){return e==="completed"||e==="failed"||e==="cancelled"}var RG=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function uy(e){let r=Vu(e)?.method;if(!r)throw new Error("Schema is missing a method literal");let i=Yk(r);if(typeof i!="string")throw new Error("Schema method literal must be a string");return i}function dy(e,t){let r=Fr(e,t);if(!r.success)throw r.error;return r.data}var PC=6e4,Ad=class{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Id,r=>{this._oncancel(r)}),this.setNotificationHandler(Pd,r=>{this._onprogress(r)}),this.setRequestHandler(zd,r=>({})),this._taskStore=t?.taskStore,this._taskMessageQueue=t?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Td,async(r,i)=>{let n=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!n)throw new Q(ae.InvalidParams,"Failed to retrieve task: Task not found");return{...n}}),this.setRequestHandler(Nd,async(r,i)=>{let n=async()=>{let o=r.params.taskId;if(this._taskMessageQueue){let a;for(;a=await this._taskMessageQueue.dequeue(o,i.sessionId);){if(a.type==="response"||a.type==="error"){let c=a.message,l=c.id,u=this._requestResolvers.get(l);if(u)if(this._requestResolvers.delete(l),a.type==="response")u(c);else{let d=c,f=new Q(d.error.code,d.error.message,d.error.data);u(f)}else{let d=a.type==="response"?"Response":"Error";this._onerror(new Error(`${d} handler missing for request ${l}`))}continue}await this._transport?.send(a.message,{relatedRequestId:i.requestId})}}let s=await this._taskStore.getTask(o,i.sessionId);if(!s)throw new Q(ae.InvalidParams,`Task not found: ${o}`);if(!Gr(s.status))return await this._waitForTaskUpdate(o,i.signal),await n();if(Gr(s.status)){let a=await this._taskStore.getTaskResult(o,i.sessionId);return this._clearTaskQueue(o),{...a,_meta:{...a._meta,[Kr]:{taskId:o}}}}return await n()};return await n()}),this.setRequestHandler(Od,async(r,i)=>{try{let{tasks:n,nextCursor:o}=await this._taskStore.listTasks(r.params?.cursor,i.sessionId);return{tasks:n,nextCursor:o,_meta:{}}}catch(n){throw new Q(ae.InvalidParams,`Failed to list tasks: ${n instanceof Error?n.message:String(n)}`)}}),this.setRequestHandler(Cd,async(r,i)=>{try{let n=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!n)throw new Q(ae.InvalidParams,`Task not found: ${r.params.taskId}`);if(Gr(n.status))throw new Q(ae.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",i.sessionId),this._clearTaskQueue(r.params.taskId);let o=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!o)throw new Q(ae.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...o}}catch(n){throw n instanceof Q?n:new Q(ae.InvalidRequest,`Failed to cancel task: ${n instanceof Error?n.message:String(n)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;this._requestHandlerAbortControllers.get(t.params.requestId)?.abort(t.params.reason)}_setupTimeout(t,r,i,n,o=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(n,r),startTime:Date.now(),timeout:r,maxTotalTimeout:i,resetTimeoutOnProgress:o,onTimeout:n})}_resetTimeout(t){let r=this._timeoutInfo.get(t);if(!r)return!1;let i=Date.now()-r.startTime;if(r.maxTotalTimeout&&i>=r.maxTotalTimeout)throw this._timeoutInfo.delete(t),Q.fromError(ae.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:i});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(t){let r=this._timeoutInfo.get(t);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(t))}async connect(t){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=t;let r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};let i=this.transport?.onerror;this._transport.onerror=o=>{i?.(o),this._onerror(o)};let n=this._transport?.onmessage;this._transport.onmessage=(o,s)=>{n?.(o,s),Gs(o)||hx(o)?this._onresponse(o):Bh(o)?this._onrequest(o,s):gx(o)?this._onnotification(o):this._onerror(new Error(`Unknown message type: ${JSON.stringify(o)}`))},await this._transport.start()}_onclose(){let t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let i of this._timeoutInfo.values())clearTimeout(i.timeoutId);this._timeoutInfo.clear();for(let i of this._requestHandlerAbortControllers.values())i.abort();this._requestHandlerAbortControllers.clear();let r=Q.fromError(ae.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let i of t.values())i(r)}_onerror(t){this.onerror?.(t)}_onnotification(t){let r=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(t,r){let i=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,n=this._transport,o=t.params?._meta?.[Kr]?.taskId;if(i===void 0){let u={jsonrpc:"2.0",id:t.id,error:{code:ae.MethodNotFound,message:"Method not found"}};o&&this._taskMessageQueue?this._enqueueTaskMessage(o,{type:"error",message:u,timestamp:Date.now()},n?.sessionId).catch(d=>this._onerror(new Error(`Failed to enqueue error response: ${d}`))):n?.send(u).catch(d=>this._onerror(new Error(`Failed to send an error response: ${d}`)));return}let s=new AbortController;this._requestHandlerAbortControllers.set(t.id,s);let a=fx(t.params)?t.params.task:void 0,c=this._taskStore?this.requestTaskStore(t,n?.sessionId):void 0,l={signal:s.signal,sessionId:n?.sessionId,_meta:t.params?._meta,sendNotification:async u=>{if(s.signal.aborted)return;let d={relatedRequestId:t.id};o&&(d.relatedTask={taskId:o}),await this.notification(u,d)},sendRequest:async(u,d,f)=>{if(s.signal.aborted)throw new Q(ae.ConnectionClosed,"Request was cancelled");let p={...f,relatedRequestId:t.id};o&&!p.relatedTask&&(p.relatedTask={taskId:o});let g=p.relatedTask?.taskId??o;return g&&c&&await c.updateTaskStatus(g,"input_required"),await this.request(u,d,p)},authInfo:r?.authInfo,requestId:t.id,requestInfo:r?.requestInfo,taskId:o,taskStore:c,taskRequestedTtl:a?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};Promise.resolve().then(()=>{a&&this.assertTaskHandlerCapability(t.method)}).then(()=>i(t,l)).then(async u=>{if(s.signal.aborted)return;let d={result:u,jsonrpc:"2.0",id:t.id};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"response",message:d,timestamp:Date.now()},n?.sessionId):await n?.send(d)},async u=>{if(s.signal.aborted)return;let d={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(u.code)?u.code:ae.InternalError,message:u.message??"Internal error",...u.data!==void 0&&{data:u.data}}};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"error",message:d,timestamp:Date.now()},n?.sessionId):await n?.send(d)}).catch(u=>this._onerror(new Error(`Failed to send response: ${u}`))).finally(()=>{this._requestHandlerAbortControllers.get(t.id)===s&&this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){let{progressToken:r,...i}=t.params,n=Number(r),o=this._progressHandlers.get(n);if(!o){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}let s=this._responseHandlers.get(n),a=this._timeoutInfo.get(n);if(a&&s&&a.resetTimeoutOnProgress)try{this._resetTimeout(n)}catch(c){this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),s(c);return}o(i)}_onresponse(t){let r=Number(t.id),i=this._requestResolvers.get(r);if(i){if(this._requestResolvers.delete(r),Gs(t))i(t);else{let s=new Q(t.error.code,t.error.message,t.error.data);i(s)}return}let n=this._responseHandlers.get(r);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let o=!1;if(Gs(t)&&t.result&&typeof t.result=="object"){let s=t.result;if(s.task&&typeof s.task=="object"){let a=s.task;typeof a.taskId=="string"&&(o=!0,this._taskProgressTokens.set(a.taskId,r))}}if(o||this._progressHandlers.delete(r),Gs(t))n(t);else{let s=Q.fromError(t.error.code,t.error.message,t.error.data);n(s)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(t,r,i){let{task:n}=i??{};if(!n){try{yield{type:"result",result:await this.request(t,r,i)}}catch(s){yield{type:"error",error:s instanceof Q?s:new Q(ae.InternalError,String(s))}}return}let o;try{let s=await this.request(t,Gi,i);if(s.task)o=s.task.taskId,yield{type:"taskCreated",task:s.task};else throw new Q(ae.InternalError,"Task creation did not return a task");for(;;){let a=await this.getTask({taskId:o},i);if(yield{type:"taskStatus",task:a},Gr(a.status)){a.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:o},r,i)}:a.status==="failed"?yield{type:"error",error:new Q(ae.InternalError,`Task ${o} failed`)}:a.status==="cancelled"&&(yield{type:"error",error:new Q(ae.InternalError,`Task ${o} was cancelled`)});return}if(a.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:o},r,i)};return}let c=a.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(l=>setTimeout(l,c)),i?.signal?.throwIfAborted()}}catch(s){yield{type:"error",error:s instanceof Q?s:new Q(ae.InternalError,String(s))}}}request(t,r,i){let{relatedRequestId:n,resumptionToken:o,onresumptiontoken:s,task:a,relatedTask:c}=i??{};return new Promise((l,u)=>{let d=k=>{u(k)};if(!this._transport){d(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method),a&&this.assertTaskCapability(t.method)}catch(k){d(k);return}i?.signal?.throwIfAborted();let f=this._requestMessageId++,p={...t,jsonrpc:"2.0",id:f};i?.onprogress&&(this._progressHandlers.set(f,i.onprogress),p.params={...t.params,_meta:{...t.params?._meta||{},progressToken:f}}),a&&(p.params={...p.params,task:a}),c&&(p.params={...p.params,_meta:{...p.params?._meta||{},[Kr]:c}});let g=k=>{this._responseHandlers.delete(f),this._progressHandlers.delete(f),this._cleanupTimeout(f),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:f,reason:String(k)}},{relatedRequestId:n,resumptionToken:o,onresumptiontoken:s}).catch(N=>this._onerror(new Error(`Failed to send cancellation: ${N}`)));let x=k instanceof Q?k:new Q(ae.RequestTimeout,String(k));u(x)};this._responseHandlers.set(f,k=>{if(!i?.signal?.aborted){if(k instanceof Error)return u(k);try{let x=Fr(r,k.result);x.success?l(x.data):u(x.error)}catch(x){u(x)}}}),i?.signal?.addEventListener("abort",()=>{g(i?.signal?.reason)});let m=i?.timeout??PC,h=()=>g(Q.fromError(ae.RequestTimeout,"Request timed out",{timeout:m}));this._setupTimeout(f,m,i?.maxTotalTimeout,h,i?.resetTimeoutOnProgress??!1);let $=c?.taskId;if($){let k=x=>{let N=this._responseHandlers.get(f);N?N(x):this._onerror(new Error(`Response handler missing for side-channeled request ${f}`))};this._requestResolvers.set(f,k),this._enqueueTaskMessage($,{type:"request",message:p,timestamp:Date.now()}).catch(x=>{this._cleanupTimeout(f),u(x)})}else this._transport.send(p,{relatedRequestId:n,resumptionToken:o,onresumptiontoken:s}).catch(k=>{this._cleanupTimeout(f),u(k)})})}async getTask(t,r){return this.request({method:"tasks/get",params:t},Ed,r)}async getTaskResult(t,r,i){return this.request({method:"tasks/result",params:t},r,i)}async listTasks(t,r){return this.request({method:"tasks/list",params:t},jd,r)}async cancelTask(t,r){return this.request({method:"tasks/cancel",params:t},_x,r)}async notification(t,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);let i=r?.relatedTask?.taskId;if(i){let a={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...t.params?._meta||{},[Kr]:r.relatedTask}}};await this._enqueueTaskMessage(i,{type:"notification",message:a,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let a={...t,jsonrpc:"2.0"};r?.relatedTask&&(a={...a,params:{...a.params,_meta:{...a.params?._meta||{},[Kr]:r.relatedTask}}}),this._transport?.send(a,r).catch(c=>this._onerror(c))});return}let s={...t,jsonrpc:"2.0"};r?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[Kr]:r.relatedTask}}}),await this._transport.send(s,r)}setRequestHandler(t,r){let i=uy(t);this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(n,o)=>{let s=dy(t,n);return Promise.resolve(r(s,o))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,r){let i=uy(t);this._notificationHandlers.set(i,n=>{let o=dy(t,n);return Promise.resolve(r(o))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){let r=this._taskProgressTokens.get(t);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,r,i){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let n=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,r,i,n)}async _clearTaskQueue(t,r){if(this._taskMessageQueue){let i=await this._taskMessageQueue.dequeueAll(t,r);for(let n of i)if(n.type==="request"&&Bh(n.message)){let o=n.message.id,s=this._requestResolvers.get(o);s?(s(new Q(ae.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(o)):this._onerror(new Error(`Resolver missing for request ${o} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,r){let i=this._options?.defaultTaskPollInterval??1e3;try{let n=await this._taskStore?.getTask(t);n?.pollInterval&&(i=n.pollInterval)}catch{}return new Promise((n,o)=>{if(r.aborted){o(new Q(ae.InvalidRequest,"Request cancelled"));return}let s=setTimeout(n,i);r.addEventListener("abort",()=>{clearTimeout(s),o(new Q(ae.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,r){let i=this._taskStore;if(!i)throw new Error("No task store configured");return{createTask:async n=>{if(!t)throw new Error("No request provided");return await i.createTask(n,t.id,{method:t.method,params:t.params},r)},getTask:async n=>{let o=await i.getTask(n,r);if(!o)throw new Q(ae.InvalidParams,"Failed to retrieve task: Task not found");return o},storeTaskResult:async(n,o,s)=>{await i.storeTaskResult(n,o,s,r);let a=await i.getTask(n,r);if(a){let c=Ys.parse({method:"notifications/tasks/status",params:a});await this.notification(c),Gr(a.status)&&this._cleanupTaskProgressHandler(n)}},getTaskResult:n=>i.getTaskResult(n,r),updateTaskStatus:async(n,o,s)=>{let a=await i.getTask(n,r);if(!a)throw new Q(ae.InvalidParams,`Task "${n}" not found - it may have been cleaned up`);if(Gr(a.status))throw new Q(ae.InvalidParams,`Cannot update task "${n}" from terminal status "${a.status}" to "${o}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await i.updateTaskStatus(n,o,s,r);let c=await i.getTask(n,r);if(c){let l=Ys.parse({method:"notifications/tasks/status",params:c});await this.notification(l),Gr(c.status)&&this._cleanupTaskProgressHandler(n)}},listTasks:n=>i.listTasks(n,r)}}};function wx(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ix(e,t){let r={...e};for(let i in t){let n=i,o=t[n];if(o===void 0)continue;let s=r[n];wx(s)&&wx(o)?r[n]={...s,...o}:r[n]=o}return r}var fI=Eo(Wv(),1),pI=Eo(dI(),1);function _4(){let e=new fI.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,pI.default)(e),e}var _f=class{constructor(t){this._ajv=t??_4()}getValidator(t){let r="$id"in t&&typeof t.$id=="string"?this._ajv.getSchema(t.$id)??this._ajv.compile(t):this._ajv.compile(t);return i=>r(i)?{valid:!0,data:i,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}};var bf=class{constructor(t){this._server=t}requestStream(t,r,i){return this._server.requestStream(t,r,i)}createMessageStream(t,r){let i=this._server.getClientCapabilities();if((t.tools||t.toolChoice)&&!i?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(t.messages.length>0){let n=t.messages[t.messages.length-1],o=Array.isArray(n.content)?n.content:[n.content],s=o.some(u=>u.type==="tool_result"),a=t.messages.length>1?t.messages[t.messages.length-2]:void 0,c=a?Array.isArray(a.content)?a.content:[a.content]:[],l=c.some(u=>u.type==="tool_use");if(s){if(o.some(u=>u.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let u=new Set(c.filter(f=>f.type==="tool_use").map(f=>f.id)),d=new Set(o.filter(f=>f.type==="tool_result").map(f=>f.toolUseId));if(u.size!==d.size||![...u].every(f=>d.has(f)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:t},ta,r)}elicitInputStream(t,r){let i=this._server.getClientCapabilities(),n=t.mode??"form";switch(n){case"url":{if(!i?.elicitation?.url)throw new Error("Client does not support url elicitation.");break}case"form":{if(!i?.elicitation?.form)throw new Error("Client does not support form elicitation.");break}}let o=n==="form"&&t.mode===void 0?{...t,mode:"form"}:t;return this.requestStream({method:"elicitation/create",params:o},Ji,r)}async getTask(t,r){return this._server.getTask({taskId:t},r)}async getTaskResult(t,r,i){return this._server.getTaskResult({taskId:t},r,i)}async listTasks(t,r){return this._server.listTasks(t?{cursor:t}:void 0,r)}async cancelTask(t,r){return this._server.cancelTask({taskId:t},r)}};function mI(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"tools/call":if(!e.tools?.call)throw new Error(`${r} does not support task creation for tools/call (required for ${t})`);break;default:break}}function gI(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"sampling/createMessage":if(!e.sampling?.createMessage)throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${t})`);break;case"elicitation/create":if(!e.elicitation?.create)throw new Error(`${r} does not support task creation for elicitation/create (required for ${t})`);break;default:break}}var $f=class extends Ad{constructor(t,r){super(r),this._serverInfo=t,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(ea.options.map((i,n)=>[i,n])),this.isMessageIgnored=(i,n)=>{let o=this._loggingLevels.get(n);return o?this.LOG_LEVEL_SEVERITY.get(i)<this.LOG_LEVEL_SEVERITY.get(o):!1},this._capabilities=r?.capabilities??{},this._instructions=r?.instructions,this._jsonSchemaValidator=r?.jsonSchemaValidator??new _f,this.setRequestHandler(Wh,i=>this._oninitialize(i)),this.setNotificationHandler(Yh,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(ay,async(i,n)=>{let o=n.sessionId||n.requestInfo?.headers["mcp-session-id"]||void 0,{level:s}=i.params,a=ea.safeParse(s);return a.success&&this._loggingLevels.set(o,a.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new bf(this)}),this._experimental}registerCapabilities(t){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=Ix(this._capabilities,t)}setRequestHandler(t,r){let n=Vu(t)?.method;if(!n)throw new Error("Schema is missing a method literal");let o;if(Ri(n)){let a=n;o=a._zod?.def?.value??a.value}else{let a=n;o=a._def?.value??a.value}if(typeof o!="string")throw new Error("Schema method literal must be a string");if(o==="tools/call"){let a=async(c,l)=>{let u=Fr(Xs,c);if(!u.success){let g=u.error instanceof Error?u.error.message:String(u.error);throw new Q(ae.InvalidParams,`Invalid tools/call request: ${g}`)}let{params:d}=u.data,f=await Promise.resolve(r(c,l));if(d.task){let g=Fr(Gi,f);if(!g.success){let m=g.error instanceof Error?g.error.message:String(g.error);throw new Q(ae.InvalidParams,`Invalid task creation result: ${m}`)}return g.data}let p=Fr(Dd,f);if(!p.success){let g=p.error instanceof Error?p.error.message:String(p.error);throw new Q(ae.InvalidParams,`Invalid tools/call result: ${g}`)}return p.data};return super.setRequestHandler(t,a)}return super.setRequestHandler(t,r)}assertCapabilityForMethod(t){switch(t){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new Error(`Client does not support sampling (required for ${t})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new Error(`Client does not support elicitation (required for ${t})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new Error(`Client does not support listing roots (required for ${t})`);break;case"ping":break}}assertNotificationCapability(t){switch(t){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new Error(`Server does not support notifying about resources (required for ${t})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${t})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${t})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new Error(`Client does not support URL elicitation (required for ${t})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(t){if(this._capabilities)switch(t){case"completion/complete":if(!this._capabilities.completions)throw new Error(`Server does not support completions (required for ${t})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${t})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${t})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Server does not support tasks capability (required for ${t})`);break;case"ping":case"initialize":break}}assertTaskCapability(t){gI(this._clientCapabilities?.tasks?.requests,t,"Client")}assertTaskHandlerCapability(t){this._capabilities&&mI(this._capabilities.tasks?.requests,t,"Server")}async _oninitialize(t){let r=t.params.protocolVersion;return this._clientCapabilities=t.params.capabilities,this._clientVersion=t.params.clientInfo,{protocolVersion:lx.includes(r)?r:Kh,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},wd)}async createMessage(t,r){if((t.tools||t.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(t.messages.length>0){let i=t.messages[t.messages.length-1],n=Array.isArray(i.content)?i.content:[i.content],o=n.some(l=>l.type==="tool_result"),s=t.messages.length>1?t.messages[t.messages.length-2]:void 0,a=s?Array.isArray(s.content)?s.content:[s.content]:[],c=a.some(l=>l.type==="tool_use");if(o){if(n.some(l=>l.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!c)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(c){let l=new Set(a.filter(d=>d.type==="tool_use").map(d=>d.id)),u=new Set(n.filter(d=>d.type==="tool_result").map(d=>d.toolUseId));if(l.size!==u.size||![...l].every(d=>u.has(d)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return t.tools?this.request({method:"sampling/createMessage",params:t},cy,r):this.request({method:"sampling/createMessage",params:t},ta,r)}async elicitInput(t,r){switch(t.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support url elicitation.");let n=t;return this.request({method:"elicitation/create",params:n},Ji,r)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw new Error("Client does not support form elicitation.");let n=t.mode==="form"?t:{...t,mode:"form"},o=await this.request({method:"elicitation/create",params:n},Ji,r);if(o.action==="accept"&&o.content&&n.requestedSchema)try{let a=this._jsonSchemaValidator.getValidator(n.requestedSchema)(o.content);if(!a.valid)throw new Q(ae.InvalidParams,`Elicitation response content does not match requested schema: ${a.errorMessage}`)}catch(s){throw s instanceof Q?s:new Q(ae.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return o}}}createElicitationCompletionNotifier(t,r){if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:t}},r)}async listRoots(t,r){return this.request({method:"roots/list",params:t},ly,r)}async sendLoggingMessage(t,r){if(this._capabilities.logging&&!this.isMessageIgnored(t.level,r))return this.notification({method:"notifications/message",params:t})}async sendResourceUpdated(t){return this.notification({method:"notifications/resources/updated",params:t})}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"})}};var i_=Eo(require("node:process"),1);var kf=class{append(t){this._buffer=this._buffer?Buffer.concat([this._buffer,t]):t}readMessage(){if(!this._buffer)return null;let t=this._buffer.indexOf(`
187
+ `);if(t===-1)return null;let r=this._buffer.toString("utf8",0,t).replace(/\r$/,"");return this._buffer=this._buffer.subarray(t+1),b4(r)}clear(){this._buffer=void 0}};function b4(e){return yx.parse(JSON.parse(e))}function hI(e){return JSON.stringify(e)+`
188
+ `}var Sf=class{constructor(t=i_.default.stdin,r=i_.default.stdout){this._stdin=t,this._stdout=r,this._readBuffer=new kf,this._started=!1,this._ondata=i=>{this._readBuffer.append(i),this.processReadBuffer()},this._onerror=i=>{this.onerror?.(i)}}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)}processReadBuffer(){for(;;)try{let t=this._readBuffer.readMessage();if(t===null)break;this.onmessage?.(t)}catch(t){this.onerror?.(t)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(t){return new Promise(r=>{let i=hI(t);this._stdout.write(i)?r():this._stdout.once("drain",r)})}};var yI=process.env.GODD_BRAND_PREFIX??"godd",tn="godd",V={displayName:"GoDD MCP \u03B1",cli:"godd-a",mcpKey:"godd-a",configFile:`config.${yI}`,licensePrefix:yI.toUpperCase(),toolPrefix:""};var bp=require("node:fs"),sT=require("node:path"),aT=Eo(Lb(),1);var lc=["en","ja","ru"];function xo(e){return lc.includes(e)?e:null}var JZ=F.object({vcs:F.string().optional(),browser_automation:F.string().optional(),e2e_testing:F.string().optional(),unit_testing:F.string().optional(),linting:F.string().optional(),formatting:F.string().optional(),type_checking:F.string().optional(),coverage:F.string().optional(),documentation:F.string().optional(),secret_scanning:F.string().optional(),security_analysis:F.string().optional(),unused_code:F.string().optional(),dependency_analysis:F.string().optional()}),HZ=F.object({docs_dir:F.string().default("documents"),generate_gitattributes:F.preprocess(e=>e==="true"?!0:e==="false"?!1:e,F.boolean().default(!0)),generate_dependabot:F.preprocess(e=>e==="true"?!0:e==="false"?!1:e,F.boolean().default(!0))}),WZ=F.object({tool:F.string().optional(),auto_suggest:F.preprocess(e=>e==="true"?!0:e==="false"?!1:e,F.boolean().optional()),design_review:F.preprocess(e=>e==="true"?!0:e==="false"?!1:e,F.boolean().optional())}),Ub=F.enum(lc),oT=F.object({display_language:Ub.default("en"),main_language:Ub.default("en"),sub_languages:F.array(Ub).default([]),programming_languages:F.array(F.string()).default([]),frontend:F.array(F.string()).default([]),backend:F.array(F.string()).default([]),database:F.array(F.string()).default([]),orm:F.array(F.string()).default([]),infra:F.array(F.string()).default([]),game:F.array(F.string()).default([]),mobile:F.array(F.string()).default([]),other:F.array(F.string()).default([]),tools:JZ.default({}),design:WZ.default({}),godd_files:HZ.default({docs_dir:"documents",generate_gitattributes:!0,generate_dependabot:!0})});function uc(e=process.cwd()){let t=(0,sT.resolve)(e,V.configFile);if(!(0,bp.existsSync)(t))return null;try{let r=(0,bp.readFileSync)(t,"utf-8"),i=(0,aT.parse)(r)??{};return YZ(i),QZ(i),oT.parse(i)}catch(r){return console.error(`[${V.displayName}] Failed to parse ${V.configFile}:`,r instanceof Error?r.message:r),null}}function YZ(e){if("language"in e&&!("display_language"in e)){let t=e.language;e.display_language=t,e.main_language=t,delete e.language}}function QZ(e){if("e2e_tool"in e){let t=typeof e.tools=="object"&&!Array.isArray(e.tools)?e.tools:{};t.e2e_testing=e.e2e_tool,e.tools=t,delete e.e2e_tool}for(let t of["tools","design","godd_files"]){let r=e[t];(r==null||Array.isArray(r)&&r.length===0)&&(e[t]={})}}var $p=new Set(["typescript","javascript","python","java","csharp","cpp","c","go","rust","php","swift","kotlin","ruby","dart","r","scala","objective-c","sql","html-css","bash","elixir","haskell","perl","lua","julia","clojure","fsharp","groovy","visual-basic","powershell","erlang","ocaml","zig","nim","crystal","solidity","fortran","cobol","assembly","d","ada","v","pascal","prolog","gdscript","gdshader"]),kp=new Set(["react","nextjs","vue","nuxt","svelte","angular","flutter","blazor","solid","astro","remix","qwik","ember","htmx","alpine","vite","electron","tauri","liftkit"]),Sp=new Set(["express","nestjs","hono","fastify","fastapi","django","flask","gin","echo","fiber","chi","spring-boot","quarkus","micronaut","ktor","laravel","symfony","slim","codeigniter","cakephp","rails","sinatra","hanami","actix-web","axum","rocket","phoenix","aspnet","vapor","play","akka-http","servant","yesod","mojolicious","dancer","ring","pedestal","dart-frog"]),xp=new Set(["postgresql","mysql","mongodb","redis","sqlite","dynamodb","cassandra","neo4j","elasticsearch","supabase","firebase","cockroachdb"]),wp=new Set(["prisma","drizzle","typeorm","sequelize","sqlalchemy","tortoise-orm","eloquent","doctrine","activerecord","hibernate","mybatis","entity-framework","gorm","ent","diesel","sea-orm","ecto","exposed","peewee","django-orm"]),Ip=new Set(["docker","terraform","vercel","aws","gcp","github-actions","azure","cloudflare","fly-io","render","heroku","kubernetes","ansible","pulumi","netlify","railway"]),zp=new Set(["react-native","expo","flutter","swiftui","uikit","jetpack-compose","kotlin-multiplatform","ionic","capacitor","maui","xamarin","tauri-mobile","nativescript"]),Pp=new Set(["godot","phaser","pyxel","unity","unreal","bevy","love2d","monogame","pygame","libgdx","cocos2d","defold","renpy"]),XZ={typescript:{frontend:["react","nextjs","vue","nuxt","svelte","angular","solid","astro","remix","qwik","ember","htmx","alpine","vite","electron","tauri"],backend:["express","nestjs","hono","fastify"],orm:["prisma","drizzle","typeorm","sequelize"],mobile:["react-native","expo","ionic","capacitor","nativescript"]},javascript:{frontend:["react","nextjs","vue","nuxt","svelte","angular","solid","astro","remix","qwik","ember","htmx","alpine","vite","electron","tauri"],backend:["express","nestjs","hono","fastify"],orm:["prisma","drizzle","typeorm","sequelize"],mobile:["react-native","expo","ionic","capacitor","nativescript"]},python:{backend:["fastapi","django","flask"],orm:["sqlalchemy","tortoise-orm","peewee","django-orm"],game:["pygame","renpy","pyxel"]},go:{backend:["gin","echo","fiber","chi"],orm:["gorm","ent"]},rust:{frontend:["tauri"],backend:["actix-web","axum","rocket"],orm:["diesel","sea-orm"],game:["bevy"]},java:{backend:["spring-boot","quarkus","micronaut"],orm:["hibernate","mybatis"],mobile:["jetpack-compose"],game:["libgdx"]},kotlin:{backend:["spring-boot","ktor"],orm:["exposed","hibernate"],mobile:["jetpack-compose","kotlin-multiplatform"]},php:{backend:["laravel","symfony","slim","codeigniter","cakephp"],orm:["eloquent","doctrine"]},ruby:{backend:["rails","sinatra","hanami"],orm:["activerecord"]},swift:{backend:["vapor"],mobile:["swiftui","uikit"]},dart:{frontend:["flutter"],backend:["dart-frog"],mobile:["flutter"]},csharp:{backend:["aspnet"],orm:["entity-framework"],mobile:["maui","xamarin"],game:["unity","monogame"]},elixir:{backend:["phoenix"],orm:["ecto"]},scala:{backend:["play","akka-http"]},haskell:{backend:["servant","yesod"]},perl:{backend:["mojolicious","dancer"]},clojure:{backend:["ring","pedestal"]},lua:{game:["love2d","defold"]},gdscript:{game:["godot"]},cpp:{game:["unreal","cocos2d","godot"]}};function wo(e,t,r){if(r.length===0)return e;let i=new Set;for(let n of r){let o=XZ[n];if(!o)continue;let s=o[t];if(s)for(let a of s)i.add(a)}return i.size===0?e:e.filter(n=>i.has(n))}function e2(e,t){let r=e.length,i=t.length,n=Array.from({length:r+1},()=>Array(i+1).fill(0));for(let o=0;o<=r;o++)n[o][0]=o;for(let o=0;o<=i;o++)n[0][o]=o;for(let o=1;o<=r;o++)for(let s=1;s<=i;s++){let a=e[o-1]===t[s-1]?0:1;n[o][s]=Math.min(n[o-1][s]+1,n[o][s-1]+1,n[o-1][s-1]+a)}return n[r][i]}function t2(e,t,r=2){let i=null,n=r+1;for(let o of t){if(Math.abs(o.length-e.length)>r)continue;let s=e2(e.toLowerCase(),o.toLowerCase());s<n&&(n=s,i=o)}return i}var r2=[{field:"programming_languages",known:$p},{field:"frontend",known:kp},{field:"backend",known:Sp},{field:"database",known:xp},{field:"orm",known:wp},{field:"infra",known:Ip},{field:"game",known:Pp},{field:"mobile",known:zp}];function Tp(e){let t=[];for(let{field:r,known:i}of r2){let n=e[r];if(Array.isArray(n))for(let o of n)typeof o=="string"&&(i.has(o)||t.push({field:r,value:o,suggestion:t2(o,i)}))}return t}var cT=[{field:"display_language",type:"string",descriptions:{en:"GoDD display language (en / ja / ru)",ja:"GoDD \u306E\u8868\u793A\u8A00\u8A9E\uFF08en / ja / ru\uFF09",ru:"\u042F\u0437\u044B\u043A \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F GoDD (en / ja / ru)"},values:["en","ja","ru"]},{field:"main_language",type:"string",descriptions:{en:"Project main language (en / ja / ru)",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30E1\u30A4\u30F3\u8A00\u8A9E\uFF08en / ja / ru\uFF09",ru:"\u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u044F\u0437\u044B\u043A \u043F\u0440\u043E\u0435\u043A\u0442\u0430 (en / ja / ru)"},values:["en","ja","ru"]},{field:"sub_languages",type:"string[]",descriptions:{en:"Team sub-languages",ja:"\u30C1\u30FC\u30E0\u306E\u30B5\u30D6\u8A00\u8A9E",ru:"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u044F\u0437\u044B\u043A\u0438 \u043A\u043E\u043C\u0430\u043D\u0434\u044B"},values:["en","ja","ru"]},{field:"programming_languages",type:"string[]",descriptions:{en:"Programming languages",ja:"\u30D7\u30ED\u30B0\u30E9\u30DF\u30F3\u30B0\u8A00\u8A9E",ru:"\u042F\u0437\u044B\u043A\u0438 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F"},values:[...$p]},{field:"frontend",type:"string[]",descriptions:{en:"Frontend frameworks",ja:"\u30D5\u30ED\u30F3\u30C8\u30A8\u30F3\u30C9\u30D5\u30EC\u30FC\u30E0\u30EF\u30FC\u30AF",ru:"\u0424\u0440\u043E\u043D\u0442\u0435\u043D\u0434-\u0444\u0440\u0435\u0439\u043C\u0432\u043E\u0440\u043A\u0438"},values:[...kp]},{field:"backend",type:"string[]",descriptions:{en:"Backend frameworks",ja:"\u30D0\u30C3\u30AF\u30A8\u30F3\u30C9\u30D5\u30EC\u30FC\u30E0\u30EF\u30FC\u30AF",ru:"\u0411\u044D\u043A\u0435\u043D\u0434-\u0444\u0440\u0435\u0439\u043C\u0432\u043E\u0440\u043A\u0438"},values:[...Sp]},{field:"database",type:"string[]",descriptions:{en:"Databases",ja:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9",ru:"\u0411\u0430\u0437\u044B \u0434\u0430\u043D\u043D\u044B\u0445"},values:[...xp]},{field:"orm",type:"string[]",descriptions:{en:"ORM",ja:"ORM",ru:"ORM"},values:[...wp]},{field:"infra",type:"string[]",descriptions:{en:"Infrastructure",ja:"\u30A4\u30F3\u30D5\u30E9",ru:"\u0418\u043D\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0430"},values:[...Ip]},{field:"game",type:"string[]",descriptions:{en:"Game engines / frameworks",ja:"\u30B2\u30FC\u30E0\u30A8\u30F3\u30B8\u30F3 / \u30D5\u30EC\u30FC\u30E0\u30EF\u30FC\u30AF",ru:"\u0418\u0433\u0440\u043E\u0432\u044B\u0435 \u0434\u0432\u0438\u0436\u043A\u0438 / \u0444\u0440\u0435\u0439\u043C\u0432\u043E\u0440\u043A\u0438"},values:[...Pp]},{field:"mobile",type:"string[]",descriptions:{en:"Mobile / Cross-platform",ja:"\u30E2\u30D0\u30A4\u30EB / \u30AF\u30ED\u30B9\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0",ru:"\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u044B\u0435 / \u041A\u0440\u043E\u0441\u0441\u043F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0435\u043D\u043D\u044B\u0435"},values:[...zp]},{field:"other",type:"string[]",descriptions:{en:"Other (no validation, free text)",ja:"\u305D\u306E\u4ED6\uFF08\u30D0\u30EA\u30C7\u30FC\u30B7\u30E7\u30F3\u5BFE\u8C61\u5916\u3001\u81EA\u7531\u8A18\u8FF0\uFF09",ru:"\u041F\u0440\u043E\u0447\u0435\u0435 (\u0431\u0435\u0437 \u0432\u0430\u043B\u0438\u0434\u0430\u0446\u0438\u0438, \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442)"},values:[]},{field:"design",type:"object",descriptions:{en:"Design tool integration (tool: pencil/figma, auto_suggest: true/false, design_review: true/false)",ja:"\u30C7\u30B6\u30A4\u30F3\u30C4\u30FC\u30EB\u9023\u643A\uFF08tool: pencil/figma\u3001auto_suggest: true/false\u3001design_review: true/false\uFF09",ru:"\u0418\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044F \u0434\u0438\u0437\u0430\u0439\u043D-\u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u0430 (tool: pencil/figma, auto_suggest: true/false, design_review: true/false)"},values:[]},{field:"godd_files",type:"object",descriptions:{en:"GoDD managed files settings (docs_dir: path string, generate_gitattributes: true/false, generate_dependabot: true/false)",ja:"GoDD \u7BA1\u7406\u30D5\u30A1\u30A4\u30EB\u8A2D\u5B9A\uFF08docs_dir: \u30D1\u30B9\u6587\u5B57\u5217\u3001generate_gitattributes: true/false\u3001generate_dependabot: true/false\uFF09",ru:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0444\u0430\u0439\u043B\u043E\u0432 GoDD (docs_dir: \u0441\u0442\u0440\u043E\u043A\u0430 \u043F\u0443\u0442\u0438, generate_gitattributes: true/false, generate_dependabot: true/false)"},values:[]}];function lT(){return new Set([...cT.map(e=>e.field),"tools","design"])}var n2={en:{validValues:"Valid values",toolsDescription:"Tool settings (optional). Keys: vcs, browser_automation, e2e_testing, unit_testing, linting, formatting, type_checking, coverage, documentation, secret_scanning, security_analysis, unused_code, dependency_analysis"},ja:{validValues:"\u6709\u52B9\u5024",toolsDescription:"\u30C4\u30FC\u30EB\u8A2D\u5B9A\uFF08\u7701\u7565\u53EF\uFF09\u3002\u30AD\u30FC: vcs, browser_automation, e2e_testing, unit_testing, linting, formatting, type_checking, coverage, documentation, secret_scanning, security_analysis, unused_code, dependency_analysis"},ru:{validValues:"\u0414\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F",toolsDescription:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 (\u043D\u0435\u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E). \u041A\u043B\u044E\u0447\u0438: vcs, browser_automation, e2e_testing, unit_testing, linting, formatting, type_checking, coverage, documentation, secret_scanning, security_analysis, unused_code, dependency_analysis"}};function uT(e="ja"){let t=n2[e],r=[];for(let i of cT)r.push(`### ${i.field} (${i.type})`),r.push(i.descriptions[e]),i.values.length>0&&r.push(`${t.validValues}: ${i.values.join(", ")}`),r.push("");return r.push("### tools (object)"),r.push(t.toolsDescription),r.push(""),r.join(`
189
+ `)}var qb="https://www.getgodd.dev/contact",i2={en:{header:"\u26A0 config.godd contains unrecognized values. Please fix them and try again.",problemValues:"Problematic values:",suggestion:(e,t)=>` - "${e}" \u2192 did you mean "${t}"?`,unsupported:e=>` - "${e}" \u2192 currently unsupported. Contact ${qb} to request support.`,fixHeader:"How to fix:",fixEdit:" 1. Edit config.godd directly to correct the values",fixReinit:' 2. Or run "godd init --force" to regenerate'},ja:{header:"\u26A0 config.godd \u306B\u8A8D\u8B58\u3067\u304D\u306A\u3044\u5024\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\u3002\u4FEE\u6B63\u3057\u3066\u304B\u3089\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",problemValues:"\u554F\u984C\u306E\u3042\u308B\u5024:",suggestion:(e,t)=>` - "${e}" \u2192 \u3082\u3057\u304B\u3057\u3066 "${t}" \u3067\u3059\u304B\uFF1F`,unsupported:e=>` - "${e}" \u2192 \u73FE\u5728\u672A\u5BFE\u5FDC\u3067\u3059\u3002\u5BFE\u5FDC\u3092\u3054\u5E0C\u671B\u306E\u5834\u5408\u306F ${qb} \u304B\u3089\u3054\u9023\u7D61\u304F\u3060\u3055\u3044\u3002`,fixHeader:"\u4FEE\u6B63\u65B9\u6CD5:",fixEdit:" 1. config.godd \u3092\u76F4\u63A5\u7DE8\u96C6\u3057\u3066\u6B63\u3057\u3044\u5024\u306B\u4FEE\u6B63\u3059\u308B",fixReinit:' 2. \u307E\u305F\u306F "godd init --force" \u3067\u518D\u751F\u6210\u3059\u308B'},ru:{header:"\u26A0 config.godd \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F. \u0418\u0441\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u0438\u0445 \u0438 \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",problemValues:"\u041F\u0440\u043E\u0431\u043B\u0435\u043C\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F:",suggestion:(e,t)=>` - "${e}" \u2192 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u0432\u044B \u0438\u043C\u0435\u043B\u0438 \u0432 \u0432\u0438\u0434\u0443 "${t}"?`,unsupported:e=>` - "${e}" \u2192 \u043F\u043E\u043A\u0430 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F. \u0421\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 ${qb} \u0434\u043B\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438.`,fixHeader:"\u041A\u0430\u043A \u0438\u0441\u043F\u0440\u0430\u0432\u0438\u0442\u044C:",fixEdit:" 1. \u041E\u0442\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0443\u0439\u0442\u0435 config.godd \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E, \u0443\u043A\u0430\u0437\u0430\u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F",fixReinit:' 2. \u0418\u043B\u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u0435 "godd init --force" \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F'}};function dT(e,t="ja"){let r=i2[t],i=new Map;for(let o of e){let s=i.get(o.field)??[];s.push(o),i.set(o.field,s)}let n=[r.header,"",r.problemValues];for(let[o,s]of i){n.push(` ${o}:`);for(let a of s)n.push(a.suggestion?r.suggestion(a.value,a.suggestion):r.unsupported(a.value))}return n.push("",r.fixHeader,r.fixEdit,r.fixReinit),n.join(`
190
+ `)}var Ir="1.2.10";var Zb={en:{dev:"Development (plan \u2192 implement \u2192 test \u2192 quality \u2192 docs in stages)",check:"Quality gate (verify Spec alignment, tests, types, lint, security)",docs:"Generate/update documentation",ship:"Ship (commit at proper granularity \u2192 quality check \u2192 push \u2192 create PR)",setup:"Environment setup (with recommended stack presets, confirms missing info)",review:"Review (CTO-level review + quality gate)",test:"Run/create tests",impact:"Impact analysis",commit:"Commit changes",push:"Push to remote",pr:"Create PR (template-compliant)",deploy:"Deploy (with verification & rollback plan)",adr:"Create ADR (Architecture Decision Record)",release:"Generate release notes (SemVer-compliant)",github:"GitHub configuration (repository/branch protection, etc.)",config:"Generate/repair config.godd (auto-detect stack + validation)",questions:"Interactive Q&A from question list (\u8CEA\u554F\u30EA\u30B9\u30C8.md)",e2e:"Browser-based E2E testing (execute & verify critical user flows)",benchmark:"Competitive prompt analysis (compare GoDD vs Cursor Rules / Claude Code / Codex)",map:"Project knowledge graph (visualize architecture & dependencies with Mermaid)",learn:"Save/recall project-specific patterns, conventions, and pitfalls",diagram:"Auto-update architecture diagrams (maintain living Mermaid docs in sync with code)",slide:"Generate presentation slides from project docs (Marp Markdown format)",design:"Generate/update visual designs from codebase (Pencil.dev sync)"},ja:{dev:"\u958B\u767A\uFF08\u6BB5\u968E\u7684\u306B\u8A08\u753B\u2192\u5B9F\u88C5\u2192\u30C6\u30B9\u30C8\u2192\u54C1\u8CEA\u2192\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u5B9F\u884C\uFF09",check:"\u54C1\u8CEA\u30B2\u30FC\u30C8\uFF08Spec\u6574\u5408\u30FB\u30C6\u30B9\u30C8\u30FB\u578B\u30FBLint\u30FB\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u3092\u691C\u8A3C\uFF09",docs:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u751F\u6210/\u66F4\u65B0",ship:"\u63D0\u51FA\uFF08\u9069\u5207\u306A\u7C92\u5EA6\u3067\u30B3\u30DF\u30C3\u30C8 \u2192 \u54C1\u8CEA\u30C1\u30A7\u30C3\u30AF \u2192 \u30D7\u30C3\u30B7\u30E5 \u2192 PR \u4F5C\u6210\uFF09",setup:"\u74B0\u5883\u69CB\u7BC9\uFF08\u63A8\u5968\u30B9\u30BF\u30C3\u30AF\u30D7\u30EA\u30BB\u30C3\u30C8\u4ED8\u304D\u30FB\u4E0D\u8DB3\u60C5\u5831\u306F\u78BA\u8A8D\uFF09",review:"\u30EC\u30D3\u30E5\u30FC\uFF08CTO \u30EC\u30D9\u30EB\u306E\u30EC\u30D3\u30E5\u30FC + \u54C1\u8CEA\u30B2\u30FC\u30C8\uFF09",test:"\u30C6\u30B9\u30C8\u5B9F\u884C/\u4F5C\u6210",impact:"\u5F71\u97FF\u5206\u6790",commit:"\u5909\u66F4\u3092\u30B3\u30DF\u30C3\u30C8",push:"\u30EA\u30E2\u30FC\u30C8\u306B\u30D7\u30C3\u30B7\u30E5",pr:"PR \u4F5C\u6210\uFF08\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u6E96\u62E0\uFF09",deploy:"\u30C7\u30D7\u30ED\u30A4\uFF08\u691C\u8A3C\u30FB\u30ED\u30FC\u30EB\u30D0\u30C3\u30AF\u8A08\u753B\u4ED8\u304D\uFF09",adr:"ADR\uFF08Architecture Decision Record\uFF09\u4F5C\u6210",release:"\u30EA\u30EA\u30FC\u30B9\u30CE\u30FC\u30C8\u751F\u6210\uFF08SemVer \u6E96\u62E0\uFF09",github:"GitHub \u8A2D\u5B9A\uFF08\u30EA\u30DD\u30B8\u30C8\u30EA/\u30D6\u30E9\u30F3\u30C1\u4FDD\u8B77\u7B49\uFF09",config:"config.godd \u3092\u6B63\u78BA\u306B\u751F\u6210\u30FB\u4FEE\u6B63\u3059\u308B\uFF08\u30B9\u30BF\u30C3\u30AF\u81EA\u52D5\u691C\u51FA + \u30D0\u30EA\u30C7\u30FC\u30B7\u30E7\u30F3\uFF09",questions:"\u8CEA\u554F\u30EA\u30B9\u30C8\uFF08\u8CEA\u554F\u30EA\u30B9\u30C8.md\uFF09\u304B\u3089\u30A4\u30F3\u30BF\u30E9\u30AF\u30C6\u30A3\u30D6\u306B\u8CEA\u554F\u3092\u7BA1\u7406",e2e:"\u30D6\u30E9\u30A6\u30B6\u30D9\u30FC\u30B9 E2E \u30C6\u30B9\u30C8\uFF08\u91CD\u8981\u30E6\u30FC\u30B6\u30FC\u30D5\u30ED\u30FC\u306E\u5B9F\u884C\u30FB\u691C\u8A3C\uFF09",benchmark:"\u7AF6\u5408\u30D7\u30ED\u30F3\u30D7\u30C8\u5206\u6790\uFF08GoDD vs Cursor Rules / Claude Code / Codex \u3092\u6BD4\u8F03\uFF09",map:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30CA\u30EC\u30C3\u30B8\u30B0\u30E9\u30D5\uFF08Mermaid \u3067\u30A2\u30FC\u30AD\u30C6\u30AF\u30C1\u30E3\u30FB\u4F9D\u5B58\u95A2\u4FC2\u3092\u53EF\u8996\u5316\uFF09",learn:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u56FA\u6709\u306E\u30D1\u30BF\u30FC\u30F3\u30FB\u6163\u4F8B\u30FB\u843D\u3068\u3057\u7A74\u3092\u4FDD\u5B58/\u53C2\u7167",diagram:"\u30A2\u30FC\u30AD\u30C6\u30AF\u30C1\u30E3\u56F3\u306E\u81EA\u52D5\u66F4\u65B0\uFF08\u30B3\u30FC\u30C9\u3068\u540C\u671F\u3057\u305F Mermaid \u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u7DAD\u6301\uFF09",slide:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u304B\u3089\u30D7\u30EC\u30BC\u30F3\u30B9\u30E9\u30A4\u30C9\u3092\u751F\u6210\uFF08Marp Markdown \u5F62\u5F0F\uFF09",design:"\u30B3\u30FC\u30C9\u30D9\u30FC\u30B9\u304B\u3089\u30D3\u30B8\u30E5\u30A2\u30EB\u30C7\u30B6\u30A4\u30F3\u3092\u751F\u6210/\u66F4\u65B0\uFF08Pencil.dev \u540C\u671F\uFF09"},ru:{dev:"\u0420\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0430 (\u043F\u043B\u0430\u043D \u2192 \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u2192 \u0442\u0435\u0441\u0442\u044B \u2192 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u2192 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044F \u043F\u043E\u044D\u0442\u0430\u043F\u043D\u043E)",check:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430 (Spec, \u0442\u0435\u0441\u0442\u044B, \u0442\u0438\u043F\u044B, \u043B\u0438\u043D\u0442\u0435\u0440, \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C)",docs:"\u0413\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u044F/\u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438",ship:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 (\u043A\u043E\u043C\u043C\u0438\u0442 \u2192 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u2192 \u043F\u0443\u0448 \u2192 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 PR)",setup:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0441\u0440\u0435\u0434\u044B (\u0441 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u044B\u043C\u0438 \u043F\u0440\u0435\u0441\u0435\u0442\u0430\u043C\u0438 \u0441\u0442\u0435\u043A\u0430)",review:"\u0420\u0435\u0432\u044C\u044E (CTO-\u0443\u0440\u043E\u0432\u0435\u043D\u044C + \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430)",test:"\u0417\u0430\u043F\u0443\u0441\u043A/\u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0442\u0435\u0441\u0442\u043E\u0432",impact:"\u0410\u043D\u0430\u043B\u0438\u0437 \u0432\u043B\u0438\u044F\u043D\u0438\u044F",commit:"\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F",push:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0432 \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u0439",pr:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C PR (\u043F\u043E \u0448\u0430\u0431\u043B\u043E\u043D\u0443)",deploy:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C (\u0441 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u043E\u0439 \u0438 \u043F\u043B\u0430\u043D\u043E\u043C \u043E\u0442\u043A\u0430\u0442\u0430)",adr:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C ADR (\u0437\u0430\u043F\u0438\u0441\u044C \u0430\u0440\u0445\u0438\u0442\u0435\u043A\u0442\u0443\u0440\u043D\u043E\u0433\u043E \u0440\u0435\u0448\u0435\u043D\u0438\u044F)",release:"\u0421\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u043C\u0435\u0442\u043A\u0438 \u043A \u0440\u0435\u043B\u0438\u0437\u0443 (SemVer)",github:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 GitHub (\u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u0439/\u0437\u0430\u0449\u0438\u0442\u0430 \u0432\u0435\u0442\u043E\u043A \u0438 \u0442.\u0434.)",config:"\u0413\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u044F/\u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 config.godd (\u0430\u0432\u0442\u043E\u0434\u0435\u0442\u0435\u043A\u0442 \u0441\u0442\u0435\u043A\u0430 + \u0432\u0430\u043B\u0438\u0434\u0430\u0446\u0438\u044F)",questions:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0439 Q&A \u0438\u0437 \u0441\u043F\u0438\u0441\u043A\u0430 \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432 (\u8CEA\u554F\u30EA\u30B9\u30C8.md)",e2e:"E2E-\u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 (\u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0438 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u043F\u043E\u0442\u043E\u043A\u043E\u0432)",benchmark:"\u041A\u043E\u043D\u043A\u0443\u0440\u0435\u043D\u0442\u043D\u044B\u0439 \u0430\u043D\u0430\u043B\u0438\u0437 \u043F\u0440\u043E\u043C\u043F\u0442\u043E\u0432 (\u0441\u0440\u0430\u0432\u043D\u0435\u043D\u0438\u0435 GoDD \u0441 Cursor Rules / Claude Code / Codex)",map:"\u0413\u0440\u0430\u0444 \u0437\u043D\u0430\u043D\u0438\u0439 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 (\u0432\u0438\u0437\u0443\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u0430\u0440\u0445\u0438\u0442\u0435\u043A\u0442\u0443\u0440\u044B \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 Mermaid)",learn:"\u0421\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435/\u0432\u044B\u0437\u043E\u0432 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u0447\u043D\u044B\u0445 \u0434\u043B\u044F \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u043F\u0430\u0442\u0442\u0435\u0440\u043D\u043E\u0432, \u0441\u043E\u0433\u043B\u0430\u0448\u0435\u043D\u0438\u0439 \u0438 \u043F\u043E\u0434\u0432\u043E\u0434\u043D\u044B\u0445 \u043A\u0430\u043C\u043D\u0435\u0439",diagram:"\u0410\u0432\u0442\u043E\u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043A\u0442\u0443\u0440\u043D\u044B\u0445 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C (\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0445 Mermaid-\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432)",slide:"\u0413\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u044F \u0441\u043B\u0430\u0439\u0434\u043E\u0432 \u0438\u0437 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 (\u0444\u043E\u0440\u043C\u0430\u0442 Marp Markdown)",design:"\u0413\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u044F/\u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0434\u0438\u0437\u0430\u0439\u043D\u0430 \u0438\u0437 \u043A\u043E\u0434\u043E\u0432\u043E\u0439 \u0431\u0430\u0437\u044B (\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0430\u0446\u0438\u044F Pencil.dev)"}};var o2={dev:[{name:"request",required:!0},{name:"done_when",required:!1}],check:[{name:"target",required:!1}],docs:[{name:"target",required:!1}],ship:[{name:"title",required:!1}],review:[{name:"target",required:!1},{name:"action",required:!1}],test:[{name:"target",required:!1}],impact:[{name:"target",required:!1}],commit:[{name:"message",required:!1}],pr:[{name:"title",required:!1}],deploy:[{name:"target",required:!1}],adr:[{name:"title",required:!1}],release:[{name:"tag",required:!1}],setup:[{name:"preset",required:!1}],github:[{name:"request",required:!1}],config:[],questions:[{name:"action",required:!1}],e2e:[{name:"target",required:!1},{name:"url",required:!1}],benchmark:[{name:"target",required:!1}],map:[{name:"target",required:!1}],learn:[{name:"action",required:!1}],diagram:[{name:"target",required:!1}],slide:[{name:"type",required:!1},{name:"source",required:!1}],design:[{name:"target",required:!1},{name:"output",required:!1}]},Fb={en:{dev:{request:"Request details",done_when:"Completion criteria"},check:{target:"Check target (omit for all recent changes)"},docs:{target:"Target file/feature"},ship:{title:"PR title"},review:{target:"Target file/PR (e.g., PR URL, PR number, file path)",action:"Post-review action (approve / request-changes / comment)"},test:{target:"Test target"},impact:{target:"Analysis target"},commit:{message:"Commit message"},pr:{title:"PR title"},deploy:{target:"Deploy target"},adr:{title:"Decision title"},release:{tag:"Target tag (omit for HEAD since last release)"},setup:{preset:"Stack preset (omakase = recommended)"},github:{request:"Configuration request"},questions:{action:"Action: list (default) / resolve <id> / add <question>"},e2e:{target:"Target page/flow to test",url:"Base URL of the application"},benchmark:{target:"Competitor system to analyze (cursor-rules / claude-code / codex / all)"},map:{target:"Target scope (module/directory/layer to visualize)"},learn:{action:"Action: save <category> <content> / recall / list / forget <id>"},diagram:{target:"Target diagram scope (architecture / module / data-flow / erd / all)"},slide:{type:"Presentation type (sprint-review / architecture / release / onboarding)",source:"Source documents to base slides on"},design:{target:"Design target (all / page name / component name)",output:"Output format (pencil / tokens)"}},ja:{dev:{request:"\u4F9D\u983C\u5185\u5BB9",done_when:"\u5B8C\u4E86\u6761\u4EF6"},check:{target:"\u30C1\u30A7\u30C3\u30AF\u5BFE\u8C61\uFF08\u7701\u7565\u6642: \u76F4\u8FD1\u306E\u5909\u66F4\u5168\u4F53\uFF09"},docs:{target:"\u5BFE\u8C61\u30D5\u30A1\u30A4\u30EB/\u6A5F\u80FD"},ship:{title:"PR \u30BF\u30A4\u30C8\u30EB"},review:{target:"\u5BFE\u8C61\u30D5\u30A1\u30A4\u30EB/PR\uFF08\u4F8B: PR URL, PR\u756A\u53F7, \u30D5\u30A1\u30A4\u30EB\u30D1\u30B9\uFF09",action:"\u30EC\u30D3\u30E5\u30FC\u5F8C\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\uFF08approve / request-changes / comment\uFF09"},test:{target:"\u30C6\u30B9\u30C8\u5BFE\u8C61"},impact:{target:"\u5206\u6790\u5BFE\u8C61"},commit:{message:"\u30B3\u30DF\u30C3\u30C8\u30E1\u30C3\u30BB\u30FC\u30B8"},pr:{title:"PR \u30BF\u30A4\u30C8\u30EB"},deploy:{target:"\u30C7\u30D7\u30ED\u30A4\u5148"},adr:{title:"\u5224\u65AD\u306E\u30BF\u30A4\u30C8\u30EB"},release:{tag:"\u5BFE\u8C61\u30BF\u30B0\uFF08\u7701\u7565\u6642: \u76F4\u8FD1\u30EA\u30EA\u30FC\u30B9\u304B\u3089 HEAD\uFF09"},setup:{preset:"\u30B9\u30BF\u30C3\u30AF\u30D7\u30EA\u30BB\u30C3\u30C8\uFF08omakase = \u63A8\u5968\u69CB\u6210\uFF09"},github:{request:"\u8A2D\u5B9A\u5185\u5BB9"},questions:{action:"\u64CD\u4F5C: list\uFF08\u30C7\u30D5\u30A9\u30EB\u30C8\uFF09/ resolve <id> / add <\u8CEA\u554F\u6587>"},e2e:{target:"\u30C6\u30B9\u30C8\u5BFE\u8C61\u306E\u30DA\u30FC\u30B8/\u30D5\u30ED\u30FC",url:"\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u30D9\u30FC\u30B9 URL"},benchmark:{target:"\u5206\u6790\u5BFE\u8C61\u306E\u7AF6\u5408\uFF08cursor-rules / claude-code / codex / all\uFF09"},map:{target:"\u53EF\u8996\u5316\u5BFE\u8C61\uFF08\u30E2\u30B8\u30E5\u30FC\u30EB/\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA/\u30EC\u30A4\u30E4\u30FC\uFF09"},learn:{action:"\u64CD\u4F5C: save <\u30AB\u30C6\u30B4\u30EA> <\u5185\u5BB9> / recall / list / forget <id>"},diagram:{target:"\u56F3\u306E\u5BFE\u8C61\u7BC4\u56F2\uFF08architecture / module / data-flow / erd / all\uFF09"},slide:{type:"\u30D7\u30EC\u30BC\u30F3\u7A2E\u985E\uFF08sprint-review / architecture / release / onboarding\uFF09",source:"\u30BD\u30FC\u30B9\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8"},design:{target:"\u30C7\u30B6\u30A4\u30F3\u5BFE\u8C61\uFF08all / \u30DA\u30FC\u30B8\u540D / \u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u540D\uFF09",output:"\u51FA\u529B\u5F62\u5F0F\uFF08pencil / tokens\uFF09"}},ru:{dev:{request:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438",done_when:"\u041A\u0440\u0438\u0442\u0435\u0440\u0438\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F"},check:{target:"\u041E\u0431\u044A\u0435\u043A\u0442 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 (\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: \u0432\u0441\u0435 \u043D\u0435\u0434\u0430\u0432\u043D\u0438\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F)"},docs:{target:"\u0426\u0435\u043B\u0435\u0432\u043E\u0439 \u0444\u0430\u0439\u043B/\u0444\u0443\u043D\u043A\u0446\u0438\u044F"},ship:{title:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A PR"},review:{target:"\u0426\u0435\u043B\u0435\u0432\u043E\u0439 \u0444\u0430\u0439\u043B/PR (URL PR, \u043D\u043E\u043C\u0435\u0440 PR, \u043F\u0443\u0442\u044C \u043A \u0444\u0430\u0439\u043B\u0443)",action:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043F\u043E\u0441\u043B\u0435 \u0440\u0435\u0432\u044C\u044E (approve / request-changes / comment)"},test:{target:"\u041E\u0431\u044A\u0435\u043A\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F"},impact:{target:"\u041E\u0431\u044A\u0435\u043A\u0442 \u0430\u043D\u0430\u043B\u0438\u0437\u0430"},commit:{message:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043A\u043E\u043C\u043C\u0438\u0442\u0430"},pr:{title:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A PR"},deploy:{target:"\u0426\u0435\u043B\u044C \u0440\u0430\u0437\u0432\u0451\u0440\u0442\u044B\u0432\u0430\u043D\u0438\u044F"},adr:{title:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0440\u0435\u0448\u0435\u043D\u0438\u044F"},release:{tag:"\u0426\u0435\u043B\u0435\u0432\u043E\u0439 \u0442\u0435\u0433 (\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: \u043E\u0442 HEAD \u0434\u043E \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u0440\u0435\u043B\u0438\u0437\u0430)"},setup:{preset:"\u041F\u0440\u0435\u0441\u0435\u0442 \u0441\u0442\u0435\u043A\u0430 (omakase = \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u0430\u044F \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F)"},github:{request:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"},questions:{action:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435: list (\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E) / resolve <id> / add <\u0432\u043E\u043F\u0440\u043E\u0441>"},e2e:{target:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430/\u043F\u043E\u0442\u043E\u043A \u0434\u043B\u044F \u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",url:"\u0411\u0430\u0437\u043E\u0432\u044B\u0439 URL \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F"},benchmark:{target:"\u041A\u043E\u043D\u043A\u0443\u0440\u0435\u043D\u0442\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430 \u0434\u043B\u044F \u0430\u043D\u0430\u043B\u0438\u0437\u0430 (cursor-rules / claude-code / codex / all)"},map:{target:"\u0426\u0435\u043B\u0435\u0432\u043E\u0439 \u043E\u0431\u044A\u0435\u043A\u0442 (\u043C\u043E\u0434\u0443\u043B\u044C/\u043A\u0430\u0442\u0430\u043B\u043E\u0433/\u0441\u043B\u043E\u0439 \u0434\u043B\u044F \u0432\u0438\u0437\u0443\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438)"},learn:{action:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435: save <\u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u044F> <\u0441\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435> / recall / list / forget <id>"},diagram:{target:"\u0426\u0435\u043B\u0435\u0432\u043E\u0439 \u043E\u0431\u044A\u0435\u043A\u0442 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u044B (architecture / module / data-flow / erd / all)"},slide:{type:"\u0422\u0438\u043F \u043F\u0440\u0435\u0437\u0435\u043D\u0442\u0430\u0446\u0438\u0438 (sprint-review / architecture / release / onboarding)",source:"\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B"},design:{target:"\u0426\u0435\u043B\u044C \u0434\u0438\u0437\u0430\u0439\u043D\u0430 (all / \u0438\u043C\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B / \u0438\u043C\u044F \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u0430)",output:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0432\u044B\u0432\u043E\u0434\u0430 (pencil / tokens)"}}},s2=["dev","check","docs","ship","setup","review","test","impact","commit","push","pr","deploy","adr","release","github","config","questions","e2e","benchmark","map","learn","diagram","slide","design"];var Vb={dev:{slugs:["common","dev"]},ship:{slugs:["common","commit","push","pr","check"]},review:{slugs:["common","review","check"]}};var Ep=new Set(["dev","review","setup","test","impact","docs","check","deploy","adr","release","e2e","benchmark","map","learn","diagram","slide","design"]);function fT(e){return e in Vb||Ep.has(e)}function Kb(e){if(Vb[e])return Vb[e].slugs;if(Ep.has(e))return["common",e]}var Gb=new Set(["config","questions"]);function Bb(e="en"){let t=V.toolPrefix,r=Zb[e]??Zb.en;return s2.map(i=>({name:`${t}${i}`,description:r[i]??Zb.en[i]}))}function pT(e="en"){let t=V.toolPrefix,r=Fb[e]??Fb.en,i=Fb.en;return Bb(e).map(n=>{let o=n.name.replace(t,""),s=o2[o]??[];return{name:n.name,description:n.description,inputSchema:{type:"object",properties:Object.fromEntries(s.map(a=>[a.name,{type:"string",description:r[o]?.[a.name]??i[o]?.[a.name]??a.name}])),required:s.filter(a=>a.required).map(a=>a.name)}}})}var Yn=require("node:fs"),$T=require("node:path"),kT=Eo(Lb(),1);var We=require("node:fs"),Ht=require("node:path"),yT=require("node:readline"),jp=require("node:child_process");var a2={selectDisplayLanguage:"Select display language:",selectMainLanguage:"Select the main language for your project:",selectSubLanguages:"Select sub-languages used in your team:",selectSubLanguagesHint:"(comma-separated numbers, or press Enter to skip)",skipSubLanguages:"No sub-languages selected.",scanningProject:"Scanning project...",detectedStack:"Detected stack:",confirmStack:"Is this correct?",manualStackEntry:"Please select your tech stack manually.",selectProjectType:"What are you building? (select all that apply)",projectTypes:{web:"Web App (frontend + backend)",api:"API / Backend only",mobile:"Mobile App",game:"Game",cli:"CLI / Library / Script",desktop:"Desktop App"},selectProgrammingLanguages:"Programming languages:",selectFrontend:"Frontend frameworks:",selectBackend:"Backend frameworks:",selectDatabase:"Databases:",selectOrm:"ORM:",selectInfra:"Infrastructure:",selectGame:"Game engines / frameworks:",selectMobile:"Mobile / Cross-platform:",toolRecommendationsTitle:"Recommended tools for your stack:",toolInstallMode:"How would you like to install?",toolInstallDefault:"Default (install all)",toolInstallCustom:"Custom (choose individually)",toolInstallSkip:"Skip (install later)",toolInstallPrompt:"Install?",toolInstalling:"Installing",toolInstallSuccess:"Installed successfully.",toolInstallFailed:"Installation failed. You can install it later via setup prompt.",toolUniversalTag:"all projects",toolStackSpecificTag:"your stack",toolCategories:{vcs:"Version Control",browser_automation:"Browser Automation",e2e_testing:"E2E Testing",unit_testing:"Unit Testing",linting:"Linting",formatting:"Formatting",type_checking:"Type Checking",coverage:"Coverage",documentation:"Documentation",secret_scanning:"Secret Scanning",security_analysis:"Security Analysis",unused_code:"Unused Code Detection",dependency_analysis:"Dependency Analysis"},githubDetected:"GitHub repository detected. Configuring auto-delete for merged branches...",githubConfigSuccess:"\u2713 Merged branches will be auto-deleted on GitHub.",githubConfigFailed:"\u2717 Could not configure auto-delete. Run `gh repo edit --delete-branch-on-merge` manually.",configCreated:"Generated",configExists:"already exists",configOverwritten:"Overwritten",useForceFlag:"Use --force to overwrite.",languages:"Languages",frontend:"Frontend",backend:"Backend",database:"Database",orm:"ORM",infra:"Infra",game:"Game",mobile:"Mobile",other:"Other",pressEnterToClose:"Press Enter to close...",unknownCommand:"Unknown command",usage:"Usage:",installSuccess:"Registered with Cursor!",installUpdated:"Configuration updated",installUnchanged:"Already up to date",licenseNotSet:"License key is not set. Set GODD_LICENSE_KEY environment variable or run: godd install --license-key=YOUR_KEY",restartCursor:"Restart Cursor to activate the MCP server.",installFailed:"Installation failed:",uninstallTitle:"Uninstall",uninstallSuccess:"Removed from Cursor",uninstallNotFound:"Not found (already removed)",uninstallFailed:"Uninstall failed:",initTitle:"Project initialization",initAutoHint:"Non-interactive mode (--auto): stack scan + config only; tool install wizard skipped. Use interactive init when you need guided tool setup.",yes:"Yes",no:"No",none:"None",invalidChoice:"Invalid choice. Please try again.",enterNumbers:"Enter numbers",updateAvailable:"A newer version is available:",updateCurrent:"current:",licenseMissing:"GODD_LICENSE_KEY environment variable is not set.",licenseMissingHint:"Re-register with: godd install --license-key=YOUR_KEY",licenseFailed:"License validation failed",configNotFound:"not found in project directory.",configNotFoundHint:'Run "godd init" to generate project configuration for better prompt accuracy.',configUnknownValues:"contains unknown values:",didYouMean:"did you mean",serverStarted:"started (stdio)",corruptMcpJson:"is corrupt. Backed up to {backup} and creating a fresh config.",licenseNotConfigured:"License key is not configured. Set GODD_LICENSE_KEY and restart Cursor.",resolvePromptFailed:"Failed to resolve prompt",resolveToolFailed:"Failed to resolve tool",localToolFailed:"Local tool execution failed",helpInstall:"Register MCP server into Cursor",helpInit:"Initialize project (interactive; use --auto for scan-only)",helpUninstall:"Remove MCP server from Cursor",helpServe:"Start MCP stdio server (called by Cursor)",fatalError:"Fatal error",compositeMissingSlugs:"WARNING: The following sections could not be loaded",goddFilesTitle:"GoDD managed files configuration:",goddFilesDocsPrompt:"Documentation directory (press Enter for default: documents):",goddFilesGitattributesPrompt:"Auto-create .gitattributes on init if missing?",goddFilesDependabotPrompt:"Auto-create .github/dependabot.yml on init if missing?",goddFilesCreated:"GoDD-MCP-alpha.md generated."},c2={selectDisplayLanguage:"\u8868\u793A\u8A00\u8A9E\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044:",selectMainLanguage:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30E1\u30A4\u30F3\u8A00\u8A9E\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044:",selectSubLanguages:"\u30C1\u30FC\u30E0\u3067\u4F7F\u7528\u3059\u308B\u30B5\u30D6\u8A00\u8A9E\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044:",selectSubLanguagesHint:"(\u30AB\u30F3\u30DE\u533A\u5207\u308A\u306E\u756A\u53F7\u3001\u307E\u305F\u306FEnter\u3067\u30B9\u30AD\u30C3\u30D7)",skipSubLanguages:"\u30B5\u30D6\u8A00\u8A9E\u306F\u9078\u629E\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",scanningProject:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u30B9\u30AD\u30E3\u30F3\u4E2D...",detectedStack:"\u691C\u51FA\u3055\u308C\u305F\u30B9\u30BF\u30C3\u30AF:",confirmStack:"\u3053\u306E\u5185\u5BB9\u3067\u6B63\u3057\u3044\u3067\u3059\u304B\uFF1F",manualStackEntry:"\u6280\u8853\u30B9\u30BF\u30C3\u30AF\u3092\u624B\u52D5\u3067\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002",selectProjectType:"\u4F55\u3092\u4F5C\u308A\u307E\u3059\u304B\uFF1F\uFF08\u8A72\u5F53\u3059\u308B\u3082\u306E\u3092\u3059\u3079\u3066\u9078\u629E\uFF09",projectTypes:{web:"Web \u30A2\u30D7\u30EA\uFF08\u30D5\u30ED\u30F3\u30C8 + \u30D0\u30C3\u30AF\u30A8\u30F3\u30C9\uFF09",api:"API / \u30D0\u30C3\u30AF\u30A8\u30F3\u30C9\u306E\u307F",mobile:"\u30E2\u30D0\u30A4\u30EB\u30A2\u30D7\u30EA",game:"\u30B2\u30FC\u30E0",cli:"CLI / \u30E9\u30A4\u30D6\u30E9\u30EA / \u30B9\u30AF\u30EA\u30D7\u30C8",desktop:"\u30C7\u30B9\u30AF\u30C8\u30C3\u30D7\u30A2\u30D7\u30EA"},selectProgrammingLanguages:"\u30D7\u30ED\u30B0\u30E9\u30DF\u30F3\u30B0\u8A00\u8A9E:",selectFrontend:"\u30D5\u30ED\u30F3\u30C8\u30A8\u30F3\u30C9\u30D5\u30EC\u30FC\u30E0\u30EF\u30FC\u30AF:",selectBackend:"\u30D0\u30C3\u30AF\u30A8\u30F3\u30C9\u30D5\u30EC\u30FC\u30E0\u30EF\u30FC\u30AF:",selectDatabase:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9:",selectOrm:"ORM:",selectInfra:"\u30A4\u30F3\u30D5\u30E9:",selectGame:"\u30B2\u30FC\u30E0\u30A8\u30F3\u30B8\u30F3 / \u30D5\u30EC\u30FC\u30E0\u30EF\u30FC\u30AF:",selectMobile:"\u30E2\u30D0\u30A4\u30EB / \u30AF\u30ED\u30B9\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0:",toolRecommendationsTitle:"\u30B9\u30BF\u30C3\u30AF\u306B\u63A8\u5968\u3055\u308C\u308B\u30C4\u30FC\u30EB:",toolInstallMode:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u65B9\u6CD5\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044:",toolInstallDefault:"\u30C7\u30D5\u30A9\u30EB\u30C8\uFF08\u3059\u3079\u3066\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\uFF09",toolInstallCustom:"\u30AB\u30B9\u30BF\u30E0\uFF08\u500B\u5225\u306B\u9078\u629E\uFF09",toolInstallSkip:"\u30B9\u30AD\u30C3\u30D7\uFF08\u5F8C\u3067\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\uFF09",toolInstallPrompt:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059\u304B\uFF1F",toolInstalling:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u4E2D",toolInstallSuccess:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002",toolInstallFailed:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002setup \u30D7\u30ED\u30F3\u30D7\u30C8\u3067\u5F8C\u304B\u3089\u5BFE\u5FDC\u3067\u304D\u307E\u3059\u3002",toolUniversalTag:"\u5168\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u5171\u901A",toolStackSpecificTag:"\u30B9\u30BF\u30C3\u30AF\u56FA\u6709",toolCategories:{vcs:"\u30D0\u30FC\u30B8\u30E7\u30F3\u7BA1\u7406",browser_automation:"\u30D6\u30E9\u30A6\u30B6\u81EA\u52D5\u5316",e2e_testing:"E2E \u30C6\u30B9\u30C8",unit_testing:"\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8",linting:"\u30EA\u30F3\u30BF\u30FC",formatting:"\u30D5\u30A9\u30FC\u30DE\u30C3\u30BF\u30FC",type_checking:"\u578B\u30C1\u30A7\u30C3\u30AF",coverage:"\u30AB\u30D0\u30EC\u30C3\u30B8",documentation:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u751F\u6210",secret_scanning:"\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u30B9\u30AD\u30E3\u30F3",security_analysis:"\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u5206\u6790",unused_code:"\u672A\u4F7F\u7528\u30B3\u30FC\u30C9\u691C\u51FA",dependency_analysis:"\u4F9D\u5B58\u5206\u6790"},githubDetected:"GitHub \u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u30DE\u30FC\u30B8\u6E08\u307F\u30D6\u30E9\u30F3\u30C1\u306E\u81EA\u52D5\u524A\u9664\u3092\u8A2D\u5B9A\u4E2D...",githubConfigSuccess:"\u2713 \u30DE\u30FC\u30B8\u6E08\u307F\u30D6\u30E9\u30F3\u30C1\u306F GitHub \u4E0A\u3067\u81EA\u52D5\u524A\u9664\u3055\u308C\u307E\u3059\u3002",githubConfigFailed:"\u2717 \u81EA\u52D5\u524A\u9664\u306E\u8A2D\u5B9A\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u624B\u52D5\u3067 `gh repo edit --delete-branch-on-merge` \u3092\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",configCreated:"\u3092\u751F\u6210\u3057\u307E\u3057\u305F",configExists:"\u306F\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059",configOverwritten:"\u3092\u4E0A\u66F8\u304D\u3057\u307E\u3057\u305F",useForceFlag:"\u4E0A\u66F8\u304D\u3059\u308B\u5834\u5408\u306F --force \u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",languages:"\u8A00\u8A9E",frontend:"\u30D5\u30ED\u30F3\u30C8\u30A8\u30F3\u30C9",backend:"\u30D0\u30C3\u30AF\u30A8\u30F3\u30C9",database:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9",orm:"ORM",infra:"\u30A4\u30F3\u30D5\u30E9",game:"\u30B2\u30FC\u30E0",mobile:"\u30E2\u30D0\u30A4\u30EB",other:"\u305D\u306E\u4ED6",pressEnterToClose:"Enter \u30AD\u30FC\u3092\u62BC\u3059\u3068\u9589\u3058\u307E\u3059...",unknownCommand:"\u4E0D\u660E\u306A\u30B3\u30DE\u30F3\u30C9",usage:"\u4F7F\u3044\u65B9:",installSuccess:"Cursor \u306B\u767B\u9332\u3057\u307E\u3057\u305F\uFF01",installUpdated:"\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",installUnchanged:"\u65E2\u306B\u6700\u65B0\u306E\u8A2D\u5B9A\u3067\u3059",licenseNotSet:"\u30E9\u30A4\u30BB\u30F3\u30B9\u30AD\u30FC\u304C\u672A\u8A2D\u5B9A\u3067\u3059\u3002\u74B0\u5883\u5909\u6570 GODD_LICENSE_KEY \u3092\u8A2D\u5B9A\u3059\u308B\u304B\u3001godd install --license-key=YOUR_KEY \u3067\u767B\u9332\u3057\u3066\u304F\u3060\u3055\u3044\u3002",restartCursor:"Cursor \u3092\u518D\u8D77\u52D5\u3059\u308B\u3068 MCP \u30B5\u30FC\u30D0\u30FC\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3059\u3002",installFailed:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u306B\u5931\u6557\u3057\u307E\u3057\u305F:",uninstallTitle:"\u30A2\u30F3\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB",uninstallSuccess:"Cursor \u304B\u3089\u524A\u9664\u3057\u307E\u3057\u305F",uninstallNotFound:"\u767B\u9332\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u65E2\u306B\u524A\u9664\u6E08\u307F\uFF09",uninstallFailed:"\u30A2\u30F3\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u306B\u5931\u6557\u3057\u307E\u3057\u305F:",initTitle:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u521D\u671F\u5316",initAutoHint:"\u975E\u5BFE\u8A71\u30E2\u30FC\u30C9\uFF08--auto\uFF09: \u30B9\u30BF\u30C3\u30AF\u81EA\u52D5\u691C\u51FA\u3068 config.godd \u306E\u307F\u3002\u30C4\u30FC\u30EB\u5C0E\u5165\u30A6\u30A3\u30B6\u30FC\u30C9\u306F\u7701\u7565\u3055\u308C\u307E\u3059\u3002\u624B\u52D5\u3067\u30C4\u30FC\u30EB\u3092\u9078\u3073\u305F\u3044\u5834\u5408\u306F\u5BFE\u8A71\u5F0F init \u3092\u4F7F\u3063\u3066\u304F\u3060\u3055\u3044\u3002",yes:"\u306F\u3044",no:"\u3044\u3044\u3048",none:"\u306A\u3057",invalidChoice:"\u7121\u52B9\u306A\u9078\u629E\u3067\u3059\u3002\u3082\u3046\u4E00\u5EA6\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterNumbers:"\u756A\u53F7\u3092\u5165\u529B",updateAvailable:"\u65B0\u3057\u3044\u30D0\u30FC\u30B8\u30E7\u30F3\u304C\u3042\u308A\u307E\u3059:",updateCurrent:"\u73FE\u5728:",licenseMissing:"GODD_LICENSE_KEY \u74B0\u5883\u5909\u6570\u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",licenseMissingHint:"godd install --license-key=YOUR_KEY \u3067\u518D\u767B\u9332\u3057\u3066\u304F\u3060\u3055\u3044\u3002",licenseFailed:"\u30E9\u30A4\u30BB\u30F3\u30B9\u691C\u8A3C\u5931\u6557",configNotFound:"\u304C\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306B\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",configNotFoundHint:"\u300Cgodd init\u300D\u3092\u5B9F\u884C\u3057\u3066\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u8A2D\u5B9A\u3092\u751F\u6210\u3059\u308B\u3068\u3001\u30D7\u30ED\u30F3\u30D7\u30C8\u306E\u7CBE\u5EA6\u304C\u5411\u4E0A\u3057\u307E\u3059\u3002",configUnknownValues:"\u306B\u4E0D\u660E\u306A\u5024\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059:",didYouMean:"\u3082\u3057\u304B\u3057\u3066",serverStarted:"\u3092\u8D77\u52D5\u3057\u307E\u3057\u305F (stdio)",corruptMcpJson:"\u304C\u58CA\u308C\u3066\u3044\u307E\u3059\u3002{backup} \u306B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u4F5C\u6210\u3057\u3001\u65B0\u898F\u8A2D\u5B9A\u3092\u4F5C\u6210\u3057\u307E\u3059\u3002",licenseNotConfigured:"\u30E9\u30A4\u30BB\u30F3\u30B9\u30AD\u30FC\u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002GODD_LICENSE_KEY \u3092\u8A2D\u5B9A\u3057\u3066 Cursor \u3092\u518D\u8D77\u52D5\u3057\u3066\u304F\u3060\u3055\u3044\u3002",resolvePromptFailed:"\u30D7\u30ED\u30F3\u30D7\u30C8\u306E\u89E3\u6C7A\u306B\u5931\u6557\u3057\u307E\u3057\u305F",resolveToolFailed:"\u30C4\u30FC\u30EB\u306E\u89E3\u6C7A\u306B\u5931\u6557\u3057\u307E\u3057\u305F",localToolFailed:"\u30ED\u30FC\u30AB\u30EB\u30C4\u30FC\u30EB\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F",helpInstall:"MCP \u30B5\u30FC\u30D0\u30FC\u3092 Cursor \u306B\u767B\u9332",helpInit:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u521D\u671F\u5316\uFF08\u5BFE\u8A71\u5F0F\uFF0F--auto \u3067\u30B9\u30AD\u30E3\u30F3\u306E\u307F\uFF09",helpUninstall:"MCP \u30B5\u30FC\u30D0\u30FC\u3092 Cursor \u304B\u3089\u524A\u9664",helpServe:"MCP stdio \u30B5\u30FC\u30D0\u30FC\u3092\u8D77\u52D5\uFF08Cursor \u304C\u547C\u3073\u51FA\u3057\uFF09",fatalError:"\u81F4\u547D\u7684\u306A\u30A8\u30E9\u30FC",compositeMissingSlugs:"\u8B66\u544A: \u4EE5\u4E0B\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F",goddFilesTitle:"GoDD \u7BA1\u7406\u30D5\u30A1\u30A4\u30EB\u306E\u8A2D\u5B9A:",goddFilesDocsPrompt:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\uFF08Enter \u3067\u30C7\u30D5\u30A9\u30EB\u30C8: documents\uFF09:",goddFilesGitattributesPrompt:"init \u6642\u306B .gitattributes \u304C\u5B58\u5728\u3057\u306A\u3044\u5834\u5408\u3001\u81EA\u52D5\u4F5C\u6210\u3057\u307E\u3059\u304B\uFF1F",goddFilesDependabotPrompt:"init \u6642\u306B .github/dependabot.yml \u304C\u5B58\u5728\u3057\u306A\u3044\u5834\u5408\u3001\u81EA\u52D5\u4F5C\u6210\u3057\u307E\u3059\u304B\uFF1F",goddFilesCreated:"GoDD-MCP-alpha.md \u3092\u751F\u6210\u3057\u307E\u3057\u305F\u3002"},l2={selectDisplayLanguage:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044F\u0437\u044B\u043A \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F:",selectMainLanguage:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u044F\u0437\u044B\u043A \u043F\u0440\u043E\u0435\u043A\u0442\u0430:",selectSubLanguages:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u044F\u0437\u044B\u043A\u0438 \u043A\u043E\u043C\u0430\u043D\u0434\u044B:",selectSubLanguagesHint:"(\u043D\u043E\u043C\u0435\u0440\u0430 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043F\u044F\u0442\u0443\u044E \u0438\u043B\u0438 Enter \u0434\u043B\u044F \u043F\u0440\u043E\u043F\u0443\u0441\u043A\u0430)",skipSubLanguages:"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u044F\u0437\u044B\u043A\u0438 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u044B.",scanningProject:"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u0430...",detectedStack:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043D\u044B\u0439 \u0441\u0442\u0435\u043A:",confirmStack:"\u0412\u0441\u0451 \u0432\u0435\u0440\u043D\u043E?",manualStackEntry:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0441\u0442\u0435\u043A \u0432\u0440\u0443\u0447\u043D\u0443\u044E.",selectProjectType:"\u0427\u0442\u043E \u0432\u044B \u0441\u043E\u0437\u0434\u0430\u0451\u0442\u0435? (\u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0441\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0435)",projectTypes:{web:"\u0412\u0435\u0431-\u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435 (\u0444\u0440\u043E\u043D\u0442\u0435\u043D\u0434 + \u0431\u044D\u043A\u0435\u043D\u0434)",api:"API / \u0442\u043E\u043B\u044C\u043A\u043E \u0431\u044D\u043A\u0435\u043D\u0434",mobile:"\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435",game:"\u0418\u0433\u0440\u0430",cli:"CLI / \u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 / \u0421\u043A\u0440\u0438\u043F\u0442",desktop:"\u0414\u0435\u0441\u043A\u0442\u043E\u043F\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435"},selectProgrammingLanguages:"\u042F\u0437\u044B\u043A\u0438 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F:",selectFrontend:"\u0424\u0440\u043E\u043D\u0442\u0435\u043D\u0434-\u0444\u0440\u0435\u0439\u043C\u0432\u043E\u0440\u043A\u0438:",selectBackend:"\u0411\u044D\u043A\u0435\u043D\u0434-\u0444\u0440\u0435\u0439\u043C\u0432\u043E\u0440\u043A\u0438:",selectDatabase:"\u0411\u0430\u0437\u044B \u0434\u0430\u043D\u043D\u044B\u0445:",selectOrm:"ORM:",selectInfra:"\u0418\u043D\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0430:",selectGame:"\u0418\u0433\u0440\u043E\u0432\u044B\u0435 \u0434\u0432\u0438\u0436\u043A\u0438 / \u0444\u0440\u0435\u0439\u043C\u0432\u043E\u0440\u043A\u0438:",selectMobile:"\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u044B\u0435 / \u043A\u0440\u043E\u0441\u0441\u043F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0435\u043D\u043D\u044B\u0435:",toolRecommendationsTitle:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u044B\u0435 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u044B \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0442\u0435\u043A\u0430:",toolInstallMode:"\u041A\u0430\u043A \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C?",toolInstallDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E (\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0441\u0435)",toolInstallCustom:"\u0412\u044B\u0431\u043E\u0440\u043E\u0447\u043D\u043E (\u0432\u044B\u0431\u0440\u0430\u0442\u044C \u043F\u043E \u043E\u0434\u043D\u043E\u043C\u0443)",toolInstallSkip:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C (\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u043E\u0437\u0436\u0435)",toolInstallPrompt:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C?",toolInstalling:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430",toolInstallSuccess:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0443\u0441\u043F\u0435\u0448\u043D\u043E.",toolInstallFailed:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C. \u041C\u043E\u0436\u043D\u043E \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u043E\u0437\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 setup.",toolUniversalTag:"\u0432\u0441\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u044B",toolStackSpecificTag:"\u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0442\u0435\u043A\u0430",toolCategories:{vcs:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u044C \u0432\u0435\u0440\u0441\u0438\u0439",browser_automation:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044F \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430",e2e_testing:"E2E \u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",unit_testing:"\u042E\u043D\u0438\u0442-\u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",linting:"\u041B\u0438\u043D\u0442\u0438\u043D\u0433",formatting:"\u0424\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",type_checking:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0442\u0438\u043F\u043E\u0432",coverage:"\u041F\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u0434\u0430",documentation:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044F",secret_scanning:"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0441\u0435\u043A\u0440\u0435\u0442\u043E\u0432",security_analysis:"\u0410\u043D\u0430\u043B\u0438\u0437 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",unused_code:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u0435 \u043D\u0435\u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u043C\u043E\u0433\u043E \u043A\u043E\u0434\u0430",dependency_analysis:"\u0410\u043D\u0430\u043B\u0438\u0437 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0435\u0439"},githubDetected:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0451\u043D GitHub-\u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u0439. \u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0430\u0432\u0442\u043E\u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F \u043E\u0431\u044A\u0435\u0434\u0438\u043D\u0451\u043D\u043D\u044B\u0445 \u0432\u0435\u0442\u043E\u043A...",githubConfigSuccess:"\u2713 \u041E\u0431\u044A\u0435\u0434\u0438\u043D\u0451\u043D\u043D\u044B\u0435 \u0432\u0435\u0442\u043A\u0438 \u0431\u0443\u0434\u0443\u0442 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0443\u0434\u0430\u043B\u044F\u0442\u044C\u0441\u044F \u043D\u0430 GitHub.",githubConfigFailed:"\u2717 \u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435. \u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 `gh repo edit --delete-branch-on-merge` \u0432\u0440\u0443\u0447\u043D\u0443\u044E.",configCreated:"\u0421\u043E\u0437\u0434\u0430\u043D",configExists:"\u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442",configOverwritten:"\u041F\u0435\u0440\u0435\u0437\u0430\u043F\u0438\u0441\u0430\u043D",useForceFlag:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 --force \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0438\u0441\u0438.",languages:"\u042F\u0437\u044B\u043A\u0438",frontend:"\u0424\u0440\u043E\u043D\u0442\u0435\u043D\u0434",backend:"\u0411\u044D\u043A\u0435\u043D\u0434",database:"\u0411\u0430\u0437\u0430 \u0434\u0430\u043D\u043D\u044B\u0445",orm:"ORM",infra:"\u0418\u043D\u0444\u0440\u0430",game:"\u0418\u0433\u0440\u044B",mobile:"\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u044B\u0435",other:"\u041F\u0440\u043E\u0447\u0435\u0435",pressEnterToClose:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 Enter \u0434\u043B\u044F \u0432\u044B\u0445\u043E\u0434\u0430...",unknownCommand:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430",usage:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435:",installSuccess:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 Cursor!",installUpdated:"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0430",installUnchanged:"\u0423\u0436\u0435 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E",licenseNotSet:"\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u043E\u043D\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u043D\u0435 \u0437\u0430\u0434\u0430\u043D. \u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 GODD_LICENSE_KEY \u0438\u043B\u0438 \u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435: godd install --license-key=YOUR_KEY",restartCursor:"\u041F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 Cursor \u0434\u043B\u044F \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438 MCP-\u0441\u0435\u0440\u0432\u0435\u0440\u0430.",installFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438:",uninstallTitle:"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435",uninstallSuccess:"\u0423\u0434\u0430\u043B\u0435\u043D\u043E \u0438\u0437 Cursor",uninstallNotFound:"\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E (\u0443\u0436\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u043E)",uninstallFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F:",initTitle:"\u0418\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043F\u0440\u043E\u0435\u043A\u0442\u0430",initAutoHint:"\u041D\u0435\u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C (--auto): \u0442\u043E\u043B\u044C\u043A\u043E \u0430\u0432\u0442\u043E\u0441\u043A\u0430\u043D \u0441\u0442\u0435\u043A\u0430 \u0438 config; \u043C\u0430\u0441\u0442\u0435\u0440 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u043F\u0440\u043E\u043F\u0443\u0449\u0435\u043D. \u0414\u043B\u044F \u0432\u044B\u0431\u043E\u0440\u0430 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0439 init.",yes:"\u0414\u0430",no:"\u041D\u0435\u0442",none:"\u041D\u0435\u0442",invalidChoice:"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u044B\u0431\u043E\u0440. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0451 \u0440\u0430\u0437.",enterNumbers:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440\u0430",updateAvailable:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u043D\u043E\u0432\u0430\u044F \u0432\u0435\u0440\u0441\u0438\u044F:",updateCurrent:"\u0442\u0435\u043A\u0443\u0449\u0430\u044F:",licenseMissing:"\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F \u0441\u0440\u0435\u0434\u044B GODD_LICENSE_KEY \u043D\u0435 \u0437\u0430\u0434\u0430\u043D\u0430.",licenseMissingHint:"\u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435: godd install --license-key=YOUR_KEY",licenseFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043B\u0438\u0446\u0435\u043D\u0437\u0438\u0438",configNotFound:"\u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0432 \u0434\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u0438 \u043F\u0440\u043E\u0435\u043A\u0442\u0430.",configNotFoundHint:'\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 "godd init" \u0434\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043F\u0440\u043E\u0435\u043A\u0442\u0430.',configUnknownValues:"\u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F:",didYouMean:"\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u0432\u044B \u0438\u043C\u0435\u043B\u0438 \u0432 \u0432\u0438\u0434\u0443",serverStarted:"\u0437\u0430\u043F\u0443\u0449\u0435\u043D (stdio)",corruptMcpJson:"\u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0451\u043D. \u0420\u0435\u0437\u0435\u0440\u0432\u043D\u0430\u044F \u043A\u043E\u043F\u0438\u044F: {backup}. \u0421\u043E\u0437\u0434\u0430\u0451\u0442\u0441\u044F \u043D\u043E\u0432\u0430\u044F \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F.",licenseNotConfigured:"\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u043E\u043D\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u043D\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D. \u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 GODD_LICENSE_KEY \u0438 \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 Cursor.",resolvePromptFailed:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u043F\u0440\u043E\u043C\u043F\u0442",resolveToolFailed:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442",localToolFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u0430",helpInstall:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C MCP-\u0441\u0435\u0440\u0432\u0435\u0440 \u0432 Cursor",helpInit:"\u0418\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442 (\u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u043D\u043E; --auto \u2014 \u0442\u043E\u043B\u044C\u043A\u043E \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435)",helpUninstall:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C MCP-\u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u0437 Cursor",helpServe:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C MCP stdio-\u0441\u0435\u0440\u0432\u0435\u0440 (\u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442\u0441\u044F Cursor)",fatalError:"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430",compositeMissingSlugs:"\u0412\u041D\u0418\u041C\u0410\u041D\u0418\u0415: \u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043B\u044B \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C",goddFilesTitle:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0444\u0430\u0439\u043B\u043E\u0432 GoDD:",goddFilesDocsPrompt:"\u0414\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044F \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438 (Enter \u2014 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: documents):",goddFilesGitattributesPrompt:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C .gitattributes \u043F\u0440\u0438 init, \u0435\u0441\u043B\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442?",goddFilesDependabotPrompt:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C .github/dependabot.yml \u043F\u0440\u0438 init, \u0435\u0441\u043B\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442?",goddFilesCreated:"GoDD-MCP-alpha.md \u0441\u043E\u0437\u0434\u0430\u043D."},mT={en:a2,ja:c2,ru:l2};function De(e){return mT[e]??mT.en}var Jb={en:"English",ja:"\u65E5\u672C\u8A9E",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"};var I=e=>({win32:e,darwin:e,linux:e}),S=(e,...t)=>t.some(r=>e.programming_languages.includes(r)),Wn=(e,...t)=>t.some(r=>e.mobile.includes(r)),u2=[{category:"vcs",tool:"gh",installCmd:{win32:"winget install GitHub.cli",darwin:"brew install gh",linux:'(type -p wget >/dev/null || sudo apt-get install wget -y) && sudo mkdir -p -m 755 /etc/apt/keyrings && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null && sudo apt-get update && sudo apt-get install gh -y'},universal:!0,condition:()=>!0},{category:"browser_automation",tool:"browser-use",installCmd:I("pip install --upgrade browser-use"),universal:!0,condition:()=>!0},{category:"secret_scanning",tool:"gitleaks",installCmd:{win32:"winget install Gitleaks.Gitleaks",darwin:"brew install gitleaks",linux:"go install github.com/gitleaks/gitleaks/v8@latest"},universal:!0,condition:()=>!0},{category:"e2e_testing",tool:"playwright",installCmd:I("npm i -D @playwright/test@latest && npx playwright install"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"unit_testing",tool:"vitest",installCmd:I("npm i -D vitest@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"linting",tool:"biome",installCmd:I("npm i -D @biomejs/biome@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"formatting",tool:"biome",installCmd:I("npm i -D @biomejs/biome@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"type_checking",tool:"typescript",installCmd:I("npm i -D typescript@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"coverage",tool:"@vitest/coverage-v8",installCmd:I("npm i -D @vitest/coverage-v8@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"unused_code",tool:"knip",installCmd:I("npm i -D knip@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"dependency_analysis",tool:"dependency-cruiser",installCmd:I("npm i -D dependency-cruiser@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"documentation",tool:"typedoc",installCmd:I("npm i -D typedoc@latest"),universal:!1,condition:e=>S(e,"typescript","javascript")},{category:"e2e_testing",tool:"pytest",installCmd:I("pip install --upgrade pytest httpx pytest-asyncio"),universal:!1,condition:e=>S(e,"python")},{category:"unit_testing",tool:"pytest",installCmd:I("pip install --upgrade pytest"),universal:!1,condition:e=>S(e,"python")},{category:"linting",tool:"ruff",installCmd:I("pip install --upgrade ruff"),universal:!1,condition:e=>S(e,"python")},{category:"formatting",tool:"ruff",installCmd:I("pip install --upgrade ruff"),universal:!1,condition:e=>S(e,"python")},{category:"type_checking",tool:"pyright",installCmd:I("pip install --upgrade pyright"),universal:!1,condition:e=>S(e,"python")},{category:"coverage",tool:"pytest-cov",installCmd:I("pip install --upgrade pytest-cov"),universal:!1,condition:e=>S(e,"python")},{category:"unused_code",tool:"vulture",installCmd:I("pip install --upgrade vulture"),universal:!1,condition:e=>S(e,"python")},{category:"dependency_analysis",tool:"pipdeptree",installCmd:I("pip install --upgrade pipdeptree"),universal:!1,condition:e=>S(e,"python")},{category:"documentation",tool:"mkdocs",installCmd:I("pip install --upgrade mkdocs mkdocs-material"),universal:!1,condition:e=>S(e,"python")},{category:"security_analysis",tool:"bandit",installCmd:I("pip install --upgrade bandit"),universal:!1,condition:e=>S(e,"python")},{category:"unit_testing",tool:"testify",installCmd:I("go get github.com/stretchr/testify@latest"),universal:!1,condition:e=>S(e,"go")},{category:"formatting",tool:"gofmt",installCmd:I("echo gofmt \u2014 built-in with Go toolchain"),universal:!1,condition:e=>S(e,"go")},{category:"coverage",tool:"go-cover",installCmd:I("echo go test -cover \u2014 built-in with Go toolchain"),universal:!1,condition:e=>S(e,"go")},{category:"linting",tool:"golangci-lint",installCmd:{win32:"go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest",darwin:"brew install golangci-lint",linux:"go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest"},universal:!1,condition:e=>S(e,"go")},{category:"unused_code",tool:"deadcode",installCmd:I("go install golang.org/x/tools/cmd/deadcode@latest"),universal:!1,condition:e=>S(e,"go")},{category:"documentation",tool:"godoc",installCmd:I("go install golang.org/x/tools/cmd/godoc@latest"),universal:!1,condition:e=>S(e,"go")},{category:"security_analysis",tool:"gosec",installCmd:I("go install github.com/securego/gosec/v2/cmd/gosec@latest"),universal:!1,condition:e=>S(e,"go")},{category:"unit_testing",tool:"junit5",installCmd:I("echo JUnit 5 \u2014 add to pom.xml or build.gradle"),universal:!1,condition:e=>S(e,"java")&&!S(e,"kotlin")},{category:"linting",tool:"checkstyle",installCmd:I("echo Checkstyle \u2014 add Gradle/Maven plugin"),universal:!1,condition:e=>S(e,"java")&&!S(e,"kotlin")},{category:"formatting",tool:"google-java-format",installCmd:I("echo google-java-format \u2014 add to build config"),universal:!1,condition:e=>S(e,"java")&&!S(e,"kotlin")},{category:"coverage",tool:"jacoco",installCmd:I("echo JaCoCo \u2014 add Gradle/Maven plugin"),universal:!1,condition:e=>S(e,"java")},{category:"security_analysis",tool:"spotbugs",installCmd:I("echo SpotBugs \u2014 add Gradle/Maven plugin"),universal:!1,condition:e=>S(e,"java")},{category:"unit_testing",tool:"junit5",installCmd:I("echo JUnit 5 + MockK \u2014 add to build.gradle.kts"),universal:!1,condition:e=>S(e,"kotlin")},{category:"linting",tool:"detekt",installCmd:I("echo detekt \u2014 add Gradle plugin"),universal:!1,condition:e=>S(e,"kotlin")},{category:"formatting",tool:"ktlint",installCmd:I("echo ktlint \u2014 add Gradle plugin"),universal:!1,condition:e=>S(e,"kotlin")},{category:"coverage",tool:"kover",installCmd:I("echo Kover \u2014 add Gradle plugin"),universal:!1,condition:e=>S(e,"kotlin")},{category:"documentation",tool:"dokka",installCmd:I("echo Dokka \u2014 add Gradle plugin"),universal:!1,condition:e=>S(e,"kotlin")},{category:"unit_testing",tool:"xunit",installCmd:I("dotnet add package xunit xunit.runner.visualstudio"),universal:!1,condition:e=>S(e,"csharp")},{category:"formatting",tool:"dotnet-format",installCmd:I("echo dotnet format \u2014 built-in (.NET 6+)"),universal:!1,condition:e=>S(e,"csharp")},{category:"coverage",tool:"coverlet",installCmd:I("dotnet add package coverlet.collector"),universal:!1,condition:e=>S(e,"csharp")},{category:"linting",tool:"dotnet-analyzers",installCmd:I("echo .NET Analyzers \u2014 built-in with .NET 5+ SDK"),universal:!1,condition:e=>S(e,"csharp")},{category:"documentation",tool:"docfx",installCmd:I("dotnet tool install -g docfx"),universal:!1,condition:e=>S(e,"csharp")},{category:"unit_testing",tool:"googletest",installCmd:I("echo GoogleTest \u2014 add via CMake FetchContent"),universal:!1,condition:e=>S(e,"cpp","c")},{category:"linting",tool:"clang-tidy",installCmd:{win32:"choco install llvm",darwin:"brew install llvm",linux:"sudo apt-get install -y clang-tidy"},universal:!1,condition:e=>S(e,"cpp","c")},{category:"formatting",tool:"clang-format",installCmd:{win32:"choco install llvm",darwin:"brew install clang-format",linux:"sudo apt-get install -y clang-format"},universal:!1,condition:e=>S(e,"cpp","c")},{category:"coverage",tool:"lcov",installCmd:{win32:"choco install lcov",darwin:"brew install lcov",linux:"sudo apt-get install -y lcov"},universal:!1,condition:e=>S(e,"cpp","c")},{category:"documentation",tool:"doxygen",installCmd:{win32:"choco install doxygen.install",darwin:"brew install doxygen",linux:"sudo apt-get install -y doxygen"},universal:!1,condition:e=>S(e,"cpp","c")},{category:"security_analysis",tool:"cppcheck",installCmd:{win32:"choco install cppcheck",darwin:"brew install cppcheck",linux:"sudo apt-get install -y cppcheck"},universal:!1,condition:e=>S(e,"cpp","c")},{category:"unit_testing",tool:"phpunit",installCmd:I("composer require --dev phpunit/phpunit"),universal:!1,condition:e=>S(e,"php")},{category:"linting",tool:"phpstan",installCmd:I("composer require --dev phpstan/phpstan"),universal:!1,condition:e=>S(e,"php")},{category:"formatting",tool:"php-cs-fixer",installCmd:I("composer require --dev friendsofphp/php-cs-fixer"),universal:!1,condition:e=>S(e,"php")},{category:"documentation",tool:"phpdoc",installCmd:I("composer require --dev phpdocumentor/phpdocumentor"),universal:!1,condition:e=>S(e,"php")},{category:"security_analysis",tool:"psalm",installCmd:I("composer require --dev vimeo/psalm"),universal:!1,condition:e=>S(e,"php")},{category:"unit_testing",tool:"rspec",installCmd:I("gem install rspec && rspec --init"),universal:!1,condition:e=>S(e,"ruby")},{category:"linting",tool:"rubocop",installCmd:I("gem install rubocop"),universal:!1,condition:e=>S(e,"ruby")},{category:"formatting",tool:"rubocop",installCmd:I("gem install rubocop"),universal:!1,condition:e=>S(e,"ruby")},{category:"coverage",tool:"simplecov",installCmd:I("gem install simplecov"),universal:!1,condition:e=>S(e,"ruby")},{category:"documentation",tool:"yard",installCmd:I("gem install yard"),universal:!1,condition:e=>S(e,"ruby")},{category:"security_analysis",tool:"brakeman",installCmd:I("gem install brakeman"),universal:!1,condition:e=>S(e,"ruby")},{category:"linting",tool:"swiftlint",installCmd:{win32:"echo SwiftLint \u2014 not available on Windows",darwin:"brew install swiftlint",linux:"echo SwiftLint \u2014 install from GitHub releases"},universal:!1,condition:e=>S(e,"swift")},{category:"formatting",tool:"swiftformat",installCmd:{win32:"echo SwiftFormat \u2014 not available on Windows",darwin:"brew install swiftformat",linux:"echo SwiftFormat \u2014 install from GitHub releases"},universal:!1,condition:e=>S(e,"swift")},{category:"linting",tool:"clippy",installCmd:I("rustup component add clippy"),universal:!1,condition:e=>S(e,"rust")},{category:"formatting",tool:"rustfmt",installCmd:I("rustup component add rustfmt"),universal:!1,condition:e=>S(e,"rust")},{category:"coverage",tool:"tarpaulin",installCmd:I("cargo install cargo-tarpaulin"),universal:!1,condition:e=>S(e,"rust")},{category:"security_analysis",tool:"cargo-audit",installCmd:I("cargo install cargo-audit"),universal:!1,condition:e=>S(e,"rust")},{category:"unit_testing",tool:"flutter-test",installCmd:I("echo flutter test \u2014 built-in with Flutter SDK"),universal:!1,condition:e=>Wn(e,"flutter")},{category:"linting",tool:"flutter-lints",installCmd:I("dart pub add --dev flutter_lints"),universal:!1,condition:e=>Wn(e,"flutter")},{category:"documentation",tool:"dartdoc",installCmd:I("dart pub global activate dartdoc"),universal:!1,condition:e=>S(e,"dart")},{category:"linting",tool:"credo",installCmd:I('echo Credo \u2014 add {:credo, "~> 1.7"} to mix.exs'),universal:!1,condition:e=>S(e,"elixir")},{category:"type_checking",tool:"dialyxir",installCmd:I('echo Dialyxir \u2014 add {:dialyxir, "~> 1.4"} to mix.exs'),universal:!1,condition:e=>S(e,"elixir")},{category:"coverage",tool:"excoveralls",installCmd:I('echo ExCoveralls \u2014 add {:excoveralls, "~> 0.18"} to mix.exs'),universal:!1,condition:e=>S(e,"elixir")},{category:"documentation",tool:"ex-doc",installCmd:I('echo ExDoc \u2014 add {:ex_doc, "~> 0.34"} to mix.exs'),universal:!1,condition:e=>S(e,"elixir")},{category:"unit_testing",tool:"scalatest",installCmd:I("echo ScalaTest \u2014 add to build.sbt"),universal:!1,condition:e=>S(e,"scala")},{category:"linting",tool:"scalafix",installCmd:I("echo Scalafix \u2014 add sbt plugin"),universal:!1,condition:e=>S(e,"scala")},{category:"formatting",tool:"scalafmt",installCmd:I("echo Scalafmt \u2014 add sbt plugin"),universal:!1,condition:e=>S(e,"scala")},{category:"coverage",tool:"scoverage",installCmd:I("echo Scoverage \u2014 add sbt plugin"),universal:!1,condition:e=>S(e,"scala")},{category:"unit_testing",tool:"testthat",installCmd:I(`Rscript -e 'install.packages("testthat")'`),universal:!1,condition:e=>S(e,"r")},{category:"linting",tool:"lintr",installCmd:I(`Rscript -e 'install.packages("lintr")'`),universal:!1,condition:e=>S(e,"r")},{category:"formatting",tool:"styler",installCmd:I(`Rscript -e 'install.packages("styler")'`),universal:!1,condition:e=>S(e,"r")},{category:"coverage",tool:"covr",installCmd:I(`Rscript -e 'install.packages("covr")'`),universal:!1,condition:e=>S(e,"r")},{category:"documentation",tool:"roxygen2",installCmd:I(`Rscript -e 'install.packages("roxygen2")'`),universal:!1,condition:e=>S(e,"r")},{category:"unit_testing",tool:"hspec",installCmd:I("cabal install hspec"),universal:!1,condition:e=>S(e,"haskell")},{category:"linting",tool:"hlint",installCmd:I("cabal install hlint"),universal:!1,condition:e=>S(e,"haskell")},{category:"formatting",tool:"ormolu",installCmd:I("cabal install ormolu"),universal:!1,condition:e=>S(e,"haskell")},{category:"linting",tool:"perlcritic",installCmd:I("cpanm Perl::Critic"),universal:!1,condition:e=>S(e,"perl")},{category:"formatting",tool:"perltidy",installCmd:I("cpanm Perl::Tidy"),universal:!1,condition:e=>S(e,"perl")},{category:"linting",tool:"clj-kondo",installCmd:{win32:"echo clj-kondo \u2014 download from GitHub releases",darwin:"brew install borkdude/brew/clj-kondo",linux:"echo clj-kondo \u2014 download from GitHub releases"},universal:!1,condition:e=>S(e,"clojure")},{category:"formatting",tool:"cljfmt",installCmd:I("echo cljfmt \u2014 add to deps.edn"),universal:!1,condition:e=>S(e,"clojure")},{category:"formatting",tool:"juliaformatter",installCmd:I(`julia -e 'using Pkg; Pkg.add("JuliaFormatter")'`),universal:!1,condition:e=>S(e,"julia")},{category:"documentation",tool:"documenter",installCmd:I(`julia -e 'using Pkg; Pkg.add("Documenter")'`),universal:!1,condition:e=>S(e,"julia")},{category:"unit_testing",tool:"busted",installCmd:I("luarocks install busted"),universal:!1,condition:e=>S(e,"lua")},{category:"linting",tool:"luacheck",installCmd:I("luarocks install luacheck"),universal:!1,condition:e=>S(e,"lua")},{category:"formatting",tool:"stylua",installCmd:{win32:"cargo install stylua",darwin:"brew install stylua",linux:"cargo install stylua"},universal:!1,condition:e=>S(e,"lua")},{category:"unit_testing",tool:"forge-test",installCmd:{win32:"echo Foundry \u2014 install from https://getfoundry.sh",darwin:"curl -L https://foundry.paradigm.xyz | bash && foundryup",linux:"curl -L https://foundry.paradigm.xyz | bash && foundryup"},universal:!1,condition:e=>S(e,"solidity")},{category:"linting",tool:"solhint",installCmd:I("npm i -g solhint@latest"),universal:!1,condition:e=>S(e,"solidity")},{category:"formatting",tool:"prettier-solidity",installCmd:I("npm i -D prettier@latest prettier-plugin-solidity@latest"),universal:!1,condition:e=>S(e,"solidity")},{category:"security_analysis",tool:"slither",installCmd:I("pip install --upgrade slither-analyzer"),universal:!1,condition:e=>S(e,"solidity")},{category:"e2e_testing",tool:"detox",installCmd:I("npm i -D detox@latest"),universal:!1,condition:e=>Wn(e,"react-native","expo")},{category:"linting",tool:"detekt",installCmd:I("echo detekt \u2014 add Gradle plugin"),universal:!1,condition:e=>Wn(e,"jetpack-compose","kotlin-multiplatform")},{category:"linting",tool:"swiftlint",installCmd:{win32:"echo SwiftLint \u2014 not available on Windows",darwin:"brew install swiftlint",linux:"echo SwiftLint \u2014 install from GitHub releases"},universal:!1,condition:e=>Wn(e,"swiftui","uikit")},{category:"e2e_testing",tool:"cypress",installCmd:I("npm i -D cypress@latest"),universal:!1,condition:e=>Wn(e,"ionic","capacitor")},{category:"unit_testing",tool:"xunit",installCmd:I("dotnet add package xunit xunit.runner.visualstudio"),universal:!1,condition:e=>Wn(e,"maui")},{category:"linting",tool:"gdlint",installCmd:I("pip install --upgrade gdtoolkit"),universal:!1,condition:e=>S(e,"gdscript")},{category:"formatting",tool:"gdformat",installCmd:I("pip install --upgrade gdtoolkit"),universal:!1,condition:e=>S(e,"gdscript")},{category:"unit_testing",tool:"xunit",installCmd:I("dotnet add package xunit xunit.runner.visualstudio"),universal:!1,condition:e=>S(e,"fsharp")},{category:"formatting",tool:"fantomas",installCmd:I("dotnet tool install -g fantomas"),universal:!1,condition:e=>S(e,"fsharp")},{category:"unit_testing",tool:"alcotest",installCmd:I("opam install alcotest"),universal:!1,condition:e=>S(e,"ocaml")},{category:"formatting",tool:"ocamlformat",installCmd:I("opam install ocamlformat"),universal:!1,condition:e=>S(e,"ocaml")},{category:"linting",tool:"elvis",installCmd:I("echo elvis \u2014 add as rebar3 plugin"),universal:!1,condition:e=>S(e,"erlang")},{category:"linting",tool:"ameba",installCmd:I("echo Ameba \u2014 add to shard.yml"),universal:!1,condition:e=>S(e,"crystal")},{category:"linting",tool:"codenarc",installCmd:I("echo CodeNarc \u2014 add Gradle plugin"),universal:!1,condition:e=>S(e,"groovy")},{category:"linting",tool:"oclint",installCmd:{win32:"echo OCLint \u2014 not available on Windows",darwin:"brew install oclint",linux:"echo OCLint \u2014 install from GitHub releases"},universal:!1,condition:e=>S(e,"objective-c")},{category:"formatting",tool:"clang-format",installCmd:{win32:"choco install llvm",darwin:"brew install clang-format",linux:"sudo apt-get install -y clang-format"},universal:!1,condition:e=>S(e,"objective-c")},{category:"unit_testing",tool:"mstest",installCmd:I("dotnet add package MSTest.TestFramework MSTest.TestAdapter"),universal:!1,condition:e=>S(e,"visual-basic")},{category:"unit_testing",tool:"pester",installCmd:I("Install-Module -Name Pester -Force -SkipPublisherCheck"),universal:!1,condition:e=>S(e,"powershell")},{category:"linting",tool:"psscriptanalyzer",installCmd:I("Install-Module -Name PSScriptAnalyzer -Force"),universal:!1,condition:e=>S(e,"powershell")}];function gT(e){let t=new Set,r=[];for(let i of u2)t.has(i.category)||i.condition(e)&&(r.push(i),t.add(i.category));return r}var Me=require("node:fs"),Jt=require("node:path");var Hb="<!-- GoDD:start -->",Np="<!-- GoDD:end -->";function d2(e){let t=(0,Jt.resolve)(e,".godd","state","current-phase.json");if(!(0,Me.existsSync)(t))return null;try{let r=JSON.parse((0,Me.readFileSync)(t,"utf-8")),i=["","### NES Context (Next Edit Suggestions)",""];return r.phase&&i.push(`- **Current phase**: ${r.phase} (${r.status??"unknown"})`),r.workflow_context&&i.push(`- **Context**: ${r.workflow_context}`),Array.isArray(r.next_likely_files)&&r.next_likely_files.length>0&&i.push(`- **Next likely files**: ${r.next_likely_files.join(", ")}`),i.join(`
191
+ `)}catch{return null}}function f2(e,t){let r=["### GoDD stack snapshot","",`Auto-detected from this repository (updated when \`${V.toolPrefix}config\` or \`${V.cli} init\` runs):`,""];for(let[n,o]of Object.entries(e))Array.isArray(o)&&o.length>0&&r.push(`- **${n}**: ${o.join(", ")}`);let i=d2(t);return i&&r.push(i),r.push("",`_Generated by ${V.displayName} MCP \u2014 keep this block for drift detection._`),r.join(`
192
+ `)}function Io(e,t){let r=(0,Jt.resolve)(e,"AGENTS.md"),i=f2(t,e),n=`${Hb}
193
193
  ${i}
194
194
  ${Np}
195
- `,o=(0,Me.existsSync)(r)?(0,Me.readFileSync)(r,"utf-8"):"";if(o.includes(Jb)&&o.includes(Np)){let a=o.indexOf(Jb),c=o.indexOf(Np)+Np.length;(0,Me.writeFileSync)(r,o.slice(0,a)+n+o.slice(c),"utf-8");return}let s=o.trim().length>0?`${o.trimEnd()}
195
+ `,o=(0,Me.existsSync)(r)?(0,Me.readFileSync)(r,"utf-8"):"";if(o.includes(Hb)&&o.includes(Np)){let a=o.indexOf(Hb),c=o.indexOf(Np)+Np.length;(0,Me.writeFileSync)(r,o.slice(0,a)+n+o.slice(c),"utf-8");return}let s=o.trim().length>0?`${o.trimEnd()}
196
196
 
197
197
  `:`# AGENTS.md
198
198
 
199
199
  `;(0,Me.writeFileSync)(r,`${s}${n}
200
200
  `,"utf-8")}function zo(e,t,r="ja"){let i=Object.entries(t),n=i.flatMap(([,l])=>l);if(n.length===0)return;let o=r==="ja"?"\u65E5\u672C\u8A9E":r==="ru"?"\u0420\u0443\u0441\u0441\u043A\u0438\u0439":"English",s=i.filter(([,l])=>l.length>0).map(([l,u])=>`- **${l}**: ${u.join(", ")}`).join(`
201
201
  `),a=n.map(l=>`\`${l}\``).join(", "),c=["---","description: GoDD auto-detected project stack context (token-optimized)",'globs: "**/*"',"alwaysApply: true","---","","# GoDD Project Stack Context","",`> Auto-generated by \`${V.toolPrefix}config\` / \`${V.toolPrefix}init\`. Re-run to update.`,"","## Detected Stack","",s,"","## Applicable Mindsets","",`When resolving GoDD prompts, prioritize mindsets for: ${a}`,"","## Token Optimization Hints","",`- **Language**: ${o}`,"- Only request mindsets matching the detected stack above","- Skip irrelevant technology mindsets to preserve context window",`- Detected stack has ${n.length} technology entries \u2014 load only matching mindsets`,""].join(`
202
- `);try{let l=(0,Jt.resolve)(e,".cursor","rules","godd-stack.mdc");(0,Me.mkdirSync)((0,Jt.dirname)(l),{recursive:!0}),(0,Me.writeFileSync)(l,c,"utf-8")}catch{}}function uc(e,t="documents"){let r=(0,Jt.resolve)(e,"GoDD-MCP-alpha.md"),n=["# GoDD MCP \u03B1 \u2014 Project Configuration","",`> Auto-generated by GoDD MCP \u03B1 on ${new Date().toISOString().slice(0,10)}.`,"> Re-run `godd config` or `godd init` to regenerate.","","## Managed Files","","GoDD MCP \u03B1 creates and maintains the following files in this project:","","| File | Role | Overwrite policy |","|------|------|-----------------|","| `config.godd` | Main configuration \u2014 stack, language, tools, godd_files | Updated on `config` / `init` |","| `AGENTS.md` (GoDD block) | Auto-updated stack snapshot for Cursor context | Marker-scoped update |","| `.cursor/rules/godd-stack.mdc` | Token-optimized stack context injected into AI | Overwritten on each run |","| `.gitattributes` | LF normalization + binary file overrides | Created once (skip if exists) |","| `.github/dependabot.yml` | Dependency update automation | Created once (skip if exists) |","| `GoDD-MCP-alpha.md` | This file \u2014 project configuration record | Always regenerated |","","## Project Settings (`godd_files`)","","| Setting | Value | Description |","|---------|-------|-------------|",`| \`docs_dir\` | \`${t}\` | Directory where GoDD writes specs, ADRs, and diagrams |`,"| `generate_gitattributes` | see `config.godd` | Auto-create `.gitattributes` on init if missing |","| `generate_dependabot` | see `config.godd` | Auto-create `.github/dependabot.yml` on init if missing |","","## Docs Directory Structure","",`GoDD writes documentation into \`${t}/\`:`,"","| Path | Contents |","|------|----------|",`| \`${t}/spec/\` | Specification documents (SpecDD) |`,`| \`${t}/adr/\` | Architecture Decision Records (ADR) |`,`| \`${t}/diagrams/\` | System diagrams (Neo-MDD) |`,"","## GoDD Standard Policies","","| Policy | Setting |","|--------|---------|","| Dependabot PR limit | `open-pull-requests-limit: 99` \u2014 no update goes unnoticed |","| Security audit | `pnpm audit` (no flags) \u2014 fail on any severity including `low` |","| Line endings | LF on commit, checkout as-is on Windows (via `.gitattributes`) |","| Dependabot auto-merge | Patch/minor: auto. Major: labeled `major-update`, then auto if CI passes |","","## Editing This File","","Do **not** edit this file manually. It is regenerated each time you run:","","```bash","godd-a config # via Cursor MCP tool","godd-a init # CLI initialization","```","","To change `docs_dir` or other `godd_files` settings, update `config.godd` and re-run `godd config`."].join(`
202
+ `);try{let l=(0,Jt.resolve)(e,".cursor","rules","godd-stack.mdc");(0,Me.mkdirSync)((0,Jt.dirname)(l),{recursive:!0}),(0,Me.writeFileSync)(l,c,"utf-8")}catch{}}function dc(e,t="documents"){let r=(0,Jt.resolve)(e,"GoDD-MCP-alpha.md"),n=["# GoDD MCP \u03B1 \u2014 Project Configuration","",`> Auto-generated by GoDD MCP \u03B1 on ${new Date().toISOString().slice(0,10)}.`,"> Re-run `godd config` or `godd init` to regenerate.","","## Managed Files","","GoDD MCP \u03B1 creates and maintains the following files in this project:","","| File | Role | Overwrite policy |","|------|------|-----------------|","| `config.godd` | Main configuration \u2014 stack, language, tools, godd_files | Updated on `config` / `init` |","| `AGENTS.md` (GoDD block) | Auto-updated stack snapshot for Cursor context | Marker-scoped update |","| `.cursor/rules/godd-stack.mdc` | Token-optimized stack context injected into AI | Overwritten on each run |","| `.gitattributes` | LF normalization + binary file overrides | Created once (skip if exists) |","| `.github/dependabot.yml` | Dependency update automation | Created once (skip if exists) |","| `GoDD-MCP-alpha.md` | This file \u2014 project configuration record | Always regenerated |","","## Project Settings (`godd_files`)","","| Setting | Value | Description |","|---------|-------|-------------|",`| \`docs_dir\` | \`${t}\` | Directory where GoDD writes specs, ADRs, and diagrams |`,"| `generate_gitattributes` | see `config.godd` | Auto-create `.gitattributes` on init if missing |","| `generate_dependabot` | see `config.godd` | Auto-create `.github/dependabot.yml` on init if missing |","","## Docs Directory Structure","",`GoDD writes documentation into \`${t}/\`:`,"","| Path | Contents |","|------|----------|",`| \`${t}/spec/\` | Specification documents (SpecDD) |`,`| \`${t}/adr/\` | Architecture Decision Records (ADR) |`,`| \`${t}/diagrams/\` | System diagrams (Neo-MDD) |`,"","## GoDD Standard Policies","","| Policy | Setting |","|--------|---------|","| Dependabot PR limit | `open-pull-requests-limit: 99` \u2014 no update goes unnoticed |","| Security audit | `pnpm audit` (no flags) \u2014 fail on any severity including `low` |","| Line endings | LF on commit, checkout as-is on Windows (via `.gitattributes`) |","| Dependabot auto-merge | Patch/minor: auto. Major: labeled `major-update`, then auto if CI passes |","","## Editing This File","","Do **not** edit this file manually. It is regenerated each time you run:","","```bash","godd-a config # via Cursor MCP tool","godd-a init # CLI initialization","```","","To change `docs_dir` or other `godd_files` settings, update `config.godd` and re-run `godd config`."].join(`
203
203
  `)+`
204
- `;try{(0,Me.writeFileSync)(r,n,"utf-8")}catch{}}function dc(e){let t=(0,Jt.resolve)(e,".gitattributes");if((0,Me.existsSync)(t))return;let r=["# Normalize line endings to LF on commit, checkout as-is on Windows","* text=auto eol=lf","","# Binary files \u2014 no line ending conversion","*.png binary","*.jpg binary","*.jpeg binary","*.gif binary","*.webp binary","*.ico binary","*.pptx binary","*.pdf binary","*.zip binary","*.pen binary"].join(`
204
+ `;try{(0,Me.writeFileSync)(r,n,"utf-8")}catch{}}function fc(e){let t=(0,Jt.resolve)(e,".gitattributes");if((0,Me.existsSync)(t))return;let r=["# Normalize line endings to LF on commit, checkout as-is on Windows","* text=auto eol=lf","","# Binary files \u2014 no line ending conversion","*.png binary","*.jpg binary","*.jpeg binary","*.gif binary","*.webp binary","*.ico binary","*.pptx binary","*.pdf binary","*.zip binary","*.pen binary"].join(`
205
205
  `)+`
206
- `;try{(0,Me.writeFileSync)(t,r,"utf-8")}catch{}}function fc(e){let t=(0,Jt.resolve)(e,".github","dependabot.yml");if((0,Me.existsSync)(t))return;(0,Me.mkdirSync)((0,Jt.join)(e,".github"),{recursive:!0});let r=["version: 2","updates:"," # npm / pnpm",' - package-ecosystem: "npm"',' directory: "/"'," schedule:",' interval: "daily"',' versioning-strategy: "increase"'," open-pull-requests-limit: 99"," labels:",' - "dependencies"'," groups:"," dev-dependencies:",' dependency-type: "development"'," update-types:",' - "minor"',' - "patch"'," production-dependencies:",' dependency-type: "production"'," update-types:",' - "patch"',""," # GitHub Actions",' - package-ecosystem: "github-actions"',' directory: "/"'," schedule:",' interval: "weekly"',' day: "monday"'," open-pull-requests-limit: 99"," labels:",' - "dependencies"'].join(`
206
+ `;try{(0,Me.writeFileSync)(t,r,"utf-8")}catch{}}function pc(e){let t=(0,Jt.resolve)(e,".github","dependabot.yml");if((0,Me.existsSync)(t))return;(0,Me.mkdirSync)((0,Jt.join)(e,".github"),{recursive:!0});let r=["version: 2","updates:"," # npm / pnpm",' - package-ecosystem: "npm"',' directory: "/"'," schedule:",' interval: "daily"',' versioning-strategy: "increase"'," open-pull-requests-limit: 99"," labels:",' - "dependencies"'," groups:"," dev-dependencies:",' dependency-type: "development"'," update-types:",' - "minor"',' - "patch"'," production-dependencies:",' dependency-type: "production"'," update-types:",' - "patch"',""," # GitHub Actions",' - package-ecosystem: "github-actions"',' directory: "/"'," schedule:",' interval: "weekly"',' day: "monday"'," open-pull-requests-limit: 99"," labels:",' - "dependencies"'].join(`
207
207
  `)+`
208
- `;try{(0,Me.writeFileSync)(t,r,"utf-8")}catch{}}function f2(){return(0,yT.createInterface)({input:process.stdin,output:process.stdout})}function Cp(e,t){return new Promise(r=>{e.question(t,i=>r(i.trim()))})}async function Hb(e,t,r,i="Invalid choice. Enter a number."){console.log(`
208
+ `;try{(0,Me.writeFileSync)(t,r,"utf-8")}catch{}}function p2(){return(0,yT.createInterface)({input:process.stdin,output:process.stdout})}function Cp(e,t){return new Promise(r=>{e.question(t,i=>r(i.trim()))})}async function Wb(e,t,r,i="Invalid choice. Enter a number."){console.log(`
209
209
  ${t}`);for(let n=0;n<r.length;n++)console.log(` ${n+1}. ${r[n].label}`);for(;;){let n=await Cp(e," > "),o=parseInt(n,10)-1;if(o>=0&&o<r.length)return r[o].value;console.log(` ${i}`)}}async function ar(e,t,r,i){console.log(`
210
210
  ${t}`);for(let s=0;s<i.length;s++)console.log(` ${s+1}. ${i[s].label}`);console.log(` ${r}`);let n=await Cp(e," > ");if(!n)return[];let o=n.split(",").map(s=>parseInt(s.trim(),10)-1).filter(s=>s>=0&&s<i.length);return[...new Set(o.map(s=>i[s].value))]}async function Op(e,t,r){let n=(await Cp(e,`
211
- ${t} (${r.yes}/${r.no}) > `)).toLowerCase();return n==="y"||n==="yes"||n===r.yes.toLowerCase()}function p2(e){try{return JSON.parse((0,We.readFileSync)(e,"utf-8"))}catch{return null}}function pc(e){try{return(0,We.readFileSync)(e,"utf-8")}catch{return""}}function mc(e){try{return(0,We.readdirSync)(e)}catch{return[]}}function Le(e,t){return mc(e).some(r=>r.endsWith(t))}function pn(e,t){try{let r=(0,Ht.resolve)(e,t);return(0,We.existsSync)(r)&&(0,We.statSync)(r).isDirectory()}catch{return!1}}function m2(e){let t=a=>(0,We.existsSync)((0,Ht.resolve)(e,a)),r=a=>pc((0,Ht.resolve)(e,a)),i=a=>p2((0,Ht.resolve)(e,a)),n=t("package.json"),o=n?i("package.json"):null,s=n?{...o?.dependencies??{},...o?.devDependencies??{}}:{};return{projectDir:e,check:t,readText:r,readJson:i,pkgDeps:s,hasPackageJson:n}}function g2(e){let{check:t,readText:r,pkgDeps:i,hasPackageJson:n,projectDir:o}=e,s=[];if(t("tsconfig.json")||t("tsconfig.base.json")?s.push("typescript"):n&&s.push(i.typescript?"typescript":"javascript"),(t("pyproject.toml")||t("requirements.txt")||t("Pipfile"))&&s.push("python"),t("go.mod")&&s.push("go"),t("Cargo.toml")&&s.push("rust"),t("pom.xml")||t("build.gradle")||t("build.gradle.kts")){let a=t("build.gradle.kts"),c=a?"build.gradle.kts":t("build.gradle")?"build.gradle":null,l=c?r(c):"";s.push("java"),(a||l.includes("kotlin"))&&s.push("kotlin"),!a&&c&&l.includes("groovy")&&s.push("groovy")}if((Le(o,".sln")||Le(o,".csproj"))&&s.push("csharp"),Le(o,".fsproj")&&s.push("fsharp"),Le(o,".vbproj")&&s.push("visual-basic"),t("CMakeLists.txt")){let a=r("CMakeLists.txt");s.push(a.includes("CXX")||a.includes("cpp")||a.includes("c++")?"cpp":"c")}else Le(o,".vcxproj")&&s.push("cpp");return t("composer.json")&&s.push("php"),(t("Gemfile")||t("Rakefile"))&&s.push("ruby"),t("Package.swift")&&s.push("swift"),t("pubspec.yaml")&&s.push("dart"),t("build.sbt")&&s.push("scala"),t("mix.exs")&&s.push("elixir"),t("rebar.config")&&s.push("erlang"),(t("project.clj")||t("deps.edn"))&&s.push("clojure"),t("Project.toml")&&s.push("julia"),(Le(o,".cabal")||t("stack.yaml"))&&s.push("haskell"),Le(o,".Rproj")&&s.push("r"),(t("cpanfile")||t("Makefile.PL"))&&s.push("perl"),t("build.zig")&&s.push("zig"),Le(o,".nimble")&&s.push("nim"),t("shard.yml")&&s.push("crystal"),(t("dune-project")||Le(o,".opam"))&&s.push("ocaml"),(t("dub.json")||t("dub.sdl"))&&s.push("d"),t("v.mod")&&s.push("v"),(t("hardhat.config.js")||t("hardhat.config.ts")||t("foundry.toml")||t("truffle-config.js"))&&s.push("solidity"),t("fpm.toml")&&s.push("fortran"),Le(o,".gpr")&&s.push("ada"),(Le(o,".dpr")||Le(o,".lpr"))&&s.push("pascal"),(pn(o,".xcodeproj")||pn(o,".xcworkspace"))&&!s.includes("swift")&&s.push("objective-c"),s}function h2(e){let{check:t,readText:r,pkgDeps:i,hasPackageJson:n,projectDir:o}=e,s=[];if(n&&((i.react||i["react-dom"])&&s.push("react"),i.next&&s.push("nextjs"),i.vue&&s.push("vue"),i.nuxt&&s.push("nuxt"),(i.svelte||i["@sveltejs/kit"])&&s.push("svelte"),i["@angular/core"]&&s.push("angular"),i["solid-js"]&&s.push("solid"),i.astro&&s.push("astro"),i["@remix-run/react"]&&s.push("remix"),i["@builder.io/qwik"]&&s.push("qwik"),i["ember-source"]&&s.push("ember"),i["htmx.org"]&&s.push("htmx"),i.alpinejs&&s.push("alpine"),i.vite&&s.push("vite"),i.electron&&s.push("electron")),t("pubspec.yaml")&&r("pubspec.yaml").includes("flutter")&&s.push("flutter"),Le(o,".csproj")){for(let a of mc(o).filter(c=>c.endsWith(".csproj")))if(pc((0,Ht.resolve)(o,a)).includes("Microsoft.AspNetCore.Components")){s.push("blazor");break}}return s}function y2(e){let{check:t,readText:r,readJson:i,pkgDeps:n,hasPackageJson:o,projectDir:s}=e,a=[],c=[],l=[];o&&(n.express&&a.push("express"),n.fastify&&a.push("fastify"),n.hono&&a.push("hono"),n["@nestjs/core"]&&a.push("nestjs"),(n.prisma||n["@prisma/client"])&&c.push("prisma"),n["drizzle-orm"]&&c.push("drizzle"),n.typeorm&&c.push("typeorm"),n.sequelize&&c.push("sequelize"),n.hardhat&&l.push("hardhat"));let u=t("pyproject.toml")?r("pyproject.toml"):t("requirements.txt")?r("requirements.txt"):"";if(u&&(u.includes("fastapi")&&a.push("fastapi"),u.includes("django")&&a.push("django"),u.includes("flask")&&a.push("flask"),(u.includes("sqlalchemy")||u.includes("SQLAlchemy"))&&c.push("sqlalchemy"),u.includes("tortoise")&&c.push("tortoise-orm"),u.includes("peewee")&&c.push("peewee")),t("composer.json")){let d=i("composer.json"),f={...d?.require??{},...d?.["require-dev"]??{}};f["laravel/framework"]&&a.push("laravel"),f["symfony/framework-bundle"]&&a.push("symfony"),f["slim/slim"]&&a.push("slim"),f["cakephp/cakephp"]&&a.push("cakephp"),f["codeigniter4/framework"]&&a.push("codeigniter"),f["doctrine/orm"]&&c.push("doctrine")}if(t("Gemfile")){let d=r("Gemfile");d.includes("rails")&&a.push("rails"),d.includes("sinatra")&&a.push("sinatra"),d.includes("hanami")&&a.push("hanami"),d.includes("activerecord")&&c.push("activerecord")}if(t("pom.xml")){let d=r("pom.xml");d.includes("spring-boot")&&a.push("spring-boot"),d.includes("quarkus")&&a.push("quarkus"),d.includes("micronaut")&&a.push("micronaut"),d.includes("hibernate")&&c.push("hibernate"),d.includes("mybatis")&&c.push("mybatis")}if(t("build.gradle")||t("build.gradle.kts")){let d=t("build.gradle.kts")?"build.gradle.kts":"build.gradle",f=r(d);f.includes("spring-boot")&&a.push("spring-boot"),f.includes("quarkus")&&a.push("quarkus"),f.includes("ktor")&&a.push("ktor"),f.includes("micronaut")&&a.push("micronaut"),f.includes("hibernate")&&c.push("hibernate"),f.includes("exposed")&&c.push("exposed")}if(Le(s,".csproj"))for(let d of mc(s).filter(f=>f.endsWith(".csproj"))){let f=pc((0,Ht.resolve)(s,d));f.includes("Microsoft.AspNetCore")&&a.push("aspnet"),f.includes("Microsoft.EntityFrameworkCore")&&c.push("entity-framework")}if(t("go.mod")){let d=r("go.mod");d.includes("gin-gonic")&&a.push("gin"),d.includes("labstack/echo")&&a.push("echo"),d.includes("gofiber/fiber")&&a.push("fiber"),d.includes("go-chi/chi")&&a.push("chi"),d.includes("gorm.io")&&c.push("gorm"),d.includes("entgo.io/ent")&&c.push("ent")}if(t("Cargo.toml")){let d=r("Cargo.toml");d.includes("actix-web")&&a.push("actix-web"),d.includes("axum")&&a.push("axum"),d.includes("rocket")&&a.push("rocket"),d.includes("diesel")&&c.push("diesel"),d.includes("sea-orm")&&c.push("sea-orm")}if(t("mix.exs")){let d=r("mix.exs");d.includes("phoenix")&&a.push("phoenix"),d.includes("ecto")&&c.push("ecto")}if(t("build.sbt")){let d=r("build.sbt");d.includes("play")&&a.push("play"),d.includes("akka-http")&&a.push("akka-http")}if(t("Package.swift")&&r("Package.swift").includes("vapor")&&a.push("vapor"),Le(s,".cabal")||t("stack.yaml")){let d=mc(s).filter(p=>p.endsWith(".cabal")),f=d.length>0?pc((0,Ht.resolve)(s,d[0])):"";f.includes("servant")&&a.push("servant"),f.includes("yesod")&&a.push("yesod")}if(t("cpanfile")){let d=r("cpanfile");d.includes("Mojolicious")&&a.push("mojolicious"),d.includes("Dancer")&&a.push("dancer")}if(t("project.clj")||t("deps.edn")){let d=t("deps.edn")?r("deps.edn"):r("project.clj");d.includes("ring")&&a.push("ring"),d.includes("pedestal")&&a.push("pedestal")}return{backends:a,orms:c,other:l}}function v2(e){let{check:t,readText:r}=e,i=[];if(t("docker-compose.yml")||t("docker-compose.yaml")){let n=r(t("docker-compose.yml")?"docker-compose.yml":"docker-compose.yaml");n.includes("postgres")&&i.push("postgresql"),(n.includes("mysql")||n.includes("mariadb"))&&i.push("mysql"),n.includes("mongo")&&i.push("mongodb"),n.includes("redis")&&i.push("redis"),n.includes("cassandra")&&i.push("cassandra"),n.includes("neo4j")&&i.push("neo4j"),n.includes("elasticsearch")&&i.push("elasticsearch")}return i}function _2(e){let{check:t,projectDir:r}=e,i=[];return(t("Dockerfile")||t("docker-compose.yml")||t("docker-compose.yaml"))&&i.push("docker"),(t("terraform")||t("main.tf"))&&i.push("terraform"),(t("vercel.json")||t(".vercel"))&&i.push("vercel"),(t("railway.json")||t("railway.toml"))&&i.push("railway"),t(".github/workflows")&&i.push("github-actions"),(t("netlify.toml")||t(".netlify"))&&i.push("netlify"),t("fly.toml")&&i.push("fly-io"),t("render.yaml")&&i.push("render"),(t("Procfile")||t("app.json"))&&i.push("heroku"),(t("ansible.cfg")||pn(r,"playbooks"))&&i.push("ansible"),t("Pulumi.yaml")&&i.push("pulumi"),(pn(r,"k8s")||pn(r,"kubernetes")||t("skaffold.yaml"))&&i.push("kubernetes"),(t("wrangler.toml")||t("wrangler.jsonc"))&&i.push("cloudflare"),i}function b2(e){let{check:t,readText:r,pkgDeps:i,projectDir:n}=e,o=[],s=[];t("project.godot")&&(o.push("godot"),s.push("gdscript"),Le(n,".gdshader")&&s.push("gdshader")),i.phaser&&o.push("phaser"),t("ProjectSettings/ProjectVersion.txt")&&o.push("unity"),Le(n,".uproject")&&o.push("unreal"),t("Cargo.toml")&&r("Cargo.toml").includes("bevy")&&o.push("bevy"),t("main.lua")&&t("conf.lua")&&o.push("love2d"),pn(n,"game")&&t("game/script.rpy")&&o.push("renpy"),t("game.project")&&o.push("defold");let a=t("pyproject.toml")?r("pyproject.toml"):t("requirements.txt")?r("requirements.txt"):"";return a&&a.includes("pygame")&&o.push("pygame"),{engines:o,gameLangs:s}}function $2(e,t){let{check:r,readText:i,pkgDeps:n,hasPackageJson:o,projectDir:s}=e,a=[];if(o&&(n["react-native"]&&a.push("react-native"),(n.expo||n["expo-router"])&&a.push("expo"),(n["@ionic/react"]||n["@ionic/angular"]||n["@ionic/vue"])&&a.push("ionic"),n["@capacitor/core"]&&a.push("capacitor"),(n["nativescript-core"]||n["@nativescript/core"])&&a.push("nativescript")),r("pubspec.yaml")&&i("pubspec.yaml").includes("flutter")&&a.push("flutter"),(pn(s,".xcodeproj")||pn(s,".xcworkspace"))&&t.includes("swift")&&a.push("swiftui"),r("build.gradle.kts")||r("build.gradle")){let c=r("build.gradle.kts")?"build.gradle.kts":"build.gradle",l=i(c);(l.includes("compose")||l.includes("jetpack"))&&a.push("jetpack-compose"),(l.includes("multiplatform")||l.includes("KotlinMultiplatform"))&&a.push("kotlin-multiplatform")}if(Le(s,".csproj"))for(let c of mc(s).filter(l=>l.endsWith(".csproj"))){let l=pc((0,Ht.resolve)(s,c));if(l.includes("Microsoft.Maui")||l.includes("Maui")){a.push("maui");break}}return a}function k2(e){for(let t of Object.keys(e))e[t]=[...new Set(e[t])];return e}function S2(e){let t=g2(e),r=h2(e),{backends:i,orms:n,other:o}=y2(e),s=v2(e),a=_2(e),{engines:c,gameLangs:l}=b2(e),u=$2(e,t);return t.push(...l),k2({programming_languages:t,frontend:r,backend:i,database:s,orm:n,infra:a,game:c,mobile:u,other:o})}function Po(e){return S2(m2(e))}function x2(e){return e.programming_languages.length===0&&e.frontend.length===0&&e.backend.length===0&&e.database.length===0&&e.orm.length===0&&e.infra.length===0&&e.game.length===0&&e.mobile.length===0}var w2=[...$p],I2=[...kp],z2=[...Sp],P2=[...xp],T2=[...wp],E2=[...Ip],N2=[...Pp],O2=[...zp],j2=["web","api","mobile","game","cli","desktop"];function C2(e){let t=new Set(e);return{frontend:t.has("web")||t.has("desktop"),backend:t.has("web")||t.has("api"),database:t.has("web")||t.has("api")||t.has("mobile"),orm:t.has("web")||t.has("api")||t.has("mobile"),game:t.has("game"),mobile:t.has("mobile")}}async function hT(e,t){let r=m=>m.map(h=>({value:h,label:h})),i=t.selectSubLanguagesHint,n=j2.map(m=>({value:m,label:t.projectTypes[m]??m})),o=await ar(e,t.selectProjectType,i,n),s=C2(o),a=await ar(e,t.selectProgrammingLanguages,i,r(w2)),c=[],l=[],u=[],d=[],f=[],p=[];if(s.frontend){let m=wo(I2,"frontend",a);c=await ar(e,t.selectFrontend,i,r(m))}if(s.backend){let m=wo(z2,"backend",a);l=await ar(e,t.selectBackend,i,r(m))}if(s.database&&(u=await ar(e,t.selectDatabase,i,r(P2))),s.orm){let m=wo(T2,"orm",a);d=await ar(e,t.selectOrm,i,r(m))}let g=await ar(e,t.selectInfra,i,r(E2));if(s.game){let m=wo(N2,"game",a);f=await ar(e,t.selectGame,i,r(m))}if(s.mobile){let m=wo(O2,"mobile",a);p=await ar(e,t.selectMobile,i,r(m))}return{programming_languages:a,frontend:c,backend:l,database:u,orm:d,infra:g,game:f,mobile:p,other:[]}}function D2(e,t){let r=(i,n)=>{n.length>0&&console.log(` ${i}: ${n.join(", ")}`)};r(t.languages,e.programming_languages),r(t.frontend,e.frontend),r(t.backend,e.backend),r(t.database,e.database),r(t.orm,e.orm),r(t.infra,e.infra),r(t.game,e.game),r(t.mobile,e.mobile)}function A2(e){let t=process.platform;return e.installCmd[t]??e.installCmd.linux}function R2(e){try{return(0,jp.execSync)(A2(e),{stdio:"inherit",timeout:12e4}),!0}catch{return!1}}function M2(e){try{return(0,jp.execSync)("git remote get-url origin",{cwd:e,encoding:"utf-8",timeout:1e4,stdio:["pipe","pipe","pipe"]}).trim().includes("github.com")}catch{return!1}}function L2(e){try{return(0,jp.execSync)("gh repo edit --delete-branch-on-merge",{cwd:e,stdio:"inherit",timeout:3e4}),!0}catch{return!1}}function vT(e){let t=n=>n.length===0?"[]":`[${n.join(", ")}]`,r=[`display_language: ${e.display_language}`,`main_language: ${e.main_language}`,`sub_languages: ${t(e.sub_languages)}`,`programming_languages: ${t(e.stack.programming_languages)}`,`frontend: ${t(e.stack.frontend)}`,`backend: ${t(e.stack.backend)}`,`database: ${t(e.stack.database)}`,`orm: ${t(e.stack.orm)}`,`infra: ${t(e.stack.infra)}`,`game: ${t(e.stack.game)}`,`mobile: ${t(e.stack.mobile)}`,`other: ${t(e.stack.other)}`],i=Object.entries(e.tools).filter(([,n])=>n);if(i.length>0){r.push("tools:");for(let[n,o]of i)r.push(` ${n}: ${o}`)}return r.push("godd_files:"),r.push(` docs_dir: ${e.godd_files.docs_dir}`),r.push(` generate_gitattributes: ${e.godd_files.generate_gitattributes}`),r.push(` generate_dependabot: ${e.godd_files.generate_dependabot}`),r.push(""),r.join(`
212
- `)}async function _T(e=process.cwd(),t={}){let r=(0,Ht.resolve)(e,V.configFile);if((0,We.existsSync)(r)&&!t.force)return{configPath:r,status:"already_exists",config:{display_language:"en",main_language:"en",sub_languages:[],stack:Po(e),tools:{},godd_files:{docs_dir:"documents",generate_gitattributes:!0,generate_dependabot:!0}}};let i=f2(),n=xo(t.language);try{let o=cc.map(W=>({value:W,label:Bb[W]})),s=De("en"),a=n??await Hb(i,s.selectDisplayLanguage,o,s.invalidChoice),c=De(a),l=n??await Hb(i,c.selectMainLanguage,o,c.invalidChoice),u=cc.filter(W=>W!==l).map(W=>({value:W,label:Bb[W]})),d=await ar(i,c.selectSubLanguages,c.selectSubLanguagesHint,u);console.log(`
213
- ${c.scanningProject}`);let f=Po(e);x2(f)?(console.log(` ${c.manualStackEntry}`),f=await hT(i,c)):(console.log(`
214
- ${c.detectedStack}`),D2(f,c),await Op(i,c.confirmStack,c)||(f=await hT(i,c)));let p=gT(f),g={},m=p.filter(W=>W.universal),h=p.filter(W=>!W.universal);if(p.length>0){if(console.log(`
211
+ ${t} (${r.yes}/${r.no}) > `)).toLowerCase();return n==="y"||n==="yes"||n===r.yes.toLowerCase()}function m2(e){try{return JSON.parse((0,We.readFileSync)(e,"utf-8"))}catch{return null}}function mc(e){try{return(0,We.readFileSync)(e,"utf-8")}catch{return""}}function gc(e){try{return(0,We.readdirSync)(e)}catch{return[]}}function Le(e,t){return gc(e).some(r=>r.endsWith(t))}function pn(e,t){try{let r=(0,Ht.resolve)(e,t);return(0,We.existsSync)(r)&&(0,We.statSync)(r).isDirectory()}catch{return!1}}function g2(e){let t=a=>(0,We.existsSync)((0,Ht.resolve)(e,a)),r=a=>mc((0,Ht.resolve)(e,a)),i=a=>m2((0,Ht.resolve)(e,a)),n=t("package.json"),o=n?i("package.json"):null,s=n?{...o?.dependencies??{},...o?.devDependencies??{}}:{};return{projectDir:e,check:t,readText:r,readJson:i,pkgDeps:s,hasPackageJson:n}}function h2(e){let{check:t,readText:r,pkgDeps:i,hasPackageJson:n,projectDir:o}=e,s=[];if(t("tsconfig.json")||t("tsconfig.base.json")?s.push("typescript"):n&&s.push(i.typescript?"typescript":"javascript"),(t("pyproject.toml")||t("requirements.txt")||t("Pipfile"))&&s.push("python"),t("go.mod")&&s.push("go"),t("Cargo.toml")&&s.push("rust"),t("pom.xml")||t("build.gradle")||t("build.gradle.kts")){let a=t("build.gradle.kts"),c=a?"build.gradle.kts":t("build.gradle")?"build.gradle":null,l=c?r(c):"";s.push("java"),(a||l.includes("kotlin"))&&s.push("kotlin"),!a&&c&&l.includes("groovy")&&s.push("groovy")}if((Le(o,".sln")||Le(o,".csproj"))&&s.push("csharp"),Le(o,".fsproj")&&s.push("fsharp"),Le(o,".vbproj")&&s.push("visual-basic"),t("CMakeLists.txt")){let a=r("CMakeLists.txt");s.push(a.includes("CXX")||a.includes("cpp")||a.includes("c++")?"cpp":"c")}else Le(o,".vcxproj")&&s.push("cpp");return t("composer.json")&&s.push("php"),(t("Gemfile")||t("Rakefile"))&&s.push("ruby"),t("Package.swift")&&s.push("swift"),t("pubspec.yaml")&&s.push("dart"),t("build.sbt")&&s.push("scala"),t("mix.exs")&&s.push("elixir"),t("rebar.config")&&s.push("erlang"),(t("project.clj")||t("deps.edn"))&&s.push("clojure"),t("Project.toml")&&s.push("julia"),(Le(o,".cabal")||t("stack.yaml"))&&s.push("haskell"),Le(o,".Rproj")&&s.push("r"),(t("cpanfile")||t("Makefile.PL"))&&s.push("perl"),t("build.zig")&&s.push("zig"),Le(o,".nimble")&&s.push("nim"),t("shard.yml")&&s.push("crystal"),(t("dune-project")||Le(o,".opam"))&&s.push("ocaml"),(t("dub.json")||t("dub.sdl"))&&s.push("d"),t("v.mod")&&s.push("v"),(t("hardhat.config.js")||t("hardhat.config.ts")||t("foundry.toml")||t("truffle-config.js"))&&s.push("solidity"),t("fpm.toml")&&s.push("fortran"),Le(o,".gpr")&&s.push("ada"),(Le(o,".dpr")||Le(o,".lpr"))&&s.push("pascal"),(pn(o,".xcodeproj")||pn(o,".xcworkspace"))&&!s.includes("swift")&&s.push("objective-c"),s}function y2(e){let{check:t,readText:r,pkgDeps:i,hasPackageJson:n,projectDir:o}=e,s=[];if(n&&((i.react||i["react-dom"])&&s.push("react"),i.next&&s.push("nextjs"),i.vue&&s.push("vue"),i.nuxt&&s.push("nuxt"),(i.svelte||i["@sveltejs/kit"])&&s.push("svelte"),i["@angular/core"]&&s.push("angular"),i["solid-js"]&&s.push("solid"),i.astro&&s.push("astro"),i["@remix-run/react"]&&s.push("remix"),i["@builder.io/qwik"]&&s.push("qwik"),i["ember-source"]&&s.push("ember"),i["htmx.org"]&&s.push("htmx"),i.alpinejs&&s.push("alpine"),i.vite&&s.push("vite"),i.electron&&s.push("electron")),t("pubspec.yaml")&&r("pubspec.yaml").includes("flutter")&&s.push("flutter"),Le(o,".csproj")){for(let a of gc(o).filter(c=>c.endsWith(".csproj")))if(mc((0,Ht.resolve)(o,a)).includes("Microsoft.AspNetCore.Components")){s.push("blazor");break}}return s}function v2(e){let{check:t,readText:r,readJson:i,pkgDeps:n,hasPackageJson:o,projectDir:s}=e,a=[],c=[],l=[];o&&(n.express&&a.push("express"),n.fastify&&a.push("fastify"),n.hono&&a.push("hono"),n["@nestjs/core"]&&a.push("nestjs"),(n.prisma||n["@prisma/client"])&&c.push("prisma"),n["drizzle-orm"]&&c.push("drizzle"),n.typeorm&&c.push("typeorm"),n.sequelize&&c.push("sequelize"),n.hardhat&&l.push("hardhat"));let u=t("pyproject.toml")?r("pyproject.toml"):t("requirements.txt")?r("requirements.txt"):"";if(u&&(u.includes("fastapi")&&a.push("fastapi"),u.includes("django")&&a.push("django"),u.includes("flask")&&a.push("flask"),(u.includes("sqlalchemy")||u.includes("SQLAlchemy"))&&c.push("sqlalchemy"),u.includes("tortoise")&&c.push("tortoise-orm"),u.includes("peewee")&&c.push("peewee")),t("composer.json")){let d=i("composer.json"),f={...d?.require??{},...d?.["require-dev"]??{}};f["laravel/framework"]&&a.push("laravel"),f["symfony/framework-bundle"]&&a.push("symfony"),f["slim/slim"]&&a.push("slim"),f["cakephp/cakephp"]&&a.push("cakephp"),f["codeigniter4/framework"]&&a.push("codeigniter"),f["doctrine/orm"]&&c.push("doctrine")}if(t("Gemfile")){let d=r("Gemfile");d.includes("rails")&&a.push("rails"),d.includes("sinatra")&&a.push("sinatra"),d.includes("hanami")&&a.push("hanami"),d.includes("activerecord")&&c.push("activerecord")}if(t("pom.xml")){let d=r("pom.xml");d.includes("spring-boot")&&a.push("spring-boot"),d.includes("quarkus")&&a.push("quarkus"),d.includes("micronaut")&&a.push("micronaut"),d.includes("hibernate")&&c.push("hibernate"),d.includes("mybatis")&&c.push("mybatis")}if(t("build.gradle")||t("build.gradle.kts")){let d=t("build.gradle.kts")?"build.gradle.kts":"build.gradle",f=r(d);f.includes("spring-boot")&&a.push("spring-boot"),f.includes("quarkus")&&a.push("quarkus"),f.includes("ktor")&&a.push("ktor"),f.includes("micronaut")&&a.push("micronaut"),f.includes("hibernate")&&c.push("hibernate"),f.includes("exposed")&&c.push("exposed")}if(Le(s,".csproj"))for(let d of gc(s).filter(f=>f.endsWith(".csproj"))){let f=mc((0,Ht.resolve)(s,d));f.includes("Microsoft.AspNetCore")&&a.push("aspnet"),f.includes("Microsoft.EntityFrameworkCore")&&c.push("entity-framework")}if(t("go.mod")){let d=r("go.mod");d.includes("gin-gonic")&&a.push("gin"),d.includes("labstack/echo")&&a.push("echo"),d.includes("gofiber/fiber")&&a.push("fiber"),d.includes("go-chi/chi")&&a.push("chi"),d.includes("gorm.io")&&c.push("gorm"),d.includes("entgo.io/ent")&&c.push("ent")}if(t("Cargo.toml")){let d=r("Cargo.toml");d.includes("actix-web")&&a.push("actix-web"),d.includes("axum")&&a.push("axum"),d.includes("rocket")&&a.push("rocket"),d.includes("diesel")&&c.push("diesel"),d.includes("sea-orm")&&c.push("sea-orm")}if(t("mix.exs")){let d=r("mix.exs");d.includes("phoenix")&&a.push("phoenix"),d.includes("ecto")&&c.push("ecto")}if(t("build.sbt")){let d=r("build.sbt");d.includes("play")&&a.push("play"),d.includes("akka-http")&&a.push("akka-http")}if(t("Package.swift")&&r("Package.swift").includes("vapor")&&a.push("vapor"),Le(s,".cabal")||t("stack.yaml")){let d=gc(s).filter(p=>p.endsWith(".cabal")),f=d.length>0?mc((0,Ht.resolve)(s,d[0])):"";f.includes("servant")&&a.push("servant"),f.includes("yesod")&&a.push("yesod")}if(t("cpanfile")){let d=r("cpanfile");d.includes("Mojolicious")&&a.push("mojolicious"),d.includes("Dancer")&&a.push("dancer")}if(t("project.clj")||t("deps.edn")){let d=t("deps.edn")?r("deps.edn"):r("project.clj");d.includes("ring")&&a.push("ring"),d.includes("pedestal")&&a.push("pedestal")}return{backends:a,orms:c,other:l}}function _2(e){let{check:t,readText:r}=e,i=[];if(t("docker-compose.yml")||t("docker-compose.yaml")){let n=r(t("docker-compose.yml")?"docker-compose.yml":"docker-compose.yaml");n.includes("postgres")&&i.push("postgresql"),(n.includes("mysql")||n.includes("mariadb"))&&i.push("mysql"),n.includes("mongo")&&i.push("mongodb"),n.includes("redis")&&i.push("redis"),n.includes("cassandra")&&i.push("cassandra"),n.includes("neo4j")&&i.push("neo4j"),n.includes("elasticsearch")&&i.push("elasticsearch")}return i}function b2(e){let{check:t,projectDir:r}=e,i=[];return(t("Dockerfile")||t("docker-compose.yml")||t("docker-compose.yaml"))&&i.push("docker"),(t("terraform")||t("main.tf"))&&i.push("terraform"),(t("vercel.json")||t(".vercel"))&&i.push("vercel"),(t("railway.json")||t("railway.toml"))&&i.push("railway"),t(".github/workflows")&&i.push("github-actions"),(t("netlify.toml")||t(".netlify"))&&i.push("netlify"),t("fly.toml")&&i.push("fly-io"),t("render.yaml")&&i.push("render"),(t("Procfile")||t("app.json"))&&i.push("heroku"),(t("ansible.cfg")||pn(r,"playbooks"))&&i.push("ansible"),t("Pulumi.yaml")&&i.push("pulumi"),(pn(r,"k8s")||pn(r,"kubernetes")||t("skaffold.yaml"))&&i.push("kubernetes"),(t("wrangler.toml")||t("wrangler.jsonc"))&&i.push("cloudflare"),i}function $2(e){let{check:t,readText:r,pkgDeps:i,projectDir:n}=e,o=[],s=[];t("project.godot")&&(o.push("godot"),s.push("gdscript"),Le(n,".gdshader")&&s.push("gdshader")),i.phaser&&o.push("phaser"),t("ProjectSettings/ProjectVersion.txt")&&o.push("unity"),Le(n,".uproject")&&o.push("unreal"),t("Cargo.toml")&&r("Cargo.toml").includes("bevy")&&o.push("bevy"),t("main.lua")&&t("conf.lua")&&o.push("love2d"),pn(n,"game")&&t("game/script.rpy")&&o.push("renpy"),t("game.project")&&o.push("defold");let a=t("pyproject.toml")?r("pyproject.toml"):t("requirements.txt")?r("requirements.txt"):"";return a&&a.includes("pygame")&&o.push("pygame"),{engines:o,gameLangs:s}}function k2(e,t){let{check:r,readText:i,pkgDeps:n,hasPackageJson:o,projectDir:s}=e,a=[];if(o&&(n["react-native"]&&a.push("react-native"),(n.expo||n["expo-router"])&&a.push("expo"),(n["@ionic/react"]||n["@ionic/angular"]||n["@ionic/vue"])&&a.push("ionic"),n["@capacitor/core"]&&a.push("capacitor"),(n["nativescript-core"]||n["@nativescript/core"])&&a.push("nativescript")),r("pubspec.yaml")&&i("pubspec.yaml").includes("flutter")&&a.push("flutter"),(pn(s,".xcodeproj")||pn(s,".xcworkspace"))&&t.includes("swift")&&a.push("swiftui"),r("build.gradle.kts")||r("build.gradle")){let c=r("build.gradle.kts")?"build.gradle.kts":"build.gradle",l=i(c);(l.includes("compose")||l.includes("jetpack"))&&a.push("jetpack-compose"),(l.includes("multiplatform")||l.includes("KotlinMultiplatform"))&&a.push("kotlin-multiplatform")}if(Le(s,".csproj"))for(let c of gc(s).filter(l=>l.endsWith(".csproj"))){let l=mc((0,Ht.resolve)(s,c));if(l.includes("Microsoft.Maui")||l.includes("Maui")){a.push("maui");break}}return a}function S2(e){for(let t of Object.keys(e))e[t]=[...new Set(e[t])];return e}function x2(e){let t=h2(e),r=y2(e),{backends:i,orms:n,other:o}=v2(e),s=_2(e),a=b2(e),{engines:c,gameLangs:l}=$2(e),u=k2(e,t);return t.push(...l),S2({programming_languages:t,frontend:r,backend:i,database:s,orm:n,infra:a,game:c,mobile:u,other:o})}function Po(e){return x2(g2(e))}function w2(e){return e.programming_languages.length===0&&e.frontend.length===0&&e.backend.length===0&&e.database.length===0&&e.orm.length===0&&e.infra.length===0&&e.game.length===0&&e.mobile.length===0&&e.other.length===0}var I2=[...$p],z2=[...kp],P2=[...Sp],T2=[...xp],E2=[...wp],N2=[...Ip],O2=[...Pp],j2=[...zp],C2=["web","api","mobile","game","cli","desktop"];function D2(e){let t=new Set(e);return{frontend:t.has("web")||t.has("desktop"),backend:t.has("web")||t.has("api"),database:t.has("web")||t.has("api")||t.has("mobile"),orm:t.has("web")||t.has("api")||t.has("mobile"),game:t.has("game"),mobile:t.has("mobile")}}async function hT(e,t){let r=m=>m.map(h=>({value:h,label:h})),i=t.selectSubLanguagesHint,n=C2.map(m=>({value:m,label:t.projectTypes[m]??m})),o=await ar(e,t.selectProjectType,i,n),s=D2(o),a=await ar(e,t.selectProgrammingLanguages,i,r(I2)),c=[],l=[],u=[],d=[],f=[],p=[];if(s.frontend){let m=wo(z2,"frontend",a);c=await ar(e,t.selectFrontend,i,r(m))}if(s.backend){let m=wo(P2,"backend",a);l=await ar(e,t.selectBackend,i,r(m))}if(s.database&&(u=await ar(e,t.selectDatabase,i,r(T2))),s.orm){let m=wo(E2,"orm",a);d=await ar(e,t.selectOrm,i,r(m))}let g=await ar(e,t.selectInfra,i,r(N2));if(s.game){let m=wo(O2,"game",a);f=await ar(e,t.selectGame,i,r(m))}if(s.mobile){let m=wo(j2,"mobile",a);p=await ar(e,t.selectMobile,i,r(m))}return{programming_languages:a,frontend:c,backend:l,database:u,orm:d,infra:g,game:f,mobile:p,other:[]}}function A2(e,t){let r=(i,n)=>{n.length>0&&console.log(` ${i}: ${n.join(", ")}`)};r(t.languages,e.programming_languages),r(t.frontend,e.frontend),r(t.backend,e.backend),r(t.database,e.database),r(t.orm,e.orm),r(t.infra,e.infra),r(t.game,e.game),r(t.mobile,e.mobile),r(t.other,e.other)}function R2(e){let t=process.platform;return e.installCmd[t]??e.installCmd.linux}function M2(e){try{return(0,jp.execSync)(R2(e),{stdio:"inherit",timeout:12e4}),!0}catch{return!1}}function L2(e){try{return(0,jp.execSync)("git remote get-url origin",{cwd:e,encoding:"utf-8",timeout:1e4,stdio:["pipe","pipe","pipe"]}).trim().includes("github.com")}catch{return!1}}function U2(e){try{return(0,jp.execSync)("gh repo edit --delete-branch-on-merge",{cwd:e,stdio:"inherit",timeout:3e4}),!0}catch{return!1}}function vT(e){let t=n=>n.length===0?"[]":`[${n.join(", ")}]`,r=[`display_language: ${e.display_language}`,`main_language: ${e.main_language}`,`sub_languages: ${t(e.sub_languages)}`,`programming_languages: ${t(e.stack.programming_languages)}`,`frontend: ${t(e.stack.frontend)}`,`backend: ${t(e.stack.backend)}`,`database: ${t(e.stack.database)}`,`orm: ${t(e.stack.orm)}`,`infra: ${t(e.stack.infra)}`,`game: ${t(e.stack.game)}`,`mobile: ${t(e.stack.mobile)}`,`other: ${t(e.stack.other)}`],i=Object.entries(e.tools).filter(([,n])=>n);if(i.length>0){r.push("tools:");for(let[n,o]of i)r.push(` ${n}: ${o}`)}return r.push("godd_files:"),r.push(` docs_dir: ${e.godd_files.docs_dir}`),r.push(` generate_gitattributes: ${e.godd_files.generate_gitattributes}`),r.push(` generate_dependabot: ${e.godd_files.generate_dependabot}`),r.push(""),r.join(`
212
+ `)}async function _T(e=process.cwd(),t={}){let r=(0,Ht.resolve)(e,V.configFile);if((0,We.existsSync)(r)&&!t.force)return{configPath:r,status:"already_exists",config:{display_language:"en",main_language:"en",sub_languages:[],stack:Po(e),tools:{},godd_files:{docs_dir:"documents",generate_gitattributes:!0,generate_dependabot:!0}}};let i=p2(),n=xo(t.language);try{let o=lc.map(W=>({value:W,label:Jb[W]})),s=De("en"),a=n??await Wb(i,s.selectDisplayLanguage,o,s.invalidChoice),c=De(a),l=n??await Wb(i,c.selectMainLanguage,o,c.invalidChoice),u=lc.filter(W=>W!==l).map(W=>({value:W,label:Jb[W]})),d=await ar(i,c.selectSubLanguages,c.selectSubLanguagesHint,u);console.log(`
213
+ ${c.scanningProject}`);let f=Po(e);w2(f)?(console.log(` ${c.manualStackEntry}`),f=await hT(i,c)):(console.log(`
214
+ ${c.detectedStack}`),A2(f,c),await Op(i,c.confirmStack,c)||(f=await hT(i,c)));let p=gT(f),g={},m=p.filter(W=>W.universal),h=p.filter(W=>!W.universal);if(p.length>0){if(console.log(`
215
215
  ${c.toolRecommendationsTitle}`),m.length>0){console.log(`
216
216
  [${c.toolUniversalTag}]`);for(let me of m){let Ae=c.toolCategories[me.category]??me.category;console.log(` ${Ae.padEnd(22)}: ${me.tool}`)}}if(h.length>0){console.log(`
217
- [${c.toolStackSpecificTag}]`);for(let me of h){let Ae=c.toolCategories[me.category]??me.category;console.log(` ${Ae.padEnd(22)}: ${me.tool}`)}}let W=await Hb(i,c.toolInstallMode,[{value:"default",label:c.toolInstallDefault},{value:"custom",label:c.toolInstallCustom},{value:"skip",label:c.toolInstallSkip}],c.invalidChoice);for(let me of p){let Ae=!1;if(W==="default")Ae=!0;else if(W==="custom"){let Ie=c.toolCategories[me.category]??me.category;console.log(`
218
- ${Ie}: ${me.tool}`),Ae=await Op(i,c.toolInstallPrompt,c)}if(Ae){console.log(` ${c.toolInstalling} ${me.tool}...`);let Ie=R2(me);console.log(Ie?` \u2713 ${c.toolInstallSuccess}`:` \u2717 ${c.toolInstallFailed}`)}g[me.category]=me.tool}}if(M2(e)){console.log(`
219
- ${c.githubDetected}`);let W=L2(e);console.log(W?` ${c.githubConfigSuccess}`:` ${c.githubConfigFailed}`)}console.log(`
217
+ [${c.toolStackSpecificTag}]`);for(let me of h){let Ae=c.toolCategories[me.category]??me.category;console.log(` ${Ae.padEnd(22)}: ${me.tool}`)}}let W=await Wb(i,c.toolInstallMode,[{value:"default",label:c.toolInstallDefault},{value:"custom",label:c.toolInstallCustom},{value:"skip",label:c.toolInstallSkip}],c.invalidChoice);for(let me of p){let Ae=!1;if(W==="default")Ae=!0;else if(W==="custom"){let Ie=c.toolCategories[me.category]??me.category;console.log(`
218
+ ${Ie}: ${me.tool}`),Ae=await Op(i,c.toolInstallPrompt,c)}if(Ae){console.log(` ${c.toolInstalling} ${me.tool}...`);let Ie=M2(me);console.log(Ie?` \u2713 ${c.toolInstallSuccess}`:` \u2717 ${c.toolInstallFailed}`)}g[me.category]=me.tool}}if(L2(e)){console.log(`
219
+ ${c.githubDetected}`);let W=U2(e);console.log(W?` ${c.githubConfigSuccess}`:` ${c.githubConfigFailed}`)}console.log(`
220
220
  ${c.goddFilesTitle}`);let k=(await Cp(i,`
221
221
  ${c.goddFilesDocsPrompt}
222
- > `)).trim()||"documents",x=await Op(i,c.goddFilesGitattributesPrompt,c),N=await Op(i,c.goddFilesDependabotPrompt,c),w={docs_dir:k,generate_gitattributes:x,generate_dependabot:N},q={display_language:a,main_language:l,sub_languages:d,stack:f,tools:g,godd_files:w},ee=vT(q),R=(0,We.existsSync)(r);return(0,We.writeFileSync)(r,ee,"utf-8"),zo(e,f,a),Io(e,f),uc(e,w.docs_dir),w.generate_gitattributes&&dc(e),w.generate_dependabot&&fc(e),console.log(` ${c.goddFilesCreated}`),{configPath:r,status:R?"overwritten":"created",config:q}}finally{i.close()}}function bT(e=process.cwd(),t={}){let r=(0,Ht.resolve)(e,V.configFile),i=xo(t.language)??"en",n={docs_dir:"documents",generate_gitattributes:!0,generate_dependabot:!0};if((0,We.existsSync)(r)&&!t.force)return{configPath:r,status:"already_exists",config:{display_language:i,main_language:i,sub_languages:[],stack:Po(e),tools:{},godd_files:n}};let o=Po(e),s={display_language:i,main_language:i,sub_languages:[],stack:o,tools:{},godd_files:n},a=(0,We.existsSync)(r),c=vT(s);return(0,We.writeFileSync)(r,c,"utf-8"),zo(e,o,i),Io(e,o),uc(e,n.docs_dir),dc(e),fc(e),{configPath:r,status:a?"overwritten":"created",config:s}}function U2(e){if(!(0,Yn.existsSync)(e))return[];try{let t=(0,Yn.readFileSync)(e,"utf-8"),r=[];for(let i of t.split(`
223
- `)){let n=i.trim();if(!n||n.startsWith("#")||i.length-i.trimStart().length>=2)continue;let s=n.indexOf(":");s>0&&r.push(n.slice(0,s).trim())}return r}catch{return[]}}function q2(e){let t=U2(e),r=lT();return t.filter(i=>!r.has(i))}var Z2={en:{roleTitle:"## config.godd Configuration Assistant",roleBody:`You are an assistant that accurately generates and repairs config.godd.
222
+ > `)).trim()||"documents",x=await Op(i,c.goddFilesGitattributesPrompt,c),N=await Op(i,c.goddFilesDependabotPrompt,c),w={docs_dir:k,generate_gitattributes:x,generate_dependabot:N},q={display_language:a,main_language:l,sub_languages:d,stack:f,tools:g,godd_files:w},ee=vT(q),R=(0,We.existsSync)(r);return(0,We.writeFileSync)(r,ee,"utf-8"),zo(e,f,a),Io(e,f),dc(e,w.docs_dir),w.generate_gitattributes&&fc(e),w.generate_dependabot&&pc(e),console.log(` ${c.goddFilesCreated}`),{configPath:r,status:R?"overwritten":"created",config:q}}finally{i.close()}}function bT(e=process.cwd(),t={}){let r=(0,Ht.resolve)(e,V.configFile),i=xo(t.language)??"en",n={docs_dir:"documents",generate_gitattributes:!0,generate_dependabot:!0};if((0,We.existsSync)(r)&&!t.force)return{configPath:r,status:"already_exists",config:{display_language:i,main_language:i,sub_languages:[],stack:Po(e),tools:{},godd_files:n}};let o=Po(e),s={display_language:i,main_language:i,sub_languages:[],stack:o,tools:{},godd_files:n},a=(0,We.existsSync)(r),c=vT(s);return(0,We.writeFileSync)(r,c,"utf-8"),zo(e,o,i),Io(e,o),dc(e,n.docs_dir),fc(e),pc(e),{configPath:r,status:a?"overwritten":"created",config:s}}function q2(e){if(!(0,Yn.existsSync)(e))return[];try{let t=(0,Yn.readFileSync)(e,"utf-8"),r=(0,kT.parse)(t);return!r||typeof r!="object"||Array.isArray(r)?[]:Object.keys(r)}catch{return[]}}function Z2(e){let t=q2(e),r=lT();return t.filter(i=>!r.has(i))}var F2={en:{roleTitle:"## config.godd Configuration Assistant",roleBody:`You are an assistant that accurately generates and repairs config.godd.
224
223
  Use the information below to create a correct config.godd through conversation with the user.`,step1:"1. Review auto-detection results and the current config",step2:"2. Ask the user to confirm any missing or incorrect settings",step3:'3. Once confirmed, write config.godd following the "Format Guide" below',step4:"4. After writing, prompt the user to restart Cursor",fieldsTitle:"## Valid Fields and Values (SSOT)",fieldsIntro:`Only the field names and values listed below are valid.
225
224
  Field names not listed here are **silently ignored** by the Zod schema.
226
225
  Values not listed here cause an **error that blocks all tools**.`,currentConfigTitle:"## Current config.godd",currentConfigMissing:"config.godd not found. A new one needs to be created.",validationErrorTitle:"## Validation Errors (value issues)",unknownFieldsTitle:"## Unknown Fields (silently ignored)",unknownFieldsIntro:"The following fields do not exist in the schema and are ignored during loading:",unknownFieldSuffix:"This field does not exist. Choose a valid field name from the list above.",detectedTitle:"## Auto-detected Project Stack",detectedIntro:"Scan results from the project directory:",detectedPrompt:"Use these results as a base and ask the user to confirm or correct them.",noDetection:"## Auto-detected Project Stack",noDetectionPrompt:"No stack could be auto-detected. Ask the user to select manually.",formatTitle:"## config.godd Format Guide (MUST)",formatIntro:"Write config.godd in the following format:",formatRules:`### Rules
@@ -250,7 +249,7 @@ Values not listed here cause an **error that blocks all tools**.`,currentConfigT
250
249
  - \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0442\u043E\u043B\u044C\u043A\u043E \u0438\u043C\u0435\u043D\u0430 \u043F\u043E\u043B\u0435\u0439 \u0438\u0437 \u0441\u043F\u0438\u0441\u043A\u0430 \u0432\u044B\u0448\u0435
251
250
  - \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0438\u0437 \u0441\u043F\u0438\u0441\u043A\u0430 \u0432\u044B\u0448\u0435 (other \u2014 \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442)
252
251
  - \u0421\u0435\u043A\u0446\u0438\u044F tools \u043D\u0435\u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u0430 (\u0430\u0432\u0442\u043E\u043D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0447\u0435\u0440\u0435\u0437 godd init)`,goddFilesTitle:"## \u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0444\u0430\u0439\u043B\u043E\u0432 GoDD",goddFilesIntro:"\u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044E \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0434\u043B\u044F \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0441\u0435\u043A\u0446\u0438\u0438 `godd_files`.\n\u041F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 Enter \u0431\u0435\u0437 \u0432\u0432\u043E\u0434\u0430 \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0439\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E.",goddFilesQuestions:["**Q1 \u2014 docs_dir** (\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: `documents`)"," \u041A\u0443\u0434\u0430 GoDD \u0434\u043E\u043B\u0436\u0435\u043D \u0441\u043E\u0445\u0440\u0430\u043D\u044F\u0442\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044E (\u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438, ADR, \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u044B)?"," \u0415\u0441\u043B\u0438 \u0432 \u043F\u0440\u043E\u0435\u043A\u0442\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044C \u043F\u0430\u043F\u043A\u0430 \u0441 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0435\u0439 (\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, `docs`, `documentation`), \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0435\u0451."," \u2192 \u0417\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u043A\u0430\u043A: `docs_dir: <\u043F\u0443\u0442\u044C>`","","**Q2 \u2014 generate_gitattributes** (\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: `true`)"," \u0414\u043E\u043B\u0436\u0435\u043D \u043B\u0438 GoDD \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C `.gitattributes` (\u043D\u043E\u0440\u043C\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F LF) \u043F\u0440\u0438 init, \u0435\u0441\u043B\u0438 \u0444\u0430\u0439\u043B \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442?"," \u2192 \u0417\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u043A\u0430\u043A: `generate_gitattributes: true` \u0438\u043B\u0438 `generate_gitattributes: false`","","**Q3 \u2014 generate_dependabot** (\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: `true`)"," \u0414\u043E\u043B\u0436\u0435\u043D \u043B\u0438 GoDD \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C `.github/dependabot.yml` \u043F\u0440\u0438 init, \u0435\u0441\u043B\u0438 \u0444\u0430\u0439\u043B \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442?"," \u2192 \u0417\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u043A\u0430\u043A: `generate_dependabot: true` \u0438\u043B\u0438 `generate_dependabot: false`"].join(`
253
- `),issueSuggestion:(e,t,r)=>`- \`${e}\`: "${t}" \u2192 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u0432\u044B \u0438\u043C\u0435\u043B\u0438 \u0432 \u0432\u0438\u0434\u0443 "${r}"?`,issueUnknown:(e,t)=>`- \`${e}\`: "${t}" \u2192 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u0441\u043F\u0438\u0441\u043A\u0435 \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439`}};function kT(e=process.cwd(),t="ja"){let r=Z2[t],i=(0,$T.resolve)(e,V.configFile),n=[],s=((0,Yn.existsSync)(i)?lc(e):null)?.godd_files??{docs_dir:"documents",generate_gitattributes:!0,generate_dependabot:!0};if(n.push(`${r.roleTitle}
252
+ `),issueSuggestion:(e,t,r)=>`- \`${e}\`: "${t}" \u2192 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u0432\u044B \u0438\u043C\u0435\u043B\u0438 \u0432 \u0432\u0438\u0434\u0443 "${r}"?`,issueUnknown:(e,t)=>`- \`${e}\`: "${t}" \u2192 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u0441\u043F\u0438\u0441\u043A\u0435 \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439`}};function ST(e=process.cwd(),t="ja"){let r=F2[t],i=(0,$T.resolve)(e,V.configFile),n=[],s=((0,Yn.existsSync)(i)?uc(e):null)?.godd_files??{docs_dir:"documents",generate_gitattributes:!0,generate_dependabot:!0};if(n.push(`${r.roleTitle}
254
253
 
255
254
  ${r.roleBody}
256
255
 
@@ -266,9 +265,9 @@ ${uT(t)}`),(0,Yn.existsSync)(i)){let l=(0,Yn.readFileSync)(i,"utf-8");n.push(`${
266
265
 
267
266
  \`\`\`
268
267
  ${l.trim()}
269
- \`\`\``);let u=lc(e);if(u){let f=Tp(u);f.length>0&&n.push(`${r.validationErrorTitle}
268
+ \`\`\``);let u=uc(e);if(u){let f=Tp(u);f.length>0&&n.push(`${r.validationErrorTitle}
270
269
 
271
- ${F2(f,r)}`)}let d=q2(i);d.length>0&&n.push(`${r.unknownFieldsTitle}
270
+ ${V2(f,r)}`)}let d=Z2(i);d.length>0&&n.push(`${r.unknownFieldsTitle}
272
271
 
273
272
  ${r.unknownFieldsIntro}
274
273
  ${d.map(f=>`- \`${f}\` \u2014 ${r.unknownFieldSuffix}`).join(`
@@ -313,35 +312,35 @@ ${r.formatRules}`),n.push(`${r.goddFilesTitle}
313
312
 
314
313
  ${r.goddFilesIntro}
315
314
 
316
- ${r.goddFilesQuestions}`),zo(e,a,t),Io(e,a),uc(e,s.docs_dir),s.generate_gitattributes!==!1&&dc(e),s.generate_dependabot!==!1&&fc(e),n.join(`
315
+ ${r.goddFilesQuestions}`),zo(e,a,t),Io(e,a),dc(e,s.docs_dir),s.generate_gitattributes!==!1&&fc(e),s.generate_dependabot!==!1&&pc(e),n.join(`
317
316
 
318
317
  ---
319
318
 
320
- `)}function F2(e,t){return e.map(r=>r.suggestion?t.issueSuggestion(r.field,r.value,r.suggestion):t.issueUnknown(r.field,r.value)).join(`
321
- `)}var cr=require("node:fs"),mn=require("node:path");var Dp="\u8CEA\u554F\u30EA\u30B9\u30C8.md";function V2(e){let t=(0,mn.resolve)(e),r=(0,mn.dirname)(t)===t?t:void 0;for(let i=0;i<20;i++){if((0,cr.existsSync)((0,mn.resolve)(t,V.configFile))||(0,cr.existsSync)((0,mn.resolve)(t,".git")))return t;let n=(0,mn.dirname)(t);if(n===t)break;t=n}return r??e}function K2(e){return(0,mn.resolve)(e,Dp)}var G2=/^###\s+Q(\d+)[::]?\s*(.*)/;function B2(e){let t=[],r=[],i="none",n=null,o=t;for(let s of e.split(`
322
- `)){let a=s.trim();if(/^##\s+(未回答|Unanswered)/i.test(a)){n&&o.push(n),n=null,i="unanswered",o=t;continue}if(/^##\s+(解決済み?|回答済み?|Resolved)/i.test(a)){n&&o.push(n),n=null,i="resolved",o=r;continue}if(i==="none"&&/^##\s/.test(a)){i="unanswered",o=t;continue}let c=a.match(G2);if(c){n&&o.push(n),n={id:parseInt(c[1],10),title:c[2].trim(),body:[]};continue}if(n&&(a.startsWith("- ")||a.startsWith("* "))){n.body.push(a);continue}if(!n&&(a.startsWith("- ")||a.startsWith("* "))){let l=a.slice(2).trim();if(!l)continue;let u=Math.max(0,...t.map(d=>d.id),...r.map(d=>d.id))+1;o.push({id:u,title:l,body:[]})}}return n&&o.push(n),{unanswered:t,resolved:r}}function Wb(e,t){let r=[t.serializeHeading,""];if(r.push(t.serializeUnanswered,""),e.unanswered.length===0)r.push(t.serializeNone);else for(let i of e.unanswered){r.push(`### Q${i.id}: ${i.title}`);for(let n of i.body)r.push(n);r.push("")}if(r.push(t.serializeResolved,""),e.resolved.length===0)r.push(t.serializeNone);else for(let i of e.resolved){r.push(`### Q${i.id}: ${i.title}`);for(let n of i.body)r.push(n);r.push("")}return r.push(""),r.join(`
323
- `)}var J2={en:{fileNotFound:`${Dp} not found. Created an empty question list.`,fileCreated:"Empty question list created.",noUnanswered:"No unanswered questions. All questions have been resolved!",unansweredTitle:"## Unanswered Questions",resolvedTitle:"## Resolved Questions",resolvedSuccess:e=>`Resolved: "${e}" \u2014 moved to the resolved section.`,resolvedNotFound:e=>`Question ID ${e} not found in unanswered list.`,addedSuccess:e=>`Added new question: "${e}"`,instructionTitle:"## Interactive Q&A Instructions",instructionBody:["Present each unanswered question to the user one at a time.","When the user answers, update \u8CEA\u554F\u30EA\u30B9\u30C8.md by moving the question to the resolved section.","If the user's answer is unclear, ask a follow-up question.","After all questions are resolved, congratulate the user."].join(`
319
+ `)}function V2(e,t){return e.map(r=>r.suggestion?t.issueSuggestion(r.field,r.value,r.suggestion):t.issueUnknown(r.field,r.value)).join(`
320
+ `)}var cr=require("node:fs"),mn=require("node:path");var Dp="\u8CEA\u554F\u30EA\u30B9\u30C8.md";function K2(e){let t=(0,mn.resolve)(e),r=(0,mn.dirname)(t)===t?t:void 0;for(let i=0;i<20;i++){if((0,cr.existsSync)((0,mn.resolve)(t,V.configFile))||(0,cr.existsSync)((0,mn.resolve)(t,".git")))return t;let n=(0,mn.dirname)(t);if(n===t)break;t=n}return r??e}function G2(e){return(0,mn.resolve)(e,Dp)}var B2=/^###\s+Q(\d+)[::]?\s*(.*)/;function J2(e){let t=[],r=[],i="none",n=null,o=t;for(let s of e.split(`
321
+ `)){let a=s.trim();if(/^##\s+(未回答|Unanswered)/i.test(a)){n&&o.push(n),n=null,i="unanswered",o=t;continue}if(/^##\s+(解決済み?|回答済み?|Resolved)/i.test(a)){n&&o.push(n),n=null,i="resolved",o=r;continue}if(i==="none"&&/^##\s/.test(a)){i="unanswered",o=t;continue}let c=a.match(B2);if(c){n&&o.push(n),n={id:parseInt(c[1],10),title:c[2].trim(),body:[]};continue}if(n&&(a.startsWith("- ")||a.startsWith("* "))){n.body.push(a);continue}if(!n&&(a.startsWith("- ")||a.startsWith("* "))){let l=a.slice(2).trim();if(!l)continue;let u=Math.max(0,...t.map(d=>d.id),...r.map(d=>d.id))+1;o.push({id:u,title:l,body:[]})}}return n&&o.push(n),{unanswered:t,resolved:r}}function Yb(e,t){let r=[t.serializeHeading,""];if(r.push(t.serializeUnanswered,""),e.unanswered.length===0)r.push(t.serializeNone);else for(let i of e.unanswered){r.push(`### Q${i.id}: ${i.title}`);for(let n of i.body)r.push(n);r.push("")}if(r.push(t.serializeResolved,""),e.resolved.length===0)r.push(t.serializeNone);else for(let i of e.resolved){r.push(`### Q${i.id}: ${i.title}`);for(let n of i.body)r.push(n);r.push("")}return r.push(""),r.join(`
322
+ `)}var H2={en:{fileNotFound:`${Dp} not found. Created an empty question list.`,fileCreated:"Empty question list created.",noUnanswered:"No unanswered questions. All questions have been resolved!",unansweredTitle:"## Unanswered Questions",resolvedTitle:"## Resolved Questions",resolvedSuccess:e=>`Resolved: "${e}" \u2014 moved to the resolved section.`,resolvedNotFound:e=>`Question ID ${e} not found in unanswered list.`,addedSuccess:e=>`Added new question: "${e}"`,instructionTitle:"## Interactive Q&A Instructions",instructionBody:["Present each unanswered question to the user one at a time.","When the user answers, update \u8CEA\u554F\u30EA\u30B9\u30C8.md by moving the question to the resolved section.","If the user's answer is unclear, ask a follow-up question.","After all questions are resolved, congratulate the user."].join(`
324
323
  - `),invalidAction:"Unknown action. Use: list, resolve <id>, add <question text>",serializeHeading:"# Question List",serializeUnanswered:"## Unanswered",serializeResolved:"## Resolved",serializeNone:"(none)"},ja:{fileNotFound:`${Dp} \u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002\u7A7A\u306E\u8CEA\u554F\u30EA\u30B9\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002`,fileCreated:"\u7A7A\u306E\u8CEA\u554F\u30EA\u30B9\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002",noUnanswered:"\u672A\u56DE\u7B54\u306E\u8CEA\u554F\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u5168\u3066\u306E\u8CEA\u554F\u304C\u56DE\u7B54\u6E08\u307F\u3067\u3059\uFF01",unansweredTitle:"## \u672A\u56DE\u7B54\u306E\u8CEA\u554F",resolvedTitle:"## \u56DE\u7B54\u6E08\u307F\u306E\u8CEA\u554F",resolvedSuccess:e=>`\u56DE\u7B54\u6E08\u307F\u306B\u79FB\u52D5\u3057\u307E\u3057\u305F: \u300C${e}\u300D`,resolvedNotFound:e=>`\u8CEA\u554F ID ${e} \u306F\u672A\u56DE\u7B54\u30EA\u30B9\u30C8\u306B\u5B58\u5728\u3057\u307E\u305B\u3093\u3002`,addedSuccess:e=>`\u65B0\u3057\u3044\u8CEA\u554F\u3092\u8FFD\u52A0\u3057\u307E\u3057\u305F: \u300C${e}\u300D`,instructionTitle:"## \u30A4\u30F3\u30BF\u30E9\u30AF\u30C6\u30A3\u30D6\u8CEA\u554F\u306E\u624B\u9806",instructionBody:["\u672A\u56DE\u7B54\u306E\u8CEA\u554F\u3092\u30E6\u30FC\u30B6\u30FC\u306B\u4E00\u3064\u305A\u3064\u63D0\u793A\u3057\u3066\u304F\u3060\u3055\u3044\u3002","\u30E6\u30FC\u30B6\u30FC\u304C\u56DE\u7B54\u3057\u305F\u3089\u3001\u8CEA\u554F\u30EA\u30B9\u30C8.md \u3092\u66F4\u65B0\u3057\u3001\u305D\u306E\u8CEA\u554F\u3092\u56DE\u7B54\u6E08\u307F\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u79FB\u52D5\u3057\u3066\u304F\u3060\u3055\u3044\u3002","\u30E6\u30FC\u30B6\u30FC\u306E\u56DE\u7B54\u304C\u4E0D\u660E\u78BA\u306A\u5834\u5408\u306F\u3001\u30D5\u30A9\u30ED\u30FC\u30A2\u30C3\u30D7\u306E\u8CEA\u554F\u3092\u3057\u3066\u304F\u3060\u3055\u3044\u3002","\u5168\u3066\u306E\u8CEA\u554F\u304C\u89E3\u6C7A\u3057\u305F\u3089\u3001\u30E6\u30FC\u30B6\u30FC\u306B\u5B8C\u4E86\u3092\u4F1D\u3048\u3066\u304F\u3060\u3055\u3044\u3002"].join(`
325
324
  - `),invalidAction:"\u4E0D\u660E\u306A\u64CD\u4F5C\u3067\u3059\u3002\u4F7F\u7528\u65B9\u6CD5: list, resolve <id>, add <\u8CEA\u554F\u6587>",serializeHeading:"# \u8CEA\u554F\u30EA\u30B9\u30C8",serializeUnanswered:"## \u672A\u56DE\u7B54",serializeResolved:"## \u56DE\u7B54\u6E08\u307F",serializeNone:"\uFF08\u306A\u3057\uFF09"},ru:{fileNotFound:`${Dp} \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D. \u0421\u043E\u0437\u0434\u0430\u043D \u043F\u0443\u0441\u0442\u043E\u0439 \u0441\u043F\u0438\u0441\u043E\u043A \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432.`,fileCreated:"\u0421\u043E\u0437\u0434\u0430\u043D \u043F\u0443\u0441\u0442\u043E\u0439 \u0441\u043F\u0438\u0441\u043E\u043A \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432.",noUnanswered:"\u041D\u0435\u0442 \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432 \u0431\u0435\u0437 \u043E\u0442\u0432\u0435\u0442\u0430. \u0412\u0441\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0440\u0435\u0448\u0435\u043D\u044B!",unansweredTitle:"## \u0412\u043E\u043F\u0440\u043E\u0441\u044B \u0431\u0435\u0437 \u043E\u0442\u0432\u0435\u0442\u0430",resolvedTitle:"## \u0420\u0435\u0448\u0451\u043D\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B",resolvedSuccess:e=>`\u0420\u0435\u0448\u0435\u043D\u043E: "${e}" \u2014 \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u043E \u0432 \u0440\u0430\u0437\u0434\u0435\u043B \u0440\u0435\u0448\u0451\u043D\u043D\u044B\u0445.`,resolvedNotFound:e=>`\u0412\u043E\u043F\u0440\u043E\u0441 ID ${e} \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0432 \u0441\u043F\u0438\u0441\u043A\u0435 \u0431\u0435\u0437 \u043E\u0442\u0432\u0435\u0442\u0430.`,addedSuccess:e=>`\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u043D\u043E\u0432\u044B\u0439 \u0432\u043E\u043F\u0440\u043E\u0441: "${e}"`,instructionTitle:"## \u0418\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u044F \u043F\u043E \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u043D\u043E\u043C\u0443 Q&A",instructionBody:["\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u044F\u0439\u0442\u0435 \u043A\u0430\u0436\u0434\u044B\u0439 \u0432\u043E\u043F\u0440\u043E\u0441 \u0431\u0435\u0437 \u043E\u0442\u0432\u0435\u0442\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044E \u043F\u043E \u043E\u0434\u043D\u043E\u043C\u0443.","\u041A\u043E\u0433\u0434\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043E\u0442\u0432\u0435\u0442\u0438\u0442, \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u0435 \u8CEA\u554F\u30EA\u30B9\u30C8.md, \u043F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0432 \u0432\u043E\u043F\u0440\u043E\u0441 \u0432 \u0440\u0430\u0437\u0434\u0435\u043B \u0440\u0435\u0448\u0451\u043D\u043D\u044B\u0445.","\u0415\u0441\u043B\u0438 \u043E\u0442\u0432\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u043D\u0435\u044F\u0441\u0435\u043D, \u0437\u0430\u0434\u0430\u0439\u0442\u0435 \u0443\u0442\u043E\u0447\u043D\u044F\u044E\u0449\u0438\u0439 \u0432\u043E\u043F\u0440\u043E\u0441.","\u041A\u043E\u0433\u0434\u0430 \u0432\u0441\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0440\u0435\u0448\u0435\u043D\u044B, \u043F\u043E\u0437\u0434\u0440\u0430\u0432\u044C\u0442\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F."].join(`
326
- - `),invalidAction:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435: list, resolve <id>, add <\u0442\u0435\u043A\u0441\u0442 \u0432\u043E\u043F\u0440\u043E\u0441\u0430>",serializeHeading:"# \u0421\u043F\u0438\u0441\u043E\u043A \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432",serializeUnanswered:"## \u0411\u0435\u0437 \u043E\u0442\u0432\u0435\u0442\u0430",serializeResolved:"## \u0420\u0435\u0448\u0451\u043D\u043D\u044B\u0435",serializeNone:"(\u043D\u0435\u0442)"}};function ST(e=process.cwd(),t="list",r="ja"){let i=J2[r],n=V2(e),o=K2(n);if(!(0,cr.existsSync)(o))return(0,cr.writeFileSync)(o,Wb({unanswered:[],resolved:[]},i),"utf-8"),`${i.fileNotFound}
325
+ - `),invalidAction:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435: list, resolve <id>, add <\u0442\u0435\u043A\u0441\u0442 \u0432\u043E\u043F\u0440\u043E\u0441\u0430>",serializeHeading:"# \u0421\u043F\u0438\u0441\u043E\u043A \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432",serializeUnanswered:"## \u0411\u0435\u0437 \u043E\u0442\u0432\u0435\u0442\u0430",serializeResolved:"## \u0420\u0435\u0448\u0451\u043D\u043D\u044B\u0435",serializeNone:"(\u043D\u0435\u0442)"}};function xT(e=process.cwd(),t="list",r="ja"){let i=H2[r],n=K2(e),o=G2(n);if(!(0,cr.existsSync)(o))return(0,cr.writeFileSync)(o,Yb({unanswered:[],resolved:[]},i),"utf-8"),`${i.fileNotFound}
327
326
 
328
- ${i.noUnanswered}`;let s=(0,cr.readFileSync)(o,"utf-8"),a=B2(s),c=t.trim().toLowerCase();if(c==="list"||c==="")return H2(a,i);if(c.startsWith("resolve")){let l=c.replace(/^resolve\s*q?/i,"").trim(),u=parseInt(l,10);return isNaN(u)?i.invalidAction:W2(a,u,o,i)}if(c.startsWith("add")){let l=t.trim().replace(/^add\s*/i,"").trim();return l?Y2(a,l,o,i):i.invalidAction}return i.invalidAction}function H2(e,t){let r=[];if(e.unanswered.length===0)r.push(t.noUnanswered);else{r.push(t.unansweredTitle);for(let i of e.unanswered){let n=i.body.length>0?` \u2014 ${i.body[0].replace(/^-\s*\*\*[^*]+\*\*:\s*/,"")}`:"";r.push(` [Q${i.id}] ${i.title}${n}`)}}if(e.resolved.length>0){r.push("",t.resolvedTitle);for(let i of e.resolved)r.push(` \u2713 Q${i.id}: ${i.title}`)}return r.push("",`${t.instructionTitle}
327
+ ${i.noUnanswered}`;let s=(0,cr.readFileSync)(o,"utf-8"),a=J2(s),c=t.trim().toLowerCase();if(c==="list"||c==="")return W2(a,i);if(c.startsWith("resolve")){let l=c.replace(/^resolve\s*q?/i,"").trim(),u=parseInt(l,10);return isNaN(u)?i.invalidAction:Y2(a,u,o,i)}if(c.startsWith("add")){let l=t.trim().replace(/^add\s*/i,"").trim();return l?Q2(a,l,o,i):i.invalidAction}return i.invalidAction}function W2(e,t){let r=[];if(e.unanswered.length===0)r.push(t.noUnanswered);else{r.push(t.unansweredTitle);for(let i of e.unanswered){let n=i.body.length>0?` \u2014 ${i.body[0].replace(/^-\s*\*\*[^*]+\*\*:\s*/,"")}`:"";r.push(` [Q${i.id}] ${i.title}${n}`)}}if(e.resolved.length>0){r.push("",t.resolvedTitle);for(let i of e.resolved)r.push(` \u2713 Q${i.id}: ${i.title}`)}return r.push("",`${t.instructionTitle}
329
328
 
330
329
  - ${t.instructionBody}`),r.join(`
331
- `)}function W2(e,t,r,i){let n=e.unanswered.findIndex(s=>s.id===t);if(n===-1)return i.resolvedNotFound(t);let[o]=e.unanswered.splice(n,1);return e.resolved.push(o),(0,cr.writeFileSync)(r,Wb(e,i),"utf-8"),i.resolvedSuccess(o.title)}function Y2(e,t,r,i){let n=Math.max(0,...e.unanswered.map(o=>o.id),...e.resolved.map(o=>o.id));return e.unanswered.push({id:n+1,title:t,body:[]}),(0,cr.writeFileSync)(r,Wb(e,i),"utf-8"),i.addedSuccess(t)}var Q2={ja:["jp-ui-contracts","jp-llm-optimization"]};function xT(e){let t=String(e.display_language??""),r=String(e.main_language??"");e.github_communication_tone_ja=t==="ja"||r==="ja";let i=e.design;i&&typeof i=="object"&&(e.design_tool_pencil=i.tool==="pencil",e.design_tool_figma=i.tool==="figma",e.design_review=i.design_review===!0,e.design_auto_suggest=i.auto_suggest!==!1);let n=process.platform;e.os_windows=n==="win32",e.os_macos=n==="darwin",e.os_linux=n==="linux",e.shell_powershell=n==="win32";let s=Q2[r||t||""];if(!s||s.length===0)return;let a=Array.isArray(e.other)?e.other:[],c=s.filter(l=>!a.includes(l));c.length!==0&&(e.other=[...a,...c])}var Ye=require("node:fs"),Yb=require("node:os"),xt=require("node:path");function Ap(e){try{return(0,Ye.realpathSync)(e)}catch{return e}}var X2="@autodevjapan/godd-mcp-alpha";function e6(){let e=(0,xt.join)(Ap(process.execPath),".."),t=(0,xt.join)(e,"node_modules","npm","bin","npx-cli.js");return(0,Ye.existsSync)(t)?t:null}function t6(){if(typeof globalThis.__pkg<"u"||process.pkg)return{command:process.execPath,args:["serve"]};let e=Ap(process.execPath),t=e6();if(t)return{command:e,args:[t,"-y",`${X2}@latest`,"serve"]};let r=process.argv[1];return r&&(0,Ye.existsSync)(r)?{command:e,args:[Ap(r),"serve"]}:{command:e,args:[r??"godd.cjs","serve"]}}function wT(e){if(!(0,Ye.existsSync)(e))return{mcpServers:{}};let t;try{t=(0,Ye.readFileSync)(e,"utf-8")}catch{return{mcpServers:{}}}try{return{mcpServers:JSON.parse(t).mcpServers??{}}}catch{let r=`${e}.bak`;try{(0,Ye.writeFileSync)(r,t,"utf-8")}catch{}(0,Ye.writeFileSync)(e,JSON.stringify({mcpServers:{}},null,2)+`
332
- `,"utf-8");let n=De("en").corruptMcpJson.replace("{backup}",r);console.error(` [WARN] ${e} ${n}`)}return{mcpServers:{}}}function IT(e){let t=(0,xt.join)((0,Yb.homedir)(),".cursor"),r=(0,xt.join)(t,"mcp.json");(0,Ye.existsSync)(t)||(0,Ye.mkdirSync)(t,{recursive:!0});let i=wT(r),n=V.mcpKey;if(tn!==n&&i.mcpServers[tn]){let g=i.mcpServers[tn];i.mcpServers[n]||(i.mcpServers[n]=g),delete i.mcpServers[tn]}let{command:o,args:s}=t6(),a=i.mcpServers[n],c={};e?c.GODD_LICENSE_KEY=e:a?.env?.GODD_LICENSE_KEY&&(c.GODD_LICENSE_KEY=a.env.GODD_LICENSE_KEY);let l=(0,xt.dirname)(Ap(process.execPath));if(process.platform==="win32"){let g=process.env.SystemRoot??"C:\\Windows";c.PATH=[l,(0,xt.join)(g,"system32"),g,(0,xt.join)(g,"System32","Wbem")].join(xt.delimiter)}else c.PATH=[l,"/usr/local/bin","/usr/bin","/bin"].join(xt.delimiter);let u={command:o,args:s,...Object.keys(c).length>0?{env:c}:{}},d=!a,f=d||JSON.stringify(a)!==JSON.stringify(u);return f&&(i.mcpServers[n]=u,(0,Ye.writeFileSync)(r,JSON.stringify(i,null,2)+`
333
- `,"utf-8")),{mcpJsonPath:r,status:d?"created":f?"updated":"unchanged",serverKey:n}}function zT(){let e=(0,xt.join)((0,Yb.homedir)(),".cursor","mcp.json");if(!(0,Ye.existsSync)(e))return{removed:!1,mcpJsonPath:e};let t=wT(e),r=V.mcpKey,i=!1;return t.mcpServers[r]&&(delete t.mcpServers[r],i=!0),tn!==r&&t.mcpServers[tn]&&(delete t.mcpServers[tn],i=!0),i?((0,Ye.writeFileSync)(e,JSON.stringify(t,null,2)+`
334
- `,"utf-8"),{removed:!0,mcpJsonPath:e}):{removed:!1,mcpJsonPath:e}}var r6="AutoDevJapan/GoDD-MCP-Alpha",n6=`https://api.github.com/repos/${r6}/releases/latest`,i6=5e3;function PT(e){let t=e.match(/^[vV]?(\d+)\.(\d+)\.(\d+)/);return t?{major:Number(t[1]),minor:Number(t[2]),patch:Number(t[3])}:null}function o6(e,t){return t.major!==e.major?t.major>e.major:t.minor!==e.minor?t.minor>e.minor:t.patch>e.patch}async function s6(){let e=new AbortController,t=setTimeout(()=>e.abort(),i6);try{let r=await fetch(n6,{headers:{Accept:"application/vnd.github+json","User-Agent":`${V.mcpKey}-mcp-server/${Ir}`},signal:e.signal});if(!r.ok)return null;let i=await r.json(),n=PT(Ir),o=PT(i.tag_name);return!n||!o?null:{currentVersion:Ir,latestVersion:i.tag_name,hasUpdate:o6(n,o),releaseUrl:i.html_url}}catch{return null}finally{clearTimeout(t)}}async function Qb(e="en"){try{let t=await s6();if(!t?.hasUpdate)return;let r=De(e);console.error(""),console.error(` \u2B06 ${V.displayName} ${r.updateAvailable} ${t.latestVersion}\uFF08${r.updateCurrent} ${t.currentVersion}\uFF09`),console.error(` ${t.releaseUrl}`),console.error("")}catch{}}var Rp=require("node:crypto"),Qn=32,gc=12,Xb=16,a6=32,c6=1e5;function l6(e,t){return(0,Rp.pbkdf2Sync)(e,t,c6,a6,"sha256")}function TT(e,t){let r=Buffer.from(e,"base64"),i=Qn+gc+Xb;if(r.length<i)throw new Error(`Ciphertext too short: ${r.length} < ${i}`);let n=r.subarray(0,Qn),o=r.subarray(Qn,Qn+gc),s=r.subarray(Qn+gc,Qn+gc+Xb),a=r.subarray(Qn+gc+Xb),c=l6(t,n),l=(0,Rp.createDecipheriv)("aes-256-gcm",c,o);return l.setAuthTag(s),Buffer.concat([l.update(a),l.final()]).toString("utf-8")}var u6=/^\([^)]+\)\s*/,d6=/^([^a-zA-Z0-9]*?)([a-zA-Z0-9]+)([^a-zA-Z0-9]*?)$/,Mp=class{lexicon;constructor(t){this.lexicon=new Map;for(let r of t)r.vtForm&&this.lexicon.set(r.vtForm,r.english||r.vtForm)}get size(){return this.lexicon.size}translate(t){return this.lexicon.size===0?t:t.replace(u6,"").split(`
335
- `).map(i=>i.trim()===""?i:i.replace(/\S+/g,n=>{let o=this.lexicon.get(n);if(o!==void 0)return o;let s=n.match(d6);if(s){let[,a,c,l]=s,u=this.lexicon.get(c);if(u!==void 0)return`${a}${u}${l}`}return n})).join(`
336
- `)}};var f6="https://api.getgodd.dev";function r$(){return process.env.GODD_REGISTRY_URL||f6}var ET=15e3,e$=3,p6=1e3,m6=new Set([429,500,502,503,504]),g6=new Set([401,403,404]),lr=class extends Error{constructor(r,i){super(r);this.statusCode=i;this.name="RegistryApiError"}statusCode};function h6(e){if(e instanceof lr&&e.statusCode!==void 0)return g6.has(e.statusCode)?!1:m6.has(e.statusCode);if(!(e instanceof Error))return!1;let t=e.message.toLowerCase();return t.includes("timeout")||t.includes("econnreset")||t.includes("econnrefused")||t.includes("fetch failed")}function y6(e){return new Promise(t=>setTimeout(t,e))}async function t$(e,t){let r=null;for(let i=0;i<=e$;i++)try{return await e()}catch(n){if(r=n instanceof Error?n:new Error(String(n)),i>=e$||!h6(n))throw r;let o=p6*Math.pow(2,i),s=Math.floor(Math.random()*o);console.error(`[GoDD] ${t}: retry ${i+1}/${e$} in ${s}ms \u2014 ${r.message}`),await y6(s)}throw r??new Error("Unknown error")}var Lp=class{baseUrl;licenseKey;vtKey=null;translator=null;constructor(t,r){this.licenseKey=t,this.baseUrl=r??r$()}async initVtPipeline(t){this.vtKey=t;let r=await this.fetchLexicon();this.translator=new Mp(r),this.translator.size===0?console.error("[GoDD] WARNING: VT lexicon is empty \u2014 translated content may contain VT tokens"):console.error(`[GoDD] VT pipeline initialized (${this.translator.size} lexicon entries)`)}processContent(t){if(!this.vtKey)throw new Error("VT key is not available \u2014 content cannot be decrypted");let r=TT(t,this.vtKey);return this.translator?this.translator.translate(r):r}async fetchWithTimeout(t,r){let i=new AbortController,n=setTimeout(()=>i.abort(),ET);try{return await fetch(t,{...r,signal:i.signal})}catch(o){throw o instanceof Error&&o.name==="AbortError"?new Error(`Request timeout after ${ET}ms: ${t}`):o}finally{clearTimeout(n)}}async fetchLexicon(){return t$(async()=>{let t=await this.fetchWithTimeout(`${this.baseUrl}/api/v1/content/lexicon`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:this.licenseKey})});if(!t.ok)throw new lr(`Lexicon fetch failed: HTTP ${t.status}`,t.status);return(await t.json()).entries??[]},"fetchLexicon")}async resolveContent(t,r,i){return t$(async()=>{let n=await this.fetchWithTimeout(`${this.baseUrl}/api/v1/content/resolve`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:this.licenseKey,slug:t,type:r,stack:i})});if(n.status===404)throw new lr(`Content not found: ${r}/${t}`,404);if(n.status===401)throw new lr("Invalid or inactive license",401);if(!n.ok)throw new lr(`Content resolve failed: HTTP ${n.status}`,n.status);let o;try{o=await n.json()}catch{throw new Error("Invalid JSON response from Registry API")}if(typeof o.content!="string")throw new Error("Unexpected response format: missing content field");return this.processContent(o.content)},`resolveContent(${t})`)}async resolveBatchContent(t,r,i){return t$(async()=>{let n=await this.fetchWithTimeout(`${this.baseUrl}/api/v1/content/resolve-batch`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:this.licenseKey,slugs:t,type:r,stack:i})});if(n.status===401)throw new lr("Invalid or inactive license",401);if(n.status===404)throw new lr(`Batch resolve failed: no content found for slugs [${t.join(", ")}]`,404);if(!n.ok)throw new lr(`Batch resolve failed: HTTP ${n.status}`,n.status);let o;try{o=await n.json()}catch{throw new Error("Invalid JSON response from Registry API")}let s={};for(let[a,c]of Object.entries(o.contents??{}))s[a]=this.processContent(c);return s},`resolveBatchContent([${t.join(", ")}])`)}getLicenseKey(){return this.licenseKey}async logUsage(t,r,i,n){let o=s=>{console.error(`[GoDD] ${JSON.stringify({component:"RegistryClient",toolName:t,...s})}`)};try{let s=await this.fetchWithTimeout(`${this.baseUrl}/api/v1/usage/log`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:this.licenseKey,tool_name:t,stack_context:r,duration_ms:i,prompt_chars:n})});s.ok||o({event:"logUsage_http_error",httpStatus:s.status,message:`usage log rejected: HTTP ${s.status}`})}catch(s){o({event:"logUsage_fetch_failed",message:s instanceof Error?s.message:String(s)})}}};var NT=require("node:crypto"),zr=require("node:os"),v6=15e3;function _6(){let e=[(0,zr.hostname)(),(0,zr.platform)(),(0,zr.arch)(),(0,zr.cpus)()[0]?.model??"unknown",(0,zr.cpus)().length.toString()].join("|");return(0,NT.createHash)("sha256").update(e).digest("hex").slice(0,32)}async function OT(e,t){let r=_6(),i=new AbortController,n=setTimeout(()=>i.abort(),v6);try{let o=await fetch(`${e}/api/v1/licenses/validate`,{method:"POST",headers:{"Content-Type":"application/json"},signal:i.signal,body:JSON.stringify({key:t,device_fingerprint:r})});if(!o.ok)return{valid:!1,error:(await o.json().catch(()=>({}))).detail??`HTTP ${o.status}`};let s=await o.json();return{valid:s.valid,error:s.error,vtKey:s.vt_key}}catch(o){return o instanceof Error&&o.name==="AbortError"?{valid:!1,error:"License validation timed out"}:{valid:!1,error:o instanceof Error?o.message:"Connection failed"}}finally{clearTimeout(n)}}var n$=3.5,Up=class{calls=[];totalChars=0;commonSize=null;recordCommonSize(t){this.commonSize=t}record(t,r,i,n){let o=n.includes("common"),s={tool:t,slug:r,chars:i,slugsLoaded:n,commonIncluded:o,timestamp:Date.now()};this.calls.push(s),this.totalChars+=i;let a=Math.round(i/n$),c=[`${r}: ${i.toLocaleString()} chars (~${a.toLocaleString()} tokens)`,`slugs=[${n.join(",")}]`];if(!o&&!Ep.has(r)){let u=this.commonSize??0;u>0&&c.push(`common skipped (saved ~${u.toLocaleString()} chars)`)}let l=Math.round(this.totalChars/n$);c.push(`session: ${this.totalChars.toLocaleString()} chars / ${this.calls.length} calls (~${l.toLocaleString()} tokens)`),console.error(`[${V.displayName} Metrics] ${c.join(" | ")}`)}getSessionTotal(){return{chars:this.totalChars,calls:this.calls.length,estimatedTokens:Math.round(this.totalChars/n$)}}getCallHistory(){return this.calls}};function Xn(e="Press Enter to close..."){return new Promise(t=>{let r=(0,CT.createInterface)({input:process.stdin,output:process.stdout});r.question(` ${e} `,()=>{r.close(),t()})})}var gn=process.argv[2]??"",ct=De("en");gn==="--version"||gn==="-v"?console.log(Ir):gn==="install"||gn===""?b6().then(()=>Xn(ct.pressEnterToClose)).catch(async e=>{console.error(`${ct.fatalError}:`,e),await Xn(ct.pressEnterToClose),process.exit(1)}):gn==="uninstall"?$6().then(()=>Xn(ct.pressEnterToClose)).catch(async e=>{console.error(`${ct.fatalError}:`,e),await Xn(ct.pressEnterToClose),process.exit(1)}):gn==="init"?k6().then(e=>Xn(De(e).pressEnterToClose)).catch(async e=>{console.error(`${ct.fatalError}:`,e),await Xn(ct.pressEnterToClose),process.exit(1)}):gn==="serve"?w6():(console.error(`${V.displayName}: ${ct.unknownCommand} "${gn}"`),console.error(""),console.error(`${ct.usage}`),console.error(` ${V.cli} install [--license-key=KEY] ${ct.helpInstall}`),console.error(` ${V.cli} init [--force] [--lang=LANG] [--auto] ${ct.helpInit}`),console.error(` ${V.cli} uninstall ${ct.helpUninstall}`),console.error(` ${V.cli} serve ${ct.helpServe}`),Xn(ct.pressEnterToClose).then(()=>process.exit(1)));async function b6(){let e=De("en");console.log(`
330
+ `)}function Y2(e,t,r,i){let n=e.unanswered.findIndex(s=>s.id===t);if(n===-1)return i.resolvedNotFound(t);let[o]=e.unanswered.splice(n,1);return e.resolved.push(o),(0,cr.writeFileSync)(r,Yb(e,i),"utf-8"),i.resolvedSuccess(o.title)}function Q2(e,t,r,i){let n=Math.max(0,...e.unanswered.map(o=>o.id),...e.resolved.map(o=>o.id));return e.unanswered.push({id:n+1,title:t,body:[]}),(0,cr.writeFileSync)(r,Yb(e,i),"utf-8"),i.addedSuccess(t)}var X2={ja:["jp-ui-contracts","jp-llm-optimization"]};function wT(e){let t=String(e.display_language??""),r=String(e.main_language??"");e.github_communication_tone_ja=t==="ja"||r==="ja";let i=e.design;i&&typeof i=="object"&&(e.design_tool_pencil=i.tool==="pencil",e.design_tool_figma=i.tool==="figma",e.design_review=i.design_review===!0,e.design_auto_suggest=i.auto_suggest!==!1);let n=process.platform;e.os_windows=n==="win32",e.os_macos=n==="darwin",e.os_linux=n==="linux",e.shell_powershell=n==="win32";let s=X2[r||t||""];if(!s||s.length===0)return;let a=Array.isArray(e.other)?e.other:[],c=s.filter(l=>!a.includes(l));c.length!==0&&(e.other=[...a,...c])}var Ye=require("node:fs"),Qb=require("node:os"),xt=require("node:path");function Ap(e){try{return(0,Ye.realpathSync)(e)}catch{return e}}var e6="@autodevjapan/godd-mcp-alpha";function t6(){let e=(0,xt.join)(Ap(process.execPath),".."),t=(0,xt.join)(e,"node_modules","npm","bin","npx-cli.js");return(0,Ye.existsSync)(t)?t:null}function r6(){if(typeof globalThis.__pkg<"u"||process.pkg)return{command:process.execPath,args:["serve"]};let e=Ap(process.execPath),t=t6();if(t)return{command:e,args:[t,"-y",`${e6}@latest`,"serve"]};let r=process.argv[1];return r&&(0,Ye.existsSync)(r)?{command:e,args:[Ap(r),"serve"]}:{command:e,args:[r??"godd.cjs","serve"]}}function IT(e){if(!(0,Ye.existsSync)(e))return{mcpServers:{}};let t;try{t=(0,Ye.readFileSync)(e,"utf-8")}catch{return{mcpServers:{}}}try{return{mcpServers:JSON.parse(t).mcpServers??{}}}catch{let r=`${e}.bak`;try{(0,Ye.writeFileSync)(r,t,"utf-8")}catch{}(0,Ye.writeFileSync)(e,JSON.stringify({mcpServers:{}},null,2)+`
331
+ `,"utf-8");let n=De("en").corruptMcpJson.replace("{backup}",r);console.error(` [WARN] ${e} ${n}`)}return{mcpServers:{}}}function zT(e){let t=(0,xt.join)((0,Qb.homedir)(),".cursor"),r=(0,xt.join)(t,"mcp.json");(0,Ye.existsSync)(t)||(0,Ye.mkdirSync)(t,{recursive:!0});let i=IT(r),n=V.mcpKey;if(tn!==n&&i.mcpServers[tn]){let g=i.mcpServers[tn];i.mcpServers[n]||(i.mcpServers[n]=g),delete i.mcpServers[tn]}let{command:o,args:s}=r6(),a=i.mcpServers[n],c={};e?c.GODD_LICENSE_KEY=e:a?.env?.GODD_LICENSE_KEY&&(c.GODD_LICENSE_KEY=a.env.GODD_LICENSE_KEY);let l=(0,xt.dirname)(Ap(process.execPath));if(process.platform==="win32"){let g=process.env.SystemRoot??"C:\\Windows";c.PATH=[l,(0,xt.join)(g,"system32"),g,(0,xt.join)(g,"System32","Wbem")].join(xt.delimiter)}else c.PATH=[l,"/usr/local/bin","/usr/bin","/bin"].join(xt.delimiter);let u={command:o,args:s,...Object.keys(c).length>0?{env:c}:{}},d=!a,f=d||JSON.stringify(a)!==JSON.stringify(u);return f&&(i.mcpServers[n]=u,(0,Ye.writeFileSync)(r,JSON.stringify(i,null,2)+`
332
+ `,"utf-8")),{mcpJsonPath:r,status:d?"created":f?"updated":"unchanged",serverKey:n}}function PT(){let e=(0,xt.join)((0,Qb.homedir)(),".cursor","mcp.json");if(!(0,Ye.existsSync)(e))return{removed:!1,mcpJsonPath:e};let t=IT(e),r=V.mcpKey,i=!1;return t.mcpServers[r]&&(delete t.mcpServers[r],i=!0),tn!==r&&t.mcpServers[tn]&&(delete t.mcpServers[tn],i=!0),i?((0,Ye.writeFileSync)(e,JSON.stringify(t,null,2)+`
333
+ `,"utf-8"),{removed:!0,mcpJsonPath:e}):{removed:!1,mcpJsonPath:e}}var n6="AutoDevJapan/GoDD-MCP-Alpha",i6=`https://api.github.com/repos/${n6}/releases/latest`,o6=5e3;function TT(e){let t=e.match(/^[vV]?(\d+)\.(\d+)\.(\d+)/);return t?{major:Number(t[1]),minor:Number(t[2]),patch:Number(t[3])}:null}function s6(e,t){return t.major!==e.major?t.major>e.major:t.minor!==e.minor?t.minor>e.minor:t.patch>e.patch}async function a6(){let e=new AbortController,t=setTimeout(()=>e.abort(),o6);try{let r=await fetch(i6,{headers:{Accept:"application/vnd.github+json","User-Agent":`${V.mcpKey}-mcp-server/${Ir}`},signal:e.signal});if(!r.ok)return null;let i=await r.json(),n=TT(Ir),o=TT(i.tag_name);return!n||!o?null:{currentVersion:Ir,latestVersion:i.tag_name,hasUpdate:s6(n,o),releaseUrl:i.html_url}}catch{return null}finally{clearTimeout(t)}}async function Xb(e="en"){try{let t=await a6();if(!t?.hasUpdate)return;let r=De(e);console.error(""),console.error(` \u2B06 ${V.displayName} ${r.updateAvailable} ${t.latestVersion}\uFF08${r.updateCurrent} ${t.currentVersion}\uFF09`),console.error(` ${t.releaseUrl}`),console.error("")}catch{}}var Rp=require("node:crypto"),Qn=32,hc=12,e$=16,c6=32,l6=1e5;function u6(e,t){return(0,Rp.pbkdf2Sync)(e,t,l6,c6,"sha256")}function ET(e,t){let r=Buffer.from(e,"base64"),i=Qn+hc+e$;if(r.length<i)throw new Error(`Ciphertext too short: ${r.length} < ${i}`);let n=r.subarray(0,Qn),o=r.subarray(Qn,Qn+hc),s=r.subarray(Qn+hc,Qn+hc+e$),a=r.subarray(Qn+hc+e$),c=u6(t,n),l=(0,Rp.createDecipheriv)("aes-256-gcm",c,o);return l.setAuthTag(s),Buffer.concat([l.update(a),l.final()]).toString("utf-8")}var d6=/^\([^)]+\)\s*/,f6=/^([^a-zA-Z0-9]*?)([a-zA-Z0-9]+)([^a-zA-Z0-9]*?)$/,Mp=class{lexicon;constructor(t){this.lexicon=new Map;for(let r of t)r.vtForm&&this.lexicon.set(r.vtForm,r.english||r.vtForm)}get size(){return this.lexicon.size}translate(t){return this.lexicon.size===0?t:t.replace(d6,"").split(`
334
+ `).map(i=>i.trim()===""?i:i.replace(/\S+/g,n=>{let o=this.lexicon.get(n);if(o!==void 0)return o;let s=n.match(f6);if(s){let[,a,c,l]=s,u=this.lexicon.get(c);if(u!==void 0)return`${a}${u}${l}`}return n})).join(`
335
+ `)}};var p6="https://api.getgodd.dev";function n$(){return process.env.GODD_REGISTRY_URL||p6}var NT=15e3,t$=3,m6=1e3,g6=new Set([429,500,502,503,504]),h6=new Set([401,403,404]),lr=class extends Error{constructor(r,i){super(r);this.statusCode=i;this.name="RegistryApiError"}statusCode};function y6(e){if(e instanceof lr&&e.statusCode!==void 0)return h6.has(e.statusCode)?!1:g6.has(e.statusCode);if(!(e instanceof Error))return!1;let t=e.message.toLowerCase();return t.includes("timeout")||t.includes("econnreset")||t.includes("econnrefused")||t.includes("fetch failed")}function v6(e){return new Promise(t=>setTimeout(t,e))}async function r$(e,t){let r=null;for(let i=0;i<=t$;i++)try{return await e()}catch(n){if(r=n instanceof Error?n:new Error(String(n)),i>=t$||!y6(n))throw r;let o=m6*Math.pow(2,i),s=Math.floor(Math.random()*o);console.error(`[GoDD] ${t}: retry ${i+1}/${t$} in ${s}ms \u2014 ${r.message}`),await v6(s)}throw r??new Error("Unknown error")}var Lp=class{baseUrl;licenseKey;vtKey=null;translator=null;constructor(t,r){this.licenseKey=t,this.baseUrl=r??n$()}async initVtPipeline(t){this.vtKey=t;let r=await this.fetchLexicon();this.translator=new Mp(r),this.translator.size===0?console.error("[GoDD] WARNING: VT lexicon is empty \u2014 translated content may contain VT tokens"):console.error(`[GoDD] VT pipeline initialized (${this.translator.size} lexicon entries)`)}processContent(t){if(!this.vtKey)throw new Error("VT key is not available \u2014 content cannot be decrypted");let r=ET(t,this.vtKey);return this.translator?this.translator.translate(r):r}async fetchWithTimeout(t,r){let i=new AbortController,n=setTimeout(()=>i.abort(),NT);try{return await fetch(t,{...r,signal:i.signal})}catch(o){throw o instanceof Error&&o.name==="AbortError"?new Error(`Request timeout after ${NT}ms: ${t}`):o}finally{clearTimeout(n)}}async fetchLexicon(){return r$(async()=>{let t=await this.fetchWithTimeout(`${this.baseUrl}/api/v1/content/lexicon`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:this.licenseKey})});if(!t.ok)throw new lr(`Lexicon fetch failed: HTTP ${t.status}`,t.status);return(await t.json()).entries??[]},"fetchLexicon")}async resolveContent(t,r,i){return r$(async()=>{let n=await this.fetchWithTimeout(`${this.baseUrl}/api/v1/content/resolve`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:this.licenseKey,slug:t,type:r,stack:i})});if(n.status===404)throw new lr(`Content not found: ${r}/${t}`,404);if(n.status===401)throw new lr("Invalid or inactive license",401);if(!n.ok)throw new lr(`Content resolve failed: HTTP ${n.status}`,n.status);let o;try{o=await n.json()}catch{throw new Error("Invalid JSON response from Registry API")}if(typeof o.content!="string")throw new Error("Unexpected response format: missing content field");return this.processContent(o.content)},`resolveContent(${t})`)}async resolveBatchContent(t,r,i){return r$(async()=>{let n=await this.fetchWithTimeout(`${this.baseUrl}/api/v1/content/resolve-batch`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:this.licenseKey,slugs:t,type:r,stack:i})});if(n.status===401)throw new lr("Invalid or inactive license",401);if(n.status===404)throw new lr(`Batch resolve failed: no content found for slugs [${t.join(", ")}]`,404);if(!n.ok)throw new lr(`Batch resolve failed: HTTP ${n.status}`,n.status);let o;try{o=await n.json()}catch{throw new Error("Invalid JSON response from Registry API")}let s={};for(let[a,c]of Object.entries(o.contents??{}))s[a]=this.processContent(c);return s},`resolveBatchContent([${t.join(", ")}])`)}getLicenseKey(){return this.licenseKey}async logUsage(t,r,i,n){let o=s=>{console.error(`[GoDD] ${JSON.stringify({component:"RegistryClient",toolName:t,...s})}`)};try{let s=await this.fetchWithTimeout(`${this.baseUrl}/api/v1/usage/log`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:this.licenseKey,tool_name:t,stack_context:r,duration_ms:i,prompt_chars:n})});s.ok||o({event:"logUsage_http_error",httpStatus:s.status,message:`usage log rejected: HTTP ${s.status}`})}catch(s){o({event:"logUsage_fetch_failed",message:s instanceof Error?s.message:String(s)})}}};var OT=require("node:crypto"),zr=require("node:os"),_6=15e3;function b6(){let e=[(0,zr.hostname)(),(0,zr.platform)(),(0,zr.arch)(),(0,zr.cpus)()[0]?.model??"unknown",(0,zr.cpus)().length.toString()].join("|");return(0,OT.createHash)("sha256").update(e).digest("hex").slice(0,32)}async function jT(e,t){let r=b6(),i=new AbortController,n=setTimeout(()=>i.abort(),_6);try{let o=await fetch(`${e}/api/v1/licenses/validate`,{method:"POST",headers:{"Content-Type":"application/json"},signal:i.signal,body:JSON.stringify({key:t,device_fingerprint:r})});if(!o.ok)return{valid:!1,error:(await o.json().catch(()=>({}))).detail??`HTTP ${o.status}`};let s=await o.json();return{valid:s.valid,error:s.error,vtKey:s.vt_key}}catch(o){return o instanceof Error&&o.name==="AbortError"?{valid:!1,error:"License validation timed out"}:{valid:!1,error:o instanceof Error?o.message:"Connection failed"}}finally{clearTimeout(n)}}var i$=3.5,Up=class{calls=[];totalChars=0;commonSize=null;recordCommonSize(t){this.commonSize=t}record(t,r,i,n){let o=n.includes("common"),s={tool:t,slug:r,chars:i,slugsLoaded:n,commonIncluded:o,timestamp:Date.now()};this.calls.push(s),this.totalChars+=i;let a=Math.round(i/i$),c=[`${r}: ${i.toLocaleString()} chars (~${a.toLocaleString()} tokens)`,`slugs=[${n.join(",")}]`];if(!o&&!Ep.has(r)){let u=this.commonSize??0;u>0&&c.push(`common skipped (saved ~${u.toLocaleString()} chars)`)}let l=Math.round(this.totalChars/i$);c.push(`session: ${this.totalChars.toLocaleString()} chars / ${this.calls.length} calls (~${l.toLocaleString()} tokens)`),console.error(`[${V.displayName} Metrics] ${c.join(" | ")}`)}getSessionTotal(){return{chars:this.totalChars,calls:this.calls.length,estimatedTokens:Math.round(this.totalChars/i$)}}getCallHistory(){return this.calls}};function Xn(e="Press Enter to close..."){return new Promise(t=>{let r=(0,DT.createInterface)({input:process.stdin,output:process.stdout});r.question(` ${e} `,()=>{r.close(),t()})})}var gn=process.argv[2]??"",ct=De("en");gn==="--version"||gn==="-v"?console.log(Ir):gn==="install"||gn===""?$6().then(()=>Xn(ct.pressEnterToClose)).catch(async e=>{console.error(`${ct.fatalError}:`,e),await Xn(ct.pressEnterToClose),process.exit(1)}):gn==="uninstall"?k6().then(()=>Xn(ct.pressEnterToClose)).catch(async e=>{console.error(`${ct.fatalError}:`,e),await Xn(ct.pressEnterToClose),process.exit(1)}):gn==="init"?S6().then(e=>Xn(De(e).pressEnterToClose)).catch(async e=>{console.error(`${ct.fatalError}:`,e),await Xn(ct.pressEnterToClose),process.exit(1)}):gn==="serve"?I6():(console.error(`${V.displayName}: ${ct.unknownCommand} "${gn}"`),console.error(""),console.error(`${ct.usage}`),console.error(` ${V.cli} install [--license-key=KEY] ${ct.helpInstall}`),console.error(` ${V.cli} init [--force] [--lang=LANG] [--auto] ${ct.helpInit}`),console.error(` ${V.cli} uninstall ${ct.helpUninstall}`),console.error(` ${V.cli} serve ${ct.helpServe}`),Xn(ct.pressEnterToClose).then(()=>process.exit(1)));async function $6(){let e=De("en");console.log(`
337
336
  ${V.displayName} MCP Server v${Ir} \u2014 Installer
338
- `);let r=process.argv.find(i=>i.startsWith("--license-key="))?.split("=")[1]??process.env.GODD_LICENSE_KEY;try{let i=IT(r);switch(i.status){case"created":console.log(` \u2713 ${e.installSuccess}`),console.log(` Config: ${i.mcpJsonPath}`),console.log(` Server key: "${i.serverKey}"`);break;case"updated":console.log(` \u2713 ${e.installUpdated} (${i.mcpJsonPath})`),console.log(` Server key: "${i.serverKey}"`);break;case"unchanged":console.log(` \u2713 ${e.installUnchanged} (${i.mcpJsonPath})`),console.log(` Server key: "${i.serverKey}"`);break}r||(console.log(""),console.log(` \u26A0 ${e.licenseNotSet}`)),console.log(""),console.log(` \u2192 ${e.restartCursor}`),await Qb(),console.log("")}catch(i){console.error(` \u2717 ${e.installFailed}`,i),process.exit(1)}}async function $6(){let e=De("en");console.log(`
337
+ `);let r=process.argv.find(i=>i.startsWith("--license-key="))?.split("=")[1]??process.env.GODD_LICENSE_KEY;try{let i=zT(r);switch(i.status){case"created":console.log(` \u2713 ${e.installSuccess}`),console.log(` Config: ${i.mcpJsonPath}`),console.log(` Server key: "${i.serverKey}"`);break;case"updated":console.log(` \u2713 ${e.installUpdated} (${i.mcpJsonPath})`),console.log(` Server key: "${i.serverKey}"`);break;case"unchanged":console.log(` \u2713 ${e.installUnchanged} (${i.mcpJsonPath})`),console.log(` Server key: "${i.serverKey}"`);break}r||(console.log(""),console.log(` \u26A0 ${e.licenseNotSet}`)),console.log(""),console.log(` \u2192 ${e.restartCursor}`),await Xb(),console.log("")}catch(i){console.error(` \u2717 ${e.installFailed}`,i),process.exit(1)}}async function k6(){let e=De("en");console.log(`
339
338
  ${V.displayName} MCP Server \u2014 ${e.uninstallTitle}
340
- `);try{let t=zT();t.removed?console.log(` \u2713 ${e.uninstallSuccess} (${t.mcpJsonPath})`):console.log(` \u2713 ${e.uninstallNotFound}`),console.log("")}catch(t){console.error(` \u2717 ${e.uninstallFailed}`,t),process.exit(1)}}async function k6(){let e=process.argv.includes("--force"),t=process.argv.includes("--auto"),i=process.argv.find(c=>c.startsWith("--lang="))?.split("=")[1],n=xo(i)??"en",o=De(n);console.log(`
339
+ `);try{let t=PT();t.removed?console.log(` \u2713 ${e.uninstallSuccess} (${t.mcpJsonPath})`):console.log(` \u2713 ${e.uninstallNotFound}`),console.log("")}catch(t){console.error(` \u2717 ${e.uninstallFailed}`,t),process.exit(1)}}async function S6(){let e=process.argv.includes("--force"),t=process.argv.includes("--auto"),i=process.argv.find(c=>c.startsWith("--lang="))?.split("=")[1],n=xo(i)??"en",o=De(n);console.log(`
341
340
  ${V.displayName} \u2014 ${o.initTitle}
342
341
  `),t&&console.log(` ${o.initAutoHint}
343
342
  `);let s=t?bT(process.cwd(),{force:e,language:i}):await _T(process.cwd(),{force:e,language:i});if(s.status==="already_exists")return console.log(` \u2713 ${V.configFile} ${o.configExists} (${s.configPath})`),console.log(` ${o.useForceFlag}`),n;let a=De(s.config.display_language);return console.log(`
344
- \u2713 ${V.configFile} ${a.configCreated} (${s.configPath})`),console.log(""),s.config.display_language}function S6(e,t,r){return e==="config"?kT(process.cwd(),r):e==="questions"?ST(process.cwd(),t?.action??"list",r):""}async function x6(e,t,r,i="en",n){let o=fT(e)?Vb(e):void 0;if(o){let s=await t.resolveBatchContent(o,"prompt",r);n&&s.common&&n(s.common.length);let a=o.filter(l=>!s[l]);a.length>0&&console.error(`[${V.displayName}] WARNING: missing slugs in composite "${e}": ${a.join(", ")}`);let c=o.filter(l=>s[l]).map(l=>s[l]).join(`
343
+ \u2713 ${V.configFile} ${a.configCreated} (${s.configPath})`),console.log(""),s.config.display_language}function x6(e,t,r){return e==="config"?ST(process.cwd(),r):e==="questions"?xT(process.cwd(),t?.action??"list",r):""}async function w6(e,t,r,i="en",n){let o=fT(e)?Kb(e):void 0;if(o){let s=await t.resolveBatchContent(o,"prompt",r);n&&s.common&&n(s.common.length);let a=o.filter(l=>!s[l]);a.length>0&&console.error(`[${V.displayName}] WARNING: missing slugs in composite "${e}": ${a.join(", ")}`);let c=o.filter(l=>s[l]).map(l=>s[l]).join(`
345
344
 
346
345
  ---
347
346
 
@@ -349,4 +348,4 @@ ${i.noUnanswered}`;let s=(0,cr.readFileSync)(o,"utf-8"),a=B2(s),c=t.trim().toLow
349
348
 
350
349
  ---
351
350
 
352
- ${c}`:c}return t.resolveContent(e,"prompt",r)}async function jT(e,t,r){let{localArgs:i,registryClient:n,stack:o,configIssues:s,displayLang:a,onCommonSize:c}=r,l=De(a);if(Kb.has(e))try{return{ok:!0,text:S6(e,i,a),slugsLoaded:[e]}}catch(d){return{ok:!1,text:`${l.localToolFailed}: ${e}. ${d instanceof Error?d.message:""}`,slugsLoaded:[e]}}if(s.length>0)return{ok:!1,text:dT(s,a),slugsLoaded:[]};if(!n)return{ok:!1,text:l.licenseNotConfigured,slugsLoaded:[]};let u=Vb(e)??[e];try{return{ok:!0,text:await x6(e,n,o,a,c),slugsLoaded:u}}catch(d){return{ok:!1,text:`${t==="prompt"?l.resolvePromptFailed:l.resolveToolFailed}: ${e}. ${d instanceof Error?d.message:""}`,slugsLoaded:u}}}function w6(){let e=process.env.GODD_LICENSE_KEY,t=null,r={},i=[],n="en",o=new Up,s=new $f({name:`${V.mcpKey}-mcp-server`,version:Ir},{capabilities:{prompts:{},tools:{}}});s.setRequestHandler(ey,async()=>({prompts:Gb(n)})),s.setRequestHandler(ty,async l=>{let u=l.params.name,d=u.replace(V.toolPrefix,""),f=await jT(d,"prompt",{localArgs:l.params.arguments,registryClient:t,stack:r,configIssues:i,displayLang:n,onCommonSize:p=>o.recordCommonSize(p)});if(f.ok){let p=f.text.length;o.record(u,d,p,f.slugsLoaded)}return{messages:[{role:"user",content:{type:"text",text:f.text}}]}}),s.setRequestHandler(sy,async()=>({tools:pT(n)})),s.setRequestHandler(Qs,async l=>{let u=l.params.name,d=u.replace(V.toolPrefix,""),f=await jT(d,"tool",{localArgs:l.params.arguments,registryClient:t,stack:r,configIssues:i,displayLang:n,onCommonSize:g=>o.recordCommonSize(g)});if(!f.ok)return{isError:!0,content:[{type:"text",text:f.text}]};let p=f.text.length;return o.record(u,d,p,f.slugsLoaded),t&&!Kb.has(d)&&t.logUsage(u,JSON.stringify(r),void 0,p),{content:[{type:"text",text:f.text}]}});let a=()=>{s.close().finally(()=>process.exit(0))};process.once("SIGINT",a),process.once("SIGTERM",a);async function c(){let l=De("en");e||(console.error(`${V.displayName}: ${l.licenseMissing}`),console.error(` ${l.licenseMissingHint}`),process.exit(1));let u=await OT(r$(),e);u.valid||(console.error(`${V.displayName}: ${l.licenseFailed} \u2014 ${u.error}`),process.exit(1)),t=new Lp(e),u.vtKey&&await t.initVtPipeline(u.vtKey);let d=lc();r=d?{...d}:{},xT(r),n=xo(d?.display_language)??"en";let f=De(n);if(!d)console.error(`[${V.displayName}] \u26A0 ${V.configFile} ${f.configNotFound}`),console.error(` ${f.configNotFoundHint}`);else if(i=Tp(d),i.length>0){console.error(`[${V.displayName}] \u26A0 ${V.configFile} ${f.configUnknownValues}`);for(let g of i)console.error(` ${g.field}: "${g.value}"${g.suggestion?` \u2192 ${f.didYouMean} "${g.suggestion}"?`:""}`)}let p=new Sf;await s.connect(p),console.error(`${V.displayName} MCP Server v${Ir} ${f.serverStarted}`),Qb(n)}c().catch(l=>{console.error(`${De("en").fatalError}:`,l),process.exit(1)})}
351
+ ${c}`:c}return t.resolveContent(e,"prompt",r)}async function CT(e,t,r){let{localArgs:i,registryClient:n,stack:o,configIssues:s,displayLang:a,onCommonSize:c}=r,l=De(a);if(Gb.has(e))try{return{ok:!0,text:x6(e,i,a),slugsLoaded:[e]}}catch(d){return{ok:!1,text:`${l.localToolFailed}: ${e}. ${d instanceof Error?d.message:""}`,slugsLoaded:[e]}}if(s.length>0)return{ok:!1,text:dT(s,a),slugsLoaded:[]};if(!n)return{ok:!1,text:l.licenseNotConfigured,slugsLoaded:[]};let u=Kb(e)??[e];try{return{ok:!0,text:await w6(e,n,o,a,c),slugsLoaded:u}}catch(d){return{ok:!1,text:`${t==="prompt"?l.resolvePromptFailed:l.resolveToolFailed}: ${e}. ${d instanceof Error?d.message:""}`,slugsLoaded:u}}}function I6(){let e=process.env.GODD_LICENSE_KEY,t=null,r={},i=[],n="en",o=new Up,s=new $f({name:`${V.mcpKey}-mcp-server`,version:Ir},{capabilities:{prompts:{},tools:{}}});s.setRequestHandler(ey,async()=>({prompts:Bb(n)})),s.setRequestHandler(ty,async l=>{let u=l.params.name,d=u.replace(V.toolPrefix,""),f=await CT(d,"prompt",{localArgs:l.params.arguments,registryClient:t,stack:r,configIssues:i,displayLang:n,onCommonSize:p=>o.recordCommonSize(p)});if(f.ok){let p=f.text.length;o.record(u,d,p,f.slugsLoaded)}return{messages:[{role:"user",content:{type:"text",text:f.text}}]}}),s.setRequestHandler(sy,async()=>({tools:pT(n)})),s.setRequestHandler(Xs,async l=>{let u=l.params.name,d=u.replace(V.toolPrefix,""),f=await CT(d,"tool",{localArgs:l.params.arguments,registryClient:t,stack:r,configIssues:i,displayLang:n,onCommonSize:g=>o.recordCommonSize(g)});if(!f.ok)return{isError:!0,content:[{type:"text",text:f.text}]};let p=f.text.length;return o.record(u,d,p,f.slugsLoaded),t&&!Gb.has(d)&&t.logUsage(u,JSON.stringify(r),void 0,p),{content:[{type:"text",text:f.text}]}});let a=()=>{s.close().finally(()=>process.exit(0))};process.once("SIGINT",a),process.once("SIGTERM",a);async function c(){let l=De("en");e||(console.error(`${V.displayName}: ${l.licenseMissing}`),console.error(` ${l.licenseMissingHint}`),process.exit(1));let u=await jT(n$(),e);u.valid||(console.error(`${V.displayName}: ${l.licenseFailed} \u2014 ${u.error}`),process.exit(1)),t=new Lp(e),u.vtKey&&await t.initVtPipeline(u.vtKey);let d=uc();r=d?{...d}:{},wT(r),n=xo(d?.display_language)??"en";let f=De(n);if(!d)console.error(`[${V.displayName}] \u26A0 ${V.configFile} ${f.configNotFound}`),console.error(` ${f.configNotFoundHint}`);else if(i=Tp(d),i.length>0){console.error(`[${V.displayName}] \u26A0 ${V.configFile} ${f.configUnknownValues}`);for(let g of i)console.error(` ${g.field}: "${g.value}"${g.suggestion?` \u2192 ${f.didYouMean} "${g.suggestion}"?`:""}`)}let p=new Sf;await s.connect(p),console.error(`${V.displayName} MCP Server v${Ir} ${f.serverStarted}`),Xb(n)}c().catch(l=>{console.error(`${De("en").fatalError}:`,l),process.exit(1)})}