})=>{let o=e===1?"property":"properties";return(0,ay.str)`must have ${o} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:o}})=>(0,ay._)`{property: ${t},
    missingProperty: ${o},
    depsCount: ${e},
    deps: ${r}}`};var s4={keyword:"dependencies",type:"object",schemaType:"object",error:lr.error,code(t){let[e,r]=c4(t);xS(t,e),wS(t,r)}};function c4({schema:t}){let e={},r={};for(let o in t){if(o==="__proto__")continue;let n=Array.isArray(t[o])?e:r;n[o]=t[o]}return[e,r]}function xS(t,e=t.schema){let{gen:r,data:o,it:n}=t;if(Object.keys(e).length===0)return;let i=r.let("missing");for(let a in e){let c=e[a];if(c.length===0)continue;let u=(0,zc.propertyInData)(r,o,a,n.opts.ownProperties);t.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),n.allErrors?r.if(u,()=>{for(let l of c)(0,zc.checkReportMissingProp)(t,l)}):(r.if((0,ay._)`${u} && (${(0,zc.checkMissingProp)(t,c,i)})`),(0,zc.reportMissingProp)(t,i),r.else())}}lr.validatePropertyDeps=xS;function wS(t,e=t.schema){let{gen:r,data:o,keyword:n,it:i}=t,a=r.name("valid");for(let c in e)(0,a4.alwaysValidSchema)(i,e[c])||(r.if((0,zc.propertyInData)(r,o,c,i.opts.ownProperties),()=>{let u=t.subschema({keyword:n,schemaProp:c},a);t.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),t.ok(a))}lr.validateSchemaDeps=wS;lr.default=s4});var zS=z(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var SS=ee(),u4=fe(),l4={message:"property name must be valid",params:({params:t})=>(0,SS._)`{propertyName: ${t.propertyName}}`},d4={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:l4,code(t){let{gen:e,schema:r,data:o,it:n}=t;if((0,u4.alwaysValidSchema)(n,r))return;let i=e.name("valid");e.forIn("key",o,a=>{t.setParams({propertyName:a}),t.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},i),e.if((0,SS.not)(i),()=>{t.error(!0),n.allErrors||e.break()})}),t.ok(i)}};sy.default=d4});var uy=z(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});var ep=Ct(),Kt=ee(),f4=zr(),tp=fe(),p4={message:"must NOT have additional properties",params:({params:t})=>(0,Kt._)`{additionalProperty: ${t.additionalProperty}}`},m4={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:p4,code(t){let{gen:e,schema:r,parentSchema:o,data:n,errsCount:i,it:a}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,tp.alwaysValidSchema)(a,r))return;let l=(0,ep.allSchemaProperties)(o.properties),d=(0,ep.allSchemaProperties)(o.patternProperties);s(),t.ok((0,Kt._)`${i} === ${f4.default.errors}`);function s(){e.forIn("key",n,g=>{!l.length&&!d.length?m(g):e.if(f(g),()=>m(g))})}function f(g){let y;if(l.length>8){let w=(0,tp.schemaRefOrVal)(a,o.properties,"properties");y=(0,ep.isOwnProperty)(e,w,g)}else l.length?y=(0,Kt.or)(...l.map(w=>(0,Kt._)`${g} === ${w}`)):y=Kt.nil;return d.length&&(y=(0,Kt.or)(y,...d.map(w=>(0,Kt._)`${(0,ep.usePattern)(t,w)}.test(${g})`))),(0,Kt.not)(y)}function p(g){e.code((0,Kt._)`delete ${n}[${g}]`)}function m(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){p(g);return}if(r===!1){t.setParams({additionalProperty:g}),t.error(),c||e.break();return}if(typeof r=="object"&&!(0,tp.alwaysValidSchema)(a,r)){let y=e.name("valid");u.removeAdditional==="failing"?(h(g,y,!1),e.if((0,Kt.not)(y),()=>{t.reset(),p(g)})):(h(g,y),c||e.if((0,Kt.not)(y),()=>e.break()))}}function h(g,y,w){let k={keyword:"additionalProperties",dataProp:g,dataPropType:tp.Type.Str};w===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(k,y)}}};cy.default=m4});var TS=z(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});var h4=fc(),IS=Ct(),ly=fe(),PS=uy(),g4={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:o,data:n,it:i}=t;i.opts.removeAdditional==="all"&&o.additionalProperties===void 0&&PS.default.code(new h4.KeywordCxt(i,PS.default,"additionalProperties"));let a=(0,IS.allSchemaProperties)(r);for(let s of a)i.definedProperties.add(s);i.opts.unevaluated&&a.length&&i.props!==!0&&(i.props=ly.mergeEvaluated.props(e,(0,ly.toHash)(a),i.props));let c=a.filter(s=>!(0,ly.alwaysValidSchema)(i,r[s]));if(c.length===0)return;let u=e.name("valid");for(let s of c)l(s)?d(s):(e.if((0,IS.propertyInData)(e,n,s,i.opts.ownProperties)),d(s),i.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(s),t.ok(u);function l(s){return i.opts.useDefaults&&!i.compositeRule&&r[s].default!==void 0}function d(s){t.subschema({keyword:"properties",schemaProp:s,dataProp:s},u)}}};dy.default=g4});var RS=z(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var ES=Ct(),rp=ee(),OS=fe(),jS=fe(),v4={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:o,parentSchema:n,it:i}=t,{opts:a}=i,c=(0,ES.allSchemaProperties)(r),u=c.filter(h=>(0,OS.alwaysValidSchema)(i,r[h]));if(c.length===0||u.length===c.length&&(!i.opts.unevaluated||i.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&n.properties,d=e.name("valid");i.props!==!0&&!(i.props instanceof rp.Name)&&(i.props=(0,jS.evaluatedPropsToName)(e,i.props));let{props:s}=i;f();function f(){for(let h of c)l&&p(h),i.allErrors?m(h):(e.var(d,!0),m(h),e.if(d))}function p(h){for(let g in l)new RegExp(h).test(g)&&(0,OS.checkStrictMode)(i,`property ${g} matches pattern ${h} (use allowMatchingProperties)`)}function m(h){e.forIn("key",o,g=>{e.if((0,rp._)`${(0,ES.usePattern)(t,h)}.test(${g})`,()=>{let y=u.includes(h);y||t.subschema({keyword:"patternProperties",schemaProp:h,dataProp:g,dataPropType:jS.Type.Str},d),i.opts.unevaluated&&s!==!0?e.assign((0,rp._)`${s}[${g}]`,!0):!y&&!i.allErrors&&e.if((0,rp.not)(d),()=>e.break())})})}}};fy.default=v4});var NS=z(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var _4=fe(),y4={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:o}=t;if((0,_4.alwaysValidSchema)(o,r)){t.fail();return}let n=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),t.failResult(n,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};py.default=y4});var CS=z(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});var $4=Ct(),b4={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:$4.validateUnion,error:{message:"must match a schema in anyOf"}};my.default=b4});var DS=z(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var np=ee(),x4=fe(),w4={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,np._)`{passingSchemas: ${t.passing}}`},k4={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:w4,code(t){let{gen:e,schema:r,parentSchema:o,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&o.discriminator)return;let i=r,a=e.let("valid",!1),c=e.let("passing",null),u=e.name("_valid");t.setParams({passing:c}),e.block(l),t.result(a,()=>t.reset(),()=>t.error(!0));function l(){i.forEach((d,s)=>{let f;(0,x4.alwaysValidSchema)(n,d)?e.var(u,!0):f=t.subschema({keyword:"oneOf",schemaProp:s,compositeRule:!0},u),s>0&&e.if((0,np._)`${u} && ${a}`).assign(a,!1).assign(c,(0,np._)`[${c}, ${s}]`).else(),e.if(u,()=>{e.assign(a,!0),e.assign(c,s),f&&t.mergeEvaluated(f,np.Name)})})}}};hy.default=k4});var US=z(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var S4=fe(),z4={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:o}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let n=e.name("valid");r.forEach((i,a)=>{if((0,S4.alwaysValidSchema)(o,i))return;let c=t.subschema({keyword:"allOf",schemaProp:a},n);t.ok(n),t.mergeEvaluated(c)})}};gy.default=z4});var MS=z(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var op=ee(),ZS=fe(),I4={message:({params:t})=>(0,op.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,op._)`{failingKeyword: ${t.ifClause}}`},P4={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:I4,code(t){let{gen:e,parentSchema:r,it:o}=t;r.then===void 0&&r.else===void 0&&(0,ZS.checkStrictMode)(o,'"if" without "then" and "else" is ignored');let n=AS(o,"then"),i=AS(o,"else");if(!n&&!i)return;let a=e.let("valid",!0),c=e.name("_valid");if(u(),t.reset(),n&&i){let d=e.let("ifClause");t.setParams({ifClause:d}),e.if(c,l("then",d),l("else",d))}else n?e.if(c,l("then")):e.if((0,op.not)(c),l("else"));t.pass(a,()=>t.error(!0));function u(){let d=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);t.mergeEvaluated(d)}function l(d,s){return()=>{let f=t.subschema({keyword:d},c);e.assign(a,c),t.mergeValidEvaluated(f,a),s?e.assign(s,(0,op._)`${d}`):t.setParams({ifClause:d})}}}};function AS(t,e){let r=t.schema[e];return r!==void 0&&!(0,ZS.alwaysValidSchema)(t,r)}vy.default=P4});var qS=z(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var T4=fe(),E4={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,T4.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};_y.default=E4});var LS=z(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var O4=ty(),j4=_S(),R4=ry(),N4=$S(),C4=bS(),D4=kS(),U4=zS(),A4=uy(),Z4=TS(),M4=RS(),q4=NS(),L4=CS(),V4=DS(),F4=US(),J4=MS(),H4=qS();function W4(t=!1){let e=[q4.default,L4.default,V4.default,F4.default,J4.default,H4.default,U4.default,A4.default,D4.default,Z4.default,M4.default];return t?e.push(j4.default,N4.default):e.push(O4.default,R4.default),e.push(C4.default),e}yy.default=W4});var VS=z($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var Ne=ee(),B4={message:({schemaCode:t})=>(0,Ne.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Ne._)`{format: ${t}}`},G4={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:B4,code(t,e){let{gen:r,data:o,$data:n,schema:i,schemaCode:a,it:c}=t,{opts:u,errSchemaPath:l,schemaEnv:d,self:s}=c;if(!u.validateFormats)return;n?f():p();function f(){let m=r.scopeValue("formats",{ref:s.formats,code:u.code.formats}),h=r.const("fDef",(0,Ne._)`${m}[${a}]`),g=r.let("fType"),y=r.let("format");r.if((0,Ne._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(g,(0,Ne._)`${h}.type || "string"`).assign(y,(0,Ne._)`${h}.validate`),()=>r.assign(g,(0,Ne._)`"string"`).assign(y,h)),t.fail$data((0,Ne.or)(w(),k()));function w(){return u.strictSchema===!1?Ne.nil:(0,Ne._)`${a} && !${y}`}function k(){let b=d.$async?(0,Ne._)`(${h}.async ? await ${y}(${o}) : ${y}(${o}))`:(0,Ne._)`${y}(${o})`,x=(0,Ne._)`(typeof ${y} == "function" ? ${b} : ${y}.test(${o}))`;return(0,Ne._)`${y} && ${y} !== true && ${g} === ${e} && !${x}`}}function p(){let m=s.formats[i];if(!m){w();return}if(m===!0)return;let[h,g,y]=k(m);h===e&&t.pass(b());function w(){if(u.strictSchema===!1){s.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${i}" ignored in schema at path "${l}"`}}function k(x){let D=x instanceof RegExp?(0,Ne.regexpCode)(x):u.code.formats?(0,Ne._)`${u.code.formats}${(0,Ne.getProperty)(i)}`:void 0,V=r.scopeValue("formats",{key:i,ref:x,code:D});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,Ne._)`${V}.validate`]:["string",x,V]}function b(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!d.$async)throw new Error("async format in sync schema");return(0,Ne._)`await ${y}(${o})`}return typeof g=="function"?(0,Ne._)`${y}(${o})`:(0,Ne._)`${y}.test(${o})`}}}};$y.default=G4});var FS=z(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var K4=VS(),X4=[K4.default];by.default=X4});var JS=z(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.contentVocabulary=ki.metadataVocabulary=void 0;ki.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ki.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var WS=z(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var Y4=eS(),Q4=mS(),eC=LS(),tC=FS(),HS=JS(),rC=[Y4.default,Q4.default,(0,eC.default)(),tC.default,HS.metadataVocabulary,HS.contentVocabulary];xy.default=rC});var GS=z(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.DiscrError=void 0;var BS;(function(t){t.Tag="tag",t.Mapping="mapping"})(BS||(ip.DiscrError=BS={}))});var XS=z(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var Si=ee(),wy=GS(),KS=Mf(),nC=pc(),oC=fe(),iC={message:({params:{discrError:t,tagName:e}})=>t===wy.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,Si._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},aC={keyword:"discriminator",type:"object",schemaType:"object",error:iC,code(t){let{gen:e,data:r,schema:o,parentSchema:n,it:i}=t,{oneOf:a}=n;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=o.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(o.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=e.let("valid",!1),l=e.const("tag",(0,Si._)`${r}${(0,Si.getProperty)(c)}`);e.if((0,Si._)`typeof ${l} == "string"`,()=>d(),()=>t.error(!1,{discrError:wy.DiscrError.Tag,tag:l,tagName:c})),t.ok(u);function d(){let p=f();e.if(!1);for(let m in p)e.elseIf((0,Si._)`${l} === ${m}`),e.assign(u,s(p[m]));e.else(),t.error(!1,{discrError:wy.DiscrError.Mapping,tag:l,tagName:c}),e.endIf()}function s(p){let m=e.name("valid"),h=t.subschema({keyword:"oneOf",schemaProp:p},m);return t.mergeEvaluated(h,Si.Name),m}function f(){var p;let m={},h=y(n),g=!0;for(let b=0;b<a.length;b++){let x=a[b];if(x!=null&&x.$ref&&!(0,oC.schemaHasRulesButRef)(x,i.self.RULES)){let V=x.$ref;if(x=KS.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,V),x instanceof KS.SchemaEnv&&(x=x.schema),x===void 0)throw new nC.default(i.opts.uriResolver,i.baseId,V)}let D=(p=x==null?void 0:x.properties)===null||p===void 0?void 0:p[c];if(typeof D!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&(h||y(x)),w(D,b)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return m;function y({required:b}){return Array.isArray(b)&&b.includes(c)}function w(b,x){if(b.const)k(b.const,x);else if(b.enum)for(let D of b.enum)k(D,x);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function k(b,x){if(typeof b!="string"||b in m)throw new Error(`discriminator: "${c}" values must be unique strings`);m[b]=x}}}};ky.default=aC});var YS=z((eF,sC)=>{sC.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 zy=z((ze,Sy)=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.MissingRefError=ze.ValidationError=ze.CodeGen=ze.Name=ze.nil=ze.stringify=ze.str=ze._=ze.KeywordCxt=ze.Ajv=void 0;var cC=Bk(),uC=WS(),lC=XS(),QS=YS(),dC=["/properties"],ap="http://json-schema.org/draft-07/schema",zi=class extends cC.default{_addVocabularies(){super._addVocabularies(),uC.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(lC.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(QS,dC):QS;this.addMetaSchema(e,ap,!1),this.refs["http://json-schema.org/schema"]=ap}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ap)?ap:void 0)}};ze.Ajv=zi;Sy.exports=ze=zi;Sy.exports.Ajv=zi;Object.defineProperty(ze,"__esModule",{value:!0});ze.default=zi;var fC=fc();Object.defineProperty(ze,"KeywordCxt",{enumerable:!0,get:function(){return fC.KeywordCxt}});var Ii=ee();Object.defineProperty(ze,"_",{enumerable:!0,get:function(){return Ii._}});Object.defineProperty(ze,"str",{enumerable:!0,get:function(){return Ii.str}});Object.defineProperty(ze,"stringify",{enumerable:!0,get:function(){return Ii.stringify}});Object.defineProperty(ze,"nil",{enumerable:!0,get:function(){return Ii.nil}});Object.defineProperty(ze,"Name",{enumerable:!0,get:function(){return Ii.Name}});Object.defineProperty(ze,"CodeGen",{enumerable:!0,get:function(){return Ii.CodeGen}});var pC=Af();Object.defineProperty(ze,"ValidationError",{enumerable:!0,get:function(){return pC.default}});var mC=pc();Object.defineProperty(ze,"MissingRefError",{enumerable:!0,get:function(){return mC.default}})});var s0=z(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.formatNames=fr.fastFormats=fr.fullFormats=void 0;function dr(t,e){return{validate:t,compare:e}}fr.fullFormats={date:dr(n0,Ey),time:dr(Py(!0),Oy),"date-time":dr(e0(!0),i0),"iso-time":dr(Py(),o0),"iso-date-time":dr(e0(),a0),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:$C,"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:IC,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:bC,int32:{type:"number",validate:kC},int64:{type:"number",validate:SC},float:{type:"number",validate:r0},double:{type:"number",validate:r0},password:!0,binary:!0};fr.fastFormats={...fr.fullFormats,date:dr(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Ey),time:dr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Oy),"date-time":dr(/^\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,i0),"iso-time":dr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,o0),"iso-date-time":dr(/^\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,a0),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};fr.formatNames=Object.keys(fr.fullFormats);function hC(t){return t%4===0&&(t%100!==0||t%400===0)}var gC=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,vC=[0,31,28,31,30,31,30,31,31,30,31,30,31];function n0(t){let e=gC.exec(t);if(!e)return!1;let r=+e[1],o=+e[2],n=+e[3];return o>=1&&o<=12&&n>=1&&n<=(o===2&&hC(r)?29:vC[o])}function Ey(t,e){if(t&&e)return t>e?1:t<e?-1:0}var Iy=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Py(t){return function(r){let o=Iy.exec(r);if(!o)return!1;let n=+o[1],i=+o[2],a=+o[3],c=o[4],u=o[5]==="-"?-1:1,l=+(o[6]||0),d=+(o[7]||0);if(l>23||d>59||t&&!c)return!1;if(n<=23&&i<=59&&a<60)return!0;let s=i-d*u,f=n-l*u-(s<0?1:0);return(f===23||f===-1)&&(s===59||s===-1)&&a<61}}function Oy(t,e){if(!(t&&e))return;let r=new Date("2020-01-01T"+t).valueOf(),o=new Date("2020-01-01T"+e).valueOf();if(r&&o)return r-o}function o0(t,e){if(!(t&&e))return;let r=Iy.exec(t),o=Iy.exec(e);if(r&&o)return t=r[1]+r[2]+r[3],e=o[1]+o[2]+o[3],t>e?1:t<e?-1:0}var Ty=/t|\s/i;function e0(t){let e=Py(t);return function(o){let n=o.split(Ty);return n.length===2&&n0(n[0])&&e(n[1])}}function i0(t,e){if(!(t&&e))return;let r=new Date(t).valueOf(),o=new Date(e).valueOf();if(r&&o)return r-o}function a0(t,e){if(!(t&&e))return;let[r,o]=t.split(Ty),[n,i]=e.split(Ty),a=Ey(r,n);if(a!==void 0)return a||Oy(o,i)}var _C=/\/|:/,yC=/^(?:[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 $C(t){return _C.test(t)&&yC.test(t)}var t0=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function bC(t){return t0.lastIndex=0,t0.test(t)}var xC=-(2**31),wC=2**31-1;function kC(t){return Number.isInteger(t)&&t<=wC&&t>=xC}function SC(t){return Number.isInteger(t)}function r0(){return!0}var zC=/[^\\]\\Z/;function IC(t){if(zC.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var c0=z(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.formatLimitDefinition=void 0;var PC=zy(),Xt=ee(),gn=Xt.operators,sp={formatMaximum:{okStr:"<=",ok:gn.LTE,fail:gn.GT},formatMinimum:{okStr:">=",ok:gn.GTE,fail:gn.LT},formatExclusiveMaximum:{okStr:"<",ok:gn.LT,fail:gn.GTE},formatExclusiveMinimum:{okStr:">",ok:gn.GT,fail:gn.LTE}},TC={message:({keyword:t,schemaCode:e})=>(0,Xt.str)`should be ${sp[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Xt._)`{comparison: ${sp[t].okStr}, limit: ${e}}`};Pi.formatLimitDefinition={keyword:Object.keys(sp),type:"string",schemaType:"string",$data:!0,error:TC,code(t){let{gen:e,data:r,schemaCode:o,keyword:n,it:i}=t,{opts:a,self:c}=i;if(!a.validateFormats)return;let u=new PC.KeywordCxt(i,c.RULES.all.format.definition,"format");u.$data?l():d();function l(){let f=e.scopeValue("formats",{ref:c.formats,code:a.code.formats}),p=e.const("fmt",(0,Xt._)`${f}[${u.schemaCode}]`);t.fail$data((0,Xt.or)((0,Xt._)`typeof ${p} != "object"`,(0,Xt._)`${p} instanceof RegExp`,(0,Xt._)`typeof ${p}.compare != "function"`,s(p)))}function d(){let f=u.schema,p=c.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 m=e.scopeValue("formats",{key:f,ref:p,code:a.code.formats?(0,Xt._)`${a.code.formats}${(0,Xt.getProperty)(f)}`:void 0});t.fail$data(s(m))}function s(f){return(0,Xt._)`${f}.compare(${r}, ${o}) ${sp[n].fail} 0`}},dependencies:["format"]};var EC=t=>(t.addKeyword(Pi.formatLimitDefinition),t);Pi.default=EC});var f0=z((Ic,d0)=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});var Ti=s0(),OC=c0(),jy=ee(),u0=new jy.Name("fullFormats"),jC=new jy.Name("fastFormats"),Ry=(t,e={keywords:!0})=>{if(Array.isArray(e))return l0(t,e,Ti.fullFormats,u0),t;let[r,o]=e.mode==="fast"?[Ti.fastFormats,jC]:[Ti.fullFormats,u0],n=e.formats||Ti.formatNames;return l0(t,n,r,o),e.keywords&&(0,OC.default)(t),t};Ry.get=(t,e="full")=>{let o=(e==="fast"?Ti.fastFormats:Ti.fullFormats)[t];if(!o)throw new Error(`Unknown format "${t}"`);return o};function l0(t,e,r,o){var n,i;(n=(i=t.opts.code).formats)!==null&&n!==void 0||(i.formats=(0,jy._)`require("ajv-formats/dist/formats").${o}`);for(let a of e)t.addFormat(a,r[a])}d0.exports=Ic=Ry;Object.defineProperty(Ic,"__esModule",{value:!0});Ic.default=Ry});var C0=z((FF,xp)=>{"use strict";xp.exports=pD;xp.exports.format=R0;xp.exports.parse=N0;var lD=/\B(?=(\d{3})+(?!\d))/g,dD=/(?:\.0*|(\.[^0]+)0+)$/,_n={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},fD=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function pD(t,e){return typeof t=="string"?N0(t):typeof t=="number"?R0(t,e):null}function R0(t,e){if(!Number.isFinite(t))return null;var r=Math.abs(t),o=e&&e.thousandsSeparator||"",n=e&&e.unitSeparator||"",i=e&&e.decimalPlaces!==void 0?e.decimalPlaces:2,a=!!(e&&e.fixedDecimals),c=e&&e.unit||"";(!c||!_n[c.toLowerCase()])&&(r>=_n.pb?c="PB":r>=_n.tb?c="TB":r>=_n.gb?c="GB":r>=_n.mb?c="MB":r>=_n.kb?c="KB":c="B");var u=t/_n[c.toLowerCase()],l=u.toFixed(i);return a||(l=l.replace(dD,"$1")),o&&(l=l.split(".").map(function(d,s){return s===0?d.replace(lD,o):d}).join(".")),l+n+c}function N0(t){if(typeof t=="number"&&!isNaN(t))return t;if(typeof t!="string")return null;var e=fD.exec(t),r,o="b";return e?(r=parseFloat(e[1]),o=e[4].toLowerCase()):(r=parseInt(t,10),o="b"),isNaN(r)?null:Math.floor(_n[o]*r)}});var M0=z(e$=>{"use strict";var U0=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,mD=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,A0=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,hD=/\\([\u000b\u0020-\u00ff])/g,gD=/([\\"])/g,Z0=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;e$.format=vD;e$.parse=_D;function vD(t){if(!t||typeof t!="object")throw new TypeError("argument obj is required");var e=t.parameters,r=t.type;if(!r||!Z0.test(r))throw new TypeError("invalid type");var o=r;if(e&&typeof e=="object")for(var n,i=Object.keys(e).sort(),a=0;a<i.length;a++){if(n=i[a],!A0.test(n))throw new TypeError("invalid parameter name");o+="; "+n+"="+$D(e[n])}return o}function _D(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?yD(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var r=e.indexOf(";"),o=r!==-1?e.slice(0,r).trim():e.trim();if(!Z0.test(o))throw new TypeError("invalid media type");var n=new bD(o.toLowerCase());if(r!==-1){var i,a,c;for(U0.lastIndex=r;a=U0.exec(e);){if(a.index!==r)throw new TypeError("invalid parameter format");r+=a[0].length,i=a[1].toLowerCase(),c=a[2],c.charCodeAt(0)===34&&(c=c.slice(1,-1),c.indexOf("\\")!==-1&&(c=c.replace(hD,"$1"))),n.parameters[i]=c}if(r!==e.length)throw new TypeError("invalid parameter format")}return n}function yD(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function $D(t){var e=String(t);if(A0.test(e))return e;if(e.length>0&&!mD.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(gD,"\\$1")+'"'}function bD(t){this.parameters=Object.create(null),this.type=t}});var B0=z((KF,W0)=>{W0.exports=H0;H0.sync=kD;var F0=require("fs");function wD(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var o=0;o<r.length;o++){var n=r[o].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function J0(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:wD(e,r)}function H0(t,e,r){F0.stat(t,function(o,n){r(o,o?!1:J0(n,t,e))})}function kD(t,e){return J0(F0.statSync(t),t,e)}});var Q0=z((XF,Y0)=>{Y0.exports=K0;K0.sync=SD;var G0=require("fs");function K0(t,e,r){G0.stat(t,function(o,n){r(o,o?!1:X0(n,e))})}function SD(t,e){return X0(G0.statSync(t),e)}function X0(t,e){return t.isFile()&&zD(t,e)}function zD(t,e){var r=t.mode,o=t.uid,n=t.gid,i=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),a=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),c=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),d=c|u,s=r&l||r&u&&n===a||r&c&&o===i||r&d&&i===0;return s}});var tz=z((QF,ez)=>{var YF=require("fs"),kp;process.platform==="win32"||global.TESTING_WINDOWS?kp=B0():kp=Q0();ez.exports=t$;t$.sync=ID;function t$(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(o,n){t$(t,e||{},function(i,a){i?n(i):o(a)})})}kp(t,e||{},function(o,n){o&&(o.code==="EACCES"||e&&e.ignoreErrors)&&(o=null,n=!1),r(o,n)})}function ID(t,e){try{return kp.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var cz=z((eJ,sz)=>{var Ai=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",rz=require("path"),PD=Ai?";":":",nz=tz(),oz=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),iz=(t,e)=>{let r=e.colon||PD,o=t.match(/\//)||Ai&&t.match(/\\/)?[""]:[...Ai?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=Ai?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=Ai?n.split(r):[""];return Ai&&t.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:o,pathExt:i,pathExtExe:n}},az=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:o,pathExt:n,pathExtExe:i}=iz(t,e),a=[],c=l=>new Promise((d,s)=>{if(l===o.length)return e.all&&a.length?d(a):s(oz(t));let f=o[l],p=/^".*"$/.test(f)?f.slice(1,-1):f,m=rz.join(p,t),h=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;d(u(h,l,0))}),u=(l,d,s)=>new Promise((f,p)=>{if(s===n.length)return f(c(d+1));let m=n[s];nz(l+m,{pathExt:i},(h,g)=>{if(!h&&g)if(e.all)a.push(l+m);else return f(l+m);return f(u(l,d,s+1))})});return r?c(0).then(l=>r(null,l),r):c(0)},TD=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:o,pathExtExe:n}=iz(t,e),i=[];for(let a=0;a<r.length;a++){let c=r[a],u=/^".*"$/.test(c)?c.slice(1,-1):c,l=rz.join(u,t),d=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let s=0;s<o.length;s++){let f=d+o[s];try{if(nz.sync(f,{pathExt:n}))if(e.all)i.push(f);else return f}catch{}}}if(e.all&&i.length)return i;if(e.nothrow)return null;throw oz(t)};sz.exports=az;az.sync=TD});var lz=z((tJ,r$)=>{"use strict";var uz=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"};r$.exports=uz;r$.exports.default=uz});var mz=z((rJ,pz)=>{"use strict";var dz=require("path"),ED=cz(),OD=lz();function fz(t,e){let r=t.options.env||process.env,o=process.cwd(),n=t.options.cwd!=null,i=n&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(t.options.cwd)}catch{}let a;try{a=ED.sync(t.command,{path:r[OD({env:r})],pathExt:e?dz.delimiter:void 0})}catch{}finally{i&&process.chdir(o)}return a&&(a=dz.resolve(n?t.options.cwd:"",a)),a}function jD(t){return fz(t)||fz(t,!0)}pz.exports=jD});var hz=z((nJ,o$)=>{"use strict";var n$=/([()\][%!^"`<>&|;, *?])/g;function RD(t){return t=t.replace(n$,"^$1"),t}function ND(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(n$,"^$1"),e&&(t=t.replace(n$,"^$1")),t}o$.exports.command=RD;o$.exports.argument=ND});var vz=z((oJ,gz)=>{"use strict";gz.exports=/^#!(.*)/});var yz=z((iJ,_z)=>{"use strict";var CD=vz();_z.exports=(t="")=>{let e=t.match(CD);if(!e)return null;let[r,o]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?o:o?`${n} ${o}`:n}});var bz=z((aJ,$z)=>{"use strict";var i$=require("fs"),DD=yz();function UD(t){let r=Buffer.alloc(150),o;try{o=i$.openSync(t,"r"),i$.readSync(o,r,0,150,0),i$.closeSync(o)}catch{}return DD(r.toString())}$z.exports=UD});var Sz=z((sJ,kz)=>{"use strict";var AD=require("path"),xz=mz(),wz=hz(),ZD=bz(),MD=process.platform==="win32",qD=/\.(?:com|exe)$/i,LD=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function VD(t){t.file=xz(t);let e=t.file&&ZD(t.file);return e?(t.args.unshift(t.file),t.command=e,xz(t)):t.file}function FD(t){if(!MD)return t;let e=VD(t),r=!qD.test(e);if(t.options.forceShell||r){let o=LD.test(e);t.command=AD.normalize(t.command),t.command=wz.command(t.command),t.args=t.args.map(i=>wz.argument(i,o));let n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function JD(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let o={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?o:FD(o)}kz.exports=JD});var Pz=z((cJ,Iz)=>{"use strict";var a$=process.platform==="win32";function s$(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function HD(t,e){if(!a$)return;let r=t.emit;t.emit=function(o,n){if(o==="exit"){let i=zz(n,e);if(i)return r.call(t,"error",i)}return r.apply(t,arguments)}}function zz(t,e){return a$&&t===1&&!e.file?s$(e.original,"spawn"):null}function WD(t,e){return a$&&t===1&&!e.file?s$(e.original,"spawnSync"):null}Iz.exports={hookChildProcess:HD,verifyENOENT:zz,verifyENOENTSync:WD,notFoundError:s$}});var Oz=z((uJ,Zi)=>{"use strict";var Tz=require("child_process"),c$=Sz(),u$=Pz();function Ez(t,e,r){let o=c$(t,e,r),n=Tz.spawn(o.command,o.args,o.options);return u$.hookChildProcess(n,o),n}function BD(t,e,r){let o=c$(t,e,r),n=Tz.spawnSync(o.command,o.args,o.options);return n.error=n.error||u$.verifyENOENTSync(n.status,o),n}Zi.exports=Ez;Zi.exports.spawn=Ez;Zi.exports.sync=BD;Zi.exports._parse=c$;Zi.exports._enoent=u$});var Bc=z(_$=>{"use strict";Object.defineProperty(_$,"__esModule",{value:!0});_$.fetchWithTimeout=fU;async function fU(t,e){var i,a,c;if(!e.timeout)return fetch(t,e);let r=new AbortController,o=setTimeout(()=>r.abort(),e.timeout),n=()=>r.abort();(i=e.signal)==null||i.addEventListener("abort",n);try{return await fetch(t,{...e,signal:r.signal})}catch(u){throw(a=e.signal)!=null&&a.aborted?u:new Error(`Fetch timeout after ${e.timeout}ms`)}finally{clearTimeout(o),(c=e.signal)==null||c.removeEventListener("abort",n)}}});var Gc=z(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.assistantMessageFromError=pU;Up.emptyUsage=mU;function pU(t){return{role:"assistant",content:[],stopReason:{code:"error",message:t}}}function mU(){return{input:0,output:0}}});var Vz=z(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.Anthropic=void 0;var hU=Bc(),Lz=Gc(),y$=class{constructor(){zt(this,"name","anthropic")}async complete(e,r){var u;let o=Math.min((u=r.maxTokens)!=null?u:32768,32768),{response:n,error:i}=await gU({model:r.model,max_tokens:o,temperature:r.temperature,system:kU(e.systemPrompt),messages:e.messages.map(wU).flat(),tools:e.tools.map($U),thinking:r.reasoning&&r.reasoning!=="none"?{type:"enabled",budget_tokens:r.maxTokens?Math.round(o/10):1024}:void 0},r);if(i||!n)return{result:(0,Lz.assistantMessageFromError)(i!=null?i:"No response from Anthropic API"),usage:(0,Lz.emptyUsage)()};let a=yU(n),c={input:n.usage.input_tokens,output:n.usage.output_tokens};return{result:a,usage:c}}};Ap.Anthropic=y$;async function gU(t,e){var c,u,l,d,s,f;let r={"Content-Type":"application/json","x-api-key":e.apiKey,"anthropic-version":"2023-06-01"},o={...t,tools:`${(u=(c=t.tools)==null?void 0:c.length)!=null?u:0} tools`};(l=e.debug)==null||l.call(e,"lowire:anthropic")("Request:",JSON.stringify(o,null,2));let n=await(0,hU.fetchWithTimeout)((d=e.apiEndpoint)!=null?d:"https://api.anthropic.com/v1/messages",{method:"POST",headers:r,body:JSON.stringify(t),signal:e.signal,timeout:e.apiTimeout}),i=await n.text(),a=JSON.parse(i);return(s=e.debug)==null||s.call(e,"lowire:anthropic")("Response:",i),n.ok?{response:a}:((f=e.debug)==null||f.call(e,"lowire:anthropic")("Response:",n.status),{error:`API error: ${n.status} ${n.statusText} ${i}`})}function vU(t){return t.type==="text"?{type:"text",text:t.text}:t.type==="tool_use"?{type:"tool_call",name:t.name,arguments:t.input,id:t.id}:t.type==="thinking"?{type:"thinking",thinking:t.thinking,signature:t.signature}:null}function _U(t){if(t.type==="text")return{type:"text",text:t.text};if(t.type==="image")return{type:"image",source:{type:"base64",data:t.data,media_type:t.mimeType}};throw new Error(`Unsupported content part type: ${t.type}`)}function yU(t){let e={code:"ok"};return t.stop_reason==="max_tokens"&&(e.code="max_tokens"),{role:"assistant",content:t.content.map(vU).filter(Boolean),stopReason:e}}function $U(t){return{name:t.name,description:t.description,input_schema:t.inputSchema}}function bU(t){let e=[],r=[];for(let o of t.content){if(o.type==="text"){e.push({...o,citations:[]});continue}if(o.type==="tool_call"){e.push({type:"tool_use",id:o.id,name:o.name,input:o.arguments}),o.result&&r.push(xU(o,o.result));continue}if(o.type==="thinking"){e.push({type:"thinking",thinking:o.thinking,signature:o.signature});continue}}return t.toolError&&r.push({role:"user",content:[{type:"text",text:t.toolError}]}),[{role:"assistant",content:e},...r]}function xU(t,e){return{role:"user",content:[{type:"tool_result",tool_use_id:t.id,content:e.content.map(_U),is_error:e.isError}]}}function wU(t){if(t.role==="user")return[{role:"user",content:t.content}];if(t.role==="assistant")return bU(t);throw new Error(`Unsupported message role: ${t.role}`)}var kU=t=>`
### System instructions

${t}

### Tool calling instructions
- Make sure every message contains a tool call.
- When you use a tool, you may provide a brief thought or explanation in the content field
  immediately before the tool_call. Do not split this into separate messages.
- Every reply must include a tool call.
`});var Hz=z(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.Google=void 0;var SU=Bc(),Fz=Gc(),$$=class{constructor(){zt(this,"name","google")}async complete(e,r){var l,d,s,f,p,m;let o=e.messages.map(EU).flat(),{response:n,error:i}=await zU((l=r.model)!=null?l:"gemini-2.5-pro",{systemInstruction:{role:"system",parts:[{text:jU(e.systemPrompt)}]},contents:o,tools:e.tools.length>0?[{functionDeclarations:e.tools.map(IU)}]:void 0,generationConfig:{temperature:r.temperature,maxOutputTokens:r.maxTokens}},r),[a]=(d=n==null?void 0:n.candidates)!=null?d:[];if(i||!n||!a)return{result:(0,Fz.assistantMessageFromError)(i!=null?i:"No response from Google API"),usage:(0,Fz.emptyUsage)()};let c={input:(f=(s=n.usageMetadata)==null?void 0:s.promptTokenCount)!=null?f:0,output:(m=(p=n.usageMetadata)==null?void 0:p.candidatesTokenCount)!=null?m:0};return{result:PU(a),usage:c}}};Zp.Google=$$;async function zU(t,e,r){var a,c,u,l,d,s;let o={...e,tools:`${(c=(a=e.tools)==null?void 0:a.length)!=null?c:0} tools`};(u=r.debug)==null||u.call(r,"lowire:google")("Request:",JSON.stringify(o,null,2));let n=await(0,SU.fetchWithTimeout)((l=r.apiEndpoint)!=null?l:`https://generativelanguage.googleapis.com/v1beta/models/${t}:generateContent`,{method:"POST",headers:{"Content-Type":"application/json","x-goog-api-key":r.apiKey},body:JSON.stringify(e),signal:r.signal,timeout:r.apiTimeout});if(!n.ok)return(d=r.debug)==null||d.call(r,"lowire:google")("Response:",n.status),{error:`API error: ${n.status} ${n.statusText} ${await n.text()}`};let i=await n.json();return(s=r.debug)==null||s.call(r,"lowire:google")("Response:",JSON.stringify(i,null,2)),{response:i}}function IU(t){return{name:t.name,description:t.description,parameters:Jz(t.inputSchema)}}function Jz(t){if(!t||typeof t!="object")return t;let e=Array.isArray(t)?[...t]:{...t};delete e.additionalProperties,delete e.$schema;for(let r in e)e[r]&&typeof e[r]=="object"&&(e[r]=Jz(e[r]));return e}function PU(t){let e={code:"ok"};return t.finishReason==="MAX_TOKENS"&&(e.code="max_tokens"),{role:"assistant",content:(t.content.parts||[]).map(TU).filter(Boolean),stopReason:e}}function TU(t){return t.text?{type:"text",text:t.text,googleThoughtSignature:t.thoughtSignature}:t.functionCall?{type:"tool_call",name:t.functionCall.name,arguments:t.functionCall.args,id:`call_${Math.random().toString(36).substring(2,15)}`,googleThoughtSignature:t.thoughtSignature}:null}function EU(t){if(t.role==="user")return[{role:"user",parts:[{text:t.content}]}];if(t.role==="assistant"){let e=[],r=[];for(let o of t.content){if(o.type==="text"){e.push({text:o.text,thoughtSignature:o.googleThoughtSignature});continue}o.type==="tool_call"&&(e.push({functionCall:{name:o.name,args:o.arguments},thoughtSignature:o.googleThoughtSignature}),o.result&&r.push(...OU(o,o.result)))}return t.toolError&&r.push({role:"user",parts:[{text:t.toolError}]}),[{role:"model",parts:e},...r]}throw new Error(`Unsupported message role: ${t.role}`)}function OU(t,e){let r={},o=[],n=[];for(let a of e.content)a.type==="text"?o.push(a.text):a.type==="image"&&n.push({inline_data:{mime_type:a.mimeType,data:a.data}});o.length>0&&(r.result=o.join(`
`));let i=[{role:"function",parts:[{functionResponse:{name:t.name,response:r}}]}];return n.length>0&&i.push({role:"user",parts:n}),i}var jU=t=>`
### System instructions

${t}

### Tool calling instructions
- Make sure every message contains a tool call.
- When you use a tool, you may provide a brief thought or explanation in the content field
  immediately before the tool_call. Do not split this into separate messages.
- Every reply must include a tool call.
`});var Bz=z(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});Mp.OpenAI=void 0;var RU=Bc(),Wz=Gc(),b$=class{constructor(){zt(this,"name","openai")}async complete(e,r){return NU(e,r)}};Mp.OpenAI=b$;async function NU(t,e){var l,d,s,f,p;let r=t.messages.map(UU).flat(),o=t.tools.map(AU),{response:n,error:i}=await CU({model:e.model,temperature:e.temperature,input:r,instructions:LU(t.systemPrompt),tools:o.length>0?o:void 0,tool_choice:t.tools.length>0?"auto":void 0,parallel_tool_calls:!1,max_output_tokens:e.maxTokens,reasoning:qU(e.reasoning)},e);if(!n||i)return{result:(0,Wz.assistantMessageFromError)(i!=null?i:"No response from OpenAI API"),usage:(0,Wz.emptyUsage)()};let a={code:"ok"};((l=n.incomplete_details)==null?void 0:l.reason)==="max_output_tokens"&&(a.code="max_tokens");let c={role:"assistant",content:[],stopReason:a},u={input:(s=(d=n.usage)==null?void 0:d.input_tokens)!=null?s:0,output:(p=(f=n.usage)==null?void 0:f.output_tokens)!=null?p:0};if(a.code!=="ok")return{result:c,usage:u};for(let m of n.output)if(m.type==="message"&&m.role==="assistant"){c.openaiId=m.id,c.openaiStatus=m.status;for(let h of m.content)h.type==="output_text"&&c.content.push({type:"text",text:h.text})}else m.type==="function_call"&&c.content.push(MU(m));return{result:c,usage:u}}async function CU(t,e){var c,u,l,d,s;let r={"Content-Type":"application/json",Authorization:`Bearer ${e.apiKey}`},o={...t,tools:`${(u=(c=t.tools)==null?void 0:c.length)!=null?u:0} tools`};(l=e.debug)==null||l.call(e,"lowire:openai-responses")("Request:",JSON.stringify(o,null,2));let n=await(0,RU.fetchWithTimeout)((d=e.apiEndpoint)!=null?d:"https://api.openai.com/v1/responses",{method:"POST",headers:r,body:JSON.stringify(t),signal:e.signal,timeout:e.apiTimeout}),i=await n.text(),a=JSON.parse(i);if(!n.ok)try{return{error:a.error.message}}catch{return{error:i}}return(s=e.debug)==null||s.call(e,"lowire:openai-responses")("Response:",JSON.stringify(a,null,2)),{response:a}}function DU(t){if(t.type==="text")return{type:"input_text",text:t.text};if(t.type==="image")return{type:"input_image",image_url:`data:${t.mimeType};base64,${t.data}`,detail:"auto"};throw new Error(`Cannot convert content part of type ${t.type} to response content part`)}function UU(t){if(t.role==="user")return[{type:"message",role:"user",content:t.content}];if(t.role==="assistant"){let e=t.content.filter(n=>n.type==="text"),r=t.content.filter(n=>n.type==="tool_call"),o=[];if(e.length>0){let n={id:t.openaiId,status:t.openaiStatus,type:"message",role:"assistant",content:e.map(i=>({type:"output_text",text:i.text,annotations:[],logprobs:[]}))};o.push(n)}return t.toolError&&o.push({type:"message",role:"user",content:t.toolError}),o.push(...r.map(ZU).flat()),o}throw new Error(`Unsupported message role: ${t.role}`)}function AU(t){var e;return{type:"function",name:t.name,description:(e=t.description)!=null?e:null,parameters:t.inputSchema,strict:null}}function ZU(t){let e=[{type:"function_call",call_id:t.id,name:t.name,arguments:JSON.stringify(t.arguments),id:t.openaiId,status:t.openaiStatus}];return t.result&&e.push({type:"function_call_output",call_id:t.id,output:t.result.content.map(DU)}),e}function MU(t){return{type:"tool_call",name:t.name,arguments:JSON.parse(t.arguments),id:t.call_id,openaiId:t.id,openaiStatus:t.status}}function qU(t){switch(t){case"none":return{effort:"none"};case"medium":return{effort:"medium"};case"high":return{effort:"high"}}}var LU=t=>`
### System instructions

${t}

### Tool calling instructions
- Make sure every message contains a tool call.
- When you use a tool, you may provide a brief thought or explanation in the content field
  immediately before the tool_call. Do not split this into separate messages.
- Every reply must include a tool call.
`});var Kz=z(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.OpenAICompatible=void 0;var VU=Bc(),Gz=Gc(),x$=class{constructor(){zt(this,"name","openai-compatible")}async complete(e,r){return FU(e,r)}};qp.OpenAICompatible=x$;async function FU(t,e){var d,s,f,p,m,h;let o=[{role:"system",content:XU(t.systemPrompt)},...t.messages.map(WU).flat()],n=t.tools.map(g=>BU(g)),{response:i,error:a}=await JU({model:e.model,max_completion_tokens:e.maxTokens,temperature:e.temperature,messages:o,tools:n,tool_choice:t.tools.length>0?"auto":void 0,reasoning_effort:KU(e.reasoning),parallel_tool_calls:!1},e);if(a||!i)return{result:(0,Gz.assistantMessageFromError)((d=a==null?void 0:a.message)!=null?d:"No response from OpenAI compatible API"),usage:(0,Gz.emptyUsage)()};let c={role:"assistant",content:[],stopReason:{code:"ok"}},u=(s=i.choices[0])==null?void 0:s.finish_reason;for(let g of i.choices){let y=g.message;y.content&&c.content.push({type:"text",text:y.content});for(let w of y.tool_calls||[])w.type==="function"&&c.content.push(GU(w))}u==="length"&&(c.stopReason={code:"max_tokens"});let l={input:(p=(f=i.usage)==null?void 0:f.prompt_tokens)!=null?p:0,output:(h=(m=i.usage)==null?void 0:m.completion_tokens)!=null?h:0};return{result:c,usage:l}}async function JU(t,e){var c,u,l,d,s;let r={"Content-Type":"application/json",Authorization:`Bearer ${e.apiKey}`},o={...t,tools:`${(u=(c=t.tools)==null?void 0:c.length)!=null?u:0} tools`};(l=e.debug)==null||l.call(e,"lowire:openai")("Request:",JSON.stringify(o,null,2));let n=await(0,VU.fetchWithTimeout)((d=e.apiEndpoint)!=null?d:"https://api.openai.com/v1/chat/completions",{method:"POST",headers:r,body:JSON.stringify(t),signal:e.signal,timeout:e.apiTimeout}),i=await n.text(),a=JSON.parse(i);if(!n.ok)try{return{error:a}}catch{return{error:{type:"unknown",message:i}}}return(s=e.debug)==null||s.call(e,"lowire:openai")("Response:",JSON.stringify(a,null,2)),{response:a}}function HU(t){if(t.type==="text")return{type:"text",text:t.text};if(t.type==="image")return{type:"image_url",image_url:{url:`data:${t.mimeType};base64,${t.data}`}};throw new Error(`Cannot convert content part of type ${t.type} to text content part`)}function WU(t){if(t.role==="user")return[{role:"user",content:t.content}];if(t.role==="assistant"){let e={role:"assistant"},r=t.content.filter(a=>a.type==="text"),o=t.content.filter(a=>a.type==="tool_call");r.length===1?e.content=r[0].text:e.content=r;let n=[],i=[];for(let a of o)n.push({id:a.id,type:"function",function:{name:a.name,arguments:JSON.stringify(a.arguments)}}),a.result&&i.push({role:"tool",tool_call_id:a.id,content:a.result.content.map(HU)});return n.length>0&&(e.tool_calls=n),t.toolError&&i.push({role:"user",content:[{type:"text",text:t.toolError}]}),[e,...i]}throw new Error(`Unsupported message role: ${t.role}`)}function BU(t){return{type:"function",function:{name:t.name,description:t.description,parameters:t.inputSchema}}}function GU(t){return{type:"tool_call",name:t.type==="function"?t.function.name:t.custom.name,arguments:JSON.parse(t.type==="function"?t.function.arguments:t.custom.input),id:t.id}}function KU(t){switch(t){case"none":return"none";case"medium":return"medium";case"high":return"high"}}var XU=t=>`
### System instructions

${t}

### Tool calling instructions
- Make sure every message contains a tool call.
- When you use a tool, you may provide a brief thought or explanation in the content field
  immediately before the tool_call. Do not split this into separate messages.
- Every reply must include a tool call.
`});var Xz=z(w$=>{"use strict";Object.defineProperty(w$,"__esModule",{value:!0});w$.getProvider=rA;var YU=Vz(),QU=Hz(),eA=Bz(),tA=Kz();function rA(t){if(t==="openai")return new eA.OpenAI;if(t==="openai-compatible")return new tA.OpenAICompatible;if(t==="anthropic")return new YU.Anthropic;if(t==="google")return new QU.Google;throw new Error(`Unknown loop LLM: ${t}`)}});var Yz=z(Kc=>{"use strict";var nA=Kc&&Kc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Kc,"__esModule",{value:!0});Kc.cachedComplete=iA;var oA=nA(require("crypto"));async function iA(t,e,r,o){let n=sA(e,o.secrets),i=await aA(t,n,r,o);return cA(i,o.secrets)}async function aA(t,e,r,o){var c;if(!r)return await t.complete(e,o);let n={conversation:o.cacheMode==="lax"?{...e,tools:[]}:e,maxTokens:o.maxTokens,reasoning:o.reasoning,temperature:o.temperature},i=uA(JSON.stringify(n));if(!process.env.LOWIRE_NO_CACHE&&r.input[i])return r.output[i]=r.input[i],(c=r.input[i])!=null?c:r.output[i];if(!process.env.LOWIRE_NO_CACHE&&r.output[i])return r.output[i];if(process.env.LOWIRE_FORCE_CACHE)throw new Error("Cache missing but LOWIRE_FORCE_CACHE is set"+JSON.stringify(e,null,2));let a=await t.complete(e,o);return r.output[i]=a,a}function sA(t,e={}){let r=JSON.stringify(t);for(let[o,n]of Object.entries(e))r=r.replaceAll(n,`%${o}%`);return JSON.parse(r)}function cA(t,e={}){let r=JSON.stringify(t);for(let[o,n]of Object.entries(e))r=r.replaceAll(`%${o}%`,n);return JSON.parse(r)}function uA(t){let e=oA.default.createHash("sha1");return e.update(t),e.digest("hex")}});var k$=z(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.jsxs=void 0;Xc.jsx=Qz;function Qz(t,e){let{children:r,...o}=e||{},n=Object.entries(o),i=(Array.isArray(r)?r.flat():r?[r]:[]).filter(c=>c&&!!c.trim()),a=[`${t}:`];for(let[c,u]of n)a.push(`  ${c}: ${u}`);for(let c of i){let u=c.split(`
`).map(l=>`  ${l}`).join(`
`);a.push(u)}return a.join(`
`)}Xc.jsxs=Qz});var tI=z(S$=>{"use strict";Object.defineProperty(S$,"__esModule",{value:!0});S$.summarizeConversation=lA;var lo=k$(),eI=k$();function lA(t,e,r){var c,u,l,d,s;let o=["## Task",t],n={},i=e.messages.filter(f=>f.role==="assistant");for(let f=0;f<i.length-1;++f){f===0&&(o.push(""),o.push("## History")),o.push("");let p=i[f].content.filter(g=>g.type==="text").map(g=>g.text).join(`
`),m=i[f].content.filter(g=>g.type==="tool_call");for(let g of m)if(g.result)for(let[y,w]of Object.entries(((c=g.result._meta)==null?void 0:c["dev.lowire/state"])||{}))n[y]=w;let h=i[f];o.push((0,lo.jsxs)("step",{turn:f+1,children:[(0,lo.jsx)("title",{children:p}),m.map(g=>(0,lo.jsxs)("tool-call",{children:[(0,lo.jsx)("name",{children:g.name}),Object.keys(g.arguments).length>0&&(0,lo.jsx)("arguments",{children:Object.entries(g.arguments).map(([y,w])=>(0,eI.jsx)(y,{children:[JSON.stringify(w)]}))})]})),m.map(g=>{var y,w;return((w=(y=g.result)==null?void 0:y._meta)==null?void 0:w["dev.lowire/history"])||[]}).flat().map(g=>(0,eI.jsx)(g.category,{children:[g.content]})),h.toolError&&(0,lo.jsx)("error",{children:h.toolError})]}))}let a=i[i.length-1];if(a)for(let f of a.content.filter(p=>p.type==="tool_call"))for(let p of Object.keys(((l=(u=f.result)==null?void 0:u._meta)==null?void 0:l["dev.lowire/state"])||{}))delete n[p];for(let[f,p]of Object.entries(n))o.push(""),o.push((0,lo.jsx)("state",{name:f,children:p}));return(d=r.debug)==null||d.call(r,"lowire:summary")(o.join(`
`)),(s=r.debug)==null||s.call(r,"lowire:summary")(JSON.stringify(a,null,2)),{summary:o.join(`
`),lastMessage:a}}});var rI=z(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.Loop=void 0;var dA=Xz(),fA=Yz(),pA=tI(),z$=class{constructor(e){zt(this,"_provider");zt(this,"_loopOptions");zt(this,"_cacheOutput",{});this._provider=(0,dA.getProvider)(e.api),this._loopOptions=e}async run(e,r={}){var d,s,f,p,m,h,g,y,w,k;let o={...this._loopOptions,...r},n=[...(o.tools||[]).map(mA)],i={systemPrompt:hA,messages:[{role:"user",content:e}],tools:n},a=o.debug,c={tokens:o.maxTokens,toolCalls:o.maxToolCalls,toolCallRetries:o.maxToolCallRetries},u={input:0,output:0};a==null||a("lowire:loop")(`Starting ${this._provider.name} loop
${e}`);let l=o.maxTurns||100;for(let b=0;b<l;++b){if(o.maxTokens&&c.tokens!==void 0&&c.tokens<=0)return{status:"error",error:`Budget tokens ${o.maxTokens} exhausted`,usage:u,turns:b};a==null||a("lowire:loop")(`Turn ${b+1} of (max ${l})`);let x=o.cache?{input:o.cache,output:this._cacheOutput}:void 0,D=o.summarize?this._summarizeConversation(e,i,o):i;if(await((d=o.onBeforeTurn)==null?void 0:d.call(o,{conversation:D,totalUsage:u,budgetTokens:c.tokens})),(s=o.signal)!=null&&s.aborted)return{status:"break",usage:u,turns:b};a==null||a("lowire:loop")("Request",JSON.stringify({...D,tools:`${D.tools.length} tools`},null,2));let V=Math.floor(JSON.stringify(D).length/4);if(c.tokens!==void 0&&V>=c.tokens)return{status:"error",error:`Input token estimate ${V} exceeds budget ${c.tokens}`,usage:u,turns:b};let{result:G,usage:se}=await(0,fA.cachedComplete)(this._provider,D,x,{...o,maxTokens:c.tokens!==void 0?c.tokens-V:void 0,signal:o.signal});if(G.stopReason.code==="error")return{status:"error",error:G.stopReason.message,usage:u,turns:b};if(G.stopReason.code==="max_tokens")return{status:"error",error:"Max tokens exhausted",usage:u,turns:b};let De=G.content.filter(je=>je.type==="text").map(je=>je.text).join(`
`);if(u.input+=se.input,u.output+=se.output,c.tokens!==void 0&&(c.tokens-=se.input+se.output),a==null||a("lowire:loop")("Usage",`input: ${se.input}, output: ${se.output}`),a==null||a("lowire:loop")("Assistant",De,JSON.stringify(G.content,null,2)),await((f=o.onAfterTurn)==null?void 0:f.call(o,{assistantMessage:G,totalUsage:u,budgetTokens:c.tokens})),(p=o.signal)!=null&&p.aborted)return{status:"break",usage:u,turns:b};i.messages.push(G);let Oe=G.content.filter(je=>je.type==="tool_call");if(Oe.length===0){G.toolError='Error: tool call is expected in every assistant message. Call the "report_result" tool when the task is complete.';continue}for(let je of Oe){if(c.toolCalls!==void 0&&--c.toolCalls<0)return{status:"error",error:`Failed to perform step, max tool calls (${o.maxToolCalls}) reached`,usage:u,turns:b};let{name:At,arguments:A}=je;a==null||a("lowire:loop")("Call tool",At,JSON.stringify(A,null,2));let ke=await((m=o.onBeforeToolCall)==null?void 0:m.call(o,{assistantMessage:G,toolCall:je}));if((h=o.signal)!=null&&h.aborted)return{status:"break",usage:u,turns:b};if(ke==="disallow"){je.result={content:[{type:"text",text:"Tool call is disallowed."}],isError:!0};continue}try{let Ie=await o.callTool({name:At,arguments:{...A,_meta:{"dev.lowire/intent":De,"dev.lowire/history":!0,"dev.lowire/state":!0}}}),rt=Ie.content.filter(bn=>bn.type==="text").map(bn=>bn.text).join(`
`);a==null||a("lowire:loop")("Tool result",rt,JSON.stringify(Ie,null,2));let St=await((g=o.onAfterToolCall)==null?void 0:g.call(o,{assistantMessage:G,toolCall:je,result:Ie}));if((y=o.signal)!=null&&y.aborted)return{status:"break",usage:u,turns:b};if(St==="disallow"){je.result={content:[{type:"text",text:"Tool result is disallowed to be reported."}],isError:!0};continue}if(je.result=Ie,A._is_done&&!Ie.isError)return{result:Ie,status:"ok",usage:u,turns:b}}catch(Ie){let rt=`Error while executing tool "${At}": ${Ie instanceof Error?Ie.message:String(Ie)}

Please try to recover and complete the task.`;if(await((w=o.onToolCallError)==null?void 0:w.call(o,{assistantMessage:G,toolCall:je,error:Ie})),(k=o.signal)!=null&&k.aborted)return{status:"break",usage:u,turns:b};je.result={content:[{type:"text",text:rt}],isError:!0}}}let Qt=Oe.some(je=>{var At;return(At=je.result)==null?void 0:At.isError});if(Qt||(c.toolCallRetries=o.maxToolCallRetries),Qt&&c.toolCallRetries!==void 0&&--c.toolCallRetries<0)return{status:"error",error:`Failed to perform action after ${o.maxToolCallRetries} tool call retries`,usage:u,turns:b}}return{status:"error",error:"Failed to perform step, max attempts reached",usage:u,turns:l}}_summarizeConversation(e,r,o){let{summary:n,lastMessage:i}=(0,pA.summarizeConversation)(e,r,o);return{...r,messages:[{role:"user",content:n},...i?[i]:[]]}}cache(){return this._cacheOutput}};Lp.Loop=z$;function mA(t){let e={...t.inputSchema};return e.properties={...e.properties,_is_done:{type:"boolean",description:"Whether the task is complete. If false, agentic loop will continue to perform the task."}},e.required=[...e.required||[],"_is_done"],{...t,inputSchema:e}}var hA=`
- You are an autonomous agent designed to complete tasks by interacting with tools.
- Perform the user task.
- If you see text surrounded by %, it is a secret and you should preserve it as such. It will be replaced with the actual value before the tool call.
`});var vA={};_t(vA,{CallToolRequestSchema:()=>Bs,Client:()=>fp,ListRootsRequestSchema:()=>Nv,ListToolsRequestSchema:()=>Iv,Loop:()=>Fi.Loop,PingRequestSchema:()=>ui,ProgressNotificationSchema:()=>li,SSEClientTransport:()=>bp,SSEServerTransport:()=>wp,Server:()=>mp,StdioClientTransport:()=>zp,StdioServerTransport:()=>Ip,StreamableHTTPClientTransport:()=>Dp,StreamableHTTPServerTransport:()=>Np,z:()=>Vp,zodToJsonSchema:()=>kf});module.exports=lI(vA);var ie;(function(t){t.assertEqual=n=>{};function e(n){}t.assertIs=e;function r(n){throw new Error}t.assertNever=r,t.arrayToEnum=n=>{let i={};for(let a of n)i[a]=a;return i},t.getValidEnumValues=n=>{let i=t.objectKeys(n).filter(c=>typeof n[n[c]]!="number"),a={};for(let c of i)a[c]=n[c];return t.objectValues(a)},t.objectValues=n=>t.objectKeys(n).map(function(i){return n[i]}),t.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let i=[];for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.push(a);return i},t.find=(n,i)=>{for(let a of n)if(i(a))return a},t.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function o(n,i=" | "){return n.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}t.joinValues=o,t.jsonStringifyReplacer=(n,i)=>typeof i=="bigint"?i.toString():i})(ie||(ie={}));var E$;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(E$||(E$={}));var U=ie.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),pr=t=>{switch(typeof t){case"undefined":return U.undefined;case"string":return U.string;case"number":return Number.isNaN(t)?U.nan:U.number;case"boolean":return U.boolean;case"function":return U.function;case"bigint":return U.bigint;case"symbol":return U.symbol;case"object":return Array.isArray(t)?U.array:t===null?U.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?U.promise:typeof Map!="undefined"&&t instanceof Map?U.map:typeof Set!="undefined"&&t instanceof Set?U.set:typeof Date!="undefined"&&t instanceof Date?U.date:U.object;default:return U.unknown}};var P=ie.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 yt=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(i){return i.message},o={_errors:[]},n=i=>{for(let a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(n);else if(a.code==="invalid_return_type")n(a.returnTypeError);else if(a.code==="invalid_arguments")n(a.argumentsError);else if(a.path.length===0)o._errors.push(r(a));else{let c=o,u=0;for(;u<a.path.length;){let l=a.path[u];u===a.path.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(r(a))):c[l]=c[l]||{_errors:[]},c=c[l],u++}}};return n(this),o}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ie.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r=Object.create(null),o=[];for(let n of this.issues)if(n.path.length>0){let i=n.path[0];r[i]=r[i]||[],r[i].push(e(n))}else o.push(e(n));return{formErrors:o,fieldErrors:r}}get formErrors(){return this.flatten()}};yt.create=t=>new yt(t);var dI=(t,e)=>{let r;switch(t.code){case P.invalid_type:t.received===U.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case P.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,ie.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:r=`Unrecognized key(s) in object: ${ie.joinValues(t.keys,", ")}`;break;case P.invalid_union:r="Invalid input";break;case P.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ie.joinValues(t.options)}`;break;case P.invalid_enum_value:r=`Invalid enum value. Expected ${ie.joinValues(t.options)}, received '${t.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 t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:ie.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case P.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case P.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.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 ${t.multipleOf}`;break;case P.not_finite:r="Number must be finite";break;default:r=e.defaultError,ie.assertNever(t)}return{message:r}},Rr=dI;var fI=Rr;function Bi(){return fI}var Qc=t=>{let{data:e,path:r,errorMaps:o,issueData:n}=t,i=[...r,...n.path||[]],a={...n,path:i};if(n.message!==void 0)return{...n,path:i,message:n.message};let c="",u=o.filter(l=>!!l).slice().reverse();for(let l of u)c=l(a,{data:e,defaultError:c}).message;return{...n,path:i,message:c}};function N(t,e){let r=Bi(),o=Qc({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Rr?void 0:Rr].filter(n=>!!n)});t.common.issues.push(o)}var Be=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let o=[];for(let n of r){if(n.status==="aborted")return J;n.status==="dirty"&&e.dirty(),o.push(n.value)}return{status:e.value,value:o}}static async mergeObjectAsync(e,r){let o=[];for(let n of r){let i=await n.key,a=await n.value;o.push({key:i,value:a})}return t.mergeObjectSync(e,o)}static mergeObjectSync(e,r){let o={};for(let n of r){let{key:i,value:a}=n;if(i.status==="aborted"||a.status==="aborted")return J;i.status==="dirty"&&e.dirty(),a.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof a.value!="undefined"||n.alwaysSet)&&(o[i.value]=a.value)}return{status:e.value,value:o}}},J=Object.freeze({status:"aborted"}),fo=t=>({status:"dirty",value:t}),nt=t=>({status:"valid",value:t}),Jp=t=>t.status==="aborted",Hp=t=>t.status==="dirty",xn=t=>t.status==="valid",Gi=t=>typeof Promise!="undefined"&&t instanceof Promise;var M;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(M||(M={}));var It=class{constructor(e,r,o,n){this._cachedPath=[],this.parent=e,this.data=r,this._path=o,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$=(t,e)=>{if(xn(e))return{success:!0,data:e.value};if(!t.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 yt(t.common.issues);return this._error=r,this._error}}};function X(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:o,description:n}=t;if(e&&(r||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:n}:{errorMap:(a,c)=>{var l,d;let{message:u}=t;return a.code==="invalid_enum_value"?{message:u!=null?u:c.defaultError}:typeof c.data=="undefined"?{message:(l=u!=null?u:o)!=null?l:c.defaultError}:a.code!=="invalid_type"?{message:c.defaultError}:{message:(d=u!=null?u:r)!=null?d:c.defaultError}},description:n}}var te=class{get description(){return this._def.description}_getType(e){return pr(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:pr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Be,ctx:{common:e.parent.common,data:e.data,parsedType:pr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Gi(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let o=this.safeParse(e,r);if(o.success)return o.data;throw o.error}safeParse(e,r){var i;let o={common:{issues:[],async:(i=r==null?void 0:r.async)!=null?i:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:pr(e)},n=this._parseSync({data:e,path:o.path,parent:o});return O$(o,n)}"~validate"(e){var o,n;let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:pr(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:r});return xn(i)?{value:i.value}:{issues:r.common.issues}}catch(i){(n=(o=i==null?void 0:i.message)==null?void 0:o.toLowerCase())!=null&&n.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(i=>xn(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(e,r){let o=await this.safeParseAsync(e,r);if(o.success)return o.data;throw o.error}async safeParseAsync(e,r){let o={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:pr(e)},n=this._parse({data:e,path:o.path,parent:o}),i=await(Gi(n)?n:Promise.resolve(n));return O$(o,i)}refine(e,r){let o=n=>typeof r=="string"||typeof r=="undefined"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,i)=>{let a=e(n),c=()=>i.addIssue({code:P.custom,...o(n)});return typeof Promise!="undefined"&&a instanceof Promise?a.then(u=>u?!0:(c(),!1)):a?!0:(c(),!1)})}refinement(e,r){return this._refinement((o,n)=>e(o)?!0:(n.addIssue(typeof r=="function"?r(o,n):r),!1))}_refinement(e){return new Mt({schema:this,typeName:E.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,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 Zt.create(this,this._def)}nullable(){return gr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Cr.create(this)}promise(){return wn.create(this,this._def)}or(e){return vo.create([this,e],this._def)}and(e){return _o.create(this,e,this._def)}transform(e){return new Mt({...X(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new wo({...X(this._def),innerType:this,defaultValue:r,typeName:E.ZodDefault})}brand(){return new eu({typeName:E.ZodBranded,type:this,...X(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new ko({...X(this._def),innerType:this,catchValue:r,typeName:E.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return tu.create(this,e)}readonly(){return So.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},pI=/^c[^\s-]{8,}$/i,mI=/^[0-9a-z]+$/,hI=/^[0-9A-HJKMNP-TV-Z]{26}$/i,gI=/^[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,vI=/^[a-z0-9_-]{21}$/i,_I=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,yI=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,$I=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,bI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Wp,xI=/^(?:(?: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])$/,wI=/^(?:(?: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])$/,kI=/^(([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]))$/,SI=/^(([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])$/,zI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,II=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,j$="((\\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])))",PI=new RegExp(`^${j$}$`);function R$(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function TI(t){return new RegExp(`^${R$(t)}$`)}function EI(t){let e=`${j$}T${R$(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function OI(t,e){return!!((e==="v4"||!e)&&xI.test(t)||(e==="v6"||!e)&&kI.test(t))}function jI(t,e){if(!_I.test(t))return!1;try{let[r]=t.split(".");if(!r)return!1;let o=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(o));return!(typeof n!="object"||n===null||"typ"in n&&(n==null?void 0:n.typ)!=="JWT"||!n.alg||e&&n.alg!==e)}catch{return!1}}function RI(t,e){return!!((e==="v4"||!e)&&wI.test(t)||(e==="v6"||!e)&&SI.test(t))}var mo=class t extends te{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==U.string){let i=this._getOrReturnCtx(e);return N(i,{code:P.invalid_type,expected:U.string,received:i.parsedType}),J}let o=new Be,n;for(let i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(n=this._getOrReturnCtx(e,n),N(n,{code:P.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if(i.kind==="max")e.data.length>i.value&&(n=this._getOrReturnCtx(e,n),N(n,{code:P.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if(i.kind==="length"){let a=e.data.length>i.value,c=e.data.length<i.value;(a||c)&&(n=this._getOrReturnCtx(e,n),a?N(n,{code:P.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):c&&N(n,{code:P.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),o.dirty())}else if(i.kind==="email")$I.test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"email",code:P.invalid_string,message:i.message}),o.dirty());else if(i.kind==="emoji")Wp||(Wp=new RegExp(bI,"u")),Wp.test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"emoji",code:P.invalid_string,message:i.message}),o.dirty());else if(i.kind==="uuid")gI.test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"uuid",code:P.invalid_string,message:i.message}),o.dirty());else if(i.kind==="nanoid")vI.test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"nanoid",code:P.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid")pI.test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"cuid",code:P.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid2")mI.test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"cuid2",code:P.invalid_string,message:i.message}),o.dirty());else if(i.kind==="ulid")hI.test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"ulid",code:P.invalid_string,message:i.message}),o.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),N(n,{validation:"url",code:P.invalid_string,message:i.message}),o.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"regex",code:P.invalid_string,message:i.message}),o.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(e,n),N(n,{code:P.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),o.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(n=this._getOrReturnCtx(e,n),N(n,{code:P.invalid_string,validation:{startsWith:i.value},message:i.message}),o.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(n=this._getOrReturnCtx(e,n),N(n,{code:P.invalid_string,validation:{endsWith:i.value},message:i.message}),o.dirty()):i.kind==="datetime"?EI(i).test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{code:P.invalid_string,validation:"datetime",message:i.message}),o.dirty()):i.kind==="date"?PI.test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{code:P.invalid_string,validation:"date",message:i.message}),o.dirty()):i.kind==="time"?TI(i).test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{code:P.invalid_string,validation:"time",message:i.message}),o.dirty()):i.kind==="duration"?yI.test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"duration",code:P.invalid_string,message:i.message}),o.dirty()):i.kind==="ip"?OI(e.data,i.version)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"ip",code:P.invalid_string,message:i.message}),o.dirty()):i.kind==="jwt"?jI(e.data,i.alg)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"jwt",code:P.invalid_string,message:i.message}),o.dirty()):i.kind==="cidr"?RI(e.data,i.version)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"cidr",code:P.invalid_string,message:i.message}),o.dirty()):i.kind==="base64"?zI.test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"base64",code:P.invalid_string,message:i.message}),o.dirty()):i.kind==="base64url"?II.test(e.data)||(n=this._getOrReturnCtx(e,n),N(n,{validation:"base64url",code:P.invalid_string,message:i.message}),o.dirty()):ie.assertNever(i);return{status:o.value,value:e.data}}_regex(e,r,o){return this.refinement(n=>e.test(n),{validation:r,code:P.invalid_string,...M.errToObj(o)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...M.errToObj(e)})}url(e){return this._addCheck({kind:"url",...M.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...M.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...M.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...M.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...M.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...M.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...M.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...M.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...M.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...M.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...M.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...M.errToObj(e)})}datetime(e){var r,o;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)=="undefined"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!=null?r:!1,local:(o=e==null?void 0:e.local)!=null?o:!1,...M.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)=="undefined"?null:e==null?void 0:e.precision,...M.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...M.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...M.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...M.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...M.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...M.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...M.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...M.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...M.errToObj(r)})}nonempty(e){return this.min(1,M.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};mo.create=t=>{var e;return new mo({checks:[],typeName:E.ZodString,coerce:(e=t==null?void 0:t.coerce)!=null?e:!1,...X(t)})};function NI(t,e){let r=(t.toString().split(".")[1]||"").length,o=(e.toString().split(".")[1]||"").length,n=r>o?r:o,i=Number.parseInt(t.toFixed(n).replace(".","")),a=Number.parseInt(e.toFixed(n).replace(".",""));return i%a/10**n}var Ki=class t extends te{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==U.number){let i=this._getOrReturnCtx(e);return N(i,{code:P.invalid_type,expected:U.number,received:i.parsedType}),J}let o,n=new Be;for(let i of this._def.checks)i.kind==="int"?ie.isInteger(e.data)||(o=this._getOrReturnCtx(e,o),N(o,{code:P.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(o=this._getOrReturnCtx(e,o),N(o,{code:P.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(o=this._getOrReturnCtx(e,o),N(o,{code:P.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="multipleOf"?NI(e.data,i.value)!==0&&(o=this._getOrReturnCtx(e,o),N(o,{code:P.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(o=this._getOrReturnCtx(e,o),N(o,{code:P.not_finite,message:i.message}),n.dirty()):ie.assertNever(i);return{status:n.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,M.toString(r))}gt(e,r){return this.setLimit("min",e,!1,M.toString(r))}lte(e,r){return this.setLimit("max",e,!0,M.toString(r))}lt(e,r){return this.setLimit("max",e,!1,M.toString(r))}setLimit(e,r,o,n){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:o,message:M.toString(n)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:M.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:M.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:M.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:M.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:M.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:M.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:M.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:M.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:M.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&ie.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(r===null||o.value>r)&&(r=o.value):o.kind==="max"&&(e===null||o.value<e)&&(e=o.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Ki.create=t=>new Ki({checks:[],typeName:E.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...X(t)});var Xi=class t extends te{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==U.bigint)return this._getInvalidInput(e);let o,n=new Be;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(o=this._getOrReturnCtx(e,o),N(o,{code:P.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(o=this._getOrReturnCtx(e,o),N(o,{code:P.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(o=this._getOrReturnCtx(e,o),N(o,{code:P.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):ie.assertNever(i);return{status:n.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return N(r,{code:P.invalid_type,expected:U.bigint,received:r.parsedType}),J}gte(e,r){return this.setLimit("min",e,!0,M.toString(r))}gt(e,r){return this.setLimit("min",e,!1,M.toString(r))}lte(e,r){return this.setLimit("max",e,!0,M.toString(r))}lt(e,r){return this.setLimit("max",e,!1,M.toString(r))}setLimit(e,r,o,n){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:o,message:M.toString(n)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:M.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:M.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:M.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:M.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:M.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Xi.create=t=>{var e;return new Xi({checks:[],typeName:E.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!=null?e:!1,...X(t)})};var Yi=class extends te{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==U.boolean){let o=this._getOrReturnCtx(e);return N(o,{code:P.invalid_type,expected:U.boolean,received:o.parsedType}),J}return nt(e.data)}};Yi.create=t=>new Yi({typeName:E.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...X(t)});var Qi=class t extends te{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==U.date){let i=this._getOrReturnCtx(e);return N(i,{code:P.invalid_type,expected:U.date,received:i.parsedType}),J}if(Number.isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return N(i,{code:P.invalid_date}),J}let o=new Be,n;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),N(n,{code:P.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),o.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),N(n,{code:P.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),o.dirty()):ie.assertNever(i);return{status:o.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:M.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:M.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};Qi.create=t=>new Qi({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:E.ZodDate,...X(t)});var ea=class extends te{_parse(e){if(this._getType(e)!==U.symbol){let o=this._getOrReturnCtx(e);return N(o,{code:P.invalid_type,expected:U.symbol,received:o.parsedType}),J}return nt(e.data)}};ea.create=t=>new ea({typeName:E.ZodSymbol,...X(t)});var ho=class extends te{_parse(e){if(this._getType(e)!==U.undefined){let o=this._getOrReturnCtx(e);return N(o,{code:P.invalid_type,expected:U.undefined,received:o.parsedType}),J}return nt(e.data)}};ho.create=t=>new ho({typeName:E.ZodUndefined,...X(t)});var go=class extends te{_parse(e){if(this._getType(e)!==U.null){let o=this._getOrReturnCtx(e);return N(o,{code:P.invalid_type,expected:U.null,received:o.parsedType}),J}return nt(e.data)}};go.create=t=>new go({typeName:E.ZodNull,...X(t)});var ta=class extends te{constructor(){super(...arguments),this._any=!0}_parse(e){return nt(e.data)}};ta.create=t=>new ta({typeName:E.ZodAny,...X(t)});var Nr=class extends te{constructor(){super(...arguments),this._unknown=!0}_parse(e){return nt(e.data)}};Nr.create=t=>new Nr({typeName:E.ZodUnknown,...X(t)});var tr=class extends te{_parse(e){let r=this._getOrReturnCtx(e);return N(r,{code:P.invalid_type,expected:U.never,received:r.parsedType}),J}};tr.create=t=>new tr({typeName:E.ZodNever,...X(t)});var ra=class extends te{_parse(e){if(this._getType(e)!==U.undefined){let o=this._getOrReturnCtx(e);return N(o,{code:P.invalid_type,expected:U.void,received:o.parsedType}),J}return nt(e.data)}};ra.create=t=>new ra({typeName:E.ZodVoid,...X(t)});var Cr=class t extends te{_parse(e){let{ctx:r,status:o}=this._processInputParams(e),n=this._def;if(r.parsedType!==U.array)return N(r,{code:P.invalid_type,expected:U.array,received:r.parsedType}),J;if(n.exactLength!==null){let a=r.data.length>n.exactLength.value,c=r.data.length<n.exactLength.value;(a||c)&&(N(r,{code:a?P.too_big:P.too_small,minimum:c?n.exactLength.value:void 0,maximum:a?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),o.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(N(r,{code:P.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),o.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(N(r,{code:P.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),o.dirty()),r.common.async)return Promise.all([...r.data].map((a,c)=>n.type._parseAsync(new It(r,a,r.path,c)))).then(a=>Be.mergeArray(o,a));let i=[...r.data].map((a,c)=>n.type._parseSync(new It(r,a,r.path,c)));return Be.mergeArray(o,i)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:M.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:M.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:M.toString(r)}})}nonempty(e){return this.min(1,e)}};Cr.create=(t,e)=>new Cr({type:t,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...X(e)});function po(t){if(t instanceof $t){let e={};for(let r in t.shape){let o=t.shape[r];e[r]=Zt.create(po(o))}return new $t({...t._def,shape:()=>e})}else return t instanceof Cr?new Cr({...t._def,type:po(t.element)}):t instanceof Zt?Zt.create(po(t.unwrap())):t instanceof gr?gr.create(po(t.unwrap())):t instanceof hr?hr.create(t.items.map(e=>po(e))):t}var $t=class t extends te{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=ie.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==U.object){let l=this._getOrReturnCtx(e);return N(l,{code:P.invalid_type,expected:U.object,received:l.parsedType}),J}let{status:o,ctx:n}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),c=[];if(!(this._def.catchall instanceof tr&&this._def.unknownKeys==="strip"))for(let l in n.data)a.includes(l)||c.push(l);let u=[];for(let l of a){let d=i[l],s=n.data[l];u.push({key:{status:"valid",value:l},value:d._parse(new It(n,s,n.path,l)),alwaysSet:l in n.data})}if(this._def.catchall instanceof tr){let l=this._def.unknownKeys;if(l==="passthrough")for(let d of c)u.push({key:{status:"valid",value:d},value:{status:"valid",value:n.data[d]}});else if(l==="strict")c.length>0&&(N(n,{code:P.unrecognized_keys,keys:c}),o.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let d of c){let s=n.data[d];u.push({key:{status:"valid",value:d},value:l._parse(new It(n,s,n.path,d)),alwaysSet:d in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let l=[];for(let d of u){let s=await d.key,f=await d.value;l.push({key:s,value:f,alwaysSet:d.alwaysSet})}return l}).then(l=>Be.mergeObjectSync(o,l)):Be.mergeObjectSync(o,u)}get shape(){return this._def.shape()}strict(e){return M.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,o)=>{var i,a,c,u;let n=(c=(a=(i=this._def).errorMap)==null?void 0:a.call(i,r,o).message)!=null?c:o.defaultError;return r.code==="unrecognized_keys"?{message:(u=M.errToObj(e).message)!=null?u:n}:{message:n}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:E.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let o of ie.objectKeys(e))e[o]&&this.shape[o]&&(r[o]=this.shape[o]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let o of ie.objectKeys(this.shape))e[o]||(r[o]=this.shape[o]);return new t({...this._def,shape:()=>r})}deepPartial(){return po(this)}partial(e){let r={};for(let o of ie.objectKeys(this.shape)){let n=this.shape[o];e&&!e[o]?r[o]=n:r[o]=n.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let o of ie.objectKeys(this.shape))if(e&&!e[o])r[o]=this.shape[o];else{let i=this.shape[o];for(;i instanceof Zt;)i=i._def.innerType;r[o]=i}return new t({...this._def,shape:()=>r})}keyof(){return N$(ie.objectKeys(this.shape))}};$t.create=(t,e)=>new $t({shape:()=>t,unknownKeys:"strip",catchall:tr.create(),typeName:E.ZodObject,...X(e)});$t.strictCreate=(t,e)=>new $t({shape:()=>t,unknownKeys:"strict",catchall:tr.create(),typeName:E.ZodObject,...X(e)});$t.lazycreate=(t,e)=>new $t({shape:t,unknownKeys:"strip",catchall:tr.create(),typeName:E.ZodObject,...X(e)});var vo=class extends te{_parse(e){let{ctx:r}=this._processInputParams(e),o=this._def.options;function n(i){for(let c of i)if(c.result.status==="valid")return c.result;for(let c of i)if(c.result.status==="dirty")return r.common.issues.push(...c.ctx.common.issues),c.result;let a=i.map(c=>new yt(c.ctx.common.issues));return N(r,{code:P.invalid_union,unionErrors:a}),J}if(r.common.async)return Promise.all(o.map(async i=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(n);{let i,a=[];for(let u of o){let l={...r,common:{...r.common,issues:[]},parent:null},d=u._parseSync({data:r.data,path:r.path,parent:l});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:l}),l.common.issues.length&&a.push(l.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let c=a.map(u=>new yt(u));return N(r,{code:P.invalid_union,unionErrors:c}),J}}get options(){return this._def.options}};vo.create=(t,e)=>new vo({options:t,typeName:E.ZodUnion,...X(e)});var mr=t=>t instanceof yo?mr(t.schema):t instanceof Mt?mr(t.innerType()):t instanceof $o?[t.value]:t instanceof bo?t.options:t instanceof xo?ie.objectValues(t.enum):t instanceof wo?mr(t._def.innerType):t instanceof ho?[void 0]:t instanceof go?[null]:t instanceof Zt?[void 0,...mr(t.unwrap())]:t instanceof gr?[null,...mr(t.unwrap())]:t instanceof eu||t instanceof So?mr(t.unwrap()):t instanceof ko?mr(t._def.innerType):[],Bp=class t extends te{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.object)return N(r,{code:P.invalid_type,expected:U.object,received:r.parsedType}),J;let o=this.discriminator,n=r.data[o],i=this.optionsMap.get(n);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(N(r,{code:P.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),J)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,o){let n=new Map;for(let i of r){let a=mr(i.shape[e]);if(!a.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let c of a){if(n.has(c))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(c)}`);n.set(c,i)}}return new t({typeName:E.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:n,...X(o)})}};function Gp(t,e){let r=pr(t),o=pr(e);if(t===e)return{valid:!0,data:t};if(r===U.object&&o===U.object){let n=ie.objectKeys(e),i=ie.objectKeys(t).filter(c=>n.indexOf(c)!==-1),a={...t,...e};for(let c of i){let u=Gp(t[c],e[c]);if(!u.valid)return{valid:!1};a[c]=u.data}return{valid:!0,data:a}}else if(r===U.array&&o===U.array){if(t.length!==e.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=t[i],c=e[i],u=Gp(a,c);if(!u.valid)return{valid:!1};n.push(u.data)}return{valid:!0,data:n}}else return r===U.date&&o===U.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var _o=class extends te{_parse(e){let{status:r,ctx:o}=this._processInputParams(e),n=(i,a)=>{if(Jp(i)||Jp(a))return J;let c=Gp(i.value,a.value);return c.valid?((Hp(i)||Hp(a))&&r.dirty(),{status:r.value,value:c.data}):(N(o,{code:P.invalid_intersection_types}),J)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([i,a])=>n(i,a)):n(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}};_o.create=(t,e,r)=>new _o({left:t,right:e,typeName:E.ZodIntersection,...X(r)});var hr=class t extends te{_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==U.array)return N(o,{code:P.invalid_type,expected:U.array,received:o.parsedType}),J;if(o.data.length<this._def.items.length)return N(o,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&o.data.length>this._def.items.length&&(N(o,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...o.data].map((a,c)=>{let u=this._def.items[c]||this._def.rest;return u?u._parse(new It(o,a,o.path,c)):null}).filter(a=>!!a);return o.common.async?Promise.all(i).then(a=>Be.mergeArray(r,a)):Be.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};hr.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new hr({items:t,typeName:E.ZodTuple,rest:null,...X(e)})};var Kp=class t extends te{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==U.object)return N(o,{code:P.invalid_type,expected:U.object,received:o.parsedType}),J;let n=[],i=this._def.keyType,a=this._def.valueType;for(let c in o.data)n.push({key:i._parse(new It(o,c,o.path,c)),value:a._parse(new It(o,o.data[c],o.path,c)),alwaysSet:c in o.data});return o.common.async?Be.mergeObjectAsync(r,n):Be.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(e,r,o){return r instanceof te?new t({keyType:e,valueType:r,typeName:E.ZodRecord,...X(o)}):new t({keyType:mo.create(),valueType:e,typeName:E.ZodRecord,...X(r)})}},na=class extends te{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==U.map)return N(o,{code:P.invalid_type,expected:U.map,received:o.parsedType}),J;let n=this._def.keyType,i=this._def.valueType,a=[...o.data.entries()].map(([c,u],l)=>({key:n._parse(new It(o,c,o.path,[l,"key"])),value:i._parse(new It(o,u,o.path,[l,"value"]))}));if(o.common.async){let c=new Map;return Promise.resolve().then(async()=>{for(let u of a){let l=await u.key,d=await u.value;if(l.status==="aborted"||d.status==="aborted")return J;(l.status==="dirty"||d.status==="dirty")&&r.dirty(),c.set(l.value,d.value)}return{status:r.value,value:c}})}else{let c=new Map;for(let u of a){let l=u.key,d=u.value;if(l.status==="aborted"||d.status==="aborted")return J;(l.status==="dirty"||d.status==="dirty")&&r.dirty(),c.set(l.value,d.value)}return{status:r.value,value:c}}}};na.create=(t,e,r)=>new na({valueType:e,keyType:t,typeName:E.ZodMap,...X(r)});var oa=class t extends te{_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==U.set)return N(o,{code:P.invalid_type,expected:U.set,received:o.parsedType}),J;let n=this._def;n.minSize!==null&&o.data.size<n.minSize.value&&(N(o,{code:P.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&o.data.size>n.maxSize.value&&(N(o,{code:P.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let i=this._def.valueType;function a(u){let l=new Set;for(let d of u){if(d.status==="aborted")return J;d.status==="dirty"&&r.dirty(),l.add(d.value)}return{status:r.value,value:l}}let c=[...o.data.values()].map((u,l)=>i._parse(new It(o,u,o.path,l)));return o.common.async?Promise.all(c).then(u=>a(u)):a(c)}min(e,r){return new t({...this._def,minSize:{value:e,message:M.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:M.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};oa.create=(t,e)=>new oa({valueType:t,minSize:null,maxSize:null,typeName:E.ZodSet,...X(e)});var Xp=class t extends te{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.function)return N(r,{code:P.invalid_type,expected:U.function,received:r.parsedType}),J;function o(c,u){return Qc({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Bi(),Rr].filter(l=>!!l),issueData:{code:P.invalid_arguments,argumentsError:u}})}function n(c,u){return Qc({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Bi(),Rr].filter(l=>!!l),issueData:{code:P.invalid_return_type,returnTypeError:u}})}let i={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof wn){let c=this;return nt(async function(...u){let l=new yt([]),d=await c._def.args.parseAsync(u,i).catch(p=>{throw l.addIssue(o(u,p)),l}),s=await Reflect.apply(a,this,d);return await c._def.returns._def.type.parseAsync(s,i).catch(p=>{throw l.addIssue(n(s,p)),l})})}else{let c=this;return nt(function(...u){let l=c._def.args.safeParse(u,i);if(!l.success)throw new yt([o(u,l.error)]);let d=Reflect.apply(a,this,l.data),s=c._def.returns.safeParse(d,i);if(!s.success)throw new yt([n(d,s.error)]);return s.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:hr.create(e).rest(Nr.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,o){return new t({args:e||hr.create([]).rest(Nr.create()),returns:r||Nr.create(),typeName:E.ZodFunction,...X(o)})}},yo=class extends te{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};yo.create=(t,e)=>new yo({getter:t,typeName:E.ZodLazy,...X(e)});var $o=class extends te{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return N(r,{received:r.data,code:P.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:e.data}}get value(){return this._def.value}};$o.create=(t,e)=>new $o({value:t,typeName:E.ZodLiteral,...X(e)});function N$(t,e){return new bo({values:t,typeName:E.ZodEnum,...X(e)})}var bo=class t extends te{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),o=this._def.values;return N(r,{expected:ie.joinValues(o),received:r.parsedType,code:P.invalid_type}),J}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),o=this._def.values;return N(r,{received:r.data,code:P.invalid_enum_value,options:o}),J}return nt(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(o=>!e.includes(o)),{...this._def,...r})}};bo.create=N$;var xo=class extends te{_parse(e){let r=ie.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(e);if(o.parsedType!==U.string&&o.parsedType!==U.number){let n=ie.objectValues(r);return N(o,{expected:ie.joinValues(n),received:o.parsedType,code:P.invalid_type}),J}if(this._cache||(this._cache=new Set(ie.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let n=ie.objectValues(r);return N(o,{received:o.data,code:P.invalid_enum_value,options:n}),J}return nt(e.data)}get enum(){return this._def.values}};xo.create=(t,e)=>new xo({values:t,typeName:E.ZodNativeEnum,...X(e)});var wn=class extends te{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.promise&&r.common.async===!1)return N(r,{code:P.invalid_type,expected:U.promise,received:r.parsedType}),J;let o=r.parsedType===U.promise?r.data:Promise.resolve(r.data);return nt(o.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};wn.create=(t,e)=>new wn({type:t,typeName:E.ZodPromise,...X(e)});var Mt=class extends te{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===E.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:o}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:a=>{N(o,a),a.fatal?r.abort():r.dirty()},get path(){return o.path}};if(i.addIssue=i.addIssue.bind(i),n.type==="preprocess"){let a=n.transform(o.data,i);if(o.common.async)return Promise.resolve(a).then(async c=>{if(r.value==="aborted")return J;let u=await this._def.schema._parseAsync({data:c,path:o.path,parent:o});return u.status==="aborted"?J:u.status==="dirty"?fo(u.value):r.value==="dirty"?fo(u.value):u});{if(r.value==="aborted")return J;let c=this._def.schema._parseSync({data:a,path:o.path,parent:o});return c.status==="aborted"?J:c.status==="dirty"?fo(c.value):r.value==="dirty"?fo(c.value):c}}if(n.type==="refinement"){let a=c=>{let u=n.refinement(c,i);if(o.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(o.common.async===!1){let c=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return c.status==="aborted"?J:(c.status==="dirty"&&r.dirty(),a(c.value),{status:r.value,value:c.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(c=>c.status==="aborted"?J:(c.status==="dirty"&&r.dirty(),a(c.value).then(()=>({status:r.value,value:c.value}))))}if(n.type==="transform")if(o.common.async===!1){let a=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!xn(a))return J;let c=n.transform(a.value,i);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:c}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(a=>xn(a)?Promise.resolve(n.transform(a.value,i)).then(c=>({status:r.value,value:c})):J);ie.assertNever(n)}};Mt.create=(t,e,r)=>new Mt({schema:t,typeName:E.ZodEffects,effect:e,...X(r)});Mt.createWithPreprocess=(t,e,r)=>new Mt({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...X(r)});var Zt=class extends te{_parse(e){return this._getType(e)===U.undefined?nt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Zt.create=(t,e)=>new Zt({innerType:t,typeName:E.ZodOptional,...X(e)});var gr=class extends te{_parse(e){return this._getType(e)===U.null?nt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};gr.create=(t,e)=>new gr({innerType:t,typeName:E.ZodNullable,...X(e)});var wo=class extends te{_parse(e){let{ctx:r}=this._processInputParams(e),o=r.data;return r.parsedType===U.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};wo.create=(t,e)=>new wo({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...X(e)});var ko=class extends te{_parse(e){let{ctx:r}=this._processInputParams(e),o={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return Gi(n)?n.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new yt(o.common.issues)},input:o.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new yt(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}};ko.create=(t,e)=>new ko({innerType:t,typeName:E.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...X(e)});var ia=class extends te{_parse(e){if(this._getType(e)!==U.nan){let o=this._getOrReturnCtx(e);return N(o,{code:P.invalid_type,expected:U.nan,received:o.parsedType}),J}return{status:"valid",value:e.data}}};ia.create=t=>new ia({typeName:E.ZodNaN,...X(t)});var DA=Symbol("zod_brand"),eu=class extends te{_parse(e){let{ctx:r}=this._processInputParams(e),o=r.data;return this._def.type._parse({data:o,path:r.path,parent:r})}unwrap(){return this._def.type}},tu=class t extends te{_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return i.status==="aborted"?J:i.status==="dirty"?(r.dirty(),fo(i.value)):this._def.out._parseAsync({data:i.value,path:o.path,parent:o})})();{let n=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return n.status==="aborted"?J:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:o.path,parent:o})}}static create(e,r){return new t({in:e,out:r,typeName:E.ZodPipeline})}},So=class extends te{_parse(e){let r=this._def.innerType._parse(e),o=n=>(xn(n)&&(n.value=Object.freeze(n.value)),n);return Gi(r)?r.then(n=>o(n)):o(r)}unwrap(){return this._def.innerType}};So.create=(t,e)=>new So({innerType:t,typeName:E.ZodReadonly,...X(e)});var UA={object:$t.lazycreate},E;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(E||(E={}));var AA=mo.create,ZA=Ki.create,MA=ia.create,qA=Xi.create,LA=Yi.create,VA=Qi.create,FA=ea.create,JA=ho.create,HA=go.create,WA=ta.create,BA=Nr.create,GA=tr.create,KA=ra.create,XA=Cr.create,CI=$t.create,YA=$t.strictCreate,QA=vo.create,eZ=Bp.create,tZ=_o.create,rZ=hr.create,nZ=Kp.create,oZ=na.create,iZ=oa.create,aZ=Xp.create,sZ=yo.create,cZ=$o.create,uZ=bo.create,lZ=xo.create,dZ=wn.create,fZ=Mt.create,pZ=Zt.create,mZ=gr.create,hZ=Mt.createWithPreprocess,gZ=tu.create;var Xe={};_t(Xe,{$ZodAny:()=>Bu,$ZodArray:()=>Yu,$ZodAsyncError:()=>qt,$ZodBase64:()=>Au,$ZodBase64URL:()=>Zu,$ZodBigInt:()=>Do,$ZodBigIntFormat:()=>Fu,$ZodBoolean:()=>jn,$ZodCIDRv4:()=>Du,$ZodCIDRv6:()=>Uu,$ZodCUID:()=>Pu,$ZodCUID2:()=>Tu,$ZodCatch:()=>hl,$ZodCheck:()=>ye,$ZodCheckBigIntFormat:()=>Um,$ZodCheckEndsWith:()=>Gm,$ZodCheckGreaterThan:()=>gu,$ZodCheckIncludes:()=>Wm,$ZodCheckLengthEquals:()=>Vm,$ZodCheckLessThan:()=>hu,$ZodCheckLowerCase:()=>Jm,$ZodCheckMaxLength:()=>qm,$ZodCheckMaxSize:()=>Am,$ZodCheckMimeType:()=>Xm,$ZodCheckMinLength:()=>Lm,$ZodCheckMinSize:()=>Zm,$ZodCheckMultipleOf:()=>Cm,$ZodCheckNumberFormat:()=>Dm,$ZodCheckOverwrite:()=>Ym,$ZodCheckProperty:()=>Km,$ZodCheckRegex:()=>Fm,$ZodCheckSizeEquals:()=>Mm,$ZodCheckStartsWith:()=>Bm,$ZodCheckStringFormat:()=>No,$ZodCheckUpperCase:()=>Hm,$ZodCodec:()=>Ao,$ZodCustom:()=>wl,$ZodCustomStringFormat:()=>Lu,$ZodDate:()=>wa,$ZodDefault:()=>dl,$ZodDiscriminatedUnion:()=>el,$ZodE164:()=>Mu,$ZodEmail:()=>ku,$ZodEmoji:()=>zu,$ZodEncodeError:()=>Dr,$ZodEnum:()=>il,$ZodError:()=>pa,$ZodExactOptional:()=>ul,$ZodFile:()=>sl,$ZodFunction:()=>$l,$ZodGUID:()=>xu,$ZodIPv4:()=>Ru,$ZodIPv6:()=>Nu,$ZodISODate:()=>$a,$ZodISODateTime:()=>ya,$ZodISODuration:()=>xa,$ZodISOTime:()=>ba,$ZodIntersection:()=>tl,$ZodJWT:()=>qu,$ZodKSUID:()=>ju,$ZodLazy:()=>xl,$ZodLiteral:()=>al,$ZodMAC:()=>Cu,$ZodMap:()=>nl,$ZodNaN:()=>gl,$ZodNanoID:()=>Iu,$ZodNever:()=>Ku,$ZodNonOptional:()=>pl,$ZodNull:()=>Wu,$ZodNullable:()=>ll,$ZodNumber:()=>Co,$ZodNumberFormat:()=>Vu,$ZodObject:()=>rh,$ZodObjectJIT:()=>nh,$ZodOptional:()=>Sa,$ZodPipe:()=>vl,$ZodPrefault:()=>fl,$ZodPromise:()=>bl,$ZodReadonly:()=>_l,$ZodRealError:()=>ft,$ZodRecord:()=>rl,$ZodRegistry:()=>Il,$ZodSet:()=>ol,$ZodString:()=>_r,$ZodStringFormat:()=>me,$ZodSuccess:()=>ml,$ZodSymbol:()=>Ju,$ZodTemplateLiteral:()=>yl,$ZodTransform:()=>cl,$ZodTuple:()=>ka,$ZodType:()=>W,$ZodULID:()=>Eu,$ZodURL:()=>Su,$ZodUUID:()=>wu,$ZodUndefined:()=>Hu,$ZodUnion:()=>Uo,$ZodUnknown:()=>Gu,$ZodVoid:()=>Xu,$ZodXID:()=>Ou,$ZodXor:()=>Qu,$brand:()=>zo,$constructor:()=>_,$input:()=>Pa,$output:()=>Ia,Doc:()=>_a,JSONSchema:()=>Vh,JSONSchemaGenerator:()=>id,NEVER:()=>kn,TimePrecision:()=>Ka,_any:()=>Vl,_array:()=>oh,_base64:()=>Ha,_base64url:()=>Wa,_bigint:()=>Ul,_boolean:()=>Dl,_catch:()=>VT,_check:()=>yx,_cidrv4:()=>Fa,_cidrv6:()=>Ja,_coercedBigint:()=>ns,_coercedBoolean:()=>rs,_coercedDate:()=>os,_coercedNumber:()=>ts,_coercedString:()=>Ta,_cuid:()=>Ua,_cuid2:()=>Aa,_custom:()=>Kl,_date:()=>Wl,_decode:()=>au,_decodeAsync:()=>cu,_default:()=>MT,_discriminatedUnion:()=>PT,_e164:()=>Ba,_email:()=>Ea,_emoji:()=>Ca,_encode:()=>iu,_encodeAsync:()=>su,_endsWith:()=>Wr,_enum:()=>NT,_file:()=>Gl,_float32:()=>jl,_float64:()=>Rl,_gt:()=>Et,_gte:()=>Me,_guid:()=>qo,_includes:()=>Jr,_int:()=>Ol,_int32:()=>Nl,_int64:()=>Al,_intersection:()=>TT,_ipv4:()=>La,_ipv6:()=>Va,_isoDate:()=>Ya,_isoDateTime:()=>Xa,_isoDuration:()=>es,_isoTime:()=>Qa,_jwt:()=>Ga,_ksuid:()=>qa,_lazy:()=>WT,_length:()=>br,_literal:()=>DT,_lowercase:()=>Vr,_lt:()=>Tt,_lte:()=>Ke,_mac:()=>Tl,_map:()=>jT,_max:()=>Ke,_maxLength:()=>$r,_maxSize:()=>or,_mime:()=>Br,_min:()=>Me,_minLength:()=>Lt,_minSize:()=>Ot,_multipleOf:()=>nr,_nan:()=>Bl,_nanoid:()=>Da,_nativeEnum:()=>CT,_negative:()=>Fo,_never:()=>Jl,_nonnegative:()=>Ho,_nonoptional:()=>qT,_nonpositive:()=>Jo,_normalize:()=>Gr,_null:()=>Ll,_nullable:()=>ZT,_number:()=>El,_optional:()=>AT,_overwrite:()=>xt,_parse:()=>Eo,_parseAsync:()=>Oo,_pipe:()=>FT,_positive:()=>Vo,_promise:()=>BT,_property:()=>Wo,_readonly:()=>JT,_record:()=>OT,_refine:()=>Xl,_regex:()=>Lr,_safeDecode:()=>lu,_safeDecodeAsync:()=>fu,_safeEncode:()=>uu,_safeEncodeAsync:()=>du,_safeParse:()=>jo,_safeParseAsync:()=>Ro,_set:()=>RT,_size:()=>yr,_slugify:()=>Rn,_startsWith:()=>Hr,_string:()=>Pl,_stringFormat:()=>Nn,_stringbool:()=>td,_success:()=>LT,_superRefine:()=>Yl,_symbol:()=>Ml,_templateLiteral:()=>HT,_toLowerCase:()=>Xr,_toUpperCase:()=>Yr,_transform:()=>UT,_trim:()=>Kr,_tuple:()=>ET,_uint32:()=>Cl,_uint64:()=>Zl,_ulid:()=>Za,_undefined:()=>ql,_union:()=>zT,_unknown:()=>Fl,_uppercase:()=>Fr,_url:()=>Lo,_uuid:()=>Oa,_uuidv4:()=>ja,_uuidv6:()=>Ra,_uuidv7:()=>Na,_void:()=>Hl,_xid:()=>Ma,_xor:()=>IT,clone:()=>Ue,config:()=>Pe,createStandardJSONSchemaMethod:()=>Bo,createToJSONSchemaMethod:()=>ih,decode:()=>W$,decodeAsync:()=>G$,describe:()=>Ql,encode:()=>H$,encodeAsync:()=>B$,extractDefs:()=>en,finalize:()=>tn,flattenError:()=>zn,formatError:()=>In,globalConfig:()=>aa,globalRegistry:()=>Ae,initializeContext:()=>Qr,isValidBase64:()=>th,isValidBase64URL:()=>vb,isValidJWT:()=>_b,locales:()=>rr,meta:()=>ed,parse:()=>Pn,parseAsync:()=>Tn,prettifyError:()=>ha,process:()=>he,regexes:()=>Ge,registry:()=>Mo,safeDecode:()=>X$,safeDecodeAsync:()=>Q$,safeEncode:()=>K$,safeEncodeAsync:()=>Y$,safeParse:()=>qr,safeParseAsync:()=>En,toDotPath:()=>J$,toJSONSchema:()=>Cn,treeifyError:()=>ma,util:()=>S,version:()=>Qm});var kn=Object.freeze({status:"aborted"});function _(t,e,r){var c;function o(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),u._zod.traits.has(t))return;u._zod.traits.add(t),e(u,l);let d=a.prototype,s=Object.keys(d);for(let f=0;f<s.length;f++){let p=s[f];p in u||(u[p]=d[p].bind(u))}}let n=(c=r==null?void 0:r.Parent)!=null?c:Object;class i extends n{}Object.defineProperty(i,"name",{value:t});function a(u){var s;var l;let d=r!=null&&r.Parent?new i:this;o(d,u),(s=(l=d._zod).deferred)!=null||(l.deferred=[]);for(let f of d._zod.deferred)f();return d}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:u=>{var l,d;return r!=null&&r.Parent&&u instanceof r.Parent?!0:(d=(l=u==null?void 0:u._zod)==null?void 0:l.traits)==null?void 0:d.has(t)}}),Object.defineProperty(a,"name",{value:t}),a}var zo=Symbol("zod_brand"),qt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Dr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},aa={};function Pe(t){return t&&Object.assign(aa,t),aa}var S={};_t(S,{BIGINT_FORMAT_RANGES:()=>am,Class:()=>Qp,NUMBER_FORMAT_RANGES:()=>im,aborted:()=>Mr,allowsEval:()=>rm,assert:()=>LI,assertEqual:()=>AI,assertIs:()=>MI,assertNever:()=>qI,assertNotEqual:()=>ZI,assignProp:()=>Ar,base64ToUint8Array:()=>L$,base64urlToUint8Array:()=>QI,cached:()=>Po,captureStackTrace:()=>nu,cleanEnum:()=>YI,cleanRegex:()=>ua,clone:()=>Ue,cloneDef:()=>FI,createTransparentProxy:()=>KI,defineLazy:()=>Y,esc:()=>ru,escapeRegex:()=>Pt,extend:()=>A$,finalizeIssue:()=>dt,floatSafeRemainder:()=>em,getElementAtPath:()=>JI,getEnumValues:()=>ca,getLengthableOrigin:()=>fa,getParsedType:()=>GI,getSizableOrigin:()=>da,hexToUint8Array:()=>tP,isObject:()=>Sn,isPlainObject:()=>Zr,issue:()=>To,joinValues:()=>$,jsonStringifyReplacer:()=>Io,merge:()=>XI,mergeDefs:()=>vr,normalizeParams:()=>O,nullish:()=>Ur,numKeys:()=>BI,objectClone:()=>VI,omit:()=>U$,optionalKeys:()=>om,parsedType:()=>T,partial:()=>M$,pick:()=>D$,prefixIssues:()=>bt,primitiveTypes:()=>nm,promiseAllObject:()=>HI,propertyKeyTypes:()=>la,randomString:()=>WI,required:()=>q$,safeExtend:()=>Z$,shallowClone:()=>ou,slugify:()=>tm,stringifyPrimitive:()=>I,uint8ArrayToBase64:()=>V$,uint8ArrayToBase64url:()=>eP,uint8ArrayToHex:()=>rP,unwrapMessage:()=>sa});function AI(t){return t}function ZI(t){return t}function MI(t){}function qI(t){throw new Error("Unexpected value in exhaustive check")}function LI(t){}function ca(t){let e=Object.values(t).filter(o=>typeof o=="number");return Object.entries(t).filter(([o,n])=>e.indexOf(+o)===-1).map(([o,n])=>n)}function $(t,e="|"){return t.map(r=>I(r)).join(e)}function Io(t,e){return typeof e=="bigint"?e.toString():e}function Po(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Ur(t){return t==null}function ua(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function em(t,e){let r=(t.toString().split(".")[1]||"").length,o=e.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let u=o.match(/\d?e-(\d?)/);u!=null&&u[1]&&(n=Number.parseInt(u[1]))}let i=r>n?r:n,a=Number.parseInt(t.toFixed(i).replace(".","")),c=Number.parseInt(e.toFixed(i).replace(".",""));return a%c/10**i}var C$=Symbol("evaluating");function Y(t,e,r){let o;Object.defineProperty(t,e,{get(){if(o!==C$)return o===void 0&&(o=C$,o=r()),o},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}function VI(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function Ar(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function vr(...t){let e={};for(let r of t){let o=Object.getOwnPropertyDescriptors(r);Object.assign(e,o)}return Object.defineProperties({},e)}function FI(t){return vr(t._zod.def)}function JI(t,e){return e?e.reduce((r,o)=>r==null?void 0:r[o],t):t}function HI(t){let e=Object.keys(t),r=e.map(o=>t[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<e.length;i++)n[e[i]]=o[i];return n})}function WI(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<t;o++)r+=e[Math.floor(Math.random()*e.length)];return r}function ru(t){return JSON.stringify(t)}function tm(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var nu="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Sn(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var rm=Po(()=>{var t;if(typeof navigator!="undefined"&&((t=navigator==null?void 0:navigator.userAgent)!=null&&t.includes("Cloudflare")))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Zr(t){if(Sn(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(Sn(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ou(t){return Zr(t)?{...t}:Array.isArray(t)?[...t]:t}function BI(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}var GI=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map!="undefined"&&t instanceof Map?"map":typeof Set!="undefined"&&t instanceof Set?"set":typeof Date!="undefined"&&t instanceof Date?"date":typeof File!="undefined"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},la=new Set(["string","number","symbol"]),nm=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Pt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ue(t,e,r){let o=new t._zod.constr(e!=null?e:t._zod.def);return(!e||r!=null&&r.parent)&&(o._zod.parent=t),o}function O(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function KI(t){let e;return new Proxy({},{get(r,o,n){return e!=null||(e=t()),Reflect.get(e,o,n)},set(r,o,n,i){return e!=null||(e=t()),Reflect.set(e,o,n,i)},has(r,o){return e!=null||(e=t()),Reflect.has(e,o)},deleteProperty(r,o){return e!=null||(e=t()),Reflect.deleteProperty(e,o)},ownKeys(r){return e!=null||(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,o){return e!=null||(e=t()),Reflect.getOwnPropertyDescriptor(e,o)},defineProperty(r,o,n){return e!=null||(e=t()),Reflect.defineProperty(e,o,n)}})}function I(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function om(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var im={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]},am={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function D$(t,e){let r=t._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=vr(t._zod.def,{get shape(){let a={};for(let c in e){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);e[c]&&(a[c]=r.shape[c])}return Ar(this,"shape",a),a},checks:[]});return Ue(t,i)}function U$(t,e){let r=t._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=vr(t._zod.def,{get shape(){let a={...t._zod.def.shape};for(let c in e){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);e[c]&&delete a[c]}return Ar(this,"shape",a),a},checks:[]});return Ue(t,i)}function A$(t,e){if(!Zr(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let i=t._zod.def.shape;for(let a in e)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=vr(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return Ar(this,"shape",i),i}});return Ue(t,n)}function Z$(t,e){if(!Zr(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=vr(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e};return Ar(this,"shape",o),o}});return Ue(t,r)}function XI(t,e){let r=vr(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e._zod.def.shape};return Ar(this,"shape",o),o},get catchall(){return e._zod.def.catchall},checks:[]});return Ue(t,r)}function M$(t,e,r){let n=e._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=vr(e._zod.def,{get shape(){let c=e._zod.def.shape,u={...c};if(r)for(let l in r){if(!(l in c))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(u[l]=t?new t({type:"optional",innerType:c[l]}):c[l])}else for(let l in c)u[l]=t?new t({type:"optional",innerType:c[l]}):c[l];return Ar(this,"shape",u),u},checks:[]});return Ue(e,a)}function q$(t,e,r){let o=vr(e._zod.def,{get shape(){let n=e._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new t({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new t({type:"nonoptional",innerType:n[a]});return Ar(this,"shape",i),i}});return Ue(e,o)}function Mr(t,e=0){var r;if(t.aborted===!0)return!0;for(let o=e;o<t.issues.length;o++)if(((r=t.issues[o])==null?void 0:r.continue)!==!0)return!0;return!1}function bt(t,e){return e.map(r=>{var n;var o;return(n=(o=r).path)!=null||(o.path=[]),r.path.unshift(t),r})}function sa(t){return typeof t=="string"?t:t==null?void 0:t.message}function dt(t,e,r){var n,i,a,c,u,l,d,s,f,p,m;let o={...t,path:(n=t.path)!=null?n:[]};if(!t.message){let h=(m=(p=(s=(l=sa((c=(a=(i=t.inst)==null?void 0:i._zod.def)==null?void 0:a.error)==null?void 0:c.call(a,t)))!=null?l:sa((u=e==null?void 0:e.error)==null?void 0:u.call(e,t)))!=null?s:sa((d=r.customError)==null?void 0:d.call(r,t)))!=null?p:sa((f=r.localeError)==null?void 0:f.call(r,t)))!=null?m:"Invalid input";o.message=h}return delete o.inst,delete o.continue,e!=null&&e.reportInput||delete o.input,o}function da(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function fa(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function T(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}function To(...t){let[e,r,o]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:o}:{...e}}function YI(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function L$(t){let e=atob(t),r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return r}function V$(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}function QI(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return L$(e+r)}function eP(t){return V$(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function tP(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(e.length/2);for(let o=0;o<e.length;o+=2)r[o/2]=Number.parseInt(e.slice(o,o+2),16);return r}function rP(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}var Qp=class{constructor(...e){}};var F$=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,Io,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},pa=_("$ZodError",F$),ft=_("$ZodError",F$,{Parent:Error});function zn(t,e=r=>r.message){let r={},o=[];for(let n of t.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):o.push(e(n));return{formErrors:o,fieldErrors:r}}function In(t,e=r=>r.message){let r={_errors:[]},o=n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(e(i));else{let a=r,c=0;for(;c<i.path.length;){let u=i.path[c];c===i.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(e(i))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return o(t),r}function ma(t,e=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var u,l,d,s;var a,c;for(let f of n.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(p=>o({issues:p},f.path));else if(f.code==="invalid_key")o({issues:f.issues},f.path);else if(f.code==="invalid_element")o({issues:f.issues},f.path);else{let p=[...i,...f.path];if(p.length===0){r.errors.push(e(f));continue}let m=r,h=0;for(;h<p.length;){let g=p[h],y=h===p.length-1;typeof g=="string"?((u=m.properties)!=null||(m.properties={}),(l=(a=m.properties)[g])!=null||(a[g]={errors:[]}),m=m.properties[g]):((d=m.items)!=null||(m.items=[]),(s=(c=m.items)[g])!=null||(c[g]={errors:[]}),m=m.items[g]),y&&m.errors.push(e(f)),h++}}};return o(t),r}function J$(t){let e=[],r=t.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?e.push(`[${o}]`):typeof o=="symbol"?e.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?e.push(`[${JSON.stringify(o)}]`):(e.length&&e.push("."),e.push(o));return e.join("")}function ha(t){var o;let e=[],r=[...t.issues].sort((n,i)=>{var a,c;return((a=n.path)!=null?a:[]).length-((c=i.path)!=null?c:[]).length});for(let n of r)e.push(`\u2716 ${n.message}`),(o=n.path)!=null&&o.length&&e.push(`  \u2192 at ${J$(n.path)}`);return e.join(`
`)}var Eo=t=>(e,r,o,n)=>{var c;let i=o?Object.assign(o,{async:!1}):{async:!1},a=e._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new qt;if(a.issues.length){let u=new((c=n==null?void 0:n.Err)!=null?c:t)(a.issues.map(l=>dt(l,i,Pe())));throw nu(u,n==null?void 0:n.callee),u}return a.value},Pn=Eo(ft),Oo=t=>async(e,r,o,n)=>{var c;let i=o?Object.assign(o,{async:!0}):{async:!0},a=e._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let u=new((c=n==null?void 0:n.Err)!=null?c:t)(a.issues.map(l=>dt(l,i,Pe())));throw nu(u,n==null?void 0:n.callee),u}return a.value},Tn=Oo(ft),jo=t=>(e,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=e._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new qt;return i.issues.length?{success:!1,error:new(t!=null?t:pa)(i.issues.map(a=>dt(a,n,Pe())))}:{success:!0,data:i.value}},qr=jo(ft),Ro=t=>async(e,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=e._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(a=>dt(a,n,Pe())))}:{success:!0,data:i.value}},En=Ro(ft),iu=t=>(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Eo(t)(e,r,n)},H$=iu(ft),au=t=>(e,r,o)=>Eo(t)(e,r,o),W$=au(ft),su=t=>async(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Oo(t)(e,r,n)},B$=su(ft),cu=t=>async(e,r,o)=>Oo(t)(e,r,o),G$=cu(ft),uu=t=>(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return jo(t)(e,r,n)},K$=uu(ft),lu=t=>(e,r,o)=>jo(t)(e,r,o),X$=lu(ft),du=t=>async(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ro(t)(e,r,n)},Y$=du(ft),fu=t=>async(e,r,o)=>Ro(t)(e,r,o),Q$=fu(ft);var Ge={};_t(Ge,{base64:()=>xm,base64url:()=>pu,bigint:()=>Pm,boolean:()=>Em,browserEmail:()=>dP,cidrv4:()=>$m,cidrv6:()=>bm,cuid:()=>sm,cuid2:()=>cm,date:()=>km,datetime:()=>zm,domain:()=>mP,duration:()=>pm,e164:()=>wm,email:()=>hm,emoji:()=>gm,extendedDuration:()=>oP,guid:()=>mm,hex:()=>hP,hostname:()=>pP,html5Email:()=>cP,idnEmail:()=>lP,integer:()=>Tm,ipv4:()=>vm,ipv6:()=>_m,ksuid:()=>dm,lowercase:()=>Rm,mac:()=>ym,md5_base64:()=>vP,md5_base64url:()=>_P,md5_hex:()=>gP,nanoid:()=>fm,null:()=>Om,number:()=>mu,rfc5322Email:()=>uP,sha1_base64:()=>$P,sha1_base64url:()=>bP,sha1_hex:()=>yP,sha256_base64:()=>wP,sha256_base64url:()=>kP,sha256_hex:()=>xP,sha384_base64:()=>zP,sha384_base64url:()=>IP,sha384_hex:()=>SP,sha512_base64:()=>TP,sha512_base64url:()=>EP,sha512_hex:()=>PP,string:()=>Im,time:()=>Sm,ulid:()=>um,undefined:()=>jm,unicodeEmail:()=>eb,uppercase:()=>Nm,uuid:()=>On,uuid4:()=>iP,uuid6:()=>aP,uuid7:()=>sP,xid:()=>lm});var sm=/^[cC][^\s-]{8,}$/,cm=/^[0-9a-z]+$/,um=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,lm=/^[0-9a-vA-V]{20}$/,dm=/^[A-Za-z0-9]{27}$/,fm=/^[a-zA-Z0-9_-]{21}$/,pm=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,oP=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,mm=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,On=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[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)$/,iP=On(4),aP=On(6),sP=On(7),hm=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,cP=/^[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])?)*$/,uP=/^(([^<>()\[\]\\.,;:\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,}))$/,eb=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,lP=eb,dP=/^[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])?)*$/,fP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function gm(){return new RegExp(fP,"u")}var vm=/^(?:(?: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])$/,_m=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ym=t=>{let e=Pt(t!=null?t:":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},$m=/^((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])$/,bm=/^(([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])$/,xm=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,pu=/^[A-Za-z0-9_-]*$/,pP=/^(?=.{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])?)*\.?$/,mP=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,wm=/^\+[1-9]\d{6,14}$/,tb="(?:(?:\\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])))",km=new RegExp(`^${tb}$`);function rb(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Sm(t){return new RegExp(`^${rb(t)}$`)}function zm(t){let e=rb({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${e}(?:${r.join("|")})`;return new RegExp(`^${tb}T(?:${o})$`)}var Im=t=>{var r,o;let e=t?`[\\s\\S]{${(r=t==null?void 0:t.minimum)!=null?r:0},${(o=t==null?void 0:t.maximum)!=null?o:""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},Pm=/^-?\d+n?$/,Tm=/^-?\d+$/,mu=/^-?\d+(?:\.\d+)?$/,Em=/^(?:true|false)$/i,Om=/^null$/i;var jm=/^undefined$/i;var Rm=/^[^A-Z]*$/,Nm=/^[^a-z]*$/,hP=/^[0-9a-fA-F]*$/;function ga(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}function va(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var gP=/^[0-9a-fA-F]{32}$/,vP=ga(22,"=="),_P=va(22),yP=/^[0-9a-fA-F]{40}$/,$P=ga(27,"="),bP=va(27),xP=/^[0-9a-fA-F]{64}$/,wP=ga(43,"="),kP=va(43),SP=/^[0-9a-fA-F]{96}$/,zP=ga(64,""),IP=va(64),PP=/^[0-9a-fA-F]{128}$/,TP=ga(86,"=="),EP=va(86);var ye=_("$ZodCheck",(t,e)=>{var o,n;var r;(o=t._zod)!=null||(t._zod={}),t._zod.def=e,(n=(r=t._zod).onattach)!=null||(r.onattach=[])}),ob={number:"number",bigint:"bigint",object:"date"},hu=_("$ZodCheckLessThan",(t,e)=>{ye.init(t,e);let r=ob[typeof e.value];t._zod.onattach.push(o=>{var a;let n=o._zod.bag,i=(a=e.inclusive?n.maximum:n.exclusiveMaximum)!=null?a:Number.POSITIVE_INFINITY;e.value<i&&(e.inclusive?n.maximum=e.value:n.exclusiveMaximum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value<=e.value:o.value<e.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),gu=_("$ZodCheckGreaterThan",(t,e)=>{ye.init(t,e);let r=ob[typeof e.value];t._zod.onattach.push(o=>{var a;let n=o._zod.bag,i=(a=e.inclusive?n.minimum:n.exclusiveMinimum)!=null?a:Number.NEGATIVE_INFINITY;e.value>i&&(e.inclusive?n.minimum=e.value:n.exclusiveMinimum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value>=e.value:o.value>e.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Cm=_("$ZodCheckMultipleOf",(t,e)=>{ye.init(t,e),t._zod.onattach.push(r=>{var n;var o;(n=(o=r._zod.bag).multipleOf)!=null||(o.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):em(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),Dm=_("$ZodCheckNumberFormat",(t,e)=>{var a;ye.init(t,e),e.format=e.format||"float64";let r=(a=e.format)==null?void 0:a.includes("int"),o=r?"int":"number",[n,i]=im[e.format];t._zod.onattach.push(c=>{let u=c._zod.bag;u.format=e.format,u.minimum=n,u.maximum=i,r&&(u.pattern=Tm)}),t._zod.check=c=>{let u=c.value;if(r){if(!Number.isInteger(u)){c.issues.push({expected:o,format:e.format,code:"invalid_type",continue:!1,input:u,inst:t});return}if(!Number.isSafeInteger(u)){u>0?c.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!e.abort}):c.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!e.abort});return}}u<n&&c.issues.push({origin:"number",input:u,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),u>i&&c.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),Um=_("$ZodCheckBigIntFormat",(t,e)=>{ye.init(t,e);let[r,o]=am[e.format];t._zod.onattach.push(n=>{let i=n._zod.bag;i.format=e.format,i.minimum=r,i.maximum=o}),t._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),Am=_("$ZodCheckMaxSize",(t,e)=>{var o;var r;ye.init(t,e),(o=(r=t._zod.def).when)!=null||(r.when=n=>{let i=n.value;return!Ur(i)&&i.size!==void 0}),t._zod.onattach.push(n=>{var a;let i=(a=n._zod.bag.maximum)!=null?a:Number.POSITIVE_INFINITY;e.maximum<i&&(n._zod.bag.maximum=e.maximum)}),t._zod.check=n=>{let i=n.value;i.size<=e.maximum||n.issues.push({origin:da(i),code:"too_big",maximum:e.maximum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),Zm=_("$ZodCheckMinSize",(t,e)=>{var o;var r;ye.init(t,e),(o=(r=t._zod.def).when)!=null||(r.when=n=>{let i=n.value;return!Ur(i)&&i.size!==void 0}),t._zod.onattach.push(n=>{var a;let i=(a=n._zod.bag.minimum)!=null?a:Number.NEGATIVE_INFINITY;e.minimum>i&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let i=n.value;i.size>=e.minimum||n.issues.push({origin:da(i),code:"too_small",minimum:e.minimum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),Mm=_("$ZodCheckSizeEquals",(t,e)=>{var o;var r;ye.init(t,e),(o=(r=t._zod.def).when)!=null||(r.when=n=>{let i=n.value;return!Ur(i)&&i.size!==void 0}),t._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=e.size,i.maximum=e.size,i.size=e.size}),t._zod.check=n=>{let i=n.value,a=i.size;if(a===e.size)return;let c=a>e.size;n.issues.push({origin:da(i),...c?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),qm=_("$ZodCheckMaxLength",(t,e)=>{var o;var r;ye.init(t,e),(o=(r=t._zod.def).when)!=null||(r.when=n=>{let i=n.value;return!Ur(i)&&i.length!==void 0}),t._zod.onattach.push(n=>{var a;let i=(a=n._zod.bag.maximum)!=null?a:Number.POSITIVE_INFINITY;e.maximum<i&&(n._zod.bag.maximum=e.maximum)}),t._zod.check=n=>{let i=n.value;if(i.length<=e.maximum)return;let c=fa(i);n.issues.push({origin:c,code:"too_big",maximum:e.maximum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),Lm=_("$ZodCheckMinLength",(t,e)=>{var o;var r;ye.init(t,e),(o=(r=t._zod.def).when)!=null||(r.when=n=>{let i=n.value;return!Ur(i)&&i.length!==void 0}),t._zod.onattach.push(n=>{var a;let i=(a=n._zod.bag.minimum)!=null?a:Number.NEGATIVE_INFINITY;e.minimum>i&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let i=n.value;if(i.length>=e.minimum)return;let c=fa(i);n.issues.push({origin:c,code:"too_small",minimum:e.minimum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),Vm=_("$ZodCheckLengthEquals",(t,e)=>{var o;var r;ye.init(t,e),(o=(r=t._zod.def).when)!=null||(r.when=n=>{let i=n.value;return!Ur(i)&&i.length!==void 0}),t._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=e.length,i.maximum=e.length,i.length=e.length}),t._zod.check=n=>{let i=n.value,a=i.length;if(a===e.length)return;let c=fa(i),u=a>e.length;n.issues.push({origin:c,...u?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),No=_("$ZodCheckStringFormat",(t,e)=>{var n,i;var r,o;ye.init(t,e),t._zod.onattach.push(a=>{var u;let c=a._zod.bag;c.format=e.format,e.pattern&&((u=c.patterns)!=null||(c.patterns=new Set),c.patterns.add(e.pattern))}),e.pattern?(n=(r=t._zod).check)!=null||(r.check=a=>{e.pattern.lastIndex=0,!e.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:e.format,input:a.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(i=(o=t._zod).check)!=null||(o.check=()=>{})}),Fm=_("$ZodCheckRegex",(t,e)=>{No.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),Jm=_("$ZodCheckLowerCase",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=Rm),No.init(t,e)}),Hm=_("$ZodCheckUpperCase",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=Nm),No.init(t,e)}),Wm=_("$ZodCheckIncludes",(t,e)=>{ye.init(t,e);let r=Pt(e.includes),o=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=o,t._zod.onattach.push(n=>{var a;let i=n._zod.bag;(a=i.patterns)!=null||(i.patterns=new Set),i.patterns.add(o)}),t._zod.check=n=>{n.value.includes(e.includes,e.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:n.value,inst:t,continue:!e.abort})}}),Bm=_("$ZodCheckStartsWith",(t,e)=>{var o;ye.init(t,e);let r=new RegExp(`^${Pt(e.prefix)}.*`);(o=e.pattern)!=null||(e.pattern=r),t._zod.onattach.push(n=>{var a;let i=n._zod.bag;(a=i.patterns)!=null||(i.patterns=new Set),i.patterns.add(r)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),Gm=_("$ZodCheckEndsWith",(t,e)=>{var o;ye.init(t,e);let r=new RegExp(`.*${Pt(e.suffix)}$`);(o=e.pattern)!=null||(e.pattern=r),t._zod.onattach.push(n=>{var a;let i=n._zod.bag;(a=i.patterns)!=null||(i.patterns=new Set),i.patterns.add(r)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}});function nb(t,e,r){t.issues.length&&e.issues.push(...bt(r,t.issues))}var Km=_("$ZodCheckProperty",(t,e)=>{ye.init(t,e),t._zod.check=r=>{let o=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>nb(n,r,e.property));nb(o,r,e.property)}}),Xm=_("$ZodCheckMimeType",(t,e)=>{ye.init(t,e);let r=new Set(e.mime);t._zod.onattach.push(o=>{o._zod.bag.mime=e.mime}),t._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:e.mime,input:o.value.type,inst:t,continue:!e.abort})}}),Ym=_("$ZodCheckOverwrite",(t,e)=>{ye.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});var _a=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let o=e.split(`
`).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){var i;let e=Function,r=this==null?void 0:this.args,n=[...((i=this==null?void 0:this.content)!=null?i:[""]).map(a=>`  ${a}`)];return new e(...r,n.join(`
`))}};var Qm={major:4,minor:3,patch:5};var W=_("$ZodType",(t,e)=>{var n,i,a;var r;t!=null||(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Qm;let o=[...(n=t._zod.def.checks)!=null?n:[]];t._zod.traits.has("$ZodCheck")&&o.unshift(t);for(let c of o)for(let u of c._zod.onattach)u(t);if(o.length===0)(i=(r=t._zod).deferred)!=null||(r.deferred=[]),(a=t._zod.deferred)==null||a.push(()=>{t._zod.run=t._zod.parse});else{let c=(l,d,s)=>{let f=Mr(l),p;for(let m of d){if(m._zod.def.when){if(!m._zod.def.when(l))continue}else if(f)continue;let h=l.issues.length,g=m._zod.check(l);if(g instanceof Promise&&(s==null?void 0:s.async)===!1)throw new qt;if(p||g instanceof Promise)p=(p!=null?p:Promise.resolve()).then(async()=>{await g,l.issues.length!==h&&(f||(f=Mr(l,h)))});else{if(l.issues.length===h)continue;f||(f=Mr(l,h))}}return p?p.then(()=>l):l},u=(l,d,s)=>{if(Mr(l))return l.aborted=!0,l;let f=c(d,o,s);if(f instanceof Promise){if(s.async===!1)throw new qt;return f.then(p=>t._zod.parse(p,s))}return t._zod.parse(f,s)};t._zod.run=(l,d)=>{if(d.skipChecks)return t._zod.parse(l,d);if(d.direction==="backward"){let f=t._zod.parse({value:l.value,issues:[]},{...d,skipChecks:!0});return f instanceof Promise?f.then(p=>u(p,l,d)):u(f,l,d)}let s=t._zod.parse(l,d);if(s instanceof Promise){if(d.async===!1)throw new qt;return s.then(f=>c(f,o,d))}return c(s,o,d)}}Y(t,"~standard",()=>({validate:c=>{var u;try{let l=qr(t,c);return l.success?{value:l.data}:{issues:(u=l.error)==null?void 0:u.issues}}catch{return En(t,c).then(d=>{var s;return d.success?{value:d.data}:{issues:(s=d.error)==null?void 0:s.issues}})}},vendor:"zod",version:1}))}),_r=_("$ZodString",(t,e)=>{var r,o,n;W.init(t,e),t._zod.pattern=(n=[...(o=(r=t==null?void 0:t._zod.bag)==null?void 0:r.patterns)!=null?o:[]].pop())!=null?n:Im(t._zod.bag),t._zod.parse=(i,a)=>{if(e.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:t}),i}}),me=_("$ZodStringFormat",(t,e)=>{No.init(t,e),_r.init(t,e)}),xu=_("$ZodGUID",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=mm),me.init(t,e)}),wu=_("$ZodUUID",(t,e)=>{var r,o;if(e.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(i===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);(r=e.pattern)!=null||(e.pattern=On(i))}else(o=e.pattern)!=null||(e.pattern=On());me.init(t,e)}),ku=_("$ZodEmail",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=hm),me.init(t,e)}),Su=_("$ZodURL",(t,e)=>{me.init(t,e),t._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),zu=_("$ZodEmoji",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=gm()),me.init(t,e)}),Iu=_("$ZodNanoID",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=fm),me.init(t,e)}),Pu=_("$ZodCUID",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=sm),me.init(t,e)}),Tu=_("$ZodCUID2",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=cm),me.init(t,e)}),Eu=_("$ZodULID",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=um),me.init(t,e)}),Ou=_("$ZodXID",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=lm),me.init(t,e)}),ju=_("$ZodKSUID",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=dm),me.init(t,e)}),ya=_("$ZodISODateTime",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=zm(e)),me.init(t,e)}),$a=_("$ZodISODate",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=km),me.init(t,e)}),ba=_("$ZodISOTime",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=Sm(e)),me.init(t,e)}),xa=_("$ZodISODuration",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=pm),me.init(t,e)}),Ru=_("$ZodIPv4",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=vm),me.init(t,e),t._zod.bag.format="ipv4"}),Nu=_("$ZodIPv6",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=_m),me.init(t,e),t._zod.bag.format="ipv6",t._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:t,continue:!e.abort})}}}),Cu=_("$ZodMAC",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=ym(e.delimiter)),me.init(t,e),t._zod.bag.format="mac"}),Du=_("$ZodCIDRv4",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=$m),me.init(t,e)}),Uu=_("$ZodCIDRv6",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=bm),me.init(t,e),t._zod.check=o=>{let n=o.value.split("/");try{if(n.length!==2)throw new Error;let[i,a]=n;if(!a)throw new Error;let c=Number(a);if(`${c}`!==a)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${i}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:t,continue:!e.abort})}}});function th(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Au=_("$ZodBase64",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=xm),me.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=o=>{th(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:t,continue:!e.abort})}});function vb(t){if(!pu.test(t))return!1;let e=t.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return th(r)}var Zu=_("$ZodBase64URL",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=pu),me.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=o=>{vb(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:t,continue:!e.abort})}}),Mu=_("$ZodE164",(t,e)=>{var r;(r=e.pattern)!=null||(e.pattern=wm),me.init(t,e)});function _b(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&(n==null?void 0:n.typ)!=="JWT"||!n.alg||e&&(!("alg"in n)||n.alg!==e))}catch{return!1}}var qu=_("$ZodJWT",(t,e)=>{me.init(t,e),t._zod.check=r=>{_b(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),Lu=_("$ZodCustomStringFormat",(t,e)=>{me.init(t,e),t._zod.check=r=>{e.fn(r.value)||r.issues.push({code:"invalid_format",format:e.format,input:r.value,inst:t,continue:!e.abort})}}),Co=_("$ZodNumber",(t,e)=>{var r;W.init(t,e),t._zod.pattern=(r=t._zod.bag.pattern)!=null?r:mu,t._zod.parse=(o,n)=>{if(e.coerce)try{o.value=Number(o.value)}catch{}let i=o.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return o;let a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:i,inst:t,...a?{received:a}:{}}),o}}),Vu=_("$ZodNumberFormat",(t,e)=>{Dm.init(t,e),Co.init(t,e)}),jn=_("$ZodBoolean",(t,e)=>{W.init(t,e),t._zod.pattern=Em,t._zod.parse=(r,o)=>{if(e.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:t}),r}}),Do=_("$ZodBigInt",(t,e)=>{W.init(t,e),t._zod.pattern=Pm,t._zod.parse=(r,o)=>{if(e.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:t}),r}}),Fu=_("$ZodBigIntFormat",(t,e)=>{Um.init(t,e),Do.init(t,e)}),Ju=_("$ZodSymbol",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),r}}),Hu=_("$ZodUndefined",(t,e)=>{W.init(t,e),t._zod.pattern=jm,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(r,o)=>{let n=r.value;return typeof n=="undefined"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:t}),r}}),Wu=_("$ZodNull",(t,e)=>{W.init(t,e),t._zod.pattern=Om,t._zod.values=new Set([null]),t._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),r}}),Bu=_("$ZodAny",(t,e)=>{W.init(t,e),t._zod.parse=r=>r}),Gu=_("$ZodUnknown",(t,e)=>{W.init(t,e),t._zod.parse=r=>r}),Ku=_("$ZodNever",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),Xu=_("$ZodVoid",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return typeof n=="undefined"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}}),wa=_("$ZodDate",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:t}),r}});function ab(t,e,r){t.issues.length&&e.issues.push(...bt(r,t.issues)),e.value[r]=t.value}var Yu=_("$ZodArray",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let c=n[a],u=e.element._zod.run({value:c,issues:[]},o);u instanceof Promise?i.push(u.then(l=>ab(l,r,a))):ab(u,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function bu(t,e,r,o,n){if(t.issues.length){if(n&&!(r in o))return;e.issues.push(...bt(r,t.issues))}t.value===void 0?r in o&&(e.value[r]=void 0):e.value[r]=t.value}function yb(t){var o,n,i,a;let e=Object.keys(t.shape);for(let c of e)if(!((a=(i=(n=(o=t.shape)==null?void 0:o[c])==null?void 0:n._zod)==null?void 0:i.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${c}": expected a Zod schema`);let r=om(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}function $b(t,e,r,o,n,i){let a=[],c=n.keySet,u=n.catchall._zod,l=u.def.type,d=u.optout==="optional";for(let s in e){if(c.has(s))continue;if(l==="never"){a.push(s);continue}let f=u.run({value:e[s],issues:[]},o);f instanceof Promise?t.push(f.then(p=>bu(p,r,s,e,d))):bu(f,r,s,e,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:e,inst:i}),t.length?Promise.all(t).then(()=>r):r}var rh=_("$ZodObject",(t,e)=>{W.init(t,e);let r=Object.getOwnPropertyDescriptor(e,"shape");if(!(r!=null&&r.get)){let c=e.shape;Object.defineProperty(e,"shape",{get:()=>{let u={...c};return Object.defineProperty(e,"shape",{value:u}),u}})}let o=Po(()=>yb(e));Y(t._zod,"propValues",()=>{var l;let c=e.shape,u={};for(let d in c){let s=c[d]._zod;if(s.values){(l=u[d])!=null||(u[d]=new Set);for(let f of s.values)u[d].add(f)}}return u});let n=Sn,i=e.catchall,a;t._zod.parse=(c,u)=>{a!=null||(a=o.value);let l=c.value;if(!n(l))return c.issues.push({expected:"object",code:"invalid_type",input:l,inst:t}),c;c.value={};let d=[],s=a.shape;for(let f of a.keys){let p=s[f],m=p._zod.optout==="optional",h=p._zod.run({value:l[f],issues:[]},u);h instanceof Promise?d.push(h.then(g=>bu(g,c,f,l,m))):bu(h,c,f,l,m)}return i?$b(d,l,c,u,o.value,t):d.length?Promise.all(d).then(()=>c):c}}),nh=_("$ZodObjectJIT",(t,e)=>{rh.init(t,e);let r=t._zod.parse,o=Po(()=>yb(e)),n=f=>{var k;let p=new _a(["shape","payload","ctx"]),m=o.value,h=b=>{let x=ru(b);return`shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`};p.write("const input = payload.value;");let g=Object.create(null),y=0;for(let b of m.keys)g[b]=`key_${y++}`;p.write("const newResult = {};");for(let b of m.keys){let x=g[b],D=ru(b),V=f[b],G=((k=V==null?void 0:V._zod)==null?void 0:k.optout)==="optional";p.write(`const ${x} = ${h(b)};`),G?p.write(`
        if (${x}.issues.length) {
          if (${D} in input) {
            payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
              ...iss,
              path: iss.path ? [${D}, ...iss.path] : [${D}]
            })));
          }
        }
        
        if (${x}.value === undefined) {
          if (${D} in input) {
            newResult[${D}] = undefined;
          }
        } else {
          newResult[${D}] = ${x}.value;
        }
        
      `):p.write(`
        if (${x}.issues.length) {
          payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
            ...iss,
            path: iss.path ? [${D}, ...iss.path] : [${D}]
          })));
        }
        
        if (${x}.value === undefined) {
          if (${D} in input) {
            newResult[${D}] = undefined;
          }
        } else {
          newResult[${D}] = ${x}.value;
        }
        
      `)}p.write("payload.value = newResult;"),p.write("return payload;");let w=p.compile();return(b,x)=>w(f,b,x)},i,a=Sn,c=!aa.jitless,l=c&&rm.value,d=e.catchall,s;t._zod.parse=(f,p)=>{s!=null||(s=o.value);let m=f.value;return a(m)?c&&l&&(p==null?void 0:p.async)===!1&&p.jitless!==!0?(i||(i=n(e.shape)),f=i(f,p),d?$b([],m,f,p,s,t):f):r(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:t}),f)}});function sb(t,e,r,o){for(let i of t)if(i.issues.length===0)return e.value=i.value,e;let n=t.filter(i=>!Mr(i));return n.length===1?(e.value=n[0].value,n[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(a=>dt(a,o,Pe())))}),e)}var Uo=_("$ZodUnion",(t,e)=>{W.init(t,e),Y(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Y(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Y(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),Y(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>ua(i.source)).join("|")})$`)}});let r=e.options.length===1,o=e.options[0]._zod.run;t._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,c=[];for(let u of e.options){let l=u._zod.run({value:n.value,issues:[]},i);if(l instanceof Promise)c.push(l),a=!0;else{if(l.issues.length===0)return l;c.push(l)}}return a?Promise.all(c).then(u=>sb(u,n,t,i)):sb(c,n,t,i)}});function cb(t,e,r,o){let n=t.filter(i=>i.issues.length===0);return n.length===1?(e.value=n[0].value,e):(n.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(a=>dt(a,o,Pe())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1}),e)}var Qu=_("$ZodXor",(t,e)=>{Uo.init(t,e),e.inclusive=!1;let r=e.options.length===1,o=e.options[0]._zod.run;t._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,c=[];for(let u of e.options){let l=u._zod.run({value:n.value,issues:[]},i);l instanceof Promise?(c.push(l),a=!0):c.push(l)}return a?Promise.all(c).then(u=>cb(u,n,t,i)):cb(c,n,t,i)}}),el=_("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Uo.init(t,e);let r=t._zod.parse;Y(t._zod,"propValues",()=>{let n={};for(let i of e.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(let[c,u]of Object.entries(a)){n[c]||(n[c]=new Set);for(let l of u)n[c].add(l)}}return n});let o=Po(()=>{var a;let n=e.options,i=new Map;for(let c of n){let u=(a=c._zod.propValues)==null?void 0:a[e.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(c)}"`);for(let l of u){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,c)}}return i});t._zod.parse=(n,i)=>{let a=n.value;if(!Sn(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:t}),n;let c=o.value.get(a==null?void 0:a[e.discriminator]);return c?c._zod.run(n,i):e.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:a,path:[e.discriminator],inst:t}),n)}}),tl=_("$ZodIntersection",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>{let n=r.value,i=e.left._zod.run({value:n,issues:[]},o),a=e.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([u,l])=>ub(r,u,l)):ub(r,i,a)}});function eh(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(Zr(t)&&Zr(e)){let r=Object.keys(e),o=Object.keys(t).filter(i=>r.indexOf(i)!==-1),n={...t,...e};for(let i of o){let a=eh(t[i],e[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<t.length;o++){let n=t[o],i=e[o],a=eh(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function ub(t,e,r){let o=new Map,n;for(let c of e.issues)if(c.code==="unrecognized_keys"){n!=null||(n=c);for(let u of c.keys)o.has(u)||o.set(u,{}),o.get(u).l=!0}else t.issues.push(c);for(let c of r.issues)if(c.code==="unrecognized_keys")for(let u of c.keys)o.has(u)||o.set(u,{}),o.get(u).r=!0;else t.issues.push(c);let i=[...o].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(i.length&&n&&t.issues.push({...n,keys:i}),Mr(t))return t;let a=eh(e.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return t.value=a.data,t}var ka=_("$ZodTuple",(t,e)=>{W.init(t,e);let r=e.items;t._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:t,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],c=[...r].reverse().findIndex(d=>d._zod.optin!=="optional"),u=c===-1?0:r.length-c;if(!e.rest){let d=i.length>r.length,s=i.length<u-1;if(d||s)return o.issues.push({...d?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:t,origin:"array"}),o}let l=-1;for(let d of r){if(l++,l>=i.length&&l>=u)continue;let s=d._zod.run({value:i[l],issues:[]},n);s instanceof Promise?a.push(s.then(f=>vu(f,o,l))):vu(s,o,l)}if(e.rest){let d=i.slice(r.length);for(let s of d){l++;let f=e.rest._zod.run({value:s,issues:[]},n);f instanceof Promise?a.push(f.then(p=>vu(p,o,l))):vu(f,o,l)}}return a.length?Promise.all(a).then(()=>o):o}});function vu(t,e,r){t.issues.length&&e.issues.push(...bt(r,t.issues)),e.value[r]=t.value}var rl=_("$ZodRecord",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!Zr(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:t}),r;let i=[],a=e.keyType._zod.values;if(a){r.value={};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){c.add(typeof l=="number"?l.toString():l);let d=e.valueType._zod.run({value:n[l],issues:[]},o);d instanceof Promise?i.push(d.then(s=>{s.issues.length&&r.issues.push(...bt(l,s.issues)),r.value[l]=s.value})):(d.issues.length&&r.issues.push(...bt(l,d.issues)),r.value[l]=d.value)}let u;for(let l in n)c.has(l)||(u=u!=null?u:[],u.push(l));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:t,keys:u})}else{r.value={};for(let c of Reflect.ownKeys(n)){if(c==="__proto__")continue;let u=e.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&mu.test(c)&&u.issues.length&&u.issues.some(s=>s.code==="invalid_type"&&s.expected==="number")){let s=e.keyType._zod.run({value:Number(c),issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");s.issues.length===0&&(u=s)}if(u.issues.length){e.mode==="loose"?r.value[c]=n[c]:r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(s=>dt(s,o,Pe())),input:c,path:[c],inst:t});continue}let d=e.valueType._zod.run({value:n[c],issues:[]},o);d instanceof Promise?i.push(d.then(s=>{s.issues.length&&r.issues.push(...bt(c,s.issues)),r.value[u.value]=s.value})):(d.issues.length&&r.issues.push(...bt(c,d.issues)),r.value[u.value]=d.value)}}return i.length?Promise.all(i).then(()=>r):r}}),nl=_("$ZodMap",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:t}),r;let i=[];r.value=new Map;for(let[a,c]of n){let u=e.keyType._zod.run({value:a,issues:[]},o),l=e.valueType._zod.run({value:c,issues:[]},o);u instanceof Promise||l instanceof Promise?i.push(Promise.all([u,l]).then(([d,s])=>{lb(d,s,r,a,n,t,o)})):lb(u,l,r,a,n,t,o)}return i.length?Promise.all(i).then(()=>r):r}});function lb(t,e,r,o,n,i,a){t.issues.length&&(la.has(typeof o)?r.issues.push(...bt(o,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:t.issues.map(c=>dt(c,a,Pe()))})),e.issues.length&&(la.has(typeof o)?r.issues.push(...bt(o,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:e.issues.map(c=>dt(c,a,Pe()))})),r.value.set(t.value,e.value)}var ol=_("$ZodSet",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:t,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let c=e.valueType._zod.run({value:a,issues:[]},o);c instanceof Promise?i.push(c.then(u=>db(u,r))):db(c,r)}return i.length?Promise.all(i).then(()=>r):r}});function db(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}var il=_("$ZodEnum",(t,e)=>{W.init(t,e);let r=ca(e.entries),o=new Set(r);t._zod.values=o,t._zod.pattern=new RegExp(`^(${r.filter(n=>la.has(typeof n)).map(n=>typeof n=="string"?Pt(n):n.toString()).join("|")})$`),t._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:t}),n}}),al=_("$ZodLiteral",(t,e)=>{if(W.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(e.values);t._zod.values=r,t._zod.pattern=new RegExp(`^(${e.values.map(o=>typeof o=="string"?Pt(o):o?Pt(o.toString()):String(o)).join("|")})$`),t._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:e.values,input:i,inst:t}),o}}),sl=_("$ZodFile",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}}),cl=_("$ZodTransform",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Dr(t.constructor.name);let n=e.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new qt;return r.value=n,r}});function fb(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}var Sa=_("$ZodOptional",(t,e)=>{W.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Y(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Y(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${ua(r.source)})?$`):void 0}),t._zod.parse=(r,o)=>{if(e.innerType._zod.optin==="optional"){let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>fb(i,r.value)):fb(n,r.value)}return r.value===void 0?r:e.innerType._zod.run(r,o)}}),ul=_("$ZodExactOptional",(t,e)=>{Sa.init(t,e),Y(t._zod,"values",()=>e.innerType._zod.values),Y(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(r,o)=>e.innerType._zod.run(r,o)}),ll=_("$ZodNullable",(t,e)=>{W.init(t,e),Y(t._zod,"optin",()=>e.innerType._zod.optin),Y(t._zod,"optout",()=>e.innerType._zod.optout),Y(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${ua(r.source)}|null)$`):void 0}),Y(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,o)=>r.value===null?r:e.innerType._zod.run(r,o)}),dl=_("$ZodDefault",(t,e)=>{W.init(t,e),t._zod.optin="optional",Y(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);if(r.value===void 0)return r.value=e.defaultValue,r;let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>pb(i,e)):pb(n,e)}});function pb(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var fl=_("$ZodPrefault",(t,e)=>{W.init(t,e),t._zod.optin="optional",Y(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,o))}),pl=_("$ZodNonOptional",(t,e)=>{W.init(t,e),Y(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),t._zod.parse=(r,o)=>{let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>mb(i,t)):mb(n,t)}});function mb(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var ml=_("$ZodSuccess",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Dr("ZodSuccess");let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),hl=_("$ZodCatch",(t,e)=>{W.init(t,e),Y(t._zod,"optin",()=>e.innerType._zod.optin),Y(t._zod,"optout",()=>e.innerType._zod.optout),Y(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=e.catchValue({...r,error:{issues:i.issues.map(a=>dt(a,o,Pe()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=e.catchValue({...r,error:{issues:n.issues.map(i=>dt(i,o,Pe()))},input:r.value}),r.issues=[]),r)}}),gl=_("$ZodNaN",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),vl=_("$ZodPipe",(t,e)=>{W.init(t,e),Y(t._zod,"values",()=>e.in._zod.values),Y(t._zod,"optin",()=>e.in._zod.optin),Y(t._zod,"optout",()=>e.out._zod.optout),Y(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=e.out._zod.run(r,o);return i instanceof Promise?i.then(a=>_u(a,e.in,o)):_u(i,e.in,o)}let n=e.in._zod.run(r,o);return n instanceof Promise?n.then(i=>_u(i,e.out,o)):_u(n,e.out,o)}});function _u(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}var Ao=_("$ZodCodec",(t,e)=>{W.init(t,e),Y(t._zod,"values",()=>e.in._zod.values),Y(t._zod,"optin",()=>e.in._zod.optin),Y(t._zod,"optout",()=>e.out._zod.optout),Y(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=e.in._zod.run(r,o);return i instanceof Promise?i.then(a=>yu(a,e,o)):yu(i,e,o)}else{let i=e.out._zod.run(r,o);return i instanceof Promise?i.then(a=>yu(a,e,o)):yu(i,e,o)}}});function yu(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direction||"forward")==="forward"){let n=e.transform(t.value,t);return n instanceof Promise?n.then(i=>$u(t,i,e.out,r)):$u(t,n,e.out,r)}else{let n=e.reverseTransform(t.value,t);return n instanceof Promise?n.then(i=>$u(t,i,e.in,r)):$u(t,n,e.in,r)}}function $u(t,e,r,o){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},o)}var _l=_("$ZodReadonly",(t,e)=>{W.init(t,e),Y(t._zod,"propValues",()=>e.innerType._zod.propValues),Y(t._zod,"values",()=>e.innerType._zod.values),Y(t._zod,"optin",()=>{var r,o;return(o=(r=e.innerType)==null?void 0:r._zod)==null?void 0:o.optin}),Y(t._zod,"optout",()=>{var r,o;return(o=(r=e.innerType)==null?void 0:r._zod)==null?void 0:o.optout}),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(hb):hb(n)}});function hb(t){return t.value=Object.freeze(t.value),t}var yl=_("$ZodTemplateLiteral",(t,e)=>{W.init(t,e);let r=[];for(let o of e.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||nm.has(typeof o))r.push(Pt(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);t._zod.pattern=new RegExp(`^${r.join("")}$`),t._zod.parse=(o,n)=>{var i;return typeof o.value!="string"?(o.issues.push({input:o.value,inst:t,expected:"string",code:"invalid_type"}),o):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:t,code:"invalid_format",format:(i=e.format)!=null?i:"template_literal",pattern:t._zod.pattern.source}),o)}}),$l=_("$ZodFunction",(t,e)=>(W.init(t,e),t._def=e,t._zod.def=e,t.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=t._def.input?Pn(t._def.input,o):o,i=Reflect.apply(r,this,n);return t._def.output?Pn(t._def.output,i):i}},t.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=t._def.input?await Tn(t._def.input,o):o,i=await Reflect.apply(r,this,n);return t._def.output?await Tn(t._def.output,i):i}},t._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:t}),r):(t._def.output&&t._def.output._zod.def.type==="promise"?r.value=t.implementAsync(r.value):r.value=t.implement(r.value),r),t.input=(...r)=>{let o=t.constructor;return Array.isArray(r[0])?new o({type:"function",input:new ka({type:"tuple",items:r[0],rest:r[1]}),output:t._def.output}):new o({type:"function",input:r[0],output:t._def.output})},t.output=r=>{let o=t.constructor;return new o({type:"function",input:t._def.input,output:r})},t)),bl=_("$ZodPromise",(t,e)=>{W.init(t,e),t._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},o))}),xl=_("$ZodLazy",(t,e)=>{W.init(t,e),Y(t._zod,"innerType",()=>e.getter()),Y(t._zod,"pattern",()=>{var r,o;return(o=(r=t._zod.innerType)==null?void 0:r._zod)==null?void 0:o.pattern}),Y(t._zod,"propValues",()=>{var r,o;return(o=(r=t._zod.innerType)==null?void 0:r._zod)==null?void 0:o.propValues}),Y(t._zod,"optin",()=>{var r,o,n;return(n=(o=(r=t._zod.innerType)==null?void 0:r._zod)==null?void 0:o.optin)!=null?n:void 0}),Y(t._zod,"optout",()=>{var r,o,n;return(n=(o=(r=t._zod.innerType)==null?void 0:r._zod)==null?void 0:o.optout)!=null?n:void 0}),t._zod.parse=(r,o)=>t._zod.innerType._zod.run(r,o)}),wl=_("$ZodCustom",(t,e)=>{ye.init(t,e),W.init(t,e),t._zod.parse=(r,o)=>r,t._zod.check=r=>{let o=r.value,n=e.fn(o);if(n instanceof Promise)return n.then(i=>gb(i,r,o,t));gb(n,r,o,t)}});function gb(t,e,r,o){var n;if(!t){let i={code:"custom",input:r,inst:o,path:[...(n=o._zod.def.path)!=null?n:[]],continue:!o._zod.def.abort};o._zod.def.params&&(i.params=o._zod.def.params),e.issues.push(To(i))}}var rr={};_t(rr,{ar:()=>bb,az:()=>xb,be:()=>kb,bg:()=>Sb,ca:()=>zb,cs:()=>Ib,da:()=>Pb,de:()=>Tb,en:()=>kl,eo:()=>Eb,es:()=>Ob,fa:()=>jb,fi:()=>Rb,fr:()=>Nb,frCA:()=>Cb,he:()=>Db,hu:()=>Ub,hy:()=>Zb,id:()=>Mb,is:()=>qb,it:()=>Lb,ja:()=>Vb,ka:()=>Fb,kh:()=>Jb,km:()=>Sl,ko:()=>Hb,lt:()=>Bb,mk:()=>Gb,ms:()=>Kb,nl:()=>Xb,no:()=>Yb,ota:()=>Qb,pl:()=>tx,ps:()=>ex,pt:()=>rx,ru:()=>ox,sl:()=>ix,sv:()=>ax,ta:()=>sx,th:()=>cx,tr:()=>ux,ua:()=>lx,uk:()=>zl,ur:()=>dx,uz:()=>fx,vi:()=>px,yo:()=>gx,zhCN:()=>mx,zhTW:()=>hx});var jP=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;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 ${p}`:`\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 ${s}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${p}`}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 ${I(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 s=n.inclusive?"<=":"<",f=e(n.origin);return f?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${(c=n.origin)!=null?c:"\u0627\u0644\u0642\u064A\u0645\u0629"} ${s} ${n.maximum.toString()} ${(u=f.unit)!=null?u:"\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 ${(l=n.origin)!=null?l:"\u0627\u0644\u0642\u064A\u0645\u0629"} ${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\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 ${s} ${n.minimum.toString()} ${f.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 ${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.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}"`:s.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 "${s.suffix}"`:s.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 "${s.includes}"`:s.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 ${s.pattern}`:`${(d=r[s.format])!=null?d: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 bb(){return{localeError:jP()}}var RP=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${p}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${s}, daxil olan ${p}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${I(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${(c=n.origin)!=null?c:"d\u0259y\u0259r"} ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${(l=n.origin)!=null?l:"d\u0259y\u0259r"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${s}${n.minimum.toString()} ${f.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${s.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:s.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${s.suffix}" il\u0259 bitm\u0259lidir`:s.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${s.includes}" daxil olmal\u0131d\u0131r`:s.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${s.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${(d=r[s.format])!=null?d: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 xb(){return{localeError:RP()}}function wb(t,e,r,o){let n=Math.abs(t),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?e:i>=2&&i<=4?r:o}var NP=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{var i,a,c,u,l;switch(n.code){case"invalid_type":{let d=(i=o[n.expected])!=null?i:n.expected,s=T(n.input),f=(a=o[s])!=null?a: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 ${f}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${d}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${f}`}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 ${I(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 d=n.inclusive?"<=":"<",s=e(n.origin);if(s){let f=Number(n.maximum),p=wb(f,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 ${(c=n.origin)!=null?c:"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${d}${n.maximum.toString()} ${p}`}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 ${(u=n.origin)!=null?u:"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${d}${n.maximum.toString()}`}case"too_small":{let d=n.inclusive?">=":">",s=e(n.origin);if(s){let f=Number(n.minimum),p=wb(f,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} ${d}${n.minimum.toString()} ${p}`}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 ${d}${n.minimum.toString()}`}case"invalid_format":{let d=n;return d.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 "${d.prefix}"`:d.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 "${d.suffix}"`:d.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 "${d.includes}"`:d.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 ${d.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${(l=r[d.format])!=null?l: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 kb(){return{localeError:NP()}}var CP=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;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 ${p}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${s}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${p}`}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 ${I(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 s=n.inclusive?"<=":"<",f=e(n.origin);return f?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${(c=n.origin)!=null?c:"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"\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 ${(l=n.origin)!=null?l:"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\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 ${s}${n.minimum.toString()} ${f.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 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;if(s.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 "${s.prefix}"`;if(s.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 "${s.suffix}"`;if(s.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 "${s.includes}"`;if(s.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 ${s.pattern}`;let f="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return s.format==="emoji"&&(f="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),s.format==="datetime"&&(f="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),s.format==="date"&&(f="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),s.format==="time"&&(f="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),s.format==="duration"&&(f="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${f} ${(d=r[s.format])!=null?d: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 Sb(){return{localeError:CP()}}var DP=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${p}`:`Tipus inv\xE0lid: s'esperava ${s}, s'ha rebut ${p}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${I(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${$(n.values," o ")}`;case"too_big":{let s=n.inclusive?"com a m\xE0xim":"menys de",f=e(n.origin);return f?`Massa gran: s'esperava que ${(c=n.origin)!=null?c:"el valor"} contingu\xE9s ${s} ${n.maximum.toString()} ${(u=f.unit)!=null?u:"elements"}`:`Massa gran: s'esperava que ${(l=n.origin)!=null?l:"el valor"} fos ${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?"com a m\xEDnim":"m\xE9s de",f=e(n.origin);return f?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${s} ${n.minimum.toString()} ${f.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${s.prefix}"`:s.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${s.suffix}"`:s.format==="includes"?`Format inv\xE0lid: ha d'incloure "${s.includes}"`:s.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${s.pattern}`:`Format inv\xE0lid per a ${(d=r[s.format])!=null?d: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 zb(){return{localeError:DP()}}var UP=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{var i,a,c,u,l,d,s,f,p;switch(n.code){case"invalid_type":{let m=(i=o[n.expected])!=null?i:n.expected,h=T(n.input),g=(a=o[h])!=null?a:h;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${g}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${m}, obdr\u017Eeno ${g}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${I(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${$(n.values,"|")}`;case"too_big":{let m=n.inclusive?"<=":"<",h=e(n.origin);return h?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${(c=n.origin)!=null?c:"hodnota"} mus\xED m\xEDt ${m}${n.maximum.toString()} ${(u=h.unit)!=null?u:"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${(l=n.origin)!=null?l:"hodnota"} mus\xED b\xFDt ${m}${n.maximum.toString()}`}case"too_small":{let m=n.inclusive?">=":">",h=e(n.origin);return h?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${(d=n.origin)!=null?d:"hodnota"} mus\xED m\xEDt ${m}${n.minimum.toString()} ${(s=h.unit)!=null?s:"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${(f=n.origin)!=null?f:"hodnota"} mus\xED b\xFDt ${m}${n.minimum.toString()}`}case"invalid_format":{let m=n;return m.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${m.prefix}"`:m.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${m.suffix}"`:m.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${m.includes}"`:m.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${m.pattern}`:`Neplatn\xFD form\xE1t ${(p=r[m.format])!=null?p: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 Ib(){return{localeError:UP()}}var AP=()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${p}`:`Ugyldigt input: forventede ${s}, fik ${p}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${I(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin),p=(c=o[n.origin])!=null?c:n.origin;return f?`For stor: forventede ${p!=null?p:"value"} ${f.verb} ${s} ${n.maximum.toString()} ${(u=f.unit)!=null?u:"elementer"}`:`For stor: forventede ${p!=null?p:"value"} havde ${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin),p=(l=o[n.origin])!=null?l:n.origin;return f?`For lille: forventede ${p} ${f.verb} ${s} ${n.minimum.toString()} ${f.unit}`:`For lille: forventede ${p} havde ${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ugyldig streng: skal starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: skal ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: skal indeholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${s.pattern}`:`Ugyldig ${(d=r[s.format])!=null?d: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 Pb(){return{localeError:AP()}}var ZP=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${p}`:`Ung\xFCltige Eingabe: erwartet ${s}, erhalten ${p}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${I(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`Zu gro\xDF: erwartet, dass ${(c=n.origin)!=null?c:"Wert"} ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${(l=n.origin)!=null?l:"Wert"} ${s}${n.maximum.toString()} ist`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`Zu klein: erwartet, dass ${n.origin} ${s}${n.minimum.toString()} ${f.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${s}${n.minimum.toString()} ist`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ung\xFCltiger String: muss mit "${s.prefix}" beginnen`:s.format==="ends_with"?`Ung\xFCltiger String: muss mit "${s.suffix}" enden`:s.format==="includes"?`Ung\xFCltiger String: muss "${s.includes}" enthalten`:s.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${s.pattern} entsprechen`:`Ung\xFCltig: ${(d=r[s.format])!=null?d: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 Tb(){return{localeError:ZP()}}var MP=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return`Invalid input: expected ${s}, received ${p}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${I(n.values[0])}`:`Invalid option: expected one of ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`Too big: expected ${(c=n.origin)!=null?c:"value"} to have ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"elements"}`:`Too big: expected ${(l=n.origin)!=null?l:"value"} to be ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`Too small: expected ${n.origin} to have ${s}${n.minimum.toString()} ${f.unit}`:`Too small: expected ${n.origin} to be ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${(d=r[s.format])!=null?d: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 kl(){return{localeError:MP()}}var qP=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${p}`:`Nevalida enigo: atendi\u011Dis ${s}, ricevi\u011Dis ${p}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${I(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`Tro granda: atendi\u011Dis ke ${(c=n.origin)!=null?c:"valoro"} havu ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"elementojn"}`:`Tro granda: atendi\u011Dis ke ${(l=n.origin)!=null?l:"valoro"} havu ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${s}${n.minimum.toString()} ${f.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${s.prefix}"`:s.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${s.suffix}"`:s.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${s.includes}"`:s.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${s.pattern}`:`Nevalida ${(d=r[s.format])!=null?d: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 Eb(){return{localeError:qP()}}var LP=()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{var i,a,c,u,l,d,s,f;switch(n.code){case"invalid_type":{let p=(i=o[n.expected])!=null?i:n.expected,m=T(n.input),h=(a=o[m])!=null?a:m;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${h}`:`Entrada inv\xE1lida: se esperaba ${p}, recibido ${h}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${I(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${$(n.values,"|")}`;case"too_big":{let p=n.inclusive?"<=":"<",m=e(n.origin),h=(c=o[n.origin])!=null?c:n.origin;return m?`Demasiado grande: se esperaba que ${h!=null?h:"valor"} tuviera ${p}${n.maximum.toString()} ${(u=m.unit)!=null?u:"elementos"}`:`Demasiado grande: se esperaba que ${h!=null?h:"valor"} fuera ${p}${n.maximum.toString()}`}case"too_small":{let p=n.inclusive?">=":">",m=e(n.origin),h=(l=o[n.origin])!=null?l:n.origin;return m?`Demasiado peque\xF1o: se esperaba que ${h} tuviera ${p}${n.minimum.toString()} ${m.unit}`:`Demasiado peque\xF1o: se esperaba que ${h} fuera ${p}${n.minimum.toString()}`}case"invalid_format":{let p=n;return p.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${p.prefix}"`:p.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${p.suffix}"`:p.format==="includes"?`Cadena inv\xE1lida: debe incluir "${p.includes}"`:p.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${p.pattern}`:`Inv\xE1lido ${(d=r[p.format])!=null?d: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 ${(s=o[n.origin])!=null?s:n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${(f=o[n.origin])!=null?f:n.origin}`;default:return"Entrada inv\xE1lida"}}};function Ob(){return{localeError:LP()}}var VP=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;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 ${p} \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 ${s} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${p} \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 ${I(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 s=n.inclusive?"<=":"<",f=e(n.origin);return f?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${(c=n.origin)!=null?c:"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${(l=n.origin)!=null?l:"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${s}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${s}${n.minimum.toString()} ${f.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${s}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${s.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:s.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${s.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:s.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${s.includes}" \u0628\u0627\u0634\u062F`:s.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${s.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${(d=r[s.format])!=null?d: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 jb(){return{localeError:VP()}}var FP=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return n=>{var i,a,c;switch(n.code){case"invalid_type":{let u=(i=o[n.expected])!=null?i:n.expected,l=T(n.input),d=(a=o[l])!=null?a:l;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${d}`:`Virheellinen tyyppi: odotettiin ${u}, oli ${d}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${I(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${$(n.values,"|")}`;case"too_big":{let u=n.inclusive?"<=":"<",l=e(n.origin);return l?`Liian suuri: ${l.subject} t\xE4ytyy olla ${u}${n.maximum.toString()} ${l.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${u}${n.maximum.toString()}`}case"too_small":{let u=n.inclusive?">=":">",l=e(n.origin);return l?`Liian pieni: ${l.subject} t\xE4ytyy olla ${u}${n.minimum.toString()} ${l.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${u}${n.minimum.toString()}`}case"invalid_format":{let u=n;return u.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${u.prefix}"`:u.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${u.suffix}"`:u.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${u.includes}"`:u.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${u.pattern}`:`Virheellinen ${(c=r[u.format])!=null?c: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 Rb(){return{localeError:FP()}}var JP=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN",number:"nombre",array:"tableau"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${p} re\xE7u`:`Entr\xE9e invalide : ${s} attendu, ${p} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${I(n.values[0])} attendu`:`Option invalide : une valeur parmi ${$(n.values,"|")} attendue`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`Trop grand : ${(c=n.origin)!=null?c:"valeur"} doit ${f.verb} ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"\xE9l\xE9ment(s)"}`:`Trop grand : ${(l=n.origin)!=null?l:"valeur"} doit \xEAtre ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`Trop petit : ${n.origin} doit ${f.verb} ${s}${n.minimum.toString()} ${f.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${s.prefix}"`:s.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${s.suffix}"`:s.format==="includes"?`Cha\xEEne invalide : doit inclure "${s.includes}"`:s.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${s.pattern}`:`${(d=r[s.format])!=null?d: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 Nb(){return{localeError:JP()}}var HP=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return n=>{var i,a,c,u,l;switch(n.code){case"invalid_type":{let d=(i=o[n.expected])!=null?i:n.expected,s=T(n.input),f=(a=o[s])!=null?a:s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${f}`:`Entr\xE9e invalide : attendu ${d}, re\xE7u ${f}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${I(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${$(n.values,"|")}`;case"too_big":{let d=n.inclusive?"\u2264":"<",s=e(n.origin);return s?`Trop grand : attendu que ${(c=n.origin)!=null?c:"la valeur"} ait ${d}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${(u=n.origin)!=null?u:"la valeur"} soit ${d}${n.maximum.toString()}`}case"too_small":{let d=n.inclusive?"\u2265":">",s=e(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${d}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${d}${n.minimum.toString()}`}case"invalid_format":{let d=n;return d.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${d.prefix}"`:d.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${d.suffix}"`:d.format==="includes"?`Cha\xEEne invalide : doit inclure "${d.includes}"`:d.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${d.pattern}`:`${(l=r[d.format])!=null?l: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 Cb(){return{localeError:HP()}}var WP=()=>{let t={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"}},e={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?t[l]:void 0,o=l=>{let d=r(l);return d?d.label:l!=null?l:t.unknown.label},n=l=>`\u05D4${o(l)}`,i=l=>{var f;let d=r(l);return((f=d==null?void 0:d.gender)!=null?f:"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA"},a=l=>{var d;return l&&(d=e[l])!=null?d:null},c={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"}},u={nan:"NaN"};return l=>{var d,s,f,p,m,h,g,y,w,k,b,x,D,V,G,se,De,Oe,Qt,je,At;switch(l.code){case"invalid_type":{let A=l.expected,ke=(d=u[A!=null?A:""])!=null?d:o(A),Ie=T(l.input),rt=(p=(f=u[Ie])!=null?f:(s=t[Ie])==null?void 0:s.label)!=null?p:Ie;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 ${rt}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${ke}, \u05D4\u05EA\u05E7\u05D1\u05DC ${rt}`}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 ${I(l.values[0])}`;let A=l.values.map(rt=>I(rt));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 ${A[0]} \u05D0\u05D5 ${A[1]}`;let ke=A[A.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 ${A.slice(0,-1).join(", ")} \u05D0\u05D5 ${ke}`}case"too_big":{let A=a(l.origin),ke=n((m=l.origin)!=null?m:"value");if(l.origin==="string")return`${(h=A==null?void 0:A.longLabel)!=null?h:"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${ke} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${(g=A==null?void 0:A.unit)!=null?g:""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let St=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: ${ke} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${St}`}if(l.origin==="array"||l.origin==="set"){let St=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",bn=l.inclusive?`${l.maximum} ${(y=A==null?void 0:A.unit)!=null?y:""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${(w=A==null?void 0:A.unit)!=null?w:""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${ke} ${St} \u05DC\u05D4\u05DB\u05D9\u05DC ${bn}`.trim()}let Ie=l.inclusive?"<=":"<",rt=i((k=l.origin)!=null?k:"value");return A!=null&&A.unit?`${A.longLabel} \u05DE\u05D3\u05D9: ${ke} ${rt} ${Ie}${l.maximum.toString()} ${A.unit}`:`${(b=A==null?void 0:A.longLabel)!=null?b:"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${ke} ${rt} ${Ie}${l.maximum.toString()}`}case"too_small":{let A=a(l.origin),ke=n((x=l.origin)!=null?x:"value");if(l.origin==="string")return`${(D=A==null?void 0:A.shortLabel)!=null?D:"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${ke} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${(V=A==null?void 0:A.unit)!=null?V:""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let St=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: ${ke} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${St}`}if(l.origin==="array"||l.origin==="set"){let St=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let nI=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${ke} ${St} \u05DC\u05D4\u05DB\u05D9\u05DC ${nI}`}let bn=l.inclusive?`${l.minimum} ${(G=A==null?void 0:A.unit)!=null?G:""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${(se=A==null?void 0:A.unit)!=null?se:""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${ke} ${St} \u05DC\u05D4\u05DB\u05D9\u05DC ${bn}`.trim()}let Ie=l.inclusive?">=":">",rt=i((De=l.origin)!=null?De:"value");return A!=null&&A.unit?`${A.shortLabel} \u05DE\u05D3\u05D9: ${ke} ${rt} ${Ie}${l.minimum.toString()} ${A.unit}`:`${(Oe=A==null?void 0:A.shortLabel)!=null?Oe:"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${ke} ${rt} ${Ie}${l.minimum.toString()}`}case"invalid_format":{let A=l;if(A.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${A.prefix}"`;if(A.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${A.suffix}"`;if(A.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${A.includes}"`;if(A.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 ${A.pattern}`;let ke=c[A.format],Ie=(Qt=ke==null?void 0:ke.label)!=null?Qt:A.format,St=((je=ke==null?void 0:ke.gender)!=null?je:"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${Ie} \u05DC\u05D0 ${St}`}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((At=l.origin)!=null?At:"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Db(){return{localeError:WP()}}var BP=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${p}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${s}, a kapott \xE9rt\xE9k ${p}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${I(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`T\xFAl nagy: ${(c=n.origin)!=null?c:"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${(l=n.origin)!=null?l:"\xE9rt\xE9k"} t\xFAl nagy: ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${s}${n.minimum.toString()} ${f.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\xC9rv\xE9nytelen string: "${s.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:s.format==="ends_with"?`\xC9rv\xE9nytelen string: "${s.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:s.format==="includes"?`\xC9rv\xE9nytelen string: "${s.includes}" \xE9rt\xE9ket kell tartalmaznia`:s.format==="regex"?`\xC9rv\xE9nytelen string: ${s.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${(d=r[s.format])!=null?d: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 Ub(){return{localeError:BP()}}function Ab(t,e,r){return Math.abs(t)===1?e:r}function Zo(t){if(!t)return"";let e=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=t[t.length-1];return t+(e.includes(r)?"\u0576":"\u0568")}var GP=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{var i,a,c,u,l;switch(n.code){case"invalid_type":{let d=(i=o[n.expected])!=null?i:n.expected,s=T(n.input),f=(a=o[s])!=null?a: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 ${f}`:`\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 ${d}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${f}`}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 ${I(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 d=n.inclusive?"<=":"<",s=e(n.origin);if(s){let f=Number(n.maximum),p=Ab(f,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 ${Zo((c=n.origin)!=null?c:"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${d}${n.maximum.toString()} ${p}`}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 ${Zo((u=n.origin)!=null?u:"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${d}${n.maximum.toString()}`}case"too_small":{let d=n.inclusive?">=":">",s=e(n.origin);if(s){let f=Number(n.minimum),p=Ab(f,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 ${Zo(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${d}${n.minimum.toString()} ${p}`}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 ${Zo(n.origin)} \u056C\u056B\u0576\u056B ${d}${n.minimum.toString()}`}case"invalid_format":{let d=n;return d.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${d.prefix}"-\u0578\u057E`:d.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${d.suffix}"-\u0578\u057E`:d.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${d.includes}"`:d.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 ${d.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${(l=r[d.format])!=null?l: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 ${Zo(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 ${Zo(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Zb(){return{localeError:GP()}}var KP=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${p}`:`Input tidak valid: diharapkan ${s}, diterima ${p}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${I(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`Terlalu besar: diharapkan ${(c=n.origin)!=null?c:"value"} memiliki ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"elemen"}`:`Terlalu besar: diharapkan ${(l=n.origin)!=null?l:"value"} menjadi ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`Terlalu kecil: diharapkan ${n.origin} memiliki ${s}${n.minimum.toString()} ${f.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`String tidak valid: harus dimulai dengan "${s.prefix}"`:s.format==="ends_with"?`String tidak valid: harus berakhir dengan "${s.suffix}"`:s.format==="includes"?`String tidak valid: harus menyertakan "${s.includes}"`:s.format==="regex"?`String tidak valid: harus sesuai pola ${s.pattern}`:`${(d=r[s.format])!=null?d: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 Mb(){return{localeError:KP()}}var XP=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${p} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${p} \xFEar sem \xE1 a\xF0 vera ${s}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${I(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${(c=n.origin)!=null?c:"gildi"} hafi ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${(l=n.origin)!=null?l:"gildi"} s\xE9 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${s}${n.minimum.toString()} ${f.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${s.prefix}"`:s.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${s.suffix}"`:s.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${s.includes}"`:s.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${s.pattern}`:`Rangt ${(d=r[s.format])!=null?d: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 qb(){return{localeError:XP()}}var YP=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${p}`:`Input non valido: atteso ${s}, ricevuto ${p}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${I(n.values[0])}`:`Opzione non valida: atteso uno tra ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`Troppo grande: ${(c=n.origin)!=null?c:"valore"} deve avere ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"elementi"}`:`Troppo grande: ${(l=n.origin)!=null?l:"valore"} deve essere ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`Troppo piccolo: ${n.origin} deve avere ${s}${n.minimum.toString()} ${f.unit}`:`Troppo piccolo: ${n.origin} deve essere ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Stringa non valida: deve iniziare con "${s.prefix}"`:s.format==="ends_with"?`Stringa non valida: deve terminare con "${s.suffix}"`:s.format==="includes"?`Stringa non valida: deve includere "${s.includes}"`:s.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${s.pattern}`:`Invalid ${(d=r[s.format])!=null?d: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 Lb(){return{localeError:YP()}}var QP=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${p}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${s}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${p}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${I(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 s=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",f=e(n.origin);return f?`\u5927\u304D\u3059\u304E\u308B\u5024: ${(c=n.origin)!=null?c:"\u5024"}\u306F${n.maximum.toString()}${(u=f.unit)!=null?u:"\u8981\u7D20"}${s}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${(l=n.origin)!=null?l:"\u5024"}\u306F${n.maximum.toString()}${s}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let s=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",f=e(n.origin);return f?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${f.unit}${s}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${s.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:s.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${s.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:s.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${s.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:s.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${s.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${(d=r[s.format])!=null?d: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 Vb(){return{localeError:QP()}}var eT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i: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"},o={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=>{var i,a,c,u,l;switch(n.code){case"invalid_type":{let d=(i=o[n.expected])!=null?i:n.expected,s=T(n.input),f=(a=o[s])!=null?a: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 ${f}`:`\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 ${d}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${f}`}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 ${I(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 d=n.inclusive?"<=":"<",s=e(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 ${(c=n.origin)!=null?c:"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${d}${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 ${(u=n.origin)!=null?u:"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${d}${n.maximum.toString()}`}case"too_small":{let d=n.inclusive?">=":">",s=e(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} ${d}${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 ${d}${n.minimum.toString()}`}case"invalid_format":{let d=n;return d.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 "${d.prefix}"-\u10D8\u10D7`:d.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 "${d.suffix}"-\u10D8\u10D7`:d.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 "${d.includes}"-\u10E1`:d.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 ${d.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${(l=r[d.format])!=null?l: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 Fb(){return{localeError:eT()}}var tT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;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 ${p}`:`\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 ${s} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${p}`}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 ${I(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 s=n.inclusive?"<=":"<",f=e(n.origin);return f?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${(c=n.origin)!=null?c:"\u178F\u1798\u17D2\u179B\u17C3"} ${s} ${n.maximum.toString()} ${(u=f.unit)!=null?u:"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${(l=n.origin)!=null?l:"\u178F\u1798\u17D2\u179B\u17C3"} ${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${s} ${n.minimum.toString()} ${f.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.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 "${s.prefix}"`:s.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 "${s.suffix}"`:s.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 "${s.includes}"`:s.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 ${s.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${(d=r[s.format])!=null?d: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 Sl(){return{localeError:tT()}}function Jb(){return Sl()}var rT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return n=>{var i,a,c,u,l,d,s,f,p;switch(n.code){case"invalid_type":{let m=(i=o[n.expected])!=null?i:n.expected,h=T(n.input),g=(a=o[h])!=null?a:h;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${g}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${m}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${g}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${I(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 m=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",h=m==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",g=e(n.origin),y=(c=g==null?void 0:g.unit)!=null?c:"\uC694\uC18C";return g?`${(u=n.origin)!=null?u:"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${y} ${m}${h}`:`${(l=n.origin)!=null?l:"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${m}${h}`}case"too_small":{let m=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",h=m==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",g=e(n.origin),y=(d=g==null?void 0:g.unit)!=null?d:"\uC694\uC18C";return g?`${(s=n.origin)!=null?s:"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${y} ${m}${h}`:`${(f=n.origin)!=null?f:"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${m}${h}`}case"invalid_format":{let m=n;return m.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${m.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:m.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${m.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:m.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${m.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:m.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${m.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${(p=r[m.format])!=null?p: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 Hb(){return{localeError:rT()}}var za=t=>t.charAt(0).toUpperCase()+t.slice(1);function Wb(t){let e=Math.abs(t),r=e%10,o=e%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var nT=()=>{let t={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 e(n,i,a,c){var l;let u=(l=t[n])!=null?l:null;return u===null?u:{unit:u.unit[i],verb:u.verb[c][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{var i,a,c,u,l,d,s,f,p,m,h,g,y,w,k;switch(n.code){case"invalid_type":{let b=(i=o[n.expected])!=null?i:n.expected,x=T(n.input),D=(a=o[x])!=null?a:x;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${D}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${D}, o tik\u0117tasi - ${b}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${I(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${$(n.values,"|")} pasirinkim\u0173`;case"too_big":{let b=(c=o[n.origin])!=null?c:n.origin,x=e(n.origin,Wb(Number(n.maximum)),(u=n.inclusive)!=null?u:!1,"smaller");if(x!=null&&x.verb)return`${za((l=b!=null?b:n.origin)!=null?l:"reik\u0161m\u0117")} ${x.verb} ${n.maximum.toString()} ${(d=x.unit)!=null?d:"element\u0173"}`;let D=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${za((s=b!=null?b:n.origin)!=null?s:"reik\u0161m\u0117")} turi b\u016Bti ${D} ${n.maximum.toString()} ${x==null?void 0:x.unit}`}case"too_small":{let b=(f=o[n.origin])!=null?f:n.origin,x=e(n.origin,Wb(Number(n.minimum)),(p=n.inclusive)!=null?p:!1,"bigger");if(x!=null&&x.verb)return`${za((m=b!=null?b:n.origin)!=null?m:"reik\u0161m\u0117")} ${x.verb} ${n.minimum.toString()} ${(h=x.unit)!=null?h:"element\u0173"}`;let D=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${za((g=b!=null?b:n.origin)!=null?g:"reik\u0161m\u0117")} turi b\u016Bti ${D} ${n.minimum.toString()} ${x==null?void 0:x.unit}`}case"invalid_format":{let b=n;return b.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${b.prefix}"`:b.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${b.suffix}"`:b.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${b.includes}"`:b.format==="regex"?`Eilut\u0117 privalo atitikti ${b.pattern}`:`Neteisingas ${(y=r[b.format])!=null?y: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 b=(w=o[n.origin])!=null?w:n.origin;return`${za((k=b!=null?b:n.origin)!=null?k:"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Bb(){return{localeError:nT()}}var oT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;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 ${p}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${s}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${p}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${I(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 s=n.inclusive?"<=":"<",f=e(n.origin);return f?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${(c=n.origin)!=null?c:"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"\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 ${(l=n.origin)!=null?l:"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\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 ${s}${n.minimum.toString()} ${f.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 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.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 "${s.prefix}"`:s.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 "${s.suffix}"`:s.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 "${s.includes}"`:s.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 ${s.pattern}`:`Invalid ${(d=r[s.format])!=null?d: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 Gb(){return{localeError:oT()}}var iT=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${p}`:`Input tidak sah: dijangka ${s}, diterima ${p}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${I(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`Terlalu besar: dijangka ${(c=n.origin)!=null?c:"nilai"} ${f.verb} ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"elemen"}`:`Terlalu besar: dijangka ${(l=n.origin)!=null?l:"nilai"} adalah ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`Terlalu kecil: dijangka ${n.origin} ${f.verb} ${s}${n.minimum.toString()} ${f.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`String tidak sah: mesti bermula dengan "${s.prefix}"`:s.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${s.suffix}"`:s.format==="includes"?`String tidak sah: mesti mengandungi "${s.includes}"`:s.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${s.pattern}`:`${(d=r[s.format])!=null?d: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 Kb(){return{localeError:iT()}}var aT=()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${p}`:`Ongeldige invoer: verwacht ${s}, ontving ${p}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${I(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin),p=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return f?`Te ${p}: verwacht dat ${(c=n.origin)!=null?c:"waarde"} ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"elementen"} ${f.verb}`:`Te ${p}: verwacht dat ${(l=n.origin)!=null?l:"waarde"} ${s}${n.maximum.toString()} is`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin),p=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return f?`Te ${p}: verwacht dat ${n.origin} ${s}${n.minimum.toString()} ${f.unit} ${f.verb}`:`Te ${p}: verwacht dat ${n.origin} ${s}${n.minimum.toString()} is`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ongeldige tekst: moet met "${s.prefix}" beginnen`:s.format==="ends_with"?`Ongeldige tekst: moet op "${s.suffix}" eindigen`:s.format==="includes"?`Ongeldige tekst: moet "${s.includes}" bevatten`:s.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${s.pattern}`:`Ongeldig: ${(d=r[s.format])!=null?d: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 Xb(){return{localeError:aT()}}var sT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${p}`:`Ugyldig input: forventet ${s}, fikk ${p}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${I(n.values[0])}`:`Ugyldig valg: forventet en av ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`For stor(t): forventet ${(c=n.origin)!=null?c:"value"} til \xE5 ha ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"elementer"}`:`For stor(t): forventet ${(l=n.origin)!=null?l:"value"} til \xE5 ha ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`For lite(n): forventet ${n.origin} til \xE5 ha ${s}${n.minimum.toString()} ${f.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${s.pattern}`:`Ugyldig ${(d=r[s.format])!=null?d: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 Yb(){return{localeError:sT()}}var cT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${p}`:`F\xE2sit giren: umulan ${s}, al\u0131nan ${p}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${I(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`Fazla b\xFCy\xFCk: ${(c=n.origin)!=null?c:"value"}, ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${(l=n.origin)!=null?l:"value"}, ${s}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${s}${n.minimum.toString()} ${f.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${s}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let s=n;return s.format==="starts_with"?`F\xE2sit metin: "${s.prefix}" ile ba\u015Flamal\u0131.`:s.format==="ends_with"?`F\xE2sit metin: "${s.suffix}" ile bitmeli.`:s.format==="includes"?`F\xE2sit metin: "${s.includes}" ihtiv\xE2 etmeli.`:s.format==="regex"?`F\xE2sit metin: ${s.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${(d=r[s.format])!=null?d: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 Qb(){return{localeError:cT()}}var uT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;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 ${p} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${s} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${p} \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 ${I(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 s=n.inclusive?"<=":"<",f=e(n.origin);return f?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${(c=n.origin)!=null?c:"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${(l=n.origin)!=null?l:"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${s}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${s}${n.minimum.toString()} ${f.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${s}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${s.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:s.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${s.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:s.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${s.includes}" \u0648\u0644\u0631\u064A`:s.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${s.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${(d=r[s.format])!=null?d: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 ex(){return{localeError:uT()}}var lT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{var i,a,c,u,l,d,s,f,p;switch(n.code){case"invalid_type":{let m=(i=o[n.expected])!=null?i:n.expected,h=T(n.input),g=(a=o[h])!=null?a:h;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${g}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${m}, otrzymano ${g}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${I(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${$(n.values,"|")}`;case"too_big":{let m=n.inclusive?"<=":"<",h=e(n.origin);return h?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${(c=n.origin)!=null?c:"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${m}${n.maximum.toString()} ${(u=h.unit)!=null?u:"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${(l=n.origin)!=null?l:"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${m}${n.maximum.toString()}`}case"too_small":{let m=n.inclusive?">=":">",h=e(n.origin);return h?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${(d=n.origin)!=null?d:"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${m}${n.minimum.toString()} ${(s=h.unit)!=null?s:"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${(f=n.origin)!=null?f:"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${m}${n.minimum.toString()}`}case"invalid_format":{let m=n;return m.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${m.prefix}"`:m.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${m.suffix}"`:m.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${m.includes}"`:m.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${m.pattern}`:`Nieprawid\u0142ow(y/a/e) ${(p=r[m.format])!=null?p: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 tx(){return{localeError:lT()}}var dT=()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${p}`:`Tipo inv\xE1lido: esperado ${s}, recebido ${p}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${I(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`Muito grande: esperado que ${(c=n.origin)!=null?c:"valor"} tivesse ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"elementos"}`:`Muito grande: esperado que ${(l=n.origin)!=null?l:"valor"} fosse ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`Muito pequeno: esperado que ${n.origin} tivesse ${s}${n.minimum.toString()} ${f.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${s.prefix}"`:s.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inv\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${s.pattern}`:`${(d=r[s.format])!=null?d: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 rx(){return{localeError:dT()}}function nx(t,e,r,o){let n=Math.abs(t),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?e:i>=2&&i<=4?r:o}var fT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{var i,a,c,u,l;switch(n.code){case"invalid_type":{let d=(i=o[n.expected])!=null?i:n.expected,s=T(n.input),f=(a=o[s])!=null?a: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 ${f}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${d}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${f}`}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 ${I(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 d=n.inclusive?"<=":"<",s=e(n.origin);if(s){let f=Number(n.maximum),p=nx(f,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 ${(c=n.origin)!=null?c:"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${d}${n.maximum.toString()} ${p}`}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 ${(u=n.origin)!=null?u:"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${d}${n.maximum.toString()}`}case"too_small":{let d=n.inclusive?">=":">",s=e(n.origin);if(s){let f=Number(n.minimum),p=nx(f,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 ${d}${n.minimum.toString()} ${p}`}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 ${d}${n.minimum.toString()}`}case"invalid_format":{let d=n;return d.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 "${d.prefix}"`:d.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 "${d.suffix}"`:d.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 "${d.includes}"`:d.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 ${d.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${(l=r[d.format])!=null?l: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 ox(){return{localeError:fT()}}var pT=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${p}`:`Neveljaven vnos: pri\u010Dakovano ${s}, prejeto ${p}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${I(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`Preveliko: pri\u010Dakovano, da bo ${(c=n.origin)!=null?c:"vrednost"} imelo ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${(l=n.origin)!=null?l:"vrednost"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${s}${n.minimum.toString()} ${f.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${s.prefix}"`:s.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${s.suffix}"`:s.format==="includes"?`Neveljaven niz: mora vsebovati "${s.includes}"`:s.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${s.pattern}`:`Neveljaven ${(d=r[s.format])!=null?d: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 ix(){return{localeError:pT()}}var mT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{var i,a,c,u,l,d,s,f,p,m;switch(n.code){case"invalid_type":{let h=(i=o[n.expected])!=null?i:n.expected,g=T(n.input),y=(a=o[g])!=null?a:g;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${y}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${h}, fick ${y}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${I(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${$(n.values,"|")}`;case"too_big":{let h=n.inclusive?"<=":"<",g=e(n.origin);return g?`F\xF6r stor(t): f\xF6rv\xE4ntade ${(c=n.origin)!=null?c:"v\xE4rdet"} att ha ${h}${n.maximum.toString()} ${(u=g.unit)!=null?u:"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${(l=n.origin)!=null?l:"v\xE4rdet"} att ha ${h}${n.maximum.toString()}`}case"too_small":{let h=n.inclusive?">=":">",g=e(n.origin);return g?`F\xF6r lite(t): f\xF6rv\xE4ntade ${(d=n.origin)!=null?d:"v\xE4rdet"} att ha ${h}${n.minimum.toString()} ${g.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${(s=n.origin)!=null?s:"v\xE4rdet"} att ha ${h}${n.minimum.toString()}`}case"invalid_format":{let h=n;return h.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${h.prefix}"`:h.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${h.suffix}"`:h.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${h.includes}"`:h.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${h.pattern}"`:`Ogiltig(t) ${(f=r[h.format])!=null?f: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 ${(p=n.origin)!=null?p:"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${(m=n.origin)!=null?m:"v\xE4rdet"}`;default:return"Ogiltig input"}}};function ax(){return{localeError:mT()}}var hT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;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 ${p}`:`\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 ${s}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${p}`}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 ${I(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 s=n.inclusive?"<=":"<",f=e(n.origin);return f?`\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 ${(c=n.origin)!=null?c:"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"\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 ${(l=n.origin)!=null?l:"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${s}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\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} ${s}${n.minimum.toString()} ${f.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} ${s}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${s.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:s.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${s.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:s.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${s.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:s.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${s.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 ${(d=r[s.format])!=null?d: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 sx(){return{localeError:hT()}}var gT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;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 ${p}`:`\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 ${s} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${p}`}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 ${I(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 s=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",f=e(n.origin);return f?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${(c=n.origin)!=null?c:"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${s} ${n.maximum.toString()} ${(u=f.unit)!=null?u:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${(l=n.origin)!=null?l:"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",f=e(n.origin);return f?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${s} ${n.minimum.toString()} ${f.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.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 "${s.prefix}"`:s.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 "${s.suffix}"`:s.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 "${s.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:s.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 ${s.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${(d=r[s.format])!=null?d: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 cx(){return{localeError:gT()}}var vT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${p}`:`Ge\xE7ersiz de\u011Fer: beklenen ${s}, al\u0131nan ${p}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${I(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`\xC7ok b\xFCy\xFCk: beklenen ${(c=n.origin)!=null?c:"de\u011Fer"} ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${(l=n.origin)!=null?l:"de\u011Fer"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${s}${n.minimum.toString()} ${f.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ge\xE7ersiz metin: "${s.prefix}" ile ba\u015Flamal\u0131`:s.format==="ends_with"?`Ge\xE7ersiz metin: "${s.suffix}" ile bitmeli`:s.format==="includes"?`Ge\xE7ersiz metin: "${s.includes}" i\xE7ermeli`:s.format==="regex"?`Ge\xE7ersiz metin: ${s.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${(d=r[s.format])!=null?d: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 ux(){return{localeError:vT()}}var _T=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;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 ${p}`:`\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 ${s}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${p}`}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 ${I(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 s=n.inclusive?"<=":"<",f=e(n.origin);return f?`\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 ${(c=n.origin)!=null?c:"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${f.verb} ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"\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 ${(l=n.origin)!=null?l:"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\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} ${f.verb} ${s}${n.minimum.toString()} ${f.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 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.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 "${s.prefix}"`:s.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 "${s.suffix}"`:s.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 "${s.includes}"`:s.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 ${s.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${(d=r[s.format])!=null?d: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 zl(){return{localeError:_T()}}function lx(){return zl()}var yT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;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 ${p} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${s} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${p} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${I(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 s=n.inclusive?"<=":"<",f=e(n.origin);return f?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${(c=n.origin)!=null?c:"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${(l=n.origin)!=null?l:"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${s}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${s}${n.minimum.toString()} ${f.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 ${s}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${s.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:s.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${s.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:s.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${s.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:s.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${s.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${(d=r[s.format])!=null?d: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 dx(){return{localeError:yT()}}var $T=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{var i,a,c,u,l;switch(n.code){case"invalid_type":{let d=(i=o[n.expected])!=null?i:n.expected,s=T(n.input),f=(a=o[s])!=null?a:s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${f}`:`Noto\u2018g\u2018ri kirish: kutilgan ${d}, qabul qilingan ${f}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${I(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${$(n.values,"|")}`;case"too_big":{let d=n.inclusive?"<=":"<",s=e(n.origin);return s?`Juda katta: kutilgan ${(c=n.origin)!=null?c:"qiymat"} ${d}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${(u=n.origin)!=null?u:"qiymat"} ${d}${n.maximum.toString()}`}case"too_small":{let d=n.inclusive?">=":">",s=e(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${d}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${d}${n.minimum.toString()}`}case"invalid_format":{let d=n;return d.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${d.prefix}" bilan boshlanishi kerak`:d.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${d.suffix}" bilan tugashi kerak`:d.format==="includes"?`Noto\u2018g\u2018ri satr: "${d.includes}" ni o\u2018z ichiga olishi kerak`:d.format==="regex"?`Noto\u2018g\u2018ri satr: ${d.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${(l=r[d.format])!=null?l: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 fx(){return{localeError:$T()}}var bT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;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 ${p}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${s}, nh\u1EADn \u0111\u01B0\u1EE3c ${p}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${I(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 s=n.inclusive?"<=":"<",f=e(n.origin);return f?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${(c=n.origin)!=null?c:"gi\xE1 tr\u1ECB"} ${f.verb} ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${(l=n.origin)!=null?l:"gi\xE1 tr\u1ECB"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${f.verb} ${s}${n.minimum.toString()} ${f.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${s.prefix}"`:s.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${s.suffix}"`:s.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${s.includes}"`:s.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${s.pattern}`:`${(d=r[s.format])!=null?d: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 px(){return{localeError:bT()}}var xT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${p}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${s}\uFF0C\u5B9E\u9645\u63A5\u6536 ${p}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${I(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${(c=n.origin)!=null?c:"\u503C"} ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${(l=n.origin)!=null?l:"\u503C"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${s}${n.minimum.toString()} ${f.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${s.prefix}" \u5F00\u5934`:s.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${s.suffix}" \u7ED3\u5C3E`:s.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${s.includes}"`:s.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${s.pattern}`:`\u65E0\u6548${(d=r[s.format])!=null?d: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 mx(){return{localeError:xT()}}var wT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return n=>{var i,a,c,u,l,d;switch(n.code){case"invalid_type":{let s=(i=o[n.expected])!=null?i:n.expected,f=T(n.input),p=(a=o[f])!=null?a:f;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${p}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${s}\uFF0C\u4F46\u6536\u5230 ${p}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${I(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${$(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",f=e(n.origin);return f?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${(c=n.origin)!=null?c:"\u503C"} \u61C9\u70BA ${s}${n.maximum.toString()} ${(u=f.unit)!=null?u:"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${(l=n.origin)!=null?l:"\u503C"} \u61C9\u70BA ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",f=e(n.origin);return f?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${s}${n.minimum.toString()} ${f.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${s.prefix}" \u958B\u982D`:s.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${s.suffix}" \u7D50\u5C3E`:s.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${s.includes}"`:s.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${s.pattern}`:`\u7121\u6548\u7684 ${(d=r[s.format])!=null?d: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 hx(){return{localeError:wT()}}var kT=()=>{let t={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 e(n){var i;return(i=t[n])!=null?i:null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{var i,a,c,u;switch(n.code){case"invalid_type":{let l=(i=o[n.expected])!=null?i:n.expected,d=T(n.input),s=(a=o[d])!=null?a:d;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 ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${l}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${I(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${$(n.values,"|")}`;case"too_big":{let l=n.inclusive?"<=":"<",d=e(n.origin);return d?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${(c=n.origin)!=null?c:"iye"} ${d.verb} ${l}${n.maximum} ${d.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${l}${n.maximum}`}case"too_small":{let l=n.inclusive?">=":">",d=e(n.origin);return d?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${d.verb} ${l}${n.minimum} ${d.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${l}${n.minimum}`}case"invalid_format":{let l=n;return l.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 "${l.prefix}"`:l.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${l.suffix}"`:l.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${l.includes}"`:l.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${l.pattern}`:`A\u1E63\xEC\u1E63e: ${(u=r[l.format])!=null?u: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 gx(){return{localeError:kT()}}var vx,Ia=Symbol("ZodOutput"),Pa=Symbol("ZodInput"),Il=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let o=r[0];return this._map.set(e,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){var o;let r=e._zod.parent;if(r){let n={...(o=this.get(r))!=null?o:{}};delete n.id;let i={...n,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Mo(){return new Il}var _x;(_x=(vx=globalThis).__zod_globalRegistry)!=null||(vx.__zod_globalRegistry=Mo());var Ae=globalThis.__zod_globalRegistry;function Pl(t,e){return new t({type:"string",...O(e)})}function Ta(t,e){return new t({type:"string",coerce:!0,...O(e)})}function Ea(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...O(e)})}function qo(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...O(e)})}function Oa(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...O(e)})}function ja(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...O(e)})}function Ra(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...O(e)})}function Na(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...O(e)})}function Lo(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...O(e)})}function Ca(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...O(e)})}function Da(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...O(e)})}function Ua(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...O(e)})}function Aa(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...O(e)})}function Za(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...O(e)})}function Ma(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...O(e)})}function qa(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...O(e)})}function La(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...O(e)})}function Va(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...O(e)})}function Tl(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...O(e)})}function Fa(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...O(e)})}function Ja(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...O(e)})}function Ha(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...O(e)})}function Wa(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...O(e)})}function Ba(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...O(e)})}function Ga(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...O(e)})}var Ka={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Xa(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...O(e)})}function Ya(t,e){return new t({type:"string",format:"date",check:"string_format",...O(e)})}function Qa(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...O(e)})}function es(t,e){return new t({type:"string",format:"duration",check:"string_format",...O(e)})}function El(t,e){return new t({type:"number",checks:[],...O(e)})}function ts(t,e){return new t({type:"number",coerce:!0,checks:[],...O(e)})}function Ol(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...O(e)})}function jl(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...O(e)})}function Rl(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...O(e)})}function Nl(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...O(e)})}function Cl(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...O(e)})}function Dl(t,e){return new t({type:"boolean",...O(e)})}function rs(t,e){return new t({type:"boolean",coerce:!0,...O(e)})}function Ul(t,e){return new t({type:"bigint",...O(e)})}function ns(t,e){return new t({type:"bigint",coerce:!0,...O(e)})}function Al(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...O(e)})}function Zl(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...O(e)})}function Ml(t,e){return new t({type:"symbol",...O(e)})}function ql(t,e){return new t({type:"undefined",...O(e)})}function Ll(t,e){return new t({type:"null",...O(e)})}function Vl(t){return new t({type:"any"})}function Fl(t){return new t({type:"unknown"})}function Jl(t,e){return new t({type:"never",...O(e)})}function Hl(t,e){return new t({type:"void",...O(e)})}function Wl(t,e){return new t({type:"date",...O(e)})}function os(t,e){return new t({type:"date",coerce:!0,...O(e)})}function Bl(t,e){return new t({type:"nan",...O(e)})}function Tt(t,e){return new hu({check:"less_than",...O(e),value:t,inclusive:!1})}function Ke(t,e){return new hu({check:"less_than",...O(e),value:t,inclusive:!0})}function Et(t,e){return new gu({check:"greater_than",...O(e),value:t,inclusive:!1})}function Me(t,e){return new gu({check:"greater_than",...O(e),value:t,inclusive:!0})}function Vo(t){return Et(0,t)}function Fo(t){return Tt(0,t)}function Jo(t){return Ke(0,t)}function Ho(t){return Me(0,t)}function nr(t,e){return new Cm({check:"multiple_of",...O(e),value:t})}function or(t,e){return new Am({check:"max_size",...O(e),maximum:t})}function Ot(t,e){return new Zm({check:"min_size",...O(e),minimum:t})}function yr(t,e){return new Mm({check:"size_equals",...O(e),size:t})}function $r(t,e){return new qm({check:"max_length",...O(e),maximum:t})}function Lt(t,e){return new Lm({check:"min_length",...O(e),minimum:t})}function br(t,e){return new Vm({check:"length_equals",...O(e),length:t})}function Lr(t,e){return new Fm({check:"string_format",format:"regex",...O(e),pattern:t})}function Vr(t){return new Jm({check:"string_format",format:"lowercase",...O(t)})}function Fr(t){return new Hm({check:"string_format",format:"uppercase",...O(t)})}function Jr(t,e){return new Wm({check:"string_format",format:"includes",...O(e),includes:t})}function Hr(t,e){return new Bm({check:"string_format",format:"starts_with",...O(e),prefix:t})}function Wr(t,e){return new Gm({check:"string_format",format:"ends_with",...O(e),suffix:t})}function Wo(t,e,r){return new Km({check:"property",property:t,schema:e,...O(r)})}function Br(t,e){return new Xm({check:"mime_type",mime:t,...O(e)})}function xt(t){return new Ym({check:"overwrite",tx:t})}function Gr(t){return xt(e=>e.normalize(t))}function Kr(){return xt(t=>t.trim())}function Xr(){return xt(t=>t.toLowerCase())}function Yr(){return xt(t=>t.toUpperCase())}function Rn(){return xt(t=>tm(t))}function oh(t,e,r){return new t({type:"array",element:e,...O(r)})}function zT(t,e,r){return new t({type:"union",options:e,...O(r)})}function IT(t,e,r){return new t({type:"union",options:e,inclusive:!1,...O(r)})}function PT(t,e,r,o){return new t({type:"union",options:r,discriminator:e,...O(o)})}function TT(t,e,r){return new t({type:"intersection",left:e,right:r})}function ET(t,e,r,o){let n=r instanceof W,i=n?o:r,a=n?r:null;return new t({type:"tuple",items:e,rest:a,...O(i)})}function OT(t,e,r,o){return new t({type:"record",keyType:e,valueType:r,...O(o)})}function jT(t,e,r,o){return new t({type:"map",keyType:e,valueType:r,...O(o)})}function RT(t,e,r){return new t({type:"set",valueType:e,...O(r)})}function NT(t,e,r){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:o,...O(r)})}function CT(t,e,r){return new t({type:"enum",entries:e,...O(r)})}function DT(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...O(r)})}function Gl(t,e){return new t({type:"file",...O(e)})}function UT(t,e){return new t({type:"transform",transform:e})}function AT(t,e){return new t({type:"optional",innerType:e})}function ZT(t,e){return new t({type:"nullable",innerType:e})}function MT(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():ou(r)}})}function qT(t,e,r){return new t({type:"nonoptional",innerType:e,...O(r)})}function LT(t,e){return new t({type:"success",innerType:e})}function VT(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}function FT(t,e,r){return new t({type:"pipe",in:e,out:r})}function JT(t,e){return new t({type:"readonly",innerType:e})}function HT(t,e,r){return new t({type:"template_literal",parts:e,...O(r)})}function WT(t,e){return new t({type:"lazy",getter:e})}function BT(t,e){return new t({type:"promise",innerType:e})}function Kl(t,e,r){var i;let o=O(r);return(i=o.abort)!=null||(o.abort=!0),new t({type:"custom",check:"custom",fn:e,...o})}function Xl(t,e,r){return new t({type:"custom",check:"custom",fn:e,...O(r)})}function Yl(t){let e=yx(r=>(r.addIssue=o=>{var n,i,a,c;if(typeof o=="string")r.issues.push(To(o,r.value,e._zod.def));else{let u=o;u.fatal&&(u.continue=!1),(n=u.code)!=null||(u.code="custom"),(i=u.input)!=null||(u.input=r.value),(a=u.inst)!=null||(u.inst=e),(c=u.continue)!=null||(u.continue=!e._zod.def.abort),r.issues.push(To(u))}},t(r.value,r)));return e}function yx(t,e){let r=new ye({check:"custom",...O(e)});return r._zod.check=t,r}function Ql(t){let e=new ye({check:"describe"});return e._zod.onattach=[r=>{var n;let o=(n=Ae.get(r))!=null?n:{};Ae.add(r,{...o,description:t})}],e._zod.check=()=>{},e}function ed(t){let e=new ye({check:"meta"});return e._zod.onattach=[r=>{var n;let o=(n=Ae.get(r))!=null?n:{};Ae.add(r,{...o,...t})}],e._zod.check=()=>{},e}function td(t,e){var p,m,h,g,y;let r=O(e),o=(p=r.truthy)!=null?p:["true","1","yes","on","y","enabled"],n=(m=r.falsy)!=null?m:["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(w=>typeof w=="string"?w.toLowerCase():w),n=n.map(w=>typeof w=="string"?w.toLowerCase():w));let i=new Set(o),a=new Set(n),c=(h=t.Codec)!=null?h:Ao,u=(g=t.Boolean)!=null?g:jn,l=(y=t.String)!=null?y:_r,d=new l({type:"string",error:r.error}),s=new u({type:"boolean",error:r.error}),f=new c({type:"pipe",in:d,out:s,transform:((w,k)=>{let b=w;return r.case!=="sensitive"&&(b=b.toLowerCase()),i.has(b)?!0:a.has(b)?!1:(k.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:k.value,inst:f,continue:!1}),{})}),reverseTransform:((w,k)=>w===!0?o[0]||"true":n[0]||"false"),error:r.error});return f}function Nn(t,e,r,o={}){let n=O(o),i={...O(o),check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:c=>r.test(c),...n};return r instanceof RegExp&&(i.pattern=r),new t(i)}function Qr(t){var r,o,n,i,a,c,u,l,d;let e=(r=t==null?void 0:t.target)!=null?r:"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:(o=t.processors)!=null?o:{},metadataRegistry:(n=t==null?void 0:t.metadata)!=null?n:Ae,target:e,unrepresentable:(i=t==null?void 0:t.unrepresentable)!=null?i:"throw",override:(a=t==null?void 0:t.override)!=null?a:(()=>{}),io:(c=t==null?void 0:t.io)!=null?c:"output",counter:0,seen:new Map,cycles:(u=t==null?void 0:t.cycles)!=null?u:"ref",reused:(l=t==null?void 0:t.reused)!=null?l:"inline",external:(d=t==null?void 0:t.external)!=null?d:void 0}}function he(t,e,r={path:[],schemaPath:[]}){var d,s,f;var o;let n=t._zod.def,i=e.seen.get(t);if(i)return i.count++,r.schemaPath.includes(t)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,a);let c=(s=(d=t._zod).toJSONSchema)==null?void 0:s.call(d);if(c)a.schema=c;else{let p={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,a.schema,p);else{let h=a.schema,g=e.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(t,e,h,p)}let m=t._zod.parent;m&&(a.ref||(a.ref=m),he(m,e,p),e.seen.get(m).isParent=!0)}let u=e.metadataRegistry.get(t);return u&&Object.assign(a.schema,u),e.io==="input"&&ot(t)&&(delete a.schema.examples,delete a.schema.default),e.io==="input"&&a.schema._prefault&&((f=(o=a.schema).default)!=null||(o.default=a.schema._prefault)),delete a.schema._prefault,e.seen.get(t).schema}function en(t,e){var a,c,u,l;let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let d of t.seen.entries()){let s=(a=t.metadataRegistry.get(d[0]))==null?void 0:a.id;if(s){let f=o.get(s);if(f&&f!==d[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,d[0])}}let n=d=>{var h,g,y,w,k;let s=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let b=(h=t.external.registry.get(d[0]))==null?void 0:h.id,x=(g=t.external.uri)!=null?g:(V=>V);if(b)return{ref:x(b)};let D=(w=(y=d[1].defId)!=null?y:d[1].schema.id)!=null?w:`schema${t.counter++}`;return d[1].defId=D,{defId:D,ref:`${x("__shared")}#/${s}/${D}`}}if(d[1]===r)return{ref:"#"};let p=`#/${s}/`,m=(k=d[1].schema.id)!=null?k:`__schema${t.counter++}`;return{defId:m,ref:p+m}},i=d=>{if(d[1].schema.$ref)return;let s=d[1],{ref:f,defId:p}=n(d);s.def={...s.schema},p&&(s.defId=p);let m=s.schema;for(let h in m)delete m[h];m.$ref=f};if(t.cycles==="throw")for(let d of t.seen.entries()){let s=d[1];if(s.cycle)throw new Error(`Cycle detected: #/${(c=s.cycle)==null?void 0:c.join("/")}/<root>

Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let d of t.seen.entries()){let s=d[1];if(e===d[0]){i(d);continue}if(t.external){let p=(u=t.external.registry.get(d[0]))==null?void 0:u.id;if(e!==d[0]&&p){i(d);continue}}if((l=t.metadataRegistry.get(d[0]))==null?void 0:l.id){i(d);continue}if(s.cycle){i(d);continue}if(s.count>1&&t.reused==="ref"){i(d);continue}}}function tn(t,e){var a,c,u,l,d;let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{var y,w,k;let f=t.seen.get(s);if(f.ref===null)return;let p=(y=f.def)!=null?y:f.schema,m={...p},h=f.ref;if(f.ref=null,h){o(h);let b=t.seen.get(h),x=b.schema;if(x.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(p.allOf=(w=p.allOf)!=null?w:[],p.allOf.push(x)):Object.assign(p,x),Object.assign(p,m),s._zod.parent===h)for(let V in p)V==="$ref"||V==="allOf"||V in m||delete p[V];if(x.$ref)for(let V in p)V==="$ref"||V==="allOf"||V in b.def&&JSON.stringify(p[V])===JSON.stringify(b.def[V])&&delete p[V]}let g=s._zod.parent;if(g&&g!==h){o(g);let b=t.seen.get(g);if(b!=null&&b.schema.$ref&&(p.$ref=b.schema.$ref,b.def))for(let x in p)x==="$ref"||x==="allOf"||x in b.def&&JSON.stringify(p[x])===JSON.stringify(b.def[x])&&delete p[x]}t.override({zodSchema:s,jsonSchema:p,path:(k=f.path)!=null?k:[]})};for(let s of[...t.seen.entries()].reverse())o(s[0]);let n={};if(t.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":t.target,(a=t.external)!=null&&a.uri){let s=(c=t.external.registry.get(e))==null?void 0:c.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(s)}Object.assign(n,(u=r.def)!=null?u:r.schema);let i=(d=(l=t.external)==null?void 0:l.defs)!=null?d:{};for(let s of t.seen.entries()){let f=s[1];f.def&&f.defId&&(i[f.defId]=f.def)}t.external||Object.keys(i).length>0&&(t.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:Bo(e,"input",t.processors),output:Bo(e,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function ot(t,e){let r=e!=null?e:{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let o=t._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return ot(o.element,r);if(o.type==="set")return ot(o.valueType,r);if(o.type==="lazy")return ot(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return ot(o.innerType,r);if(o.type==="intersection")return ot(o.left,r)||ot(o.right,r);if(o.type==="record"||o.type==="map")return ot(o.keyType,r)||ot(o.valueType,r);if(o.type==="pipe")return ot(o.in,r)||ot(o.out,r);if(o.type==="object"){for(let n in o.shape)if(ot(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(ot(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(ot(n,r))return!0;return!!(o.rest&&ot(o.rest,r))}return!1}var ih=(t,e={})=>r=>{let o=Qr({...r,processors:e});return he(t,o),en(o,t),tn(o,t)},Bo=(t,e,r={})=>o=>{let{libraryOptions:n,target:i}=o!=null?o:{},a=Qr({...n!=null?n:{},target:i,io:e,processors:r});return he(t,a),en(a,t),tn(a,t)};var GT={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ah=(t,e,r,o)=>{var d;let n=r;n.type="string";let{minimum:i,maximum:a,format:c,patterns:u,contentEncoding:l}=t._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),c&&(n.format=(d=GT[c])!=null?d:c,n.format===""&&delete n.format,c==="time"&&delete n.format),l&&(n.contentEncoding=l),u&&u.size>0){let s=[...u];s.length===1?n.pattern=s[0].source:s.length>1&&(n.allOf=[...s.map(f=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},sh=(t,e,r,o)=>{let n=r,{minimum:i,maximum:a,format:c,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:d}=t._zod.bag;typeof c=="string"&&c.includes("int")?n.type="integer":n.type="number",typeof d=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.minimum=d,n.exclusiveMinimum=!0):n.exclusiveMinimum=d),typeof i=="number"&&(n.minimum=i,typeof d=="number"&&e.target!=="draft-04"&&(d>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof l=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l),typeof a=="number"&&(n.maximum=a,typeof l=="number"&&e.target!=="draft-04"&&(l<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof u=="number"&&(n.multipleOf=u)},ch=(t,e,r,o)=>{r.type="boolean"},uh=(t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},lh=(t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},dh=(t,e,r,o)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},fh=(t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},ph=(t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},mh=(t,e,r,o)=>{r.not={}},hh=(t,e,r,o)=>{},gh=(t,e,r,o)=>{},vh=(t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},_h=(t,e,r,o)=>{let n=t._zod.def,i=ca(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},yh=(t,e,r,o)=>{let n=t._zod.def,i=[];for(let a of n.values)if(a===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},$h=(t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},bh=(t,e,r,o)=>{let n=r,i=t._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},xh=(t,e,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:c,mime:u}=t._zod.bag;a!==void 0&&(i.minLength=a),c!==void 0&&(i.maxLength=c),u?u.length===1?(i.contentMediaType=u[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(n,i)},wh=(t,e,r,o)=>{r.type="boolean"},kh=(t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Sh=(t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},zh=(t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Ih=(t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Ph=(t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Th=(t,e,r,o)=>{let n=r,i=t._zod.def,{minimum:a,maximum:c}=t._zod.bag;typeof a=="number"&&(n.minItems=a),typeof c=="number"&&(n.maxItems=c),n.type="array",n.items=he(i.element,e,{...o,path:[...o.path,"items"]})},Eh=(t,e,r,o)=>{var l;let n=r,i=t._zod.def;n.type="object",n.properties={};let a=i.shape;for(let d in a)n.properties[d]=he(a[d],e,{...o,path:[...o.path,"properties",d]});let c=new Set(Object.keys(a)),u=new Set([...c].filter(d=>{let s=i.shape[d]._zod;return e.io==="input"?s.optin===void 0:s.optout===void 0}));u.size>0&&(n.required=Array.from(u)),((l=i.catchall)==null?void 0:l._zod.def.type)==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=he(i.catchall,e,{...o,path:[...o.path,"additionalProperties"]})):e.io==="output"&&(n.additionalProperties=!1)},nd=(t,e,r,o)=>{let n=t._zod.def,i=n.inclusive===!1,a=n.options.map((c,u)=>he(c,e,{...o,path:[...o.path,i?"oneOf":"anyOf",u]}));i?r.oneOf=a:r.anyOf=a},Oh=(t,e,r,o)=>{let n=t._zod.def,i=he(n.left,e,{...o,path:[...o.path,"allOf",0]}),a=he(n.right,e,{...o,path:[...o.path,"allOf",1]}),c=l=>"allOf"in l&&Object.keys(l).length===1,u=[...c(i)?i.allOf:[i],...c(a)?a.allOf:[a]];r.allOf=u},jh=(t,e,r,o)=>{let n=r,i=t._zod.def;n.type="array";let a=e.target==="draft-2020-12"?"prefixItems":"items",c=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",u=i.items.map((f,p)=>he(f,e,{...o,path:[...o.path,a,p]})),l=i.rest?he(i.rest,e,{...o,path:[...o.path,c,...e.target==="openapi-3.0"?[i.items.length]:[]]}):null;e.target==="draft-2020-12"?(n.prefixItems=u,l&&(n.items=l)):e.target==="openapi-3.0"?(n.items={anyOf:u},l&&n.items.anyOf.push(l),n.minItems=u.length,l||(n.maxItems=u.length)):(n.items=u,l&&(n.additionalItems=l));let{minimum:d,maximum:s}=t._zod.bag;typeof d=="number"&&(n.minItems=d),typeof s=="number"&&(n.maxItems=s)},Rh=(t,e,r,o)=>{let n=r,i=t._zod.def;n.type="object";let a=i.keyType,c=a._zod.bag,u=c==null?void 0:c.patterns;if(i.mode==="loose"&&u&&u.size>0){let d=he(i.valueType,e,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let s of u)n.patternProperties[s.source]=d}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(n.propertyNames=he(i.keyType,e,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=he(i.valueType,e,{...o,path:[...o.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(s=>typeof s=="string"||typeof s=="number");d.length>0&&(n.required=d)}},Nh=(t,e,r,o)=>{let n=t._zod.def,i=he(n.innerType,e,o),a=e.seen.get(t);e.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},Ch=(t,e,r,o)=>{let n=t._zod.def;he(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},Dh=(t,e,r,o)=>{let n=t._zod.def;he(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Uh=(t,e,r,o)=>{let n=t._zod.def;he(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Ah=(t,e,r,o)=>{let n=t._zod.def;he(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Zh=(t,e,r,o)=>{let n=t._zod.def,i=e.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;he(i,e,o);let a=e.seen.get(t);a.ref=i},Mh=(t,e,r,o)=>{let n=t._zod.def;he(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,r.readOnly=!0},qh=(t,e,r,o)=>{let n=t._zod.def;he(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},od=(t,e,r,o)=>{let n=t._zod.def;he(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},Lh=(t,e,r,o)=>{let n=t._zod.innerType;he(n,e,o);let i=e.seen.get(t);i.ref=n},rd={string:ah,number:sh,boolean:ch,bigint:uh,symbol:lh,null:dh,undefined:fh,void:ph,never:mh,any:hh,unknown:gh,date:vh,enum:_h,literal:yh,nan:$h,template_literal:bh,file:xh,success:wh,custom:kh,function:Sh,transform:zh,map:Ih,set:Ph,array:Th,object:Eh,union:nd,intersection:Oh,tuple:jh,record:Rh,nullable:Nh,nonoptional:Ch,default:Dh,prefault:Uh,catch:Ah,pipe:Zh,readonly:Mh,promise:qh,optional:od,lazy:Lh};function Cn(t,e){if("_idmap"in t){let o=t,n=Qr({...e,processors:rd}),i={};for(let u of o._idmap.entries()){let[l,d]=u;he(d,n)}let a={},c={registry:o,uri:e==null?void 0:e.uri,defs:i};n.external=c;for(let u of o._idmap.entries()){let[l,d]=u;en(n,d),a[l]=tn(n,d)}if(Object.keys(i).length>0){let u=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:i}}return{schemas:a}}let r=Qr({...e,processors:rd});return he(t,r),en(r,t),tn(r,t)}var id=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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){var o;let r=(o=e==null?void 0:e.target)!=null?o:"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Qr({processors:rd,target:r,...(e==null?void 0:e.metadata)&&{metadata:e.metadata},...(e==null?void 0:e.unrepresentable)&&{unrepresentable:e.unrepresentable},...(e==null?void 0:e.override)&&{override:e.override},...(e==null?void 0:e.io)&&{io:e.io}})}process(e,r={path:[],schemaPath:[]}){return he(e,this.ctx,r)}emit(e,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),en(this.ctx,e);let o=tn(this.ctx,e),{"~standard":n,...i}=o;return i}};var Vh={};var is=_("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");W.init(t,e),t.def=e,t.type=e.type,t.parse=(r,o)=>Pn(t,r,o,{callee:t.parse}),t.safeParse=(r,o)=>qr(t,r,o),t.parseAsync=async(r,o)=>Tn(t,r,o,{callee:t.parseAsync}),t.safeParseAsync=async(r,o)=>En(t,r,o),t.check=(...r)=>{var o;return t.clone({...e,checks:[...(o=e.checks)!=null?o:[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0})},t.with=t.check,t.clone=(r,o)=>Ue(t,r,o),t.brand=()=>t,t.register=((r,o)=>(r.add(t,o),t)),t.apply=r=>r(t)}),Fh=_("ZodMiniString",(t,e)=>{_r.init(t,e),is.init(t,e)});var as=_("ZodMiniStringFormat",(t,e)=>{me.init(t,e),Fh.init(t,e)});var $x=_("ZodMiniNumber",(t,e)=>{Co.init(t,e),is.init(t,e)});var bx=_("ZodMiniBoolean",(t,e)=>{jn.init(t,e),is.init(t,e)});var xx=_("ZodMiniBigInt",(t,e)=>{Do.init(t,e),is.init(t,e)});var wx=_("ZodMiniDate",(t,e)=>{wa.init(t,e),is.init(t,e)});var Gh={};_t(Gh,{ZodMiniISODate:()=>Hh,ZodMiniISODateTime:()=>Jh,ZodMiniISODuration:()=>Bh,ZodMiniISOTime:()=>Wh,date:()=>QT,datetime:()=>YT,duration:()=>tE,time:()=>eE});var Jh=_("ZodMiniISODateTime",(t,e)=>{ya.init(t,e),as.init(t,e)});function YT(t){return Xa(Jh,t)}var Hh=_("ZodMiniISODate",(t,e)=>{$a.init(t,e),as.init(t,e)});function QT(t){return Ya(Hh,t)}var Wh=_("ZodMiniISOTime",(t,e)=>{ba.init(t,e),as.init(t,e)});function eE(t){return Qa(Wh,t)}var Bh=_("ZodMiniISODuration",(t,e)=>{xa.init(t,e),as.init(t,e)});function tE(t){return es(Bh,t)}var Kh={};_t(Kh,{bigint:()=>iE,boolean:()=>oE,date:()=>aE,number:()=>nE,string:()=>rE});function rE(t){return Ta(Fh,t)}function nE(t){return ts($x,t)}function oE(t){return rs(bx,t)}function iE(t){return ns(xx,t)}function aE(t){return os(wx,t)}function rn(t){return!!t._zod}function it(t,e){return rn(t)?qr(t,e):t.safeParse(e)}function Go(t){var r,o;if(!t)return;let e;if(rn(t)?e=(o=(r=t._zod)==null?void 0:r.def)==null?void 0:o.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function zx(t){var n;if(rn(t)){let a=(n=t._zod)==null?void 0:n.def;if(a){if(a.value!==void 0)return a.value;if(Array.isArray(a.values)&&a.values.length>0)return a.values[0]}}let r=t._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 o=t.value;if(o!==void 0)return o}var Ms={};_t(Ms,{$brand:()=>zo,$input:()=>Pa,$output:()=>Ia,NEVER:()=>kn,TimePrecision:()=>Ka,ZodAny:()=>wd,ZodArray:()=>Id,ZodBase64:()=>Is,ZodBase64URL:()=>Ps,ZodBigInt:()=>qn,ZodBigIntFormat:()=>Os,ZodBoolean:()=>Mn,ZodCIDRv4:()=>Ss,ZodCIDRv6:()=>zs,ZodCUID:()=>_s,ZodCUID2:()=>ys,ZodCatch:()=>Wd,ZodCodec:()=>As,ZodCustom:()=>ii,ZodCustomStringFormat:()=>An,ZodDate:()=>ei,ZodDefault:()=>qd,ZodDiscriminatedUnion:()=>Td,ZodE164:()=>Ts,ZodEmail:()=>ms,ZodEmoji:()=>gs,ZodEnum:()=>Dn,ZodError:()=>Px,ZodExactOptional:()=>Ad,ZodFile:()=>Dd,ZodFirstPartyTypeKind:()=>af,ZodFunction:()=>rf,ZodGUID:()=>Ko,ZodIPv4:()=>ws,ZodIPv6:()=>ks,ZodISODate:()=>cs,ZodISODateTime:()=>ss,ZodISODuration:()=>ls,ZodISOTime:()=>us,ZodIntersection:()=>Ed,ZodIssueCode:()=>sf,ZodJWT:()=>Es,ZodKSUID:()=>xs,ZodLazy:()=>Qd,ZodLiteral:()=>Cd,ZodMAC:()=>yd,ZodMap:()=>Rd,ZodNaN:()=>Gd,ZodNanoID:()=>vs,ZodNever:()=>Sd,ZodNonOptional:()=>Ds,ZodNull:()=>xd,ZodNullable:()=>Md,ZodNumber:()=>Zn,ZodNumberFormat:()=>nn,ZodObject:()=>ti,ZodOptional:()=>Cs,ZodPipe:()=>Us,ZodPrefault:()=>Vd,ZodPromise:()=>tf,ZodReadonly:()=>Kd,ZodRealError:()=>at,ZodRecord:()=>oi,ZodSet:()=>Nd,ZodString:()=>Un,ZodStringFormat:()=>ve,ZodSuccess:()=>Hd,ZodSymbol:()=>$d,ZodTemplateLiteral:()=>Yd,ZodTransform:()=>Ud,ZodTuple:()=>Od,ZodType:()=>K,ZodULID:()=>$s,ZodURL:()=>Qo,ZodUUID:()=>Vt,ZodUndefined:()=>bd,ZodUnion:()=>ri,ZodUnknown:()=>kd,ZodVoid:()=>zd,ZodXID:()=>bs,ZodXor:()=>Pd,_ZodString:()=>ps,_default:()=>Ld,_function:()=>ev,any:()=>js,array:()=>j,base64:()=>$g,base64url:()=>bg,bigint:()=>jg,boolean:()=>pe,catch:()=>Bd,check:()=>tv,cidrv4:()=>_g,cidrv6:()=>yg,clone:()=>Ue,codec:()=>Xg,coerce:()=>Fn,config:()=>Pe,core:()=>Xe,cuid:()=>lg,cuid2:()=>dg,custom:()=>Zs,date:()=>Ag,decode:()=>fd,decodeAsync:()=>md,describe:()=>rv,discriminatedUnion:()=>ni,e164:()=>xg,email:()=>tg,emoji:()=>cg,encode:()=>dd,encodeAsync:()=>pd,endsWith:()=>Wr,enum:()=>qe,exactOptional:()=>Zd,file:()=>Wg,flattenError:()=>zn,float32:()=>Pg,float64:()=>Tg,formatError:()=>In,fromJSONSchema:()=>sv,function:()=>ev,getErrorMap:()=>Ex,globalRegistry:()=>Ae,gt:()=>Et,gte:()=>Me,guid:()=>rg,hash:()=>Ig,hex:()=>zg,hostname:()=>Sg,httpUrl:()=>sg,includes:()=>Jr,instanceof:()=>ov,int:()=>fs,int32:()=>Eg,int64:()=>Rg,intersection:()=>Vn,ipv4:()=>hg,ipv6:()=>vg,iso:()=>ir,json:()=>av,jwt:()=>wg,keyof:()=>Zg,ksuid:()=>mg,lazy:()=>ef,length:()=>br,literal:()=>Z,locales:()=>rr,looseObject:()=>Re,looseRecord:()=>Vg,lowercase:()=>Vr,lt:()=>Tt,lte:()=>Ke,mac:()=>gg,map:()=>Fg,maxLength:()=>$r,maxSize:()=>or,meta:()=>nv,mime:()=>Br,minLength:()=>Lt,minSize:()=>Ot,multipleOf:()=>nr,nan:()=>Kg,nanoid:()=>ug,nativeEnum:()=>Hg,negative:()=>Fo,never:()=>Rs,nonnegative:()=>Ho,nonoptional:()=>Jd,nonpositive:()=>Jo,normalize:()=>Gr,null:()=>Ln,nullable:()=>Xo,nullish:()=>Bg,number:()=>ae,object:()=>R,optional:()=>xe,overwrite:()=>xt,parse:()=>sd,parseAsync:()=>cd,partialRecord:()=>Lg,pipe:()=>Yo,positive:()=>Vo,prefault:()=>Fd,preprocess:()=>ai,prettifyError:()=>ha,promise:()=>Qg,property:()=>Wo,readonly:()=>Xd,record:()=>$e,refine:()=>nf,regex:()=>Lr,regexes:()=>Ge,registry:()=>Mo,safeDecode:()=>gd,safeDecodeAsync:()=>_d,safeEncode:()=>hd,safeEncodeAsync:()=>vd,safeParse:()=>ud,safeParseAsync:()=>ld,set:()=>Jg,setErrorMap:()=>Tx,size:()=>yr,slugify:()=>Rn,startsWith:()=>Hr,strictObject:()=>Mg,string:()=>v,stringFormat:()=>kg,stringbool:()=>iv,success:()=>Gg,superRefine:()=>of,symbol:()=>Cg,templateLiteral:()=>Yg,toJSONSchema:()=>Cn,toLowerCase:()=>Xr,toUpperCase:()=>Yr,transform:()=>Ns,treeifyError:()=>ma,trim:()=>Kr,tuple:()=>jd,uint32:()=>Og,uint64:()=>Ng,ulid:()=>fg,undefined:()=>Dg,union:()=>ge,unknown:()=>_e,uppercase:()=>Fr,url:()=>hs,util:()=>S,uuid:()=>ng,uuidv4:()=>og,uuidv6:()=>ig,uuidv7:()=>ag,void:()=>Ug,xid:()=>pg,xor:()=>qg});var ds={};_t(ds,{ZodAny:()=>wd,ZodArray:()=>Id,ZodBase64:()=>Is,ZodBase64URL:()=>Ps,ZodBigInt:()=>qn,ZodBigIntFormat:()=>Os,ZodBoolean:()=>Mn,ZodCIDRv4:()=>Ss,ZodCIDRv6:()=>zs,ZodCUID:()=>_s,ZodCUID2:()=>ys,ZodCatch:()=>Wd,ZodCodec:()=>As,ZodCustom:()=>ii,ZodCustomStringFormat:()=>An,ZodDate:()=>ei,ZodDefault:()=>qd,ZodDiscriminatedUnion:()=>Td,ZodE164:()=>Ts,ZodEmail:()=>ms,ZodEmoji:()=>gs,ZodEnum:()=>Dn,ZodExactOptional:()=>Ad,ZodFile:()=>Dd,ZodFunction:()=>rf,ZodGUID:()=>Ko,ZodIPv4:()=>ws,ZodIPv6:()=>ks,ZodIntersection:()=>Ed,ZodJWT:()=>Es,ZodKSUID:()=>xs,ZodLazy:()=>Qd,ZodLiteral:()=>Cd,ZodMAC:()=>yd,ZodMap:()=>Rd,ZodNaN:()=>Gd,ZodNanoID:()=>vs,ZodNever:()=>Sd,ZodNonOptional:()=>Ds,ZodNull:()=>xd,ZodNullable:()=>Md,ZodNumber:()=>Zn,ZodNumberFormat:()=>nn,ZodObject:()=>ti,ZodOptional:()=>Cs,ZodPipe:()=>Us,ZodPrefault:()=>Vd,ZodPromise:()=>tf,ZodReadonly:()=>Kd,ZodRecord:()=>oi,ZodSet:()=>Nd,ZodString:()=>Un,ZodStringFormat:()=>ve,ZodSuccess:()=>Hd,ZodSymbol:()=>$d,ZodTemplateLiteral:()=>Yd,ZodTransform:()=>Ud,ZodTuple:()=>Od,ZodType:()=>K,ZodULID:()=>$s,ZodURL:()=>Qo,ZodUUID:()=>Vt,ZodUndefined:()=>bd,ZodUnion:()=>ri,ZodUnknown:()=>kd,ZodVoid:()=>zd,ZodXID:()=>bs,ZodXor:()=>Pd,_ZodString:()=>ps,_default:()=>Ld,_function:()=>ev,any:()=>js,array:()=>j,base64:()=>$g,base64url:()=>bg,bigint:()=>jg,boolean:()=>pe,catch:()=>Bd,check:()=>tv,cidrv4:()=>_g,cidrv6:()=>yg,codec:()=>Xg,cuid:()=>lg,cuid2:()=>dg,custom:()=>Zs,date:()=>Ag,describe:()=>rv,discriminatedUnion:()=>ni,e164:()=>xg,email:()=>tg,emoji:()=>cg,enum:()=>qe,exactOptional:()=>Zd,file:()=>Wg,float32:()=>Pg,float64:()=>Tg,function:()=>ev,guid:()=>rg,hash:()=>Ig,hex:()=>zg,hostname:()=>Sg,httpUrl:()=>sg,instanceof:()=>ov,int:()=>fs,int32:()=>Eg,int64:()=>Rg,intersection:()=>Vn,ipv4:()=>hg,ipv6:()=>vg,json:()=>av,jwt:()=>wg,keyof:()=>Zg,ksuid:()=>mg,lazy:()=>ef,literal:()=>Z,looseObject:()=>Re,looseRecord:()=>Vg,mac:()=>gg,map:()=>Fg,meta:()=>nv,nan:()=>Kg,nanoid:()=>ug,nativeEnum:()=>Hg,never:()=>Rs,nonoptional:()=>Jd,null:()=>Ln,nullable:()=>Xo,nullish:()=>Bg,number:()=>ae,object:()=>R,optional:()=>xe,partialRecord:()=>Lg,pipe:()=>Yo,prefault:()=>Fd,preprocess:()=>ai,promise:()=>Qg,readonly:()=>Xd,record:()=>$e,refine:()=>nf,set:()=>Jg,strictObject:()=>Mg,string:()=>v,stringFormat:()=>kg,stringbool:()=>iv,success:()=>Gg,superRefine:()=>of,symbol:()=>Cg,templateLiteral:()=>Yg,transform:()=>Ns,tuple:()=>jd,uint32:()=>Og,uint64:()=>Ng,ulid:()=>fg,undefined:()=>Dg,union:()=>ge,unknown:()=>_e,url:()=>hs,uuid:()=>ng,uuidv4:()=>og,uuidv6:()=>ig,uuidv7:()=>ag,void:()=>Ug,xid:()=>pg,xor:()=>qg});var ad={};_t(ad,{endsWith:()=>Wr,gt:()=>Et,gte:()=>Me,includes:()=>Jr,length:()=>br,lowercase:()=>Vr,lt:()=>Tt,lte:()=>Ke,maxLength:()=>$r,maxSize:()=>or,mime:()=>Br,minLength:()=>Lt,minSize:()=>Ot,multipleOf:()=>nr,negative:()=>Fo,nonnegative:()=>Ho,nonpositive:()=>Jo,normalize:()=>Gr,overwrite:()=>xt,positive:()=>Vo,property:()=>Wo,regex:()=>Lr,size:()=>yr,slugify:()=>Rn,startsWith:()=>Hr,toLowerCase:()=>Xr,toUpperCase:()=>Yr,trim:()=>Kr,uppercase:()=>Fr});var ir={};_t(ir,{ZodISODate:()=>cs,ZodISODateTime:()=>ss,ZodISODuration:()=>ls,ZodISOTime:()=>us,date:()=>Yh,datetime:()=>Xh,duration:()=>eg,time:()=>Qh});var ss=_("ZodISODateTime",(t,e)=>{ya.init(t,e),ve.init(t,e)});function Xh(t){return Xa(ss,t)}var cs=_("ZodISODate",(t,e)=>{$a.init(t,e),ve.init(t,e)});function Yh(t){return Ya(cs,t)}var us=_("ZodISOTime",(t,e)=>{ba.init(t,e),ve.init(t,e)});function Qh(t){return Qa(us,t)}var ls=_("ZodISODuration",(t,e)=>{xa.init(t,e),ve.init(t,e)});function eg(t){return es(ls,t)}var Ix=(t,e)=>{pa.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>In(t,r)},flatten:{value:r=>zn(t,r)},addIssue:{value:r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,Io,2)}},addIssues:{value:r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,Io,2)}},isEmpty:{get(){return t.issues.length===0}}})},Px=_("ZodError",Ix),at=_("ZodError",Ix,{Parent:Error});var sd=Eo(at),cd=Oo(at),ud=jo(at),ld=Ro(at),dd=iu(at),fd=au(at),pd=su(at),md=cu(at),hd=uu(at),gd=lu(at),vd=du(at),_d=fu(at);var K=_("ZodType",(t,e)=>(W.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:Bo(t,"input"),output:Bo(t,"output")}}),t.toJSONSchema=ih(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>{var o;return t.clone(S.mergeDefs(e,{checks:[...(o=e.checks)!=null?o:[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},t.with=t.check,t.clone=(r,o)=>Ue(t,r,o),t.brand=()=>t,t.register=((r,o)=>(r.add(t,o),t)),t.parse=(r,o)=>sd(t,r,o,{callee:t.parse}),t.safeParse=(r,o)=>ud(t,r,o),t.parseAsync=async(r,o)=>cd(t,r,o,{callee:t.parseAsync}),t.safeParseAsync=async(r,o)=>ld(t,r,o),t.spa=t.safeParseAsync,t.encode=(r,o)=>dd(t,r,o),t.decode=(r,o)=>fd(t,r,o),t.encodeAsync=async(r,o)=>pd(t,r,o),t.decodeAsync=async(r,o)=>md(t,r,o),t.safeEncode=(r,o)=>hd(t,r,o),t.safeDecode=(r,o)=>gd(t,r,o),t.safeEncodeAsync=async(r,o)=>vd(t,r,o),t.safeDecodeAsync=async(r,o)=>_d(t,r,o),t.refine=(r,o)=>t.check(nf(r,o)),t.superRefine=r=>t.check(of(r)),t.overwrite=r=>t.check(xt(r)),t.optional=()=>xe(t),t.exactOptional=()=>Zd(t),t.nullable=()=>Xo(t),t.nullish=()=>xe(Xo(t)),t.nonoptional=r=>Jd(t,r),t.array=()=>j(t),t.or=r=>ge([t,r]),t.and=r=>Vn(t,r),t.transform=r=>Yo(t,Ns(r)),t.default=r=>Ld(t,r),t.prefault=r=>Fd(t,r),t.catch=r=>Bd(t,r),t.pipe=r=>Yo(t,r),t.readonly=()=>Xd(t),t.describe=r=>{let o=t.clone();return Ae.add(o,{description:r}),o},Object.defineProperty(t,"description",{get(){var r;return(r=Ae.get(t))==null?void 0:r.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return Ae.get(t);let o=t.clone();return Ae.add(o,r[0]),o},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t.apply=r=>r(t),t)),ps=_("_ZodString",(t,e)=>{var o,n,i;_r.init(t,e),K.init(t,e),t._zod.processJSONSchema=(a,c,u)=>ah(t,a,c,u);let r=t._zod.bag;t.format=(o=r.format)!=null?o:null,t.minLength=(n=r.minimum)!=null?n:null,t.maxLength=(i=r.maximum)!=null?i:null,t.regex=(...a)=>t.check(Lr(...a)),t.includes=(...a)=>t.check(Jr(...a)),t.startsWith=(...a)=>t.check(Hr(...a)),t.endsWith=(...a)=>t.check(Wr(...a)),t.min=(...a)=>t.check(Lt(...a)),t.max=(...a)=>t.check($r(...a)),t.length=(...a)=>t.check(br(...a)),t.nonempty=(...a)=>t.check(Lt(1,...a)),t.lowercase=a=>t.check(Vr(a)),t.uppercase=a=>t.check(Fr(a)),t.trim=()=>t.check(Kr()),t.normalize=(...a)=>t.check(Gr(...a)),t.toLowerCase=()=>t.check(Xr()),t.toUpperCase=()=>t.check(Yr()),t.slugify=()=>t.check(Rn())}),Un=_("ZodString",(t,e)=>{_r.init(t,e),ps.init(t,e),t.email=r=>t.check(Ea(ms,r)),t.url=r=>t.check(Lo(Qo,r)),t.jwt=r=>t.check(Ga(Es,r)),t.emoji=r=>t.check(Ca(gs,r)),t.guid=r=>t.check(qo(Ko,r)),t.uuid=r=>t.check(Oa(Vt,r)),t.uuidv4=r=>t.check(ja(Vt,r)),t.uuidv6=r=>t.check(Ra(Vt,r)),t.uuidv7=r=>t.check(Na(Vt,r)),t.nanoid=r=>t.check(Da(vs,r)),t.guid=r=>t.check(qo(Ko,r)),t.cuid=r=>t.check(Ua(_s,r)),t.cuid2=r=>t.check(Aa(ys,r)),t.ulid=r=>t.check(Za($s,r)),t.base64=r=>t.check(Ha(Is,r)),t.base64url=r=>t.check(Wa(Ps,r)),t.xid=r=>t.check(Ma(bs,r)),t.ksuid=r=>t.check(qa(xs,r)),t.ipv4=r=>t.check(La(ws,r)),t.ipv6=r=>t.check(Va(ks,r)),t.cidrv4=r=>t.check(Fa(Ss,r)),t.cidrv6=r=>t.check(Ja(zs,r)),t.e164=r=>t.check(Ba(Ts,r)),t.datetime=r=>t.check(Xh(r)),t.date=r=>t.check(Yh(r)),t.time=r=>t.check(Qh(r)),t.duration=r=>t.check(eg(r))});function v(t){return Pl(Un,t)}var ve=_("ZodStringFormat",(t,e)=>{me.init(t,e),ps.init(t,e)}),ms=_("ZodEmail",(t,e)=>{ku.init(t,e),ve.init(t,e)});function tg(t){return Ea(ms,t)}var Ko=_("ZodGUID",(t,e)=>{xu.init(t,e),ve.init(t,e)});function rg(t){return qo(Ko,t)}var Vt=_("ZodUUID",(t,e)=>{wu.init(t,e),ve.init(t,e)});function ng(t){return Oa(Vt,t)}function og(t){return ja(Vt,t)}function ig(t){return Ra(Vt,t)}function ag(t){return Na(Vt,t)}var Qo=_("ZodURL",(t,e)=>{Su.init(t,e),ve.init(t,e)});function hs(t){return Lo(Qo,t)}function sg(t){return Lo(Qo,{protocol:/^https?$/,hostname:Ge.domain,...S.normalizeParams(t)})}var gs=_("ZodEmoji",(t,e)=>{zu.init(t,e),ve.init(t,e)});function cg(t){return Ca(gs,t)}var vs=_("ZodNanoID",(t,e)=>{Iu.init(t,e),ve.init(t,e)});function ug(t){return Da(vs,t)}var _s=_("ZodCUID",(t,e)=>{Pu.init(t,e),ve.init(t,e)});function lg(t){return Ua(_s,t)}var ys=_("ZodCUID2",(t,e)=>{Tu.init(t,e),ve.init(t,e)});function dg(t){return Aa(ys,t)}var $s=_("ZodULID",(t,e)=>{Eu.init(t,e),ve.init(t,e)});function fg(t){return Za($s,t)}var bs=_("ZodXID",(t,e)=>{Ou.init(t,e),ve.init(t,e)});function pg(t){return Ma(bs,t)}var xs=_("ZodKSUID",(t,e)=>{ju.init(t,e),ve.init(t,e)});function mg(t){return qa(xs,t)}var ws=_("ZodIPv4",(t,e)=>{Ru.init(t,e),ve.init(t,e)});function hg(t){return La(ws,t)}var yd=_("ZodMAC",(t,e)=>{Cu.init(t,e),ve.init(t,e)});function gg(t){return Tl(yd,t)}var ks=_("ZodIPv6",(t,e)=>{Nu.init(t,e),ve.init(t,e)});function vg(t){return Va(ks,t)}var Ss=_("ZodCIDRv4",(t,e)=>{Du.init(t,e),ve.init(t,e)});function _g(t){return Fa(Ss,t)}var zs=_("ZodCIDRv6",(t,e)=>{Uu.init(t,e),ve.init(t,e)});function yg(t){return Ja(zs,t)}var Is=_("ZodBase64",(t,e)=>{Au.init(t,e),ve.init(t,e)});function $g(t){return Ha(Is,t)}var Ps=_("ZodBase64URL",(t,e)=>{Zu.init(t,e),ve.init(t,e)});function bg(t){return Wa(Ps,t)}var Ts=_("ZodE164",(t,e)=>{Mu.init(t,e),ve.init(t,e)});function xg(t){return Ba(Ts,t)}var Es=_("ZodJWT",(t,e)=>{qu.init(t,e),ve.init(t,e)});function wg(t){return Ga(Es,t)}var An=_("ZodCustomStringFormat",(t,e)=>{Lu.init(t,e),ve.init(t,e)});function kg(t,e,r={}){return Nn(An,t,e,r)}function Sg(t){return Nn(An,"hostname",Ge.hostname,t)}function zg(t){return Nn(An,"hex",Ge.hex,t)}function Ig(t,e){var i;let r=(i=e==null?void 0:e.enc)!=null?i:"hex",o=`${t}_${r}`,n=Ge[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Nn(An,o,n,e)}var Zn=_("ZodNumber",(t,e)=>{var o,n,i,a,c,u,l,d,s;Co.init(t,e),K.init(t,e),t._zod.processJSONSchema=(f,p,m)=>sh(t,f,p,m),t.gt=(f,p)=>t.check(Et(f,p)),t.gte=(f,p)=>t.check(Me(f,p)),t.min=(f,p)=>t.check(Me(f,p)),t.lt=(f,p)=>t.check(Tt(f,p)),t.lte=(f,p)=>t.check(Ke(f,p)),t.max=(f,p)=>t.check(Ke(f,p)),t.int=f=>t.check(fs(f)),t.safe=f=>t.check(fs(f)),t.positive=f=>t.check(Et(0,f)),t.nonnegative=f=>t.check(Me(0,f)),t.negative=f=>t.check(Tt(0,f)),t.nonpositive=f=>t.check(Ke(0,f)),t.multipleOf=(f,p)=>t.check(nr(f,p)),t.step=(f,p)=>t.check(nr(f,p)),t.finite=()=>t;let r=t._zod.bag;t.minValue=(i=Math.max((o=r.minimum)!=null?o:Number.NEGATIVE_INFINITY,(n=r.exclusiveMinimum)!=null?n:Number.NEGATIVE_INFINITY))!=null?i:null,t.maxValue=(u=Math.min((a=r.maximum)!=null?a:Number.POSITIVE_INFINITY,(c=r.exclusiveMaximum)!=null?c:Number.POSITIVE_INFINITY))!=null?u:null,t.isInt=((l=r.format)!=null?l:"").includes("int")||Number.isSafeInteger((d=r.multipleOf)!=null?d:.5),t.isFinite=!0,t.format=(s=r.format)!=null?s:null});function ae(t){return El(Zn,t)}var nn=_("ZodNumberFormat",(t,e)=>{Vu.init(t,e),Zn.init(t,e)});function fs(t){return Ol(nn,t)}function Pg(t){return jl(nn,t)}function Tg(t){return Rl(nn,t)}function Eg(t){return Nl(nn,t)}function Og(t){return Cl(nn,t)}var Mn=_("ZodBoolean",(t,e)=>{jn.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>ch(t,r,o,n)});function pe(t){return Dl(Mn,t)}var qn=_("ZodBigInt",(t,e)=>{var o,n,i;Do.init(t,e),K.init(t,e),t._zod.processJSONSchema=(a,c,u)=>uh(t,a,c,u),t.gte=(a,c)=>t.check(Me(a,c)),t.min=(a,c)=>t.check(Me(a,c)),t.gt=(a,c)=>t.check(Et(a,c)),t.gte=(a,c)=>t.check(Me(a,c)),t.min=(a,c)=>t.check(Me(a,c)),t.lt=(a,c)=>t.check(Tt(a,c)),t.lte=(a,c)=>t.check(Ke(a,c)),t.max=(a,c)=>t.check(Ke(a,c)),t.positive=a=>t.check(Et(BigInt(0),a)),t.negative=a=>t.check(Tt(BigInt(0),a)),t.nonpositive=a=>t.check(Ke(BigInt(0),a)),t.nonnegative=a=>t.check(Me(BigInt(0),a)),t.multipleOf=(a,c)=>t.check(nr(a,c));let r=t._zod.bag;t.minValue=(o=r.minimum)!=null?o:null,t.maxValue=(n=r.maximum)!=null?n:null,t.format=(i=r.format)!=null?i:null});function jg(t){return Ul(qn,t)}var Os=_("ZodBigIntFormat",(t,e)=>{Fu.init(t,e),qn.init(t,e)});function Rg(t){return Al(Os,t)}function Ng(t){return Zl(Os,t)}var $d=_("ZodSymbol",(t,e)=>{Ju.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>lh(t,r,o,n)});function Cg(t){return Ml($d,t)}var bd=_("ZodUndefined",(t,e)=>{Hu.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>fh(t,r,o,n)});function Dg(t){return ql(bd,t)}var xd=_("ZodNull",(t,e)=>{Wu.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>dh(t,r,o,n)});function Ln(t){return Ll(xd,t)}var wd=_("ZodAny",(t,e)=>{Bu.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>hh(t,r,o,n)});function js(){return Vl(wd)}var kd=_("ZodUnknown",(t,e)=>{Gu.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>gh(t,r,o,n)});function _e(){return Fl(kd)}var Sd=_("ZodNever",(t,e)=>{Ku.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>mh(t,r,o,n)});function Rs(t){return Jl(Sd,t)}var zd=_("ZodVoid",(t,e)=>{Xu.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>ph(t,r,o,n)});function Ug(t){return Hl(zd,t)}var ei=_("ZodDate",(t,e)=>{wa.init(t,e),K.init(t,e),t._zod.processJSONSchema=(o,n,i)=>vh(t,o,n,i),t.min=(o,n)=>t.check(Me(o,n)),t.max=(o,n)=>t.check(Ke(o,n));let r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});function Ag(t){return Wl(ei,t)}var Id=_("ZodArray",(t,e)=>{Yu.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Th(t,r,o,n),t.element=e.element,t.min=(r,o)=>t.check(Lt(r,o)),t.nonempty=r=>t.check(Lt(1,r)),t.max=(r,o)=>t.check($r(r,o)),t.length=(r,o)=>t.check(br(r,o)),t.unwrap=()=>t.element});function j(t,e){return oh(Id,t,e)}function Zg(t){let e=t._zod.def.shape;return qe(Object.keys(e))}var ti=_("ZodObject",(t,e)=>{nh.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Eh(t,r,o,n),S.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>qe(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:_e()}),t.loose=()=>t.clone({...t._zod.def,catchall:_e()}),t.strict=()=>t.clone({...t._zod.def,catchall:Rs()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>S.extend(t,r),t.safeExtend=r=>S.safeExtend(t,r),t.merge=r=>S.merge(t,r),t.pick=r=>S.pick(t,r),t.omit=r=>S.omit(t,r),t.partial=(...r)=>S.partial(Cs,t,r[0]),t.required=(...r)=>S.required(Ds,t,r[0])});function R(t,e){let r={type:"object",shape:t!=null?t:{},...S.normalizeParams(e)};return new ti(r)}function Mg(t,e){return new ti({type:"object",shape:t,catchall:Rs(),...S.normalizeParams(e)})}function Re(t,e){return new ti({type:"object",shape:t,catchall:_e(),...S.normalizeParams(e)})}var ri=_("ZodUnion",(t,e)=>{Uo.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>nd(t,r,o,n),t.options=e.options});function ge(t,e){return new ri({type:"union",options:t,...S.normalizeParams(e)})}var Pd=_("ZodXor",(t,e)=>{ri.init(t,e),Qu.init(t,e),t._zod.processJSONSchema=(r,o,n)=>nd(t,r,o,n),t.options=e.options});function qg(t,e){return new Pd({type:"union",options:t,inclusive:!1,...S.normalizeParams(e)})}var Td=_("ZodDiscriminatedUnion",(t,e)=>{ri.init(t,e),el.init(t,e)});function ni(t,e,r){return new Td({type:"union",options:e,discriminator:t,...S.normalizeParams(r)})}var Ed=_("ZodIntersection",(t,e)=>{tl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Oh(t,r,o,n)});function Vn(t,e){return new Ed({type:"intersection",left:t,right:e})}var Od=_("ZodTuple",(t,e)=>{ka.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>jh(t,r,o,n),t.rest=r=>t.clone({...t._zod.def,rest:r})});function jd(t,e,r){let o=e instanceof W,n=o?r:e,i=o?e:null;return new Od({type:"tuple",items:t,rest:i,...S.normalizeParams(n)})}var oi=_("ZodRecord",(t,e)=>{rl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Rh(t,r,o,n),t.keyType=e.keyType,t.valueType=e.valueType});function $e(t,e,r){return new oi({type:"record",keyType:t,valueType:e,...S.normalizeParams(r)})}function Lg(t,e,r){let o=Ue(t);return o._zod.values=void 0,new oi({type:"record",keyType:o,valueType:e,...S.normalizeParams(r)})}function Vg(t,e,r){return new oi({type:"record",keyType:t,valueType:e,mode:"loose",...S.normalizeParams(r)})}var Rd=_("ZodMap",(t,e)=>{nl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ih(t,r,o,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(Ot(...r)),t.nonempty=r=>t.check(Ot(1,r)),t.max=(...r)=>t.check(or(...r)),t.size=(...r)=>t.check(yr(...r))});function Fg(t,e,r){return new Rd({type:"map",keyType:t,valueType:e,...S.normalizeParams(r)})}var Nd=_("ZodSet",(t,e)=>{ol.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ph(t,r,o,n),t.min=(...r)=>t.check(Ot(...r)),t.nonempty=r=>t.check(Ot(1,r)),t.max=(...r)=>t.check(or(...r)),t.size=(...r)=>t.check(yr(...r))});function Jg(t,e){return new Nd({type:"set",valueType:t,...S.normalizeParams(e)})}var Dn=_("ZodEnum",(t,e)=>{il.init(t,e),K.init(t,e),t._zod.processJSONSchema=(o,n,i)=>_h(t,o,n,i),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=e.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Dn({...e,checks:[],...S.normalizeParams(n),entries:i})},t.exclude=(o,n)=>{let i={...e.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Dn({...e,checks:[],...S.normalizeParams(n),entries:i})}});function qe(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new Dn({type:"enum",entries:r,...S.normalizeParams(e)})}function Hg(t,e){return new Dn({type:"enum",entries:t,...S.normalizeParams(e)})}var Cd=_("ZodLiteral",(t,e)=>{al.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>yh(t,r,o,n),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function Z(t,e){return new Cd({type:"literal",values:Array.isArray(t)?t:[t],...S.normalizeParams(e)})}var Dd=_("ZodFile",(t,e)=>{sl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>xh(t,r,o,n),t.min=(r,o)=>t.check(Ot(r,o)),t.max=(r,o)=>t.check(or(r,o)),t.mime=(r,o)=>t.check(Br(Array.isArray(r)?r:[r],o))});function Wg(t){return Gl(Dd,t)}var Ud=_("ZodTransform",(t,e)=>{cl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>zh(t,r,o,n),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Dr(t.constructor.name);r.addIssue=i=>{var a,c,u;if(typeof i=="string")r.issues.push(S.issue(i,r.value,e));else{let l=i;l.fatal&&(l.continue=!1),(a=l.code)!=null||(l.code="custom"),(c=l.input)!=null||(l.input=r.value),(u=l.inst)!=null||(l.inst=t),r.issues.push(S.issue(l))}};let n=e.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function Ns(t){return new Ud({type:"transform",transform:t})}var Cs=_("ZodOptional",(t,e)=>{Sa.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>od(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function xe(t){return new Cs({type:"optional",innerType:t})}var Ad=_("ZodExactOptional",(t,e)=>{ul.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>od(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Zd(t){return new Ad({type:"optional",innerType:t})}var Md=_("ZodNullable",(t,e)=>{ll.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Nh(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Xo(t){return new Md({type:"nullable",innerType:t})}function Bg(t){return xe(Xo(t))}var qd=_("ZodDefault",(t,e)=>{dl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Dh(t,r,o,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Ld(t,e){return new qd({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():S.shallowClone(e)}})}var Vd=_("ZodPrefault",(t,e)=>{fl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Uh(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Fd(t,e){return new Vd({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():S.shallowClone(e)}})}var Ds=_("ZodNonOptional",(t,e)=>{pl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ch(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Jd(t,e){return new Ds({type:"nonoptional",innerType:t,...S.normalizeParams(e)})}var Hd=_("ZodSuccess",(t,e)=>{ml.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>wh(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Gg(t){return new Hd({type:"success",innerType:t})}var Wd=_("ZodCatch",(t,e)=>{hl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ah(t,r,o,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Bd(t,e){return new Wd({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var Gd=_("ZodNaN",(t,e)=>{gl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>$h(t,r,o,n)});function Kg(t){return Bl(Gd,t)}var Us=_("ZodPipe",(t,e)=>{vl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Zh(t,r,o,n),t.in=e.in,t.out=e.out});function Yo(t,e){return new Us({type:"pipe",in:t,out:e})}var As=_("ZodCodec",(t,e)=>{Us.init(t,e),Ao.init(t,e)});function Xg(t,e,r){return new As({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}var Kd=_("ZodReadonly",(t,e)=>{_l.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Mh(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Xd(t){return new Kd({type:"readonly",innerType:t})}var Yd=_("ZodTemplateLiteral",(t,e)=>{yl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>bh(t,r,o,n)});function Yg(t,e){return new Yd({type:"template_literal",parts:t,...S.normalizeParams(e)})}var Qd=_("ZodLazy",(t,e)=>{xl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Lh(t,r,o,n),t.unwrap=()=>t._zod.def.getter()});function ef(t){return new Qd({type:"lazy",getter:t})}var tf=_("ZodPromise",(t,e)=>{bl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>qh(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Qg(t){return new tf({type:"promise",innerType:t})}var rf=_("ZodFunction",(t,e)=>{$l.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Sh(t,r,o,n)});function ev(t){var e,r;return new rf({type:"function",input:Array.isArray(t==null?void 0:t.input)?jd(t==null?void 0:t.input):(e=t==null?void 0:t.input)!=null?e:j(_e()),output:(r=t==null?void 0:t.output)!=null?r:_e()})}var ii=_("ZodCustom",(t,e)=>{wl.init(t,e),K.init(t,e),t._zod.processJSONSchema=(r,o,n)=>kh(t,r,o,n)});function tv(t){let e=new ye({check:"custom"});return e._zod.check=t,e}function Zs(t,e){return Kl(ii,t!=null?t:(()=>!0),e)}function nf(t,e={}){return Xl(ii,t,e)}function of(t){return Yl(t)}var rv=Ql,nv=ed;function ov(t,e={}){let r=new ii({type:"custom",check:"custom",fn:o=>o instanceof t,abort:!0,...S.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=o=>{var n;o.value instanceof t||o.issues.push({code:"invalid_type",expected:t.name,input:o.value,inst:r,path:[...(n=r._zod.def.path)!=null?n:[]]})},r}var iv=(...t)=>td({Codec:As,Boolean:Mn,String:Un},...t);function av(t){let e=ef(()=>ge([v(t),ae(),pe(),Ln(),j(e),$e(v(),e)]));return e}function ai(t,e){return Yo(Ns(t),e)}var sf={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 Tx(t){Pe({customError:t})}function Ex(){return Pe().customError}var af;af||(af={});var C={...ds,...ad,iso:ir},uE=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 lE(t,e){let r=t.$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":e!=null?e:"draft-2020-12"}function dE(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=t.slice(1).split("/").filter(Boolean);if(r.length===0)return e.rootSchema;let o=e.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!e.defs[n])throw new Error(`Reference not found: ${t}`);return e.defs[n]}throw new Error(`Reference not found: ${t}`)}function Ox(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return C.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let n=t.$ref;if(e.refs.has(n))return e.refs.get(n);if(e.processing.has(n))return C.lazy(()=>{if(!e.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return e.refs.get(n)});e.processing.add(n);let i=dE(n,e),a=Ye(i,e);return e.refs.set(n,a),e.processing.delete(n),a}if(t.enum!==void 0){let n=t.enum;if(e.version==="openapi-3.0"&&t.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(a=>typeof a=="string"))return C.enum(n);let i=n.map(a=>C.literal(a));return i.length<2?i[0]:C.union([i[0],i[1],...i.slice(2)])}if(t.const!==void 0)return C.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...t,type:i};return Ox(a,e)});return n.length===0?C.never():n.length===1?n[0]:C.union(n)}if(!r)return C.any();let o;switch(r){case"string":{let n=C.string();if(t.format){let i=t.format;i==="email"?n=n.check(C.email()):i==="uri"||i==="uri-reference"?n=n.check(C.url()):i==="uuid"||i==="guid"?n=n.check(C.uuid()):i==="date-time"?n=n.check(C.iso.datetime()):i==="date"?n=n.check(C.iso.date()):i==="time"?n=n.check(C.iso.time()):i==="duration"?n=n.check(C.iso.duration()):i==="ipv4"?n=n.check(C.ipv4()):i==="ipv6"?n=n.check(C.ipv6()):i==="mac"?n=n.check(C.mac()):i==="cidr"?n=n.check(C.cidrv4()):i==="cidr-v6"?n=n.check(C.cidrv6()):i==="base64"?n=n.check(C.base64()):i==="base64url"?n=n.check(C.base64url()):i==="e164"?n=n.check(C.e164()):i==="jwt"?n=n.check(C.jwt()):i==="emoji"?n=n.check(C.emoji()):i==="nanoid"?n=n.check(C.nanoid()):i==="cuid"?n=n.check(C.cuid()):i==="cuid2"?n=n.check(C.cuid2()):i==="ulid"?n=n.check(C.ulid()):i==="xid"?n=n.check(C.xid()):i==="ksuid"&&(n=n.check(C.ksuid()))}typeof t.minLength=="number"&&(n=n.min(t.minLength)),typeof t.maxLength=="number"&&(n=n.max(t.maxLength)),t.pattern&&(n=n.regex(new RegExp(t.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?C.number().int():C.number();typeof t.minimum=="number"&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum=="number"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(n=n.lt(t.maximum)),typeof t.multipleOf=="number"&&(n=n.multipleOf(t.multipleOf)),o=n;break}case"boolean":{o=C.boolean();break}case"null":{o=C.null();break}case"object":{let n={},i=t.properties||{},a=new Set(t.required||[]);for(let[u,l]of Object.entries(i)){let d=Ye(l,e);n[u]=a.has(u)?d:d.optional()}if(t.propertyNames){let u=Ye(t.propertyNames,e),l=t.additionalProperties&&typeof t.additionalProperties=="object"?Ye(t.additionalProperties,e):C.any();if(Object.keys(n).length===0){o=C.record(u,l);break}let d=C.object(n).passthrough(),s=C.looseRecord(u,l);o=C.intersection(d,s);break}if(t.patternProperties){let u=t.patternProperties,l=Object.keys(u),d=[];for(let f of l){let p=Ye(u[f],e),m=C.string().regex(new RegExp(f));d.push(C.looseRecord(m,p))}let s=[];if(Object.keys(n).length>0&&s.push(C.object(n).passthrough()),s.push(...d),s.length===0)o=C.object({}).passthrough();else if(s.length===1)o=s[0];else{let f=C.intersection(s[0],s[1]);for(let p=2;p<s.length;p++)f=C.intersection(f,s[p]);o=f}break}let c=C.object(n);t.additionalProperties===!1?o=c.strict():typeof t.additionalProperties=="object"?o=c.catchall(Ye(t.additionalProperties,e)):o=c.passthrough();break}case"array":{let n=t.prefixItems,i=t.items;if(n&&Array.isArray(n)){let a=n.map(u=>Ye(u,e)),c=i&&typeof i=="object"&&!Array.isArray(i)?Ye(i,e):void 0;c?o=C.tuple(a).rest(c):o=C.tuple(a),typeof t.minItems=="number"&&(o=o.check(C.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(C.maxLength(t.maxItems)))}else if(Array.isArray(i)){let a=i.map(u=>Ye(u,e)),c=t.additionalItems&&typeof t.additionalItems=="object"?Ye(t.additionalItems,e):void 0;c?o=C.tuple(a).rest(c):o=C.tuple(a),typeof t.minItems=="number"&&(o=o.check(C.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(C.maxLength(t.maxItems)))}else if(i!==void 0){let a=Ye(i,e),c=C.array(a);typeof t.minItems=="number"&&(c=c.min(t.minItems)),typeof t.maxItems=="number"&&(c=c.max(t.maxItems)),o=c}else o=C.array(C.any());break}default:throw new Error(`Unsupported type: ${r}`)}return t.description&&(o=o.describe(t.description)),t.default!==void 0&&(o=o.default(t.default)),o}function Ye(t,e){if(typeof t=="boolean")return t?C.any():C.never();let r=Ox(t,e),o=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let c=t.anyOf.map(l=>Ye(l,e)),u=C.union(c);r=o?C.intersection(r,u):u}if(t.oneOf&&Array.isArray(t.oneOf)){let c=t.oneOf.map(l=>Ye(l,e)),u=C.xor(c);r=o?C.intersection(r,u):u}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=o?r:C.any();else{let c=o?r:Ye(t.allOf[0],e),u=o?0:1;for(let l=u;l<t.allOf.length;l++)c=C.intersection(c,Ye(t.allOf[l],e));r=c}t.nullable===!0&&e.version==="openapi-3.0"&&(r=C.nullable(r)),t.readOnly===!0&&(r=C.readonly(r));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let c of i)c in t&&(n[c]=t[c]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let c of a)c in t&&(n[c]=t[c]);for(let c of Object.keys(t))uE.has(c)||(n[c]=t[c]);return Object.keys(n).length>0&&e.registry.add(r,n),r}function sv(t,e){var i;if(typeof t=="boolean")return t?C.any():C.never();let r=lE(t,e==null?void 0:e.defaultTarget),o=t.$defs||t.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:t,registry:(i=e==null?void 0:e.registry)!=null?i:Ae};return Ye(t,n)}var Fn={};_t(Fn,{bigint:()=>hE,boolean:()=>mE,date:()=>gE,number:()=>pE,string:()=>fE});function fE(t){return Ta(Un,t)}function pE(t){return ts(Zn,t)}function mE(t){return rs(Mn,t)}function hE(t){return ns(qn,t)}function gE(t){return os(ei,t)}Pe(kl());var on="2025-11-25",Rx="2025-03-26",Jn=[on,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],an="io.modelcontextprotocol/related-task",uf="2.0",Le=Zs(t=>t!==null&&(typeof t=="object"||typeof t=="function")),Nx=ge([v(),ae().int()]),Cx=v(),Oq=Re({ttl:ge([ae(),Ln()]).optional(),pollInterval:ae().optional()}),vE=R({ttl:ae().optional()}),_E=R({taskId:v()}),uv=Re({progressToken:Nx.optional(),[an]:_E.optional()}),wt=R({_meta:uv.optional()}),qs=wt.extend({task:vE.optional()}),Dx=t=>qs.safeParse(t).success,Ve=R({method:v(),params:wt.loose().optional()}),jt=R({_meta:uv.optional()}),Rt=R({method:v(),params:jt.loose().optional()}),Fe=Re({_meta:uv.optional()}),lf=ge([v(),ae().int()]),Ux=R({jsonrpc:Z(uf),id:lf,...Ve.shape}).strict(),ar=t=>Ux.safeParse(t).success,Ax=R({jsonrpc:Z(uf),...Rt.shape}).strict(),Zx=t=>Ax.safeParse(t).success,lv=R({jsonrpc:Z(uf),id:lf,result:Fe}).strict(),Ft=t=>lv.safeParse(t).success;var F;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(F||(F={}));var dv=R({jsonrpc:Z(uf),id:lf.optional(),error:R({code:ae().int(),message:v(),data:_e().optional()})}).strict();var ci=t=>dv.safeParse(t).success;var kt=ge([Ux,Ax,lv,dv]),jq=ge([lv,dv]),xr=Fe.strict(),yE=jt.extend({requestId:lf.optional(),reason:v().optional()}),df=Rt.extend({method:Z("notifications/cancelled"),params:yE}),$E=R({src:v(),mimeType:v().optional(),sizes:j(v()).optional(),theme:qe(["light","dark"]).optional()}),Ls=R({icons:j($E).optional()}),si=R({name:v(),title:v().optional()}),Mx=si.extend({...si.shape,...Ls.shape,version:v(),websiteUrl:v().optional(),description:v().optional()}),bE=Vn(R({applyDefaults:pe().optional()}),$e(v(),_e())),xE=ai(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,Vn(R({form:bE.optional(),url:Le.optional()}),$e(v(),_e()).optional())),wE=Re({list:Le.optional(),cancel:Le.optional(),requests:Re({sampling:Re({createMessage:Le.optional()}).optional(),elicitation:Re({create:Le.optional()}).optional()}).optional()}),kE=Re({list:Le.optional(),cancel:Le.optional(),requests:Re({tools:Re({call:Le.optional()}).optional()}).optional()}),SE=R({experimental:$e(v(),Le).optional(),sampling:R({context:Le.optional(),tools:Le.optional()}).optional(),elicitation:xE.optional(),roots:R({listChanged:pe().optional()}).optional(),tasks:wE.optional()}),zE=wt.extend({protocolVersion:v(),capabilities:SE,clientInfo:Mx}),ff=Ve.extend({method:Z("initialize"),params:zE}),fv=t=>ff.safeParse(t).success,IE=R({experimental:$e(v(),Le).optional(),logging:Le.optional(),completions:Le.optional(),prompts:R({listChanged:pe().optional()}).optional(),resources:R({subscribe:pe().optional(),listChanged:pe().optional()}).optional(),tools:R({listChanged:pe().optional()}).optional(),tasks:kE.optional()}),pv=Fe.extend({protocolVersion:v(),capabilities:IE,serverInfo:Mx,instructions:v().optional()}),pf=Rt.extend({method:Z("notifications/initialized"),params:jt.optional()}),qx=t=>pf.safeParse(t).success,ui=Ve.extend({method:Z("ping"),params:wt.optional()}),PE=R({progress:ae(),total:xe(ae()),message:xe(v())}),TE=R({...jt.shape,...PE.shape,progressToken:Nx}),li=Rt.extend({method:Z("notifications/progress"),params:TE}),EE=wt.extend({cursor:Cx.optional()}),Vs=Ve.extend({params:EE.optional()}),Fs=Fe.extend({nextCursor:Cx.optional()}),OE=qe(["working","input_required","completed","failed","cancelled"]),Js=R({taskId:v(),status:OE,ttl:ge([ae(),Ln()]),createdAt:v(),lastUpdatedAt:v(),pollInterval:xe(ae()),statusMessage:xe(v())}),wr=Fe.extend({task:Js}),jE=jt.merge(Js),Hs=Rt.extend({method:Z("notifications/tasks/status"),params:jE}),mf=Ve.extend({method:Z("tasks/get"),params:wt.extend({taskId:v()})}),hf=Fe.merge(Js),gf=Ve.extend({method:Z("tasks/result"),params:wt.extend({taskId:v()})}),Rq=Fe.loose(),vf=Vs.extend({method:Z("tasks/list")}),_f=Fs.extend({tasks:j(Js)}),yf=Ve.extend({method:Z("tasks/cancel"),params:wt.extend({taskId:v()})}),Lx=Fe.merge(Js),Vx=R({uri:v(),mimeType:xe(v()),_meta:$e(v(),_e()).optional()}),Fx=Vx.extend({text:v()}),mv=v().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),Jx=Vx.extend({blob:mv}),Ws=qe(["user","assistant"]),di=R({audience:j(Ws).optional(),priority:ae().min(0).max(1).optional(),lastModified:ir.datetime({offset:!0}).optional()}),Hx=R({...si.shape,...Ls.shape,uri:v(),description:xe(v()),mimeType:xe(v()),annotations:di.optional(),_meta:xe(Re({}))}),RE=R({...si.shape,...Ls.shape,uriTemplate:v(),description:xe(v()),mimeType:xe(v()),annotations:di.optional(),_meta:xe(Re({}))}),NE=Vs.extend({method:Z("resources/list")}),hv=Fs.extend({resources:j(Hx)}),CE=Vs.extend({method:Z("resources/templates/list")}),gv=Fs.extend({resourceTemplates:j(RE)}),vv=wt.extend({uri:v()}),DE=vv,UE=Ve.extend({method:Z("resources/read"),params:DE}),_v=Fe.extend({contents:j(ge([Fx,Jx]))}),yv=Rt.extend({method:Z("notifications/resources/list_changed"),params:jt.optional()}),AE=vv,ZE=Ve.extend({method:Z("resources/subscribe"),params:AE}),ME=vv,qE=Ve.extend({method:Z("resources/unsubscribe"),params:ME}),LE=jt.extend({uri:v()}),VE=Rt.extend({method:Z("notifications/resources/updated"),params:LE}),FE=R({name:v(),description:xe(v()),required:xe(pe())}),JE=R({...si.shape,...Ls.shape,description:xe(v()),arguments:xe(j(FE)),_meta:xe(Re({}))}),HE=Vs.extend({method:Z("prompts/list")}),$v=Fs.extend({prompts:j(JE)}),WE=wt.extend({name:v(),arguments:$e(v(),v()).optional()}),BE=Ve.extend({method:Z("prompts/get"),params:WE}),bv=R({type:Z("text"),text:v(),annotations:di.optional(),_meta:$e(v(),_e()).optional()}),xv=R({type:Z("image"),data:mv,mimeType:v(),annotations:di.optional(),_meta:$e(v(),_e()).optional()}),wv=R({type:Z("audio"),data:mv,mimeType:v(),annotations:di.optional(),_meta:$e(v(),_e()).optional()}),GE=R({type:Z("tool_use"),name:v(),id:v(),input:$e(v(),_e()),_meta:$e(v(),_e()).optional()}),KE=R({type:Z("resource"),resource:ge([Fx,Jx]),annotations:di.optional(),_meta:$e(v(),_e()).optional()}),XE=Hx.extend({type:Z("resource_link")}),kv=ge([bv,xv,wv,XE,KE]),YE=R({role:Ws,content:kv}),Sv=Fe.extend({description:v().optional(),messages:j(YE)}),zv=Rt.extend({method:Z("notifications/prompts/list_changed"),params:jt.optional()}),QE=R({title:v().optional(),readOnlyHint:pe().optional(),destructiveHint:pe().optional(),idempotentHint:pe().optional(),openWorldHint:pe().optional()}),eO=R({taskSupport:qe(["required","optional","forbidden"]).optional()}),Wx=R({...si.shape,...Ls.shape,description:v().optional(),inputSchema:R({type:Z("object"),properties:$e(v(),Le).optional(),required:j(v()).optional()}).catchall(_e()),outputSchema:R({type:Z("object"),properties:$e(v(),Le).optional(),required:j(v()).optional()}).catchall(_e()).optional(),annotations:QE.optional(),execution:eO.optional(),_meta:$e(v(),_e()).optional()}),Iv=Vs.extend({method:Z("tools/list")}),Pv=Fs.extend({tools:j(Wx)}),sn=Fe.extend({content:j(kv).default([]),structuredContent:$e(v(),_e()).optional(),isError:pe().optional()}),Nq=sn.or(Fe.extend({toolResult:_e()})),tO=qs.extend({name:v(),arguments:$e(v(),_e()).optional()}),Bs=Ve.extend({method:Z("tools/call"),params:tO}),Tv=Rt.extend({method:Z("notifications/tools/list_changed"),params:jt.optional()}),Bx=R({autoRefresh:pe().default(!0),debounceMs:ae().int().nonnegative().default(300)}),Gs=qe(["debug","info","notice","warning","error","critical","alert","emergency"]),rO=wt.extend({level:Gs}),Ev=Ve.extend({method:Z("logging/setLevel"),params:rO}),nO=jt.extend({level:Gs,logger:v().optional(),data:_e()}),oO=Rt.extend({method:Z("notifications/message"),params:nO}),iO=R({name:v().optional()}),aO=R({hints:j(iO).optional(),costPriority:ae().min(0).max(1).optional(),speedPriority:ae().min(0).max(1).optional(),intelligencePriority:ae().min(0).max(1).optional()}),sO=R({mode:qe(["auto","required","none"]).optional()}),cO=R({type:Z("tool_result"),toolUseId:v().describe("The unique identifier for the corresponding tool call."),content:j(kv).default([]),structuredContent:R({}).loose().optional(),isError:pe().optional(),_meta:$e(v(),_e()).optional()}),uO=ni("type",[bv,xv,wv]),cf=ni("type",[bv,xv,wv,GE,cO]),lO=R({role:Ws,content:ge([cf,j(cf)]),_meta:$e(v(),_e()).optional()}),dO=qs.extend({messages:j(lO),modelPreferences:aO.optional(),systemPrompt:v().optional(),includeContext:qe(["none","thisServer","allServers"]).optional(),temperature:ae().optional(),maxTokens:ae().int(),stopSequences:j(v()).optional(),metadata:Le.optional(),tools:j(Wx).optional(),toolChoice:sO.optional()}),Ov=Ve.extend({method:Z("sampling/createMessage"),params:dO}),Ks=Fe.extend({model:v(),stopReason:xe(qe(["endTurn","stopSequence","maxTokens"]).or(v())),role:Ws,content:uO}),Xs=Fe.extend({model:v(),stopReason:xe(qe(["endTurn","stopSequence","maxTokens","toolUse"]).or(v())),role:Ws,content:ge([cf,j(cf)])}),fO=R({type:Z("boolean"),title:v().optional(),description:v().optional(),default:pe().optional()}),pO=R({type:Z("string"),title:v().optional(),description:v().optional(),minLength:ae().optional(),maxLength:ae().optional(),format:qe(["email","uri","date","date-time"]).optional(),default:v().optional()}),mO=R({type:qe(["number","integer"]),title:v().optional(),description:v().optional(),minimum:ae().optional(),maximum:ae().optional(),default:ae().optional()}),hO=R({type:Z("string"),title:v().optional(),description:v().optional(),enum:j(v()),default:v().optional()}),gO=R({type:Z("string"),title:v().optional(),description:v().optional(),oneOf:j(R({const:v(),title:v()})),default:v().optional()}),vO=R({type:Z("string"),title:v().optional(),description:v().optional(),enum:j(v()),enumNames:j(v()).optional(),default:v().optional()}),_O=ge([hO,gO]),yO=R({type:Z("array"),title:v().optional(),description:v().optional(),minItems:ae().optional(),maxItems:ae().optional(),items:R({type:Z("string"),enum:j(v())}),default:j(v()).optional()}),$O=R({type:Z("array"),title:v().optional(),description:v().optional(),minItems:ae().optional(),maxItems:ae().optional(),items:R({anyOf:j(R({const:v(),title:v()}))}),default:j(v()).optional()}),bO=ge([yO,$O]),xO=ge([vO,_O,bO]),wO=ge([xO,fO,pO,mO]),kO=qs.extend({mode:Z("form").optional(),message:v(),requestedSchema:R({type:Z("object"),properties:$e(v(),wO),required:j(v()).optional()})}),SO=qs.extend({mode:Z("url"),message:v(),elicitationId:v(),url:v().url()}),zO=ge([kO,SO]),jv=Ve.extend({method:Z("elicitation/create"),params:zO}),IO=jt.extend({elicitationId:v()}),PO=Rt.extend({method:Z("notifications/elicitation/complete"),params:IO}),fi=Fe.extend({action:qe(["accept","decline","cancel"]),content:ai(t=>t===null?void 0:t,$e(v(),ge([v(),ae(),pe(),j(v())])).optional())}),TO=R({type:Z("ref/resource"),uri:v()});var EO=R({type:Z("ref/prompt"),name:v()}),OO=wt.extend({ref:ge([EO,TO]),argument:R({name:v(),value:v()}),context:R({arguments:$e(v(),v()).optional()}).optional()}),jO=Ve.extend({method:Z("completion/complete"),params:OO});var Rv=Fe.extend({completion:Re({values:j(v()).max(100),total:xe(ae().int()),hasMore:xe(pe())})}),RO=R({uri:v().startsWith("file://"),name:v().optional(),_meta:$e(v(),_e()).optional()}),Nv=Ve.extend({method:Z("roots/list"),params:wt.optional()}),Cv=Fe.extend({roots:j(RO)}),NO=Rt.extend({method:Z("notifications/roots/list_changed"),params:jt.optional()}),Cq=ge([ui,ff,jO,Ev,BE,HE,NE,CE,UE,ZE,qE,Bs,Iv,mf,gf,vf,yf]),Dq=ge([df,li,pf,NO,Hs]),Uq=ge([xr,Ks,Xs,fi,Cv,hf,_f,wr]),Aq=ge([ui,Ov,jv,Nv,mf,gf,vf,yf]),Zq=ge([df,li,oO,VE,yv,Tv,zv,Hs,PO]),Mq=ge([xr,pv,Rv,Sv,$v,hv,gv,_v,sn,Pv,hf,_f,wr]),q=class t extends Error{constructor(e,r,o){super(`MCP error ${e}: ${r}`),this.code=e,this.data=o,this.name="McpError"}static fromError(e,r,o){if(e===F.UrlElicitationRequired&&o){let n=o;if(n.elicitations)return new cv(n.elicitations,r)}return new t(e,r,o)}},cv=class extends q{constructor(e,r=`URL elicitation${e.length>1?"s":""} required`){super(F.UrlElicitationRequired,r,{elicitations:e})}get elicitations(){var e,r;return(r=(e=this.data)==null?void 0:e.elicitations)!=null?r:[]}};function cn(t){return t==="completed"||t==="failed"||t==="cancelled"}var Kx=Symbol("Let zodToJsonSchema decide on which parser to use");var Gx={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},Xx=t=>typeof t=="string"?{...Gx,name:t}:{...Gx,...t};var Yx=t=>{let e=Xx(t),r=e.name!==void 0?[...e.basePath,e.definitionPath,e.name]:e.basePath;return{...e,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(e.definitions).map(([o,n])=>[n._def,{def:n._def,path:[...e.basePath,e.definitionPath,o],jsonSchema:void 0}]))}};function Dv(t,e,r,o){o!=null&&o.errorMessages&&r&&(t.errorMessage={...t.errorMessage,[e]:r})}function ce(t,e,r,o,n){t[e]=r,Dv(t,e,o,n)}var $f=(t,e)=>{let r=0;for(;r<t.length&&r<e.length&&t[r]===e[r];r++);return[(t.length-r).toString(),...e.slice(r)].join("/")};function Te(t){if(t.target!=="openAi")return{};let e=[...t.basePath,t.definitionPath,t.openAiAnyTypeName];return t.flags.hasReferencedOpenAiAnyType=!0,{$ref:t.$refStrategy==="relative"?$f(e,t.currentPath):e.join("/")}}function Qx(t,e){var o,n,i;let r={type:"array"};return(o=t.type)!=null&&o._def&&((i=(n=t.type)==null?void 0:n._def)==null?void 0:i.typeName)!==E.ZodAny&&(r.items=H(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&ce(r,"minItems",t.minLength.value,t.minLength.message,e),t.maxLength&&ce(r,"maxItems",t.maxLength.value,t.maxLength.message,e),t.exactLength&&(ce(r,"minItems",t.exactLength.value,t.exactLength.message,e),ce(r,"maxItems",t.exactLength.value,t.exactLength.message,e)),r}function ew(t,e){let r={type:"integer",format:"int64"};if(!t.checks)return r;for(let o of t.checks)switch(o.kind){case"min":e.target==="jsonSchema7"?o.inclusive?ce(r,"minimum",o.value,o.message,e):ce(r,"exclusiveMinimum",o.value,o.message,e):(o.inclusive||(r.exclusiveMinimum=!0),ce(r,"minimum",o.value,o.message,e));break;case"max":e.target==="jsonSchema7"?o.inclusive?ce(r,"maximum",o.value,o.message,e):ce(r,"exclusiveMaximum",o.value,o.message,e):(o.inclusive||(r.exclusiveMaximum=!0),ce(r,"maximum",o.value,o.message,e));break;case"multipleOf":ce(r,"multipleOf",o.value,o.message,e);break}return r}function tw(){return{type:"boolean"}}function bf(t,e){return H(t.type._def,e)}var rw=(t,e)=>H(t.innerType._def,e);function Uv(t,e,r){let o=r!=null?r:e.dateStrategy;if(Array.isArray(o))return{anyOf:o.map((n,i)=>Uv(t,e,n))};switch(o){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return CO(t,e)}}var CO=(t,e)=>{let r={type:"integer",format:"unix-time"};if(e.target==="openApi3")return r;for(let o of t.checks)switch(o.kind){case"min":ce(r,"minimum",o.value,o.message,e);break;case"max":ce(r,"maximum",o.value,o.message,e);break}return r};function nw(t,e){return{...H(t.innerType._def,e),default:t.defaultValue()}}function ow(t,e){return e.effectStrategy==="input"?H(t.schema._def,e):Te(e)}function iw(t){return{type:"string",enum:Array.from(t.values)}}var DO=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function aw(t,e){let r=[H(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),H(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(i=>!!i),o=e.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,n=[];return r.forEach(i=>{if(DO(i))n.push(...i.allOf),i.unevaluatedProperties===void 0&&(o=void 0);else{let a=i;if("additionalProperties"in i&&i.additionalProperties===!1){let{additionalProperties:c,...u}=i;a=u}else o=void 0;n.push(a)}}),n.length?{allOf:n,...o}:void 0}function sw(t,e){let r=typeof t.value;return r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string"?{type:Array.isArray(t.value)?"array":"object"}:e.target==="openApi3"?{type:r==="bigint"?"integer":r,enum:[t.value]}:{type:r==="bigint"?"integer":r,const:t.value}}var Av,Jt={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(Av===void 0&&(Av=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Av),uuid:/^[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}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([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])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function xf(t,e){let r={type:"string"};if(t.checks)for(let o of t.checks)switch(o.kind){case"min":ce(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,o.value):o.value,o.message,e);break;case"max":ce(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,o.value):o.value,o.message,e);break;case"email":switch(e.emailStrategy){case"format:email":Ht(r,"email",o.message,e);break;case"format:idn-email":Ht(r,"idn-email",o.message,e);break;case"pattern:zod":st(r,Jt.email,o.message,e);break}break;case"url":Ht(r,"uri",o.message,e);break;case"uuid":Ht(r,"uuid",o.message,e);break;case"regex":st(r,o.regex,o.message,e);break;case"cuid":st(r,Jt.cuid,o.message,e);break;case"cuid2":st(r,Jt.cuid2,o.message,e);break;case"startsWith":st(r,RegExp(`^${Zv(o.value,e)}`),o.message,e);break;case"endsWith":st(r,RegExp(`${Zv(o.value,e)}$`),o.message,e);break;case"datetime":Ht(r,"date-time",o.message,e);break;case"date":Ht(r,"date",o.message,e);break;case"time":Ht(r,"time",o.message,e);break;case"duration":Ht(r,"duration",o.message,e);break;case"length":ce(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,o.value):o.value,o.message,e),ce(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,o.value):o.value,o.message,e);break;case"includes":{st(r,RegExp(Zv(o.value,e)),o.message,e);break}case"ip":{o.version!=="v6"&&Ht(r,"ipv4",o.message,e),o.version!=="v4"&&Ht(r,"ipv6",o.message,e);break}case"base64url":st(r,Jt.base64url,o.message,e);break;case"jwt":st(r,Jt.jwt,o.message,e);break;case"cidr":{o.version!=="v6"&&st(r,Jt.ipv4Cidr,o.message,e),o.version!=="v4"&&st(r,Jt.ipv6Cidr,o.message,e);break}case"emoji":st(r,Jt.emoji(),o.message,e);break;case"ulid":{st(r,Jt.ulid,o.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{Ht(r,"binary",o.message,e);break}case"contentEncoding:base64":{ce(r,"contentEncoding","base64",o.message,e);break}case"pattern:zod":{st(r,Jt.base64,o.message,e);break}}break}case"nanoid":st(r,Jt.nanoid,o.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function Zv(t,e){return e.patternStrategy==="escape"?AO(t):t}var UO=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function AO(t){let e="";for(let r=0;r<t.length;r++)UO.has(t[r])||(e+="\\"),e+=t[r];return e}function Ht(t,e,r,o){var n;t.format||(n=t.anyOf)!=null&&n.some(i=>i.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format,...t.errorMessage&&o.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage&&(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.anyOf.push({format:e,...r&&o.errorMessages&&{errorMessage:{format:r}}})):ce(t,"format",e,r,o)}function st(t,e,r,o){var n;t.pattern||(n=t.allOf)!=null&&n.some(i=>i.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern,...t.errorMessage&&o.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage&&(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.allOf.push({pattern:cw(e,o),...r&&o.errorMessages&&{errorMessage:{pattern:r}}})):ce(t,"pattern",cw(e,o),r,o)}function cw(t,e){var u;if(!e.applyRegexFlags||!t.flags)return t.source;let r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},o=r.i?t.source.toLowerCase():t.source,n="",i=!1,a=!1,c=!1;for(let l=0;l<o.length;l++){if(i){n+=o[l],i=!1;continue}if(r.i){if(a){if(o[l].match(/[a-z]/)){c?(n+=o[l],n+=`${o[l-2]}-${o[l]}`.toUpperCase(),c=!1):o[l+1]==="-"&&((u=o[l+2])!=null&&u.match(/[a-z]/))?(n+=o[l],c=!0):n+=`${o[l]}${o[l].toUpperCase()}`;continue}}else if(o[l].match(/[a-z]/)){n+=`[${o[l]}${o[l].toUpperCase()}]`;continue}}if(r.m){if(o[l]==="^"){n+=`(^|(?<=[\r
]))`;continue}else if(o[l]==="$"){n+=`($|(?=[\r
]))`;continue}}if(r.s&&o[l]==="."){n+=a?`${o[l]}\r
`:`[${o[l]}\r
]`;continue}n+=o[l],o[l]==="\\"?i=!0:a&&o[l]==="]"?a=!1:!a&&o[l]==="["&&(a=!0)}try{new RegExp(n)}catch{return console.warn(`Could not convert regex pattern at ${e.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),t.source}return n}function wf(t,e){var o,n,i,a,c,u,l;if(e.target==="openAi"&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),e.target==="openApi3"&&((o=t.keyType)==null?void 0:o._def.typeName)===E.ZodEnum)return{type:"object",required:t.keyType._def.values,properties:t.keyType._def.values.reduce((d,s)=>{var f;return{...d,[s]:(f=H(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",s]}))!=null?f:Te(e)}},{}),additionalProperties:e.rejectedAdditionalProperties};let r={type:"object",additionalProperties:(n=H(t.valueType._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]}))!=null?n:e.allowedAdditionalProperties};if(e.target==="openApi3")return r;if(((i=t.keyType)==null?void 0:i._def.typeName)===E.ZodString&&((a=t.keyType._def.checks)!=null&&a.length)){let{type:d,...s}=xf(t.keyType._def,e);return{...r,propertyNames:s}}else{if(((c=t.keyType)==null?void 0:c._def.typeName)===E.ZodEnum)return{...r,propertyNames:{enum:t.keyType._def.values}};if(((u=t.keyType)==null?void 0:u._def.typeName)===E.ZodBranded&&t.keyType._def.type._def.typeName===E.ZodString&&((l=t.keyType._def.type._def.checks)!=null&&l.length)){let{type:d,...s}=bf(t.keyType._def,e);return{...r,propertyNames:s}}}return r}function uw(t,e){if(e.mapStrategy==="record")return wf(t,e);let r=H(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||Te(e),o=H(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||Te(e);return{type:"array",maxItems:125,items:{type:"array",items:[r,o],minItems:2,maxItems:2}}}function lw(t){let e=t.values,o=Object.keys(t.values).filter(i=>typeof e[e[i]]!="number").map(i=>e[i]),n=Array.from(new Set(o.map(i=>typeof i)));return{type:n.length===1?n[0]==="string"?"string":"number":["string","number"],enum:o}}function dw(t){return t.target==="openAi"?void 0:{not:Te({...t,currentPath:[...t.currentPath,"not"]})}}function fw(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var Ys={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function mw(t,e){if(e.target==="openApi3")return pw(t,e);let r=t.options instanceof Map?Array.from(t.options.values()):t.options;if(r.every(o=>o._def.typeName in Ys&&(!o._def.checks||!o._def.checks.length))){let o=r.reduce((n,i)=>{let a=Ys[i._def.typeName];return a&&!n.includes(a)?[...n,a]:n},[]);return{type:o.length>1?o:o[0]}}else if(r.every(o=>o._def.typeName==="ZodLiteral"&&!o.description)){let o=r.reduce((n,i)=>{let a=typeof i._def.value;switch(a){case"string":case"number":case"boolean":return[...n,a];case"bigint":return[...n,"integer"];case"object":if(i._def.value===null)return[...n,"null"];case"symbol":case"undefined":case"function":default:return n}},[]);if(o.length===r.length){let n=o.filter((i,a,c)=>c.indexOf(i)===a);return{type:n.length>1?n:n[0],enum:r.reduce((i,a)=>i.includes(a._def.value)?i:[...i,a._def.value],[])}}}else if(r.every(o=>o._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((o,n)=>[...o,...n._def.values.filter(i=>!o.includes(i))],[])};return pw(t,e)}var pw=(t,e)=>{let r=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((o,n)=>H(o._def,{...e,currentPath:[...e.currentPath,"anyOf",`${n}`]})).filter(o=>!!o&&(!e.strictUnions||typeof o=="object"&&Object.keys(o).length>0));return r.length?{anyOf:r}:void 0};function hw(t,e){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(t.innerType._def.typeName)&&(!t.innerType._def.checks||!t.innerType._def.checks.length))return e.target==="openApi3"?{type:Ys[t.innerType._def.typeName],nullable:!0}:{type:[Ys[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let o=H(t.innerType._def,{...e,currentPath:[...e.currentPath]});return o&&"$ref"in o?{allOf:[o],nullable:!0}:o&&{...o,nullable:!0}}let r=H(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function gw(t,e){let r={type:"number"};if(!t.checks)return r;for(let o of t.checks)switch(o.kind){case"int":r.type="integer",Dv(r,"type",o.message,e);break;case"min":e.target==="jsonSchema7"?o.inclusive?ce(r,"minimum",o.value,o.message,e):ce(r,"exclusiveMinimum",o.value,o.message,e):(o.inclusive||(r.exclusiveMinimum=!0),ce(r,"minimum",o.value,o.message,e));break;case"max":e.target==="jsonSchema7"?o.inclusive?ce(r,"maximum",o.value,o.message,e):ce(r,"exclusiveMaximum",o.value,o.message,e):(o.inclusive||(r.exclusiveMaximum=!0),ce(r,"maximum",o.value,o.message,e));break;case"multipleOf":ce(r,"multipleOf",o.value,o.message,e);break}return r}function vw(t,e){let r=e.target==="openAi",o={type:"object",properties:{}},n=[],i=t.shape();for(let c in i){let u=i[c];if(u===void 0||u._def===void 0)continue;let l=MO(u);l&&r&&(u._def.typeName==="ZodOptional"&&(u=u._def.innerType),u.isNullable()||(u=u.nullable()),l=!1);let d=H(u._def,{...e,currentPath:[...e.currentPath,"properties",c],propertyPath:[...e.currentPath,"properties",c]});d!==void 0&&(o.properties[c]=d,l||n.push(c))}n.length&&(o.required=n);let a=ZO(t,e);return a!==void 0&&(o.additionalProperties=a),o}function ZO(t,e){if(t.catchall._def.typeName!=="ZodNever")return H(t.catchall._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return e.allowedAdditionalProperties;case"strict":return e.rejectedAdditionalProperties;case"strip":return e.removeAdditionalStrategy==="strict"?e.allowedAdditionalProperties:e.rejectedAdditionalProperties}}function MO(t){try{return t.isOptional()}catch{return!0}}var _w=(t,e)=>{var o;if(e.currentPath.toString()===((o=e.propertyPath)==null?void 0:o.toString()))return H(t.innerType._def,e);let r=H(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return r?{anyOf:[{not:Te(e)},r]}:Te(e)};var yw=(t,e)=>{if(e.pipeStrategy==="input")return H(t.in._def,e);if(e.pipeStrategy==="output")return H(t.out._def,e);let r=H(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),o=H(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,o].filter(n=>n!==void 0)}};function $w(t,e){return H(t.type._def,e)}function bw(t,e){let o={type:"array",uniqueItems:!0,items:H(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&ce(o,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&ce(o,"maxItems",t.maxSize.value,t.maxSize.message,e),o}function xw(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((r,o)=>H(r._def,{...e,currentPath:[...e.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[]),additionalItems:H(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((r,o)=>H(r._def,{...e,currentPath:[...e.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[])}}function ww(t){return{not:Te(t)}}function kw(t){return Te(t)}var Sw=(t,e)=>H(t.innerType._def,e);var zw=(t,e,r)=>{switch(e){case E.ZodString:return xf(t,r);case E.ZodNumber:return gw(t,r);case E.ZodObject:return vw(t,r);case E.ZodBigInt:return ew(t,r);case E.ZodBoolean:return tw();case E.ZodDate:return Uv(t,r);case E.ZodUndefined:return ww(r);case E.ZodNull:return fw(r);case E.ZodArray:return Qx(t,r);case E.ZodUnion:case E.ZodDiscriminatedUnion:return mw(t,r);case E.ZodIntersection:return aw(t,r);case E.ZodTuple:return xw(t,r);case E.ZodRecord:return wf(t,r);case E.ZodLiteral:return sw(t,r);case E.ZodEnum:return iw(t);case E.ZodNativeEnum:return lw(t);case E.ZodNullable:return hw(t,r);case E.ZodOptional:return _w(t,r);case E.ZodMap:return uw(t,r);case E.ZodSet:return bw(t,r);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return $w(t,r);case E.ZodNaN:case E.ZodNever:return dw(r);case E.ZodEffects:return ow(t,r);case E.ZodAny:return Te(r);case E.ZodUnknown:return kw(r);case E.ZodDefault:return nw(t,r);case E.ZodBranded:return bf(t,r);case E.ZodReadonly:return Sw(t,r);case E.ZodCatch:return rw(t,r);case E.ZodPipeline:return yw(t,r);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return(o=>{})(e)}};function H(t,e,r=!1){var c;let o=e.seen.get(t);if(e.override){let u=(c=e.override)==null?void 0:c.call(e,t,e,o,r);if(u!==Kx)return u}if(o&&!r){let u=qO(o,e);if(u!==void 0)return u}let n={def:t,path:e.currentPath,jsonSchema:void 0};e.seen.set(t,n);let i=zw(t,t.typeName,e),a=typeof i=="function"?H(i(),e):i;if(a&&LO(t,e,a),e.postProcess){let u=e.postProcess(a,t,e);return n.jsonSchema=a,u}return n.jsonSchema=a,a}var qO=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:$f(e.currentPath,t.path)};case"none":case"seen":return t.path.length<e.currentPath.length&&t.path.every((r,o)=>e.currentPath[o]===r)?(console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`),Te(e)):e.$refStrategy==="seen"?Te(e):void 0}},LO=(t,e,r)=>(t.description&&(r.description=t.description,e.markdownDescription&&(r.markdownDescription=t.description)),r);var kf=(t,e)=>{var u;let r=Yx(e),o=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((l,[d,s])=>{var f;return{...l,[d]:(f=H(s._def,{...r,currentPath:[...r.basePath,r.definitionPath,d]},!0))!=null?f:Te(r)}},{}):void 0,n=typeof e=="string"?e:(e==null?void 0:e.nameStrategy)==="title"||e==null?void 0:e.name,i=(u=H(t._def,n===void 0?r:{...r,currentPath:[...r.basePath,r.definitionPath,n]},!1))!=null?u:Te(r),a=typeof e=="object"&&e.name!==void 0&&e.nameStrategy==="title"?e.name:void 0;a!==void 0&&(i.title=a),r.flags.hasReferencedOpenAiAnyType&&(o||(o={}),o[r.openAiAnyTypeName]||(o[r.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:r.$refStrategy==="relative"?"1":[...r.basePath,r.definitionPath,r.openAiAnyTypeName].join("/")}}));let c=n===void 0?o?{...i,[r.definitionPath]:o}:i:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,n].join("/"),[r.definitionPath]:{...o,[n]:i}};return r.target==="jsonSchema7"?c.$schema="http://json-schema.org/draft-07/schema#":(r.target==="jsonSchema2019-09"||r.target==="openAi")&&(c.$schema="https://json-schema.org/draft/2019-09/schema#"),r.target==="openAi"&&("anyOf"in c||"oneOf"in c||"allOf"in c||"type"in c&&Array.isArray(c.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),c};function Mv(t){let e=Go(t),r=e==null?void 0:e.method;if(!r)throw new Error("Schema is missing a method literal");let o=zx(r);if(typeof o!="string")throw new Error("Schema method literal must be a string");return o}function qv(t,e){let r=it(t,e);if(!r.success)throw r.error;return r.data}var VO=6e4,pi=class{constructor(e){this._options=e,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(df,r=>{this._oncancel(r)}),this.setNotificationHandler(li,r=>{this._onprogress(r)}),this.setRequestHandler(ui,r=>({})),this._taskStore=e==null?void 0:e.taskStore,this._taskMessageQueue=e==null?void 0:e.taskMessageQueue,this._taskStore&&(this.setRequestHandler(mf,async(r,o)=>{let n=await this._taskStore.getTask(r.params.taskId,o.sessionId);if(!n)throw new q(F.InvalidParams,"Failed to retrieve task: Task not found");return{...n}}),this.setRequestHandler(gf,async(r,o)=>{let n=async()=>{var c;let i=r.params.taskId;if(this._taskMessageQueue){let u;for(;u=await this._taskMessageQueue.dequeue(i,o.sessionId);){if(u.type==="response"||u.type==="error"){let l=u.message,d=l.id,s=this._requestResolvers.get(d);if(s)if(this._requestResolvers.delete(d),u.type==="response")s(l);else{let f=l,p=new q(f.error.code,f.error.message,f.error.data);s(p)}else{let f=u.type==="response"?"Response":"Error";this._onerror(new Error(`${f} handler missing for request ${d}`))}continue}await((c=this._transport)==null?void 0:c.send(u.message,{relatedRequestId:o.requestId}))}}let a=await this._taskStore.getTask(i,o.sessionId);if(!a)throw new q(F.InvalidParams,`Task not found: ${i}`);if(!cn(a.status))return await this._waitForTaskUpdate(i,o.signal),await n();if(cn(a.status)){let u=await this._taskStore.getTaskResult(i,o.sessionId);return this._clearTaskQueue(i),{...u,_meta:{...u._meta,[an]:{taskId:i}}}}return await n()};return await n()}),this.setRequestHandler(vf,async(r,o)=>{var n;try{let{tasks:i,nextCursor:a}=await this._taskStore.listTasks((n=r.params)==null?void 0:n.cursor,o.sessionId);return{tasks:i,nextCursor:a,_meta:{}}}catch(i){throw new q(F.InvalidParams,`Failed to list tasks: ${i instanceof Error?i.message:String(i)}`)}}),this.setRequestHandler(yf,async(r,o)=>{try{let n=await this._taskStore.getTask(r.params.taskId,o.sessionId);if(!n)throw new q(F.InvalidParams,`Task not found: ${r.params.taskId}`);if(cn(n.status))throw new q(F.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",o.sessionId),this._clearTaskQueue(r.params.taskId);let i=await this._taskStore.getTask(r.params.taskId,o.sessionId);if(!i)throw new q(F.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...i}}catch(n){throw n instanceof q?n:new q(F.InvalidRequest,`Failed to cancel task: ${n instanceof Error?n.message:String(n)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;let r=this._requestHandlerAbortControllers.get(e.params.requestId);r==null||r.abort(e.params.reason)}_setupTimeout(e,r,o,n,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(n,r),startTime:Date.now(),timeout:r,maxTotalTimeout:o,resetTimeoutOnProgress:i,onTimeout:n})}_resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let o=Date.now()-r.startTime;if(r.maxTotalTimeout&&o>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),q.fromError(F.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:o});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){var i,a,c;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=e;let r=(i=this.transport)==null?void 0:i.onclose;this._transport.onclose=()=>{r==null||r(),this._onclose()};let o=(a=this.transport)==null?void 0:a.onerror;this._transport.onerror=u=>{o==null||o(u),this._onerror(u)};let n=(c=this._transport)==null?void 0:c.onmessage;this._transport.onmessage=(u,l)=>{n==null||n(u,l),Ft(u)||ci(u)?this._onresponse(u):ar(u)?this._onrequest(u,l):Zx(u)?this._onnotification(u):this._onerror(new Error(`Unknown message type: ${JSON.stringify(u)}`))},await this._transport.start()}_onclose(){var o;let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let r=q.fromError(F.ConnectionClosed,"Connection closed");this._transport=void 0,(o=this.onclose)==null||o.call(this);for(let n of e.values())n(r)}_onerror(e){var r;(r=this.onerror)==null||r.call(this,e)}_onnotification(e){var o;let r=(o=this._notificationHandlers.get(e.method))!=null?o:this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,r){var d,s,f,p,m;let o=(d=this._requestHandlers.get(e.method))!=null?d:this.fallbackRequestHandler,n=this._transport,i=(p=(f=(s=e.params)==null?void 0:s._meta)==null?void 0:f[an])==null?void 0:p.taskId;if(o===void 0){let h={jsonrpc:"2.0",id:e.id,error:{code:F.MethodNotFound,message:"Method not found"}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:"error",message:h,timestamp:Date.now()},n==null?void 0:n.sessionId).catch(g=>this._onerror(new Error(`Failed to enqueue error response: ${g}`))):n==null||n.send(h).catch(g=>this._onerror(new Error(`Failed to send an error response: ${g}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let c=Dx(e.params)?e.params.task:void 0,u=this._taskStore?this.requestTaskStore(e,n==null?void 0:n.sessionId):void 0,l={signal:a.signal,sessionId:n==null?void 0:n.sessionId,_meta:(m=e.params)==null?void 0:m._meta,sendNotification:async h=>{if(a.signal.aborted)return;let g={relatedRequestId:e.id};i&&(g.relatedTask={taskId:i}),await this.notification(h,g)},sendRequest:async(h,g,y)=>{var b,x;if(a.signal.aborted)throw new q(F.ConnectionClosed,"Request was cancelled");let w={...y,relatedRequestId:e.id};i&&!w.relatedTask&&(w.relatedTask={taskId:i});let k=(x=(b=w.relatedTask)==null?void 0:b.taskId)!=null?x:i;return k&&u&&await u.updateTaskStatus(k,"input_required"),await this.request(h,g,w)},authInfo:r==null?void 0:r.authInfo,requestId:e.id,requestInfo:r==null?void 0:r.requestInfo,taskId:i,taskStore:u,taskRequestedTtl:c==null?void 0:c.ttl,closeSSEStream:r==null?void 0:r.closeSSEStream,closeStandaloneSSEStream:r==null?void 0:r.closeStandaloneSSEStream};Promise.resolve().then(()=>{c&&this.assertTaskHandlerCapability(e.method)}).then(()=>o(e,l)).then(async h=>{if(a.signal.aborted)return;let g={result:h,jsonrpc:"2.0",id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"response",message:g,timestamp:Date.now()},n==null?void 0:n.sessionId):await(n==null?void 0:n.send(g))},async h=>{var y;if(a.signal.aborted)return;let g={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(h.code)?h.code:F.InternalError,message:(y=h.message)!=null?y:"Internal error",...h.data!==void 0&&{data:h.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"error",message:g,timestamp:Date.now()},n==null?void 0:n.sessionId):await(n==null?void 0:n.send(g))}).catch(h=>this._onerror(new Error(`Failed to send response: ${h}`))).finally(()=>{this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:r,...o}=e.params,n=Number(r),i=this._progressHandlers.get(n);if(!i){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(n),c=this._timeoutInfo.get(n);if(c&&a&&c.resetTimeoutOnProgress)try{this._resetTimeout(n)}catch(u){this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),a(u);return}i(o)}_onresponse(e){let r=Number(e.id),o=this._requestResolvers.get(r);if(o){if(this._requestResolvers.delete(r),Ft(e))o(e);else{let a=new q(e.error.code,e.error.message,e.error.data);o(a)}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(e)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let i=!1;if(Ft(e)&&e.result&&typeof e.result=="object"){let a=e.result;if(a.task&&typeof a.task=="object"){let c=a.task;typeof c.taskId=="string"&&(i=!0,this._taskProgressTokens.set(c.taskId,r))}}if(i||this._progressHandlers.delete(r),Ft(e))n(e);else{let a=q.fromError(e.error.code,e.error.message,e.error.data);n(a)}}get transport(){return this._transport}async close(){var e;await((e=this._transport)==null?void 0:e.close())}async*requestStream(e,r,o){var a,c,u,l;let{task:n}=o!=null?o:{};if(!n){try{yield{type:"result",result:await this.request(e,r,o)}}catch(d){yield{type:"error",error:d instanceof q?d:new q(F.InternalError,String(d))}}return}let i;try{let d=await this.request(e,wr,o);if(d.task)i=d.task.taskId,yield{type:"taskCreated",task:d.task};else throw new q(F.InternalError,"Task creation did not return a task");for(;;){let s=await this.getTask({taskId:i},o);if(yield{type:"taskStatus",task:s},cn(s.status)){s.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:i},r,o)}:s.status==="failed"?yield{type:"error",error:new q(F.InternalError,`Task ${i} failed`)}:s.status==="cancelled"&&(yield{type:"error",error:new q(F.InternalError,`Task ${i} was cancelled`)});return}if(s.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:i},r,o)};return}let f=(u=(c=s.pollInterval)!=null?c:(a=this._options)==null?void 0:a.defaultTaskPollInterval)!=null?u:1e3;await new Promise(p=>setTimeout(p,f)),(l=o==null?void 0:o.signal)==null||l.throwIfAborted()}}catch(d){yield{type:"error",error:d instanceof q?d:new q(F.InternalError,String(d))}}}request(e,r,o){let{relatedRequestId:n,resumptionToken:i,onresumptiontoken:a,task:c,relatedTask:u}=o!=null?o:{};return new Promise((l,d)=>{var w,k,b,x,D,V,G;let s=se=>{d(se)};if(!this._transport){s(new Error("Not connected"));return}if(((w=this._options)==null?void 0:w.enforceStrictCapabilities)===!0)try{this.assertCapabilityForMethod(e.method),c&&this.assertTaskCapability(e.method)}catch(se){s(se);return}(k=o==null?void 0:o.signal)==null||k.throwIfAborted();let f=this._requestMessageId++,p={...e,jsonrpc:"2.0",id:f};o!=null&&o.onprogress&&(this._progressHandlers.set(f,o.onprogress),p.params={...e.params,_meta:{...((b=e.params)==null?void 0:b._meta)||{},progressToken:f}}),c&&(p.params={...p.params,task:c}),u&&(p.params={...p.params,_meta:{...((x=p.params)==null?void 0:x._meta)||{},[an]:u}});let m=se=>{var Oe;this._responseHandlers.delete(f),this._progressHandlers.delete(f),this._cleanupTimeout(f),(Oe=this._transport)==null||Oe.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:f,reason:String(se)}},{relatedRequestId:n,resumptionToken:i,onresumptiontoken:a}).catch(Qt=>this._onerror(new Error(`Failed to send cancellation: ${Qt}`)));let De=se instanceof q?se:new q(F.RequestTimeout,String(se));d(De)};this._responseHandlers.set(f,se=>{var De;if(!((De=o==null?void 0:o.signal)!=null&&De.aborted)){if(se instanceof Error)return d(se);try{let Oe=it(r,se.result);Oe.success?l(Oe.data):d(Oe.error)}catch(Oe){d(Oe)}}}),(D=o==null?void 0:o.signal)==null||D.addEventListener("abort",()=>{var se;m((se=o==null?void 0:o.signal)==null?void 0:se.reason)});let h=(V=o==null?void 0:o.timeout)!=null?V:VO,g=()=>m(q.fromError(F.RequestTimeout,"Request timed out",{timeout:h}));this._setupTimeout(f,h,o==null?void 0:o.maxTotalTimeout,g,(G=o==null?void 0:o.resetTimeoutOnProgress)!=null?G:!1);let y=u==null?void 0:u.taskId;if(y){let se=De=>{let Oe=this._responseHandlers.get(f);Oe?Oe(De):this._onerror(new Error(`Response handler missing for side-channeled request ${f}`))};this._requestResolvers.set(f,se),this._enqueueTaskMessage(y,{type:"request",message:p,timestamp:Date.now()}).catch(De=>{this._cleanupTimeout(f),d(De)})}else this._transport.send(p,{relatedRequestId:n,resumptionToken:i,onresumptiontoken:a}).catch(se=>{this._cleanupTimeout(f),d(se)})})}async getTask(e,r){return this.request({method:"tasks/get",params:e},hf,r)}async getTaskResult(e,r,o){return this.request({method:"tasks/result",params:e},r,o)}async listTasks(e,r){return this.request({method:"tasks/list",params:e},_f,r)}async cancelTask(e,r){return this.request({method:"tasks/cancel",params:e},Lx,r)}async notification(e,r){var c,u,l,d,s;if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);let o=(c=r==null?void 0:r.relatedTask)==null?void 0:c.taskId;if(o){let f={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...((u=e.params)==null?void 0:u._meta)||{},[an]:r.relatedTask}}};await this._enqueueTaskMessage(o,{type:"notification",message:f,timestamp:Date.now()});return}if(((d=(l=this._options)==null?void 0:l.debouncedNotificationMethods)!=null?d:[]).includes(e.method)&&!e.params&&!(r!=null&&r.relatedRequestId)&&!(r!=null&&r.relatedTask)){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{var p,m;if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let f={...e,jsonrpc:"2.0"};r!=null&&r.relatedTask&&(f={...f,params:{...f.params,_meta:{...((p=f.params)==null?void 0:p._meta)||{},[an]:r.relatedTask}}}),(m=this._transport)==null||m.send(f,r).catch(h=>this._onerror(h))});return}let a={...e,jsonrpc:"2.0"};r!=null&&r.relatedTask&&(a={...a,params:{...a.params,_meta:{...((s=a.params)==null?void 0:s._meta)||{},[an]:r.relatedTask}}}),await this._transport.send(a,r)}setRequestHandler(e,r){let o=Mv(e);this.assertRequestHandlerCapability(o),this._requestHandlers.set(o,(n,i)=>{let a=qv(e,n);return Promise.resolve(r(a,i))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){let o=Mv(e);this._notificationHandlers.set(o,n=>{let i=qv(e,n);return Promise.resolve(r(i))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let r=this._taskProgressTokens.get(e);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,r,o){var i;if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let n=(i=this._options)==null?void 0:i.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,r,o,n)}async _clearTaskQueue(e,r){if(this._taskMessageQueue){let o=await this._taskMessageQueue.dequeueAll(e,r);for(let n of o)if(n.type==="request"&&ar(n.message)){let i=n.message.id,a=this._requestResolvers.get(i);a?(a(new q(F.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(i)):this._onerror(new Error(`Resolver missing for request ${i} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,r){var n,i,a;let o=(i=(n=this._options)==null?void 0:n.defaultTaskPollInterval)!=null?i:1e3;try{let c=await((a=this._taskStore)==null?void 0:a.getTask(e));c!=null&&c.pollInterval&&(o=c.pollInterval)}catch{}return new Promise((c,u)=>{if(r.aborted){u(new q(F.InvalidRequest,"Request cancelled"));return}let l=setTimeout(c,o);r.addEventListener("abort",()=>{clearTimeout(l),u(new q(F.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,r){let o=this._taskStore;if(!o)throw new Error("No task store configured");return{createTask:async n=>{if(!e)throw new Error("No request provided");return await o.createTask(n,e.id,{method:e.method,params:e.params},r)},getTask:async n=>{let i=await o.getTask(n,r);if(!i)throw new q(F.InvalidParams,"Failed to retrieve task: Task not found");return i},storeTaskResult:async(n,i,a)=>{await o.storeTaskResult(n,i,a,r);let c=await o.getTask(n,r);if(c){let u=Hs.parse({method:"notifications/tasks/status",params:c});await this.notification(u),cn(c.status)&&this._cleanupTaskProgressHandler(n)}},getTaskResult:n=>o.getTaskResult(n,r),updateTaskStatus:async(n,i,a)=>{let c=await o.getTask(n,r);if(!c)throw new q(F.InvalidParams,`Task "${n}" not found - it may have been cleaned up`);if(cn(c.status))throw new q(F.InvalidParams,`Cannot update task "${n}" from terminal status "${c.status}" to "${i}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await o.updateTaskStatus(n,i,a,r);let u=await o.getTask(n,r);if(u){let l=Hs.parse({method:"notifications/tasks/status",params:u});await this.notification(l),cn(u.status)&&this._cleanupTaskProgressHandler(n)}},listTasks:n=>o.listTasks(n,r)}}};function Iw(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function Sf(t,e){let r={...t};for(let o in e){let n=o,i=e[n];if(i===void 0)continue;let a=r[n];Iw(a)&&Iw(i)?r[n]={...a,...i}:r[n]=i}return r}var p0=er(zy(),1),m0=er(f0(),1);function RC(){let t=new p0.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,m0.default)(t),t}var Ei=class{constructor(e){this._ajv=e!=null?e:RC()}getValidator(e){var o;let r="$id"in e&&typeof e.$id=="string"?(o=this._ajv.getSchema(e.$id))!=null?o:this._ajv.compile(e):this._ajv.compile(e);return n=>r(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}};var cp=class{constructor(e){this._client=e}async*callToolStream(e,r=sn,o){var u;let n=this._client,i={...o,task:(u=o==null?void 0:o.task)!=null?u:n.isToolTask(e.name)?{}:void 0},a=n.requestStream({method:"tools/call",params:e},r,i),c=n.getToolOutputValidator(e.name);for await(let l of a){if(l.type==="result"&&c){let d=l.result;if(!d.structuredContent&&!d.isError){yield{type:"error",error:new q(F.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`)};return}if(d.structuredContent)try{let s=c(d.structuredContent);if(!s.valid){yield{type:"error",error:new q(F.InvalidParams,`Structured content does not match the tool's output schema: ${s.errorMessage}`)};return}}catch(s){if(s instanceof q){yield{type:"error",error:s};return}yield{type:"error",error:new q(F.InvalidParams,`Failed to validate structured content: ${s instanceof Error?s.message:String(s)}`)};return}}yield l}}async getTask(e,r){return this._client.getTask({taskId:e},r)}async getTaskResult(e,r,o){return this._client.getTaskResult({taskId:e},r,o)}async listTasks(e,r){return this._client.listTasks(e?{cursor:e}:void 0,r)}async cancelTask(e,r){return this._client.cancelTask({taskId:e},r)}requestStream(e,r,o){return this._client.requestStream(e,r,o)}};function up(t,e,r){var o;if(!t)throw new Error(`${r} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!((o=t.tools)!=null&&o.call))throw new Error(`${r} does not support task creation for tools/call (required for ${e})`);break;default:break}}function lp(t,e,r){var o,n;if(!t)throw new Error(`${r} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!((o=t.sampling)!=null&&o.createMessage))throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!((n=t.elicitation)!=null&&n.create))throw new Error(`${r} does not support task creation for elicitation/create (required for ${e})`);break;default:break}}function dp(t,e){if(!(!t||e===null||typeof e!="object")){if(t.type==="object"&&t.properties&&typeof t.properties=="object"){let r=e,o=t.properties;for(let n of Object.keys(o)){let i=o[n];r[n]===void 0&&Object.prototype.hasOwnProperty.call(i,"default")&&(r[n]=i.default),r[n]!==void 0&&dp(i,r[n])}}if(Array.isArray(t.anyOf))for(let r of t.anyOf)typeof r!="boolean"&&dp(r,e);if(Array.isArray(t.oneOf))for(let r of t.oneOf)typeof r!="boolean"&&dp(r,e)}}function NC(t){if(!t)return{supportsFormMode:!1,supportsUrlMode:!1};let e=t.form!==void 0,r=t.url!==void 0;return{supportsFormMode:e||!e&&!r,supportsUrlMode:r}}var fp=class extends pi{constructor(e,r){var o,n;super(r),this._clientInfo=e,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=(o=r==null?void 0:r.capabilities)!=null?o:{},this._jsonSchemaValidator=(n=r==null?void 0:r.jsonSchemaValidator)!=null?n:new Ei,r!=null&&r.listChanged&&(this._pendingListChangedConfig=r.listChanged)}_setupListChangedHandlers(e){var r,o,n,i,a,c;e.tools&&((o=(r=this._serverCapabilities)==null?void 0:r.tools)!=null&&o.listChanged)&&this._setupListChangedHandler("tools",Tv,e.tools,async()=>(await this.listTools()).tools),e.prompts&&((i=(n=this._serverCapabilities)==null?void 0:n.prompts)!=null&&i.listChanged)&&this._setupListChangedHandler("prompts",zv,e.prompts,async()=>(await this.listPrompts()).prompts),e.resources&&((c=(a=this._serverCapabilities)==null?void 0:a.resources)!=null&&c.listChanged)&&this._setupListChangedHandler("resources",yv,e.resources,async()=>(await this.listResources()).resources)}get experimental(){return this._experimental||(this._experimental={tasks:new cp(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=Sf(this._capabilities,e)}setRequestHandler(e,r){var c,u,l;let o=Go(e),n=o==null?void 0:o.method;if(!n)throw new Error("Schema is missing a method literal");let i;if(rn(n)){let d=n,s=(c=d._zod)==null?void 0:c.def;i=(u=s==null?void 0:s.value)!=null?u:d.value}else{let d=n,s=d._def;i=(l=s==null?void 0:s.value)!=null?l:d.value}if(typeof i!="string")throw new Error("Schema method literal must be a string");let a=i;if(a==="elicitation/create"){let d=async(s,f)=>{var x,D,V;let p=it(jv,s);if(!p.success){let G=p.error instanceof Error?p.error.message:String(p.error);throw new q(F.InvalidParams,`Invalid elicitation request: ${G}`)}let{params:m}=p.data;m.mode=(x=m.mode)!=null?x:"form";let{supportsFormMode:h,supportsUrlMode:g}=NC(this._capabilities.elicitation);if(m.mode==="form"&&!h)throw new q(F.InvalidParams,"Client does not support form-mode elicitation requests");if(m.mode==="url"&&!g)throw new q(F.InvalidParams,"Client does not support URL-mode elicitation requests");let y=await Promise.resolve(r(s,f));if(m.task){let G=it(wr,y);if(!G.success){let se=G.error instanceof Error?G.error.message:String(G.error);throw new q(F.InvalidParams,`Invalid task creation result: ${se}`)}return G.data}let w=it(fi,y);if(!w.success){let G=w.error instanceof Error?w.error.message:String(w.error);throw new q(F.InvalidParams,`Invalid elicitation result: ${G}`)}let k=w.data,b=m.mode==="form"?m.requestedSchema:void 0;if(m.mode==="form"&&k.action==="accept"&&k.content&&b&&(V=(D=this._capabilities.elicitation)==null?void 0:D.form)!=null&&V.applyDefaults)try{dp(b,k.content)}catch{}return k};return super.setRequestHandler(e,d)}if(a==="sampling/createMessage"){let d=async(s,f)=>{let p=it(Ov,s);if(!p.success){let k=p.error instanceof Error?p.error.message:String(p.error);throw new q(F.InvalidParams,`Invalid sampling request: ${k}`)}let{params:m}=p.data,h=await Promise.resolve(r(s,f));if(m.task){let k=it(wr,h);if(!k.success){let b=k.error instanceof Error?k.error.message:String(k.error);throw new q(F.InvalidParams,`Invalid task creation result: ${b}`)}return k.data}let y=m.tools||m.toolChoice?Xs:Ks,w=it(y,h);if(!w.success){let k=w.error instanceof Error?w.error.message:String(w.error);throw new q(F.InvalidParams,`Invalid sampling result: ${k}`)}return w.data};return super.setRequestHandler(e,d)}return super.setRequestHandler(e,r)}assertCapability(e,r){var o;if(!((o=this._serverCapabilities)!=null&&o[e]))throw new Error(`Server does not support ${e} (required for ${r})`)}async connect(e,r){if(await super.connect(e),e.sessionId===void 0)try{let o=await this.request({method:"initialize",params:{protocolVersion:on,capabilities:this._capabilities,clientInfo:this._clientInfo}},pv,r);if(o===void 0)throw new Error(`Server sent invalid initialize result: ${o}`);if(!Jn.includes(o.protocolVersion))throw new Error(`Server's protocol version is not supported: ${o.protocolVersion}`);this._serverCapabilities=o.capabilities,this._serverVersion=o.serverInfo,e.setProtocolVersion&&e.setProtocolVersion(o.protocolVersion),this._instructions=o.instructions,await this.notification({method:"notifications/initialized"}),this._pendingListChangedConfig&&(this._setupListChangedHandlers(this._pendingListChangedConfig),this._pendingListChangedConfig=void 0)}catch(o){throw this.close(),o}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(e){var r,o,n,i,a;switch(e){case"logging/setLevel":if(!((r=this._serverCapabilities)!=null&&r.logging))throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!((o=this._serverCapabilities)!=null&&o.prompts))throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!((n=this._serverCapabilities)!=null&&n.resources))throw new Error(`Server does not support resources (required for ${e})`);if(e==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${e})`);break;case"tools/call":case"tools/list":if(!((i=this._serverCapabilities)!=null&&i.tools))throw new Error(`Server does not support tools (required for ${e})`);break;case"completion/complete":if(!((a=this._serverCapabilities)!=null&&a.completions))throw new Error(`Server does not support completions (required for ${e})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(e){var r;switch(e){case"notifications/roots/list_changed":if(!((r=this._capabilities.roots)!=null&&r.listChanged))throw new Error(`Client does not support roots list changed notifications (required for ${e})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${e})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${e})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${e})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Client does not support tasks capability (required for ${e})`);break;case"ping":break}}assertTaskCapability(e){var r,o;up((o=(r=this._serverCapabilities)==null?void 0:r.tasks)==null?void 0:o.requests,e,"Server")}assertTaskHandlerCapability(e){var r;this._capabilities&&lp((r=this._capabilities.tasks)==null?void 0:r.requests,e,"Client")}async ping(e){return this.request({method:"ping"},xr,e)}async complete(e,r){return this.request({method:"completion/complete",params:e},Rv,r)}async setLoggingLevel(e,r){return this.request({method:"logging/setLevel",params:{level:e}},xr,r)}async getPrompt(e,r){return this.request({method:"prompts/get",params:e},Sv,r)}async listPrompts(e,r){return this.request({method:"prompts/list",params:e},$v,r)}async listResources(e,r){return this.request({method:"resources/list",params:e},hv,r)}async listResourceTemplates(e,r){return this.request({method:"resources/templates/list",params:e},gv,r)}async readResource(e,r){return this.request({method:"resources/read",params:e},_v,r)}async subscribeResource(e,r){return this.request({method:"resources/subscribe",params:e},xr,r)}async unsubscribeResource(e,r){return this.request({method:"resources/unsubscribe",params:e},xr,r)}async callTool(e,r=sn,o){if(this.isToolTaskRequired(e.name))throw new q(F.InvalidRequest,`Tool "${e.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);let n=await this.request({method:"tools/call",params:e},r,o),i=this.getToolOutputValidator(e.name);if(i){if(!n.structuredContent&&!n.isError)throw new q(F.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`);if(n.structuredContent)try{let a=i(n.structuredContent);if(!a.valid)throw new q(F.InvalidParams,`Structured content does not match the tool's output schema: ${a.errorMessage}`)}catch(a){throw a instanceof q?a:new q(F.InvalidParams,`Failed to validate structured content: ${a instanceof Error?a.message:String(a)}`)}}return n}isToolTask(e){var r,o,n,i;return(i=(n=(o=(r=this._serverCapabilities)==null?void 0:r.tasks)==null?void 0:o.requests)==null?void 0:n.tools)!=null&&i.call?this._cachedKnownTaskTools.has(e):!1}isToolTaskRequired(e){return this._cachedRequiredTaskTools.has(e)}cacheToolMetadata(e){var r;this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(let o of e){if(o.outputSchema){let i=this._jsonSchemaValidator.getValidator(o.outputSchema);this._cachedToolOutputValidators.set(o.name,i)}let n=(r=o.execution)==null?void 0:r.taskSupport;(n==="required"||n==="optional")&&this._cachedKnownTaskTools.add(o.name),n==="required"&&this._cachedRequiredTaskTools.add(o.name)}}getToolOutputValidator(e){return this._cachedToolOutputValidators.get(e)}async listTools(e,r){let o=await this.request({method:"tools/list",params:e},Pv,r);return this.cacheToolMetadata(o.tools),o}_setupListChangedHandler(e,r,o,n){let i=Bx.safeParse(o);if(!i.success)throw new Error(`Invalid ${e} listChanged options: ${i.error.message}`);if(typeof o.onChanged!="function")throw new Error(`Invalid ${e} listChanged options: onChanged must be a function`);let{autoRefresh:a,debounceMs:c}=i.data,{onChanged:u}=o,l=async()=>{if(!a){u(null,null);return}try{let s=await n();u(null,s)}catch(s){let f=s instanceof Error?s:new Error(String(s));u(f,null)}},d=()=>{if(c){let s=this._listChangedDebounceTimers.get(e);s&&clearTimeout(s);let f=setTimeout(l,c);this._listChangedDebounceTimers.set(e,f)}else l()};this.setNotificationHandler(r,d)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}};var pp=class{constructor(e){this._server=e}requestStream(e,r,o){return this._server.requestStream(e,r,o)}async getTask(e,r){return this._server.getTask({taskId:e},r)}async getTaskResult(e,r,o){return this._server.getTaskResult({taskId:e},r,o)}async listTasks(e,r){return this._server.listTasks(e?{cursor:e}:void 0,r)}async cancelTask(e,r){return this._server.cancelTask({taskId:e},r)}};var mp=class extends pi{constructor(e,r){var o,n;super(r),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Gs.options.map((i,a)=>[i,a])),this.isMessageIgnored=(i,a)=>{let c=this._loggingLevels.get(a);return c?this.LOG_LEVEL_SEVERITY.get(i)<this.LOG_LEVEL_SEVERITY.get(c):!1},this._capabilities=(o=r==null?void 0:r.capabilities)!=null?o:{},this._instructions=r==null?void 0:r.instructions,this._jsonSchemaValidator=(n=r==null?void 0:r.jsonSchemaValidator)!=null?n:new Ei,this.setRequestHandler(ff,i=>this._oninitialize(i)),this.setNotificationHandler(pf,()=>{var i;return(i=this.oninitialized)==null?void 0:i.call(this)}),this._capabilities.logging&&this.setRequestHandler(Ev,async(i,a)=>{var d;let c=a.sessionId||((d=a.requestInfo)==null?void 0:d.headers["mcp-session-id"])||void 0,{level:u}=i.params,l=Gs.safeParse(u);return l.success&&this._loggingLevels.set(c,l.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new pp(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=Sf(this._capabilities,e)}setRequestHandler(e,r){var c,u,l;let o=Go(e),n=o==null?void 0:o.method;if(!n)throw new Error("Schema is missing a method literal");let i;if(rn(n)){let d=n,s=(c=d._zod)==null?void 0:c.def;i=(u=s==null?void 0:s.value)!=null?u:d.value}else{let d=n,s=d._def;i=(l=s==null?void 0:s.value)!=null?l:d.value}if(typeof i!="string")throw new Error("Schema method literal must be a string");if(i==="tools/call"){let d=async(s,f)=>{let p=it(Bs,s);if(!p.success){let y=p.error instanceof Error?p.error.message:String(p.error);throw new q(F.InvalidParams,`Invalid tools/call request: ${y}`)}let{params:m}=p.data,h=await Promise.resolve(r(s,f));if(m.task){let y=it(wr,h);if(!y.success){let w=y.error instanceof Error?y.error.message:String(y.error);throw new q(F.InvalidParams,`Invalid task creation result: ${w}`)}return y.data}let g=it(sn,h);if(!g.success){let y=g.error instanceof Error?g.error.message:String(g.error);throw new q(F.InvalidParams,`Invalid tools/call result: ${y}`)}return g.data};return super.setRequestHandler(e,d)}return super.setRequestHandler(e,r)}assertCapabilityForMethod(e){var r,o,n;switch(e){case"sampling/createMessage":if(!((r=this._clientCapabilities)!=null&&r.sampling))throw new Error(`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!((o=this._clientCapabilities)!=null&&o.elicitation))throw new Error(`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!((n=this._clientCapabilities)!=null&&n.roots))throw new Error(`Client does not support listing roots (required for ${e})`);break;case"ping":break}}assertNotificationCapability(e){var r,o;switch(e){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);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 ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!((o=(r=this._clientCapabilities)==null?void 0:r.elicitation)!=null&&o.url))throw new Error(`Client does not support URL elicitation (required for ${e})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"completion/complete":if(!this._capabilities.completions)throw new Error(`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${e})`);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 ${e})`);break;case"ping":case"initialize":break}}assertTaskCapability(e){var r,o;lp((o=(r=this._clientCapabilities)==null?void 0:r.tasks)==null?void 0:o.requests,e,"Client")}assertTaskHandlerCapability(e){var r;this._capabilities&&up((r=this._capabilities.tasks)==null?void 0:r.requests,e,"Server")}async _oninitialize(e){let r=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:Jn.includes(r)?r:on,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"},xr)}async createMessage(e,r){var o,n;if((e.tools||e.toolChoice)&&!((n=(o=this._clientCapabilities)==null?void 0:o.sampling)!=null&&n.tools))throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let i=e.messages[e.messages.length-1],a=Array.isArray(i.content)?i.content:[i.content],c=a.some(s=>s.type==="tool_result"),u=e.messages.length>1?e.messages[e.messages.length-2]:void 0,l=u?Array.isArray(u.content)?u.content:[u.content]:[],d=l.some(s=>s.type==="tool_use");if(c){if(a.some(s=>s.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!d)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(d){let s=new Set(l.filter(p=>p.type==="tool_use").map(p=>p.id)),f=new Set(a.filter(p=>p.type==="tool_result").map(p=>p.toolUseId));if(s.size!==f.size||![...s].every(p=>f.has(p)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},Xs,r):this.request({method:"sampling/createMessage",params:e},Ks,r)}async elicitInput(e,r){var n,i,a,c,u;switch((n=e.mode)!=null?n:"form"){case"url":{if(!((a=(i=this._clientCapabilities)==null?void 0:i.elicitation)!=null&&a.url))throw new Error("Client does not support url elicitation.");let l=e;return this.request({method:"elicitation/create",params:l},fi,r)}case"form":{if(!((u=(c=this._clientCapabilities)==null?void 0:c.elicitation)!=null&&u.form))throw new Error("Client does not support form elicitation.");let l=e.mode==="form"?e:{...e,mode:"form"},d=await this.request({method:"elicitation/create",params:l},fi,r);if(d.action==="accept"&&d.content&&l.requestedSchema)try{let f=this._jsonSchemaValidator.getValidator(l.requestedSchema)(d.content);if(!f.valid)throw new q(F.InvalidParams,`Elicitation response content does not match requested schema: ${f.errorMessage}`)}catch(s){throw s instanceof q?s:new q(F.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return d}}}createElicitationCompletionNotifier(e,r){var o,n;if(!((n=(o=this._clientCapabilities)==null?void 0:o.elicitation)!=null&&n.url))throw new Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},r)}async listRoots(e,r){return this.request({method:"roots/list",params:e},Cv,r)}async sendLoggingMessage(e,r){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,r))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};var hp=class extends Error{constructor(e,r){super(e),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}};function Ny(t){}function gp(t){if(typeof t=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:e=Ny,onError:r=Ny,onRetry:o=Ny,onComment:n}=t,i="",a=!0,c,u="",l="";function d(h){let g=a?h.replace(/^\xEF\xBB\xBF/,""):h,[y,w]=CC(`${i}${g}`);for(let k of y)s(k);i=w,a=!1}function s(h){if(h===""){p();return}if(h.startsWith(":")){n&&n(h.slice(h.startsWith(": ")?2:1));return}let g=h.indexOf(":");if(g!==-1){let y=h.slice(0,g),w=h[g+1]===" "?2:1,k=h.slice(g+w);f(y,k,h);return}f(h,"",h)}function f(h,g,y){switch(h){case"event":l=g;break;case"data":u=`${u}${g}
`;break;case"id":c=g.includes("\0")?void 0:g;break;case"retry":/^\d+$/.test(g)?o(parseInt(g,10)):r(new hp(`Invalid \`retry\` value: "${g}"`,{type:"invalid-retry",value:g,line:y}));break;default:r(new hp(`Unknown field "${h.length>20?`${h.slice(0,20)}\u2026`:h}"`,{type:"unknown-field",field:h,value:g,line:y}));break}}function p(){u.length>0&&e({id:c,event:l||void 0,data:u.endsWith(`
`)?u.slice(0,-1):u}),c=void 0,u="",l=""}function m(h={}){i&&h.consume&&s(i),a=!0,c=void 0,u="",l="",i=""}return{feed:d,reset:m}}function CC(t){let e=[],r="",o=0;for(;o<t.length;){let n=t.indexOf("\r",o),i=t.indexOf(`
`,o),a=-1;if(n!==-1&&i!==-1?a=Math.min(n,i):n!==-1?a=n:i!==-1&&(a=i),a===-1){r=t.slice(o);break}else{let c=t.slice(o,a);e.push(c),o=a+1,t[o-1]==="\r"&&t[o]===`
`&&o++}}return[e,r]}var _p=class extends Event{constructor(e,r){var o,n;super(e),this.code=(o=r==null?void 0:r.code)!=null?o:void 0,this.message=(n=r==null?void 0:r.message)!=null?n:void 0}[Symbol.for("nodejs.util.inspect.custom")](e,r,o){return o(h0(this),r)}[Symbol.for("Deno.customInspect")](e,r){return e(h0(this),r)}};function DC(t){let e=globalThis.DOMException;return typeof e=="function"?new e(t,"SyntaxError"):new SyntaxError(t)}function Cy(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map(Cy).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${Cy(t.cause)}`:t.message:`${t}`}function h0(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var v0=t=>{throw TypeError(t)},Vy=(t,e,r)=>e.has(t)||v0("Cannot "+r),oe=(t,e,r)=>(Vy(t,e,"read from private field"),r?r.call(t):e.get(t)),Ze=(t,e,r)=>e.has(t)?v0("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Ee=(t,e,r,o)=>(Vy(t,e,"write to private field"),e.set(t,r),r),Tr=(t,e,r)=>(Vy(t,e,"access private method"),r),vt,ro,Oi,vp,yp,Ec,Ni,Oc,vn,ji,Ci,Ri,Pc,Yt,Dy,Uy,Ay,g0,Zy,My,Tc,qy,Ly,no=class extends EventTarget{constructor(e,r){var o,n;super(),Ze(this,Yt),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Ze(this,vt),Ze(this,ro),Ze(this,Oi),Ze(this,vp),Ze(this,yp),Ze(this,Ec),Ze(this,Ni),Ze(this,Oc,null),Ze(this,vn),Ze(this,ji),Ze(this,Ci,null),Ze(this,Ri,null),Ze(this,Pc,null),Ze(this,Uy,async i=>{var a;oe(this,ji).reset();let{body:c,redirected:u,status:l,headers:d}=i;if(l===204){Tr(this,Yt,Tc).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(u?Ee(this,Oi,new URL(i.url)):Ee(this,Oi,void 0),l!==200){Tr(this,Yt,Tc).call(this,`Non-200 status code (${l})`,l);return}if(!(d.get("content-type")||"").startsWith("text/event-stream")){Tr(this,Yt,Tc).call(this,'Invalid content type, expected "text/event-stream"',l);return}if(oe(this,vt)===this.CLOSED)return;Ee(this,vt,this.OPEN);let s=new Event("open");if((a=oe(this,Pc))==null||a.call(this,s),this.dispatchEvent(s),typeof c!="object"||!c||!("getReader"in c)){Tr(this,Yt,Tc).call(this,"Invalid response body, expected a web ReadableStream",l),this.close();return}let f=new TextDecoder,p=c.getReader(),m=!0;do{let{done:h,value:g}=await p.read();g&&oe(this,ji).feed(f.decode(g,{stream:!h})),h&&(m=!1,oe(this,ji).reset(),Tr(this,Yt,qy).call(this))}while(m)}),Ze(this,Ay,i=>{Ee(this,vn,void 0),!(i.name==="AbortError"||i.type==="aborted")&&Tr(this,Yt,qy).call(this,Cy(i))}),Ze(this,Zy,i=>{typeof i.id=="string"&&Ee(this,Oc,i.id);let a=new MessageEvent(i.event||"message",{data:i.data,origin:oe(this,Oi)?oe(this,Oi).origin:oe(this,ro).origin,lastEventId:i.id||""});oe(this,Ri)&&(!i.event||i.event==="message")&&oe(this,Ri).call(this,a),this.dispatchEvent(a)}),Ze(this,My,i=>{Ee(this,Ec,i)}),Ze(this,Ly,()=>{Ee(this,Ni,void 0),oe(this,vt)===this.CONNECTING&&Tr(this,Yt,Dy).call(this)});try{if(e instanceof URL)Ee(this,ro,e);else if(typeof e=="string")Ee(this,ro,new URL(e,UC()));else throw new Error("Invalid URL")}catch{throw DC("An invalid or illegal string was specified")}Ee(this,ji,gp({onEvent:oe(this,Zy),onRetry:oe(this,My)})),Ee(this,vt,this.CONNECTING),Ee(this,Ec,3e3),Ee(this,yp,(o=r==null?void 0:r.fetch)!=null?o:globalThis.fetch),Ee(this,vp,(n=r==null?void 0:r.withCredentials)!=null?n:!1),Tr(this,Yt,Dy).call(this)}get readyState(){return oe(this,vt)}get url(){return oe(this,ro).href}get withCredentials(){return oe(this,vp)}get onerror(){return oe(this,Ci)}set onerror(e){Ee(this,Ci,e)}get onmessage(){return oe(this,Ri)}set onmessage(e){Ee(this,Ri,e)}get onopen(){return oe(this,Pc)}set onopen(e){Ee(this,Pc,e)}addEventListener(e,r,o){let n=r;super.addEventListener(e,n,o)}removeEventListener(e,r,o){let n=r;super.removeEventListener(e,n,o)}close(){oe(this,Ni)&&clearTimeout(oe(this,Ni)),oe(this,vt)!==this.CLOSED&&(oe(this,vn)&&oe(this,vn).abort(),Ee(this,vt,this.CLOSED),Ee(this,vn,void 0))}};vt=new WeakMap,ro=new WeakMap,Oi=new WeakMap,vp=new WeakMap,yp=new WeakMap,Ec=new WeakMap,Ni=new WeakMap,Oc=new WeakMap,vn=new WeakMap,ji=new WeakMap,Ci=new WeakMap,Ri=new WeakMap,Pc=new WeakMap,Yt=new WeakSet,Dy=function(){Ee(this,vt,this.CONNECTING),Ee(this,vn,new AbortController),oe(this,yp)(oe(this,ro),Tr(this,Yt,g0).call(this)).then(oe(this,Uy)).catch(oe(this,Ay))},Uy=new WeakMap,Ay=new WeakMap,g0=function(){var t;let e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...oe(this,Oc)?{"Last-Event-ID":oe(this,Oc)}:void 0},cache:"no-store",signal:(t=oe(this,vn))==null?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},Zy=new WeakMap,My=new WeakMap,Tc=function(t,e){var r;oe(this,vt)!==this.CLOSED&&Ee(this,vt,this.CLOSED);let o=new _p("error",{code:e,message:t});(r=oe(this,Ci))==null||r.call(this,o),this.dispatchEvent(o)},qy=function(t,e){var r;if(oe(this,vt)===this.CLOSED)return;Ee(this,vt,this.CONNECTING);let o=new _p("error",{code:e,message:t});(r=oe(this,Ci))==null||r.call(this,o),this.dispatchEvent(o),Ee(this,Ni,setTimeout(oe(this,Ly),oe(this,Ec)))},Ly=new WeakMap,no.CONNECTING=0,no.OPEN=1,no.CLOSED=2;function UC(){let t="document"in globalThis?globalThis.document:void 0;return t&&typeof t=="object"&&"baseURI"in t&&typeof t.baseURI=="string"?t.baseURI:void 0}function Di(t){return t?t instanceof Headers?Object.fromEntries(t.entries()):Array.isArray(t)?Object.fromEntries(t):{...t}:{}}function $p(t=fetch,e){return e?async(r,o)=>{let n={...e,...o,headers:o!=null&&o.headers?{...Di(e.headers),...Di(o.headers)}:e.headers};return t(r,n)}:t}var Fy,_0,y0,$0;Fy=($0=(y0=(_0=globalThis.crypto)==null?void 0:_0.webcrypto)!=null?y0:globalThis.crypto)!=null?$0:import("node:crypto").then(t=>t.webcrypto);async function AC(t){return(await Fy).getRandomValues(new Uint8Array(t))}async function ZC(t){let e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",r="",o=await AC(t);for(let n=0;n<t;n++){let i=o[n]%e.length;r+=e[i]}return r}async function MC(t){return await ZC(t)}async function qC(t){let e=await(await Fy).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Jy(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;let e=await MC(t),r=await qC(e);return{code_verifier:e,code_challenge:r}}var We=hs().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:sf.custom,message:"URL must be parseable",fatal:!0}),kn}).refine(t=>{let e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),x0=Re({resource:v().url(),authorization_servers:j(We).optional(),jwks_uri:v().url().optional(),scopes_supported:j(v()).optional(),bearer_methods_supported:j(v()).optional(),resource_signing_alg_values_supported:j(v()).optional(),resource_name:v().optional(),resource_documentation:v().optional(),resource_policy_uri:v().url().optional(),resource_tos_uri:v().url().optional(),tls_client_certificate_bound_access_tokens:pe().optional(),authorization_details_types_supported:j(v()).optional(),dpop_signing_alg_values_supported:j(v()).optional(),dpop_bound_access_tokens_required:pe().optional()}),Hy=Re({issuer:v(),authorization_endpoint:We,token_endpoint:We,registration_endpoint:We.optional(),scopes_supported:j(v()).optional(),response_types_supported:j(v()),response_modes_supported:j(v()).optional(),grant_types_supported:j(v()).optional(),token_endpoint_auth_methods_supported:j(v()).optional(),token_endpoint_auth_signing_alg_values_supported:j(v()).optional(),service_documentation:We.optional(),revocation_endpoint:We.optional(),revocation_endpoint_auth_methods_supported:j(v()).optional(),revocation_endpoint_auth_signing_alg_values_supported:j(v()).optional(),introspection_endpoint:v().optional(),introspection_endpoint_auth_methods_supported:j(v()).optional(),introspection_endpoint_auth_signing_alg_values_supported:j(v()).optional(),code_challenge_methods_supported:j(v()).optional(),client_id_metadata_document_supported:pe().optional()}),LC=Re({issuer:v(),authorization_endpoint:We,token_endpoint:We,userinfo_endpoint:We.optional(),jwks_uri:We,registration_endpoint:We.optional(),scopes_supported:j(v()).optional(),response_types_supported:j(v()),response_modes_supported:j(v()).optional(),grant_types_supported:j(v()).optional(),acr_values_supported:j(v()).optional(),subject_types_supported:j(v()),id_token_signing_alg_values_supported:j(v()),id_token_encryption_alg_values_supported:j(v()).optional(),id_token_encryption_enc_values_supported:j(v()).optional(),userinfo_signing_alg_values_supported:j(v()).optional(),userinfo_encryption_alg_values_supported:j(v()).optional(),userinfo_encryption_enc_values_supported:j(v()).optional(),request_object_signing_alg_values_supported:j(v()).optional(),request_object_encryption_alg_values_supported:j(v()).optional(),request_object_encryption_enc_values_supported:j(v()).optional(),token_endpoint_auth_methods_supported:j(v()).optional(),token_endpoint_auth_signing_alg_values_supported:j(v()).optional(),display_values_supported:j(v()).optional(),claim_types_supported:j(v()).optional(),claims_supported:j(v()).optional(),service_documentation:v().optional(),claims_locales_supported:j(v()).optional(),ui_locales_supported:j(v()).optional(),claims_parameter_supported:pe().optional(),request_parameter_supported:pe().optional(),request_uri_parameter_supported:pe().optional(),require_request_uri_registration:pe().optional(),op_policy_uri:We.optional(),op_tos_uri:We.optional(),client_id_metadata_document_supported:pe().optional()}),w0=R({...LC.shape,...Hy.pick({code_challenge_methods_supported:!0}).shape}),k0=R({access_token:v(),id_token:v().optional(),token_type:v(),expires_in:Fn.number().optional(),scope:v().optional(),refresh_token:v().optional()}).strip(),S0=R({error:v(),error_description:v().optional(),error_uri:v().optional()}),b0=We.optional().or(Z("").transform(()=>{})),VC=R({redirect_uris:j(We),token_endpoint_auth_method:v().optional(),grant_types:j(v()).optional(),response_types:j(v()).optional(),client_name:v().optional(),client_uri:We.optional(),logo_uri:b0,scope:v().optional(),contacts:j(v()).optional(),tos_uri:b0,policy_uri:v().optional(),jwks_uri:We.optional(),jwks:js().optional(),software_id:v().optional(),software_version:v().optional(),software_statement:v().optional()}).strip(),FC=R({client_id:v(),client_secret:v().optional(),client_id_issued_at:ae().optional(),client_secret_expires_at:ae().optional()}).strip(),z0=VC.merge(FC),IF=R({error:v(),error_description:v().optional()}).strip(),PF=R({token:v(),token_type_hint:v().optional()}).strip();function I0(t){let e=typeof t=="string"?new URL(t):new URL(t.href);return e.hash="",e}function P0({requestedResource:t,configuredResource:e}){let r=typeof t=="string"?new URL(t):new URL(t.href),o=typeof e=="string"?new URL(e):new URL(e.href);if(r.origin!==o.origin||r.pathname.length<o.pathname.length)return!1;let n=r.pathname.endsWith("/")?r.pathname:r.pathname+"/",i=o.pathname.endsWith("/")?o.pathname:o.pathname+"/";return n.startsWith(i)}var Ce=class extends Error{constructor(e,r){super(e),this.errorUri=r,this.name=this.constructor.name}toResponseObject(){let e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}},jc=class extends Ce{};jc.errorCode="invalid_request";var oo=class extends Ce{};oo.errorCode="invalid_client";var io=class extends Ce{};io.errorCode="invalid_grant";var ao=class extends Ce{};ao.errorCode="unauthorized_client";var Rc=class extends Ce{};Rc.errorCode="unsupported_grant_type";var Nc=class extends Ce{};Nc.errorCode="invalid_scope";var Cc=class extends Ce{};Cc.errorCode="access_denied";var Er=class extends Ce{};Er.errorCode="server_error";var Dc=class extends Ce{};Dc.errorCode="temporarily_unavailable";var Uc=class extends Ce{};Uc.errorCode="unsupported_response_type";var Ac=class extends Ce{};Ac.errorCode="unsupported_token_type";var Zc=class extends Ce{};Zc.errorCode="invalid_token";var Mc=class extends Ce{};Mc.errorCode="method_not_allowed";var qc=class extends Ce{};qc.errorCode="too_many_requests";var so=class extends Ce{};so.errorCode="invalid_client_metadata";var Lc=class extends Ce{};Lc.errorCode="insufficient_scope";var Vc=class extends Ce{};Vc.errorCode="invalid_target";var T0={[jc.errorCode]:jc,[oo.errorCode]:oo,[io.errorCode]:io,[ao.errorCode]:ao,[Rc.errorCode]:Rc,[Nc.errorCode]:Nc,[Cc.errorCode]:Cc,[Er.errorCode]:Er,[Dc.errorCode]:Dc,[Uc.errorCode]:Uc,[Ac.errorCode]:Ac,[Zc.errorCode]:Zc,[Mc.errorCode]:Mc,[qc.errorCode]:qc,[so.errorCode]:so,[Lc.errorCode]:Lc,[Vc.errorCode]:Vc};var lt=class extends Error{constructor(e){super(e!=null?e:"Unauthorized")}};function JC(t){return["client_secret_basic","client_secret_post","none"].includes(t)}var Wy="code",By="S256";function HC(t,e){let r=t.client_secret!==void 0;return e.length===0?r?"client_secret_post":"none":"token_endpoint_auth_method"in t&&t.token_endpoint_auth_method&&JC(t.token_endpoint_auth_method)&&e.includes(t.token_endpoint_auth_method)?t.token_endpoint_auth_method:r&&e.includes("client_secret_basic")?"client_secret_basic":r&&e.includes("client_secret_post")?"client_secret_post":e.includes("none")?"none":r?"client_secret_post":"none"}function WC(t,e,r,o){let{client_id:n,client_secret:i}=e;switch(t){case"client_secret_basic":BC(n,i,r);return;case"client_secret_post":GC(n,i,o);return;case"none":KC(n,o);return;default:throw new Error(`Unsupported client authentication method: ${t}`)}}function BC(t,e,r){if(!e)throw new Error("client_secret_basic authentication requires a client_secret");let o=btoa(`${t}:${e}`);r.set("Authorization",`Basic ${o}`)}function GC(t,e,r){r.set("client_id",t),e&&r.set("client_secret",e)}function KC(t,e){e.set("client_id",t)}async function O0(t){let e=t instanceof Response?t.status:void 0,r=t instanceof Response?await t.text():t;try{let o=S0.parse(JSON.parse(r)),{error:n,error_description:i,error_uri:a}=o,c=T0[n]||Er;return new c(i||"",a)}catch(o){let n=`${e?`HTTP ${e}: `:""}Invalid OAuth error response: ${o}. Raw body: ${r}`;return new Er(n)}}async function Or(t,e){var r,o;try{return await Gy(t,e)}catch(n){if(n instanceof oo||n instanceof ao)return await((r=t.invalidateCredentials)==null?void 0:r.call(t,"all")),await Gy(t,e);if(n instanceof io)return await((o=t.invalidateCredentials)==null?void 0:o.call(t,"tokens")),await Gy(t,e);throw n}}async function Gy(t,{serverUrl:e,authorizationCode:r,scope:o,resourceMetadataUrl:n,fetchFn:i}){var g,y;let a,c;try{a=await QC(e,{resourceMetadataUrl:n},i),a.authorization_servers&&a.authorization_servers.length>0&&(c=a.authorization_servers[0])}catch{}c||(c=new URL("/",e));let u=await YC(e,t,a),l=await oD(c,{fetchFn:i}),d=await Promise.resolve(t.clientInformation());if(!d){if(r!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");let w=(l==null?void 0:l.client_id_metadata_document_supported)===!0,k=t.clientMetadataUrl;if(k&&!XC(k))throw new so(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${k}`);if(w&&k)d={client_id:k},await((g=t.saveClientInformation)==null?void 0:g.call(t,d));else{if(!t.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");let x=await uD(c,{metadata:l,clientMetadata:t.clientMetadata,fetchFn:i});await t.saveClientInformation(x),d=x}}let s=!t.redirectUrl;if(r!==void 0||s){let w=await cD(t,c,{metadata:l,resource:u,authorizationCode:r,fetchFn:i});return await t.saveTokens(w),"AUTHORIZED"}let f=await t.tokens();if(f!=null&&f.refresh_token)try{let w=await sD(c,{metadata:l,clientInformation:d,refreshToken:f.refresh_token,resource:u,addClientAuthentication:t.addClientAuthentication,fetchFn:i});return await t.saveTokens(w),"AUTHORIZED"}catch(w){if(!(!(w instanceof Ce)||w instanceof Er))throw w}let p=t.state?await t.state():void 0,{authorizationUrl:m,codeVerifier:h}=await iD(c,{metadata:l,clientInformation:d,state:p,redirectUrl:t.redirectUrl,scope:o||((y=a==null?void 0:a.scopes_supported)==null?void 0:y.join(" "))||t.clientMetadata.scope,resource:u});return await t.saveCodeVerifier(h),await t.redirectToAuthorization(m),"REDIRECT"}function XC(t){if(!t)return!1;try{let e=new URL(t);return e.protocol==="https:"&&e.pathname!=="/"}catch{return!1}}async function YC(t,e,r){let o=I0(t);if(e.validateResourceURL)return await e.validateResourceURL(o,r==null?void 0:r.resource);if(r){if(!P0({requestedResource:o,configuredResource:r.resource}))throw new Error(`Protected resource ${r.resource} does not match expected ${o} (or origin)`);return new URL(r.resource)}}function Ui(t){let e=t.headers.get("WWW-Authenticate");if(!e)return{};let[r,o]=e.split(" ");if(r.toLowerCase()!=="bearer"||!o)return{};let n=Ky(t,"resource_metadata")||void 0,i;if(n)try{i=new URL(n)}catch{}let a=Ky(t,"scope")||void 0,c=Ky(t,"error")||void 0;return{resourceMetadataUrl:i,scope:a,error:c}}function Ky(t,e){let r=t.headers.get("WWW-Authenticate");if(!r)return null;let o=new RegExp(`${e}=(?:"([^"]+)"|([^\\s,]+))`),n=r.match(o);return n?n[1]||n[2]:null}async function QC(t,e,r=fetch){var n,i;let o=await rD(t,"oauth-protected-resource",r,{protocolVersion:e==null?void 0:e.protocolVersion,metadataUrl:e==null?void 0:e.resourceMetadataUrl});if(!o||o.status===404)throw await((n=o==null?void 0:o.body)==null?void 0:n.cancel()),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!o.ok)throw await((i=o.body)==null?void 0:i.cancel()),new Error(`HTTP ${o.status} trying to load well-known OAuth protected resource metadata.`);return x0.parse(await o.json())}async function Xy(t,e,r=fetch){try{return await r(t,{headers:e})}catch(o){if(o instanceof TypeError)return e?Xy(t,void 0,r):void 0;throw o}}function eD(t,e="",r={}){return e.endsWith("/")&&(e=e.slice(0,-1)),r.prependPathname?`${e}/.well-known/${t}`:`/.well-known/${t}${e}`}async function E0(t,e,r=fetch){return await Xy(t,{"MCP-Protocol-Version":e},r)}function tD(t,e){return!t||t.status>=400&&t.status<500&&e!=="/"}async function rD(t,e,r,o){var u,l;let n=new URL(t),i=(u=o==null?void 0:o.protocolVersion)!=null?u:on,a;if(o!=null&&o.metadataUrl)a=new URL(o.metadataUrl);else{let d=eD(e,n.pathname);a=new URL(d,(l=o==null?void 0:o.metadataServerUrl)!=null?l:n),a.search=n.search}let c=await E0(a,i,r);if(!(o!=null&&o.metadataUrl)&&tD(c,n.pathname)){let d=new URL(`/.well-known/${e}`,n);c=await E0(d,i,r)}return c}function nD(t){let e=typeof t=="string"?new URL(t):t,r=e.pathname!=="/",o=[];if(!r)return o.push({url:new URL("/.well-known/oauth-authorization-server",e.origin),type:"oauth"}),o.push({url:new URL("/.well-known/openid-configuration",e.origin),type:"oidc"}),o;let n=e.pathname;return n.endsWith("/")&&(n=n.slice(0,-1)),o.push({url:new URL(`/.well-known/oauth-authorization-server${n}`,e.origin),type:"oauth"}),o.push({url:new URL(`/.well-known/openid-configuration${n}`,e.origin),type:"oidc"}),o.push({url:new URL(`${n}/.well-known/openid-configuration`,e.origin),type:"oidc"}),o}async function oD(t,{fetchFn:e=fetch,protocolVersion:r=on}={}){var i;let o={"MCP-Protocol-Version":r,Accept:"application/json"},n=nD(t);for(let{url:a,type:c}of n){let u=await Xy(a,o,e);if(u){if(!u.ok){if(await((i=u.body)==null?void 0:i.cancel()),u.status>=400&&u.status<500)continue;throw new Error(`HTTP ${u.status} trying to load ${c==="oauth"?"OAuth":"OpenID provider"} metadata from ${a}`)}return c==="oauth"?Hy.parse(await u.json()):w0.parse(await u.json())}}}async function iD(t,{metadata:e,clientInformation:r,redirectUrl:o,scope:n,state:i,resource:a}){let c;if(e){if(c=new URL(e.authorization_endpoint),!e.response_types_supported.includes(Wy))throw new Error(`Incompatible auth server: does not support response type ${Wy}`);if(e.code_challenge_methods_supported&&!e.code_challenge_methods_supported.includes(By))throw new Error(`Incompatible auth server: does not support code challenge method ${By}`)}else c=new URL("/authorize",t);let u=await Jy(),l=u.code_verifier,d=u.code_challenge;return c.searchParams.set("response_type",Wy),c.searchParams.set("client_id",r.client_id),c.searchParams.set("code_challenge",d),c.searchParams.set("code_challenge_method",By),c.searchParams.set("redirect_uri",String(o)),i&&c.searchParams.set("state",i),n&&c.searchParams.set("scope",n),n!=null&&n.includes("offline_access")&&c.searchParams.append("prompt","consent"),a&&c.searchParams.set("resource",a.href),{authorizationUrl:c,codeVerifier:l}}function aD(t,e,r){return new URLSearchParams({grant_type:"authorization_code",code:t,code_verifier:e,redirect_uri:String(r)})}async function j0(t,{metadata:e,tokenRequestParams:r,clientInformation:o,addClientAuthentication:n,resource:i,fetchFn:a}){var d;let c=e!=null&&e.token_endpoint?new URL(e.token_endpoint):new URL("/token",t),u=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&r.set("resource",i.href),n)await n(u,r,c,e);else if(o){let s=(d=e==null?void 0:e.token_endpoint_auth_methods_supported)!=null?d:[],f=HC(o,s);WC(f,o,u,r)}let l=await(a!=null?a:fetch)(c,{method:"POST",headers:u,body:r});if(!l.ok)throw await O0(l);return k0.parse(await l.json())}async function sD(t,{metadata:e,clientInformation:r,refreshToken:o,resource:n,addClientAuthentication:i,fetchFn:a}){let c=new URLSearchParams({grant_type:"refresh_token",refresh_token:o}),u=await j0(t,{metadata:e,tokenRequestParams:c,clientInformation:r,addClientAuthentication:i,resource:n,fetchFn:a});return{refresh_token:o,...u}}async function cD(t,e,{metadata:r,resource:o,authorizationCode:n,fetchFn:i}={}){let a=t.clientMetadata.scope,c;if(t.prepareTokenRequest&&(c=await t.prepareTokenRequest(a)),!c){if(!n)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!t.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");let l=await t.codeVerifier();c=aD(n,l,t.redirectUrl)}let u=await t.clientInformation();return j0(e,{metadata:r,tokenRequestParams:c,clientInformation:u!=null?u:void 0,addClientAuthentication:t.addClientAuthentication,resource:o,fetchFn:i})}async function uD(t,{metadata:e,clientMetadata:r,fetchFn:o}){let n;if(e){if(!e.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");n=new URL(e.registration_endpoint)}else n=new URL("/register",t);let i=await(o!=null?o:fetch)(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!i.ok)throw await O0(i);return z0.parse(await i.json())}var Yy=class extends Error{constructor(e,r,o){super(`SSE error: ${r}`),this.code=e,this.event=o}},bp=class{constructor(e,r){this._url=e,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=r==null?void 0:r.eventSourceInit,this._requestInit=r==null?void 0:r.requestInit,this._authProvider=r==null?void 0:r.authProvider,this._fetch=r==null?void 0:r.fetch,this._fetchWithInit=$p(r==null?void 0:r.fetch,r==null?void 0:r.requestInit)}async _authThenStart(){var r;if(!this._authProvider)throw new lt("No auth provider");let e;try{e=await Or(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(o){throw(r=this.onerror)==null||r.call(this,o),o}if(e!=="AUTHORIZED")throw new lt;return await this._startOrAuth()}async _commonHeaders(){var o;let e={};if(this._authProvider){let n=await this._authProvider.tokens();n&&(e.Authorization=`Bearer ${n.access_token}`)}this._protocolVersion&&(e["mcp-protocol-version"]=this._protocolVersion);let r=Di((o=this._requestInit)==null?void 0:o.headers);return new Headers({...e,...r})}_startOrAuth(){var r,o,n;let e=(n=(o=(r=this==null?void 0:this._eventSourceInit)==null?void 0:r.fetch)!=null?o:this._fetch)!=null?n:fetch;return new Promise((i,a)=>{this._eventSource=new no(this._url.href,{...this._eventSourceInit,fetch:async(c,u)=>{let l=await this._commonHeaders();l.set("Accept","text/event-stream");let d=await e(c,{...u,headers:l});if(d.status===401&&d.headers.has("www-authenticate")){let{resourceMetadataUrl:s,scope:f}=Ui(d);this._resourceMetadataUrl=s,this._scope=f}return d}}),this._abortController=new AbortController,this._eventSource.onerror=c=>{var l;if(c.code===401&&this._authProvider){this._authThenStart().then(i,a);return}let u=new Yy(c.code,c.message,c);a(u),(l=this.onerror)==null||l.call(this,u)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",c=>{var l;let u=c;try{if(this._endpoint=new URL(u.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(d){a(d),(l=this.onerror)==null||l.call(this,d),this.close();return}i()}),this._eventSource.onmessage=c=>{var d,s;let u=c,l;try{l=kt.parse(JSON.parse(u.data))}catch(f){(d=this.onerror)==null||d.call(this,f);return}(s=this.onmessage)==null||s.call(this,l)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(e){if(!this._authProvider)throw new lt("No auth provider");if(await Or(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new lt("Failed to authorize")}async close(){var e,r,o;(e=this._abortController)==null||e.abort(),(r=this._eventSource)==null||r.close(),(o=this.onclose)==null||o.call(this)}async send(e){var r,o,n,i;if(!this._endpoint)throw new Error("Not connected");try{let a=await this._commonHeaders();a.set("content-type","application/json");let c={...this._requestInit,method:"POST",headers:a,body:JSON.stringify(e),signal:(r=this._abortController)==null?void 0:r.signal},u=await((o=this._fetch)!=null?o:fetch)(this._endpoint,c);if(!u.ok){let l=await u.text().catch(()=>null);if(u.status===401&&this._authProvider){let{resourceMetadataUrl:d,scope:s}=Ui(u);if(this._resourceMetadataUrl=d,this._scope=s,await Or(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new lt;return this.send(e)}throw new Error(`Error POSTing to endpoint (HTTP ${u.status}): ${l}`)}await((n=u.body)==null?void 0:n.cancel())}catch(a){throw(i=this.onerror)==null||i.call(this,a),a}}setProtocolVersion(e){this._protocolVersion=e}};var q0=require("node:crypto");var D0=er(C0());function Qy(t,{limit:e,encoding:r}){let o=D0.default.parse(e);return new Promise((n,i)=>{let a=0,c=[];t.on("data",u=>{if(a+=u.length,a>o)return i(new Error(`Message size exceeds limit of ${e} bytes`));c.push(u)}),t.on("end",()=>{try{n(Buffer.concat(c).toString(r))}catch(u){i(u)}}),t.on("error",u=>{i(u)})})}var L0=er(M0(),1),V0=require("node:url"),xD="4mb",wp=class{constructor(e,r,o){this._endpoint=e,this.res=r,this._sessionId=(0,q0.randomUUID)(),this._options=o||{enableDnsRebindingProtection:!1}}validateRequestHeaders(e){if(this._options.enableDnsRebindingProtection){if(this._options.allowedHosts&&this._options.allowedHosts.length>0){let r=e.headers.host;if(!r||!this._options.allowedHosts.includes(r))return`Invalid Host header: ${r}`}if(this._options.allowedOrigins&&this._options.allowedOrigins.length>0){let r=e.headers.origin;if(r&&!this._options.allowedOrigins.includes(r))return`Invalid Origin header: ${r}`}}}async start(){if(this._sseResponse)throw new Error("SSEServerTransport already started! If using Server class, note that connect() calls start() automatically.");this.res.writeHead(200,{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive"});let e="http://localhost",r=new V0.URL(this._endpoint,e);r.searchParams.set("sessionId",this._sessionId);let o=r.pathname+r.search+r.hash;this.res.write(`event: endpoint
data: ${o}

`),this._sseResponse=this.res,this.res.on("close",()=>{var n;this._sseResponse=void 0,(n=this.onclose)==null||n.call(this)})}async handlePostMessage(e,r,o){var u,l,d,s;if(!this._sseResponse){let f="SSE connection not established";throw r.writeHead(500).end(f),new Error(f)}let n=this.validateRequestHeaders(e);if(n){r.writeHead(403).end(n),(u=this.onerror)==null||u.call(this,new Error(n));return}let i=e.auth,a={headers:e.headers},c;try{let f=L0.default.parse((l=e.headers["content-type"])!=null?l:"");if(f.type!=="application/json")throw new Error(`Unsupported content-type: ${f.type}`);c=o!=null?o:await Qy(e,{limit:xD,encoding:(d=f.parameters.charset)!=null?d:"utf-8"})}catch(f){r.writeHead(400).end(String(f)),(s=this.onerror)==null||s.call(this,f);return}try{await this.handleMessage(typeof c=="string"?JSON.parse(c):c,{requestInfo:a,authInfo:i})}catch{r.writeHead(400).end(`Invalid message: ${c}`);return}r.writeHead(202).end("Accepted")}async handleMessage(e,r){var n,i;let o;try{o=kt.parse(e)}catch(a){throw(n=this.onerror)==null||n.call(this,a),a}(i=this.onmessage)==null||i.call(this,o,r)}async close(){var e,r;(e=this._sseResponse)==null||e.end(),this._sseResponse=void 0,(r=this.onclose)==null||r.call(this)}async send(e){if(!this._sseResponse)throw new Error("Not connected");this._sseResponse.write(`event: message
data: ${JSON.stringify(e)}

`)}get sessionId(){return this._sessionId}};var jz=er(Oz(),1),Fc=er(require("node:process"),1),Rz=require("node:stream");var Mi=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(`
`);if(e===-1)return null;let r=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),GD(r)}clear(){this._buffer=void 0}};function GD(t){return kt.parse(JSON.parse(t))}function Sp(t){return JSON.stringify(t)+`
`}var KD=Fc.default.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];function XD(){let t={};for(let e of KD){let r=Fc.default.env[e];r!==void 0&&(r.startsWith("()")||(t[e]=r))}return t}var zp=class{constructor(e){this._readBuffer=new Mi,this._stderrStream=null,this._serverParams=e,(e.stderr==="pipe"||e.stderr==="overlapped")&&(this._stderrStream=new Rz.PassThrough)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((e,r)=>{var o,n,i,a,c;this._process=(0,jz.default)(this._serverParams.command,(o=this._serverParams.args)!=null?o:[],{env:{...XD(),...this._serverParams.env},stdio:["pipe","pipe",(n=this._serverParams.stderr)!=null?n:"inherit"],shell:!1,windowsHide:Fc.default.platform==="win32"&&YD(),cwd:this._serverParams.cwd}),this._process.on("error",u=>{var l;r(u),(l=this.onerror)==null||l.call(this,u)}),this._process.on("spawn",()=>{e()}),this._process.on("close",u=>{var l;this._process=void 0,(l=this.onclose)==null||l.call(this)}),(i=this._process.stdin)==null||i.on("error",u=>{var l;(l=this.onerror)==null||l.call(this,u)}),(a=this._process.stdout)==null||a.on("data",u=>{this._readBuffer.append(u),this.processReadBuffer()}),(c=this._process.stdout)==null||c.on("error",u=>{var l;(l=this.onerror)==null||l.call(this,u)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){var e,r;return this._stderrStream?this._stderrStream:(r=(e=this._process)==null?void 0:e.stderr)!=null?r:null}get pid(){var e,r;return(r=(e=this._process)==null?void 0:e.pid)!=null?r:null}processReadBuffer(){var e,r;for(;;)try{let o=this._readBuffer.readMessage();if(o===null)break;(e=this.onmessage)==null||e.call(this,o)}catch(o){(r=this.onerror)==null||r.call(this,o)}}async close(){var e;if(this._process){let r=this._process;this._process=void 0;let o=new Promise(n=>{r.once("close",()=>{n()})});try{(e=r.stdin)==null||e.end()}catch{}if(await Promise.race([o,new Promise(n=>setTimeout(n,2e3).unref())]),r.exitCode===null){try{r.kill("SIGTERM")}catch{}await Promise.race([o,new Promise(n=>setTimeout(n,2e3).unref())])}if(r.exitCode===null)try{r.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(e){return new Promise(r=>{var n;if(!((n=this._process)!=null&&n.stdin))throw new Error("Not connected");let o=Sp(e);this._process.stdin.write(o)?r():this._process.stdin.once("drain",r)})}};function YD(){return"type"in Fc.default}var l$=er(require("node:process"),1);var Ip=class{constructor(e=l$.default.stdin,r=l$.default.stdout){this._stdin=e,this._stdout=r,this._readBuffer=new Mi,this._started=!1,this._ondata=o=>{this._readBuffer.append(o),this.processReadBuffer()},this._onerror=o=>{var n;(n=this.onerror)==null||n.call(this,o)}}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(){var e,r;for(;;)try{let o=this._readBuffer.readMessage();if(o===null)break;(e=this.onmessage)==null||e.call(this,o)}catch(o){(r=this.onerror)==null||r.call(this,o)}}async close(){var r;this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),(r=this.onclose)==null||r.call(this)}send(e){return new Promise(r=>{let o=Sp(e);this._stdout.write(o)?r():this._stdout.once("drain",r)})}};var Nz=require("http2"),Tp=require("http2"),p$=require("stream"),Az=er(require("crypto"),1);var co=class extends Error{constructor(t,e){super(t,e),this.name="RequestError"}},QD=t=>t instanceof co?t:new co(t.message,{cause:t}),eU=global.Request,Jc=class extends eU{constructor(t,e){var r,o;typeof t=="object"&&Vi in t&&(t=t[Vi]()),typeof((r=e==null?void 0:e.body)==null?void 0:r.getReader)!="undefined"&&((o=e.duplex)!=null||(e.duplex="half")),super(t,e)}},tU=t=>{let e=[],r=t.rawHeaders;for(let o=0;o<r.length;o+=2){let{[o]:n,[o+1]:i}=r;n.charCodeAt(0)!==58&&e.push([n,i])}return new Headers(e)},Cz=Symbol("wrapBodyStream"),rU=(t,e,r,o,n)=>{let i={method:t,headers:r,signal:n.signal};if(t==="TRACE"){i.method="GET";let a=new Jc(e,i);return Object.defineProperty(a,"method",{get(){return"TRACE"}}),a}if(!(t==="GET"||t==="HEAD"))if("rawBody"in o&&o.rawBody instanceof Buffer)i.body=new ReadableStream({start(a){a.enqueue(o.rawBody),a.close()}});else if(o[Cz]){let a;i.body=new ReadableStream({async pull(c){try{a||(a=p$.Readable.toWeb(o).getReader());let{done:u,value:l}=await a.read();u?c.close():c.enqueue(l)}catch(u){c.error(u)}}})}else i.body=p$.Readable.toWeb(o);return new Jc(e,i)},Vi=Symbol("getRequestCache"),d$=Symbol("requestCache"),Ep=Symbol("incomingKey"),Op=Symbol("urlKey"),f$=Symbol("headersKey"),yn=Symbol("abortControllerKey"),nU=Symbol("getAbortController"),jp={get method(){return this[Ep].method||"GET"},get url(){return this[Op]},get headers(){return this[f$]||(this[f$]=tU(this[Ep]))},[nU](){return this[Vi](),this[yn]},[Vi](){return this[yn]||(this[yn]=new AbortController),this[d$]||(this[d$]=rU(this.method,this[Op],this.headers,this[Ep],this[yn]))}};["body","bodyUsed","cache","credentials","destination","integrity","mode","redirect","referrer","referrerPolicy","signal","keepalive"].forEach(t=>{Object.defineProperty(jp,t,{get(){return this[Vi]()[t]}})});["arrayBuffer","blob","clone","formData","json","text"].forEach(t=>{Object.defineProperty(jp,t,{value:function(){return this[Vi]()[t]()}})});Object.setPrototypeOf(jp,Jc.prototype);var oU=(t,e)=>{let r=Object.create(jp);r[Ep]=t;let o=t.url||"";if(o[0]!=="/"&&(o.startsWith("http://")||o.startsWith("https://"))){if(t instanceof Tp.Http2ServerRequest)throw new co("Absolute URL for :path is not allowed in HTTP/2");try{let c=new URL(o);r[Op]=c.href}catch(c){throw new co("Invalid absolute URL",{cause:c})}return r}let n=(t instanceof Tp.Http2ServerRequest?t.authority:t.headers.host)||e;if(!n)throw new co("Missing host header");let i;if(t instanceof Tp.Http2ServerRequest){if(i=t.scheme,!(i==="http"||i==="https"))throw new co("Unsupported scheme")}else i=t.socket&&t.socket.encrypted?"https":"http";let a=new URL(`${i}://${n}${o}`);if(a.hostname.length!==n.length&&a.hostname!==n.replace(/:\d+$/,""))throw new co("Invalid host header");return r[Op]=a.href,r},Pp=Symbol("responseCache"),qi=Symbol("getResponseCache"),uo=Symbol("cache"),h$=global.Response,Hc,jr,Li,Wc=(Li=class{constructor(e,r){Fp(this,Hc);Fp(this,jr);let o;if(Wi(this,Hc,e),r instanceof Li){let n=r[Pp];if(n){Wi(this,jr,n),this[qi]();return}else Wi(this,jr,Hi(r,jr)),o=new Headers(Hi(r,jr).headers)}else Wi(this,jr,r);(typeof e=="string"||typeof(e==null?void 0:e.getReader)!="undefined"||e instanceof Blob||e instanceof Uint8Array)&&(o||(o=(r==null?void 0:r.headers)||{"content-type":"text/plain; charset=UTF-8"}),this[uo]=[(r==null?void 0:r.status)||200,e,o])}[qi](){return delete this[uo],this[Pp]||(this[Pp]=new h$(Hi(this,Hc),Hi(this,jr)))}get headers(){let e=this[uo];return e?(e[2]instanceof Headers||(e[2]=new Headers(e[2])),e[2]):this[qi]().headers}get status(){var e,r;return(r=(e=this[uo])==null?void 0:e[0])!=null?r:this[qi]().status}get ok(){let e=this.status;return e>=200&&e<300}},Hc=new WeakMap,jr=new WeakMap,Li);["body","bodyUsed","redirected","statusText","trailers","type","url"].forEach(t=>{Object.defineProperty(Wc.prototype,t,{get(){return this[qi]()[t]}})});["arrayBuffer","blob","clone","formData","json","text"].forEach(t=>{Object.defineProperty(Wc.prototype,t,{value:function(){return this[qi]()[t]()}})});Object.setPrototypeOf(Wc,h$);Object.setPrototypeOf(Wc.prototype,h$.prototype);async function iU(t){return Promise.race([t,Promise.resolve().then(()=>Promise.resolve(void 0))])}function Dz(t,e,r){let o=c=>{t.cancel(c).catch(()=>{})};return e.on("close",o),e.on("error",o),(r!=null?r:t.read()).then(a,n),t.closed.finally(()=>{e.off("close",o),e.off("error",o)});function n(c){c&&e.destroy(c)}function i(){t.read().then(a,n)}function a({done:c,value:u}){try{if(c)e.end();else if(!e.write(u))e.once("drain",i);else return t.read().then(a,n)}catch(l){n(l)}}}function aU(t,e){if(t.locked)throw new TypeError("ReadableStream is locked.");return e.destroyed?void 0:Dz(t.getReader(),e)}var Uz=t=>{var o;let e={};t instanceof Headers||(t=new Headers(t!=null?t:void 0));let r=[];for(let[n,i]of t)n==="set-cookie"?r.push(i):e[n]=i;return r.length>0&&(e["set-cookie"]=r),(o=e["content-type"])!=null||(e["content-type"]="text/plain; charset=UTF-8"),e},sU="x-hono-already-sent";typeof global.crypto=="undefined"&&(global.crypto=Az.default);var g$=Symbol("outgoingEnded"),cU=()=>new Response(null,{status:400}),Zz=t=>new Response(null,{status:t instanceof Error&&(t.name==="TimeoutError"||t.constructor.name==="TimeoutError")?504:500}),m$=(t,e)=>{let r=t instanceof Error?t:new Error("unknown error",{cause:t});r.code==="ERR_STREAM_PREMATURE_CLOSE"?console.info("The user aborted a request."):(console.error(t),e.headersSent||e.writeHead(500,{"Content-Type":"text/plain"}),e.end(`Error: ${r.message}`),e.destroy(r))},Mz=t=>{"flushHeaders"in t&&t.writable&&t.flushHeaders()},qz=async(t,e)=>{var i,a;let[r,o,n]=t[uo];n instanceof Headers&&(n=Uz(n)),typeof o=="string"?n["Content-Length"]=Buffer.byteLength(o):o instanceof Uint8Array?n["Content-Length"]=o.byteLength:o instanceof Blob&&(n["Content-Length"]=o.size),e.writeHead(r,n),typeof o=="string"||o instanceof Uint8Array?e.end(o):o instanceof Blob?e.end(new Uint8Array(await o.arrayBuffer())):(Mz(e),await((i=aU(o,e))==null?void 0:i.catch(c=>m$(c,e)))),(a=e[g$])==null||a.call(e)},uU=t=>typeof t.then=="function",lU=async(t,e,r={})=>{var n;if(uU(t))if(r.errorHandler)try{t=await t}catch(i){let a=await r.errorHandler(i);if(!a)return;t=a}else t=await t.catch(Zz);if(uo in t)return qz(t,e);let o=Uz(t.headers);if(t.body){let i=t.body.getReader(),a=[],c=!1,u;if(o["transfer-encoding"]!=="chunked"){let l=2;for(let d=0;d<l;d++){u||(u=i.read());let s=await iU(u).catch(f=>{console.error(f),c=!0});if(!s){if(d===1){await new Promise(f=>setTimeout(f)),l=3;continue}break}if(u=void 0,s.value&&a.push(s.value),s.done){c=!0;break}}c&&!("content-length"in o)&&(o["content-length"]=a.reduce((d,s)=>d+s.length,0))}e.writeHead(t.status,o),a.forEach(l=>{e.write(l)}),c?e.end():(a.length===0&&Mz(e),await Dz(i,e,u))}else o[sU]||(e.writeHead(t.status,o),e.end());(n=e[g$])==null||n.call(e)},v$=(t,e={})=>{var o;let r=(o=e.autoCleanupIncoming)!=null?o:!0;return e.overrideGlobalObjects!==!1&&global.Request!==Jc&&(Object.defineProperty(global,"Request",{value:Jc}),Object.defineProperty(global,"Response",{value:Wc})),async(n,i)=>{let a,c;try{c=oU(n,e.hostname);let u=!r||n.method==="GET"||n.method==="HEAD";if(u||(n[Cz]=!0,n.on("end",()=>{u=!0}),n instanceof Nz.Http2ServerRequest&&(i[g$]=()=>{u||setTimeout(()=>{u||setTimeout(()=>{n.destroy(),i.destroy()})})})),i.on("close",()=>{c[yn]&&(n.errored?c[yn].abort(n.errored.toString()):i.writableFinished||c[yn].abort("Client connection prematurely closed.")),u||setTimeout(()=>{u||setTimeout(()=>{n.destroy()})})}),a=t(c,{incoming:n,outgoing:i}),uo in a)return qz(a,i)}catch(u){if(a)return m$(u,i);if(e.errorHandler){if(a=await e.errorHandler(c?u:QD(u)),!a)return}else c?a=Zz(u):a=cU()}try{return await lU(a,i,e)}catch(u){return m$(u,i)}}};var Rp=class{constructor(e={}){var r,o;this._started=!1,this._hasHandledRequest=!1,this._streamMapping=new Map,this._requestToStreamMapping=new Map,this._requestResponseMap=new Map,this._initialized=!1,this._enableJsonResponse=!1,this._standaloneSseStreamId="_GET_stream",this.sessionIdGenerator=e.sessionIdGenerator,this._enableJsonResponse=(r=e.enableJsonResponse)!=null?r:!1,this._eventStore=e.eventStore,this._onsessioninitialized=e.onsessioninitialized,this._onsessionclosed=e.onsessionclosed,this._allowedHosts=e.allowedHosts,this._allowedOrigins=e.allowedOrigins,this._enableDnsRebindingProtection=(o=e.enableDnsRebindingProtection)!=null?o:!1,this._retryInterval=e.retryInterval}async start(){if(this._started)throw new Error("Transport already started");this._started=!0}createJsonErrorResponse(e,r,o,n){let i={code:r,message:o};return(n==null?void 0:n.data)!==void 0&&(i.data=n.data),new Response(JSON.stringify({jsonrpc:"2.0",error:i,id:null}),{status:e,headers:{"Content-Type":"application/json",...n==null?void 0:n.headers}})}validateRequestHeaders(e){var r,o;if(this._enableDnsRebindingProtection){if(this._allowedHosts&&this._allowedHosts.length>0){let n=e.headers.get("host");if(!n||!this._allowedHosts.includes(n)){let i=`Invalid Host header: ${n}`;return(r=this.onerror)==null||r.call(this,new Error(i)),this.createJsonErrorResponse(403,-32e3,i)}}if(this._allowedOrigins&&this._allowedOrigins.length>0){let n=e.headers.get("origin");if(n&&!this._allowedOrigins.includes(n)){let i=`Invalid Origin header: ${n}`;return(o=this.onerror)==null||o.call(this,new Error(i)),this.createJsonErrorResponse(403,-32e3,i)}}}}async handleRequest(e,r){if(!this.sessionIdGenerator&&this._hasHandledRequest)throw new Error("Stateless transport cannot be reused across requests. Create a new transport per request.");this._hasHandledRequest=!0;let o=this.validateRequestHeaders(e);if(o)return o;switch(e.method){case"POST":return this.handlePostRequest(e,r);case"GET":return this.handleGetRequest(e);case"DELETE":return this.handleDeleteRequest(e);default:return this.handleUnsupportedRequest()}}async writePrimingEvent(e,r,o,n){if(!this._eventStore||n<"2025-11-25")return;let i=await this._eventStore.storeEvent(o,{}),a=`id: ${i}
data: 

`;this._retryInterval!==void 0&&(a=`id: ${i}
retry: ${this._retryInterval}
data: 

`),e.enqueue(r.encode(a))}async handleGetRequest(e){let r=e.headers.get("accept");if(!(r!=null&&r.includes("text/event-stream")))return this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept text/event-stream");let o=this.validateSession(e);if(o)return o;let n=this.validateProtocolVersion(e);if(n)return n;if(this._eventStore){let l=e.headers.get("last-event-id");if(l)return this.replayEvents(l)}if(this._streamMapping.get(this._standaloneSseStreamId)!==void 0)return this.createJsonErrorResponse(409,-32e3,"Conflict: Only one SSE stream is allowed per session");let i=new TextEncoder,a,c=new ReadableStream({start:l=>{a=l},cancel:()=>{this._streamMapping.delete(this._standaloneSseStreamId)}}),u={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive"};return this.sessionId!==void 0&&(u["mcp-session-id"]=this.sessionId),this._streamMapping.set(this._standaloneSseStreamId,{controller:a,encoder:i,cleanup:()=>{this._streamMapping.delete(this._standaloneSseStreamId);try{a.close()}catch{}}}),new Response(c,{headers:u})}async replayEvents(e){var r;if(!this._eventStore)return this.createJsonErrorResponse(400,-32e3,"Event store not configured");try{let o;if(this._eventStore.getStreamIdForEventId){if(o=await this._eventStore.getStreamIdForEventId(e),!o)return this.createJsonErrorResponse(400,-32e3,"Invalid event ID format");if(this._streamMapping.get(o)!==void 0)return this.createJsonErrorResponse(409,-32e3,"Conflict: Stream already has an active connection")}let n={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive"};this.sessionId!==void 0&&(n["mcp-session-id"]=this.sessionId);let i=new TextEncoder,a,c=new ReadableStream({start:l=>{a=l},cancel:()=>{}}),u=await this._eventStore.replayEventsAfter(e,{send:async(l,d)=>{var f;if(!this.writeSSEEvent(a,i,d,l)){(f=this.onerror)==null||f.call(this,new Error("Failed replay events"));try{a.close()}catch{}}}});return this._streamMapping.set(u,{controller:a,encoder:i,cleanup:()=>{this._streamMapping.delete(u);try{a.close()}catch{}}}),new Response(c,{headers:n})}catch(o){return(r=this.onerror)==null||r.call(this,o),this.createJsonErrorResponse(500,-32e3,"Error replaying events")}}writeSSEEvent(e,r,o,n){try{let i=`event: message
`;return n&&(i+=`id: ${n}
`),i+=`data: ${JSON.stringify(o)}

`,e.enqueue(r.encode(i)),!0}catch{return!1}}handleUnsupportedRequest(){return new Response(JSON.stringify({jsonrpc:"2.0",error:{code:-32e3,message:"Method not allowed."},id:null}),{status:405,headers:{Allow:"GET, POST, DELETE","Content-Type":"application/json"}})}async handlePostRequest(e,r){var o,n,i,a,c;try{let u=e.headers.get("accept");if(!(u!=null&&u.includes("application/json"))||!u.includes("text/event-stream"))return this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept both application/json and text/event-stream");let l=e.headers.get("content-type");if(!l||!l.includes("application/json"))return this.createJsonErrorResponse(415,-32e3,"Unsupported Media Type: Content-Type must be application/json");let d={headers:Object.fromEntries(e.headers.entries())},s;if((r==null?void 0:r.parsedBody)!==void 0)s=r.parsedBody;else try{s=await e.json()}catch{return this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON")}let f;try{Array.isArray(s)?f=s.map(D=>kt.parse(D)):f=[kt.parse(s)]}catch{return this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON-RPC message")}let p=f.some(fv);if(p){if(this._initialized&&this.sessionId!==void 0)return this.createJsonErrorResponse(400,-32600,"Invalid Request: Server already initialized");if(f.length>1)return this.createJsonErrorResponse(400,-32600,"Invalid Request: Only one initialization request is allowed");this.sessionId=(o=this.sessionIdGenerator)==null?void 0:o.call(this),this._initialized=!0,this.sessionId&&this._onsessioninitialized&&await Promise.resolve(this._onsessioninitialized(this.sessionId))}if(!p){let D=this.validateSession(e);if(D)return D;let V=this.validateProtocolVersion(e);if(V)return V}if(!f.some(ar)){for(let D of f)(n=this.onmessage)==null||n.call(this,D,{authInfo:r==null?void 0:r.authInfo,requestInfo:d});return new Response(null,{status:202})}let h=crypto.randomUUID(),g=f.find(D=>fv(D)),y=g?g.params.protocolVersion:(i=e.headers.get("mcp-protocol-version"))!=null?i:Rx;if(this._enableJsonResponse)return new Promise(D=>{var V;this._streamMapping.set(h,{resolveJson:D,cleanup:()=>{this._streamMapping.delete(h)}});for(let G of f)ar(G)&&this._requestToStreamMapping.set(G.id,h);for(let G of f)(V=this.onmessage)==null||V.call(this,G,{authInfo:r==null?void 0:r.authInfo,requestInfo:d})});let w=new TextEncoder,k,b=new ReadableStream({start:D=>{k=D},cancel:()=>{this._streamMapping.delete(h)}}),x={"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"};this.sessionId!==void 0&&(x["mcp-session-id"]=this.sessionId);for(let D of f)ar(D)&&(this._streamMapping.set(h,{controller:k,encoder:w,cleanup:()=>{this._streamMapping.delete(h);try{k.close()}catch{}}}),this._requestToStreamMapping.set(D.id,h));await this.writePrimingEvent(k,w,h,y);for(let D of f){let V,G;ar(D)&&this._eventStore&&y>="2025-11-25"&&(V=()=>{this.closeSSEStream(D.id)},G=()=>{this.closeStandaloneSSEStream()}),(a=this.onmessage)==null||a.call(this,D,{authInfo:r==null?void 0:r.authInfo,requestInfo:d,closeSSEStream:V,closeStandaloneSSEStream:G})}return new Response(b,{status:200,headers:x})}catch(u){return(c=this.onerror)==null||c.call(this,u),this.createJsonErrorResponse(400,-32700,"Parse error",{data:String(u)})}}async handleDeleteRequest(e){var n;let r=this.validateSession(e);if(r)return r;let o=this.validateProtocolVersion(e);return o||(await Promise.resolve((n=this._onsessionclosed)==null?void 0:n.call(this,this.sessionId)),await this.close(),new Response(null,{status:200}))}validateSession(e){if(this.sessionIdGenerator===void 0)return;if(!this._initialized)return this.createJsonErrorResponse(400,-32e3,"Bad Request: Server not initialized");let r=e.headers.get("mcp-session-id");if(!r)return this.createJsonErrorResponse(400,-32e3,"Bad Request: Mcp-Session-Id header is required");if(r!==this.sessionId)return this.createJsonErrorResponse(404,-32001,"Session not found")}validateProtocolVersion(e){let r=e.headers.get("mcp-protocol-version");if(r!==null&&!Jn.includes(r))return this.createJsonErrorResponse(400,-32e3,`Bad Request: Unsupported protocol version: ${r} (supported versions: ${Jn.join(", ")})`)}async close(){var e;this._streamMapping.forEach(({cleanup:r})=>{r()}),this._streamMapping.clear(),this._requestResponseMap.clear(),(e=this.onclose)==null||e.call(this)}closeSSEStream(e){let r=this._requestToStreamMapping.get(e);if(!r)return;let o=this._streamMapping.get(r);o&&o.cleanup()}closeStandaloneSSEStream(){let e=this._streamMapping.get(this._standaloneSseStreamId);e&&e.cleanup()}async send(e,r){let o=r==null?void 0:r.relatedRequestId;if((Ft(e)||ci(e))&&(o=e.id),o===void 0){if(Ft(e)||ci(e))throw new Error("Cannot send a response on a standalone SSE stream unless resuming a previous client request");let a;this._eventStore&&(a=await this._eventStore.storeEvent(this._standaloneSseStreamId,e));let c=this._streamMapping.get(this._standaloneSseStreamId);if(c===void 0)return;c.controller&&c.encoder&&this.writeSSEEvent(c.controller,c.encoder,e,a);return}let n=this._requestToStreamMapping.get(o);if(!n)throw new Error(`No connection established for request ID: ${String(o)}`);let i=this._streamMapping.get(n);if(!this._enableJsonResponse&&(i!=null&&i.controller)&&(i!=null&&i.encoder)){let a;this._eventStore&&(a=await this._eventStore.storeEvent(n,e)),this.writeSSEEvent(i.controller,i.encoder,e,a)}if(Ft(e)||ci(e)){this._requestResponseMap.set(o,e);let a=Array.from(this._requestToStreamMapping.entries()).filter(([u,l])=>l===n).map(([u])=>u);if(a.every(u=>this._requestResponseMap.has(u))){if(!i)throw new Error(`No connection established for request ID: ${String(o)}`);if(this._enableJsonResponse&&i.resolveJson){let u={"Content-Type":"application/json"};this.sessionId!==void 0&&(u["mcp-session-id"]=this.sessionId);let l=a.map(d=>this._requestResponseMap.get(d));l.length===1?i.resolveJson(new Response(JSON.stringify(l[0]),{status:200,headers:u})):i.resolveJson(new Response(JSON.stringify(l),{status:200,headers:u}))}else i.cleanup();for(let u of a)this._requestResponseMap.delete(u),this._requestToStreamMapping.delete(u)}}}};var Np=class{constructor(e={}){this._requestContext=new WeakMap,this._webStandardTransport=new Rp(e),this._requestListener=v$(async r=>{let o=this._requestContext.get(r);return this._webStandardTransport.handleRequest(r,{authInfo:o==null?void 0:o.authInfo,parsedBody:o==null?void 0:o.parsedBody})},{overrideGlobalObjects:!1})}get sessionId(){return this._webStandardTransport.sessionId}set onclose(e){this._webStandardTransport.onclose=e}get onclose(){return this._webStandardTransport.onclose}set onerror(e){this._webStandardTransport.onerror=e}get onerror(){return this._webStandardTransport.onerror}set onmessage(e){this._webStandardTransport.onmessage=e}get onmessage(){return this._webStandardTransport.onmessage}async start(){return this._webStandardTransport.start()}async close(){return this._webStandardTransport.close()}async send(e,r){return this._webStandardTransport.send(e,r)}async handleRequest(e,r,o){let n=e.auth;await v$(async a=>this._webStandardTransport.handleRequest(a,{authInfo:n,parsedBody:o}),{overrideGlobalObjects:!1})(e,r)}closeSSEStream(e){this._webStandardTransport.closeSSEStream(e)}closeStandaloneSSEStream(){this._webStandardTransport.closeStandaloneSSEStream()}};var Cp=class extends TransformStream{constructor({onError:e,onRetry:r,onComment:o}={}){let n;super({start(i){n=gp({onEvent:a=>{i.enqueue(a)},onError(a){e==="terminate"?i.error(a):typeof e=="function"&&e(a)},onRetry:r,onComment:o})},transform(i){n.feed(i)}})}};var dU={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},$n=class extends Error{constructor(e,r){super(`Streamable HTTP error: ${r}`),this.code=e}},Dp=class{constructor(e,r){var o;this._hasCompletedAuthFlow=!1,this._url=e,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=r==null?void 0:r.requestInit,this._authProvider=r==null?void 0:r.authProvider,this._fetch=r==null?void 0:r.fetch,this._fetchWithInit=$p(r==null?void 0:r.fetch,r==null?void 0:r.requestInit),this._sessionId=r==null?void 0:r.sessionId,this._reconnectionOptions=(o=r==null?void 0:r.reconnectionOptions)!=null?o:dU}async _authThenStart(){var r;if(!this._authProvider)throw new lt("No auth provider");let e;try{e=await Or(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(o){throw(r=this.onerror)==null||r.call(this,o),o}if(e!=="AUTHORIZED")throw new lt;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){var o;let e={};if(this._authProvider){let n=await this._authProvider.tokens();n&&(e.Authorization=`Bearer ${n.access_token}`)}this._sessionId&&(e["mcp-session-id"]=this._sessionId),this._protocolVersion&&(e["mcp-protocol-version"]=this._protocolVersion);let r=Di((o=this._requestInit)==null?void 0:o.headers);return new Headers({...e,...r})}async _startOrAuthSse(e){var o,n,i,a;let{resumptionToken:r}=e;try{let c=await this._commonHeaders();c.set("Accept","text/event-stream"),r&&c.set("last-event-id",r);let u=await((o=this._fetch)!=null?o:fetch)(this._url,{method:"GET",headers:c,signal:(n=this._abortController)==null?void 0:n.signal});if(!u.ok){if(await((i=u.body)==null?void 0:i.cancel()),u.status===401&&this._authProvider)return await this._authThenStart();if(u.status===405)return;throw new $n(u.status,`Failed to open SSE stream: ${u.statusText}`)}this._handleSseStream(u.body,e,!0)}catch(c){throw(a=this.onerror)==null||a.call(this,c),c}}_getNextReconnectionDelay(e){if(this._serverRetryMs!==void 0)return this._serverRetryMs;let r=this._reconnectionOptions.initialReconnectionDelay,o=this._reconnectionOptions.reconnectionDelayGrowFactor,n=this._reconnectionOptions.maxReconnectionDelay;return Math.min(r*Math.pow(o,e),n)}_scheduleReconnection(e,r=0){var i;let o=this._reconnectionOptions.maxRetries;if(r>=o){(i=this.onerror)==null||i.call(this,new Error(`Maximum reconnection attempts (${o}) exceeded.`));return}let n=this._getNextReconnectionDelay(r);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(e).catch(a=>{var c;(c=this.onerror)==null||c.call(this,new Error(`Failed to reconnect SSE stream: ${a instanceof Error?a.message:String(a)}`)),this._scheduleReconnection(e,r+1)})},n)}_handleSseStream(e,r,o){if(!e)return;let{onresumptiontoken:n,replayMessageId:i}=r,a,c=!1,u=!1;(async()=>{var d,s,f,p;try{let m=e.pipeThrough(new TextDecoderStream).pipeThrough(new Cp({onRetry:y=>{this._serverRetryMs=y}})).getReader();for(;;){let{value:y,done:w}=await m.read();if(w)break;if(y.id&&(a=y.id,c=!0,n==null||n(y.id)),!!y.data&&(!y.event||y.event==="message"))try{let k=kt.parse(JSON.parse(y.data));Ft(k)&&(u=!0,i!==void 0&&(k.id=i)),(d=this.onmessage)==null||d.call(this,k)}catch(k){(s=this.onerror)==null||s.call(this,k)}}(o||c)&&!u&&this._abortController&&!this._abortController.signal.aborted&&this._scheduleReconnection({resumptionToken:a,onresumptiontoken:n,replayMessageId:i},0)}catch(m){if((f=this.onerror)==null||f.call(this,new Error(`SSE stream disconnected: ${m}`)),(o||c)&&!u&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:a,onresumptiontoken:n,replayMessageId:i},0)}catch(y){(p=this.onerror)==null||p.call(this,new Error(`Failed to reconnect: ${y instanceof Error?y.message:String(y)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(e){if(!this._authProvider)throw new lt("No auth provider");if(await Or(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new lt("Failed to authorize")}async close(){var e,r;this._reconnectionTimeout&&(clearTimeout(this._reconnectionTimeout),this._reconnectionTimeout=void 0),(e=this._abortController)==null||e.abort(),(r=this.onclose)==null||r.call(this)}async send(e,r){var o,n,i,a,c,u,l;try{let{resumptionToken:d,onresumptiontoken:s}=r||{};if(d){this._startOrAuthSse({resumptionToken:d,replayMessageId:ar(e)?e.id:void 0}).catch(k=>{var b;return(b=this.onerror)==null?void 0:b.call(this,k)});return}let f=await this._commonHeaders();f.set("content-type","application/json"),f.set("accept","application/json, text/event-stream");let p={...this._requestInit,method:"POST",headers:f,body:JSON.stringify(e),signal:(o=this._abortController)==null?void 0:o.signal},m=await((n=this._fetch)!=null?n:fetch)(this._url,p),h=m.headers.get("mcp-session-id");if(h&&(this._sessionId=h),!m.ok){let k=await m.text().catch(()=>null);if(m.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new $n(401,"Server returned 401 after successful authentication");let{resourceMetadataUrl:b,scope:x}=Ui(m);if(this._resourceMetadataUrl=b,this._scope=x,await Or(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new lt;return this._hasCompletedAuthFlow=!0,this.send(e)}if(m.status===403&&this._authProvider){let{resourceMetadataUrl:b,scope:x,error:D}=Ui(m);if(D==="insufficient_scope"){let V=m.headers.get("WWW-Authenticate");if(this._lastUpscopingHeader===V)throw new $n(403,"Server returned 403 after trying upscoping");if(x&&(this._scope=x),b&&(this._resourceMetadataUrl=b),this._lastUpscopingHeader=V!=null?V:void 0,await Or(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!=="AUTHORIZED")throw new lt;return this.send(e)}}throw new $n(m.status,`Error POSTing to endpoint: ${k}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,m.status===202){await((i=m.body)==null?void 0:i.cancel()),qx(e)&&this._startOrAuthSse({resumptionToken:void 0}).catch(k=>{var b;return(b=this.onerror)==null?void 0:b.call(this,k)});return}let y=(Array.isArray(e)?e:[e]).filter(k=>"method"in k&&"id"in k&&k.id!==void 0).length>0,w=m.headers.get("content-type");if(y)if(w!=null&&w.includes("text/event-stream"))this._handleSseStream(m.body,{onresumptiontoken:s},!1);else if(w!=null&&w.includes("application/json")){let k=await m.json(),b=Array.isArray(k)?k.map(x=>kt.parse(x)):[kt.parse(k)];for(let x of b)(a=this.onmessage)==null||a.call(this,x)}else throw await((c=m.body)==null?void 0:c.cancel()),new $n(-1,`Unexpected content type: ${w}`);else await((u=m.body)==null?void 0:u.cancel())}catch(d){throw(l=this.onerror)==null||l.call(this,d),d}}get sessionId(){return this._sessionId}async terminateSession(){var e,r,o,n;if(this._sessionId)try{let i=await this._commonHeaders(),a={...this._requestInit,method:"DELETE",headers:i,signal:(e=this._abortController)==null?void 0:e.signal},c=await((r=this._fetch)!=null?r:fetch)(this._url,a);if(await((o=c.body)==null?void 0:o.cancel()),!c.ok&&c.status!==405)throw new $n(c.status,`Failed to terminate session: ${c.statusText}`);this._sessionId=void 0}catch(i){throw(n=this.onerror)==null||n.call(this,i),i}}setProtocolVersion(e){this._protocolVersion=e}get protocolVersion(){return this._protocolVersion}async resumeStream(e,r){await this._startOrAuthSse({resumptionToken:e,onresumptiontoken:r==null?void 0:r.onresumptiontoken})}};var Fi={};P$(Fi,er(rI(),1));var Vp={};_t(Vp,{$brand:()=>zo,$input:()=>Pa,$output:()=>Ia,NEVER:()=>kn,TimePrecision:()=>Ka,ZodAny:()=>wd,ZodArray:()=>Id,ZodBase64:()=>Is,ZodBase64URL:()=>Ps,ZodBigInt:()=>qn,ZodBigIntFormat:()=>Os,ZodBoolean:()=>Mn,ZodCIDRv4:()=>Ss,ZodCIDRv6:()=>zs,ZodCUID:()=>_s,ZodCUID2:()=>ys,ZodCatch:()=>Wd,ZodCodec:()=>As,ZodCustom:()=>ii,ZodCustomStringFormat:()=>An,ZodDate:()=>ei,ZodDefault:()=>qd,ZodDiscriminatedUnion:()=>Td,ZodE164:()=>Ts,ZodEmail:()=>ms,ZodEmoji:()=>gs,ZodEnum:()=>Dn,ZodError:()=>Px,ZodExactOptional:()=>Ad,ZodFile:()=>Dd,ZodFirstPartyTypeKind:()=>af,ZodFunction:()=>rf,ZodGUID:()=>Ko,ZodIPv4:()=>ws,ZodIPv6:()=>ks,ZodISODate:()=>cs,ZodISODateTime:()=>ss,ZodISODuration:()=>ls,ZodISOTime:()=>us,ZodIntersection:()=>Ed,ZodIssueCode:()=>sf,ZodJWT:()=>Es,ZodKSUID:()=>xs,ZodLazy:()=>Qd,ZodLiteral:()=>Cd,ZodMAC:()=>yd,ZodMap:()=>Rd,ZodNaN:()=>Gd,ZodNanoID:()=>vs,ZodNever:()=>Sd,ZodNonOptional:()=>Ds,ZodNull:()=>xd,ZodNullable:()=>Md,ZodNumber:()=>Zn,ZodNumberFormat:()=>nn,ZodObject:()=>ti,ZodOptional:()=>Cs,ZodPipe:()=>Us,ZodPrefault:()=>Vd,ZodPromise:()=>tf,ZodReadonly:()=>Kd,ZodRealError:()=>at,ZodRecord:()=>oi,ZodSet:()=>Nd,ZodString:()=>Un,ZodStringFormat:()=>ve,ZodSuccess:()=>Hd,ZodSymbol:()=>$d,ZodTemplateLiteral:()=>Yd,ZodTransform:()=>Ud,ZodTuple:()=>Od,ZodType:()=>K,ZodULID:()=>$s,ZodURL:()=>Qo,ZodUUID:()=>Vt,ZodUndefined:()=>bd,ZodUnion:()=>ri,ZodUnknown:()=>kd,ZodVoid:()=>zd,ZodXID:()=>bs,ZodXor:()=>Pd,_ZodString:()=>ps,_default:()=>Ld,_function:()=>ev,any:()=>js,array:()=>j,base64:()=>$g,base64url:()=>bg,bigint:()=>jg,boolean:()=>pe,catch:()=>Bd,check:()=>tv,cidrv4:()=>_g,cidrv6:()=>yg,clone:()=>Ue,codec:()=>Xg,coerce:()=>Fn,config:()=>Pe,core:()=>Xe,cuid:()=>lg,cuid2:()=>dg,custom:()=>Zs,date:()=>Ag,decode:()=>fd,decodeAsync:()=>md,default:()=>gA,describe:()=>rv,discriminatedUnion:()=>ni,e164:()=>xg,email:()=>tg,emoji:()=>cg,encode:()=>dd,encodeAsync:()=>pd,endsWith:()=>Wr,enum:()=>qe,exactOptional:()=>Zd,file:()=>Wg,flattenError:()=>zn,float32:()=>Pg,float64:()=>Tg,formatError:()=>In,fromJSONSchema:()=>sv,function:()=>ev,getErrorMap:()=>Ex,globalRegistry:()=>Ae,gt:()=>Et,gte:()=>Me,guid:()=>rg,hash:()=>Ig,hex:()=>zg,hostname:()=>Sg,httpUrl:()=>sg,includes:()=>Jr,instanceof:()=>ov,int:()=>fs,int32:()=>Eg,int64:()=>Rg,intersection:()=>Vn,ipv4:()=>hg,ipv6:()=>vg,iso:()=>ir,json:()=>av,jwt:()=>wg,keyof:()=>Zg,ksuid:()=>mg,lazy:()=>ef,length:()=>br,literal:()=>Z,locales:()=>rr,looseObject:()=>Re,looseRecord:()=>Vg,lowercase:()=>Vr,lt:()=>Tt,lte:()=>Ke,mac:()=>gg,map:()=>Fg,maxLength:()=>$r,maxSize:()=>or,meta:()=>nv,mime:()=>Br,minLength:()=>Lt,minSize:()=>Ot,multipleOf:()=>nr,nan:()=>Kg,nanoid:()=>ug,nativeEnum:()=>Hg,negative:()=>Fo,never:()=>Rs,nonnegative:()=>Ho,nonoptional:()=>Jd,nonpositive:()=>Jo,normalize:()=>Gr,null:()=>Ln,nullable:()=>Xo,nullish:()=>Bg,number:()=>ae,object:()=>R,optional:()=>xe,overwrite:()=>xt,parse:()=>sd,parseAsync:()=>cd,partialRecord:()=>Lg,pipe:()=>Yo,positive:()=>Vo,prefault:()=>Fd,preprocess:()=>ai,prettifyError:()=>ha,promise:()=>Qg,property:()=>Wo,readonly:()=>Xd,record:()=>$e,refine:()=>nf,regex:()=>Lr,regexes:()=>Ge,registry:()=>Mo,safeDecode:()=>gd,safeDecodeAsync:()=>_d,safeEncode:()=>hd,safeEncodeAsync:()=>vd,safeParse:()=>ud,safeParseAsync:()=>ld,set:()=>Jg,setErrorMap:()=>Tx,size:()=>yr,slugify:()=>Rn,startsWith:()=>Hr,strictObject:()=>Mg,string:()=>v,stringFormat:()=>kg,stringbool:()=>iv,success:()=>Gg,superRefine:()=>of,symbol:()=>Cg,templateLiteral:()=>Yg,toJSONSchema:()=>Cn,toLowerCase:()=>Xr,toUpperCase:()=>Yr,transform:()=>Ns,treeifyError:()=>ma,trim:()=>Kr,tuple:()=>jd,uint32:()=>Og,uint64:()=>Ng,ulid:()=>fg,undefined:()=>Dg,union:()=>ge,unknown:()=>_e,uppercase:()=>Fr,url:()=>hs,util:()=>S,uuid:()=>ng,uuidv4:()=>og,uuidv6:()=>ig,uuidv7:()=>ag,void:()=>Ug,xid:()=>pg,xor:()=>qg,z:()=>Ms});var gA=Ms;0&&(module.exports={CallToolRequestSchema,Client,ListRootsRequestSchema,ListToolsRequestSchema,Loop,PingRequestSchema,ProgressNotificationSchema,SSEClientTransport,SSEServerTransport,Server,StdioClientTransport,StdioServerTransport,StreamableHTTPClientTransport,StreamableHTTPServerTransport,z,zodToJsonSchema});
/*! Bundled license information:

bytes/index.js:
  (*!
   * bytes
   * Copyright(c) 2012-2014 TJ Holowaychuk
   * Copyright(c) 2015 Jed Watson
   * MIT Licensed
   *)

content-type/index.js:
  (*!
   * content-type
   * Copyright(c) 2015 Douglas Christopher Wilson
   * MIT Licensed
   *)
*/
