@techdocs/cli 1.10.7-next.1 → 1.10.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/embedded-app/.config-schema.json +64 -31
  3. package/dist/embedded-app/index.html +1 -1
  4. package/dist/embedded-app/index.html.tmpl +1 -1
  5. package/dist/embedded-app/static/123.5e36a0db.chunk.js +2 -0
  6. package/dist/embedded-app/static/123.5e36a0db.chunk.js.map +1 -0
  7. package/dist/embedded-app/static/1659.76caecab.chunk.js +2 -0
  8. package/dist/embedded-app/static/1659.76caecab.chunk.js.map +1 -0
  9. package/dist/embedded-app/static/1733.d8004241.chunk.js +2 -0
  10. package/dist/embedded-app/static/1733.d8004241.chunk.js.map +1 -0
  11. package/dist/embedded-app/static/1749.3ab65683.chunk.js +2 -0
  12. package/dist/embedded-app/static/1749.3ab65683.chunk.js.map +1 -0
  13. package/dist/embedded-app/static/1994.78304f99.chunk.js +2 -0
  14. package/dist/embedded-app/static/1994.78304f99.chunk.js.map +1 -0
  15. package/dist/embedded-app/static/2295.a94805e5.chunk.js +5 -0
  16. package/dist/embedded-app/static/2295.a94805e5.chunk.js.map +1 -0
  17. package/dist/embedded-app/static/{3554.0ce35bc3.chunk.js → 3554.d745ad43.chunk.js} +2 -2
  18. package/dist/embedded-app/static/{3554.0ce35bc3.chunk.js.map → 3554.d745ad43.chunk.js.map} +1 -1
  19. package/dist/embedded-app/static/{4384.ae7b53b0.chunk.js → 4384.dc692f4f.chunk.js} +2 -2
  20. package/dist/embedded-app/static/{4384.ae7b53b0.chunk.js.map → 4384.dc692f4f.chunk.js.map} +1 -1
  21. package/dist/embedded-app/static/4587.85b7cf82.chunk.js +2 -0
  22. package/dist/embedded-app/static/4587.85b7cf82.chunk.js.map +1 -0
  23. package/dist/embedded-app/static/4648.e939339d.chunk.js +2 -0
  24. package/dist/embedded-app/static/4648.e939339d.chunk.js.map +1 -0
  25. package/dist/embedded-app/static/6138.d8ae40ee.chunk.js +2 -0
  26. package/dist/embedded-app/static/6138.d8ae40ee.chunk.js.map +1 -0
  27. package/dist/embedded-app/static/7203.1bd24814.chunk.js +2 -0
  28. package/dist/embedded-app/static/7203.1bd24814.chunk.js.map +1 -0
  29. package/dist/embedded-app/static/{7226.9f87f67d.chunk.js → 7226.bb48ee34.chunk.js} +2 -2
  30. package/dist/embedded-app/static/{7226.9f87f67d.chunk.js.map → 7226.bb48ee34.chunk.js.map} +1 -1
  31. package/dist/embedded-app/static/{8461.d5fe0648.chunk.js → 8461.0c3f2ac0.chunk.js} +3 -3
  32. package/dist/embedded-app/static/{8461.d5fe0648.chunk.js.map → 8461.0c3f2ac0.chunk.js.map} +1 -1
  33. package/dist/embedded-app/static/{8877.3f864531.chunk.js → 8877.a7ffabd9.chunk.js} +2 -2
  34. package/dist/embedded-app/static/{8877.3f864531.chunk.js.map → 8877.a7ffabd9.chunk.js.map} +1 -1
  35. package/dist/embedded-app/static/9050.69b458a6.chunk.js +2 -0
  36. package/dist/embedded-app/static/9050.69b458a6.chunk.js.map +1 -0
  37. package/dist/embedded-app/static/9230.23c1d5e0.chunk.js +2 -0
  38. package/dist/embedded-app/static/9230.23c1d5e0.chunk.js.map +1 -0
  39. package/dist/embedded-app/static/{main.161a9ecc.css → main.0657d08d.css} +2 -2
  40. package/dist/embedded-app/static/{main.161a9ecc.css.map → main.0657d08d.css.map} +1 -1
  41. package/dist/embedded-app/static/main.c9b00fd0.js +523 -0
  42. package/dist/embedded-app/static/main.c9b00fd0.js.map +1 -0
  43. package/dist/embedded-app/static/{module-react-aria-components.67232dc3.js → module-react-aria-components.c61f9ab4.js} +2 -2
  44. package/dist/embedded-app/static/{module-react-aria-components.67232dc3.js.map → module-react-aria-components.c61f9ab4.js.map} +1 -1
  45. package/dist/embedded-app/static/module-zod.b3376822.js +38 -0
  46. package/dist/embedded-app/static/module-zod.b3376822.js.map +1 -0
  47. package/dist/embedded-app/static/{runtime.c39b96cc.js → runtime.9896d1d9.js} +2 -2
  48. package/dist/embedded-app/static/{runtime.c39b96cc.js.map → runtime.9896d1d9.js.map} +1 -1
  49. package/dist/embedded-app/static/vendor.ff5541f5.js +6 -0
  50. package/dist/embedded-app/static/vendor.ff5541f5.js.map +1 -0
  51. package/dist/package.json.cjs.js +1 -1
  52. package/package.json +7 -7
  53. package/dist/embedded-app/static/123.97a62a60.chunk.js +0 -2
  54. package/dist/embedded-app/static/123.97a62a60.chunk.js.map +0 -1
  55. package/dist/embedded-app/static/1659.7dd5287b.chunk.js +0 -2
  56. package/dist/embedded-app/static/1659.7dd5287b.chunk.js.map +0 -1
  57. package/dist/embedded-app/static/1733.14c06ac4.chunk.js +0 -2
  58. package/dist/embedded-app/static/1733.14c06ac4.chunk.js.map +0 -1
  59. package/dist/embedded-app/static/1749.745aaeeb.chunk.js +0 -2
  60. package/dist/embedded-app/static/1749.745aaeeb.chunk.js.map +0 -1
  61. package/dist/embedded-app/static/1994.1f294712.chunk.js +0 -2
  62. package/dist/embedded-app/static/1994.1f294712.chunk.js.map +0 -1
  63. package/dist/embedded-app/static/2295.765b9f2e.chunk.js +0 -5
  64. package/dist/embedded-app/static/2295.765b9f2e.chunk.js.map +0 -1
  65. package/dist/embedded-app/static/4587.bf73bd77.chunk.js +0 -2
  66. package/dist/embedded-app/static/4587.bf73bd77.chunk.js.map +0 -1
  67. package/dist/embedded-app/static/4648.bd152b54.chunk.js +0 -2
  68. package/dist/embedded-app/static/4648.bd152b54.chunk.js.map +0 -1
  69. package/dist/embedded-app/static/6138.2560a5ba.chunk.js +0 -2
  70. package/dist/embedded-app/static/6138.2560a5ba.chunk.js.map +0 -1
  71. package/dist/embedded-app/static/7203.1ec93f6f.chunk.js +0 -2
  72. package/dist/embedded-app/static/7203.1ec93f6f.chunk.js.map +0 -1
  73. package/dist/embedded-app/static/9050.bab0c5db.chunk.js +0 -2
  74. package/dist/embedded-app/static/9050.bab0c5db.chunk.js.map +0 -1
  75. package/dist/embedded-app/static/9230.b3e5d612.chunk.js +0 -2
  76. package/dist/embedded-app/static/9230.b3e5d612.chunk.js.map +0 -1
  77. package/dist/embedded-app/static/main.cb460d15.js +0 -523
  78. package/dist/embedded-app/static/main.cb460d15.js.map +0 -1
  79. package/dist/embedded-app/static/module-zod.dd7f5a90.js +0 -2
  80. package/dist/embedded-app/static/module-zod.dd7f5a90.js.map +0 -1
  81. package/dist/embedded-app/static/vendor.65e7f165.js +0 -6
  82. package/dist/embedded-app/static/vendor.65e7f165.js.map +0 -1
@@ -0,0 +1,38 @@
1
+ "use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["9343"],{91350(e,t,i){let n;i.d(t,{z:()=>c,kY:()=>d});var r,a,s,o,u,l,d,c={};i.r(c),i.d(c,{BRAND:()=>eD,DIRTY:()=>S,EMPTY_PATH:()=>x,INVALID:()=>I,NEVER:()=>tg,OK:()=>Z,ParseStatus:()=>w,Schema:()=>D,ZodAny:()=>eu,ZodArray:()=>em,ZodBigInt:()=>ei,ZodBoolean:()=>en,ZodBranded:()=>eE,ZodCatch:()=>eT,ZodDate:()=>er,ZodDefault:()=>eN,ZodDiscriminatedUnion:()=>ev,ZodEffects:()=>eO,ZodEnum:()=>eS,ZodError:()=>v,ZodFirstPartyTypeKind:()=>d,ZodFunction:()=>ex,ZodIntersection:()=>eg,ZodIssueCode:()=>p,ZodLazy:()=>ek,ZodLiteral:()=>ew,ZodMap:()=>e$,ZodNaN:()=>eP,ZodNativeEnum:()=>eZ,ZodNever:()=>ed,ZodNull:()=>eo,ZodNullable:()=>eU,ZodNumber:()=>et,ZodObject:()=>ef,ZodOptional:()=>ej,ZodParsedType:()=>m,ZodPipeline:()=>eA,ZodPromise:()=>ez,ZodReadonly:()=>eC,ZodRecord:()=>ey,ZodSchema:()=>D,ZodSet:()=>eb,ZodString:()=>ee,ZodSymbol:()=>ea,ZodTransformer:()=>eO,ZodTuple:()=>e_,ZodType:()=>D,ZodUndefined:()=>es,ZodUnion:()=>ep,ZodUnknown:()=>el,ZodVoid:()=>ec,addIssueToContext:()=>k,any:()=>eH,array:()=>e1,bigint:()=>eK,boolean:()=>eW,coerce:()=>tv,custom:()=>eL,date:()=>eB,datetimeRegex:()=>Q,defaultErrorMap:()=>g,discriminatedUnion:()=>e3,effect:()=>tu,enum:()=>ta,function:()=>ti,getErrorMap:()=>$,getParsedType:()=>f,instanceof:()=>eM,intersection:()=>e5,isAborted:()=>z,isAsync:()=>U,isDirty:()=>O,isValid:()=>j,late:()=>eF,lazy:()=>tn,literal:()=>tr,makeIssue:()=>b,map:()=>te,nan:()=>eV,nativeEnum:()=>ts,never:()=>e0,null:()=>eY,nullable:()=>td,number:()=>eq,object:()=>e6,objectUtil:()=>u,oboolean:()=>th,onumber:()=>tp,optional:()=>tl,ostring:()=>tf,pipeline:()=>tm,preprocess:()=>tc,promise:()=>to,quotelessJson:()=>h,record:()=>e8,set:()=>tt,setErrorMap:()=>y,strictObject:()=>e9,string:()=>eJ,symbol:()=>eG,transformer:()=>tu,tuple:()=>e7,undefined:()=>eX,union:()=>e2,unknown:()=>eQ,util:()=>o,void:()=>e4}),(r=o||(o={})).assertEqual=e=>{},r.assertIs=function(e){},r.assertNever=function(e){throw Error()},r.arrayToEnum=e=>{let t={};for(let i of e)t[i]=i;return t},r.getValidEnumValues=e=>{let t=r.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),i={};for(let n of t)i[n]=e[n];return r.objectValues(i)},r.objectValues=e=>r.objectKeys(e).map(function(t){return e[t]}),r.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t},r.find=(e,t)=>{for(let i of e)if(t(i))return i},r.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,r.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},r.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(u||(u={})).mergeShapes=(e,t)=>({...e,...t});let m=o.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),f=e=>{switch(typeof e){case"undefined":return m.undefined;case"string":return m.string;case"number":return Number.isNaN(e)?m.nan:m.number;case"boolean":return m.boolean;case"function":return m.function;case"bigint":return m.bigint;case"symbol":return m.symbol;case"object":if(Array.isArray(e))return m.array;if(null===e)return m.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return m.promise;if("u">typeof Map&&e instanceof Map)return m.map;if("u">typeof Set&&e instanceof Set)return m.set;if("u">typeof Date&&e instanceof Date)return m.date;return m.object;default:return m.unknown}},p=o.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"]),h=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class v extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},i={_errors:[]},n=e=>{for(let r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(n);else if("invalid_return_type"===r.code)n(r.returnTypeError);else if("invalid_arguments"===r.code)n(r.argumentsError);else if(0===r.path.length)i._errors.push(t(r));else{let e=i,n=0;for(;n<r.path.length;){let i=r.path[n];n===r.path.length-1?(e[i]=e[i]||{_errors:[]},e[i]._errors.push(t(r))):e[i]=e[i]||{_errors:[]},e=e[i],n++}}};return n(this),i}static assert(e){if(!(e instanceof v))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,o.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t=Object.create(null),i=[];for(let n of this.issues)if(n.path.length>0){let i=n.path[0];t[i]=t[i]||[],t[i].push(e(n))}else i.push(e(n));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}v.create=e=>new v(e);let g=(e,t)=>{let i;switch(e.code){case p.invalid_type:i=e.received===m.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case p.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,o.jsonStringifyReplacer)}`;break;case p.unrecognized_keys:i=`Unrecognized key(s) in object: ${o.joinValues(e.keys,", ")}`;break;case p.invalid_union:i="Invalid input";break;case p.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${o.joinValues(e.options)}`;break;case p.invalid_enum_value:i=`Invalid enum value. Expected ${o.joinValues(e.options)}, received '${e.received}'`;break;case p.invalid_arguments:i="Invalid function arguments";break;case p.invalid_return_type:i="Invalid function return type";break;case p.invalid_date:i="Invalid date";break;case p.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:o.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case p.too_small:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case p.too_big:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case p.custom:i="Invalid input";break;case p.invalid_intersection_types:i="Intersection results could not be merged";break;case p.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case p.not_finite:i="Number must be finite";break;default:i=t.defaultError,o.assertNever(e)}return{message:i}},_=g;function y(e){_=e}function $(){return _}let b=e=>{let{data:t,path:i,errorMaps:n,issueData:r}=e,a=[...i,...r.path||[]],s={...r,path:a};if(void 0!==r.message)return{...r,path:a,message:r.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...r,path:a,message:o}},x=[];function k(e,t){let i=_,n=b({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,i,i===g?void 0:g].filter(e=>!!e)});e.common.issues.push(n)}class w{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let i=[];for(let n of t){if("aborted"===n.status)return I;"dirty"===n.status&&e.dirty(),i.push(n.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){let i=[];for(let e of t){let t=await e.key,n=await e.value;i.push({key:t,value:n})}return w.mergeObjectSync(e,i)}static mergeObjectSync(e,t){let i={};for(let n of t){let{key:t,value:r}=n;if("aborted"===t.status||"aborted"===r.status)return I;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==r.value||n.alwaysSet)&&(i[t.value]=r.value)}return{status:e.value,value:i}}}let I=Object.freeze({status:"aborted"}),S=e=>({status:"dirty",value:e}),Z=e=>({status:"valid",value:e}),z=e=>"aborted"===e.status,O=e=>"dirty"===e.status,j=e=>"valid"===e.status,U=e=>"u">typeof Promise&&e instanceof Promise;(a=l||(l={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},a.toString=e=>"string"==typeof e?e:e?.message;class N{constructor(e,t,i,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let T=(e,t)=>{if(j(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new v(e.common.issues);return this._error=t,this._error}}};function P(e){if(!e)return{};let{errorMap:t,invalid_type_error:i,required_error:n,description:r}=e;if(t&&(i||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(t,r)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??r.defaultError}:void 0===r.data?{message:a??n??r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:a??i??r.defaultError}},description:r}}class D{get description(){return this._def.description}_getType(e){return f(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new w,ctx:{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(U(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){let i={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)},n=this._parseSync({data:e,path:i.path,parent:i});return T(i,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:t});return j(i)?{value:i.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>j(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){let i={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)},n=this._parse({data:e,path:i.path,parent:i});return T(i,await (U(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((i,n)=>{let r=e(i),a=()=>n.addIssue({code:p.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(i):t});return"u">typeof Promise&&r instanceof Promise?r.then(e=>!!e||(a(),!1)):!!r||(a(),!1)})}refinement(e,t){return this._refinement((i,n)=>!!e(i)||(n.addIssue("function"==typeof t?t(i,n):t),!1))}_refinement(e){return new eO({schema:this,typeName:d.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:e=>this["~validate"](e)}}optional(){return ej.create(this,this._def)}nullable(){return eU.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return em.create(this)}promise(){return ez.create(this,this._def)}or(e){return ep.create([this,e],this._def)}and(e){return eg.create(this,e,this._def)}transform(e){return new eO({...P(this._def),schema:this,typeName:d.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eN({...P(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:d.ZodDefault})}brand(){return new eE({typeName:d.ZodBranded,type:this,...P(this._def)})}catch(e){return new eT({...P(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:d.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eA.create(this,e)}readonly(){return eC.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let E=/^c[^\s-]{8,}$/i,A=/^[0-9a-z]+$/,C=/^[0-9A-HJKMNP-TV-Z]{26}$/i,R=/^[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,L=/^[a-z0-9_-]{21}$/i,F=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,M=/^[-+]?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)?)??$/,J=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,q=/^(?:(?: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])$/,V=/^(?:(?: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])$/,K=/^(([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]))$/,W=/^(([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])$/,B=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,G=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,X="((\\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])))",Y=RegExp(`^${X}$`);function H(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let i=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${i}`}function Q(e){let t=`${X}T${H(e)}`,i=[];return i.push(e.local?"Z?":"Z"),e.offset&&i.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${i.join("|")})`,RegExp(`^${t}$`)}class ee extends D{_parse(e){var t,i,r,a;let s;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==m.string){let t=this._getOrReturnCtx(e);return k(t,{code:p.invalid_type,expected:m.string,received:t.parsedType}),I}let u=new w;for(let l of this._def.checks)if("min"===l.kind)e.data.length<l.value&&(k(s=this._getOrReturnCtx(e,s),{code:p.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),u.dirty());else if("max"===l.kind)e.data.length>l.value&&(k(s=this._getOrReturnCtx(e,s),{code:p.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),u.dirty());else if("length"===l.kind){let t=e.data.length>l.value,i=e.data.length<l.value;(t||i)&&(s=this._getOrReturnCtx(e,s),t?k(s,{code:p.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):i&&k(s,{code:p.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),u.dirty())}else if("email"===l.kind)J.test(e.data)||(k(s=this._getOrReturnCtx(e,s),{validation:"email",code:p.invalid_string,message:l.message}),u.dirty());else if("emoji"===l.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(k(s=this._getOrReturnCtx(e,s),{validation:"emoji",code:p.invalid_string,message:l.message}),u.dirty());else if("uuid"===l.kind)R.test(e.data)||(k(s=this._getOrReturnCtx(e,s),{validation:"uuid",code:p.invalid_string,message:l.message}),u.dirty());else if("nanoid"===l.kind)L.test(e.data)||(k(s=this._getOrReturnCtx(e,s),{validation:"nanoid",code:p.invalid_string,message:l.message}),u.dirty());else if("cuid"===l.kind)E.test(e.data)||(k(s=this._getOrReturnCtx(e,s),{validation:"cuid",code:p.invalid_string,message:l.message}),u.dirty());else if("cuid2"===l.kind)A.test(e.data)||(k(s=this._getOrReturnCtx(e,s),{validation:"cuid2",code:p.invalid_string,message:l.message}),u.dirty());else if("ulid"===l.kind)C.test(e.data)||(k(s=this._getOrReturnCtx(e,s),{validation:"ulid",code:p.invalid_string,message:l.message}),u.dirty());else if("url"===l.kind)try{new URL(e.data)}catch{k(s=this._getOrReturnCtx(e,s),{validation:"url",code:p.invalid_string,message:l.message}),u.dirty()}else"regex"===l.kind?(l.regex.lastIndex=0,l.regex.test(e.data)||(k(s=this._getOrReturnCtx(e,s),{validation:"regex",code:p.invalid_string,message:l.message}),u.dirty())):"trim"===l.kind?e.data=e.data.trim():"includes"===l.kind?e.data.includes(l.value,l.position)||(k(s=this._getOrReturnCtx(e,s),{code:p.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),u.dirty()):"toLowerCase"===l.kind?e.data=e.data.toLowerCase():"toUpperCase"===l.kind?e.data=e.data.toUpperCase():"startsWith"===l.kind?e.data.startsWith(l.value)||(k(s=this._getOrReturnCtx(e,s),{code:p.invalid_string,validation:{startsWith:l.value},message:l.message}),u.dirty()):"endsWith"===l.kind?e.data.endsWith(l.value)||(k(s=this._getOrReturnCtx(e,s),{code:p.invalid_string,validation:{endsWith:l.value},message:l.message}),u.dirty()):"datetime"===l.kind?Q(l).test(e.data)||(k(s=this._getOrReturnCtx(e,s),{code:p.invalid_string,validation:"datetime",message:l.message}),u.dirty()):"date"===l.kind?Y.test(e.data)||(k(s=this._getOrReturnCtx(e,s),{code:p.invalid_string,validation:"date",message:l.message}),u.dirty()):"time"===l.kind?RegExp(`^${H(l)}$`).test(e.data)||(k(s=this._getOrReturnCtx(e,s),{code:p.invalid_string,validation:"time",message:l.message}),u.dirty()):"duration"===l.kind?M.test(e.data)||(k(s=this._getOrReturnCtx(e,s),{validation:"duration",code:p.invalid_string,message:l.message}),u.dirty()):"ip"===l.kind?(t=e.data,!(("v4"===(i=l.version)||!i)&&q.test(t)||("v6"===i||!i)&&K.test(t))&&1&&(k(s=this._getOrReturnCtx(e,s),{validation:"ip",code:p.invalid_string,message:l.message}),u.dirty())):"jwt"===l.kind?!function(e,t){if(!F.test(e))return!1;try{let[i]=e.split(".");if(!i)return!1;let n=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),r=JSON.parse(atob(n));if("object"!=typeof r||null===r||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)return!1;return!0}catch{return!1}}(e.data,l.alg)&&(k(s=this._getOrReturnCtx(e,s),{validation:"jwt",code:p.invalid_string,message:l.message}),u.dirty()):"cidr"===l.kind?(r=e.data,!(("v4"===(a=l.version)||!a)&&V.test(r)||("v6"===a||!a)&&W.test(r))&&1&&(k(s=this._getOrReturnCtx(e,s),{validation:"cidr",code:p.invalid_string,message:l.message}),u.dirty())):"base64"===l.kind?B.test(e.data)||(k(s=this._getOrReturnCtx(e,s),{validation:"base64",code:p.invalid_string,message:l.message}),u.dirty()):"base64url"===l.kind?G.test(e.data)||(k(s=this._getOrReturnCtx(e,s),{validation:"base64url",code:p.invalid_string,message:l.message}),u.dirty()):o.assertNever(l);return{status:u.value,value:e.data}}_regex(e,t,i){return this.refinement(t=>e.test(t),{validation:t,code:p.invalid_string,...l.errToObj(i)})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...l.errToObj(e)})}url(e){return this._addCheck({kind:"url",...l.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...l.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...l.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...l.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...l.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...l.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...l.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...l.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...l.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...l.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...l.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...l.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...l.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...l.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...l.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...l.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...l.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...l.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...l.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...l.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...l.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...l.errToObj(t)})}nonempty(e){return this.min(1,l.errToObj(e))}trim(){return new ee({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ee({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ee({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ee.create=e=>new ee({checks:[],typeName:d.ZodString,coerce:e?.coerce??!1,...P(e)});class et extends D{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==m.number){let t=this._getOrReturnCtx(e);return k(t,{code:p.invalid_type,expected:m.number,received:t.parsedType}),I}let i=new w;for(let n of this._def.checks)"int"===n.kind?o.isInteger(e.data)||(k(t=this._getOrReturnCtx(e,t),{code:p.invalid_type,expected:"integer",received:"float",message:n.message}),i.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(k(t=this._getOrReturnCtx(e,t),{code:p.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(k(t=this._getOrReturnCtx(e,t),{code:p.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):"multipleOf"===n.kind?0!==function(e,t){let i=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,r=i>n?i:n;return Number.parseInt(e.toFixed(r).replace(".",""))%Number.parseInt(t.toFixed(r).replace(".",""))/10**r}(e.data,n.value)&&(k(t=this._getOrReturnCtx(e,t),{code:p.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(k(t=this._getOrReturnCtx(e,t),{code:p.not_finite,message:n.message}),i.dirty()):o.assertNever(n);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,i,n){return new et({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:l.toString(n)}]})}_addCheck(e){return new et({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:l.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:l.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:l.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:l.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&o.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let i of this._def.checks)if("finite"===i.kind||"int"===i.kind||"multipleOf"===i.kind)return!0;else"min"===i.kind?(null===t||i.value>t)&&(t=i.value):"max"===i.kind&&(null===e||i.value<e)&&(e=i.value);return Number.isFinite(t)&&Number.isFinite(e)}}et.create=e=>new et({checks:[],typeName:d.ZodNumber,coerce:e?.coerce||!1,...P(e)});class ei extends D{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==m.bigint)return this._getInvalidInput(e);let i=new w;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(k(t=this._getOrReturnCtx(e,t),{code:p.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(k(t=this._getOrReturnCtx(e,t),{code:p.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(k(t=this._getOrReturnCtx(e,t),{code:p.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):o.assertNever(n);return{status:i.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return k(t,{code:p.invalid_type,expected:m.bigint,received:t.parsedType}),I}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,i,n){return new ei({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:l.toString(n)}]})}_addCheck(e){return new ei({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ei.create=e=>new ei({checks:[],typeName:d.ZodBigInt,coerce:e?.coerce??!1,...P(e)});class en extends D{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==m.boolean){let t=this._getOrReturnCtx(e);return k(t,{code:p.invalid_type,expected:m.boolean,received:t.parsedType}),I}return Z(e.data)}}en.create=e=>new en({typeName:d.ZodBoolean,coerce:e?.coerce||!1,...P(e)});class er extends D{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==m.date){let t=this._getOrReturnCtx(e);return k(t,{code:p.invalid_type,expected:m.date,received:t.parsedType}),I}if(Number.isNaN(e.data.getTime()))return k(this._getOrReturnCtx(e),{code:p.invalid_date}),I;let i=new w;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(k(t=this._getOrReturnCtx(e,t),{code:p.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),i.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(k(t=this._getOrReturnCtx(e,t),{code:p.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),i.dirty()):o.assertNever(n);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new er({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:l.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:l.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}er.create=e=>new er({checks:[],coerce:e?.coerce||!1,typeName:d.ZodDate,...P(e)});class ea extends D{_parse(e){if(this._getType(e)!==m.symbol){let t=this._getOrReturnCtx(e);return k(t,{code:p.invalid_type,expected:m.symbol,received:t.parsedType}),I}return Z(e.data)}}ea.create=e=>new ea({typeName:d.ZodSymbol,...P(e)});class es extends D{_parse(e){if(this._getType(e)!==m.undefined){let t=this._getOrReturnCtx(e);return k(t,{code:p.invalid_type,expected:m.undefined,received:t.parsedType}),I}return Z(e.data)}}es.create=e=>new es({typeName:d.ZodUndefined,...P(e)});class eo extends D{_parse(e){if(this._getType(e)!==m.null){let t=this._getOrReturnCtx(e);return k(t,{code:p.invalid_type,expected:m.null,received:t.parsedType}),I}return Z(e.data)}}eo.create=e=>new eo({typeName:d.ZodNull,...P(e)});class eu extends D{constructor(){super(...arguments),this._any=!0}_parse(e){return Z(e.data)}}eu.create=e=>new eu({typeName:d.ZodAny,...P(e)});class el extends D{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Z(e.data)}}el.create=e=>new el({typeName:d.ZodUnknown,...P(e)});class ed extends D{_parse(e){let t=this._getOrReturnCtx(e);return k(t,{code:p.invalid_type,expected:m.never,received:t.parsedType}),I}}ed.create=e=>new ed({typeName:d.ZodNever,...P(e)});class ec extends D{_parse(e){if(this._getType(e)!==m.undefined){let t=this._getOrReturnCtx(e);return k(t,{code:p.invalid_type,expected:m.void,received:t.parsedType}),I}return Z(e.data)}}ec.create=e=>new ec({typeName:d.ZodVoid,...P(e)});class em extends D{_parse(e){let{ctx:t,status:i}=this._processInputParams(e),n=this._def;if(t.parsedType!==m.array)return k(t,{code:p.invalid_type,expected:m.array,received:t.parsedType}),I;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,r=t.data.length<n.exactLength.value;(e||r)&&(k(t,{code:e?p.too_big:p.too_small,minimum:r?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(k(t,{code:p.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(k(t,{code:p.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((e,i)=>n.type._parseAsync(new N(t,e,t.path,i)))).then(e=>w.mergeArray(i,e));let r=[...t.data].map((e,i)=>n.type._parseSync(new N(t,e,t.path,i)));return w.mergeArray(i,r)}get element(){return this._def.type}min(e,t){return new em({...this._def,minLength:{value:e,message:l.toString(t)}})}max(e,t){return new em({...this._def,maxLength:{value:e,message:l.toString(t)}})}length(e,t){return new em({...this._def,exactLength:{value:e,message:l.toString(t)}})}nonempty(e){return this.min(1,e)}}em.create=(e,t)=>new em({type:e,minLength:null,maxLength:null,exactLength:null,typeName:d.ZodArray,...P(t)});class ef extends D{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=o.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==m.object){let t=this._getOrReturnCtx(e);return k(t,{code:p.invalid_type,expected:m.object,received:t.parsedType}),I}let{status:t,ctx:i}=this._processInputParams(e),{shape:n,keys:r}=this._getCached(),a=[];if(!(this._def.catchall instanceof ed&&"strip"===this._def.unknownKeys))for(let e in i.data)r.includes(e)||a.push(e);let s=[];for(let e of r){let t=n[e],r=i.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new N(i,r,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof ed){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)a.length>0&&(k(i,{code:p.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let n=i.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new N(i,n,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let i=await t.key,n=await t.value;e.push({key:i,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>w.mergeObjectSync(t,e)):w.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return l.errToObj,new ef({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,i)=>{let n=this._def.errorMap?.(t,i).message??i.defaultError;return"unrecognized_keys"===t.code?{message:l.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new ef({...this._def,unknownKeys:"strip"})}passthrough(){return new ef({...this._def,unknownKeys:"passthrough"})}extend(e){return new ef({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ef({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:d.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ef({...this._def,catchall:e})}pick(e){let t={};for(let i of o.objectKeys(e))e[i]&&this.shape[i]&&(t[i]=this.shape[i]);return new ef({...this._def,shape:()=>t})}omit(e){let t={};for(let i of o.objectKeys(this.shape))e[i]||(t[i]=this.shape[i]);return new ef({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ef){let i={};for(let n in t.shape){let r=t.shape[n];i[n]=ej.create(e(r))}return new ef({...t._def,shape:()=>i})}if(t instanceof em)return new em({...t._def,type:e(t.element)});if(t instanceof ej)return ej.create(e(t.unwrap()));if(t instanceof eU)return eU.create(e(t.unwrap()));if(t instanceof e_)return e_.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let i of o.objectKeys(this.shape)){let n=this.shape[i];e&&!e[i]?t[i]=n:t[i]=n.optional()}return new ef({...this._def,shape:()=>t})}required(e){let t={};for(let i of o.objectKeys(this.shape))if(e&&!e[i])t[i]=this.shape[i];else{let e=this.shape[i];for(;e instanceof ej;)e=e._def.innerType;t[i]=e}return new ef({...this._def,shape:()=>t})}keyof(){return eI(o.objectKeys(this.shape))}}ef.create=(e,t)=>new ef({shape:()=>e,unknownKeys:"strip",catchall:ed.create(),typeName:d.ZodObject,...P(t)}),ef.strictCreate=(e,t)=>new ef({shape:()=>e,unknownKeys:"strict",catchall:ed.create(),typeName:d.ZodObject,...P(t)}),ef.lazycreate=(e,t)=>new ef({shape:e,unknownKeys:"strip",catchall:ed.create(),typeName:d.ZodObject,...P(t)});class ep extends D{_parse(e){let{ctx:t}=this._processInputParams(e),i=this._def.options;if(t.common.async)return Promise.all(i.map(async e=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let i of e)if("dirty"===i.result.status)return t.common.issues.push(...i.ctx.common.issues),i.result;let i=e.map(e=>new v(e.ctx.common.issues));return k(t,{code:p.invalid_union,unionErrors:i}),I});{let e,n=[];for(let r of i){let i={...t,common:{...t.common,issues:[]},parent:null},a=r._parseSync({data:t.data,path:t.path,parent:i});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:i}),i.common.issues.length&&n.push(i.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let r=n.map(e=>new v(e));return k(t,{code:p.invalid_union,unionErrors:r}),I}}get options(){return this._def.options}}ep.create=(e,t)=>new ep({options:e,typeName:d.ZodUnion,...P(t)});let eh=e=>{if(e instanceof ek)return eh(e.schema);if(e instanceof eO)return eh(e.innerType());if(e instanceof ew)return[e.value];if(e instanceof eS)return e.options;if(e instanceof eZ)return o.objectValues(e.enum);else if(e instanceof eN)return eh(e._def.innerType);else if(e instanceof es)return[void 0];else if(e instanceof eo)return[null];else if(e instanceof ej)return[void 0,...eh(e.unwrap())];else if(e instanceof eU)return[null,...eh(e.unwrap())];else if(e instanceof eE)return eh(e.unwrap());else if(e instanceof eC)return eh(e.unwrap());else if(e instanceof eT)return eh(e._def.innerType);else return[]};class ev extends D{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==m.object)return k(t,{code:p.invalid_type,expected:m.object,received:t.parsedType}),I;let i=this.discriminator,n=t.data[i],r=this.optionsMap.get(n);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(k(t,{code:p.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),I)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){let n=new Map;for(let i of t){let t=eh(i.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let r of t){if(n.has(r))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);n.set(r,i)}}return new ev({typeName:d.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...P(i)})}}class eg extends D{_parse(e){let{status:t,ctx:i}=this._processInputParams(e),n=(e,n)=>{if(z(e)||z(n))return I;let r=function e(t,i){let n=f(t),r=f(i);if(t===i)return{valid:!0,data:t};if(n===m.object&&r===m.object){let n=o.objectKeys(i),r=o.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...i};for(let n of r){let r=e(t[n],i[n]);if(!r.valid)return{valid:!1};a[n]=r.data}return{valid:!0,data:a}}if(n===m.array&&r===m.array){if(t.length!==i.length)return{valid:!1};let n=[];for(let r=0;r<t.length;r++){let a=e(t[r],i[r]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}if(n===m.date&&r===m.date&&+t==+i)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return r.valid?((O(e)||O(n))&&t.dirty(),{status:t.value,value:r.data}):(k(i,{code:p.invalid_intersection_types}),I)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}eg.create=(e,t,i)=>new eg({left:e,right:t,typeName:d.ZodIntersection,...P(i)});class e_ extends D{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==m.array)return k(i,{code:p.invalid_type,expected:m.array,received:i.parsedType}),I;if(i.data.length<this._def.items.length)return k(i,{code:p.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),I;!this._def.rest&&i.data.length>this._def.items.length&&(k(i,{code:p.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...i.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new N(i,e,i.path,t)):null}).filter(e=>!!e);return i.common.async?Promise.all(n).then(e=>w.mergeArray(t,e)):w.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new e_({...this._def,rest:e})}}e_.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new e_({items:e,typeName:d.ZodTuple,rest:null,...P(t)})};class ey extends D{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==m.object)return k(i,{code:p.invalid_type,expected:m.object,received:i.parsedType}),I;let n=[],r=this._def.keyType,a=this._def.valueType;for(let e in i.data)n.push({key:r._parse(new N(i,e,i.path,e)),value:a._parse(new N(i,i.data[e],i.path,e)),alwaysSet:e in i.data});return i.common.async?w.mergeObjectAsync(t,n):w.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,i){return new ey(t instanceof D?{keyType:e,valueType:t,typeName:d.ZodRecord,...P(i)}:{keyType:ee.create(),valueType:e,typeName:d.ZodRecord,...P(t)})}}class e$ extends D{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==m.map)return k(i,{code:p.invalid_type,expected:m.map,received:i.parsedType}),I;let n=this._def.keyType,r=this._def.valueType,a=[...i.data.entries()].map(([e,t],a)=>({key:n._parse(new N(i,e,i.path,[a,"key"])),value:r._parse(new N(i,t,i.path,[a,"value"]))}));if(i.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let i of a){let n=await i.key,r=await i.value;if("aborted"===n.status||"aborted"===r.status)return I;("dirty"===n.status||"dirty"===r.status)&&t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}})}{let e=new Map;for(let i of a){let n=i.key,r=i.value;if("aborted"===n.status||"aborted"===r.status)return I;("dirty"===n.status||"dirty"===r.status)&&t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}}}}e$.create=(e,t,i)=>new e$({valueType:t,keyType:e,typeName:d.ZodMap,...P(i)});class eb extends D{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==m.set)return k(i,{code:p.invalid_type,expected:m.set,received:i.parsedType}),I;let n=this._def;null!==n.minSize&&i.data.size<n.minSize.value&&(k(i,{code:p.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&i.data.size>n.maxSize.value&&(k(i,{code:p.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let r=this._def.valueType;function a(e){let i=new Set;for(let n of e){if("aborted"===n.status)return I;"dirty"===n.status&&t.dirty(),i.add(n.value)}return{status:t.value,value:i}}let s=[...i.data.values()].map((e,t)=>r._parse(new N(i,e,i.path,t)));return i.common.async?Promise.all(s).then(e=>a(e)):a(s)}min(e,t){return new eb({...this._def,minSize:{value:e,message:l.toString(t)}})}max(e,t){return new eb({...this._def,maxSize:{value:e,message:l.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eb.create=(e,t)=>new eb({valueType:e,minSize:null,maxSize:null,typeName:d.ZodSet,...P(t)});class ex extends D{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==m.function)return k(t,{code:p.invalid_type,expected:m.function,received:t.parsedType}),I;function i(e,i){return b({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_,g].filter(e=>!!e),issueData:{code:p.invalid_arguments,argumentsError:i}})}function n(e,i){return b({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_,g].filter(e=>!!e),issueData:{code:p.invalid_return_type,returnTypeError:i}})}let r={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof ez){let e=this;return Z(async function(...t){let s=new v([]),o=await e._def.args.parseAsync(t,r).catch(e=>{throw s.addIssue(i(t,e)),s}),u=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(u,r).catch(e=>{throw s.addIssue(n(u,e)),s})})}{let e=this;return Z(function(...t){let s=e._def.args.safeParse(t,r);if(!s.success)throw new v([i(t,s.error)]);let o=Reflect.apply(a,this,s.data),u=e._def.returns.safeParse(o,r);if(!u.success)throw new v([n(o,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ex({...this._def,args:e_.create(e).rest(el.create())})}returns(e){return new ex({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new ex({args:e||e_.create([]).rest(el.create()),returns:t||el.create(),typeName:d.ZodFunction,...P(i)})}}class ek extends D{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ek.create=(e,t)=>new ek({getter:e,typeName:d.ZodLazy,...P(t)});class ew extends D{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return k(t,{received:t.data,code:p.invalid_literal,expected:this._def.value}),I}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eI(e,t){return new eS({values:e,typeName:d.ZodEnum,...P(t)})}ew.create=(e,t)=>new ew({value:e,typeName:d.ZodLiteral,...P(t)});class eS extends D{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),i=this._def.values;return k(t,{expected:o.joinValues(i),received:t.parsedType,code:p.invalid_type}),I}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),i=this._def.values;return k(t,{received:t.data,code:p.invalid_enum_value,options:i}),I}return Z(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eS.create(e,{...this._def,...t})}exclude(e,t=this._def){return eS.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eS.create=eI;class eZ extends D{_parse(e){let t=o.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==m.string&&i.parsedType!==m.number){let e=o.objectValues(t);return k(i,{expected:o.joinValues(e),received:i.parsedType,code:p.invalid_type}),I}if(this._cache||(this._cache=new Set(o.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=o.objectValues(t);return k(i,{received:i.data,code:p.invalid_enum_value,options:e}),I}return Z(e.data)}get enum(){return this._def.values}}eZ.create=(e,t)=>new eZ({values:e,typeName:d.ZodNativeEnum,...P(t)});class ez extends D{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==m.promise&&!1===t.common.async?(k(t,{code:p.invalid_type,expected:m.promise,received:t.parsedType}),I):Z((t.parsedType===m.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ez.create=(e,t)=>new ez({type:e,typeName:d.ZodPromise,...P(t)});class eO extends D{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===d.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:i}=this._processInputParams(e),n=this._def.effect||null,r={addIssue:e=>{k(i,e),e.fatal?t.abort():t.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===n.type){let e=n.transform(i.data,r);if(i.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return I;let n=await this._def.schema._parseAsync({data:e,path:i.path,parent:i});return"aborted"===n.status?I:"dirty"===n.status||"dirty"===t.value?S(n.value):n});{if("aborted"===t.value)return I;let n=this._def.schema._parseSync({data:e,path:i.path,parent:i});return"aborted"===n.status?I:"dirty"===n.status||"dirty"===t.value?S(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,r);if(i.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(i=>"aborted"===i.status?I:("dirty"===i.status&&t.dirty(),e(i.value).then(()=>({status:t.value,value:i.value}))));{let n=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===n.status?I:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(e=>j(e)?Promise.resolve(n.transform(e.value,r)).then(e=>({status:t.value,value:e})):I);else{let e=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!j(e))return I;let a=n.transform(e.value,r);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}o.assertNever(n)}}eO.create=(e,t,i)=>new eO({schema:e,typeName:d.ZodEffects,effect:t,...P(i)}),eO.createWithPreprocess=(e,t,i)=>new eO({schema:t,effect:{type:"preprocess",transform:e},typeName:d.ZodEffects,...P(i)});class ej extends D{_parse(e){return this._getType(e)===m.undefined?Z(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ej.create=(e,t)=>new ej({innerType:e,typeName:d.ZodOptional,...P(t)});class eU extends D{_parse(e){return this._getType(e)===m.null?Z(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eU.create=(e,t)=>new eU({innerType:e,typeName:d.ZodNullable,...P(t)});class eN extends D{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return t.parsedType===m.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eN.create=(e,t)=>new eN({innerType:e,typeName:d.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...P(t)});class eT extends D{_parse(e){let{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return U(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new v(i.common.issues)},input:i.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new v(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}eT.create=(e,t)=>new eT({innerType:e,typeName:d.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...P(t)});class eP extends D{_parse(e){if(this._getType(e)!==m.nan){let t=this._getOrReturnCtx(e);return k(t,{code:p.invalid_type,expected:m.nan,received:t.parsedType}),I}return{status:"valid",value:e.data}}}eP.create=e=>new eP({typeName:d.ZodNaN,...P(e)});let eD=Symbol("zod_brand");class eE extends D{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class eA extends D{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?I:"dirty"===e.status?(t.dirty(),S(e.value)):this._def.out._parseAsync({data:e.value,path:i.path,parent:i})})();{let e=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?I:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:i.path,parent:i})}}static create(e,t){return new eA({in:e,out:t,typeName:d.ZodPipeline})}}class eC extends D{_parse(e){let t=this._def.innerType._parse(e),i=e=>(j(e)&&(e.value=Object.freeze(e.value)),e);return U(t)?t.then(e=>i(e)):i(t)}unwrap(){return this._def.innerType}}function eR(e,t){let i="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof i?{message:i}:i}function eL(e,t={},i){return e?eu.create().superRefine((n,r)=>{let a=e(n);if(a instanceof Promise)return a.then(e=>{if(!e){let e=eR(t,n),a=e.fatal??i??!0;r.addIssue({code:"custom",...e,fatal:a})}});if(!a){let e=eR(t,n),a=e.fatal??i??!0;r.addIssue({code:"custom",...e,fatal:a})}}):eu.create()}eC.create=(e,t)=>new eC({innerType:e,typeName:d.ZodReadonly,...P(t)});let eF={object:ef.lazycreate};(s=d||(d={})).ZodString="ZodString",s.ZodNumber="ZodNumber",s.ZodNaN="ZodNaN",s.ZodBigInt="ZodBigInt",s.ZodBoolean="ZodBoolean",s.ZodDate="ZodDate",s.ZodSymbol="ZodSymbol",s.ZodUndefined="ZodUndefined",s.ZodNull="ZodNull",s.ZodAny="ZodAny",s.ZodUnknown="ZodUnknown",s.ZodNever="ZodNever",s.ZodVoid="ZodVoid",s.ZodArray="ZodArray",s.ZodObject="ZodObject",s.ZodUnion="ZodUnion",s.ZodDiscriminatedUnion="ZodDiscriminatedUnion",s.ZodIntersection="ZodIntersection",s.ZodTuple="ZodTuple",s.ZodRecord="ZodRecord",s.ZodMap="ZodMap",s.ZodSet="ZodSet",s.ZodFunction="ZodFunction",s.ZodLazy="ZodLazy",s.ZodLiteral="ZodLiteral",s.ZodEnum="ZodEnum",s.ZodEffects="ZodEffects",s.ZodNativeEnum="ZodNativeEnum",s.ZodOptional="ZodOptional",s.ZodNullable="ZodNullable",s.ZodDefault="ZodDefault",s.ZodCatch="ZodCatch",s.ZodPromise="ZodPromise",s.ZodBranded="ZodBranded",s.ZodPipeline="ZodPipeline",s.ZodReadonly="ZodReadonly";let eM=(e,t={message:`Input not instance of ${e.name}`})=>eL(t=>t instanceof e,t),eJ=ee.create,eq=et.create,eV=eP.create,eK=ei.create,eW=en.create,eB=er.create,eG=ea.create,eX=es.create,eY=eo.create,eH=eu.create,eQ=el.create,e0=ed.create,e4=ec.create,e1=em.create,e6=ef.create,e9=ef.strictCreate,e2=ep.create,e3=ev.create,e5=eg.create,e7=e_.create,e8=ey.create,te=e$.create,tt=eb.create,ti=ex.create,tn=ek.create,tr=ew.create,ta=eS.create,ts=eZ.create,to=ez.create,tu=eO.create,tl=ej.create,td=eU.create,tc=eO.createWithPreprocess,tm=eA.create,tf=()=>eJ().optional(),tp=()=>eq().optional(),th=()=>eW().optional(),tv={string:e=>ee.create({...e,coerce:!0}),number:e=>et.create({...e,coerce:!0}),boolean:e=>en.create({...e,coerce:!0}),bigint:e=>ei.create({...e,coerce:!0}),date:e=>er.create({...e,coerce:!0})},tg=I},47221(e,t,i){i.r(t),i.d(t,{never:()=>u5,custom:()=>du,float32:()=>uR,float64:()=>uL,uint64:()=>uG,base64url:()=>uI,$output:()=>rV,string:()=>oB,ZodRealError:()=>oN,_ZodString:()=>oK,ipv4:()=>uf,ZodUUID:()=>o0,exactOptional:()=>lR,ZodStringFormat:()=>oG,ZodISODateTime:()=>ox,ZodURL:()=>o2,ZodIssueCode:()=>dg,ZodNullable:()=>lL,decodeAsync:()=>oL,ZodKSUID:()=>ud,void:()=>u8,prettifyError:()=>eA,nonpositive:()=>aV,ZodCatch:()=>lY,ZodType:()=>oV,nativeEnum:()=>lO,ZodISODate:()=>ow,formatError:()=>eP,looseObject:()=>lu,decode:()=>oC,undefined:()=>uQ,union:()=>ld,ZodJWT:()=>uz,ZodCUID:()=>ui,ZodNanoID:()=>ue,lowercase:()=>a4,nanoid:()=>ut,gt:()=>aF,config:()=>$,ZodXID:()=>uu,ZodULID:()=>us,ZodPipe:()=>l4,ulid:()=>uo,ZodCIDRv6:()=>u$,multipleOf:()=>aW,globalRegistry:()=>rG,cidrv4:()=>uy,ZodReadonly:()=>l2,cidrv6:()=>ub,overwrite:()=>a7,positive:()=>aJ,symbol:()=>uY,encode:()=>oA,nonnegative:()=>aK,number:()=>uE,nan:()=>l0,normalize:()=>a8,nullish:()=>lM,strictObject:()=>lo,ZodRecord:()=>ly,maxSize:()=>aB,length:()=>aQ,ZodMAC:()=>up,boolean:()=>uq,readonly:()=>l3,ZodEnum:()=>lZ,file:()=>lT,looseRecord:()=>lx,minLength:()=>aH,treeifyError:()=>eD,record:()=>l$,uppercase:()=>a1,base64:()=>uk,nullable:()=>lF,discriminatedUnion:()=>lp,array:()=>ln,lt:()=>aR,email:()=>oY,safeParse:()=>oD,$brand:()=>v,ZodNever:()=>u3,startsWith:()=>a9,success:()=>lX,ZodVoid:()=>u7,gte:()=>aM,uint32:()=>uM,iso:()=>c,ZodISOTime:()=>oS,ZodString:()=>oW,ZodE164:()=>uS,maxLength:()=>aY,ZodIPv4:()=>um,ZodIPv6:()=>uv,ZodNumberFormat:()=>uA,tuple:()=>l_,hash:()=>uP,endsWith:()=>a2,hex:()=>uT,check:()=>ds,instanceof:()=>df,int:()=>uC,uuid:()=>o4,slugify:()=>sn,ZodFirstPartyTypeKind:()=>r,bigint:()=>uK,toJSONSchema:()=>o$,minSize:()=>aG,describe:()=>dc,promise:()=>di,ZodGUID:()=>oH,set:()=>lS,$input:()=>rK,trim:()=>se,json:()=>dh,partialRecord:()=>lb,ZodBase64:()=>ux,refine:()=>dl,NEVER:()=>p,meta:()=>dm,cuid:()=>un,locales:()=>o,jwt:()=>uO,ZodSymbol:()=>uX,ZodMap:()=>lk,lte:()=>aL,codec:()=>l9,ZodCIDRv4:()=>u_,stringbool:()=>dp,e164:()=>uZ,null:()=>u4,ZodBoolean:()=>uJ,ZodLazy:()=>l8,ZodEmail:()=>oX,ksuid:()=>uc,ZodCustom:()=>da,ZodOptional:()=>lE,stringFormat:()=>uU,ZodDiscriminatedUnion:()=>lf,getErrorMap:()=>dy,core:()=>l,prefault:()=>lK,httpUrl:()=>o5,negative:()=>aq,ZodUnion:()=>ll,ZodUnknown:()=>u9,toLowerCase:()=>st,ZodAny:()=>u1,keyof:()=>lr,ZodFunction:()=>dn,unknown:()=>u2,ZodSet:()=>lI,fromJSONSchema:()=>dx,ZodTemplateLiteral:()=>l5,any:()=>u6,hostname:()=>uN,flattenError:()=>eT,ZodUndefined:()=>uH,ZodXor:()=>lc,TimePrecision:()=>ac,ZodArray:()=>li,_function:()=>dr,pipe:()=>l1,url:()=>o3,optional:()=>lA,ZodBase64URL:()=>uw,ZodISODuration:()=>oz,ipv6:()=>ug,ZodCodec:()=>l6,lazy:()=>de,parse:()=>oT,safeEncodeAsync:()=>oJ,ZodError:()=>oU,util:()=>a,xor:()=>lm,ZodObject:()=>la,toUpperCase:()=>si,regexes:()=>s,ZodPromise:()=>dt,includes:()=>a6,xid:()=>ul,ZodNumber:()=>uD,safeParseAsync:()=>oE,registry:()=>rB,safeEncode:()=>oF,int32:()=>uF,templateLiteral:()=>l7,ZodExactOptional:()=>lC,object:()=>ls,ZodNonOptional:()=>lW,uuidv4:()=>o1,uuidv6:()=>o6,ZodCUID2:()=>ur,uuidv7:()=>o9,safeDecode:()=>oM,function:()=>dr,superRefine:()=>dd,property:()=>a3,int64:()=>uB,emoji:()=>o8,enum:()=>lz,ZodBigInt:()=>uV,ZodCustomStringFormat:()=>uj,cuid2:()=>ua,guid:()=>oQ,catch:()=>lH,ZodEmoji:()=>o7,ZodSuccess:()=>lG,ZodNaN:()=>lQ,ZodIntersection:()=>lh,ZodTransform:()=>lP,ZodPrefault:()=>lV,mime:()=>a5,size:()=>aX,parseAsync:()=>oP,ZodLiteral:()=>lj,date:()=>lt,ZodDefault:()=>lJ,coerce:()=>f,ZodFile:()=>lN,intersection:()=>lv,setErrorMap:()=>d_,preprocess:()=>dv,mac:()=>uh,ZodTuple:()=>lg,ZodBigIntFormat:()=>uW,clone:()=>ee,ZodDate:()=>le,map:()=>lw,literal:()=>lU,encodeAsync:()=>oR,nonoptional:()=>lB,safeDecodeAsync:()=>oq,regex:()=>a0,_default:()=>lq,transform:()=>lD,ZodNull:()=>u0});var n,r,a={};i.r(a),i.d(a,{BIGINT_FORMAT_RANGES:()=>es,Class:()=>eO,NUMBER_FORMAT_RANGES:()=>ea,aborted:()=>ep,allowsEval:()=>K,assert:()=>I,assertEqual:()=>b,assertIs:()=>k,assertNever:()=>w,assertNotEqual:()=>x,assignProp:()=>E,base64ToUint8Array:()=>ek,base64urlToUint8Array:()=>eI,cached:()=>O,captureStackTrace:()=>q,cleanEnum:()=>ex,cleanRegex:()=>U,clone:()=>ee,cloneDef:()=>C,createTransparentProxy:()=>ei,defineLazy:()=>P,esc:()=>M,escapeRegex:()=>Q,extend:()=>el,finalizeIssue:()=>eg,floatSafeRemainder:()=>N,getElementAtPath:()=>R,getEnumValues:()=>S,getLengthableOrigin:()=>ey,getParsedType:()=>X,getSizableOrigin:()=>e_,hexToUint8Array:()=>eZ,isObject:()=>V,isPlainObject:()=>W,issue:()=>eb,joinValues:()=>Z,jsonStringifyReplacer:()=>z,merge:()=>ec,mergeDefs:()=>A,normalizeParams:()=>et,nullish:()=>j,numKeys:()=>G,objectClone:()=>D,omit:()=>eu,optionalKeys:()=>er,parsedType:()=>e$,partial:()=>em,pick:()=>eo,prefixIssues:()=>eh,primitiveTypes:()=>H,promiseAllObject:()=>L,propertyKeyTypes:()=>Y,randomString:()=>F,required:()=>ef,safeExtend:()=>ed,shallowClone:()=>B,slugify:()=>J,stringifyPrimitive:()=>en,uint8ArrayToBase64:()=>ew,uint8ArrayToBase64url:()=>eS,uint8ArrayToHex:()=>ez,unwrapMessage:()=>ev});var s={};i.r(s),i.d(s,{base64:()=>tk,base64url:()=>tw,bigint:()=>tP,boolean:()=>tA,browserEmail:()=>tv,cidrv4:()=>tb,cidrv6:()=>tx,cuid:()=>e7,cuid2:()=>e8,date:()=>tO,datetime:()=>tN,domain:()=>tS,duration:()=>tr,e164:()=>tZ,email:()=>tc,emoji:()=>tg,extendedDuration:()=>ta,guid:()=>ts,hex:()=>tM,hostname:()=>tI,html5Email:()=>tm,idnEmail:()=>th,integer:()=>tD,ipv4:()=>t_,ipv6:()=>ty,ksuid:()=>ti,lowercase:()=>tL,mac:()=>t$,md5_base64:()=>tK,md5_base64url:()=>tW,md5_hex:()=>tV,nanoid:()=>tn,null:()=>tC,number:()=>tE,rfc5322Email:()=>tf,sha1_base64:()=>tG,sha1_base64url:()=>tX,sha1_hex:()=>tB,sha256_base64:()=>tH,sha256_base64url:()=>tQ,sha256_hex:()=>tY,sha384_base64:()=>t4,sha384_base64url:()=>t1,sha384_hex:()=>t0,sha512_base64:()=>t9,sha512_base64url:()=>t2,sha512_hex:()=>t6,string:()=>tT,time:()=>tU,ulid:()=>te,undefined:()=>tR,unicodeEmail:()=>tp,uppercase:()=>tF,uuid:()=>to,uuid4:()=>tu,uuid6:()=>tl,uuid7:()=>td,xid:()=>tt});var o={};i.r(o),i.d(o,{ar:()=>n0,az:()=>n4,be:()=>n6,bg:()=>n9,ca:()=>n2,cs:()=>n3,da:()=>n5,de:()=>n7,en:()=>n8,eo:()=>re,es:()=>rt,fa:()=>ri,fi:()=>rn,fr:()=>rr,frCA:()=>ra,he:()=>rs,hu:()=>ro,hy:()=>rd,id:()=>rc,is:()=>rm,it:()=>rf,ja:()=>rp,ka:()=>rh,kh:()=>rg,km:()=>rv,ko:()=>r_,lt:()=>rb,mk:()=>rx,ms:()=>rk,nl:()=>rw,no:()=>rI,ota:()=>rS,pl:()=>rz,ps:()=>rZ,pt:()=>rO,ru:()=>rU,sl:()=>rN,sv:()=>rT,ta:()=>rP,th:()=>rD,tr:()=>rE,ua:()=>rC,uk:()=>rA,ur:()=>rR,uz:()=>rL,vi:()=>rF,yo:()=>rq,zhCN:()=>rM,zhTW:()=>rJ});var u={};i.r(u);var l={};i.r(l),i.d(l,{$ZodAny:()=>i8,$ZodArray:()=>na,$ZodAsyncError:()=>g,$ZodBase64:()=>iB,$ZodBase64URL:()=>iX,$ZodBigInt:()=>i9,$ZodBigIntFormat:()=>i2,$ZodBoolean:()=>i6,$ZodCIDRv4:()=>iV,$ZodCIDRv6:()=>iK,$ZodCUID:()=>iT,$ZodCUID2:()=>iP,$ZodCatch:()=>nR,$ZodCheck:()=>t3,$ZodCheckBigIntFormat:()=>ii,$ZodCheckEndsWith:()=>ig,$ZodCheckGreaterThan:()=>t8,$ZodCheckIncludes:()=>ih,$ZodCheckLengthEquals:()=>il,$ZodCheckLessThan:()=>t7,$ZodCheckLowerCase:()=>im,$ZodCheckMaxLength:()=>io,$ZodCheckMaxSize:()=>ir,$ZodCheckMimeType:()=>i$,$ZodCheckMinLength:()=>iu,$ZodCheckMinSize:()=>ia,$ZodCheckMultipleOf:()=>ie,$ZodCheckNumberFormat:()=>it,$ZodCheckOverwrite:()=>ib,$ZodCheckProperty:()=>iy,$ZodCheckRegex:()=>ic,$ZodCheckSizeEquals:()=>is,$ZodCheckStartsWith:()=>iv,$ZodCheckStringFormat:()=>id,$ZodCheckUpperCase:()=>ip,$ZodCodec:()=>nJ,$ZodCustom:()=>nH,$ZodCustomStringFormat:()=>i0,$ZodDate:()=>nn,$ZodDefault:()=>nT,$ZodDiscriminatedUnion:()=>nh,$ZodE164:()=>iY,$ZodEmail:()=>iO,$ZodEmoji:()=>iU,$ZodEncodeError:()=>_,$ZodEnum:()=>nI,$ZodError:()=>eU,$ZodExactOptional:()=>nU,$ZodFile:()=>nZ,$ZodFunction:()=>nG,$ZodGUID:()=>iZ,$ZodIPv4:()=>iM,$ZodIPv6:()=>iJ,$ZodISODate:()=>iR,$ZodISODateTime:()=>iC,$ZodISODuration:()=>iF,$ZodISOTime:()=>iL,$ZodIntersection:()=>nv,$ZodJWT:()=>iQ,$ZodKSUID:()=>iA,$ZodLazy:()=>nY,$ZodLiteral:()=>nS,$ZodMAC:()=>iq,$ZodMap:()=>nb,$ZodNaN:()=>nL,$ZodNanoID:()=>iN,$ZodNever:()=>nt,$ZodNonOptional:()=>nE,$ZodNull:()=>i7,$ZodNullable:()=>nN,$ZodNumber:()=>i4,$ZodNumberFormat:()=>i1,$ZodObject:()=>nl,$ZodObjectJIT:()=>nd,$ZodOptional:()=>nj,$ZodPipe:()=>nF,$ZodPrefault:()=>nD,$ZodPromise:()=>nX,$ZodReadonly:()=>nK,$ZodRealError:()=>eN,$ZodRecord:()=>n$,$ZodRegistry:()=>rW,$ZodSet:()=>nk,$ZodString:()=>iI,$ZodStringFormat:()=>iS,$ZodSuccess:()=>nC,$ZodSymbol:()=>i3,$ZodTemplateLiteral:()=>nB,$ZodTransform:()=>nz,$ZodTuple:()=>n_,$ZodType:()=>iw,$ZodULID:()=>iD,$ZodURL:()=>ij,$ZodUUID:()=>iz,$ZodUndefined:()=>i5,$ZodUnion:()=>nm,$ZodUnknown:()=>ne,$ZodVoid:()=>ni,$ZodXID:()=>iE,$ZodXor:()=>np,$brand:()=>v,$constructor:()=>h,$input:()=>rK,$output:()=>rV,Doc:()=>ix,JSONSchema:()=>u,JSONSchemaGenerator:()=>ob,NEVER:()=>p,TimePrecision:()=>ac,_any:()=>aN,_array:()=>sr,_base64:()=>ao,_base64url:()=>au,_bigint:()=>aI,_boolean:()=>ak,_catch:()=>sk,_check:()=>sN,_cidrv4:()=>aa,_cidrv6:()=>as,_coercedBigint:()=>aS,_coercedBoolean:()=>aw,_coercedDate:()=>aA,_coercedNumber:()=>ag,_coercedString:()=>rY,_cuid:()=>r5,_cuid2:()=>r7,_custom:()=>sO,_date:()=>aE,_decode:()=>eB,_decodeAsync:()=>eH,_default:()=>s$,_discriminatedUnion:()=>so,_e164:()=>al,_email:()=>rH,_emoji:()=>r2,_encode:()=>eK,_encodeAsync:()=>eX,_endsWith:()=>a2,_enum:()=>sf,_file:()=>sv,_float32:()=>ay,_float64:()=>a$,_gt:()=>aF,_gte:()=>aM,_guid:()=>rQ,_includes:()=>a6,_int:()=>a_,_int32:()=>ab,_int64:()=>aZ,_intersection:()=>su,_ipv4:()=>ai,_ipv6:()=>an,_isoDate:()=>af,_isoDateTime:()=>am,_isoDuration:()=>ah,_isoTime:()=>ap,_jwt:()=>ad,_ksuid:()=>at,_lazy:()=>sZ,_length:()=>aQ,_literal:()=>sh,_lowercase:()=>a4,_lt:()=>aR,_lte:()=>aL,_mac:()=>ar,_map:()=>sc,_max:()=>aL,_maxLength:()=>aY,_maxSize:()=>aB,_mime:()=>a5,_min:()=>aM,_minLength:()=>aH,_minSize:()=>aG,_multipleOf:()=>aW,_nan:()=>aC,_nanoid:()=>r3,_nativeEnum:()=>sp,_negative:()=>aq,_never:()=>aP,_nonnegative:()=>aK,_nonoptional:()=>sb,_nonpositive:()=>aV,_normalize:()=>a8,_null:()=>aU,_nullable:()=>sy,_number:()=>av,_optional:()=>s_,_overwrite:()=>a7,_parse:()=>eC,_parseAsync:()=>eL,_pipe:()=>sw,_positive:()=>aJ,_promise:()=>sz,_property:()=>a3,_readonly:()=>sI,_record:()=>sd,_refine:()=>sj,_regex:()=>a0,_safeDecode:()=>e1,_safeDecodeAsync:()=>e3,_safeEncode:()=>e0,_safeEncodeAsync:()=>e9,_safeParse:()=>eM,_safeParseAsync:()=>eq,_set:()=>sm,_size:()=>aX,_slugify:()=>sn,_startsWith:()=>a9,_string:()=>rX,_stringFormat:()=>sE,_stringbool:()=>sD,_success:()=>sx,_superRefine:()=>sU,_symbol:()=>aO,_templateLiteral:()=>sS,_toLowerCase:()=>st,_toUpperCase:()=>si,_transform:()=>sg,_trim:()=>se,_tuple:()=>sl,_uint32:()=>ax,_uint64:()=>az,_ulid:()=>r8,_undefined:()=>aj,_union:()=>sa,_unknown:()=>aT,_uppercase:()=>a1,_url:()=>r9,_uuid:()=>r0,_uuidv4:()=>r4,_uuidv6:()=>r1,_uuidv7:()=>r6,_void:()=>aD,_xid:()=>ae,_xor:()=>ss,clone:()=>ee,config:()=>$,createStandardJSONSchemaMethod:()=>sM,createToJSONSchemaMethod:()=>sF,decode:()=>eG,decodeAsync:()=>eQ,describe:()=>sT,encode:()=>eW,encodeAsync:()=>eY,extractDefs:()=>sR,finalize:()=>sL,flattenError:()=>eT,formatError:()=>eP,globalConfig:()=>y,globalRegistry:()=>rG,initializeContext:()=>sA,isValidBase64:()=>iW,isValidBase64URL:()=>iG,isValidJWT:()=>iH,locales:()=>o,meta:()=>sP,parse:()=>eR,parseAsync:()=>eF,prettifyError:()=>eA,process:()=>sC,regexes:()=>s,registry:()=>rB,safeDecode:()=>e6,safeDecodeAsync:()=>e5,safeEncode:()=>e4,safeEncodeAsync:()=>e2,safeParse:()=>eJ,safeParseAsync:()=>eV,toDotPath:()=>eE,toJSONSchema:()=>o$,treeifyError:()=>eD,util:()=>a,version:()=>ik});var d={};i.r(d),i.d(d,{endsWith:()=>a2,gt:()=>aF,gte:()=>aM,includes:()=>a6,length:()=>aQ,lowercase:()=>a4,lt:()=>aR,lte:()=>aL,maxLength:()=>aY,maxSize:()=>aB,mime:()=>a5,minLength:()=>aH,minSize:()=>aG,multipleOf:()=>aW,negative:()=>aq,nonnegative:()=>aK,nonpositive:()=>aV,normalize:()=>a8,overwrite:()=>a7,positive:()=>aJ,property:()=>a3,regex:()=>a0,size:()=>aX,slugify:()=>sn,startsWith:()=>a9,toLowerCase:()=>st,toUpperCase:()=>si,trim:()=>se,uppercase:()=>a1});var c={};i.r(c),i.d(c,{ZodISODate:()=>ow,ZodISODateTime:()=>ox,ZodISODuration:()=>oz,ZodISOTime:()=>oS,date:()=>oI,datetime:()=>ok,duration:()=>oO,time:()=>oZ});var m={};i.r(m),i.d(m,{ZodAny:()=>u1,ZodArray:()=>li,ZodBase64:()=>ux,ZodBase64URL:()=>uw,ZodBigInt:()=>uV,ZodBigIntFormat:()=>uW,ZodBoolean:()=>uJ,ZodCIDRv4:()=>u_,ZodCIDRv6:()=>u$,ZodCUID:()=>ui,ZodCUID2:()=>ur,ZodCatch:()=>lY,ZodCodec:()=>l6,ZodCustom:()=>da,ZodCustomStringFormat:()=>uj,ZodDate:()=>le,ZodDefault:()=>lJ,ZodDiscriminatedUnion:()=>lf,ZodE164:()=>uS,ZodEmail:()=>oX,ZodEmoji:()=>o7,ZodEnum:()=>lZ,ZodExactOptional:()=>lC,ZodFile:()=>lN,ZodFunction:()=>dn,ZodGUID:()=>oH,ZodIPv4:()=>um,ZodIPv6:()=>uv,ZodIntersection:()=>lh,ZodJWT:()=>uz,ZodKSUID:()=>ud,ZodLazy:()=>l8,ZodLiteral:()=>lj,ZodMAC:()=>up,ZodMap:()=>lk,ZodNaN:()=>lQ,ZodNanoID:()=>ue,ZodNever:()=>u3,ZodNonOptional:()=>lW,ZodNull:()=>u0,ZodNullable:()=>lL,ZodNumber:()=>uD,ZodNumberFormat:()=>uA,ZodObject:()=>la,ZodOptional:()=>lE,ZodPipe:()=>l4,ZodPrefault:()=>lV,ZodPromise:()=>dt,ZodReadonly:()=>l2,ZodRecord:()=>ly,ZodSet:()=>lI,ZodString:()=>oW,ZodStringFormat:()=>oG,ZodSuccess:()=>lG,ZodSymbol:()=>uX,ZodTemplateLiteral:()=>l5,ZodTransform:()=>lP,ZodTuple:()=>lg,ZodType:()=>oV,ZodULID:()=>us,ZodURL:()=>o2,ZodUUID:()=>o0,ZodUndefined:()=>uH,ZodUnion:()=>ll,ZodUnknown:()=>u9,ZodVoid:()=>u7,ZodXID:()=>uu,ZodXor:()=>lc,_ZodString:()=>oK,_default:()=>lq,_function:()=>dr,any:()=>u6,array:()=>ln,base64:()=>uk,base64url:()=>uI,bigint:()=>uK,boolean:()=>uq,catch:()=>lH,check:()=>ds,cidrv4:()=>uy,cidrv6:()=>ub,codec:()=>l9,cuid:()=>un,cuid2:()=>ua,custom:()=>du,date:()=>lt,describe:()=>dc,discriminatedUnion:()=>lp,e164:()=>uZ,email:()=>oY,emoji:()=>o8,enum:()=>lz,exactOptional:()=>lR,file:()=>lT,float32:()=>uR,float64:()=>uL,function:()=>dr,guid:()=>oQ,hash:()=>uP,hex:()=>uT,hostname:()=>uN,httpUrl:()=>o5,instanceof:()=>df,int:()=>uC,int32:()=>uF,int64:()=>uB,intersection:()=>lv,ipv4:()=>uf,ipv6:()=>ug,json:()=>dh,jwt:()=>uO,keyof:()=>lr,ksuid:()=>uc,lazy:()=>de,literal:()=>lU,looseObject:()=>lu,looseRecord:()=>lx,mac:()=>uh,map:()=>lw,meta:()=>dm,nan:()=>l0,nanoid:()=>ut,nativeEnum:()=>lO,never:()=>u5,nonoptional:()=>lB,null:()=>u4,nullable:()=>lF,nullish:()=>lM,number:()=>uE,object:()=>ls,optional:()=>lA,partialRecord:()=>lb,pipe:()=>l1,prefault:()=>lK,preprocess:()=>dv,promise:()=>di,readonly:()=>l3,record:()=>l$,refine:()=>dl,set:()=>lS,strictObject:()=>lo,string:()=>oB,stringFormat:()=>uU,stringbool:()=>dp,success:()=>lX,superRefine:()=>dd,symbol:()=>uY,templateLiteral:()=>l7,transform:()=>lD,tuple:()=>l_,uint32:()=>uM,uint64:()=>uG,ulid:()=>uo,undefined:()=>uQ,union:()=>ld,unknown:()=>u2,url:()=>o3,uuid:()=>o4,uuidv4:()=>o1,uuidv6:()=>o6,uuidv7:()=>o9,void:()=>u8,xid:()=>ul,xor:()=>lm});var f={};i.r(f),i.d(f,{bigint:()=>dS,boolean:()=>dI,date:()=>dZ,number:()=>dw,string:()=>dk});let p=Object.freeze({status:"aborted"});function h(e,t,i){function n(i,n){if(i._zod||Object.defineProperty(i,"_zod",{value:{def:n,constr:s,traits:new Set},enumerable:!1}),i._zod.traits.has(e))return;i._zod.traits.add(e),t(i,n);let r=s.prototype,a=Object.keys(r);for(let e=0;e<a.length;e++){let t=a[e];t in i||(i[t]=r[t].bind(i))}}let r=i?.Parent??Object;class a extends r{}function s(e){var t;let r=i?.Parent?new a:this;for(let i of(n(r,e),(t=r._zod).deferred??(t.deferred=[]),r._zod.deferred))i();return r}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:t=>!!i?.Parent&&t instanceof i.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}let v=Symbol("zod_brand");class g extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class _ extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}let y={};function $(e){return e&&Object.assign(y,e),y}function b(e){return e}function x(e){return e}function k(e){}function w(e){throw Error("Unexpected value in exhaustive check")}function I(e){}function S(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,i])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function Z(e,t="|"){return e.map(e=>en(e)).join(t)}function z(e,t){return"bigint"==typeof t?t.toString():t}function O(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function j(e){return null==e}function U(e){let t=+!!e.startsWith("^"),i=e.endsWith("$")?e.length-1:e.length;return e.slice(t,i)}function N(e,t){let i=(e.toString().split(".")[1]||"").length,n=t.toString(),r=(n.split(".")[1]||"").length;if(0===r&&/\d?e-\d?/.test(n)){let e=n.match(/\d?e-(\d?)/);e?.[1]&&(r=Number.parseInt(e[1]))}let a=i>r?i:r;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}let T=Symbol("evaluating");function P(e,t,i){let n;Object.defineProperty(e,t,{get(){if(n!==T)return void 0===n&&(n=T,n=i()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function D(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function E(e,t,i){Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0})}function A(...e){let t={};for(let i of e)Object.assign(t,Object.getOwnPropertyDescriptors(i));return Object.defineProperties({},t)}function C(e){return A(e._zod.def)}function R(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function L(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let i={};for(let n=0;n<t.length;n++)i[t[n]]=e[n];return i})}function F(e=10){let t="abcdefghijklmnopqrstuvwxyz",i="";for(let n=0;n<e;n++)i+=t[Math.floor(Math.random()*t.length)];return i}function M(e){return JSON.stringify(e)}function J(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let q="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function V(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let K=O(()=>{if("u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function W(e){if(!1===V(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let i=t.prototype;return!1!==V(i)&&!1!==Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")}function B(e){return W(e)?{...e}:Array.isArray(e)?[...e]:e}function G(e){let t=0;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t++;return t}let X=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("u">typeof Map&&e instanceof Map)return"map";if("u">typeof Set&&e instanceof Set)return"set";if("u">typeof Date&&e instanceof Date)return"date";if("u">typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},Y=new Set(["string","number","symbol"]),H=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ee(e,t,i){let n=new e._zod.constr(t??e._zod.def);return(!t||i?.parent)&&(n._zod.parent=e),n}function et(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function ei(e){let t;return new Proxy({},{get:(i,n,r)=>(t??(t=e()),Reflect.get(t,n,r)),set:(i,n,r,a)=>(t??(t=e()),Reflect.set(t,n,r,a)),has:(i,n)=>(t??(t=e()),Reflect.has(t,n)),deleteProperty:(i,n)=>(t??(t=e()),Reflect.deleteProperty(t,n)),ownKeys:i=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(i,n)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)),defineProperty:(i,n,r)=>(t??(t=e()),Reflect.defineProperty(t,n,r))})}function en(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function er(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let ea={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},es={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function eo(e,t){let i=e._zod.def,n=i.checks;if(n&&n.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let r=A(e._zod.def,{get shape(){let e={};for(let n in t){if(!(n in i.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&(e[n]=i.shape[n])}return E(this,"shape",e),e},checks:[]});return ee(e,r)}function eu(e,t){let i=e._zod.def,n=i.checks;if(n&&n.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let r=A(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let e in t){if(!(e in i.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return E(this,"shape",n),n},checks:[]});return ee(e,r)}function el(e,t){if(!W(t))throw Error("Invalid input to extend: expected a plain object");let i=e._zod.def.checks;if(i&&i.length>0){let i=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(i,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=A(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return E(this,"shape",i),i}});return ee(e,n)}function ed(e,t){if(!W(t))throw Error("Invalid input to safeExtend: expected a plain object");let i=A(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return E(this,"shape",i),i}});return ee(e,i)}function ec(e,t){let i=A(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return E(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return ee(e,i)}function em(e,t,i){let n=t._zod.def.checks;if(n&&n.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let r=A(t._zod.def,{get shape(){let n=t._zod.def.shape,r={...n};if(i)for(let t in i){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);i[t]&&(r[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)r[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return E(this,"shape",r),r},checks:[]});return ee(t,r)}function ef(e,t,i){let n=A(t._zod.def,{get shape(){let n=t._zod.def.shape,r={...n};if(i)for(let t in i){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);i[t]&&(r[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)r[t]=new e({type:"nonoptional",innerType:n[t]});return E(this,"shape",r),r}});return ee(t,n)}function ep(e,t=0){if(!0===e.aborted)return!0;for(let i=t;i<e.issues.length;i++)if(e.issues[i]?.continue!==!0)return!0;return!1}function eh(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function ev(e){return"string"==typeof e?e:e?.message}function eg(e,t,i){let n={...e,path:e.path??[]};return e.message||(n.message=ev(e.inst?._zod.def?.error?.(e))??ev(t?.error?.(e))??ev(i.customError?.(e))??ev(i.localeError?.(e))??"Invalid input"),delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function e_(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ey(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function e$(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";if(e&&Object.getPrototypeOf(e)!==Object.prototype&&"constructor"in e&&e.constructor)return e.constructor.name}return t}function eb(...e){let[t,i,n]=e;return"string"==typeof t?{message:t,code:"custom",input:i,inst:n}:{...t}}function ex(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function ek(e){let t=atob(e),i=new Uint8Array(t.length);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);return i}function ew(e){let t="";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return btoa(t)}function eI(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),i="=".repeat((4-t.length%4)%4);return ek(t+i)}function eS(e){return ew(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function eZ(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let i=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)i[e/2]=Number.parseInt(t.slice(e,e+2),16);return i}function ez(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")}class eO{constructor(...e){}}let ej=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,z,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},eU=h("$ZodError",ej),eN=h("$ZodError",ej,{Parent:Error});function eT(e,t=e=>e.message){let i={},n=[];for(let r of e.issues)r.path.length>0?(i[r.path[0]]=i[r.path[0]]||[],i[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:i}}function eP(e,t=e=>e.message){let i={_errors:[]},n=e=>{for(let r of e.issues)if("invalid_union"===r.code&&r.errors.length)r.errors.map(e=>n({issues:e}));else if("invalid_key"===r.code)n({issues:r.issues});else if("invalid_element"===r.code)n({issues:r.issues});else if(0===r.path.length)i._errors.push(t(r));else{let e=i,n=0;for(;n<r.path.length;){let i=r.path[n];n===r.path.length-1?(e[i]=e[i]||{_errors:[]},e[i]._errors.push(t(r))):e[i]=e[i]||{_errors:[]},e=e[i],n++}}};return n(e),i}function eD(e,t=e=>e.message){let i={errors:[]},n=(e,r=[])=>{var a,s;for(let o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>n({issues:e},o.path));else if("invalid_key"===o.code)n({issues:o.issues},o.path);else if("invalid_element"===o.code)n({issues:o.issues},o.path);else{let e=[...r,...o.path];if(0===e.length){i.errors.push(t(o));continue}let n=i,u=0;for(;u<e.length;){let i=e[u],r=u===e.length-1;"string"==typeof i?(n.properties??(n.properties={}),(a=n.properties)[i]??(a[i]={errors:[]}),n=n.properties[i]):(n.items??(n.items=[]),(s=n.items)[i]??(s[i]={errors:[]}),n=n.items[i]),r&&n.errors.push(t(o)),u++}}};return n(e),i}function eE(e){let t=[];for(let i of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof i?t.push(`[${i}]`):"symbol"==typeof i?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function eA(e){let t=[];for(let i of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push(`✖ ${i.message}`),i.path?.length&&t.push(` → at ${eE(i.path)}`);return t.join("\n")}let eC=e=>(t,i,n,r)=>{let a=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:i,issues:[]},a);if(s instanceof Promise)throw new g;if(s.issues.length){let t=new(r?.Err??e)(s.issues.map(e=>eg(e,a,$())));throw q(t,r?.callee),t}return s.value},eR=eC(eN),eL=e=>async(t,i,n,r)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:i,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(r?.Err??e)(s.issues.map(e=>eg(e,a,$())));throw q(t,r?.callee),t}return s.value},eF=eL(eN),eM=e=>(t,i,n)=>{let r=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:i,issues:[]},r);if(a instanceof Promise)throw new g;return a.issues.length?{success:!1,error:new(e??eU)(a.issues.map(e=>eg(e,r,$())))}:{success:!0,data:a.value}},eJ=eM(eN),eq=e=>async(t,i,n)=>{let r=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:i,issues:[]},r);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>eg(e,r,$())))}:{success:!0,data:a.value}},eV=eq(eN),eK=e=>(t,i,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return eC(e)(t,i,r)},eW=eK(eN),eB=e=>(t,i,n)=>eC(e)(t,i,n),eG=eB(eN),eX=e=>async(t,i,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return eL(e)(t,i,r)},eY=eX(eN),eH=e=>async(t,i,n)=>eL(e)(t,i,n),eQ=eH(eN),e0=e=>(t,i,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return eM(e)(t,i,r)},e4=e0(eN),e1=e=>(t,i,n)=>eM(e)(t,i,n),e6=e1(eN),e9=e=>async(t,i,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return eq(e)(t,i,r)},e2=e9(eN),e3=e=>async(t,i,n)=>eq(e)(t,i,n),e5=e3(eN),e7=/^[cC][^\s-]{8,}$/,e8=/^[0-9a-z]+$/,te=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,tt=/^[0-9a-vA-V]{20}$/,ti=/^[A-Za-z0-9]{27}$/,tn=/^[a-zA-Z0-9_-]{21}$/,tr=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ta=/^[-+]?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)?)??$/,ts=/^([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})$/,to=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,tu=to(4),tl=to(6),td=to(7),tc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tm=/^[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])?)*$/,tf=/^(([^<>()\[\]\\.,;:\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,}))$/,tp=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,th=tp,tv=/^[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])?)*$/;function tg(){return RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}let t_=/^(?:(?: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])$/,ty=/^(([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}|:))$/,t$=e=>{let t=Q(e??":");return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},tb=/^((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])$/,tx=/^(([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])$/,tk=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tw=/^[A-Za-z0-9_-]*$/,tI=/^(?=.{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])?)*\.?$/,tS=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,tZ=/^\+[1-9]\d{6,14}$/,tz="(?:(?:\\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])))",tO=RegExp(`^${tz}$`);function tj(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function tU(e){return RegExp(`^${tj(e)}$`)}function tN(e){let t=tj({precision:e.precision}),i=["Z"];e.local&&i.push(""),e.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${i.join("|")})`;return RegExp(`^${tz}T(?:${n})$`)}let tT=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},tP=/^-?\d+n?$/,tD=/^-?\d+$/,tE=/^-?\d+(?:\.\d+)?$/,tA=/^(?:true|false)$/i,tC=/^null$/i,tR=/^undefined$/i,tL=/^[^A-Z]*$/,tF=/^[^a-z]*$/,tM=/^[0-9a-fA-F]*$/;function tJ(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function tq(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}let tV=/^[0-9a-fA-F]{32}$/,tK=tJ(22,"=="),tW=tq(22),tB=/^[0-9a-fA-F]{40}$/,tG=tJ(27,"="),tX=tq(27),tY=/^[0-9a-fA-F]{64}$/,tH=tJ(43,"="),tQ=tq(43),t0=/^[0-9a-fA-F]{96}$/,t4=tJ(64,""),t1=tq(64),t6=/^[0-9a-fA-F]{128}$/,t9=tJ(86,"=="),t2=tq(86),t3=h("$ZodCheck",(e,t)=>{var i;e._zod??(e._zod={}),e._zod.def=t,(i=e._zod).onattach??(i.onattach=[])}),t5={number:"number",bigint:"bigint",object:"date"},t7=h("$ZodCheckLessThan",(e,t)=>{t3.init(e,t);let i=t5[typeof t.value];e._zod.onattach.push(e=>{let i=e._zod.bag,n=(t.inclusive?i.maximum:i.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:i,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),t8=h("$ZodCheckGreaterThan",(e,t)=>{t3.init(e,t);let i=t5[typeof t.value];e._zod.onattach.push(e=>{let i=e._zod.bag,n=(t.inclusive?i.minimum:i.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:i,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ie=h("$ZodCheckMultipleOf",(e,t)=>{t3.init(e,t),e._zod.onattach.push(e=>{var i;(i=e._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=i=>{if(typeof i.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof i.value?i.value%t.value===BigInt(0):0===N(i.value,t.value))||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:t.value,input:i.value,inst:e,continue:!t.abort})}}),it=h("$ZodCheckNumberFormat",(e,t)=>{t3.init(e,t),t.format=t.format||"float64";let i=t.format?.includes("int"),n=i?"int":"number",[r,a]=ea[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=r,n.maximum=a,i&&(n.pattern=tD)}),e._zod.check=s=>{let o=s.value;if(i){if(!Number.isInteger(o))return void s.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:o,inst:e});if(!Number.isSafeInteger(o))return void(o>0?s.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):s.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}))}o<r&&s.issues.push({origin:"number",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>a&&s.issues.push({origin:"number",input:o,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),ii=h("$ZodCheckBigIntFormat",(e,t)=>{t3.init(e,t);let[i,n]=es[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=n}),e._zod.check=r=>{let a=r.value;a<i&&r.issues.push({origin:"bigint",input:a,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),a>n&&r.issues.push({origin:"bigint",input:a,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),ir=h("$ZodCheckMaxSize",(e,t)=>{var i;t3.init(e,t),(i=e._zod.def).when??(i.when=e=>{let t=e.value;return!j(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let i=e._zod.bag.maximum??1/0;t.maximum<i&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:e_(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ia=h("$ZodCheckMinSize",(e,t)=>{var i;t3.init(e,t),(i=e._zod.def).when??(i.when=e=>{let t=e.value;return!j(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let i=e._zod.bag.minimum??-1/0;t.minimum>i&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:e_(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),is=h("$ZodCheckSizeEquals",(e,t)=>{var i;t3.init(e,t),(i=e._zod.def).when??(i.when=e=>{let t=e.value;return!j(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let i=e._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=i=>{let n=i.value,r=n.size;if(r===t.size)return;let a=r>t.size;i.issues.push({origin:e_(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),io=h("$ZodCheckMaxLength",(e,t)=>{var i;t3.init(e,t),(i=e._zod.def).when??(i.when=e=>{let t=e.value;return!j(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let i=e._zod.bag.maximum??1/0;t.maximum<i&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;if(n.length<=t.maximum)return;let r=ey(n);i.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),iu=h("$ZodCheckMinLength",(e,t)=>{var i;t3.init(e,t),(i=e._zod.def).when??(i.when=e=>{let t=e.value;return!j(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let i=e._zod.bag.minimum??-1/0;t.minimum>i&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;if(n.length>=t.minimum)return;let r=ey(n);i.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),il=h("$ZodCheckLengthEquals",(e,t)=>{var i;t3.init(e,t),(i=e._zod.def).when??(i.when=e=>{let t=e.value;return!j(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let i=e._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=i=>{let n=i.value,r=n.length;if(r===t.length)return;let a=ey(n),s=r>t.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),id=h("$ZodCheckStringFormat",(e,t)=>{var i,n;t3.init(e,t),e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(i=e._zod).check??(i.check=i=>{t.pattern.lastIndex=0,t.pattern.test(i.value)||i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),ic=h("$ZodCheckRegex",(e,t)=>{id.init(e,t),e._zod.check=i=>{t.pattern.lastIndex=0,t.pattern.test(i.value)||i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),im=h("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=tL),id.init(e,t)}),ip=h("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=tF),id.init(e,t)}),ih=h("$ZodCheckIncludes",(e,t)=>{t3.init(e,t);let i=Q(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${i}`:i);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),iv=h("$ZodCheckStartsWith",(e,t)=>{t3.init(e,t);let i=RegExp(`^${Q(t.prefix)}.*`);t.pattern??(t.pattern=i),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),ig=h("$ZodCheckEndsWith",(e,t)=>{t3.init(e,t);let i=RegExp(`.*${Q(t.suffix)}$`);t.pattern??(t.pattern=i),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function i_(e,t,i){e.issues.length&&t.issues.push(...eh(i,e.issues))}let iy=h("$ZodCheckProperty",(e,t)=>{t3.init(e,t),e._zod.check=e=>{let i=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(i=>i_(i,e,t.property));i_(i,e,t.property)}}),i$=h("$ZodCheckMimeType",(e,t)=>{t3.init(e,t);let i=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=n=>{i.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),ib=h("$ZodCheckOverwrite",(e,t)=>{t3.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class ix{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),i=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(i)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let ik={major:4,minor:3,patch:6},iw=h("$ZodType",(e,t)=>{var i;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ik;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let i of t._zod.onattach)i(e);if(0===n.length)(i=e._zod).deferred??(i.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,i)=>{let n,r=ep(e);for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&i?.async===!1)throw new g;if(n||s instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(r||(r=ep(e,t)))});else{if(e.issues.length===t)continue;r||(r=ep(e,t))}}return n?n.then(()=>e):e},i=(i,r,a)=>{if(ep(i))return i.aborted=!0,i;let s=t(r,n,a);if(s instanceof Promise){if(!1===a.async)throw new g;return s.then(t=>e._zod.parse(t,a))}return e._zod.parse(s,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if("backward"===a.direction){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>i(e,r,a)):i(t,r,a)}let s=e._zod.parse(r,a);if(s instanceof Promise){if(!1===a.async)throw new g;return s.then(e=>t(e,n,a))}return t(s,n,a)}}P(e,"~standard",()=>({validate:t=>{try{let i=eJ(e,t);return i.success?{value:i.data}:{issues:i.error?.issues}}catch(i){return eV(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),iI=h("$ZodString",(e,t)=>{iw.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??tT(e._zod.bag),e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=String(i.value)}catch(e){}return"string"==typeof i.value||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),iS=h("$ZodStringFormat",(e,t)=>{id.init(e,t),iI.init(e,t)}),iZ=h("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ts),iS.init(e,t)}),iz=h("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=to(e))}else t.pattern??(t.pattern=to());iS.init(e,t)}),iO=h("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=tc),iS.init(e,t)}),ij=h("$ZodURL",(e,t)=>{iS.init(e,t),e._zod.check=i=>{try{let n=i.value.trim(),r=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:i.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:i.value,inst:e,continue:!t.abort})),t.normalize?i.value=r.href:i.value=n;return}catch(n){i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!t.abort})}}}),iU=h("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=tg()),iS.init(e,t)}),iN=h("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=tn),iS.init(e,t)}),iT=h("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=e7),iS.init(e,t)}),iP=h("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=e8),iS.init(e,t)}),iD=h("$ZodULID",(e,t)=>{t.pattern??(t.pattern=te),iS.init(e,t)}),iE=h("$ZodXID",(e,t)=>{t.pattern??(t.pattern=tt),iS.init(e,t)}),iA=h("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ti),iS.init(e,t)}),iC=h("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=tN(t)),iS.init(e,t)}),iR=h("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=tO),iS.init(e,t)}),iL=h("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=tU(t)),iS.init(e,t)}),iF=h("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=tr),iS.init(e,t)}),iM=h("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=t_),iS.init(e,t),e._zod.bag.format="ipv4"}),iJ=h("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ty),iS.init(e,t),e._zod.bag.format="ipv6",e._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!t.abort})}}}),iq=h("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=t$(t.delimiter)),iS.init(e,t),e._zod.bag.format="mac"}),iV=h("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=tb),iS.init(e,t)}),iK=h("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=tx),iS.init(e,t),e._zod.check=i=>{let n=i.value.split("/");try{if(2!==n.length)throw Error();let[e,t]=n;if(!t)throw Error();let i=Number(t);if(`${i}`!==t||i<0||i>128)throw Error();new URL(`http://[${e}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!t.abort})}}});function iW(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let iB=h("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=tk),iS.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=i=>{iW(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!t.abort})}});function iG(e){if(!tw.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return iW(t.padEnd(4*Math.ceil(t.length/4),"="))}let iX=h("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=tw),iS.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=i=>{iG(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!t.abort})}}),iY=h("$ZodE164",(e,t)=>{t.pattern??(t.pattern=tZ),iS.init(e,t)});function iH(e,t=null){try{let i=e.split(".");if(3!==i.length)return!1;let[n]=i;if(!n)return!1;let r=JSON.parse(atob(n));if("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))return!1;return!0}catch{return!1}}let iQ=h("$ZodJWT",(e,t)=>{iS.init(e,t),e._zod.check=i=>{iH(i.value,t.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:e,continue:!t.abort})}}),i0=h("$ZodCustomStringFormat",(e,t)=>{iS.init(e,t),e._zod.check=i=>{t.fn(i.value)||i.issues.push({code:"invalid_format",format:t.format,input:i.value,inst:e,continue:!t.abort})}}),i4=h("$ZodNumber",(e,t)=>{iw.init(e,t),e._zod.pattern=e._zod.bag.pattern??tE,e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=Number(i.value)}catch(e){}let r=i.value;if("number"==typeof r&&!Number.isNaN(r)&&Number.isFinite(r))return i;let a="number"==typeof r?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...a?{received:a}:{}}),i}}),i1=h("$ZodNumberFormat",(e,t)=>{it.init(e,t),i4.init(e,t)}),i6=h("$ZodBoolean",(e,t)=>{iw.init(e,t),e._zod.pattern=tA,e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=!!i.value}catch(e){}let r=i.value;return"boolean"==typeof r||i.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),i}}),i9=h("$ZodBigInt",(e,t)=>{iw.init(e,t),e._zod.pattern=tP,e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=BigInt(i.value)}catch(e){}return"bigint"==typeof i.value||i.issues.push({expected:"bigint",code:"invalid_type",input:i.value,inst:e}),i}}),i2=h("$ZodBigIntFormat",(e,t)=>{ii.init(e,t),i9.init(e,t)}),i3=h("$ZodSymbol",(e,t)=>{iw.init(e,t),e._zod.parse=(t,i)=>{let n=t.value;return"symbol"==typeof n||t.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),t}}),i5=h("$ZodUndefined",(e,t)=>{iw.init(e,t),e._zod.pattern=tR,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,i)=>{let n=t.value;return void 0===n||t.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),t}}),i7=h("$ZodNull",(e,t)=>{iw.init(e,t),e._zod.pattern=tC,e._zod.values=new Set([null]),e._zod.parse=(t,i)=>{let n=t.value;return null===n||t.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),t}}),i8=h("$ZodAny",(e,t)=>{iw.init(e,t),e._zod.parse=e=>e}),ne=h("$ZodUnknown",(e,t)=>{iw.init(e,t),e._zod.parse=e=>e}),nt=h("$ZodNever",(e,t)=>{iw.init(e,t),e._zod.parse=(t,i)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),ni=h("$ZodVoid",(e,t)=>{iw.init(e,t),e._zod.parse=(t,i)=>{let n=t.value;return void 0===n||t.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),t}}),nn=h("$ZodDate",(e,t)=>{iw.init(e,t),e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=new Date(i.value)}catch(e){}let r=i.value,a=r instanceof Date;return a&&!Number.isNaN(r.getTime())||i.issues.push({expected:"date",code:"invalid_type",input:r,...a?{received:"Invalid Date"}:{},inst:e}),i}});function nr(e,t,i){e.issues.length&&t.issues.push(...eh(i,e.issues)),t.value[i]=e.value}let na=h("$ZodArray",(e,t)=>{iw.init(e,t),e._zod.parse=(i,n)=>{let r=i.value;if(!Array.isArray(r))return i.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),i;i.value=Array(r.length);let a=[];for(let e=0;e<r.length;e++){let s=r[e],o=t.element._zod.run({value:s,issues:[]},n);o instanceof Promise?a.push(o.then(t=>nr(t,i,e))):nr(o,i,e)}return a.length?Promise.all(a).then(()=>i):i}});function ns(e,t,i,n,r){if(e.issues.length){if(r&&!(i in n))return;t.issues.push(...eh(i,e.issues))}void 0===e.value?i in n&&(t.value[i]=void 0):t.value[i]=e.value}function no(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${i}": expected a Zod schema`);let i=er(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function nu(e,t,i,n,r,a){let s=[],o=r.keySet,u=r.catchall._zod,l=u.def.type,d="optional"===u.optout;for(let r in t){if(o.has(r))continue;if("never"===l){s.push(r);continue}let a=u.run({value:t[r],issues:[]},n);a instanceof Promise?e.push(a.then(e=>ns(e,i,r,t,d))):ns(a,i,r,t,d)}return(s.length&&i.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a}),e.length)?Promise.all(e).then(()=>i):i}let nl=h("$ZodObject",(e,t)=>{let i;iw.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let i={...e};return Object.defineProperty(t,"shape",{value:i}),i}})}let r=O(()=>no(t));P(e._zod,"propValues",()=>{let e=t.shape,i={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(i[t]??(i[t]=new Set),n.values))i[t].add(e)}return i});let a=t.catchall;e._zod.parse=(t,n)=>{i??(i=r.value);let s=t.value;if(!V(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};let o=[],u=i.shape;for(let e of i.keys){let i=u[e],r="optional"===i._zod.optout,a=i._zod.run({value:s[e],issues:[]},n);a instanceof Promise?o.push(a.then(i=>ns(i,t,e,s,r))):ns(a,t,e,s,r)}return a?nu(o,s,t,n,r.value,e):o.length?Promise.all(o).then(()=>t):t}}),nd=h("$ZodObjectJIT",(e,t)=>{let i,n;nl.init(e,t);let r=e._zod.parse,a=O(()=>no(t)),s=!y.jitless,o=s&&K.value,u=t.catchall;e._zod.parse=(l,d)=>{n??(n=a.value);let c=l.value;return V(c)?s&&o&&d?.async===!1&&!0!==d.jitless?(i||(i=(e=>{let t=new ix(["shape","payload","ctx"]),i=a.value,n=e=>{let t=M(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let r=Object.create(null),s=0;for(let e of i.keys)r[e]=`key_${s++}`;for(let a of(t.write("const newResult = {};"),i.keys)){let i=r[a],s=M(a),o=e[a],u=o?._zod?.optout==="optional";t.write(`const ${i} = ${n(a)};`),u?t.write(`
2
+ if (${i}.issues.length) {
3
+ if (${s} in input) {
4
+ payload.issues = payload.issues.concat(${i}.issues.map(iss => ({
5
+ ...iss,
6
+ path: iss.path ? [${s}, ...iss.path] : [${s}]
7
+ })));
8
+ }
9
+ }
10
+
11
+ if (${i}.value === undefined) {
12
+ if (${s} in input) {
13
+ newResult[${s}] = undefined;
14
+ }
15
+ } else {
16
+ newResult[${s}] = ${i}.value;
17
+ }
18
+
19
+ `):t.write(`
20
+ if (${i}.issues.length) {
21
+ payload.issues = payload.issues.concat(${i}.issues.map(iss => ({
22
+ ...iss,
23
+ path: iss.path ? [${s}, ...iss.path] : [${s}]
24
+ })));
25
+ }
26
+
27
+ if (${i}.value === undefined) {
28
+ if (${s} in input) {
29
+ newResult[${s}] = undefined;
30
+ }
31
+ } else {
32
+ newResult[${s}] = ${i}.value;
33
+ }
34
+
35
+ `)}t.write("payload.value = newResult;"),t.write("return payload;");let o=t.compile();return(t,i)=>o(e,t,i)})(t.shape)),l=i(l,d),u)?nu([],c,l,d,n,e):l:r(l,d):(l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l)}});function nc(e,t,i,n){for(let i of e)if(0===i.issues.length)return t.value=i.value,t;let r=e.filter(e=>!ep(e));return 1===r.length?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(e=>e.issues.map(e=>eg(e,n,$())))}),t)}let nm=h("$ZodUnion",(e,t)=>{iw.init(e,t),P(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),P(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),P(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),P(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>U(e.source)).join("|")})$`)}});let i=1===t.options.length,n=t.options[0]._zod.run;e._zod.parse=(r,a)=>{if(i)return n(r,a);let s=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},a);if(t instanceof Promise)o.push(t),s=!0;else{if(0===t.issues.length)return t;o.push(t)}}return s?Promise.all(o).then(t=>nc(t,r,e,a)):nc(o,r,e,a)}});function nf(e,t,i,n){let r=e.filter(e=>0===e.issues.length);return 1===r.length?t.value=r[0].value:0===r.length?t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(e=>e.issues.map(e=>eg(e,n,$())))}):t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:[],inclusive:!1}),t}let np=h("$ZodXor",(e,t)=>{nm.init(e,t),t.inclusive=!1;let i=1===t.options.length,n=t.options[0]._zod.run;e._zod.parse=(r,a)=>{if(i)return n(r,a);let s=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},a);t instanceof Promise?(o.push(t),s=!0):o.push(t)}return s?Promise.all(o).then(t=>nf(t,r,e,a)):nf(o,r,e,a)}}),nh=h("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,nm.init(e,t);let i=e._zod.parse;P(e._zod,"propValues",()=>{let e={};for(let i of t.options){let n=i._zod.propValues;if(!n||0===Object.keys(n).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[t,i]of Object.entries(n))for(let n of(e[t]||(e[t]=new Set),i))e[t].add(n)}return e});let n=O(()=>{let e=t.options,i=new Map;for(let n of e){let e=n._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let t of e){if(i.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);i.set(t,n)}}return i});e._zod.parse=(r,a)=>{let s=r.value;if(!V(s))return r.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),r;let o=n.value.get(s?.[t.discriminator]);return o?o._zod.run(r,a):t.unionFallback?i(r,a):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),r)}}),nv=h("$ZodIntersection",(e,t)=>{iw.init(e,t),e._zod.parse=(e,i)=>{let n=e.value,r=t.left._zod.run({value:n,issues:[]},i),a=t.right._zod.run({value:n,issues:[]},i);return r instanceof Promise||a instanceof Promise?Promise.all([r,a]).then(([t,i])=>ng(e,t,i)):ng(e,r,a)}});function ng(e,t,i){let n,r=new Map;for(let i of t.issues)if("unrecognized_keys"===i.code)for(let e of(n??(n=i),i.keys))r.has(e)||r.set(e,{}),r.get(e).l=!0;else e.issues.push(i);for(let t of i.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&n&&e.issues.push({...n,keys:a}),ep(e))return e;let s=function e(t,i){if(t===i||t instanceof Date&&i instanceof Date&&+t==+i)return{valid:!0,data:t};if(W(t)&&W(i)){let n=Object.keys(i),r=Object.keys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...i};for(let n of r){let r=e(t[n],i[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};a[n]=r.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<t.length;r++){let a=e(t[r],i[r]);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,i.value);if(!s.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}let n_=h("$ZodTuple",(e,t)=>{iw.init(e,t);let i=t.items;e._zod.parse=(n,r)=>{let a=n.value;if(!Array.isArray(a))return n.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let s=[],o=[...i].reverse().findIndex(e=>"optional"!==e._zod.optin),u=-1===o?0:i.length-o;if(!t.rest){let t=a.length>i.length,r=a.length<u-1;if(t||r)return n.issues.push({...t?{code:"too_big",maximum:i.length,inclusive:!0}:{code:"too_small",minimum:i.length},input:a,inst:e,origin:"array"}),n}let l=-1;for(let e of i){if(++l>=a.length&&l>=u)continue;let t=e._zod.run({value:a[l],issues:[]},r);t instanceof Promise?s.push(t.then(e=>ny(e,n,l))):ny(t,n,l)}if(t.rest)for(let e of a.slice(i.length)){l++;let i=t.rest._zod.run({value:e,issues:[]},r);i instanceof Promise?s.push(i.then(e=>ny(e,n,l))):ny(i,n,l)}return s.length?Promise.all(s).then(()=>n):n}});function ny(e,t,i){e.issues.length&&t.issues.push(...eh(i,e.issues)),t.value[i]=e.value}let n$=h("$ZodRecord",(e,t)=>{iw.init(e,t),e._zod.parse=(i,n)=>{let r=i.value;if(!W(r))return i.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),i;let a=[],s=t.keyType._zod.values;if(s){let o;i.value={};let u=new Set;for(let e of s)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){u.add("number"==typeof e?e.toString():e);let s=t.valueType._zod.run({value:r[e],issues:[]},n);s instanceof Promise?a.push(s.then(t=>{t.issues.length&&i.issues.push(...eh(e,t.issues)),i.value[e]=t.value})):(s.issues.length&&i.issues.push(...eh(e,s.issues)),i.value[e]=s.value)}for(let e in r)u.has(e)||(o=o??[]).push(e);o&&o.length>0&&i.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:o})}else for(let s of(i.value={},Reflect.ownKeys(r))){if("__proto__"===s)continue;let o=t.keyType._zod.run({value:s,issues:[]},n);if(o instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof s&&tE.test(s)&&o.issues.length){let e=t.keyType._zod.run({value:Number(s),issues:[]},n);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(o=e)}if(o.issues.length){"loose"===t.mode?i.value[s]=r[s]:i.issues.push({code:"invalid_key",origin:"record",issues:o.issues.map(e=>eg(e,n,$())),input:s,path:[s],inst:e});continue}let u=t.valueType._zod.run({value:r[s],issues:[]},n);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&i.issues.push(...eh(s,e.issues)),i.value[o.value]=e.value})):(u.issues.length&&i.issues.push(...eh(s,u.issues)),i.value[o.value]=u.value)}return a.length?Promise.all(a).then(()=>i):i}}),nb=h("$ZodMap",(e,t)=>{iw.init(e,t),e._zod.parse=(i,n)=>{let r=i.value;if(!(r instanceof Map))return i.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),i;let a=[];for(let[s,o]of(i.value=new Map,r)){let u=t.keyType._zod.run({value:s,issues:[]},n),l=t.valueType._zod.run({value:o,issues:[]},n);u instanceof Promise||l instanceof Promise?a.push(Promise.all([u,l]).then(([t,a])=>{nx(t,a,i,s,r,e,n)})):nx(u,l,i,s,r,e,n)}return a.length?Promise.all(a).then(()=>i):i}});function nx(e,t,i,n,r,a,s){e.issues.length&&(Y.has(typeof n)?i.issues.push(...eh(n,e.issues)):i.issues.push({code:"invalid_key",origin:"map",input:r,inst:a,issues:e.issues.map(e=>eg(e,s,$()))})),t.issues.length&&(Y.has(typeof n)?i.issues.push(...eh(n,t.issues)):i.issues.push({origin:"map",code:"invalid_element",input:r,inst:a,key:n,issues:t.issues.map(e=>eg(e,s,$()))})),i.value.set(e.value,t.value)}let nk=h("$ZodSet",(e,t)=>{iw.init(e,t),e._zod.parse=(i,n)=>{let r=i.value;if(!(r instanceof Set))return i.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),i;let a=[];for(let e of(i.value=new Set,r)){let r=t.valueType._zod.run({value:e,issues:[]},n);r instanceof Promise?a.push(r.then(e=>nw(e,i))):nw(r,i)}return a.length?Promise.all(a).then(()=>i):i}});function nw(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let nI=h("$ZodEnum",(e,t)=>{iw.init(e,t);let i=S(t.entries),n=new Set(i);e._zod.values=n,e._zod.pattern=RegExp(`^(${i.filter(e=>Y.has(typeof e)).map(e=>"string"==typeof e?Q(e):e.toString()).join("|")})$`),e._zod.parse=(t,r)=>{let a=t.value;return n.has(a)||t.issues.push({code:"invalid_value",values:i,input:a,inst:e}),t}}),nS=h("$ZodLiteral",(e,t)=>{if(iw.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let i=new Set(t.values);e._zod.values=i,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?Q(e):e?Q(e.toString()):String(e)).join("|")})$`),e._zod.parse=(n,r)=>{let a=n.value;return i.has(a)||n.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),n}}),nZ=h("$ZodFile",(e,t)=>{iw.init(e,t),e._zod.parse=(t,i)=>{let n=t.value;return n instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),t}}),nz=h("$ZodTransform",(e,t)=>{iw.init(e,t),e._zod.parse=(i,n)=>{if("backward"===n.direction)throw new _(e.constructor.name);let r=t.transform(i.value,i);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(e=>(i.value=e,i));if(r instanceof Promise)throw new g;return i.value=r,i}});function nO(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}let nj=h("$ZodOptional",(e,t)=>{iw.init(e,t),e._zod.optin="optional",e._zod.optout="optional",P(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),P(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${U(e.source)})?$`):void 0}),e._zod.parse=(e,i)=>{if("optional"===t.innerType._zod.optin){let n=t.innerType._zod.run(e,i);return n instanceof Promise?n.then(t=>nO(t,e.value)):nO(n,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,i)}}),nU=h("$ZodExactOptional",(e,t)=>{nj.init(e,t),P(e._zod,"values",()=>t.innerType._zod.values),P(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,i)=>t.innerType._zod.run(e,i)}),nN=h("$ZodNullable",(e,t)=>{iw.init(e,t),P(e._zod,"optin",()=>t.innerType._zod.optin),P(e._zod,"optout",()=>t.innerType._zod.optout),P(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${U(e.source)}|null)$`):void 0}),P(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,i)=>null===e.value?e:t.innerType._zod.run(e,i)}),nT=h("$ZodDefault",(e,t)=>{iw.init(e,t),e._zod.optin="optional",P(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,i)=>{if("backward"===i.direction)return t.innerType._zod.run(e,i);if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,i);return n instanceof Promise?n.then(e=>nP(e,t)):nP(n,t)}});function nP(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let nD=h("$ZodPrefault",(e,t)=>{iw.init(e,t),e._zod.optin="optional",P(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,i)=>("backward"===i.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,i))}),nE=h("$ZodNonOptional",(e,t)=>{iw.init(e,t),P(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(i,n)=>{let r=t.innerType._zod.run(i,n);return r instanceof Promise?r.then(t=>nA(t,e)):nA(r,e)}});function nA(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let nC=h("$ZodSuccess",(e,t)=>{iw.init(e,t),e._zod.parse=(e,i)=>{if("backward"===i.direction)throw new _("ZodSuccess");let n=t.innerType._zod.run(e,i);return n instanceof Promise?n.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===n.issues.length,e)}}),nR=h("$ZodCatch",(e,t)=>{iw.init(e,t),P(e._zod,"optin",()=>t.innerType._zod.optin),P(e._zod,"optout",()=>t.innerType._zod.optout),P(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,i)=>{if("backward"===i.direction)return t.innerType._zod.run(e,i);let n=t.innerType._zod.run(e,i);return n instanceof Promise?n.then(n=>(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>eg(e,i,$()))},input:e.value}),e.issues=[]),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>eg(e,i,$()))},input:e.value}),e.issues=[]),e)}}),nL=h("$ZodNaN",(e,t)=>{iw.init(e,t),e._zod.parse=(t,i)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),nF=h("$ZodPipe",(e,t)=>{iw.init(e,t),P(e._zod,"values",()=>t.in._zod.values),P(e._zod,"optin",()=>t.in._zod.optin),P(e._zod,"optout",()=>t.out._zod.optout),P(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,i)=>{if("backward"===i.direction){let n=t.out._zod.run(e,i);return n instanceof Promise?n.then(e=>nM(e,t.in,i)):nM(n,t.in,i)}let n=t.in._zod.run(e,i);return n instanceof Promise?n.then(e=>nM(e,t.out,i)):nM(n,t.out,i)}});function nM(e,t,i){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},i)}let nJ=h("$ZodCodec",(e,t)=>{iw.init(e,t),P(e._zod,"values",()=>t.in._zod.values),P(e._zod,"optin",()=>t.in._zod.optin),P(e._zod,"optout",()=>t.out._zod.optout),P(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,i)=>{if("forward"===(i.direction||"forward")){let n=t.in._zod.run(e,i);return n instanceof Promise?n.then(e=>nq(e,t,i)):nq(n,t,i)}{let n=t.out._zod.run(e,i);return n instanceof Promise?n.then(e=>nq(e,t,i)):nq(n,t,i)}}});function nq(e,t,i){if(e.issues.length)return e.aborted=!0,e;if("forward"===(i.direction||"forward")){let n=t.transform(e.value,e);return n instanceof Promise?n.then(n=>nV(e,n,t.out,i)):nV(e,n,t.out,i)}{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(n=>nV(e,n,t.in,i)):nV(e,n,t.in,i)}}function nV(e,t,i,n){return e.issues.length?(e.aborted=!0,e):i._zod.run({value:t,issues:e.issues},n)}let nK=h("$ZodReadonly",(e,t)=>{iw.init(e,t),P(e._zod,"propValues",()=>t.innerType._zod.propValues),P(e._zod,"values",()=>t.innerType._zod.values),P(e._zod,"optin",()=>t.innerType?._zod?.optin),P(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,i)=>{if("backward"===i.direction)return t.innerType._zod.run(e,i);let n=t.innerType._zod.run(e,i);return n instanceof Promise?n.then(nW):nW(n)}});function nW(e){return e.value=Object.freeze(e.value),e}let nB=h("$ZodTemplateLiteral",(e,t)=>{iw.init(e,t);let i=[];for(let e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let n=+!!t.startsWith("^"),r=t.endsWith("$")?t.length-1:t.length;i.push(t.slice(n,r))}else if(null===e||H.has(typeof e))i.push(Q(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${i.join("")}$`),e._zod.parse=(i,n)=>("string"!=typeof i.value?i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),i)}),nG=h("$ZodFunction",(e,t)=>(iw.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw Error("implement() must be called with a function");return function(...i){let n=Reflect.apply(t,this,e._def.input?eR(e._def.input,i):i);return e._def.output?eR(e._def.output,n):n}},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return async function(...i){let n=e._def.input?await eF(e._def.input,i):i,r=await Reflect.apply(t,this,n);return e._def.output?await eF(e._def.output,r):r}},e._zod.parse=(t,i)=>("function"!=typeof t.value?t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}):e._def.output&&"promise"===e._def.output._zod.def.type?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t),e.input=(...t)=>{let i=e.constructor;return new i(Array.isArray(t[0])?{type:"function",input:new n_({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}:{type:"function",input:t[0],output:e._def.output})},e.output=t=>new e.constructor({type:"function",input:e._def.input,output:t}),e)),nX=h("$ZodPromise",(e,t)=>{iw.init(e,t),e._zod.parse=(e,i)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},i))}),nY=h("$ZodLazy",(e,t)=>{iw.init(e,t),P(e._zod,"innerType",()=>t.getter()),P(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),P(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),P(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),P(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,i)=>e._zod.innerType._zod.run(t,i)}),nH=h("$ZodCustom",(e,t)=>{t3.init(e,t),iw.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=i=>{let n=i.value,r=t.fn(n);if(r instanceof Promise)return r.then(t=>nQ(t,i,n,e));nQ(r,i,n,e)}});function nQ(e,t,i,n){if(!e){let e={code:"custom",input:i,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(eb(e))}}function n0(){let e,t,i;return{localeError:(e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}},t={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},i={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${n.expected}، ولكن تم إدخال ${r}`;return`مدخلات غير مقبولة: يفترض إدخال ${e}، ولكن تم إدخال ${r}`}case"invalid_value":if(1===n.values.length)return`مدخلات غير مقبولة: يفترض إدخال ${en(n.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${t} ${n.maximum.toString()} ${i.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${t} ${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${t} ${n.minimum.toString()} ${i.unit}`;return`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${t} ${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`;if("ends_with"===n.format)return`نَص غير مقبول: يجب أن ينتهي بـ "${n.suffix}"`;if("includes"===n.format)return`نَص غير مقبول: يجب أن يتضمَّن "${n.includes}"`;if("regex"===n.format)return`نَص غير مقبول: يجب أن يطابق النمط ${n.pattern}`;return`${t[n.format]??n.format} غير مقبول`;case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${Z(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":default:return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`}})}}function n4(){let e,t,i;return{localeError:(e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Yanlış dəyər: g\xf6zlənilən instanceof ${n.expected}, daxil olan ${r}`;return`Yanlış dəyər: g\xf6zlənilən ${e}, daxil olan ${r}`}case"invalid_value":if(1===n.values.length)return`Yanlış dəyər: g\xf6zlənilən ${en(n.values[0])}`;return`Yanlış se\xe7im: aşağıdakılardan biri olmalıdır: ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`\xc7ox b\xf6y\xfck: g\xf6zlənilən ${n.origin??"dəyər"} ${t}${n.maximum.toString()} ${i.unit??"element"}`;return`\xc7ox b\xf6y\xfck: g\xf6zlənilən ${n.origin??"dəyər"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`\xc7ox ki\xe7ik: g\xf6zlənilən ${n.origin} ${t}${n.minimum.toString()} ${i.unit}`;return`\xc7ox ki\xe7ik: g\xf6zlənilən ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Yanlış mətn: "${n.prefix}" ilə başlamalıdır`;if("ends_with"===n.format)return`Yanlış mətn: "${n.suffix}" ilə bitməlidir`;if("includes"===n.format)return`Yanlış mətn: "${n.includes}" daxil olmalıdır`;if("regex"===n.format)return`Yanlış mətn: ${n.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${t[n.format]??n.format}`;case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə b\xf6l\xfcnə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan a\xe7ar${n.keys.length>1?"lar":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış a\xe7ar`;case"invalid_union":default:return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`}})}}function n1(e,t,i,n){let r=Math.abs(e),a=r%10,s=r%100;return s>=11&&s<=19?n:1===a?t:a>=2&&a<=4?i:n}function n6(){let e,t,i;return{localeError:(e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}},t={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},i={nan:"NaN",number:"лік",array:"масіў"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Няправільны ўвод: чакаўся instanceof ${n.expected}, атрымана ${r}`;return`Няправільны ўвод: чакаўся ${e}, атрымана ${r}`}case"invalid_value":if(1===n.values.length)return`Няправільны ўвод: чакалася ${en(n.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i){let e=n1(Number(n.maximum),i.unit.one,i.unit.few,i.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${i.verb} ${t}${n.maximum.toString()} ${e}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i){let e=n1(Number(n.minimum),i.unit.one,i.unit.few,i.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${i.verb} ${t}${n.minimum.toString()} ${e}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Няправільны радок: павінен пачынацца з "${n.prefix}"`;if("ends_with"===n.format)return`Няправільны радок: павінен заканчвацца на "${n.suffix}"`;if("includes"===n.format)return`Няправільны радок: павінен змяшчаць "${n.includes}"`;if("regex"===n.format)return`Няправільны радок: павінен адпавядаць шаблону ${n.pattern}`;return`Няправільны ${t[n.format]??n.format}`;case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${Z(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":default:return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`}})}}function n9(){let e,t,i;return{localeError:(e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}},t={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},i={nan:"NaN",number:"число",array:"масив"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Невалиден вход: очакван instanceof ${n.expected}, получен ${r}`;return`Невалиден вход: очакван ${e}, получен ${r}`}case"invalid_value":if(1===n.values.length)return`Невалиден вход: очакван ${en(n.values[0])}`;return`Невалидна опция: очаквано едно от ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Твърде голямо: очаква се ${n.origin??"стойност"} да съдържа ${t}${n.maximum.toString()} ${i.unit??"елемента"}`;return`Твърде голямо: очаква се ${n.origin??"стойност"} да бъде ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Твърде малко: очаква се ${n.origin} да съдържа ${t}${n.minimum.toString()} ${i.unit}`;return`Твърде малко: очаква се ${n.origin} да бъде ${t}${n.minimum.toString()}`}case"invalid_format":{if("starts_with"===n.format)return`Невалиден низ: трябва да започва с "${n.prefix}"`;if("ends_with"===n.format)return`Невалиден низ: трябва да завършва с "${n.suffix}"`;if("includes"===n.format)return`Невалиден низ: трябва да включва "${n.includes}"`;if("regex"===n.format)return`Невалиден низ: трябва да съвпада с ${n.pattern}`;let e="Невалиден";return"emoji"===n.format&&(e="Невалидно"),"datetime"===n.format&&(e="Невалидно"),"date"===n.format&&(e="Невалидна"),"time"===n.format&&(e="Невалидно"),"duration"===n.format&&(e="Невалидна"),`${e} ${t[n.format]??n.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${n.divisor}`;case"unrecognized_keys":return`Неразпознат${n.keys.length>1?"и":""} ключ${n.keys.length>1?"ове":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${n.origin}`;case"invalid_union":default:return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${n.origin}`}})}}function n2(){let e,t,i;return{localeError:(e={string:{unit:"car\xe0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}},t={regex:"entrada",email:"adre\xe7a electr\xf2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xe7a IPv4",ipv6:"adre\xe7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xfamero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Tipus inv\xe0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${r}`;return`Tipus inv\xe0lid: s'esperava ${e}, s'ha rebut ${r}`}case"invalid_value":if(1===n.values.length)return`Valor inv\xe0lid: s'esperava ${en(n.values[0])}`;return`Opci\xf3 inv\xe0lida: s'esperava una de ${Z(n.values," o ")}`;case"too_big":{let t=n.inclusive?"com a m\xe0xim":"menys de",i=e[n.origin]??null;if(i)return`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xe9s ${t} ${n.maximum.toString()} ${i.unit??"elements"}`;return`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${t} ${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?"com a m\xednim":"m\xe9s de",i=e[n.origin]??null;if(i)return`Massa petit: s'esperava que ${n.origin} contingu\xe9s ${t} ${n.minimum.toString()} ${i.unit}`;return`Massa petit: s'esperava que ${n.origin} fos ${t} ${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Format inv\xe0lid: ha de comen\xe7ar amb "${n.prefix}"`;if("ends_with"===n.format)return`Format inv\xe0lid: ha d'acabar amb "${n.suffix}"`;if("includes"===n.format)return`Format inv\xe0lid: ha d'incloure "${n.includes}"`;if("regex"===n.format)return`Format inv\xe0lid: ha de coincidir amb el patr\xf3 ${n.pattern}`;return`Format inv\xe0lid per a ${t[n.format]??n.format}`;case"not_multiple_of":return`N\xfamero inv\xe0lid: ha de ser m\xfaltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`Clau inv\xe0lida a ${n.origin}`;case"invalid_union":default:return"Entrada inv\xe0lida";case"invalid_element":return`Element inv\xe0lid a ${n.origin}`}})}}function n3(){let e,t,i;return{localeError:(e={string:{unit:"znaků",verb:"m\xedt"},file:{unit:"bajtů",verb:"m\xedt"},array:{unit:"prvků",verb:"m\xedt"},set:{unit:"prvků",verb:"m\xedt"}},t={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 čas ve form\xe1tu ISO",date:"datum ve form\xe1tu ISO",time:"čas ve form\xe1tu ISO",duration:"doba trv\xe1n\xed ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zak\xf3dovan\xfd ve form\xe1tu base64",base64url:"řetězec zak\xf3dovan\xfd ve form\xe1tu base64url",json_string:"řetězec ve form\xe1tu JSON",e164:"č\xedslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"č\xedslo",string:"řetězec",function:"funkce",array:"pole"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Neplatn\xfd vstup: oček\xe1v\xe1no instanceof ${n.expected}, obdrženo ${r}`;return`Neplatn\xfd vstup: oček\xe1v\xe1no ${e}, obdrženo ${r}`}case"invalid_value":if(1===n.values.length)return`Neplatn\xfd vstup: oček\xe1v\xe1no ${en(n.values[0])}`;return`Neplatn\xe1 možnost: oček\xe1v\xe1na jedna z hodnot ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Hodnota je př\xedliš velk\xe1: ${n.origin??"hodnota"} mus\xed m\xedt ${t}${n.maximum.toString()} ${i.unit??"prvků"}`;return`Hodnota je př\xedliš velk\xe1: ${n.origin??"hodnota"} mus\xed b\xfdt ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Hodnota je př\xedliš mal\xe1: ${n.origin??"hodnota"} mus\xed m\xedt ${t}${n.minimum.toString()} ${i.unit??"prvků"}`;return`Hodnota je př\xedliš mal\xe1: ${n.origin??"hodnota"} mus\xed b\xfdt ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Neplatn\xfd řetězec: mus\xed zač\xednat na "${n.prefix}"`;if("ends_with"===n.format)return`Neplatn\xfd řetězec: mus\xed končit na "${n.suffix}"`;if("includes"===n.format)return`Neplatn\xfd řetězec: mus\xed obsahovat "${n.includes}"`;if("regex"===n.format)return`Neplatn\xfd řetězec: mus\xed odpov\xeddat vzoru ${n.pattern}`;return`Neplatn\xfd form\xe1t ${t[n.format]??n.format}`;case"not_multiple_of":return`Neplatn\xe9 č\xedslo: mus\xed b\xfdt n\xe1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xe1m\xe9 kl\xedče: ${Z(n.keys,", ")}`;case"invalid_key":return`Neplatn\xfd kl\xedč v ${n.origin}`;case"invalid_union":default:return"Neplatn\xfd vstup";case"invalid_element":return`Neplatn\xe1 hodnota v ${n.origin}`}})}}function n5(){let e,t,i;return{localeError:(e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xe6t",date:"ISO-dato",time:"ISO-klokkesl\xe6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xe5de",ipv6:"IPv6-omr\xe5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xe6t",file:"fil"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Ugyldigt input: forventede instanceof ${n.expected}, fik ${r}`;return`Ugyldigt input: forventede ${e}, fik ${r}`}case"invalid_value":if(1===n.values.length)return`Ugyldig v\xe6rdi: forventede ${en(n.values[0])}`;return`Ugyldigt valg: forventede en af f\xf8lgende ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null,a=i[n.origin]??n.origin;if(r)return`For stor: forventede ${a??"value"} ${r.verb} ${t} ${n.maximum.toString()} ${r.unit??"elementer"}`;return`For stor: forventede ${a??"value"} havde ${t} ${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null,a=i[n.origin]??n.origin;if(r)return`For lille: forventede ${a} ${r.verb} ${t} ${n.minimum.toString()} ${r.unit}`;return`For lille: forventede ${a} havde ${t} ${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Ugyldig streng: skal starte med "${n.prefix}"`;if("ends_with"===n.format)return`Ugyldig streng: skal ende med "${n.suffix}"`;if("includes"===n.format)return`Ugyldig streng: skal indeholde "${n.includes}"`;if("regex"===n.format)return`Ugyldig streng: skal matche m\xf8nsteret ${n.pattern}`;return`Ugyldig ${t[n.format]??n.format}`;case"not_multiple_of":return`Ugyldigt tal: skal v\xe6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xf8gler":"Ukendt n\xf8gle"}: ${Z(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 n7(){let e,t,i;return{localeError:(e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}},t={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Ung\xfcltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${r}`;return`Ung\xfcltige Eingabe: erwartet ${e}, erhalten ${r}`}case"invalid_value":if(1===n.values.length)return`Ung\xfcltige Eingabe: erwartet ${en(n.values[0])}`;return`Ung\xfcltige Option: erwartet eine von ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Zu gro\xdf: erwartet, dass ${n.origin??"Wert"} ${t}${n.maximum.toString()} ${i.unit??"Elemente"} hat`;return`Zu gro\xdf: erwartet, dass ${n.origin??"Wert"} ${t}${n.maximum.toString()} ist`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Zu klein: erwartet, dass ${n.origin} ${t}${n.minimum.toString()} ${i.unit} hat`;return`Zu klein: erwartet, dass ${n.origin} ${t}${n.minimum.toString()} ist`}case"invalid_format":if("starts_with"===n.format)return`Ung\xfcltiger String: muss mit "${n.prefix}" beginnen`;if("ends_with"===n.format)return`Ung\xfcltiger String: muss mit "${n.suffix}" enden`;if("includes"===n.format)return`Ung\xfcltiger String: muss "${n.includes}" enthalten`;if("regex"===n.format)return`Ung\xfcltiger String: muss dem Muster ${n.pattern} entsprechen`;return`Ung\xfcltig: ${t[n.format]??n.format}`;case"not_multiple_of":return`Ung\xfcltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xfcssel":"Unbekannter Schl\xfcssel"}: ${Z(n.keys,", ")}`;case"invalid_key":return`Ung\xfcltiger Schl\xfcssel in ${n.origin}`;case"invalid_union":default:return"Ung\xfcltige Eingabe";case"invalid_element":return`Ung\xfcltiger Wert in ${n.origin}`}})}}function n8(){let e,t,i;return{localeError:(e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;return`Invalid input: expected ${e}, received ${r}`}case"invalid_value":if(1===n.values.length)return`Invalid input: expected ${en(n.values[0])}`;return`Invalid option: expected one of ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Too big: expected ${n.origin??"value"} to have ${t}${n.maximum.toString()} ${i.unit??"elements"}`;return`Too big: expected ${n.origin??"value"} to be ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Too small: expected ${n.origin} to have ${t}${n.minimum.toString()} ${i.unit}`;return`Too small: expected ${n.origin} to be ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Invalid string: must start with "${n.prefix}"`;if("ends_with"===n.format)return`Invalid string: must end with "${n.suffix}"`;if("includes"===n.format)return`Invalid string: must include "${n.includes}"`;if("regex"===n.format)return`Invalid string: must match pattern ${n.pattern}`;return`Invalid ${t[n.format]??n.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`}})}}function re(){let e,t,i;return{localeError:(e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}},t={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",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ŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Nevalida enigo: atendiĝis instanceof ${n.expected}, riceviĝis ${r}`;return`Nevalida enigo: atendiĝis ${e}, riceviĝis ${r}`}case"invalid_value":if(1===n.values.length)return`Nevalida enigo: atendiĝis ${en(n.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${t}${n.maximum.toString()} ${i.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Tro malgranda: atendiĝis ke ${n.origin} havu ${t}${n.minimum.toString()} ${i.unit}`;return`Tro malgranda: atendiĝis ke ${n.origin} estu ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Nevalida karaktraro: devas komenciĝi per "${n.prefix}"`;if("ends_with"===n.format)return`Nevalida karaktraro: devas finiĝi per "${n.suffix}"`;if("includes"===n.format)return`Nevalida karaktraro: devas inkluzivi "${n.includes}"`;if("regex"===n.format)return`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`;return`Nevalida ${t[n.format]??n.format}`;case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} ŝlosilo${n.keys.length>1?"j":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${n.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`}})}}function rt(){let e,t,i;return{localeError:(e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={regex:"entrada",email:"direcci\xf3n de correo electr\xf3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xf3n ISO",ipv4:"direcci\xf3n IPv4",ipv6:"direcci\xf3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xfamero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xfamero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xfamero grande",symbol:"s\xedmbolo",undefined:"indefinido",null:"nulo",function:"funci\xf3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xf3n",union:"uni\xf3n",literal:"literal",promise:"promesa",void:"vac\xedo",never:"nunca",unknown:"desconocido",any:"cualquiera"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Entrada inv\xe1lida: se esperaba instanceof ${n.expected}, recibido ${r}`;return`Entrada inv\xe1lida: se esperaba ${e}, recibido ${r}`}case"invalid_value":if(1===n.values.length)return`Entrada inv\xe1lida: se esperaba ${en(n.values[0])}`;return`Opci\xf3n inv\xe1lida: se esperaba una de ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null,a=i[n.origin]??n.origin;if(r)return`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${t}${n.maximum.toString()} ${r.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${a??"valor"} fuera ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null,a=i[n.origin]??n.origin;if(r)return`Demasiado peque\xf1o: se esperaba que ${a} tuviera ${t}${n.minimum.toString()} ${r.unit}`;return`Demasiado peque\xf1o: se esperaba que ${a} fuera ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Cadena inv\xe1lida: debe comenzar con "${n.prefix}"`;if("ends_with"===n.format)return`Cadena inv\xe1lida: debe terminar en "${n.suffix}"`;if("includes"===n.format)return`Cadena inv\xe1lida: debe incluir "${n.includes}"`;if("regex"===n.format)return`Cadena inv\xe1lida: debe coincidir con el patr\xf3n ${n.pattern}`;return`Inv\xe1lido ${t[n.format]??n.format}`;case"not_multiple_of":return`N\xfamero inv\xe1lido: debe ser m\xfaltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`Llave inv\xe1lida en ${i[n.origin]??n.origin}`;case"invalid_union":default:return"Entrada inv\xe1lida";case"invalid_element":return`Valor inv\xe1lido en ${i[n.origin]??n.origin}`}})}}function ri(){let e,t,i;return{localeError:(e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}},t={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},i={nan:"NaN",number:"عدد",array:"آرایه"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`ورودی نامعتبر: می‌بایست instanceof ${n.expected} می‌بود، ${r} دریافت شد`;return`ورودی نامعتبر: می‌بایست ${e} می‌بود، ${r} دریافت شد`}case"invalid_value":if(1===n.values.length)return`ورودی نامعتبر: می‌بایست ${en(n.values[0])} می‌بود`;return`گزینه نامعتبر: می‌بایست یکی از ${Z(n.values,"|")} می‌بود`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`خیلی بزرگ: ${n.origin??"مقدار"} باید ${t}${n.maximum.toString()} ${i.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${n.origin??"مقدار"} باید ${t}${n.maximum.toString()} باشد`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`خیلی کوچک: ${n.origin} باید ${t}${n.minimum.toString()} ${i.unit} باشد`;return`خیلی کوچک: ${n.origin} باید ${t}${n.minimum.toString()} باشد`}case"invalid_format":if("starts_with"===n.format)return`رشته نامعتبر: باید با "${n.prefix}" شروع شود`;if("ends_with"===n.format)return`رشته نامعتبر: باید با "${n.suffix}" تمام شود`;if("includes"===n.format)return`رشته نامعتبر: باید شامل "${n.includes}" باشد`;if("regex"===n.format)return`رشته نامعتبر: باید با الگوی ${n.pattern} مطابقت داشته باشد`;return`${t[n.format]??n.format} نامعتبر`;case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${Z(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":default:return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`}})}}function rn(){let e,t,i;return{localeError:(e={string:{unit:"merkki\xe4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xe4iv\xe4m\xe4\xe4r\xe4n"}},t={regex:"s\xe4\xe4nn\xf6llinen lauseke",email:"s\xe4hk\xf6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xe4iv\xe4m\xe4\xe4r\xe4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${r}`;return`Virheellinen tyyppi: odotettiin ${e}, oli ${r}`}case"invalid_value":if(1===n.values.length)return`Virheellinen sy\xf6te: t\xe4ytyy olla ${en(n.values[0])}`;return`Virheellinen valinta: t\xe4ytyy olla yksi seuraavista: ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Liian suuri: ${i.subject} t\xe4ytyy olla ${t}${n.maximum.toString()} ${i.unit}`.trim();return`Liian suuri: arvon t\xe4ytyy olla ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Liian pieni: ${i.subject} t\xe4ytyy olla ${t}${n.minimum.toString()} ${i.unit}`.trim();return`Liian pieni: arvon t\xe4ytyy olla ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Virheellinen sy\xf6te: t\xe4ytyy alkaa "${n.prefix}"`;if("ends_with"===n.format)return`Virheellinen sy\xf6te: t\xe4ytyy loppua "${n.suffix}"`;if("includes"===n.format)return`Virheellinen sy\xf6te: t\xe4ytyy sis\xe4lt\xe4\xe4 "${n.includes}"`;if("regex"===n.format)return`Virheellinen sy\xf6te: t\xe4ytyy vastata s\xe4\xe4nn\xf6llist\xe4 lauseketta ${n.pattern}`;return`Virheellinen ${t[n.format]??n.format}`;case"not_multiple_of":return`Virheellinen luku: t\xe4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${Z(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 rr(){let e,t,i;return{localeError:(e={string:{unit:"caract\xe8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xe9l\xe9ments",verb:"avoir"},set:{unit:"\xe9l\xe9ments",verb:"avoir"}},t={regex:"entr\xe9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xe9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xeene encod\xe9e en base64",base64url:"cha\xeene encod\xe9e en base64url",json_string:"cha\xeene JSON",e164:"num\xe9ro E.164",jwt:"JWT",template_literal:"entr\xe9e"},i={nan:"NaN",number:"nombre",array:"tableau"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Entr\xe9e invalide : instanceof ${n.expected} attendu, ${r} re\xe7u`;return`Entr\xe9e invalide : ${e} attendu, ${r} re\xe7u`}case"invalid_value":if(1===n.values.length)return`Entr\xe9e invalide : ${en(n.values[0])} attendu`;return`Option invalide : une valeur parmi ${Z(n.values,"|")} attendue`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Trop grand : ${n.origin??"valeur"} doit ${i.verb} ${t}${n.maximum.toString()} ${i.unit??"\xe9l\xe9ment(s)"}`;return`Trop grand : ${n.origin??"valeur"} doit \xeatre ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Trop petit : ${n.origin} doit ${i.verb} ${t}${n.minimum.toString()} ${i.unit}`;return`Trop petit : ${n.origin} doit \xeatre ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Cha\xeene invalide : doit commencer par "${n.prefix}"`;if("ends_with"===n.format)return`Cha\xeene invalide : doit se terminer par "${n.suffix}"`;if("includes"===n.format)return`Cha\xeene invalide : doit inclure "${n.includes}"`;if("regex"===n.format)return`Cha\xeene invalide : doit correspondre au mod\xe8le ${n.pattern}`;return`${t[n.format]??n.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xe9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${Z(n.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${n.origin}`;case"invalid_union":default:return"Entr\xe9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`}})}}function ra(){let e,t,i;return{localeError:(e={string:{unit:"caract\xe8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xe9l\xe9ments",verb:"avoir"},set:{unit:"\xe9l\xe9ments",verb:"avoir"}},t={regex:"entr\xe9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xe9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xeene encod\xe9e en base64",base64url:"cha\xeene encod\xe9e en base64url",json_string:"cha\xeene JSON",e164:"num\xe9ro E.164",jwt:"JWT",template_literal:"entr\xe9e"},i={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Entr\xe9e invalide : attendu instanceof ${n.expected}, re\xe7u ${r}`;return`Entr\xe9e invalide : attendu ${e}, re\xe7u ${r}`}case"invalid_value":if(1===n.values.length)return`Entr\xe9e invalide : attendu ${en(n.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"≤":"<",i=e[n.origin]??null;if(i)return`Trop grand : attendu que ${n.origin??"la valeur"} ait ${t}${n.maximum.toString()} ${i.unit}`;return`Trop grand : attendu que ${n.origin??"la valeur"} soit ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?"≥":">",i=e[n.origin]??null;if(i)return`Trop petit : attendu que ${n.origin} ait ${t}${n.minimum.toString()} ${i.unit}`;return`Trop petit : attendu que ${n.origin} soit ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Cha\xeene invalide : doit commencer par "${n.prefix}"`;if("ends_with"===n.format)return`Cha\xeene invalide : doit se terminer par "${n.suffix}"`;if("includes"===n.format)return`Cha\xeene invalide : doit inclure "${n.includes}"`;if("regex"===n.format)return`Cha\xeene invalide : doit correspondre au motif ${n.pattern}`;return`${t[n.format]??n.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xe9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${Z(n.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${n.origin}`;case"invalid_union":default:return"Entr\xe9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`}})}}function rs(){let e,t,i,n,r,a,s,o,u;return{localeError:(e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},i=t=>t?e[t]:void 0,n=t=>{let n=i(t);return n?n.label:t??e.unknown.label},r=e=>`ה${n(e)}`,a=e=>{let t=i(e);return"f"===(t?.gender??"m")?"צריכה להיות":"צריך להיות"},s=e=>e?t[e]??null:null,o={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",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:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},u={nan:"NaN"},t=>{switch(t.code){case"invalid_type":{let i=t.expected,r=u[i??""]??n(i),a=e$(t.input),s=u[a]??e[a]?.label??a;if(/^[A-Z]/.test(t.expected))return`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${s}`;return`קלט לא תקין: צריך להיות ${r}, התקבל ${s}`}case"invalid_value":{if(1===t.values.length)return`ערך לא תקין: הערך חייב להיות ${en(t.values[0])}`;let e=t.values.map(e=>en(e));if(2===t.values.length)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let i=e[e.length-1],n=e.slice(0,-1).join(", ");return`ערך לא תקין: האפשרויות המתאימות הן ${n} או ${i}`}case"too_big":{let e=s(t.origin),i=r(t.origin??"value");if("string"===t.origin)return`${e?.longLabel??"ארוך"} מדי: ${i} צריכה להכיל ${t.maximum.toString()} ${e?.unit??""} ${t.inclusive?"או פחות":"לכל היותר"}`.trim();if("number"===t.origin){let e=t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`;return`גדול מדי: ${i} צריך להיות ${e}`}if("array"===t.origin||"set"===t.origin){let n="set"===t.origin?"צריכה":"צריך",r=t.inclusive?`${t.maximum} ${e?.unit??""} או פחות`:`פחות מ-${t.maximum} ${e?.unit??""}`;return`גדול מדי: ${i} ${n} להכיל ${r}`.trim()}let n=t.inclusive?"<=":"<",o=a(t.origin??"value");if(e?.unit)return`${e.longLabel} מדי: ${i} ${o} ${n}${t.maximum.toString()} ${e.unit}`;return`${e?.longLabel??"גדול"} מדי: ${i} ${o} ${n}${t.maximum.toString()}`}case"too_small":{let e=s(t.origin),i=r(t.origin??"value");if("string"===t.origin)return`${e?.shortLabel??"קצר"} מדי: ${i} צריכה להכיל ${t.minimum.toString()} ${e?.unit??""} ${t.inclusive?"או יותר":"לפחות"}`.trim();if("number"===t.origin){let e=t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`;return`קטן מדי: ${i} צריך להיות ${e}`}if("array"===t.origin||"set"===t.origin){let n="set"===t.origin?"צריכה":"צריך";if(1===t.minimum&&t.inclusive){let e=(t.origin,"לפחות פריט אחד");return`קטן מדי: ${i} ${n} להכיל ${e}`}let r=t.inclusive?`${t.minimum} ${e?.unit??""} או יותר`:`יותר מ-${t.minimum} ${e?.unit??""}`;return`קטן מדי: ${i} ${n} להכיל ${r}`.trim()}let n=t.inclusive?">=":">",o=a(t.origin??"value");if(e?.unit)return`${e.shortLabel} מדי: ${i} ${o} ${n}${t.minimum.toString()} ${e.unit}`;return`${e?.shortLabel??"קטן"} מדי: ${i} ${o} ${n}${t.minimum.toString()}`}case"invalid_format":{if("starts_with"===t.format)return`המחרוזת חייבת להתחיל ב "${t.prefix}"`;if("ends_with"===t.format)return`המחרוזת חייבת להסתיים ב "${t.suffix}"`;if("includes"===t.format)return`המחרוזת חייבת לכלול "${t.includes}"`;if("regex"===t.format)return`המחרוזת חייבת להתאים לתבנית ${t.pattern}`;let e=o[t.format],i=e?.label??t.format,n=e?.gender??"m";return`${i} לא ${"f"===n?"תקינה":"תקין"}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${Z(t.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":default:return"קלט לא תקין";case"invalid_element":{let e=r(t.origin??"array");return`ערך לא תקין ב${e}`}}})}}function ro(){let e,t,i;return{localeError:(e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}},t={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őb\xe9lyeg",date:"ISO d\xe1tum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 c\xedm",ipv6:"IPv6 c\xedm",cidrv4:"IPv4 tartom\xe1ny",cidrv6:"IPv6 tartom\xe1ny",base64:"base64-k\xf3dolt string",base64url:"base64url-k\xf3dolt string",json_string:"JSON string",e164:"E.164 sz\xe1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xe1m",array:"t\xf6mb"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k instanceof ${n.expected}, a kapott \xe9rt\xe9k ${r}`;return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${e}, a kapott \xe9rt\xe9k ${r}`}case"invalid_value":if(1===n.values.length)return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${en(n.values[0])}`;return`\xc9rv\xe9nytelen opci\xf3: valamelyik \xe9rt\xe9k v\xe1rt ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`T\xfal nagy: ${n.origin??"\xe9rt\xe9k"} m\xe9rete t\xfal nagy ${t}${n.maximum.toString()} ${i.unit??"elem"}`;return`T\xfal nagy: a bemeneti \xe9rt\xe9k ${n.origin??"\xe9rt\xe9k"} t\xfal nagy: ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${n.origin} m\xe9rete t\xfal kicsi ${t}${n.minimum.toString()} ${i.unit}`;return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${n.origin} t\xfal kicsi ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`\xc9rv\xe9nytelen string: "${n.prefix}" \xe9rt\xe9kkel kell kezdődnie`;if("ends_with"===n.format)return`\xc9rv\xe9nytelen string: "${n.suffix}" \xe9rt\xe9kkel kell v\xe9gződnie`;if("includes"===n.format)return`\xc9rv\xe9nytelen string: "${n.includes}" \xe9rt\xe9ket kell tartalmaznia`;if("regex"===n.format)return`\xc9rv\xe9nytelen string: ${n.pattern} mint\xe1nak kell megfelelnie`;return`\xc9rv\xe9nytelen ${t[n.format]??n.format}`;case"not_multiple_of":return`\xc9rv\xe9nytelen sz\xe1m: ${n.divisor} t\xf6bbsz\xf6r\xf6s\xe9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`\xc9rv\xe9nytelen kulcs ${n.origin}`;case"invalid_union":default:return"\xc9rv\xe9nytelen bemenet";case"invalid_element":return`\xc9rv\xe9nytelen \xe9rt\xe9k: ${n.origin}`}})}}function ru(e,t,i){return 1===Math.abs(e)?t:i}function rl(e){if(!e)return"";let t=e[e.length-1];return e+(["ա","ե","ը","ի","ո","ու","օ"].includes(t)?"ն":"ը")}function rd(){let e,t,i;return{localeError:(e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}},t={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},i={nan:"NaN",number:"թիվ",array:"զանգված"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${n.expected}, ստացվել է ${r}`;return`Սխալ մուտքագրում․ սպասվում էր ${e}, ստացվել է ${r}`}case"invalid_value":if(1===n.values.length)return`Սխալ մուտքագրում․ սպասվում էր ${en(n.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i){let e=ru(Number(n.maximum),i.unit.one,i.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${rl(n.origin??"արժեք")} կունենա ${t}${n.maximum.toString()} ${e}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${rl(n.origin??"արժեք")} լինի ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i){let e=ru(Number(n.minimum),i.unit.one,i.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${rl(n.origin)} կունենա ${t}${n.minimum.toString()} ${e}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${rl(n.origin)} լինի ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Սխալ տող․ պետք է սկսվի "${n.prefix}"-ով`;if("ends_with"===n.format)return`Սխալ տող․ պետք է ավարտվի "${n.suffix}"-ով`;if("includes"===n.format)return`Սխալ տող․ պետք է պարունակի "${n.includes}"`;if("regex"===n.format)return`Սխալ տող․ պետք է համապատասխանի ${n.pattern} ձևաչափին`;return`Սխալ ${t[n.format]??n.format}`;case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${n.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${n.keys.length>1?"ներ":""}. ${Z(n.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${rl(n.origin)}-ում`;case"invalid_union":default:return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${rl(n.origin)}-ում`}})}}function rc(){let e,t,i;return{localeError:(e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}},t={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${r}`;return`Input tidak valid: diharapkan ${e}, diterima ${r}`}case"invalid_value":if(1===n.values.length)return`Input tidak valid: diharapkan ${en(n.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${t}${n.maximum.toString()} ${i.unit??"elemen"}`;return`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Terlalu kecil: diharapkan ${n.origin} memiliki ${t}${n.minimum.toString()} ${i.unit}`;return`Terlalu kecil: diharapkan ${n.origin} menjadi ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`String tidak valid: harus dimulai dengan "${n.prefix}"`;if("ends_with"===n.format)return`String tidak valid: harus berakhir dengan "${n.suffix}"`;if("includes"===n.format)return`String tidak valid: harus menyertakan "${n.includes}"`;if("regex"===n.format)return`String tidak valid: harus sesuai pola ${n.pattern}`;return`${t[n.format]??n.format} tidak valid`;case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`}})}}function rm(){let e,t,i;return{localeError:(e={string:{unit:"stafi",verb:"a\xf0 hafa"},file:{unit:"b\xe6ti",verb:"a\xf0 hafa"},array:{unit:"hluti",verb:"a\xf0 hafa"},set:{unit:"hluti",verb:"a\xf0 hafa"}},t={regex:"gildi",email:"netfang",url:"vefsl\xf3\xf0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xedmi",date:"ISO dagsetning",time:"ISO t\xedmi",duration:"ISO t\xedmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xf6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xfamer",array:"fylki"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Rangt gildi: \xde\xfa sl\xf3st inn ${r} \xfear sem \xe1 a\xf0 vera instanceof ${n.expected}`;return`Rangt gildi: \xde\xfa sl\xf3st inn ${r} \xfear sem \xe1 a\xf0 vera ${e}`}case"invalid_value":if(1===n.values.length)return`Rangt gildi: gert r\xe1\xf0 fyrir ${en(n.values[0])}`;return`\xd3gilt val: m\xe1 vera eitt af eftirfarandi ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${n.origin??"gildi"} hafi ${t}${n.maximum.toString()} ${i.unit??"hluti"}`;return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${n.origin??"gildi"} s\xe9 ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${n.origin} hafi ${t}${n.minimum.toString()} ${i.unit}`;return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${n.origin} s\xe9 ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 byrja \xe1 "${n.prefix}"`;if("ends_with"===n.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 enda \xe1 "${n.suffix}"`;if("includes"===n.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 innihalda "${n.includes}"`;if("regex"===n.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 fylgja mynstri ${n.pattern}`;return`Rangt ${t[n.format]??n.format}`;case"not_multiple_of":return`R\xf6ng tala: ver\xf0ur a\xf0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xd3\xfeekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${Z(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xed ${n.origin}`;case"invalid_union":default:return"Rangt gildi";case"invalid_element":return`Rangt gildi \xed ${n.origin}`}})}}function rf(){let e,t,i;return{localeError:(e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}},t={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Input non valido: atteso instanceof ${n.expected}, ricevuto ${r}`;return`Input non valido: atteso ${e}, ricevuto ${r}`}case"invalid_value":if(1===n.values.length)return`Input non valido: atteso ${en(n.values[0])}`;return`Opzione non valida: atteso uno tra ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Troppo grande: ${n.origin??"valore"} deve avere ${t}${n.maximum.toString()} ${i.unit??"elementi"}`;return`Troppo grande: ${n.origin??"valore"} deve essere ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Troppo piccolo: ${n.origin} deve avere ${t}${n.minimum.toString()} ${i.unit}`;return`Troppo piccolo: ${n.origin} deve essere ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Stringa non valida: deve iniziare con "${n.prefix}"`;if("ends_with"===n.format)return`Stringa non valida: deve terminare con "${n.suffix}"`;if("includes"===n.format)return`Stringa non valida: deve includere "${n.includes}"`;if("regex"===n.format)return`Stringa non valida: deve corrispondere al pattern ${n.pattern}`;return`Invalid ${t[n.format]??n.format}`;case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${Z(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`}})}}function rp(){let e,t,i;return{localeError:(e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}},t={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},i={nan:"NaN",number:"数値",array:"配列"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`無効な入力: instanceof ${n.expected}が期待されましたが、${r}が入力されました`;return`無効な入力: ${e}が期待されましたが、${r}が入力されました`}case"invalid_value":if(1===n.values.length)return`無効な入力: ${en(n.values[0])}が期待されました`;return`無効な選択: ${Z(n.values,"、")}のいずれかである必要があります`;case"too_big":{let t=n.inclusive?"以下である":"より小さい",i=e[n.origin]??null;if(i)return`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${i.unit??"要素"}${t}必要があります`;return`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${t}必要があります`}case"too_small":{let t=n.inclusive?"以上である":"より大きい",i=e[n.origin]??null;if(i)return`小さすぎる値: ${n.origin}は${n.minimum.toString()}${i.unit}${t}必要があります`;return`小さすぎる値: ${n.origin}は${n.minimum.toString()}${t}必要があります`}case"invalid_format":if("starts_with"===n.format)return`無効な文字列: "${n.prefix}"で始まる必要があります`;if("ends_with"===n.format)return`無効な文字列: "${n.suffix}"で終わる必要があります`;if("includes"===n.format)return`無効な文字列: "${n.includes}"を含む必要があります`;if("regex"===n.format)return`無効な文字列: パターン${n.pattern}に一致する必要があります`;return`無効な${t[n.format]??n.format}`;case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${Z(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":default:return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`}})}}function rh(){let e,t,i;return{localeError:(e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}},t={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},i={nan:"NaN",number:"რიცხვი",string:"სტრინგი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${n.expected}, მიღებული ${r}`;return`არასწორი შეყვანა: მოსალოდნელი ${e}, მიღებული ${r}`}case"invalid_value":if(1===n.values.length)return`არასწორი შეყვანა: მოსალოდნელი ${en(n.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${Z(n.values,"|")}-დან`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} ${i.verb} ${t}${n.maximum.toString()} ${i.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} იყოს ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`ზედმეტად პატარა: მოსალოდნელი ${n.origin} ${i.verb} ${t}${n.minimum.toString()} ${i.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${n.origin} იყოს ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`არასწორი სტრინგი: უნდა იწყებოდეს "${n.prefix}"-ით`;if("ends_with"===n.format)return`არასწორი სტრინგი: უნდა მთავრდებოდეს "${n.suffix}"-ით`;if("includes"===n.format)return`არასწორი სტრინგი: უნდა შეიცავდეს "${n.includes}"-ს`;if("regex"===n.format)return`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${n.pattern}`;return`არასწორი ${t[n.format]??n.format}`;case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${n.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${n.keys.length>1?"ები":"ი"}: ${Z(n.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${n.origin}-ში`;case"invalid_union":default:return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${n.origin}-ში`}})}}function rv(){let e,t,i;return{localeError:(e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}},t={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},i={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${n.expected} ប៉ុន្តែទទួលបាន ${r}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${e} ប៉ុន្តែទទួលបាន ${r}`}case"invalid_value":if(1===n.values.length)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${en(n.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${t} ${n.maximum.toString()} ${i.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${t} ${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`តូចពេក៖ ត្រូវការ ${n.origin} ${t} ${n.minimum.toString()} ${i.unit}`;return`តូចពេក៖ ត្រូវការ ${n.origin} ${t} ${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${n.prefix}"`;if("ends_with"===n.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${n.suffix}"`;if("includes"===n.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${n.includes}"`;if("regex"===n.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${n.pattern}`;return`មិនត្រឹមត្រូវ៖ ${t[n.format]??n.format}`;case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${Z(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":default:return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`}})}}function rg(){return rv()}function r_(){let e,t,i;return{localeError:(e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}},t={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},i={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`잘못된 입력: 예상 타입은 instanceof ${n.expected}, 받은 타입은 ${r}입니다`;return`잘못된 입력: 예상 타입은 ${e}, 받은 타입은 ${r}입니다`}case"invalid_value":if(1===n.values.length)return`잘못된 입력: 값은 ${en(n.values[0])} 이어야 합니다`;return`잘못된 옵션: ${Z(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let t=n.inclusive?"이하":"미만",i="미만"===t?"이어야 합니다":"여야 합니다",r=e[n.origin]??null,a=r?.unit??"요소";if(r)return`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${a} ${t}${i}`;return`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${t}${i}`}case"too_small":{let t=n.inclusive?"이상":"초과",i="이상"===t?"이어야 합니다":"여야 합니다",r=e[n.origin]??null,a=r?.unit??"요소";if(r)return`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${a} ${t}${i}`;return`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${t}${i}`}case"invalid_format":if("starts_with"===n.format)return`잘못된 문자열: "${n.prefix}"(으)로 시작해야 합니다`;if("ends_with"===n.format)return`잘못된 문자열: "${n.suffix}"(으)로 끝나야 합니다`;if("includes"===n.format)return`잘못된 문자열: "${n.includes}"을(를) 포함해야 합니다`;if("regex"===n.format)return`잘못된 문자열: 정규식 ${n.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${t[n.format]??n.format}`;case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${Z(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":default:return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`}})}}let ry=e=>e.charAt(0).toUpperCase()+e.slice(1);function r$(e){let t=Math.abs(e),i=t%10,n=t%100;return n>=11&&n<=19||0===i?"many":1===i?"one":"few"}function rb(){return{localeError:(()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(t,i,n,r){let a=e[t]??null;return null===a?a:{unit:a.unit[i],verb:a.verb[r][n?"inclusive":"notInclusive"]}}let i={regex:"įvestis",email:"el. pašto 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ė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},n={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return e=>{switch(e.code){case"invalid_type":{let t=n[e.expected]??e.expected,i=e$(e.input),r=n[i]??i;if(/^[A-Z]/.test(e.expected))return`Gautas tipas ${r}, o tikėtasi - instanceof ${e.expected}`;return`Gautas tipas ${r}, o tikėtasi - ${t}`}case"invalid_value":if(1===e.values.length)return`Privalo būti ${en(e.values[0])}`;return`Privalo būti vienas iš ${Z(e.values,"|")} pasirinkimų`;case"too_big":{let i=n[e.origin]??e.origin,r=t(e.origin,r$(Number(e.maximum)),e.inclusive??!1,"smaller");if(r?.verb)return`${ry(i??e.origin??"reikšmė")} ${r.verb} ${e.maximum.toString()} ${r.unit??"elementų"}`;let a=e.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${ry(i??e.origin??"reikšmė")} turi būti ${a} ${e.maximum.toString()} ${r?.unit}`}case"too_small":{let i=n[e.origin]??e.origin,r=t(e.origin,r$(Number(e.minimum)),e.inclusive??!1,"bigger");if(r?.verb)return`${ry(i??e.origin??"reikšmė")} ${r.verb} ${e.minimum.toString()} ${r.unit??"elementų"}`;let a=e.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${ry(i??e.origin??"reikšmė")} turi būti ${a} ${e.minimum.toString()} ${r?.unit}`}case"invalid_format":if("starts_with"===e.format)return`Eilutė privalo prasidėti "${e.prefix}"`;if("ends_with"===e.format)return`Eilutė privalo pasibaigti "${e.suffix}"`;if("includes"===e.format)return`Eilutė privalo įtraukti "${e.includes}"`;if("regex"===e.format)return`Eilutė privalo atitikti ${e.pattern}`;return`Neteisingas ${i[e.format]??e.format}`;case"not_multiple_of":return`Skaičius privalo būti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${Z(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":default:return"Klaidinga įvestis";case"invalid_element":{let t=n[e.origin]??e.origin;return`${ry(t??e.origin??"reikšmė")} turi klaidingą įvestį`}}}})()}}function rx(){let e,t,i;return{localeError:(e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}},t={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},i={nan:"NaN",number:"број",array:"низа"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Грешен внес: се очекува instanceof ${n.expected}, примено ${r}`;return`Грешен внес: се очекува ${e}, примено ${r}`}case"invalid_value":if(1===n.values.length)return`Invalid input: expected ${en(n.values[0])}`;return`Грешана опција: се очекува една ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${t}${n.maximum.toString()} ${i.unit??"елементи"}`;return`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Премногу мал: се очекува ${n.origin} да има ${t}${n.minimum.toString()} ${i.unit}`;return`Премногу мал: се очекува ${n.origin} да биде ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Неважечка низа: мора да започнува со "${n.prefix}"`;if("ends_with"===n.format)return`Неважечка низа: мора да завршува со "${n.suffix}"`;if("includes"===n.format)return`Неважечка низа: мора да вклучува "${n.includes}"`;if("regex"===n.format)return`Неважечка низа: мора да одгоара на патернот ${n.pattern}`;return`Invalid ${t[n.format]??n.format}`;case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${Z(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":default:return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`}})}}function rk(){let e,t,i;return{localeError:(e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}},t={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${r}`;return`Input tidak sah: dijangka ${e}, diterima ${r}`}case"invalid_value":if(1===n.values.length)return`Input tidak sah: dijangka ${en(n.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Terlalu besar: dijangka ${n.origin??"nilai"} ${i.verb} ${t}${n.maximum.toString()} ${i.unit??"elemen"}`;return`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Terlalu kecil: dijangka ${n.origin} ${i.verb} ${t}${n.minimum.toString()} ${i.unit}`;return`Terlalu kecil: dijangka ${n.origin} adalah ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`String tidak sah: mesti bermula dengan "${n.prefix}"`;if("ends_with"===n.format)return`String tidak sah: mesti berakhir dengan "${n.suffix}"`;if("includes"===n.format)return`String tidak sah: mesti mengandungi "${n.includes}"`;if("regex"===n.format)return`String tidak sah: mesti sepadan dengan corak ${n.pattern}`;return`${t[n.format]??n.format} tidak sah`;case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${Z(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`}})}}function rw(){let e,t,i;return{localeError:(e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}},t={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${r}`;return`Ongeldige invoer: verwacht ${e}, ontving ${r}`}case"invalid_value":if(1===n.values.length)return`Ongeldige invoer: verwacht ${en(n.values[0])}`;return`Ongeldige optie: verwacht \xe9\xe9n van ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null,r="date"===n.origin?"laat":"string"===n.origin?"lang":"groot";if(i)return`Te ${r}: verwacht dat ${n.origin??"waarde"} ${t}${n.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`;return`Te ${r}: verwacht dat ${n.origin??"waarde"} ${t}${n.maximum.toString()} is`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null,r="date"===n.origin?"vroeg":"string"===n.origin?"kort":"klein";if(i)return`Te ${r}: verwacht dat ${n.origin} ${t}${n.minimum.toString()} ${i.unit} ${i.verb}`;return`Te ${r}: verwacht dat ${n.origin} ${t}${n.minimum.toString()} is`}case"invalid_format":if("starts_with"===n.format)return`Ongeldige tekst: moet met "${n.prefix}" beginnen`;if("ends_with"===n.format)return`Ongeldige tekst: moet op "${n.suffix}" eindigen`;if("includes"===n.format)return`Ongeldige tekst: moet "${n.includes}" bevatten`;if("regex"===n.format)return`Ongeldige tekst: moet overeenkomen met patroon ${n.pattern}`;return`Ongeldig: ${t[n.format]??n.format}`;case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`}})}}function rI(){let e,t,i;return{localeError:(e={string:{unit:"tegn",verb:"\xe5 ha"},file:{unit:"bytes",verb:"\xe5 ha"},array:{unit:"elementer",verb:"\xe5 inneholde"},set:{unit:"elementer",verb:"\xe5 inneholde"}},t={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xe5de",ipv6:"IPv6-omr\xe5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Ugyldig input: forventet instanceof ${n.expected}, fikk ${r}`;return`Ugyldig input: forventet ${e}, fikk ${r}`}case"invalid_value":if(1===n.values.length)return`Ugyldig verdi: forventet ${en(n.values[0])}`;return`Ugyldig valg: forventet en av ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`For stor(t): forventet ${n.origin??"value"} til \xe5 ha ${t}${n.maximum.toString()} ${i.unit??"elementer"}`;return`For stor(t): forventet ${n.origin??"value"} til \xe5 ha ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`For lite(n): forventet ${n.origin} til \xe5 ha ${t}${n.minimum.toString()} ${i.unit}`;return`For lite(n): forventet ${n.origin} til \xe5 ha ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Ugyldig streng: m\xe5 starte med "${n.prefix}"`;if("ends_with"===n.format)return`Ugyldig streng: m\xe5 ende med "${n.suffix}"`;if("includes"===n.format)return`Ugyldig streng: m\xe5 inneholde "${n.includes}"`;if("regex"===n.format)return`Ugyldig streng: m\xe5 matche m\xf8nsteret ${n.pattern}`;return`Ugyldig ${t[n.format]??n.format}`;case"not_multiple_of":return`Ugyldig tall: m\xe5 v\xe6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xf8kler":"Ukjent n\xf8kkel"}: ${Z(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8kkel i ${n.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`}})}}function rS(){let e,t,i;return{localeError:(e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}},t={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ı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO m\xfcddeti",ipv4:"IPv4 niş\xe2nı",ipv6:"IPv6 niş\xe2nı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`F\xe2sit giren: umulan instanceof ${n.expected}, alınan ${r}`;return`F\xe2sit giren: umulan ${e}, alınan ${r}`}case"invalid_value":if(1===n.values.length)return`F\xe2sit giren: umulan ${en(n.values[0])}`;return`F\xe2sit tercih: m\xfbteberler ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Fazla b\xfcy\xfck: ${n.origin??"value"}, ${t}${n.maximum.toString()} ${i.unit??"elements"} sahip olmalıydı.`;return`Fazla b\xfcy\xfck: ${n.origin??"value"}, ${t}${n.maximum.toString()} olmalıydı.`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Fazla k\xfc\xe7\xfck: ${n.origin}, ${t}${n.minimum.toString()} ${i.unit} sahip olmalıydı.`;return`Fazla k\xfc\xe7\xfck: ${n.origin}, ${t}${n.minimum.toString()} olmalıydı.`}case"invalid_format":if("starts_with"===n.format)return`F\xe2sit metin: "${n.prefix}" ile başlamalı.`;if("ends_with"===n.format)return`F\xe2sit metin: "${n.suffix}" ile bitmeli.`;if("includes"===n.format)return`F\xe2sit metin: "${n.includes}" ihtiv\xe2 etmeli.`;if("regex"===n.format)return`F\xe2sit metin: ${n.pattern} nakşına uymalı.`;return`F\xe2sit ${t[n.format]??n.format}`;case"not_multiple_of":return`F\xe2sit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xe7in tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} i\xe7in tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}})}}function rZ(){let e,t,i;return{localeError:(e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}},t={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},i={nan:"NaN",number:"عدد",array:"ارې"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`ناسم ورودي: باید instanceof ${n.expected} وای, مګر ${r} ترلاسه شو`;return`ناسم ورودي: باید ${e} وای, مګر ${r} ترلاسه شو`}case"invalid_value":if(1===n.values.length)return`ناسم ورودي: باید ${en(n.values[0])} وای`;return`ناسم انتخاب: باید یو له ${Z(n.values,"|")} څخه وای`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`ډیر لوی: ${n.origin??"ارزښت"} باید ${t}${n.maximum.toString()} ${i.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${n.origin??"ارزښت"} باید ${t}${n.maximum.toString()} وي`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`ډیر کوچنی: ${n.origin} باید ${t}${n.minimum.toString()} ${i.unit} ولري`;return`ډیر کوچنی: ${n.origin} باید ${t}${n.minimum.toString()} وي`}case"invalid_format":if("starts_with"===n.format)return`ناسم متن: باید د "${n.prefix}" سره پیل شي`;if("ends_with"===n.format)return`ناسم متن: باید د "${n.suffix}" سره پای ته ورسيږي`;if("includes"===n.format)return`ناسم متن: باید "${n.includes}" ولري`;if("regex"===n.format)return`ناسم متن: باید د ${n.pattern} سره مطابقت ولري`;return`${t[n.format]??n.format} ناسم دی`;case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${Z(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":default:return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`}})}}function rz(){let e,t,i;return{localeError:(e={string:{unit:"znak\xf3w",verb:"mieć"},file:{unit:"bajt\xf3w",verb:"mieć"},array:{unit:"element\xf3w",verb:"mieć"},set:{unit:"element\xf3w",verb:"mieć"}},t={regex:"wyrażenie",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ąg znak\xf3w zakodowany w formacie base64",base64url:"ciąg znak\xf3w zakodowany w formacie base64url",json_string:"ciąg znak\xf3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},i={nan:"NaN",number:"liczba",array:"tablica"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${n.expected}, otrzymano ${r}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${e}, otrzymano ${r}`}case"invalid_value":if(1===n.values.length)return`Nieprawidłowe dane wejściowe: oczekiwano ${en(n.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${t}${n.maximum.toString()} ${i.unit??"element\xf3w"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${t}${n.minimum.toString()} ${i.unit??"element\xf3w"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Nieprawidłowy ciąg znak\xf3w: musi zaczynać się od "${n.prefix}"`;if("ends_with"===n.format)return`Nieprawidłowy ciąg znak\xf3w: musi kończyć się na "${n.suffix}"`;if("includes"===n.format)return`Nieprawidłowy ciąg znak\xf3w: musi zawierać "${n.includes}"`;if("regex"===n.format)return`Nieprawidłowy ciąg znak\xf3w: musi odpowiadać wzorcowi ${n.pattern}`;return`Nieprawidłow(y/a/e) ${t[n.format]??n.format}`;case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":default:return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`}})}}function rO(){let e,t,i;return{localeError:(e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}},t={regex:"padr\xe3o",email:"endere\xe7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xe7\xe3o ISO",ipv4:"endere\xe7o IPv4",ipv6:"endere\xe7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xfamero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xfamero",null:"nulo"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Tipo inv\xe1lido: esperado instanceof ${n.expected}, recebido ${r}`;return`Tipo inv\xe1lido: esperado ${e}, recebido ${r}`}case"invalid_value":if(1===n.values.length)return`Entrada inv\xe1lida: esperado ${en(n.values[0])}`;return`Op\xe7\xe3o inv\xe1lida: esperada uma das ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Muito grande: esperado que ${n.origin??"valor"} tivesse ${t}${n.maximum.toString()} ${i.unit??"elementos"}`;return`Muito grande: esperado que ${n.origin??"valor"} fosse ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Muito pequeno: esperado que ${n.origin} tivesse ${t}${n.minimum.toString()} ${i.unit}`;return`Muito pequeno: esperado que ${n.origin} fosse ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Texto inv\xe1lido: deve come\xe7ar com "${n.prefix}"`;if("ends_with"===n.format)return`Texto inv\xe1lido: deve terminar com "${n.suffix}"`;if("includes"===n.format)return`Texto inv\xe1lido: deve incluir "${n.includes}"`;if("regex"===n.format)return`Texto inv\xe1lido: deve corresponder ao padr\xe3o ${n.pattern}`;return`${t[n.format]??n.format} inv\xe1lido`;case"not_multiple_of":return`N\xfamero inv\xe1lido: deve ser m\xfaltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${Z(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 rj(e,t,i,n){let r=Math.abs(e),a=r%10,s=r%100;return s>=11&&s<=19?n:1===a?t:a>=2&&a<=4?i:n}function rU(){let e,t,i;return{localeError:(e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}},t={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},i={nan:"NaN",number:"число",array:"массив"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Неверный ввод: ожидалось instanceof ${n.expected}, получено ${r}`;return`Неверный ввод: ожидалось ${e}, получено ${r}`}case"invalid_value":if(1===n.values.length)return`Неверный ввод: ожидалось ${en(n.values[0])}`;return`Неверный вариант: ожидалось одно из ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i){let e=rj(Number(n.maximum),i.unit.one,i.unit.few,i.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${t}${n.maximum.toString()} ${e}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i){let e=rj(Number(n.minimum),i.unit.one,i.unit.few,i.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${t}${n.minimum.toString()} ${e}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Неверная строка: должна начинаться с "${n.prefix}"`;if("ends_with"===n.format)return`Неверная строка: должна заканчиваться на "${n.suffix}"`;if("includes"===n.format)return`Неверная строка: должна содержать "${n.includes}"`;if("regex"===n.format)return`Неверная строка: должна соответствовать шаблону ${n.pattern}`;return`Неверный ${t[n.format]??n.format}`;case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":default:return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`}})}}function rN(){let e,t,i;return{localeError:(e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}},t={regex:"vnos",email:"e-poštni 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 čas",date:"ISO datum",time:"ISO čas",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 številka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"število",array:"tabela"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Neveljaven vnos: pričakovano instanceof ${n.expected}, prejeto ${r}`;return`Neveljaven vnos: pričakovano ${e}, prejeto ${r}`}case"invalid_value":if(1===n.values.length)return`Neveljaven vnos: pričakovano ${en(n.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${t}${n.maximum.toString()} ${i.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Premajhno: pričakovano, da bo ${n.origin} imelo ${t}${n.minimum.toString()} ${i.unit}`;return`Premajhno: pričakovano, da bo ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Neveljaven niz: mora se začeti z "${n.prefix}"`;if("ends_with"===n.format)return`Neveljaven niz: mora se končati z "${n.suffix}"`;if("includes"===n.format)return`Neveljaven niz: mora vsebovati "${n.includes}"`;if("regex"===n.format)return`Neveljaven niz: mora ustrezati vzorcu ${n.pattern}`;return`Neveljaven ${t[n.format]??n.format}`;case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${Z(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`}})}}function rT(){let e,t,i;return{localeError:(e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xe5lla"},set:{unit:"objekt",verb:"att inneh\xe5lla"}},t={regex:"regulj\xe4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xe4ng",base64url:"base64url-kodad str\xe4ng",json_string:"JSON-str\xe4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Ogiltig inmatning: f\xf6rv\xe4ntat instanceof ${n.expected}, fick ${r}`;return`Ogiltig inmatning: f\xf6rv\xe4ntat ${e}, fick ${r}`}case"invalid_value":if(1===n.values.length)return`Ogiltig inmatning: f\xf6rv\xe4ntat ${en(n.values[0])}`;return`Ogiltigt val: f\xf6rv\xe4ntade en av ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`F\xf6r stor(t): f\xf6rv\xe4ntade ${n.origin??"v\xe4rdet"} att ha ${t}${n.maximum.toString()} ${i.unit??"element"}`;return`F\xf6r stor(t): f\xf6rv\xe4ntat ${n.origin??"v\xe4rdet"} att ha ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`F\xf6r lite(t): f\xf6rv\xe4ntade ${n.origin??"v\xe4rdet"} att ha ${t}${n.minimum.toString()} ${i.unit}`;return`F\xf6r lite(t): f\xf6rv\xe4ntade ${n.origin??"v\xe4rdet"} att ha ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Ogiltig str\xe4ng: m\xe5ste b\xf6rja med "${n.prefix}"`;if("ends_with"===n.format)return`Ogiltig str\xe4ng: m\xe5ste sluta med "${n.suffix}"`;if("includes"===n.format)return`Ogiltig str\xe4ng: m\xe5ste inneh\xe5lla "${n.includes}"`;if("regex"===n.format)return`Ogiltig str\xe4ng: m\xe5ste matcha m\xf6nstret "${n.pattern}"`;return`Ogiltig(t) ${t[n.format]??n.format}`;case"not_multiple_of":return`Ogiltigt tal: m\xe5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xe4nda nycklar":"Ok\xe4nd nyckel"}: ${Z(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xe4rdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xe4rde i ${n.origin??"v\xe4rdet"}`}})}}function rP(){let e,t,i;return{localeError:(e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}},t={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${n.expected}, பெறப்பட்டது ${r}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${e}, பெறப்பட்டது ${r}`}case"invalid_value":if(1===n.values.length)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${en(n.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${Z(n.values,"|")} இல் ஒன்று`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${t}${n.maximum.toString()} ${i.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${t}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${t}${n.minimum.toString()} ${i.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${t}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":if("starts_with"===n.format)return`தவறான சரம்: "${n.prefix}" இல் தொடங்க வேண்டும்`;if("ends_with"===n.format)return`தவறான சரம்: "${n.suffix}" இல் முடிவடைய வேண்டும்`;if("includes"===n.format)return`தவறான சரம்: "${n.includes}" ஐ உள்ளடக்க வேண்டும்`;if("regex"===n.format)return`தவறான சரம்: ${n.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${t[n.format]??n.format}`;case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":default:return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`}})}}function rD(){let e,t,i;return{localeError:(e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}},t={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},i={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${n.expected} แต่ได้รับ ${r}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${e} แต่ได้รับ ${r}`}case"invalid_value":if(1===n.values.length)return`ค่าไม่ถูกต้อง: ควรเป็น ${en(n.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"ไม่เกิน":"น้อยกว่า",i=e[n.origin]??null;if(i)return`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${t} ${n.maximum.toString()} ${i.unit??"รายการ"}`;return`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${t} ${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?"อย่างน้อย":"มากกว่า",i=e[n.origin]??null;if(i)return`น้อยกว่ากำหนด: ${n.origin} ควรมี${t} ${n.minimum.toString()} ${i.unit}`;return`น้อยกว่ากำหนด: ${n.origin} ควรมี${t} ${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${n.prefix}"`;if("ends_with"===n.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${n.suffix}"`;if("includes"===n.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${n.includes}" อยู่ในข้อความ`;if("regex"===n.format)return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${n.pattern}`;return`รูปแบบไม่ถูกต้อง: ${t[n.format]??n.format}`;case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${Z(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}})}}function rE(){let e,t,i;return{localeError:(e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"\xf6ğe",verb:"olmalı"},set:{unit:"\xf6ğe",verb:"olmalı"}},t={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ığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},i={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Ge\xe7ersiz değer: beklenen instanceof ${n.expected}, alınan ${r}`;return`Ge\xe7ersiz değer: beklenen ${e}, alınan ${r}`}case"invalid_value":if(1===n.values.length)return`Ge\xe7ersiz değer: beklenen ${en(n.values[0])}`;return`Ge\xe7ersiz se\xe7enek: aşağıdakilerden biri olmalı: ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`\xc7ok b\xfcy\xfck: beklenen ${n.origin??"değer"} ${t}${n.maximum.toString()} ${i.unit??"\xf6ğe"}`;return`\xc7ok b\xfcy\xfck: beklenen ${n.origin??"değer"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`\xc7ok k\xfc\xe7\xfck: beklenen ${n.origin} ${t}${n.minimum.toString()} ${i.unit}`;return`\xc7ok k\xfc\xe7\xfck: beklenen ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Ge\xe7ersiz metin: "${n.prefix}" ile başlamalı`;if("ends_with"===n.format)return`Ge\xe7ersiz metin: "${n.suffix}" ile bitmeli`;if("includes"===n.format)return`Ge\xe7ersiz metin: "${n.includes}" i\xe7ermeli`;if("regex"===n.format)return`Ge\xe7ersiz metin: ${n.pattern} desenine uymalı`;return`Ge\xe7ersiz ${t[n.format]??n.format}`;case"not_multiple_of":return`Ge\xe7ersiz sayı: ${n.divisor} ile tam b\xf6l\xfcnebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${n.keys.length>1?"lar":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xe7inde ge\xe7ersiz anahtar`;case"invalid_union":default:return"Ge\xe7ersiz değer";case"invalid_element":return`${n.origin} i\xe7inde ge\xe7ersiz değer`}})}}function rA(){let e,t,i;return{localeError:(e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}},t={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},i={nan:"NaN",number:"число",array:"масив"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Неправильні вхідні дані: очікується instanceof ${n.expected}, отримано ${r}`;return`Неправильні вхідні дані: очікується ${e}, отримано ${r}`}case"invalid_value":if(1===n.values.length)return`Неправильні вхідні дані: очікується ${en(n.values[0])}`;return`Неправильна опція: очікується одне з ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Занадто велике: очікується, що ${n.origin??"значення"} ${i.verb} ${t}${n.maximum.toString()} ${i.unit??"елементів"}`;return`Занадто велике: очікується, що ${n.origin??"значення"} буде ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Занадто мале: очікується, що ${n.origin} ${i.verb} ${t}${n.minimum.toString()} ${i.unit}`;return`Занадто мале: очікується, що ${n.origin} буде ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Неправильний рядок: повинен починатися з "${n.prefix}"`;if("ends_with"===n.format)return`Неправильний рядок: повинен закінчуватися на "${n.suffix}"`;if("includes"===n.format)return`Неправильний рядок: повинен містити "${n.includes}"`;if("regex"===n.format)return`Неправильний рядок: повинен відповідати шаблону ${n.pattern}`;return`Неправильний ${t[n.format]??n.format}`;case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":default:return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`}})}}function rC(){return rA()}function rR(){let e,t,i;return{localeError:(e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}},t={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},i={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`غلط ان پٹ: instanceof ${n.expected} متوقع تھا، ${r} موصول ہوا`;return`غلط ان پٹ: ${e} متوقع تھا، ${r} موصول ہوا`}case"invalid_value":if(1===n.values.length)return`غلط ان پٹ: ${en(n.values[0])} متوقع تھا`;return`غلط آپشن: ${Z(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`بہت بڑا: ${n.origin??"ویلیو"} کے ${t}${n.maximum.toString()} ${i.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${n.origin??"ویلیو"} کا ${t}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`بہت چھوٹا: ${n.origin} کے ${t}${n.minimum.toString()} ${i.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${n.origin} کا ${t}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":if("starts_with"===n.format)return`غلط سٹرنگ: "${n.prefix}" سے شروع ہونا چاہیے`;if("ends_with"===n.format)return`غلط سٹرنگ: "${n.suffix}" پر ختم ہونا چاہیے`;if("includes"===n.format)return`غلط سٹرنگ: "${n.includes}" شامل ہونا چاہیے`;if("regex"===n.format)return`غلط سٹرنگ: پیٹرن ${n.pattern} سے میچ ہونا چاہیے`;return`غلط ${t[n.format]??n.format}`;case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${Z(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":default:return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`}})}}function rL(){let e,t,i;return{localeError:(e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"}},t={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${r}`;return`Noto‘g‘ri kirish: kutilgan ${e}, qabul qilingan ${r}`}case"invalid_value":if(1===n.values.length)return`Noto‘g‘ri kirish: kutilgan ${en(n.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Juda katta: kutilgan ${n.origin??"qiymat"} ${t}${n.maximum.toString()} ${i.unit} ${i.verb}`;return`Juda katta: kutilgan ${n.origin??"qiymat"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Juda kichik: kutilgan ${n.origin} ${t}${n.minimum.toString()} ${i.unit} ${i.verb}`;return`Juda kichik: kutilgan ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Noto‘g‘ri satr: "${n.prefix}" bilan boshlanishi kerak`;if("ends_with"===n.format)return`Noto‘g‘ri satr: "${n.suffix}" bilan tugashi kerak`;if("includes"===n.format)return`Noto‘g‘ri satr: "${n.includes}" ni o‘z ichiga olishi kerak`;if("regex"===n.format)return`Noto‘g‘ri satr: ${n.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${t[n.format]??n.format}`;case"not_multiple_of":return`Noto‘g‘ri raqam: ${n.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${n.keys.length>1?"lar":""}: ${Z(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto‘g‘ri`;case"invalid_union":default:return"Noto‘g‘ri kirish";case"invalid_element":return`${n.origin} da noto‘g‘ri qiymat`}})}}function rF(){let e,t,i;return{localeError:(e={string:{unit:"k\xfd tự",verb:"c\xf3"},file:{unit:"byte",verb:"c\xf3"},array:{unit:"phần tử",verb:"c\xf3"},set:{unit:"phần tử",verb:"c\xf3"}},t={regex:"đầu v\xe0o",email:"địa chỉ 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ờ ISO",date:"ng\xe0y ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi m\xe3 h\xf3a base64",base64url:"chuỗi m\xe3 h\xf3a base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu v\xe0o"},i={nan:"NaN",number:"số",array:"mảng"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi instanceof ${n.expected}, nhận được ${r}`;return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi ${e}, nhận được ${r}`}case"invalid_value":if(1===n.values.length)return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi ${en(n.values[0])}`;return`T\xf9y chọn kh\xf4ng hợp lệ: mong đợi một trong c\xe1c gi\xe1 trị ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Qu\xe1 lớn: mong đợi ${n.origin??"gi\xe1 trị"} ${i.verb} ${t}${n.maximum.toString()} ${i.unit??"phần tử"}`;return`Qu\xe1 lớn: mong đợi ${n.origin??"gi\xe1 trị"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Qu\xe1 nhỏ: mong đợi ${n.origin} ${i.verb} ${t}${n.minimum.toString()} ${i.unit}`;return`Qu\xe1 nhỏ: mong đợi ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Chuỗi kh\xf4ng hợp lệ: phải bắt đầu bằng "${n.prefix}"`;if("ends_with"===n.format)return`Chuỗi kh\xf4ng hợp lệ: phải kết th\xfac bằng "${n.suffix}"`;if("includes"===n.format)return`Chuỗi kh\xf4ng hợp lệ: phải bao gồm "${n.includes}"`;if("regex"===n.format)return`Chuỗi kh\xf4ng hợp lệ: phải khớp với mẫu ${n.pattern}`;return`${t[n.format]??n.format} kh\xf4ng hợp lệ`;case"not_multiple_of":return`Số kh\xf4ng hợp lệ: phải l\xe0 bội số của ${n.divisor}`;case"unrecognized_keys":return`Kh\xf3a kh\xf4ng được nhận dạng: ${Z(n.keys,", ")}`;case"invalid_key":return`Kh\xf3a kh\xf4ng hợp lệ trong ${n.origin}`;case"invalid_union":default:return"Đầu v\xe0o kh\xf4ng hợp lệ";case"invalid_element":return`Gi\xe1 trị kh\xf4ng hợp lệ trong ${n.origin}`}})}}function rM(){let e,t,i;return{localeError:(e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}},t={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},i={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`无效输入:期望 instanceof ${n.expected},实际接收 ${r}`;return`无效输入:期望 ${e},实际接收 ${r}`}case"invalid_value":if(1===n.values.length)return`无效输入:期望 ${en(n.values[0])}`;return`无效选项:期望以下之一 ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`数值过大:期望 ${n.origin??"值"} ${t}${n.maximum.toString()} ${i.unit??"个元素"}`;return`数值过大:期望 ${n.origin??"值"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`数值过小:期望 ${n.origin} ${t}${n.minimum.toString()} ${i.unit}`;return`数值过小:期望 ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`无效字符串:必须以 "${n.prefix}" 开头`;if("ends_with"===n.format)return`无效字符串:必须以 "${n.suffix}" 结尾`;if("includes"===n.format)return`无效字符串:必须包含 "${n.includes}"`;if("regex"===n.format)return`无效字符串:必须满足正则表达式 ${n.pattern}`;return`无效${t[n.format]??n.format}`;case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${Z(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":default:return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`}})}}function rJ(){let e,t,i;return{localeError:(e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}},t={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},i={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`無效的輸入值:預期為 instanceof ${n.expected},但收到 ${r}`;return`無效的輸入值:預期為 ${e},但收到 ${r}`}case"invalid_value":if(1===n.values.length)return`無效的輸入值:預期為 ${en(n.values[0])}`;return`無效的選項:預期為以下其中之一 ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`數值過大:預期 ${n.origin??"值"} 應為 ${t}${n.maximum.toString()} ${i.unit??"個元素"}`;return`數值過大:預期 ${n.origin??"值"} 應為 ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`數值過小:預期 ${n.origin} 應為 ${t}${n.minimum.toString()} ${i.unit}`;return`數值過小:預期 ${n.origin} 應為 ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`無效的字串:必須以 "${n.prefix}" 開頭`;if("ends_with"===n.format)return`無效的字串:必須以 "${n.suffix}" 結尾`;if("includes"===n.format)return`無效的字串:必須包含 "${n.includes}"`;if("regex"===n.format)return`無效的字串:必須符合格式 ${n.pattern}`;return`無效的 ${t[n.format]??n.format}`;case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${Z(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":default:return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`}})}}function rq(){let e,t,i;return{localeError:(e={string:{unit:"\xe0mi",verb:"n\xed"},file:{unit:"bytes",verb:"n\xed"},array:{unit:"nkan",verb:"n\xed"},set:{unit:"nkan",verb:"n\xed"}},t={regex:"ẹ̀rọ \xecb\xe1wọl\xe9",email:"\xe0d\xedrẹ́s\xec \xecmẹ́l\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:"ọjọ́ ISO",time:"\xe0k\xf3k\xf2 ISO",duration:"\xe0k\xf3k\xf2 t\xf3 p\xe9 ISO",ipv4:"\xe0d\xedrẹ́s\xec IPv4",ipv6:"\xe0d\xedrẹ́s\xec IPv6",cidrv4:"\xe0gb\xe8gb\xe8 IPv4",cidrv6:"\xe0gb\xe8gb\xe8 IPv6",base64:"ọ̀rọ̀ t\xed a kọ́ n\xed base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mb\xe0 E.164",jwt:"JWT",template_literal:"ẹ̀rọ \xecb\xe1wọl\xe9"},i={nan:"NaN",number:"nọ́mb\xe0",array:"akopọ"},n=>{switch(n.code){case"invalid_type":{let e=i[n.expected]??n.expected,t=e$(n.input),r=i[t]??t;if(/^[A-Z]/.test(n.expected))return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi instanceof ${n.expected}, \xe0mọ̀ a r\xed ${r}`;return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi ${e}, \xe0mọ̀ a r\xed ${r}`}case"invalid_value":if(1===n.values.length)return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi ${en(n.values[0])}`;return`\xc0ṣ\xe0y\xe0n aṣ\xecṣe: yan ọ̀kan l\xe1ra ${Z(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`T\xf3 pọ̀ j\xf9: a n\xed l\xe1ti jẹ́ p\xe9 ${n.origin??"iye"} ${i.verb} ${t}${n.maximum} ${i.unit}`;return`T\xf3 pọ̀ j\xf9: a n\xed l\xe1ti jẹ́ ${t}${n.maximum}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`K\xe9r\xe9 ju: a n\xed l\xe1ti jẹ́ p\xe9 ${n.origin} ${i.verb} ${t}${n.minimum} ${i.unit}`;return`K\xe9r\xe9 ju: a n\xed l\xe1ti jẹ́ ${t}${n.minimum}`}case"invalid_format":if("starts_with"===n.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀l\xfa "${n.prefix}"`;if("ends_with"===n.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ par\xed pẹ̀l\xfa "${n.suffix}"`;if("includes"===n.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ n\xed "${n.includes}"`;if("regex"===n.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ b\xe1 \xe0pẹẹrẹ mu ${n.pattern}`;return`Aṣ\xecṣe: ${t[n.format]??n.format}`;case"not_multiple_of":return`Nọ́mb\xe0 aṣ\xecṣe: gbọ́dọ̀ jẹ́ \xe8y\xe0 p\xedp\xedn ti ${n.divisor}`;case"unrecognized_keys":return`Bọt\xecn\xec \xe0\xecmọ̀: ${Z(n.keys,", ")}`;case"invalid_key":return`Bọt\xecn\xec aṣ\xecṣe n\xedn\xfa ${n.origin}`;case"invalid_union":default:return"\xccb\xe1wọl\xe9 aṣ\xecṣe";case"invalid_element":return`Iye aṣ\xecṣe n\xedn\xfa ${n.origin}`}})}}let rV=Symbol("ZodOutput"),rK=Symbol("ZodInput");class rW{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let i=t[0];return this._map.set(e,i),i&&"object"==typeof i&&"id"in i&&this._idmap.set(i.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let i={...this.get(t)??{}};delete i.id;let n={...i,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function rB(){return new rW}(n=globalThis).__zod_globalRegistry??(n.__zod_globalRegistry=rB());let rG=globalThis.__zod_globalRegistry;function rX(e,t){return new e({type:"string",...et(t)})}function rY(e,t){return new e({type:"string",coerce:!0,...et(t)})}function rH(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...et(t)})}function rQ(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...et(t)})}function r0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...et(t)})}function r4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...et(t)})}function r1(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...et(t)})}function r6(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...et(t)})}function r9(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...et(t)})}function r2(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...et(t)})}function r3(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...et(t)})}function r5(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...et(t)})}function r7(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...et(t)})}function r8(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...et(t)})}function ae(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...et(t)})}function at(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...et(t)})}function ai(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...et(t)})}function an(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...et(t)})}function ar(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...et(t)})}function aa(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...et(t)})}function as(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...et(t)})}function ao(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...et(t)})}function au(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...et(t)})}function al(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...et(t)})}function ad(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...et(t)})}let ac={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function am(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...et(t)})}function af(e,t){return new e({type:"string",format:"date",check:"string_format",...et(t)})}function ap(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...et(t)})}function ah(e,t){return new e({type:"string",format:"duration",check:"string_format",...et(t)})}function av(e,t){return new e({type:"number",checks:[],...et(t)})}function ag(e,t){return new e({type:"number",coerce:!0,checks:[],...et(t)})}function a_(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...et(t)})}function ay(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...et(t)})}function a$(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...et(t)})}function ab(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...et(t)})}function ax(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...et(t)})}function ak(e,t){return new e({type:"boolean",...et(t)})}function aw(e,t){return new e({type:"boolean",coerce:!0,...et(t)})}function aI(e,t){return new e({type:"bigint",...et(t)})}function aS(e,t){return new e({type:"bigint",coerce:!0,...et(t)})}function aZ(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...et(t)})}function az(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...et(t)})}function aO(e,t){return new e({type:"symbol",...et(t)})}function aj(e,t){return new e({type:"undefined",...et(t)})}function aU(e,t){return new e({type:"null",...et(t)})}function aN(e){return new e({type:"any"})}function aT(e){return new e({type:"unknown"})}function aP(e,t){return new e({type:"never",...et(t)})}function aD(e,t){return new e({type:"void",...et(t)})}function aE(e,t){return new e({type:"date",...et(t)})}function aA(e,t){return new e({type:"date",coerce:!0,...et(t)})}function aC(e,t){return new e({type:"nan",...et(t)})}function aR(e,t){return new t7({check:"less_than",...et(t),value:e,inclusive:!1})}function aL(e,t){return new t7({check:"less_than",...et(t),value:e,inclusive:!0})}function aF(e,t){return new t8({check:"greater_than",...et(t),value:e,inclusive:!1})}function aM(e,t){return new t8({check:"greater_than",...et(t),value:e,inclusive:!0})}function aJ(e){return aF(0,e)}function aq(e){return aR(0,e)}function aV(e){return aL(0,e)}function aK(e){return aM(0,e)}function aW(e,t){return new ie({check:"multiple_of",...et(t),value:e})}function aB(e,t){return new ir({check:"max_size",...et(t),maximum:e})}function aG(e,t){return new ia({check:"min_size",...et(t),minimum:e})}function aX(e,t){return new is({check:"size_equals",...et(t),size:e})}function aY(e,t){return new io({check:"max_length",...et(t),maximum:e})}function aH(e,t){return new iu({check:"min_length",...et(t),minimum:e})}function aQ(e,t){return new il({check:"length_equals",...et(t),length:e})}function a0(e,t){return new ic({check:"string_format",format:"regex",...et(t),pattern:e})}function a4(e){return new im({check:"string_format",format:"lowercase",...et(e)})}function a1(e){return new ip({check:"string_format",format:"uppercase",...et(e)})}function a6(e,t){return new ih({check:"string_format",format:"includes",...et(t),includes:e})}function a9(e,t){return new iv({check:"string_format",format:"starts_with",...et(t),prefix:e})}function a2(e,t){return new ig({check:"string_format",format:"ends_with",...et(t),suffix:e})}function a3(e,t,i){return new iy({check:"property",property:e,schema:t,...et(i)})}function a5(e,t){return new i$({check:"mime_type",mime:e,...et(t)})}function a7(e){return new ib({check:"overwrite",tx:e})}function a8(e){return a7(t=>t.normalize(e))}function se(){return a7(e=>e.trim())}function st(){return a7(e=>e.toLowerCase())}function si(){return a7(e=>e.toUpperCase())}function sn(){return a7(e=>J(e))}function sr(e,t,i){return new e({type:"array",element:t,...et(i)})}function sa(e,t,i){return new e({type:"union",options:t,...et(i)})}function ss(e,t,i){return new e({type:"union",options:t,inclusive:!1,...et(i)})}function so(e,t,i,n){return new e({type:"union",options:i,discriminator:t,...et(n)})}function su(e,t,i){return new e({type:"intersection",left:t,right:i})}function sl(e,t,i,n){let r=i instanceof iw,a=r?n:i;return new e({type:"tuple",items:t,rest:r?i:null,...et(a)})}function sd(e,t,i,n){return new e({type:"record",keyType:t,valueType:i,...et(n)})}function sc(e,t,i,n){return new e({type:"map",keyType:t,valueType:i,...et(n)})}function sm(e,t,i){return new e({type:"set",valueType:t,...et(i)})}function sf(e,t,i){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...et(i)})}function sp(e,t,i){return new e({type:"enum",entries:t,...et(i)})}function sh(e,t,i){return new e({type:"literal",values:Array.isArray(t)?t:[t],...et(i)})}function sv(e,t){return new e({type:"file",...et(t)})}function sg(e,t){return new e({type:"transform",transform:t})}function s_(e,t){return new e({type:"optional",innerType:t})}function sy(e,t){return new e({type:"nullable",innerType:t})}function s$(e,t,i){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof i?i():B(i)}})}function sb(e,t,i){return new e({type:"nonoptional",innerType:t,...et(i)})}function sx(e,t){return new e({type:"success",innerType:t})}function sk(e,t,i){return new e({type:"catch",innerType:t,catchValue:"function"==typeof i?i:()=>i})}function sw(e,t,i){return new e({type:"pipe",in:t,out:i})}function sI(e,t){return new e({type:"readonly",innerType:t})}function sS(e,t,i){return new e({type:"template_literal",parts:t,...et(i)})}function sZ(e,t){return new e({type:"lazy",getter:t})}function sz(e,t){return new e({type:"promise",innerType:t})}function sO(e,t,i){let n=et(i);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function sj(e,t,i){return new e({type:"custom",check:"custom",fn:t,...et(i)})}function sU(e){let t=sN(i=>(i.addIssue=e=>{"string"==typeof e?i.issues.push(eb(e,i.value,t._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=i.value),e.inst??(e.inst=t),e.continue??(e.continue=!t._zod.def.abort),i.issues.push(eb(e)))},e(i.value,i)));return t}function sN(e,t){let i=new t3({check:"custom",...et(t)});return i._zod.check=e,i}function sT(e){let t=new t3({check:"describe"});return t._zod.onattach=[t=>{let i=rG.get(t)??{};rG.add(t,{...i,description:e})}],t._zod.check=()=>{},t}function sP(e){let t=new t3({check:"meta"});return t._zod.onattach=[t=>{let i=rG.get(t)??{};rG.add(t,{...i,...e})}],t._zod.check=()=>{},t}function sD(e,t){let i=et(t),n=i.truthy??["true","1","yes","on","y","enabled"],r=i.falsy??["false","0","no","off","n","disabled"];"sensitive"!==i.case&&(n=n.map(e=>"string"==typeof e?e.toLowerCase():e),r=r.map(e=>"string"==typeof e?e.toLowerCase():e));let a=new Set(n),s=new Set(r),o=e.Codec??nJ,u=e.Boolean??i6,l=new o({type:"pipe",in:new(e.String??iI)({type:"string",error:i.error}),out:new u({type:"boolean",error:i.error}),transform:(e,t)=>{let n=e;return"sensitive"!==i.case&&(n=n.toLowerCase()),!!a.has(n)||!s.has(n)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...s],input:t.value,inst:l,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?n[0]||"true":r[0]||"false",error:i.error});return l}function sE(e,t,i,n={}){let r=et(n),a={...et(n),check:"string_format",type:"string",format:t,fn:"function"==typeof i?i:e=>i.test(e),...r};return i instanceof RegExp&&(a.pattern=i),new e(a)}function sA(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??rG,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function sC(e,t,i={path:[],schemaPath:[]}){var n;let r=e._zod.def,a=t.seen.get(e);if(a)return a.count++,i.schemaPath.includes(e)&&(a.cycle=i.path),a.schema;let s={schema:{},count:1,cycle:void 0,path:i.path};t.seen.set(e,s);let o=e._zod.toJSONSchema?.();if(o)s.schema=o;else{let n={...i,schemaPath:[...i.schemaPath,e],path:i.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,n);else{let i=s.schema,a=t.processors[r.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);a(e,t,i,n)}let a=e._zod.parent;a&&(s.ref||(s.ref=a),sC(a,t,n),t.seen.get(a).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(s.schema,u),"input"===t.io&&function e(t,i){let n=i??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let r=t._zod.def;if("transform"===r.type)return!0;if("array"===r.type)return e(r.element,n);if("set"===r.type)return e(r.valueType,n);if("lazy"===r.type)return e(r.getter(),n);if("promise"===r.type||"optional"===r.type||"nonoptional"===r.type||"nullable"===r.type||"readonly"===r.type||"default"===r.type||"prefault"===r.type)return e(r.innerType,n);if("intersection"===r.type)return e(r.left,n)||e(r.right,n);if("record"===r.type||"map"===r.type)return e(r.keyType,n)||e(r.valueType,n);if("pipe"===r.type)return e(r.in,n)||e(r.out,n);if("object"===r.type){for(let t in r.shape)if(e(r.shape[t],n))return!0;return!1}if("union"===r.type){for(let t of r.options)if(e(t,n))return!0;return!1}if("tuple"===r.type){for(let t of r.items)if(e(t,n))return!0;if(r.rest&&e(r.rest,n))return!0}return!1}(e)&&(delete s.schema.examples,delete s.schema.default),"input"===t.io&&s.schema._prefault&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function sR(e,t){let i=e.seen.get(t);if(!i)throw Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let t of e.seen.entries()){let i=e.metadataRegistry.get(t[0])?.id;if(i){let e=n.get(i);if(e&&e!==t[0])throw Error(`Duplicate schema id "${i}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(i,t[0])}}let r=t=>{if(t[1].schema.$ref)return;let n=t[1],{ref:r,defId:a}=(t=>{let n="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let i=e.external.registry.get(t[0])?.id,r=e.external.uri??(e=>e);if(i)return{ref:r(i)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${r("__shared")}#/${n}/${a}`}}if(t[1]===i)return{ref:"#"};let r=`#/${n}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:r+a}})(t);n.def={...n.schema},a&&(n.defId=a);let s=n.schema;for(let e in s)delete s[e];s.$ref=r};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
36
+
37
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let n=i[1];if(t===i[0]){r(i);continue}if(e.external){let n=e.external.registry.get(i[0])?.id;if(t!==i[0]&&n){r(i);continue}}if(e.metadataRegistry.get(i[0])?.id||n.cycle||n.count>1&&"ref"===e.reused){r(i);continue}}}function sL(e,t){let i=e.seen.get(t);if(!i)throw Error("Unprocessed schema. This is a bug in Zod.");let n=t=>{let i=e.seen.get(t);if(null===i.ref)return;let r=i.def??i.schema,a={...r},s=i.ref;if(i.ref=null,s){n(s);let i=e.seen.get(s),o=i.schema;if(o.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(r.allOf=r.allOf??[],r.allOf.push(o)):Object.assign(r,o),Object.assign(r,a),t._zod.parent===s)for(let e in r)"$ref"!==e&&"allOf"!==e&&(e in a||delete r[e]);if(o.$ref&&i.def)for(let e in r)"$ref"!==e&&"allOf"!==e&&e in i.def&&JSON.stringify(r[e])===JSON.stringify(i.def[e])&&delete r[e]}let o=t._zod.parent;if(o&&o!==s){n(o);let t=e.seen.get(o);if(t?.schema.$ref&&(r.$ref=t.schema.$ref,t.def))for(let e in r)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(r[e])===JSON.stringify(t.def[e])&&delete r[e]}e.override({zodSchema:t,jsonSchema:r,path:i.path??[]})};for(let t of[...e.seen.entries()].reverse())n(t[0]);let r={};if("draft-2020-12"===e.target?r.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?r.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let i=e.external.registry.get(t)?.id;if(!i)throw Error("Schema is missing an `id` property");r.$id=e.external.uri(i)}Object.assign(r,i.def??i.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?r.$defs=a:r.definitions=a);try{let i=JSON.parse(JSON.stringify(r));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:sM(t,"input",e.processors),output:sM(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch(e){throw Error("Error converting schema to JSON.")}}let sF=(e,t={})=>i=>{let n=sA({...i,processors:t});return sC(e,n),sR(n,e),sL(n,e)},sM=(e,t,i={})=>n=>{let{libraryOptions:r,target:a}=n??{},s=sA({...r??{},target:a,io:t,processors:i});return sC(e,s),sR(s,e),sL(s,e)},sJ={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},sq=(e,t,i,n)=>{i.type="string";let{minimum:r,maximum:a,format:s,patterns:o,contentEncoding:u}=e._zod.bag;if("number"==typeof r&&(i.minLength=r),"number"==typeof a&&(i.maxLength=a),s&&(i.format=sJ[s]??s,""===i.format&&delete i.format,"time"===s&&delete i.format),u&&(i.contentEncoding=u),o&&o.size>0){let e=[...o];1===e.length?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},sV=(e,t,i,n)=>{let{minimum:r,maximum:a,format:s,multipleOf:o,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;"string"==typeof s&&s.includes("int")?i.type="integer":i.type="number","number"==typeof l&&("draft-04"===t.target||"openapi-3.0"===t.target?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l),"number"==typeof r&&(i.minimum=r,"number"==typeof l&&"draft-04"!==t.target&&(l>=r?delete i.minimum:delete i.exclusiveMinimum)),"number"==typeof u&&("draft-04"===t.target||"openapi-3.0"===t.target?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u),"number"==typeof a&&(i.maximum=a,"number"==typeof u&&"draft-04"!==t.target&&(u<=a?delete i.maximum:delete i.exclusiveMaximum)),"number"==typeof o&&(i.multipleOf=o)},sK=(e,t,i,n)=>{i.type="boolean"},sW=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema")},sB=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema")},sG=(e,t,i,n)=>{"openapi-3.0"===t.target?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},sX=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema")},sY=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("Void cannot be represented in JSON Schema")},sH=(e,t,i,n)=>{i.not={}},sQ=(e,t,i,n)=>{},s0=(e,t,i,n)=>{},s4=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")},s1=(e,t,i,n)=>{let r=S(e._zod.def.entries);r.every(e=>"number"==typeof e)&&(i.type="number"),r.every(e=>"string"==typeof e)&&(i.type="string"),i.enum=r},s6=(e,t,i,n)=>{let r=e._zod.def,a=[];for(let e of r.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else a.push(Number(e));else a.push(e);if(0===a.length);else if(1===a.length){let e=a[0];i.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?i.enum=[e]:i.const=e}else a.every(e=>"number"==typeof e)&&(i.type="number"),a.every(e=>"string"==typeof e)&&(i.type="string"),a.every(e=>"boolean"==typeof e)&&(i.type="boolean"),a.every(e=>null===e)&&(i.type="null"),i.enum=a},s9=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("NaN cannot be represented in JSON Schema")},s2=(e,t,i,n)=>{let r=e._zod.pattern;if(!r)throw Error("Pattern not found in template literal");i.type="string",i.pattern=r.source},s3=(e,t,i,n)=>{let r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:o}=e._zod.bag;void 0!==a&&(r.minLength=a),void 0!==s&&(r.maxLength=s),o?1===o.length?(r.contentMediaType=o[0],Object.assign(i,r)):(Object.assign(i,r),i.anyOf=o.map(e=>({contentMediaType:e}))):Object.assign(i,r)},s5=(e,t,i,n)=>{i.type="boolean"},s7=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")},s8=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")},oe=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")},ot=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("Map cannot be represented in JSON Schema")},oi=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("Set cannot be represented in JSON Schema")},on=(e,t,i,n)=>{let r=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;"number"==typeof a&&(i.minItems=a),"number"==typeof s&&(i.maxItems=s),i.type="array",i.items=sC(r.element,t,{...n,path:[...n.path,"items"]})},or=(e,t,i,n)=>{let r=e._zod.def;i.type="object",i.properties={};let a=r.shape;for(let e in a)i.properties[e]=sC(a[e],t,{...n,path:[...n.path,"properties",e]});let s=new Set([...new Set(Object.keys(a))].filter(e=>{let i=r.shape[e]._zod;return"input"===t.io?void 0===i.optin:void 0===i.optout}));s.size>0&&(i.required=Array.from(s)),r.catchall?._zod.def.type==="never"?i.additionalProperties=!1:r.catchall?r.catchall&&(i.additionalProperties=sC(r.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):"output"===t.io&&(i.additionalProperties=!1)},oa=(e,t,i,n)=>{let r=e._zod.def,a=!1===r.inclusive,s=r.options.map((e,i)=>sC(e,t,{...n,path:[...n.path,a?"oneOf":"anyOf",i]}));a?i.oneOf=s:i.anyOf=s},os=(e,t,i,n)=>{let r=e._zod.def,a=sC(r.left,t,{...n,path:[...n.path,"allOf",0]}),s=sC(r.right,t,{...n,path:[...n.path,"allOf",1]}),o=e=>"allOf"in e&&1===Object.keys(e).length;i.allOf=[...o(a)?a.allOf:[a],...o(s)?s.allOf:[s]]},oo=(e,t,i,n)=>{let r=e._zod.def;i.type="array";let a="draft-2020-12"===t.target?"prefixItems":"items",s="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",o=r.items.map((e,i)=>sC(e,t,{...n,path:[...n.path,a,i]})),u=r.rest?sC(r.rest,t,{...n,path:[...n.path,s,..."openapi-3.0"===t.target?[r.items.length]:[]]}):null;"draft-2020-12"===t.target?(i.prefixItems=o,u&&(i.items=u)):"openapi-3.0"===t.target?(i.items={anyOf:o},u&&i.items.anyOf.push(u),i.minItems=o.length,u||(i.maxItems=o.length)):(i.items=o,u&&(i.additionalItems=u));let{minimum:l,maximum:d}=e._zod.bag;"number"==typeof l&&(i.minItems=l),"number"==typeof d&&(i.maxItems=d)},ou=(e,t,i,n)=>{let r=e._zod.def;i.type="object";let a=r.keyType,s=a._zod.bag,o=s?.patterns;if("loose"===r.mode&&o&&o.size>0){let e=sC(r.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});for(let t of(i.patternProperties={},o))i.patternProperties[t.source]=e}else("draft-07"===t.target||"draft-2020-12"===t.target)&&(i.propertyNames=sC(r.keyType,t,{...n,path:[...n.path,"propertyNames"]})),i.additionalProperties=sC(r.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let u=a._zod.values;if(u){let e=[...u].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(i.required=e)}},ol=(e,t,i,n)=>{let r=e._zod.def,a=sC(r.innerType,t,n),s=t.seen.get(e);"openapi-3.0"===t.target?(s.ref=r.innerType,i.nullable=!0):i.anyOf=[a,{type:"null"}]},od=(e,t,i,n)=>{let r=e._zod.def;sC(r.innerType,t,n),t.seen.get(e).ref=r.innerType},oc=(e,t,i,n)=>{let r=e._zod.def;sC(r.innerType,t,n),t.seen.get(e).ref=r.innerType,i.default=JSON.parse(JSON.stringify(r.defaultValue))},om=(e,t,i,n)=>{let r=e._zod.def;sC(r.innerType,t,n),t.seen.get(e).ref=r.innerType,"input"===t.io&&(i._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},of=(e,t,i,n)=>{let r,a=e._zod.def;sC(a.innerType,t,n),t.seen.get(e).ref=a.innerType;try{r=a.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}i.default=r},op=(e,t,i,n)=>{let r=e._zod.def,a="input"===t.io?"transform"===r.in._zod.def.type?r.out:r.in:r.out;sC(a,t,n),t.seen.get(e).ref=a},oh=(e,t,i,n)=>{let r=e._zod.def;sC(r.innerType,t,n),t.seen.get(e).ref=r.innerType,i.readOnly=!0},ov=(e,t,i,n)=>{let r=e._zod.def;sC(r.innerType,t,n),t.seen.get(e).ref=r.innerType},og=(e,t,i,n)=>{let r=e._zod.def;sC(r.innerType,t,n),t.seen.get(e).ref=r.innerType},o_=(e,t,i,n)=>{let r=e._zod.innerType;sC(r,t,n),t.seen.get(e).ref=r},oy={string:sq,number:sV,boolean:sK,bigint:sW,symbol:sB,null:sG,undefined:sX,void:sY,never:sH,any:sQ,unknown:s0,date:s4,enum:s1,literal:s6,nan:s9,template_literal:s2,file:s3,success:s5,custom:s7,function:s8,transform:oe,map:ot,set:oi,array:on,object:or,union:oa,intersection:os,tuple:oo,record:ou,nullable:ol,nonoptional:od,default:oc,prefault:om,catch:of,pipe:op,readonly:oh,promise:ov,optional:og,lazy:o_};function o$(e,t){if("_idmap"in e){let i=sA({...t,processors:oy}),n={};for(let t of e._idmap.entries()){let[e,n]=t;sC(n,i)}let r={};for(let a of(i.external={registry:e,uri:t?.uri,defs:n},e._idmap.entries())){let[e,t]=a;sR(i,t),r[e]=sL(i,t)}return Object.keys(n).length>0&&(r.__shared={["draft-2020-12"===i.target?"$defs":"definitions"]:n}),{schemas:r}}let i=sA({...t,processors:oy});return sC(e,i),sR(i,e),sL(i,e)}class ob{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){let t=e?.target??"draft-2020-12";"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),this.ctx=sA({processors:oy,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return sC(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),sR(this.ctx,e);let{"~standard":i,...n}=sL(this.ctx,e);return n}}let ox=h("ZodISODateTime",(e,t)=>{iC.init(e,t),oG.init(e,t)});function ok(e){return am(ox,e)}let ow=h("ZodISODate",(e,t)=>{iR.init(e,t),oG.init(e,t)});function oI(e){return af(ow,e)}let oS=h("ZodISOTime",(e,t)=>{iL.init(e,t),oG.init(e,t)});function oZ(e){return ap(oS,e)}let oz=h("ZodISODuration",(e,t)=>{iF.init(e,t),oG.init(e,t)});function oO(e){return ah(oz,e)}let oj=(e,t)=>{eU.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>eP(e,t)},flatten:{value:t=>eT(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,z,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,z,2)}},isEmpty:{get:()=>0===e.issues.length}})},oU=h("ZodError",oj),oN=h("ZodError",oj,{Parent:Error}),oT=eC(oN),oP=eL(oN),oD=eM(oN),oE=eq(oN),oA=eK(oN),oC=eB(oN),oR=eX(oN),oL=eH(oN),oF=e0(oN),oM=e1(oN),oJ=e9(oN),oq=e3(oN),oV=h("ZodType",(e,t)=>(iw.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:sM(e,"input"),output:sM(e,"output")}}),e.toJSONSchema=sF(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...i)=>e.clone(A(t,{checks:[...t.checks??[],...i.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,i)=>ee(e,t,i),e.brand=()=>e,e.register=(t,i)=>(t.add(e,i),e),e.parse=(t,i)=>oT(e,t,i,{callee:e.parse}),e.safeParse=(t,i)=>oD(e,t,i),e.parseAsync=async(t,i)=>oP(e,t,i,{callee:e.parseAsync}),e.safeParseAsync=async(t,i)=>oE(e,t,i),e.spa=e.safeParseAsync,e.encode=(t,i)=>oA(e,t,i),e.decode=(t,i)=>oC(e,t,i),e.encodeAsync=async(t,i)=>oR(e,t,i),e.decodeAsync=async(t,i)=>oL(e,t,i),e.safeEncode=(t,i)=>oF(e,t,i),e.safeDecode=(t,i)=>oM(e,t,i),e.safeEncodeAsync=async(t,i)=>oJ(e,t,i),e.safeDecodeAsync=async(t,i)=>oq(e,t,i),e.refine=(t,i)=>e.check(dl(t,i)),e.superRefine=t=>e.check(sU(t)),e.overwrite=t=>e.check(a7(t)),e.optional=()=>lA(e),e.exactOptional=()=>lR(e),e.nullable=()=>lF(e),e.nullish=()=>lA(lF(e)),e.nonoptional=t=>lB(e,t),e.array=()=>ln(e),e.or=t=>ld([e,t]),e.and=t=>lv(e,t),e.transform=t=>l1(e,lD(t)),e.default=t=>lq(e,t),e.prefault=t=>lK(e,t),e.catch=t=>lH(e,t),e.pipe=t=>l1(e,t),e.readonly=()=>l3(e),e.describe=t=>{let i=e.clone();return rG.add(i,{description:t}),i},Object.defineProperty(e,"description",{get:()=>rG.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return rG.get(e);let i=e.clone();return rG.add(i,t[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),oK=h("_ZodString",(e,t)=>{iI.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>sq(e,t,i,n);let i=e._zod.bag;e.format=i.format??null,e.minLength=i.minimum??null,e.maxLength=i.maximum??null,e.regex=(...t)=>e.check(a0(...t)),e.includes=(...t)=>e.check(a6(...t)),e.startsWith=(...t)=>e.check(a9(...t)),e.endsWith=(...t)=>e.check(a2(...t)),e.min=(...t)=>e.check(aH(...t)),e.max=(...t)=>e.check(aY(...t)),e.length=(...t)=>e.check(aQ(...t)),e.nonempty=(...t)=>e.check(aH(1,...t)),e.lowercase=t=>e.check(a4(t)),e.uppercase=t=>e.check(a1(t)),e.trim=()=>e.check(se()),e.normalize=(...t)=>e.check(a8(...t)),e.toLowerCase=()=>e.check(st()),e.toUpperCase=()=>e.check(si()),e.slugify=()=>e.check(sn())}),oW=h("ZodString",(e,t)=>{iI.init(e,t),oK.init(e,t),e.email=t=>e.check(rH(oX,t)),e.url=t=>e.check(r9(o2,t)),e.jwt=t=>e.check(ad(uz,t)),e.emoji=t=>e.check(r2(o7,t)),e.guid=t=>e.check(rQ(oH,t)),e.uuid=t=>e.check(r0(o0,t)),e.uuidv4=t=>e.check(r4(o0,t)),e.uuidv6=t=>e.check(r1(o0,t)),e.uuidv7=t=>e.check(r6(o0,t)),e.nanoid=t=>e.check(r3(ue,t)),e.guid=t=>e.check(rQ(oH,t)),e.cuid=t=>e.check(r5(ui,t)),e.cuid2=t=>e.check(r7(ur,t)),e.ulid=t=>e.check(r8(us,t)),e.base64=t=>e.check(ao(ux,t)),e.base64url=t=>e.check(au(uw,t)),e.xid=t=>e.check(ae(uu,t)),e.ksuid=t=>e.check(at(ud,t)),e.ipv4=t=>e.check(ai(um,t)),e.ipv6=t=>e.check(an(uv,t)),e.cidrv4=t=>e.check(aa(u_,t)),e.cidrv6=t=>e.check(as(u$,t)),e.e164=t=>e.check(al(uS,t)),e.datetime=t=>e.check(ok(t)),e.date=t=>e.check(oI(t)),e.time=t=>e.check(oZ(t)),e.duration=t=>e.check(oO(t))});function oB(e){return rX(oW,e)}let oG=h("ZodStringFormat",(e,t)=>{iS.init(e,t),oK.init(e,t)}),oX=h("ZodEmail",(e,t)=>{iO.init(e,t),oG.init(e,t)});function oY(e){return rH(oX,e)}let oH=h("ZodGUID",(e,t)=>{iZ.init(e,t),oG.init(e,t)});function oQ(e){return rQ(oH,e)}let o0=h("ZodUUID",(e,t)=>{iz.init(e,t),oG.init(e,t)});function o4(e){return r0(o0,e)}function o1(e){return r4(o0,e)}function o6(e){return r1(o0,e)}function o9(e){return r6(o0,e)}let o2=h("ZodURL",(e,t)=>{ij.init(e,t),oG.init(e,t)});function o3(e){return r9(o2,e)}function o5(e){return r9(o2,{protocol:/^https?$/,hostname:tS,...et(e)})}let o7=h("ZodEmoji",(e,t)=>{iU.init(e,t),oG.init(e,t)});function o8(e){return r2(o7,e)}let ue=h("ZodNanoID",(e,t)=>{iN.init(e,t),oG.init(e,t)});function ut(e){return r3(ue,e)}let ui=h("ZodCUID",(e,t)=>{iT.init(e,t),oG.init(e,t)});function un(e){return r5(ui,e)}let ur=h("ZodCUID2",(e,t)=>{iP.init(e,t),oG.init(e,t)});function ua(e){return r7(ur,e)}let us=h("ZodULID",(e,t)=>{iD.init(e,t),oG.init(e,t)});function uo(e){return r8(us,e)}let uu=h("ZodXID",(e,t)=>{iE.init(e,t),oG.init(e,t)});function ul(e){return ae(uu,e)}let ud=h("ZodKSUID",(e,t)=>{iA.init(e,t),oG.init(e,t)});function uc(e){return at(ud,e)}let um=h("ZodIPv4",(e,t)=>{iM.init(e,t),oG.init(e,t)});function uf(e){return ai(um,e)}let up=h("ZodMAC",(e,t)=>{iq.init(e,t),oG.init(e,t)});function uh(e){return ar(up,e)}let uv=h("ZodIPv6",(e,t)=>{iJ.init(e,t),oG.init(e,t)});function ug(e){return an(uv,e)}let u_=h("ZodCIDRv4",(e,t)=>{iV.init(e,t),oG.init(e,t)});function uy(e){return aa(u_,e)}let u$=h("ZodCIDRv6",(e,t)=>{iK.init(e,t),oG.init(e,t)});function ub(e){return as(u$,e)}let ux=h("ZodBase64",(e,t)=>{iB.init(e,t),oG.init(e,t)});function uk(e){return ao(ux,e)}let uw=h("ZodBase64URL",(e,t)=>{iX.init(e,t),oG.init(e,t)});function uI(e){return au(uw,e)}let uS=h("ZodE164",(e,t)=>{iY.init(e,t),oG.init(e,t)});function uZ(e){return al(uS,e)}let uz=h("ZodJWT",(e,t)=>{iQ.init(e,t),oG.init(e,t)});function uO(e){return ad(uz,e)}let uj=h("ZodCustomStringFormat",(e,t)=>{i0.init(e,t),oG.init(e,t)});function uU(e,t,i={}){return sE(uj,e,t,i)}function uN(e){return sE(uj,"hostname",tI,e)}function uT(e){return sE(uj,"hex",tM,e)}function uP(e,t){let i=t?.enc??"hex",n=`${e}_${i}`,r=s[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return sE(uj,n,r,t)}let uD=h("ZodNumber",(e,t)=>{i4.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>sV(e,t,i,n),e.gt=(t,i)=>e.check(aF(t,i)),e.gte=(t,i)=>e.check(aM(t,i)),e.min=(t,i)=>e.check(aM(t,i)),e.lt=(t,i)=>e.check(aR(t,i)),e.lte=(t,i)=>e.check(aL(t,i)),e.max=(t,i)=>e.check(aL(t,i)),e.int=t=>e.check(uC(t)),e.safe=t=>e.check(uC(t)),e.positive=t=>e.check(aF(0,t)),e.nonnegative=t=>e.check(aM(0,t)),e.negative=t=>e.check(aR(0,t)),e.nonpositive=t=>e.check(aL(0,t)),e.multipleOf=(t,i)=>e.check(aW(t,i)),e.step=(t,i)=>e.check(aW(t,i)),e.finite=()=>e;let i=e._zod.bag;e.minValue=Math.max(i.minimum??-1/0,i.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(i.maximum??1/0,i.exclusiveMaximum??1/0)??null,e.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),e.isFinite=!0,e.format=i.format??null});function uE(e){return av(uD,e)}let uA=h("ZodNumberFormat",(e,t)=>{i1.init(e,t),uD.init(e,t)});function uC(e){return a_(uA,e)}function uR(e){return ay(uA,e)}function uL(e){return a$(uA,e)}function uF(e){return ab(uA,e)}function uM(e){return ax(uA,e)}let uJ=h("ZodBoolean",(e,t)=>{i6.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>sK(e,t,i,n)});function uq(e){return ak(uJ,e)}let uV=h("ZodBigInt",(e,t)=>{i9.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>sW(e,t,i,n),e.gte=(t,i)=>e.check(aM(t,i)),e.min=(t,i)=>e.check(aM(t,i)),e.gt=(t,i)=>e.check(aF(t,i)),e.gte=(t,i)=>e.check(aM(t,i)),e.min=(t,i)=>e.check(aM(t,i)),e.lt=(t,i)=>e.check(aR(t,i)),e.lte=(t,i)=>e.check(aL(t,i)),e.max=(t,i)=>e.check(aL(t,i)),e.positive=t=>e.check(aF(BigInt(0),t)),e.negative=t=>e.check(aR(BigInt(0),t)),e.nonpositive=t=>e.check(aL(BigInt(0),t)),e.nonnegative=t=>e.check(aM(BigInt(0),t)),e.multipleOf=(t,i)=>e.check(aW(t,i));let i=e._zod.bag;e.minValue=i.minimum??null,e.maxValue=i.maximum??null,e.format=i.format??null});function uK(e){return aI(uV,e)}let uW=h("ZodBigIntFormat",(e,t)=>{i2.init(e,t),uV.init(e,t)});function uB(e){return aZ(uW,e)}function uG(e){return az(uW,e)}let uX=h("ZodSymbol",(e,t)=>{i3.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>sB(e,t,i,n)});function uY(e){return aO(uX,e)}let uH=h("ZodUndefined",(e,t)=>{i5.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>sX(e,t,i,n)});function uQ(e){return aj(uH,e)}let u0=h("ZodNull",(e,t)=>{i7.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>sG(e,t,i,n)});function u4(e){return aU(u0,e)}let u1=h("ZodAny",(e,t)=>{i8.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>sQ(e,t,i,n)});function u6(){return aN(u1)}let u9=h("ZodUnknown",(e,t)=>{ne.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>s0(e,t,i,n)});function u2(){return aT(u9)}let u3=h("ZodNever",(e,t)=>{nt.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>sH(e,t,i,n)});function u5(e){return aP(u3,e)}let u7=h("ZodVoid",(e,t)=>{ni.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>sY(e,t,i,n)});function u8(e){return aD(u7,e)}let le=h("ZodDate",(e,t)=>{nn.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>s4(e,t,i,n),e.min=(t,i)=>e.check(aM(t,i)),e.max=(t,i)=>e.check(aL(t,i));let i=e._zod.bag;e.minDate=i.minimum?new Date(i.minimum):null,e.maxDate=i.maximum?new Date(i.maximum):null});function lt(e){return aE(le,e)}let li=h("ZodArray",(e,t)=>{na.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>on(e,t,i,n),e.element=t.element,e.min=(t,i)=>e.check(aH(t,i)),e.nonempty=t=>e.check(aH(1,t)),e.max=(t,i)=>e.check(aY(t,i)),e.length=(t,i)=>e.check(aQ(t,i)),e.unwrap=()=>e.element});function ln(e,t){return sr(li,e,t)}function lr(e){return lz(Object.keys(e._zod.def.shape))}let la=h("ZodObject",(e,t)=>{nd.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>or(e,t,i,n),P(e,"shape",()=>t.shape),e.keyof=()=>lz(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:u2()}),e.loose=()=>e.clone({...e._zod.def,catchall:u2()}),e.strict=()=>e.clone({...e._zod.def,catchall:u5()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>el(e,t),e.safeExtend=t=>ed(e,t),e.merge=t=>ec(e,t),e.pick=t=>eo(e,t),e.omit=t=>eu(e,t),e.partial=(...t)=>em(lE,e,t[0]),e.required=(...t)=>ef(lW,e,t[0])});function ls(e,t){return new la({type:"object",shape:e??{},...et(t)})}function lo(e,t){return new la({type:"object",shape:e,catchall:u5(),...et(t)})}function lu(e,t){return new la({type:"object",shape:e,catchall:u2(),...et(t)})}let ll=h("ZodUnion",(e,t)=>{nm.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>oa(e,t,i,n),e.options=t.options});function ld(e,t){return new ll({type:"union",options:e,...et(t)})}let lc=h("ZodXor",(e,t)=>{ll.init(e,t),np.init(e,t),e._zod.processJSONSchema=(t,i,n)=>oa(e,t,i,n),e.options=t.options});function lm(e,t){return new lc({type:"union",options:e,inclusive:!1,...et(t)})}let lf=h("ZodDiscriminatedUnion",(e,t)=>{ll.init(e,t),nh.init(e,t)});function lp(e,t,i){return new lf({type:"union",options:t,discriminator:e,...et(i)})}let lh=h("ZodIntersection",(e,t)=>{nv.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>os(e,t,i,n)});function lv(e,t){return new lh({type:"intersection",left:e,right:t})}let lg=h("ZodTuple",(e,t)=>{n_.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>oo(e,t,i,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function l_(e,t,i){let n=t instanceof iw,r=n?i:t;return new lg({type:"tuple",items:e,rest:n?t:null,...et(r)})}let ly=h("ZodRecord",(e,t)=>{n$.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ou(e,t,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function l$(e,t,i){return new ly({type:"record",keyType:e,valueType:t,...et(i)})}function lb(e,t,i){let n=ee(e);return n._zod.values=void 0,new ly({type:"record",keyType:n,valueType:t,...et(i)})}function lx(e,t,i){return new ly({type:"record",keyType:e,valueType:t,mode:"loose",...et(i)})}let lk=h("ZodMap",(e,t)=>{nb.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ot(e,t,i,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(aG(...t)),e.nonempty=t=>e.check(aG(1,t)),e.max=(...t)=>e.check(aB(...t)),e.size=(...t)=>e.check(aX(...t))});function lw(e,t,i){return new lk({type:"map",keyType:e,valueType:t,...et(i)})}let lI=h("ZodSet",(e,t)=>{nk.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>oi(e,t,i,n),e.min=(...t)=>e.check(aG(...t)),e.nonempty=t=>e.check(aG(1,t)),e.max=(...t)=>e.check(aB(...t)),e.size=(...t)=>e.check(aX(...t))});function lS(e,t){return new lI({type:"set",valueType:e,...et(t)})}let lZ=h("ZodEnum",(e,t)=>{nI.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>s1(e,t,i,n),e.enum=t.entries,e.options=Object.values(t.entries);let i=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let r={};for(let n of e)if(i.has(n))r[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new lZ({...t,checks:[],...et(n),entries:r})},e.exclude=(e,n)=>{let r={...t.entries};for(let t of e)if(i.has(t))delete r[t];else throw Error(`Key ${t} not found in enum`);return new lZ({...t,checks:[],...et(n),entries:r})}});function lz(e,t){return new lZ({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...et(t)})}function lO(e,t){return new lZ({type:"enum",entries:e,...et(t)})}let lj=h("ZodLiteral",(e,t)=>{nS.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>s6(e,t,i,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function lU(e,t){return new lj({type:"literal",values:Array.isArray(e)?e:[e],...et(t)})}let lN=h("ZodFile",(e,t)=>{nZ.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>s3(e,t,i,n),e.min=(t,i)=>e.check(aG(t,i)),e.max=(t,i)=>e.check(aB(t,i)),e.mime=(t,i)=>e.check(a5(Array.isArray(t)?t:[t],i))});function lT(e){return sv(lN,e)}let lP=h("ZodTransform",(e,t)=>{nz.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>oe(e,t,i,n),e._zod.parse=(i,n)=>{if("backward"===n.direction)throw new _(e.constructor.name);i.addIssue=n=>{"string"==typeof n?i.issues.push(eb(n,i.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=i.value),n.inst??(n.inst=e),i.issues.push(eb(n)))};let r=t.transform(i.value,i);return r instanceof Promise?r.then(e=>(i.value=e,i)):(i.value=r,i)}});function lD(e){return new lP({type:"transform",transform:e})}let lE=h("ZodOptional",(e,t)=>{nj.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>og(e,t,i,n),e.unwrap=()=>e._zod.def.innerType});function lA(e){return new lE({type:"optional",innerType:e})}let lC=h("ZodExactOptional",(e,t)=>{nU.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>og(e,t,i,n),e.unwrap=()=>e._zod.def.innerType});function lR(e){return new lC({type:"optional",innerType:e})}let lL=h("ZodNullable",(e,t)=>{nN.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ol(e,t,i,n),e.unwrap=()=>e._zod.def.innerType});function lF(e){return new lL({type:"nullable",innerType:e})}function lM(e){return lA(lF(e))}let lJ=h("ZodDefault",(e,t)=>{nT.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>oc(e,t,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lq(e,t){return new lJ({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():B(t)}})}let lV=h("ZodPrefault",(e,t)=>{nD.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>om(e,t,i,n),e.unwrap=()=>e._zod.def.innerType});function lK(e,t){return new lV({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():B(t)}})}let lW=h("ZodNonOptional",(e,t)=>{nE.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>od(e,t,i,n),e.unwrap=()=>e._zod.def.innerType});function lB(e,t){return new lW({type:"nonoptional",innerType:e,...et(t)})}let lG=h("ZodSuccess",(e,t)=>{nC.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>s5(e,t,i,n),e.unwrap=()=>e._zod.def.innerType});function lX(e){return new lG({type:"success",innerType:e})}let lY=h("ZodCatch",(e,t)=>{nR.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>of(e,t,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function lH(e,t){return new lY({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let lQ=h("ZodNaN",(e,t)=>{nL.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>s9(e,t,i,n)});function l0(e){return aC(lQ,e)}let l4=h("ZodPipe",(e,t)=>{nF.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>op(e,t,i,n),e.in=t.in,e.out=t.out});function l1(e,t){return new l4({type:"pipe",in:e,out:t})}let l6=h("ZodCodec",(e,t)=>{l4.init(e,t),nJ.init(e,t)});function l9(e,t,i){return new l6({type:"pipe",in:e,out:t,transform:i.decode,reverseTransform:i.encode})}let l2=h("ZodReadonly",(e,t)=>{nK.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>oh(e,t,i,n),e.unwrap=()=>e._zod.def.innerType});function l3(e){return new l2({type:"readonly",innerType:e})}let l5=h("ZodTemplateLiteral",(e,t)=>{nB.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>s2(e,t,i,n)});function l7(e,t){return new l5({type:"template_literal",parts:e,...et(t)})}let l8=h("ZodLazy",(e,t)=>{nY.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>o_(e,t,i,n),e.unwrap=()=>e._zod.def.getter()});function de(e){return new l8({type:"lazy",getter:e})}let dt=h("ZodPromise",(e,t)=>{nX.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ov(e,t,i,n),e.unwrap=()=>e._zod.def.innerType});function di(e){return new dt({type:"promise",innerType:e})}let dn=h("ZodFunction",(e,t)=>{nG.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>s8(e,t,i,n)});function dr(e){return new dn({type:"function",input:Array.isArray(e?.input)?l_(e?.input):e?.input??ln(u2()),output:e?.output??u2()})}let da=h("ZodCustom",(e,t)=>{nH.init(e,t),oV.init(e,t),e._zod.processJSONSchema=(t,i,n)=>s7(e,t,i,n)});function ds(e){let t=new t3({check:"custom"});return t._zod.check=e,t}function du(e,t){return sO(da,e??(()=>!0),t)}function dl(e,t={}){return sj(da,e,t)}function dd(e){return sU(e)}let dc=sT,dm=sP;function df(e,t={}){let i=new da({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...et(t)});return i._zod.bag.Class=e,i._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:i,path:[...i._zod.def.path??[]]})},i}let dp=(...e)=>sD({Codec:l6,Boolean:uJ,String:oW},...e);function dh(e){let t=de(()=>ld([oB(e),uE(),uq(),u4(),ln(t),l$(oB(),t)]));return t}function dv(e,t){return l1(lD(e),t)}let dg={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 d_(e){$({customError:e})}function dy(){return $().customError}r||(r={});let d$={...m,...d,iso:c},db=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 dx(e,t){var i;let n;if("boolean"==typeof e)return e?d$.any():d$.never();let r={version:(i=t?.defaultTarget,"https://json-schema.org/draft/2020-12/schema"===(n=e.$schema)?"draft-2020-12":"http://json-schema.org/draft-07/schema#"===n?"draft-7":"http://json-schema.org/draft-04/schema#"===n?"draft-4":i??"draft-2020-12"),defs:e.$defs||e.definitions||{},refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??rG};return function e(t,i){if("boolean"==typeof t)return t?d$.any():d$.never();let n=function t(i,n){let r;if(void 0!==i.not){if("object"==typeof i.not&&0===Object.keys(i.not).length)return d$.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==i.unevaluatedItems)throw Error("unevaluatedItems is not supported");if(void 0!==i.unevaluatedProperties)throw Error("unevaluatedProperties is not supported");if(void 0!==i.if||void 0!==i.then||void 0!==i.else)throw Error("Conditional schemas (if/then/else) are not supported");if(void 0!==i.dependentSchemas||void 0!==i.dependentRequired)throw Error("dependentSchemas and dependentRequired are not supported");if(i.$ref){let t=i.$ref;if(n.refs.has(t))return n.refs.get(t);if(n.processing.has(t))return d$.lazy(()=>{if(!n.refs.has(t))throw Error(`Circular reference not resolved: ${t}`);return n.refs.get(t)});n.processing.add(t);let r=e(function(e,t){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let i=e.slice(1).split("/").filter(Boolean);if(0===i.length)return t.rootSchema;let n="draft-2020-12"===t.version?"$defs":"definitions";if(i[0]===n){let n=i[1];if(!n||!t.defs[n])throw Error(`Reference not found: ${e}`);return t.defs[n]}throw Error(`Reference not found: ${e}`)}(t,n),n);return n.refs.set(t,r),n.processing.delete(t),r}if(void 0!==i.enum){let e=i.enum;if("openapi-3.0"===n.version&&!0===i.nullable&&1===e.length&&null===e[0])return d$.null();if(0===e.length)return d$.never();if(1===e.length)return d$.literal(e[0]);if(e.every(e=>"string"==typeof e))return d$.enum(e);let t=e.map(e=>d$.literal(e));return t.length<2?t[0]:d$.union([t[0],t[1],...t.slice(2)])}if(void 0!==i.const)return d$.literal(i.const);let a=i.type;if(Array.isArray(a)){let e=a.map(e=>t({...i,type:e},n));return 0===e.length?d$.never():1===e.length?e[0]:d$.union(e)}if(!a)return d$.any();switch(a){case"string":{let e=d$.string();if(i.format){let t=i.format;"email"===t?e=e.check(d$.email()):"uri"===t||"uri-reference"===t?e=e.check(d$.url()):"uuid"===t||"guid"===t?e=e.check(d$.uuid()):"date-time"===t?e=e.check(d$.iso.datetime()):"date"===t?e=e.check(d$.iso.date()):"time"===t?e=e.check(d$.iso.time()):"duration"===t?e=e.check(d$.iso.duration()):"ipv4"===t?e=e.check(d$.ipv4()):"ipv6"===t?e=e.check(d$.ipv6()):"mac"===t?e=e.check(d$.mac()):"cidr"===t?e=e.check(d$.cidrv4()):"cidr-v6"===t?e=e.check(d$.cidrv6()):"base64"===t?e=e.check(d$.base64()):"base64url"===t?e=e.check(d$.base64url()):"e164"===t?e=e.check(d$.e164()):"jwt"===t?e=e.check(d$.jwt()):"emoji"===t?e=e.check(d$.emoji()):"nanoid"===t?e=e.check(d$.nanoid()):"cuid"===t?e=e.check(d$.cuid()):"cuid2"===t?e=e.check(d$.cuid2()):"ulid"===t?e=e.check(d$.ulid()):"xid"===t?e=e.check(d$.xid()):"ksuid"===t&&(e=e.check(d$.ksuid()))}"number"==typeof i.minLength&&(e=e.min(i.minLength)),"number"==typeof i.maxLength&&(e=e.max(i.maxLength)),i.pattern&&(e=e.regex(new RegExp(i.pattern))),r=e;break}case"number":case"integer":{let e="integer"===a?d$.number().int():d$.number();"number"==typeof i.minimum&&(e=e.min(i.minimum)),"number"==typeof i.maximum&&(e=e.max(i.maximum)),"number"==typeof i.exclusiveMinimum?e=e.gt(i.exclusiveMinimum):!0===i.exclusiveMinimum&&"number"==typeof i.minimum&&(e=e.gt(i.minimum)),"number"==typeof i.exclusiveMaximum?e=e.lt(i.exclusiveMaximum):!0===i.exclusiveMaximum&&"number"==typeof i.maximum&&(e=e.lt(i.maximum)),"number"==typeof i.multipleOf&&(e=e.multipleOf(i.multipleOf)),r=e;break}case"boolean":r=d$.boolean();break;case"null":r=d$.null();break;case"object":{let t={},a=i.properties||{},s=new Set(i.required||[]);for(let[i,r]of Object.entries(a)){let a=e(r,n);t[i]=s.has(i)?a:a.optional()}if(i.propertyNames){let a=e(i.propertyNames,n),s=i.additionalProperties&&"object"==typeof i.additionalProperties?e(i.additionalProperties,n):d$.any();if(0===Object.keys(t).length){r=d$.record(a,s);break}let o=d$.object(t).passthrough(),u=d$.looseRecord(a,s);r=d$.intersection(o,u);break}if(i.patternProperties){let a=i.patternProperties,s=Object.keys(a),o=[];for(let t of s){let i=e(a[t],n),r=d$.string().regex(new RegExp(t));o.push(d$.looseRecord(r,i))}let u=[];if(Object.keys(t).length>0&&u.push(d$.object(t).passthrough()),u.push(...o),0===u.length)r=d$.object({}).passthrough();else if(1===u.length)r=u[0];else{let e=d$.intersection(u[0],u[1]);for(let t=2;t<u.length;t++)e=d$.intersection(e,u[t]);r=e}break}let o=d$.object(t);r=!1===i.additionalProperties?o.strict():"object"==typeof i.additionalProperties?o.catchall(e(i.additionalProperties,n)):o.passthrough();break}case"array":{let t=i.prefixItems,a=i.items;if(t&&Array.isArray(t)){let s=t.map(t=>e(t,n)),o=a&&"object"==typeof a&&!Array.isArray(a)?e(a,n):void 0;r=o?d$.tuple(s).rest(o):d$.tuple(s),"number"==typeof i.minItems&&(r=r.check(d$.minLength(i.minItems))),"number"==typeof i.maxItems&&(r=r.check(d$.maxLength(i.maxItems)))}else if(Array.isArray(a)){let t=a.map(t=>e(t,n)),s=i.additionalItems&&"object"==typeof i.additionalItems?e(i.additionalItems,n):void 0;r=s?d$.tuple(t).rest(s):d$.tuple(t),"number"==typeof i.minItems&&(r=r.check(d$.minLength(i.minItems))),"number"==typeof i.maxItems&&(r=r.check(d$.maxLength(i.maxItems)))}else if(void 0!==a){let t=e(a,n),s=d$.array(t);"number"==typeof i.minItems&&(s=s.min(i.minItems)),"number"==typeof i.maxItems&&(s=s.max(i.maxItems)),r=s}else r=d$.array(d$.any());break}default:throw Error(`Unsupported type: ${a}`)}return i.description&&(r=r.describe(i.description)),void 0!==i.default&&(r=r.default(i.default)),r}(t,i),r=t.type||void 0!==t.enum||void 0!==t.const;if(t.anyOf&&Array.isArray(t.anyOf)){let a=t.anyOf.map(t=>e(t,i)),s=d$.union(a);n=r?d$.intersection(n,s):s}if(t.oneOf&&Array.isArray(t.oneOf)){let a=t.oneOf.map(t=>e(t,i)),s=d$.xor(a);n=r?d$.intersection(n,s):s}if(t.allOf&&Array.isArray(t.allOf))if(0===t.allOf.length)n=r?n:d$.any();else{let a=r?n:e(t.allOf[0],i),s=+!r;for(let n=s;n<t.allOf.length;n++)a=d$.intersection(a,e(t.allOf[n],i));n=a}!0===t.nullable&&"openapi-3.0"===i.version&&(n=d$.nullable(n)),!0===t.readOnly&&(n=d$.readonly(n));let a={};for(let e of["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"])e in t&&(a[e]=t[e]);for(let e of["contentEncoding","contentMediaType","contentSchema"])e in t&&(a[e]=t[e]);for(let e of Object.keys(t))db.has(e)||(a[e]=t[e]);return Object.keys(a).length>0&&i.registry.add(n,a),n}(e,r)}function dk(e){return rY(oW,e)}function dw(e){return ag(uD,e)}function dI(e){return aw(uJ,e)}function dS(e){return aS(uV,e)}function dZ(e){return aA(le,e)}$(n8())},29119(e,t,i){i.d(t,{z:()=>n});var n=i(47221)},22654(e,t,i){i.d(t,{G:()=>a,eq:()=>r});var n=i(62741);let r=n.ZS.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"]);class a extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},i={_errors:[]},n=e=>{for(let r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(n);else if("invalid_return_type"===r.code)n(r.returnTypeError);else if("invalid_arguments"===r.code)n(r.argumentsError);else if(0===r.path.length)i._errors.push(t(r));else{let e=i,n=0;for(;n<r.path.length;){let i=r.path[n];n===r.path.length-1?(e[i]=e[i]||{_errors:[]},e[i]._errors.push(t(r))):e[i]=e[i]||{_errors:[]},e=e[i],n++}}};return n(this),i}static assert(e){if(!(e instanceof a))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.ZS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},i=[];for(let n of this.issues)if(n.path.length>0){let i=n.path[0];t[i]=t[i]||[],t[i].push(e(n))}else i.push(e(n));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}a.create=e=>new a(e)},62741(e,t,i){var n,r,a;i.d(t,{CR:()=>o,ZS:()=>n,Zp:()=>s}),(a=n||(n={})).assertEqual=e=>{},a.assertIs=function(e){},a.assertNever=function(e){throw Error()},a.arrayToEnum=e=>{let t={};for(let i of e)t[i]=i;return t},a.getValidEnumValues=e=>{let t=a.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),i={};for(let n of t)i[n]=e[n];return a.objectValues(i)},a.objectValues=e=>a.objectKeys(e).map(function(t){return e[t]}),a.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t},a.find=(e,t)=>{for(let i of e)if(t(i))return i},a.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,a.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},a.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(r||(r={})).mergeShapes=(e,t)=>({...e,...t});let s=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),o=e=>{switch(typeof e){case"undefined":return s.undefined;case"string":return s.string;case"number":return Number.isNaN(e)?s.nan:s.number;case"boolean":return s.boolean;case"function":return s.function;case"bigint":return s.bigint;case"symbol":return s.symbol;case"object":if(Array.isArray(e))return s.array;if(null===e)return s.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return s.promise;if("u">typeof Map&&e instanceof Map)return s.map;if("u">typeof Set&&e instanceof Set)return s.set;if("u">typeof Date&&e instanceof Date)return s.date;return s.object;default:return s.unknown}}},71291(e,t,i){let n;i.d(t,{k5:()=>eU,L5:()=>ew,g1:()=>eO,re:()=>eZ,Ik:()=>eS,YO:()=>eI,Yj:()=>ek,eu:()=>ej,PV:()=>ez});var r,a,s,o,u=i(22654),l=i(62741);let d=(e,t)=>{let i;switch(e.code){case u.eq.invalid_type:i=e.received===l.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case u.eq.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,l.ZS.jsonStringifyReplacer)}`;break;case u.eq.unrecognized_keys:i=`Unrecognized key(s) in object: ${l.ZS.joinValues(e.keys,", ")}`;break;case u.eq.invalid_union:i="Invalid input";break;case u.eq.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${l.ZS.joinValues(e.options)}`;break;case u.eq.invalid_enum_value:i=`Invalid enum value. Expected ${l.ZS.joinValues(e.options)}, received '${e.received}'`;break;case u.eq.invalid_arguments:i="Invalid function arguments";break;case u.eq.invalid_return_type:i="Invalid function return type";break;case u.eq.invalid_date:i="Invalid date";break;case u.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:l.ZS.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case u.eq.too_small:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case u.eq.too_big:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case u.eq.custom:i="Invalid input";break;case u.eq.invalid_intersection_types:i="Intersection results could not be merged";break;case u.eq.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case u.eq.not_finite:i="Number must be finite";break;default:i=t.defaultError,l.ZS.assertNever(e)}return{message:i}};(r=s||(s={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},r.toString=e=>"string"==typeof e?e:e?.message;let c=e=>{let{data:t,path:i,errorMaps:n,issueData:r}=e,a=[...i,...r.path||[]],s={...r,path:a};if(void 0!==r.message)return{...r,path:a,message:r.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...r,path:a,message:o}};function m(e,t){let i=c({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,d,void 0].filter(e=>!!e)});e.common.issues.push(i)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let i=[];for(let n of t){if("aborted"===n.status)return p;"dirty"===n.status&&e.dirty(),i.push(n.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){let i=[];for(let e of t){let t=await e.key,n=await e.value;i.push({key:t,value:n})}return f.mergeObjectSync(e,i)}static mergeObjectSync(e,t){let i={};for(let n of t){let{key:t,value:r}=n;if("aborted"===t.status||"aborted"===r.status)return p;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==r.value||n.alwaysSet)&&(i[t.value]=r.value)}return{status:e.value,value:i}}}let p=Object.freeze({status:"aborted"}),h=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),g=e=>"u">typeof Promise&&e instanceof Promise;class _{constructor(e,t,i,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let y=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new u.G(e.common.issues);return this._error=t,this._error}}};function $(e){if(!e)return{};let{errorMap:t,invalid_type_error:i,required_error:n,description:r}=e;if(t&&(i||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(t,r)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??r.defaultError}:void 0===r.data?{message:a??n??r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:a??i??r.defaultError}},description:r}}class b{get description(){return this._def.description}_getType(e){return(0,l.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,l.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:(0,l.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(g(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){let i={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)},n=this._parseSync({data:e,path:i.path,parent:i});return y(i,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:t});return"valid"===i.status?{value:i.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){let i={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)},n=this._parse({data:e,path:i.path,parent:i});return y(i,await (g(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((i,n)=>{let r=e(i),a=()=>n.addIssue({code:u.eq.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(i):t});return"u">typeof Promise&&r instanceof Promise?r.then(e=>!!e||(a(),!1)):!!r||(a(),!1)})}refinement(e,t){return this._refinement((i,n)=>!!e(i)||(n.addIssue("function"==typeof t?t(i,n):t),!1))}_refinement(e){return new ep({schema:this,typeName:o.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:e=>this["~validate"](e)}}optional(){return eh.create(this,this._def)}nullable(){return ev.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Y.create(this)}promise(){return ef.create(this,this._def)}or(e){return Q.create([this,e],this._def)}and(e){return ei.create(this,e,this._def)}transform(e){return new ep({...$(this._def),schema:this,typeName:o.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eg({...$(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:o.ZodDefault})}brand(){return new e$({typeName:o.ZodBranded,type:this,...$(this._def)})}catch(e){return new e_({...$(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:o.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eb.create(this,e)}readonly(){return ex.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let x=/^c[^\s-]{8,}$/i,k=/^[0-9a-z]+$/,w=/^[0-9A-HJKMNP-TV-Z]{26}$/i,I=/^[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,S=/^[a-z0-9_-]{21}$/i,Z=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,z=/^[-+]?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)?)??$/,O=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,j=/^(?:(?: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])$/,U=/^(?:(?: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])$/,N=/^(([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]))$/,T=/^(([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])$/,P=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,D=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,E="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",A=RegExp(`^${E}$`);function C(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let i=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${i}`}class R extends b{_parse(e){var t,i,r,a;let s;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==l.Zp.string){let t=this._getOrReturnCtx(e);return m(t,{code:u.eq.invalid_type,expected:l.Zp.string,received:t.parsedType}),p}let o=new f;for(let d of this._def.checks)if("min"===d.kind)e.data.length<d.value&&(m(s=this._getOrReturnCtx(e,s),{code:u.eq.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),o.dirty());else if("max"===d.kind)e.data.length>d.value&&(m(s=this._getOrReturnCtx(e,s),{code:u.eq.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),o.dirty());else if("length"===d.kind){let t=e.data.length>d.value,i=e.data.length<d.value;(t||i)&&(s=this._getOrReturnCtx(e,s),t?m(s,{code:u.eq.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}):i&&m(s,{code:u.eq.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}),o.dirty())}else if("email"===d.kind)O.test(e.data)||(m(s=this._getOrReturnCtx(e,s),{validation:"email",code:u.eq.invalid_string,message:d.message}),o.dirty());else if("emoji"===d.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(m(s=this._getOrReturnCtx(e,s),{validation:"emoji",code:u.eq.invalid_string,message:d.message}),o.dirty());else if("uuid"===d.kind)I.test(e.data)||(m(s=this._getOrReturnCtx(e,s),{validation:"uuid",code:u.eq.invalid_string,message:d.message}),o.dirty());else if("nanoid"===d.kind)S.test(e.data)||(m(s=this._getOrReturnCtx(e,s),{validation:"nanoid",code:u.eq.invalid_string,message:d.message}),o.dirty());else if("cuid"===d.kind)x.test(e.data)||(m(s=this._getOrReturnCtx(e,s),{validation:"cuid",code:u.eq.invalid_string,message:d.message}),o.dirty());else if("cuid2"===d.kind)k.test(e.data)||(m(s=this._getOrReturnCtx(e,s),{validation:"cuid2",code:u.eq.invalid_string,message:d.message}),o.dirty());else if("ulid"===d.kind)w.test(e.data)||(m(s=this._getOrReturnCtx(e,s),{validation:"ulid",code:u.eq.invalid_string,message:d.message}),o.dirty());else if("url"===d.kind)try{new URL(e.data)}catch{m(s=this._getOrReturnCtx(e,s),{validation:"url",code:u.eq.invalid_string,message:d.message}),o.dirty()}else"regex"===d.kind?(d.regex.lastIndex=0,d.regex.test(e.data)||(m(s=this._getOrReturnCtx(e,s),{validation:"regex",code:u.eq.invalid_string,message:d.message}),o.dirty())):"trim"===d.kind?e.data=e.data.trim():"includes"===d.kind?e.data.includes(d.value,d.position)||(m(s=this._getOrReturnCtx(e,s),{code:u.eq.invalid_string,validation:{includes:d.value,position:d.position},message:d.message}),o.dirty()):"toLowerCase"===d.kind?e.data=e.data.toLowerCase():"toUpperCase"===d.kind?e.data=e.data.toUpperCase():"startsWith"===d.kind?e.data.startsWith(d.value)||(m(s=this._getOrReturnCtx(e,s),{code:u.eq.invalid_string,validation:{startsWith:d.value},message:d.message}),o.dirty()):"endsWith"===d.kind?e.data.endsWith(d.value)||(m(s=this._getOrReturnCtx(e,s),{code:u.eq.invalid_string,validation:{endsWith:d.value},message:d.message}),o.dirty()):"datetime"===d.kind?(function(e){let t=`${E}T${C(e)}`,i=[];return i.push(e.local?"Z?":"Z"),e.offset&&i.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${i.join("|")})`,RegExp(`^${t}$`)})(d).test(e.data)||(m(s=this._getOrReturnCtx(e,s),{code:u.eq.invalid_string,validation:"datetime",message:d.message}),o.dirty()):"date"===d.kind?A.test(e.data)||(m(s=this._getOrReturnCtx(e,s),{code:u.eq.invalid_string,validation:"date",message:d.message}),o.dirty()):"time"===d.kind?RegExp(`^${C(d)}$`).test(e.data)||(m(s=this._getOrReturnCtx(e,s),{code:u.eq.invalid_string,validation:"time",message:d.message}),o.dirty()):"duration"===d.kind?z.test(e.data)||(m(s=this._getOrReturnCtx(e,s),{validation:"duration",code:u.eq.invalid_string,message:d.message}),o.dirty()):"ip"===d.kind?(t=e.data,!(("v4"===(i=d.version)||!i)&&j.test(t)||("v6"===i||!i)&&N.test(t))&&1&&(m(s=this._getOrReturnCtx(e,s),{validation:"ip",code:u.eq.invalid_string,message:d.message}),o.dirty())):"jwt"===d.kind?!function(e,t){if(!Z.test(e))return!1;try{let[i]=e.split(".");if(!i)return!1;let n=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),r=JSON.parse(atob(n));if("object"!=typeof r||null===r||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)return!1;return!0}catch{return!1}}(e.data,d.alg)&&(m(s=this._getOrReturnCtx(e,s),{validation:"jwt",code:u.eq.invalid_string,message:d.message}),o.dirty()):"cidr"===d.kind?(r=e.data,!(("v4"===(a=d.version)||!a)&&U.test(r)||("v6"===a||!a)&&T.test(r))&&1&&(m(s=this._getOrReturnCtx(e,s),{validation:"cidr",code:u.eq.invalid_string,message:d.message}),o.dirty())):"base64"===d.kind?P.test(e.data)||(m(s=this._getOrReturnCtx(e,s),{validation:"base64",code:u.eq.invalid_string,message:d.message}),o.dirty()):"base64url"===d.kind?D.test(e.data)||(m(s=this._getOrReturnCtx(e,s),{validation:"base64url",code:u.eq.invalid_string,message:d.message}),o.dirty()):l.ZS.assertNever(d);return{status:o.value,value:e.data}}_regex(e,t,i){return this.refinement(t=>e.test(t),{validation:t,code:u.eq.invalid_string,...s.errToObj(i)})}_addCheck(e){return new R({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...s.errToObj(e)})}url(e){return this._addCheck({kind:"url",...s.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...s.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...s.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...s.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...s.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...s.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...s.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...s.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...s.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...s.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...s.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...s.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...s.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...s.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...s.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...s.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...s.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...s.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...s.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...s.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...s.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...s.errToObj(t)})}nonempty(e){return this.min(1,s.errToObj(e))}trim(){return new R({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new R({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new R({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}R.create=e=>new R({checks:[],typeName:o.ZodString,coerce:e?.coerce??!1,...$(e)});class L extends b{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==l.Zp.number){let t=this._getOrReturnCtx(e);return m(t,{code:u.eq.invalid_type,expected:l.Zp.number,received:t.parsedType}),p}let i=new f;for(let n of this._def.checks)"int"===n.kind?l.ZS.isInteger(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:u.eq.invalid_type,expected:"integer",received:"float",message:n.message}),i.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:u.eq.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:u.eq.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):"multipleOf"===n.kind?0!==function(e,t){let i=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,r=i>n?i:n;return Number.parseInt(e.toFixed(r).replace(".",""))%Number.parseInt(t.toFixed(r).replace(".",""))/10**r}(e.data,n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:u.eq.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:u.eq.not_finite,message:n.message}),i.dirty()):l.ZS.assertNever(n);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,s.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.toString(t))}setLimit(e,t,i,n){return new L({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:s.toString(n)}]})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:s.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:s.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:s.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:s.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:s.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:s.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:s.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:s.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&l.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let i of this._def.checks)if("finite"===i.kind||"int"===i.kind||"multipleOf"===i.kind)return!0;else"min"===i.kind?(null===t||i.value>t)&&(t=i.value):"max"===i.kind&&(null===e||i.value<e)&&(e=i.value);return Number.isFinite(t)&&Number.isFinite(e)}}L.create=e=>new L({checks:[],typeName:o.ZodNumber,coerce:e?.coerce||!1,...$(e)});class F extends b{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==l.Zp.bigint)return this._getInvalidInput(e);let i=new f;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:u.eq.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:u.eq.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(m(t=this._getOrReturnCtx(e,t),{code:u.eq.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):l.ZS.assertNever(n);return{status:i.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return m(t,{code:u.eq.invalid_type,expected:l.Zp.bigint,received:t.parsedType}),p}gte(e,t){return this.setLimit("min",e,!0,s.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.toString(t))}setLimit(e,t,i,n){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:s.toString(n)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:s.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:s.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:s.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:s.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}F.create=e=>new F({checks:[],typeName:o.ZodBigInt,coerce:e?.coerce??!1,...$(e)});class M extends b{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==l.Zp.boolean){let t=this._getOrReturnCtx(e);return m(t,{code:u.eq.invalid_type,expected:l.Zp.boolean,received:t.parsedType}),p}return v(e.data)}}M.create=e=>new M({typeName:o.ZodBoolean,coerce:e?.coerce||!1,...$(e)});class J extends b{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==l.Zp.date){let t=this._getOrReturnCtx(e);return m(t,{code:u.eq.invalid_type,expected:l.Zp.date,received:t.parsedType}),p}if(Number.isNaN(e.data.getTime()))return m(this._getOrReturnCtx(e),{code:u.eq.invalid_date}),p;let i=new f;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(m(t=this._getOrReturnCtx(e,t),{code:u.eq.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),i.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(m(t=this._getOrReturnCtx(e,t),{code:u.eq.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),i.dirty()):l.ZS.assertNever(n);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:s.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:s.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}J.create=e=>new J({checks:[],coerce:e?.coerce||!1,typeName:o.ZodDate,...$(e)});class q extends b{_parse(e){if(this._getType(e)!==l.Zp.symbol){let t=this._getOrReturnCtx(e);return m(t,{code:u.eq.invalid_type,expected:l.Zp.symbol,received:t.parsedType}),p}return v(e.data)}}q.create=e=>new q({typeName:o.ZodSymbol,...$(e)});class V extends b{_parse(e){if(this._getType(e)!==l.Zp.undefined){let t=this._getOrReturnCtx(e);return m(t,{code:u.eq.invalid_type,expected:l.Zp.undefined,received:t.parsedType}),p}return v(e.data)}}V.create=e=>new V({typeName:o.ZodUndefined,...$(e)});class K extends b{_parse(e){if(this._getType(e)!==l.Zp.null){let t=this._getOrReturnCtx(e);return m(t,{code:u.eq.invalid_type,expected:l.Zp.null,received:t.parsedType}),p}return v(e.data)}}K.create=e=>new K({typeName:o.ZodNull,...$(e)});class W extends b{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}W.create=e=>new W({typeName:o.ZodAny,...$(e)});class B extends b{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}B.create=e=>new B({typeName:o.ZodUnknown,...$(e)});class G extends b{_parse(e){let t=this._getOrReturnCtx(e);return m(t,{code:u.eq.invalid_type,expected:l.Zp.never,received:t.parsedType}),p}}G.create=e=>new G({typeName:o.ZodNever,...$(e)});class X extends b{_parse(e){if(this._getType(e)!==l.Zp.undefined){let t=this._getOrReturnCtx(e);return m(t,{code:u.eq.invalid_type,expected:l.Zp.void,received:t.parsedType}),p}return v(e.data)}}X.create=e=>new X({typeName:o.ZodVoid,...$(e)});class Y extends b{_parse(e){let{ctx:t,status:i}=this._processInputParams(e),n=this._def;if(t.parsedType!==l.Zp.array)return m(t,{code:u.eq.invalid_type,expected:l.Zp.array,received:t.parsedType}),p;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,r=t.data.length<n.exactLength.value;(e||r)&&(m(t,{code:e?u.eq.too_big:u.eq.too_small,minimum:r?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(m(t,{code:u.eq.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(m(t,{code:u.eq.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((e,i)=>n.type._parseAsync(new _(t,e,t.path,i)))).then(e=>f.mergeArray(i,e));let r=[...t.data].map((e,i)=>n.type._parseSync(new _(t,e,t.path,i)));return f.mergeArray(i,r)}get element(){return this._def.type}min(e,t){return new Y({...this._def,minLength:{value:e,message:s.toString(t)}})}max(e,t){return new Y({...this._def,maxLength:{value:e,message:s.toString(t)}})}length(e,t){return new Y({...this._def,exactLength:{value:e,message:s.toString(t)}})}nonempty(e){return this.min(1,e)}}Y.create=(e,t)=>new Y({type:e,minLength:null,maxLength:null,exactLength:null,typeName:o.ZodArray,...$(t)});class H extends b{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=l.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==l.Zp.object){let t=this._getOrReturnCtx(e);return m(t,{code:u.eq.invalid_type,expected:l.Zp.object,received:t.parsedType}),p}let{status:t,ctx:i}=this._processInputParams(e),{shape:n,keys:r}=this._getCached(),a=[];if(!(this._def.catchall instanceof G&&"strip"===this._def.unknownKeys))for(let e in i.data)r.includes(e)||a.push(e);let s=[];for(let e of r){let t=n[e],r=i.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new _(i,r,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof G){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)a.length>0&&(m(i,{code:u.eq.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let n=i.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new _(i,n,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let i=await t.key,n=await t.value;e.push({key:i,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>f.mergeObjectSync(t,e)):f.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return s.errToObj,new H({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,i)=>{let n=this._def.errorMap?.(t,i).message??i.defaultError;return"unrecognized_keys"===t.code?{message:s.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new H({...this._def,unknownKeys:"strip"})}passthrough(){return new H({...this._def,unknownKeys:"passthrough"})}extend(e){return new H({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new H({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:o.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new H({...this._def,catchall:e})}pick(e){let t={};for(let i of l.ZS.objectKeys(e))e[i]&&this.shape[i]&&(t[i]=this.shape[i]);return new H({...this._def,shape:()=>t})}omit(e){let t={};for(let i of l.ZS.objectKeys(this.shape))e[i]||(t[i]=this.shape[i]);return new H({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof H){let i={};for(let n in t.shape){let r=t.shape[n];i[n]=eh.create(e(r))}return new H({...t._def,shape:()=>i})}if(t instanceof Y)return new Y({...t._def,type:e(t.element)});if(t instanceof eh)return eh.create(e(t.unwrap()));if(t instanceof ev)return ev.create(e(t.unwrap()));if(t instanceof en)return en.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let i of l.ZS.objectKeys(this.shape)){let n=this.shape[i];e&&!e[i]?t[i]=n:t[i]=n.optional()}return new H({...this._def,shape:()=>t})}required(e){let t={};for(let i of l.ZS.objectKeys(this.shape))if(e&&!e[i])t[i]=this.shape[i];else{let e=this.shape[i];for(;e instanceof eh;)e=e._def.innerType;t[i]=e}return new H({...this._def,shape:()=>t})}keyof(){return ed(l.ZS.objectKeys(this.shape))}}H.create=(e,t)=>new H({shape:()=>e,unknownKeys:"strip",catchall:G.create(),typeName:o.ZodObject,...$(t)}),H.strictCreate=(e,t)=>new H({shape:()=>e,unknownKeys:"strict",catchall:G.create(),typeName:o.ZodObject,...$(t)}),H.lazycreate=(e,t)=>new H({shape:e,unknownKeys:"strip",catchall:G.create(),typeName:o.ZodObject,...$(t)});class Q extends b{_parse(e){let{ctx:t}=this._processInputParams(e),i=this._def.options;if(t.common.async)return Promise.all(i.map(async e=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let i of e)if("dirty"===i.result.status)return t.common.issues.push(...i.ctx.common.issues),i.result;let i=e.map(e=>new u.G(e.ctx.common.issues));return m(t,{code:u.eq.invalid_union,unionErrors:i}),p});{let e,n=[];for(let r of i){let i={...t,common:{...t.common,issues:[]},parent:null},a=r._parseSync({data:t.data,path:t.path,parent:i});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:i}),i.common.issues.length&&n.push(i.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let r=n.map(e=>new u.G(e));return m(t,{code:u.eq.invalid_union,unionErrors:r}),p}}get options(){return this._def.options}}Q.create=(e,t)=>new Q({options:e,typeName:o.ZodUnion,...$(t)});let ee=e=>{if(e instanceof eu)return ee(e.schema);if(e instanceof ep)return ee(e.innerType());if(e instanceof el)return[e.value];if(e instanceof ec)return e.options;if(e instanceof em)return l.ZS.objectValues(e.enum);else if(e instanceof eg)return ee(e._def.innerType);else if(e instanceof V)return[void 0];else if(e instanceof K)return[null];else if(e instanceof eh)return[void 0,...ee(e.unwrap())];else if(e instanceof ev)return[null,...ee(e.unwrap())];else if(e instanceof e$)return ee(e.unwrap());else if(e instanceof ex)return ee(e.unwrap());else if(e instanceof e_)return ee(e._def.innerType);else return[]};class et extends b{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.object)return m(t,{code:u.eq.invalid_type,expected:l.Zp.object,received:t.parsedType}),p;let i=this.discriminator,n=t.data[i],r=this.optionsMap.get(n);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(m(t,{code:u.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),p)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){let n=new Map;for(let i of t){let t=ee(i.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let r of t){if(n.has(r))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);n.set(r,i)}}return new et({typeName:o.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...$(i)})}}class ei extends b{_parse(e){let{status:t,ctx:i}=this._processInputParams(e),n=(e,n)=>{if("aborted"===e.status||"aborted"===n.status)return p;let r=function e(t,i){let n=(0,l.CR)(t),r=(0,l.CR)(i);if(t===i)return{valid:!0,data:t};if(n===l.Zp.object&&r===l.Zp.object){let n=l.ZS.objectKeys(i),r=l.ZS.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...i};for(let n of r){let r=e(t[n],i[n]);if(!r.valid)return{valid:!1};a[n]=r.data}return{valid:!0,data:a}}if(n===l.Zp.array&&r===l.Zp.array){if(t.length!==i.length)return{valid:!1};let n=[];for(let r=0;r<t.length;r++){let a=e(t[r],i[r]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}if(n===l.Zp.date&&r===l.Zp.date&&+t==+i)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return r.valid?(("dirty"===e.status||"dirty"===n.status)&&t.dirty(),{status:t.value,value:r.data}):(m(i,{code:u.eq.invalid_intersection_types}),p)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}ei.create=(e,t,i)=>new ei({left:e,right:t,typeName:o.ZodIntersection,...$(i)});class en extends b{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==l.Zp.array)return m(i,{code:u.eq.invalid_type,expected:l.Zp.array,received:i.parsedType}),p;if(i.data.length<this._def.items.length)return m(i,{code:u.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),p;!this._def.rest&&i.data.length>this._def.items.length&&(m(i,{code:u.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...i.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new _(i,e,i.path,t)):null}).filter(e=>!!e);return i.common.async?Promise.all(n).then(e=>f.mergeArray(t,e)):f.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new en({...this._def,rest:e})}}en.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new en({items:e,typeName:o.ZodTuple,rest:null,...$(t)})};class er extends b{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==l.Zp.object)return m(i,{code:u.eq.invalid_type,expected:l.Zp.object,received:i.parsedType}),p;let n=[],r=this._def.keyType,a=this._def.valueType;for(let e in i.data)n.push({key:r._parse(new _(i,e,i.path,e)),value:a._parse(new _(i,i.data[e],i.path,e)),alwaysSet:e in i.data});return i.common.async?f.mergeObjectAsync(t,n):f.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,i){return new er(t instanceof b?{keyType:e,valueType:t,typeName:o.ZodRecord,...$(i)}:{keyType:R.create(),valueType:e,typeName:o.ZodRecord,...$(t)})}}class ea extends b{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==l.Zp.map)return m(i,{code:u.eq.invalid_type,expected:l.Zp.map,received:i.parsedType}),p;let n=this._def.keyType,r=this._def.valueType,a=[...i.data.entries()].map(([e,t],a)=>({key:n._parse(new _(i,e,i.path,[a,"key"])),value:r._parse(new _(i,t,i.path,[a,"value"]))}));if(i.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let i of a){let n=await i.key,r=await i.value;if("aborted"===n.status||"aborted"===r.status)return p;("dirty"===n.status||"dirty"===r.status)&&t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}})}{let e=new Map;for(let i of a){let n=i.key,r=i.value;if("aborted"===n.status||"aborted"===r.status)return p;("dirty"===n.status||"dirty"===r.status)&&t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}}}}ea.create=(e,t,i)=>new ea({valueType:t,keyType:e,typeName:o.ZodMap,...$(i)});class es extends b{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==l.Zp.set)return m(i,{code:u.eq.invalid_type,expected:l.Zp.set,received:i.parsedType}),p;let n=this._def;null!==n.minSize&&i.data.size<n.minSize.value&&(m(i,{code:u.eq.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&i.data.size>n.maxSize.value&&(m(i,{code:u.eq.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let r=this._def.valueType;function a(e){let i=new Set;for(let n of e){if("aborted"===n.status)return p;"dirty"===n.status&&t.dirty(),i.add(n.value)}return{status:t.value,value:i}}let s=[...i.data.values()].map((e,t)=>r._parse(new _(i,e,i.path,t)));return i.common.async?Promise.all(s).then(e=>a(e)):a(s)}min(e,t){return new es({...this._def,minSize:{value:e,message:s.toString(t)}})}max(e,t){return new es({...this._def,maxSize:{value:e,message:s.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}es.create=(e,t)=>new es({valueType:e,minSize:null,maxSize:null,typeName:o.ZodSet,...$(t)});class eo extends b{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.function)return m(t,{code:u.eq.invalid_type,expected:l.Zp.function,received:t.parsedType}),p;function i(e,i){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d,d].filter(e=>!!e),issueData:{code:u.eq.invalid_arguments,argumentsError:i}})}function n(e,i){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d,d].filter(e=>!!e),issueData:{code:u.eq.invalid_return_type,returnTypeError:i}})}let r={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof ef){let e=this;return v(async function(...t){let s=new u.G([]),o=await e._def.args.parseAsync(t,r).catch(e=>{throw s.addIssue(i(t,e)),s}),l=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(l,r).catch(e=>{throw s.addIssue(n(l,e)),s})})}{let e=this;return v(function(...t){let s=e._def.args.safeParse(t,r);if(!s.success)throw new u.G([i(t,s.error)]);let o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,r);if(!l.success)throw new u.G([n(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eo({...this._def,args:en.create(e).rest(B.create())})}returns(e){return new eo({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new eo({args:e||en.create([]).rest(B.create()),returns:t||B.create(),typeName:o.ZodFunction,...$(i)})}}class eu extends b{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eu.create=(e,t)=>new eu({getter:e,typeName:o.ZodLazy,...$(t)});class el extends b{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return m(t,{received:t.data,code:u.eq.invalid_literal,expected:this._def.value}),p}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ed(e,t){return new ec({values:e,typeName:o.ZodEnum,...$(t)})}el.create=(e,t)=>new el({value:e,typeName:o.ZodLiteral,...$(t)});class ec extends b{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),i=this._def.values;return m(t,{expected:l.ZS.joinValues(i),received:t.parsedType,code:u.eq.invalid_type}),p}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),i=this._def.values;return m(t,{received:t.data,code:u.eq.invalid_enum_value,options:i}),p}return v(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ec.create(e,{...this._def,...t})}exclude(e,t=this._def){return ec.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ec.create=ed;class em extends b{_parse(e){let t=l.ZS.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==l.Zp.string&&i.parsedType!==l.Zp.number){let e=l.ZS.objectValues(t);return m(i,{expected:l.ZS.joinValues(e),received:i.parsedType,code:u.eq.invalid_type}),p}if(this._cache||(this._cache=new Set(l.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=l.ZS.objectValues(t);return m(i,{received:i.data,code:u.eq.invalid_enum_value,options:e}),p}return v(e.data)}get enum(){return this._def.values}}em.create=(e,t)=>new em({values:e,typeName:o.ZodNativeEnum,...$(t)});class ef extends b{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==l.Zp.promise&&!1===t.common.async?(m(t,{code:u.eq.invalid_type,expected:l.Zp.promise,received:t.parsedType}),p):v((t.parsedType===l.Zp.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ef.create=(e,t)=>new ef({type:e,typeName:o.ZodPromise,...$(t)});class ep extends b{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===o.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:i}=this._processInputParams(e),n=this._def.effect||null,r={addIssue:e=>{m(i,e),e.fatal?t.abort():t.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===n.type){let e=n.transform(i.data,r);if(i.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return p;let n=await this._def.schema._parseAsync({data:e,path:i.path,parent:i});return"aborted"===n.status?p:"dirty"===n.status||"dirty"===t.value?h(n.value):n});{if("aborted"===t.value)return p;let n=this._def.schema._parseSync({data:e,path:i.path,parent:i});return"aborted"===n.status?p:"dirty"===n.status||"dirty"===t.value?h(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,r);if(i.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(i=>"aborted"===i.status?p:("dirty"===i.status&&t.dirty(),e(i.value).then(()=>({status:t.value,value:i.value}))));{let n=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===n.status?p:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(e=>"valid"!==e.status?p:Promise.resolve(n.transform(e.value,r)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if("valid"!==e.status)return p;let a=n.transform(e.value,r);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}l.ZS.assertNever(n)}}ep.create=(e,t,i)=>new ep({schema:e,typeName:o.ZodEffects,effect:t,...$(i)}),ep.createWithPreprocess=(e,t,i)=>new ep({schema:t,effect:{type:"preprocess",transform:e},typeName:o.ZodEffects,...$(i)});class eh extends b{_parse(e){return this._getType(e)===l.Zp.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eh.create=(e,t)=>new eh({innerType:e,typeName:o.ZodOptional,...$(t)});class ev extends b{_parse(e){return this._getType(e)===l.Zp.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:o.ZodNullable,...$(t)});class eg extends b{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return t.parsedType===l.Zp.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:o.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...$(t)});class e_ extends b{_parse(e){let{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return g(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new u.G(i.common.issues)},input:i.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new u.G(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:o.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...$(t)});class ey extends b{_parse(e){if(this._getType(e)!==l.Zp.nan){let t=this._getOrReturnCtx(e);return m(t,{code:u.eq.invalid_type,expected:l.Zp.nan,received:t.parsedType}),p}return{status:"valid",value:e.data}}}ey.create=e=>new ey({typeName:o.ZodNaN,...$(e)}),Symbol("zod_brand");class e$ extends b{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class eb extends b{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),h(e.value)):this._def.out._parseAsync({data:e.value,path:i.path,parent:i})})();{let e=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:i.path,parent:i})}}static create(e,t){return new eb({in:e,out:t,typeName:o.ZodPipeline})}}class ex extends b{_parse(e){let t=this._def.innerType._parse(e),i=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return g(t)?t.then(e=>i(e)):i(t)}unwrap(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:o.ZodReadonly,...$(t)}),H.lazycreate,(a=o||(o={})).ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly";let ek=R.create;L.create,ey.create,F.create,M.create,J.create,q.create,V.create,K.create,W.create;let ew=B.create;G.create,X.create;let eI=Y.create,eS=H.create,eZ=H.strictCreate;Q.create,et.create,ei.create;let ez=en.create,eO=er.create;ea.create,es.create,eo.create,eu.create;let ej=el.create,eU=ec.create;em.create,ef.create,ep.create,eh.create,ev.create,ep.createWithPreprocess,eb.create}}]);
38
+ //# sourceMappingURL=module-zod.b3376822.js.map