Comparing version 0.33.1 to 0.33.2
@@ -1,1 +0,1 @@ | ||
var P=/^[A-Z]{6}(?!00)[A-Z\d]{2}(?:[A-Z\d]{3})?$/u,q=/^[a-z][\da-z]*$/u,D=/^\d+$/u,N=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu,W=/^[\p{Extended_Pictographic}\p{Emoji_Component}]+$/u,V=/^(?:0h|0x)?[\da-f]+$/iu,C=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/iu,L=/^\d{15}$|^\d{2}-\d{6}-\d{6}-\d$/u,K=/^(?:(?:[1-9]|1\d|2[0-4])?\d|25[0-5])(?:\.(?:(?:[1-9]|1\d|2[0-4])?\d|25[0-5])){3}$/u,$=/^(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:|(?:[\da-f]{1,4}:){1,6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,5}(?::[\da-f]{1,4}){1,2}|(?:[\da-f]{1,4}:){1,4}(?::[\da-f]{1,4}){1,3}|(?:[\da-f]{1,4}:){1,3}(?::[\da-f]{1,4}){1,4}|(?:[\da-f]{1,4}:){1,2}(?::[\da-f]{1,4}){1,5}|[\da-f]{1,4}:(?::[\da-f]{1,4}){1,6}|:(?:(?::[\da-f]{1,4}){1,7}|:)|fe80:(?::[\da-f]{0,4}){0,4}%[\da-z]+|::(?:f{4}(?::0{1,4})?:)?(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d)|(?:[\da-f]{1,4}:){1,4}:(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d))$/iu,z=/^(?:(?:[1-9]|1\d|2[0-4])?\d|25[0-5])(?:\.(?:(?:[1-9]|1\d|2[0-4])?\d|25[0-5])){3}$|^(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:|(?:[\da-f]{1,4}:){1,6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,5}(?::[\da-f]{1,4}){1,2}|(?:[\da-f]{1,4}:){1,4}(?::[\da-f]{1,4}){1,3}|(?:[\da-f]{1,4}:){1,3}(?::[\da-f]{1,4}){1,4}|(?:[\da-f]{1,4}:){1,2}(?::[\da-f]{1,4}){1,5}|[\da-f]{1,4}:(?::[\da-f]{1,4}){1,6}|:(?:(?::[\da-f]{1,4}){1,7}|:)|fe80:(?::[\da-f]{0,4}){0,4}%[\da-z]+|::(?:f{4}(?::0{1,4})?:)?(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d)|(?:[\da-f]{1,4}:){1,4}:(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d))$/iu,U=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u,F=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])T(?:0\d|1\d|2[0-3]):[0-5]\d$/u,G=/^(?:0\d|1\d|2[0-3]):[0-5]\d$/u,X=/^(?:0\d|1\d|2[0-3])(?::[0-5]\d){2}$/u,H=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])T(?:0\d|1\d|2[0-3])(?::[0-5]\d){2}(?:\.\d{1,9})?(?:Z|[+-](?:0\d|1\d|2[0-3])(?::?[0-5]\d)?)$/u,J=/^\d{4}-W(?:0[1-9]|[1-4]\d|5[0-3])$/u,Z=/^(?:[\da-f]{2}:){5}[\da-f]{2}$|^(?:[\da-f]{2}-){5}[\da-f]{2}$|^(?:[\da-f]{4}\.){2}[\da-f]{4}$/iu,Q=/^(?:[\da-f]{2}:){7}[\da-f]{2}$|^(?:[\da-f]{2}-){7}[\da-f]{2}$|^(?:[\da-f]{4}\.){3}[\da-f]{4}$|^(?:[\da-f]{4}:){3}[\da-f]{4}$/iu,Y=/^(?:[\da-f]{2}:){5}[\da-f]{2}$|^(?:[\da-f]{2}-){5}[\da-f]{2}$|^(?:[\da-f]{4}\.){2}[\da-f]{4}$|^(?:[\da-f]{2}:){7}[\da-f]{2}$|^(?:[\da-f]{2}-){7}[\da-f]{2}$|^(?:[\da-f]{4}\.){3}[\da-f]{4}$|^(?:[\da-f]{4}:){3}[\da-f]{4}$/iu,ee=/^(?:0o)?[0-7]+$/iu,ne=/^[\da-hjkmnp-tv-z]{26}$/iu,se=/^[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}$/iu;var k;function et(s){k={...k,...s}}function l(s){return{lang:s?.lang??k?.lang,message:s?.message,abortEarly:s?.abortEarly??k?.abortEarly,abortPipeEarly:s?.abortPipeEarly??k?.abortPipeEarly}}function nt(){k=void 0}var O;function tt(s,n){O||(O=new Map),O.set(n,s)}function te(s){return O?.get(s)}function rt(s){O?.delete(s)}var B;function at(s,n){B||(B=new Map),B.set(n,s)}function re(s){return B?.get(s)}function ot(s){B?.delete(s)}var g;function pt(s,n,e){g||(g=new Map),g.get(s)||g.set(s,new Map),g.get(s).set(e,n)}function ue(s,n){return g?.get(s)?.get(n)}function ct(s,n){g?.get(s)?.delete(n)}function f(s){let n=typeof s;return n==="object"&&(n=(s&&Object.getPrototypeOf(s)?.constructor?.name)??"null"),n==="string"?`"${s}"`:n==="number"||n==="bigint"||n==="boolean"?`${s}`:n}function r(s,n,e,t,u){let o=u&&"input"in u?u.input:e.value,i=u?.expected??s.expects??null,p=u?.received??f(o),a={kind:s.kind,type:s.type,input:o,expected:i,received:p,message:`Invalid ${n}: ${i?`Expected ${i} but r`:"R"}eceived ${p}`,requirement:s.requirement,path:u?.path,issues:u?.issues,lang:t.lang,abortEarly:t.abortEarly,abortPipeEarly:t.abortPipeEarly},c=s.kind==="schema",I=u?.message??s.message??ue(s.reference,a.lang)??(c?re(a.lang):null)??t.message??te(a.lang);I&&(a.message=typeof I=="function"?I(a):I),c&&(e.typed=!1),e.issues?e.issues.push(a):e.issues=[a]}var ye=/\D/gu;function E(s){let n=s.replace(ye,""),e=n.length,t=1,u=0;for(;e;){let o=+n[--e];t^=1,u+=t?[0,2,4,6,8,1,3,5,7,9][o]:o}return u%10===0}function T(s,n){return Object.hasOwn(s,n)&&n!=="__proto__"&&n!=="prototype"&&n!=="constructor"}function ht(s,n){let e={};for(let t of s)e[t]=n;return e}function ae(s){if(s.path){let n="";for(let e of s.path)if("key"in e&&(typeof e.key=="string"||typeof e.key=="number"))n?n+=`.${e.key}`:n+=e.key;else return null;return n}return null}function kt(s,n){return n.kind===s}function wt(s,n){return n.type===s}function bt(s){return s instanceof h}var h=class extends Error{issues;constructor(n){super(n[0].message),this.name="ValiError",this.issues=n}};function Te(s){return{kind:"validation",type:"bic",reference:Te,async:!1,expects:null,requirement:P,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"BIC",n,e),n}}}function le(s,n){return{kind:"validation",type:"bytes",reference:le,async:!1,expects:`${s}`,requirement:s,message:n,_run(e,t){if(e.typed){let u=new TextEncoder().encode(e.value).length;u!==this.requirement&&r(this,"bytes",e,t,{received:`${u}`})}return e}}}function he(s){return{kind:"transformation",type:"brand",reference:he,async:!1,name:s,_run(n){return n}}}function xe(s,n){return{kind:"validation",type:"check",reference:xe,async:!1,expects:null,requirement:s,message:n,_run(e,t){return e.typed&&!this.requirement(e.value)&&r(this,"input",e,t),e}}}function ge(s,n){return{kind:"validation",type:"check",reference:ge,async:!0,expects:null,requirement:s,message:n,async _run(e,t){return e.typed&&!await this.requirement(e.value)&&r(this,"input",e,t),e}}}function ke(s,n){return{kind:"validation",type:"check_items",reference:ke,async:!1,expects:null,requirement:s,message:n,_run(e,t){if(e.typed)for(let u=0;u<e.value.length;u++){let o=e.value[u];this.requirement(o,u,e.value)||r(this,"item",e,t,{input:o,path:[{type:"array",origin:"value",input:e.value,key:u,value:o}]})}return e}}}var Se=/^(?:\d{14,19}|\d{4}(?: \d{3,6}){2,4}|\d{4}(?:-\d{3,6}){2,4})$/u,we=/[- ]/gu,Oe=[/^3[47]\d{13}$/u,/^3(?:0[0-5]|[68]\d)\d{11,13}$/u,/^6(?:011|5\d{2})\d{12,15}$/u,/^(?:2131|1800|35\d{3})\d{11}$/u,/^5[1-5]\d{2}|(?:222\d|22[3-9]\d|2[3-6]\d{2}|27[01]\d|2720)\d{12}$/u,/^(?:6[27]\d{14,17}|81\d{14,17})$/u,/^4\d{12}(?:\d{3,6})?$/u];function Be(s){return{kind:"validation",type:"credit_card",reference:Be,async:!1,expects:null,requirement(n){let e;return Se.test(n)&&(e=n.replace(we,""))&&Oe.some(t=>t.test(e))&&E(e)},message:s,_run(n,e){return n.typed&&!this.requirement(n.value)&&r(this,"credit card",n,e),n}}}function be(s){return{kind:"validation",type:"cuid2",reference:be,async:!1,expects:null,requirement:q,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"Cuid2",n,e),n}}}function Ee(s){return{kind:"validation",type:"decimal",reference:Ee,async:!1,expects:null,requirement:D,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"decimal",n,e),n}}}function Me(s){return{kind:"validation",type:"email",reference:Me,expects:null,async:!1,requirement:N,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"email",n,e),n}}}function Ae(s){return{kind:"validation",type:"emoji",reference:Ae,async:!1,expects:null,requirement:W,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"emoji",n,e),n}}}function je(s){return{kind:"validation",type:"empty",reference:je,async:!1,expects:"0",message:s,_run(n,e){return n.typed&&n.value.length>0&&r(this,"length",n,e,{received:`${n.value.length}`}),n}}}function ve(s,n){return{kind:"validation",type:"ends_with",reference:ve,async:!1,expects:`"${s}"`,requirement:s,message:n,_run(e,t){return e.typed&&!e.value.endsWith(this.requirement)&&r(this,"end",e,t,{received:`"${e.value.slice(-this.requirement.length)}"`}),e}}}function Re(s,n){return{kind:"validation",type:"every_item",reference:Re,async:!1,expects:null,requirement:s,message:n,_run(e,t){return e.typed&&!e.value.every(this.requirement)&&r(this,"item",e,t),e}}}function _e(s,n){let e=f(s);return{kind:"validation",type:"excludes",reference:_e,async:!1,expects:`!${e}`,requirement:s,message:n,_run(t,u){return t.typed&&t.value.includes(this.requirement)&&r(this,"content",t,u,{received:e}),t}}}function Pe(s){return{kind:"transformation",type:"filter_items",reference:Pe,async:!1,_run(n){return n.value=n.value.filter(s),n}}}function qe(s){return{kind:"transformation",type:"find_item",reference:qe,async:!1,_run(n){return n.value=n.value.find(s),n}}}function De(s){return{kind:"validation",type:"finite",reference:De,async:!1,expects:null,requirement:Number.isFinite,message:s,_run(n,e){return n.typed&&!this.requirement(n.value)&&r(this,"finite",n,e),n}}}var Ne={md4:32,md5:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8,adler32:8};function We(s,n){return{kind:"validation",type:"hash",reference:We,expects:null,async:!1,requirement:RegExp(s.map(e=>`^[a-f0-9]{${Ne[e]}}$`).join("|"),"iu"),message:n,_run(e,t){return e.typed&&!this.requirement.test(e.value)&&r(this,"hash",e,t),e}}}function Ve(s){return{kind:"validation",type:"hexadecimal",reference:Ve,async:!1,expects:null,requirement:V,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"hexadecimal",n,e),n}}}function Ce(s){return{kind:"validation",type:"hex_color",reference:Ce,async:!1,expects:null,requirement:C,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"hex color",n,e),n}}}function Le(s){return{kind:"validation",type:"imei",reference:Le,async:!1,expects:null,requirement(n){return L.test(n)&&E(n)},message:s,_run(n,e){return n.typed&&!this.requirement(n.value)&&r(this,"IMEI",n,e),n}}}function Ke(s,n){let e=f(s);return{kind:"validation",type:"includes",reference:Ke,async:!1,expects:e,requirement:s,message:n,_run(t,u){return t.typed&&!t.value.includes(this.requirement)&&r(this,"content",t,u,{received:`!${e}`}),t}}}function $e(s){return{kind:"validation",type:"integer",reference:$e,async:!1,expects:null,requirement:Number.isInteger,message:s,_run(n,e){return n.typed&&!this.requirement(n.value)&&r(this,"integer",n,e),n}}}function ze(s){return{kind:"validation",type:"ip",reference:ze,async:!1,expects:null,requirement:z,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"IP",n,e),n}}}function Ue(s){return{kind:"validation",type:"ipv4",reference:Ue,async:!1,expects:null,requirement:K,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"IPv4",n,e),n}}}function Fe(s){return{kind:"validation",type:"ipv6",reference:Fe,async:!1,expects:null,requirement:$,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"IPv6",n,e),n}}}function Ge(s){return{kind:"validation",type:"iso_date",reference:Ge,async:!1,expects:null,requirement:U,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"date",n,e),n}}}function Xe(s){return{kind:"validation",type:"iso_date_time",reference:Xe,async:!1,expects:null,requirement:F,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"date-time",n,e),n}}}function He(s){return{kind:"validation",type:"iso_time",reference:He,async:!1,expects:null,requirement:G,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"time",n,e),n}}}function Je(s){return{kind:"validation",type:"iso_time_second",reference:Je,async:!1,expects:null,requirement:X,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"time-second",n,e),n}}}function Ze(s){return{kind:"validation",type:"iso_timestamp",reference:Ze,async:!1,expects:null,requirement:H,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"timestamp",n,e),n}}}function Qe(s){return{kind:"validation",type:"iso_week",reference:Qe,async:!1,expects:null,requirement:J,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"week",n,e),n}}}function Ye(s,n){return{kind:"validation",type:"length",reference:Ye,async:!1,expects:`${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.length!==this.requirement&&r(this,"length",e,t,{received:`${e.value.length}`}),e}}}function en(s){return{kind:"validation",type:"mac",reference:en,async:!1,expects:null,requirement:Y,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"MAC",n,e),n}}}function nn(s){return{kind:"validation",type:"mac48",reference:nn,async:!1,expects:null,requirement:Z,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"48-bit MAC",n,e),n}}}function sn(s){return{kind:"validation",type:"mac64",reference:sn,async:!1,expects:null,requirement:Q,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"64-bit MAC",n,e),n}}}function tn(s){return{kind:"transformation",type:"map_items",reference:tn,async:!1,_run(n){return n.value=n.value.map(s),n}}}function rn(s,n){return{kind:"validation",type:"max_bytes",reference:rn,async:!1,expects:`<=${s}`,requirement:s,message:n,_run(e,t){if(e.typed){let u=new TextEncoder().encode(e.value).length;u>this.requirement&&r(this,"bytes",e,t,{received:`${u}`})}return e}}}function un(s,n){return{kind:"validation",type:"max_length",reference:un,async:!1,expects:`<=${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.length>this.requirement&&r(this,"length",e,t,{received:`${e.value.length}`}),e}}}function an(s,n){return{kind:"validation",type:"max_size",reference:an,async:!1,expects:`<=${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.size>this.requirement&&r(this,"size",e,t,{received:`${e.value.size}`}),e}}}function on(s,n){return{kind:"validation",type:"max_value",reference:on,async:!1,expects:`<=${s instanceof Date?s.toJSON():f(s)}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value>this.requirement&&r(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():f(e.value)}),e}}}function pn(s,n){return{kind:"validation",type:"mime_type",reference:pn,async:!1,expects:s.map(e=>`"${e}"`).join(" | ")||"never",requirement:s,message:n,_run(e,t){return e.typed&&!this.requirement.includes(e.value.type)&&r(this,"MIME type",e,t,{received:`"${e.value.type}"`}),e}}}function cn(s,n){return{kind:"validation",type:"min_bytes",reference:cn,async:!1,expects:`>=${s}`,requirement:s,message:n,_run(e,t){if(e.typed){let u=new TextEncoder().encode(e.value).length;u<this.requirement&&r(this,"bytes",e,t,{received:`${u}`})}return e}}}function In(s,n){return{kind:"validation",type:"min_length",reference:In,async:!1,expects:`>=${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.length<this.requirement&&r(this,"length",e,t,{received:`${e.value.length}`}),e}}}function mn(s,n){return{kind:"validation",type:"min_size",reference:mn,async:!1,expects:`>=${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.size<this.requirement&&r(this,"size",e,t,{received:`${e.value.size}`}),e}}}function dn(s,n){return{kind:"validation",type:"min_value",reference:dn,async:!1,expects:`>=${s instanceof Date?s.toJSON():f(s)}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value<this.requirement&&r(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():f(e.value)}),e}}}function fn(s,n){return{kind:"validation",type:"multiple_of",reference:fn,async:!1,expects:`%${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value%this.requirement!==0&&r(this,"multiple",e,t),e}}}function yn(s){return{kind:"validation",type:"non_empty",reference:yn,async:!1,expects:"!0",message:s,_run(n,e){return n.typed&&n.value.length===0&&r(this,"length",n,e,{received:"0"}),n}}}function Tn(s,n){return{kind:"validation",type:"not_bytes",reference:Tn,async:!1,expects:`!${s}`,requirement:s,message:n,_run(e,t){if(e.typed){let u=new TextEncoder().encode(e.value).length;u===this.requirement&&r(this,"bytes",e,t,{received:`${u}`})}return e}}}function ln(s,n){return{kind:"validation",type:"not_length",reference:ln,async:!1,expects:`!${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.length===this.requirement&&r(this,"length",e,t,{received:`${e.value.length}`}),e}}}function hn(s,n){return{kind:"validation",type:"not_size",reference:hn,async:!1,expects:`!${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.size===this.requirement&&r(this,"size",e,t,{received:`${e.value.size}`}),e}}}function xn(s,n){return{kind:"validation",type:"not_value",reference:xn,async:!1,expects:s instanceof Date?`!${s.toJSON()}`:`!${f(s)}`,requirement:s,message:n,_run(e,t){return e.typed&&this.requirement<=e.value&&this.requirement>=e.value&&r(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():f(e.value)}),e}}}function gn(s){return{kind:"validation",type:"octal",reference:gn,async:!1,expects:null,requirement:ee,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"octal",n,e),n}}}function M(s,n){if(s.issues){for(let e of n)for(let t of s.issues)if(t.kind==="schema"){let u=!1,o=Math.min(e.length,t.path?.length??0);for(let i=0;i<o;i++)if(e[i]!==t.path[i].key){u=!0;break}if(!u)return!1}}return!0}function kn(s,n,e){return{kind:"validation",type:"partial_check",reference:kn,async:!1,expects:null,requirement:n,message:e,_run(t,u){return M(t,s)&&!this.requirement(t.value)&&r(this,"input",t,u),t}}}function Sn(s,n,e){return{kind:"validation",type:"partial_check",reference:Sn,async:!0,expects:null,requirement:n,message:e,async _run(t,u){return M(t,s)&&!await this.requirement(t.value)&&r(this,"input",t,u),t}}}function wn(s){return{kind:"validation",type:"raw_check",reference:wn,async:!1,expects:null,_run(n,e){return s({dataset:n,config:e,addIssue:t=>r(this,t?.label??"input",n,e,t)}),n}}}function On(s){return{kind:"validation",type:"raw_check",reference:On,async:!0,expects:null,async _run(n,e){return await s({dataset:n,config:e,addIssue:t=>r(this,t?.label??"input",n,e,t)}),n}}}function Bn(s){return{kind:"transformation",type:"raw_transform",reference:Bn,async:!1,_run(n,e){let t=s({dataset:n,config:e,addIssue:u=>r(this,u?.label??"input",n,e,u),NEVER:null});return n.issues?n.typed=!1:n.value=t,n}}}function bn(s){return{kind:"transformation",type:"raw_transform",reference:bn,async:!0,async _run(n,e){let t=await s({dataset:n,config:e,addIssue:u=>r(this,u?.label??"input",n,e,u),NEVER:null});return n.issues?n.typed=!1:n.value=t,n}}}function En(){return{kind:"transformation",type:"readonly",reference:En,async:!1,_run(s){return s}}}function Mn(s,n){return{kind:"transformation",type:"reduce_items",reference:Mn,async:!1,_run(e){return e.value=e.value.reduce(s,n),e}}}function An(s,n){return{kind:"validation",type:"regex",reference:An,async:!1,expects:`${s}`,requirement:s,message:n,_run(e,t){return e.typed&&!this.requirement.test(e.value)&&r(this,"format",e,t),e}}}function jn(s){return{kind:"validation",type:"safe_integer",reference:jn,async:!1,expects:null,requirement:Number.isSafeInteger,message:s,_run(n,e){return n.typed&&!this.requirement(n.value)&&r(this,"safe integer",n,e),n}}}function vn(s,n){return{kind:"validation",type:"size",reference:vn,async:!1,expects:`${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.size!==this.requirement&&r(this,"size",e,t,{received:`${e.value.size}`}),e}}}function Rn(s,n){return{kind:"validation",type:"some_item",reference:Rn,async:!1,expects:null,requirement:s,message:n,_run(e,t){return e.typed&&!e.value.some(this.requirement)&&r(this,"item",e,t),e}}}function _n(s){return{kind:"transformation",type:"sort_items",reference:_n,async:!1,_run(n){return n.value=n.value.sort(s),n}}}function Pn(s,n){return{kind:"validation",type:"starts_with",reference:Pn,async:!1,expects:`"${s}"`,requirement:s,message:n,_run(e,t){return e.typed&&!e.value.startsWith(this.requirement)&&r(this,"start",e,t,{received:`"${e.value.slice(0,this.requirement.length)}"`}),e}}}function qn(){return{kind:"transformation",type:"to_lower_case",reference:qn,async:!1,_run(s){return s.value=s.value.toLowerCase(),s}}}function Dn(s){return{kind:"transformation",type:"to_max_value",reference:Dn,async:!1,requirement:s,_run(n){return n.value=n.value>this.requirement?this.requirement:n.value,n}}}function Nn(s){return{kind:"transformation",type:"to_min_value",reference:Nn,async:!1,requirement:s,_run(n){return n.value=n.value<this.requirement?this.requirement:n.value,n}}}function Wn(){return{kind:"transformation",type:"to_upper_case",reference:Wn,async:!1,_run(s){return s.value=s.value.toUpperCase(),s}}}function Vn(s){return{kind:"transformation",type:"transform",reference:Vn,async:!1,action:s,_run(n){return n.value=s(n.value),n}}}function Cn(s){return{kind:"transformation",type:"transform",reference:Cn,async:!0,action:s,async _run(n){return n.value=await s(n.value),n}}}function Ln(){return{kind:"transformation",type:"trim",reference:Ln,async:!1,_run(s){return s.value=s.value.trim(),s}}}function Kn(){return{kind:"transformation",type:"trim_end",reference:Kn,async:!1,_run(s){return s.value=s.value.trimEnd(),s}}}function $n(){return{kind:"transformation",type:"trim_start",reference:$n,async:!1,_run(s){return s.value=s.value.trimStart(),s}}}function zn(s){return{kind:"validation",type:"ulid",reference:zn,async:!1,expects:null,requirement:ne,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"ULID",n,e),n}}}function Un(s){return{kind:"validation",type:"url",reference:Un,async:!1,expects:null,requirement(n){try{return new URL(n),!0}catch{return!1}},message:s,_run(n,e){return n.typed&&!this.requirement(n.value)&&r(this,"URL",n,e),n}}}function Fn(s){return{kind:"validation",type:"uuid",reference:Fn,async:!1,expects:null,requirement:se,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"UUID",n,e),n}}}function Gn(s,n){return{kind:"validation",type:"value",reference:Gn,async:!1,expects:s instanceof Date?s.toJSON():f(s),requirement:s,message:n,_run(e,t){return e.typed&&!(this.requirement<=e.value&&this.requirement>=e.value)&&r(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():f(e.value)}),e}}}function Va(s,n){return{...s,_run(e,t){return s._run(e,{...t,...n})}}}function x(s,n,e){return typeof s.fallback=="function"?s.fallback(n,e):s.fallback}function $a(s,n){return{...s,fallback:n,_run(e,t){return s._run(e,t),e.issues?{typed:!0,value:x(this,e,t)}:e}}}function Fa(s,n){return{...s,fallback:n,async:!0,async _run(e,t){return s._run(e,t),e.issues?{typed:!0,value:await x(this,e,t)}:e}}}function Ha(s){let n={};for(let e of s)if(e.path){let t=ae(e);t?(n.nested||(n.nested={}),n.nested[t]?n.nested[t].push(e.message):n.nested[t]=[e.message]):n.other?n.other.push(e.message):n.other=[e.message]}else n.root?n.root.push(e.message):n.root=[e.message];return n}function Za(s,n){return{...s,_run(e,t){let u=e.issues&&[...e.issues];if(s._run(e,t),e.issues){for(let o of e.issues)if(!u?.includes(o)){let i=e.value;for(let p of n){let a=i[p],c={type:"unknown",origin:"value",input:i,key:p,value:a};if(o.path?o.path.push(c):o.path=[c],!a)break;i=a}}}return e}}}function Ya(s,n){return{...s,async:!0,async _run(e,t){let u=e.issues&&[...e.issues];if(await s._run(e,t),e.issues){for(let o of e.issues)if(!u?.includes(o)){let i=e.value;for(let p of n){let a=i[p],c={type:"unknown",origin:"value",input:i,key:p,value:a};if(o.path?o.path.push(c):o.path=[c],!a)break;i=a}}}return e}}}function y(s,n,e){return typeof s.default=="function"?s.default(n,e):s.default}function oe(s){if("entries"in s){let n={};for(let e in s.entries)n[e]=oe(s.entries[e]);return n}return"items"in s?s.items.map(oe):y(s)}async function ie(s){return"entries"in s?Object.fromEntries(await Promise.all(Object.entries(s.entries).map(async([n,e])=>[n,await ie(e)]))):"items"in s?Promise.all(s.items.map(ie)):y(s)}function pe(s){if("entries"in s){let n={};for(let e in s.entries)n[e]=pe(s.entries[e]);return n}return"items"in s?s.items.map(pe):x(s)}async function ce(s){return"entries"in s?Object.fromEntries(await Promise.all(Object.entries(s.entries).map(async([n,e])=>[n,await ce(e)]))):"items"in s?Promise.all(s.items.map(ce)):x(s)}function co(s,n){return!s._run({typed:!1,value:n},{abortEarly:!0}).issues}function Xn(){return{kind:"schema",type:"any",reference:Xn,expects:"any",async:!1,_run(s){return s.typed=!0,s}}}function Hn(s,n){return{kind:"schema",type:"array",reference:Hn,expects:"Array",async:!1,item:s,message:n,_run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];for(let o=0;o<u.length;o++){let i=u[o],p=this.item._run({typed:!1,value:i},t);if(p.issues){let a={type:"array",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),e.value.push(p.value)}}else r(this,"type",e,t);return e}}}function Jn(s,n){return{kind:"schema",type:"array",reference:Jn,expects:"Array",async:!0,item:s,message:n,async _run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];let o=await Promise.all(u.map(i=>this.item._run({typed:!1,value:i},t)));for(let i=0;i<o.length;i++){let p=o[i];if(p.issues){let a={type:"array",origin:"value",input:u,key:i,value:u[i]};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),e.value.push(p.value)}}else r(this,"type",e,t);return e}}}function Zn(s){return{kind:"schema",type:"bigint",reference:Zn,expects:"bigint",async:!1,message:s,_run(n,e){return typeof n.value=="bigint"?n.typed=!0:r(this,"type",n,e),n}}}function Qn(s){return{kind:"schema",type:"blob",reference:Qn,expects:"Blob",async:!1,message:s,_run(n,e){return n.value instanceof Blob?n.typed=!0:r(this,"type",n,e),n}}}function Yn(s){return{kind:"schema",type:"boolean",reference:Yn,expects:"boolean",async:!1,message:s,_run(n,e){return typeof n.value=="boolean"?n.typed=!0:r(this,"type",n,e),n}}}function es(s,n){return{kind:"schema",type:"custom",reference:es,expects:"unknown",async:!1,check:s,message:n,_run(e,t){return this.check(e.value)?e.typed=!0:r(this,"type",e,t),e}}}function ns(s,n){return{kind:"schema",type:"custom",reference:ns,expects:"unknown",async:!0,check:s,message:n,async _run(e,t){return await this.check(e.value)?e.typed=!0:r(this,"type",e,t),e}}}function ss(s){return{kind:"schema",type:"date",reference:ss,expects:"Date",async:!1,message:s,_run(n,e){return n.value instanceof Date?isNaN(n.value)?r(this,"type",n,e,{received:'"Invalid Date"'}):n.typed=!0:r(this,"type",n,e),n}}}function ts(s,n){let e=Object.entries(s).filter(([t])=>isNaN(+t)).map(([,t])=>t);return{kind:"schema",type:"enum",reference:ts,expects:e.map(f).join(" | ")||"never",async:!1,enum:s,options:e,message:n,_run(t,u){return this.options.includes(t.value)?t.typed=!0:r(this,"type",t,u),t}}}function rs(s,n){return{kind:"schema",type:"instance",reference:rs,expects:s.name,async:!1,class:s,message:n,_run(e,t){return e.value instanceof this.class?e.typed=!0:r(this,"type",e,t),e}}}function S(s,n){if(typeof s==typeof n){if(s===n||s instanceof Date&&n instanceof Date&&+s==+n)return{value:s};if(s&&n&&s.constructor===Object&&n.constructor===Object){for(let e in n)if(e in s){let t=S(s[e],n[e]);if(t.issue)return t;s[e]=t.value}else s[e]=n[e];return{value:s}}if(Array.isArray(s)&&Array.isArray(n)&&s.length===n.length){for(let e=0;e<s.length;e++){let t=S(s[e],n[e]);if(t.issue)return t;s[e]=t.value}return{value:s}}}return{issue:!0}}function us(s,n){return{kind:"schema",type:"intersect",reference:us,expects:[...new Set(s.map(e=>e.expects))].join(" & ")||"never",async:!1,options:s,message:n,_run(e,t){if(this.options.length){let u=e.value,o;e.typed=!0;for(let i of this.options){let p=i._run({typed:!1,value:u},t);if(p.issues&&(e.issues?e.issues.push(...p.issues):e.issues=p.issues,t.abortEarly)){e.typed=!1;break}p.typed||(e.typed=!1),e.typed&&(o?o.push(p.value):o=[p.value])}if(e.typed){e.value=o[0];for(let i=1;i<o.length;i++){let p=S(e.value,o[i]);if(p.issue){r(this,"type",e,t,{received:"unknown"});break}e.value=p.value}}}else r(this,"type",e,t);return e}}}function as(s,n){return{kind:"schema",type:"intersect",reference:as,expects:[...new Set(s.map(e=>e.expects))].join(" & ")||"never",async:!0,options:s,message:n,async _run(e,t){if(this.options.length){let u=e.value,o;e.typed=!0;let i=await Promise.all(this.options.map(p=>p._run({typed:!1,value:u},t)));for(let p of i){if(p.issues&&(e.issues?e.issues.push(...p.issues):e.issues=p.issues,t.abortEarly)){e.typed=!1;break}p.typed||(e.typed=!1),e.typed&&(o?o.push(p.value):o=[p.value])}if(e.typed){e.value=o[0];for(let p=1;p<o.length;p++){let a=S(e.value,o[p]);if(a.issue){r(this,"type",e,t,{received:"unknown"});break}e.value=a.value}}}else r(this,"type",e,t);return e}}}function os(s){return{kind:"schema",type:"lazy",reference:os,expects:"unknown",async:!1,getter:s,_run(n,e){return this.getter(n.value)._run(n,e)}}}function is(s){return{kind:"schema",type:"lazy",reference:is,expects:"unknown",async:!0,getter:s,async _run(n,e){return(await this.getter(n.value))._run(n,e)}}}function ps(s,n){return{kind:"schema",type:"literal",reference:ps,expects:f(s),async:!1,literal:s,message:n,_run(e,t){return e.value===this.literal?e.typed=!0:r(this,"type",e,t),e}}}function cs(s,n){return{kind:"schema",type:"loose_object",reference:cs,expects:"Object",async:!1,entries:s,message:n,_run(e,t){let u=e.value;if(u&&typeof u=="object"){e.typed=!0,e.value={};for(let o in this.entries){let i=u[o],p=this.entries[o]._run({typed:!1,value:i},t);if(p.issues){let a={type:"object",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),(p.value!==void 0||o in u)&&(e.value[o]=p.value)}if(!e.issues||!t.abortEarly)for(let o in u)T(u,o)&&!(o in this.entries)&&(e.value[o]=u[o])}else r(this,"type",e,t);return e}}}function Is(s,n){return{kind:"schema",type:"loose_object",reference:Is,expects:"Object",async:!0,entries:s,message:n,async _run(e,t){let u=e.value;if(u&&typeof u=="object"){e.typed=!0,e.value={};let o=await Promise.all(Object.entries(this.entries).map(async([i,p])=>{let a=u[i];return[i,a,await p._run({typed:!1,value:a},t)]}));for(let[i,p,a]of o){if(a.issues){let c={type:"object",origin:"value",input:u,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],e.issues?.push(I);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),(a.value!==void 0||i in u)&&(e.value[i]=a.value)}if(!e.issues||!t.abortEarly)for(let i in u)T(u,i)&&!(i in this.entries)&&(e.value[i]=u[i])}else r(this,"type",e,t);return e}}}function ms(s,n){return{kind:"schema",type:"loose_tuple",reference:ms,expects:"Array",async:!1,items:s,message:n,_run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];for(let o=0;o<this.items.length;o++){let i=u[o],p=this.items[o]._run({typed:!1,value:i},t);if(p.issues){let a={type:"array",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),e.value.push(p.value)}if(!e.issues||!t.abortEarly)for(let o=this.items.length;o<u.length;o++)e.value.push(u[o])}else r(this,"type",e,t);return e}}}function ds(s,n){return{kind:"schema",type:"loose_tuple",reference:ds,expects:"Array",async:!0,items:s,message:n,async _run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];let o=await Promise.all(this.items.map(async(i,p)=>{let a=u[p];return[p,a,await i._run({typed:!1,value:a},t)]}));for(let[i,p,a]of o){if(a.issues){let c={type:"array",origin:"value",input:u,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],e.issues?.push(I);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}if(!e.issues||!t.abortEarly)for(let i=this.items.length;i<u.length;i++)e.value.push(u[i])}else r(this,"type",e,t);return e}}}function fs(s,n,e){return{kind:"schema",type:"map",reference:fs,expects:"Map",async:!1,key:s,value:n,message:e,_run(t,u){let o=t.value;if(o instanceof Map){t.typed=!0,t.value=new Map;for(let[i,p]of o){let a=this.key._run({typed:!1,value:i},u);if(a.issues){let I={type:"map",origin:"key",input:o,key:i,value:p};for(let m of a.issues)m.path?m.path.unshift(I):m.path=[I],t.issues?.push(m);if(t.issues||(t.issues=a.issues),u.abortEarly){t.typed=!1;break}}let c=this.value._run({typed:!1,value:p},u);if(c.issues){let I={type:"map",origin:"value",input:o,key:i,value:p};for(let m of c.issues)m.path?m.path.unshift(I):m.path=[I],t.issues?.push(m);if(t.issues||(t.issues=c.issues),u.abortEarly){t.typed=!1;break}}(!a.typed||!c.typed)&&(t.typed=!1),t.value.set(a.value,c.value)}}else r(this,"type",t,u);return t}}}function ys(s,n,e){return{kind:"schema",type:"map",reference:ys,expects:"Map",async:!0,key:s,value:n,message:e,async _run(t,u){let o=t.value;if(o instanceof Map){t.typed=!0,t.value=new Map;let i=await Promise.all([...o].map(([p,a])=>Promise.all([p,a,this.key._run({typed:!1,value:p},u),this.value._run({typed:!1,value:a},u)])));for(let[p,a,c,I]of i){if(c.issues){let m={type:"map",origin:"key",input:o,key:p,value:a};for(let d of c.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=c.issues),u.abortEarly){t.typed=!1;break}}if(I.issues){let m={type:"map",origin:"value",input:o,key:p,value:a};for(let d of I.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=I.issues),u.abortEarly){t.typed=!1;break}}(!c.typed||!I.typed)&&(t.typed=!1),t.value.set(c.value,I.value)}}else r(this,"type",t,u);return t}}}function Ts(s){return{kind:"schema",type:"nan",reference:Ts,expects:"NaN",async:!1,message:s,_run(n,e){return Number.isNaN(n.value)?n.typed=!0:r(this,"type",n,e),n}}}function ls(s){return{kind:"schema",type:"never",reference:ls,expects:"never",async:!1,message:s,_run(n,e){return r(this,"type",n,e),n}}}function hs(s,n){return{kind:"schema",type:"non_nullable",reference:hs,expects:"!null",async:!1,wrapped:s,message:n,_run(e,t){return e.value===null?(r(this,"type",e,t),e):this.wrapped._run(e,t)}}}function xs(s,n){return{kind:"schema",type:"non_nullable",reference:xs,expects:"!null",async:!0,wrapped:s,message:n,async _run(e,t){return e.value===null?(r(this,"type",e,t),e):this.wrapped._run(e,t)}}}function gs(s,n){return{kind:"schema",type:"non_nullish",reference:gs,expects:"!null & !undefined",async:!1,wrapped:s,message:n,_run(e,t){return e.value===null||e.value===void 0?(r(this,"type",e,t),e):this.wrapped._run(e,t)}}}function ks(s,n){return{kind:"schema",type:"non_nullish",reference:ks,expects:"!null & !undefined",async:!0,wrapped:s,message:n,async _run(e,t){return e.value===null||e.value===void 0?(r(this,"type",e,t),e):this.wrapped._run(e,t)}}}function A(s,n){return{kind:"schema",type:"non_optional",reference:A,expects:"!undefined",async:!1,wrapped:s,message:n,_run(e,t){return e.value===void 0?(r(this,"type",e,t),e):this.wrapped._run(e,t)}}}function j(s,n){return{kind:"schema",type:"non_optional",reference:j,expects:"!undefined",async:!0,wrapped:s,message:n,async _run(e,t){return e.value===void 0?(r(this,"type",e,t),e):this.wrapped._run(e,t)}}}function Ss(s){return{kind:"schema",type:"null",reference:Ss,expects:"null",async:!1,message:s,_run(n,e){return n.value===null?n.typed=!0:r(this,"type",n,e),n}}}function ws(s,...n){let e={kind:"schema",type:"nullable",reference:ws,expects:`${s.expects} | null`,async:!1,wrapped:s,_run(t,u){return t.value===null&&("default"in this&&(t.value=y(this,t,u)),t.value===null)?(t.typed=!0,t):this.wrapped._run(t,u)}};return 0 in n&&(e.default=n[0]),e}function Os(s,...n){let e={kind:"schema",type:"nullable",reference:Os,expects:`${s.expects} | null`,async:!0,wrapped:s,async _run(t,u){return t.value===null&&("default"in this&&(t.value=await y(this,t,u)),t.value===null)?(t.typed=!0,t):this.wrapped._run(t,u)}};return 0 in n&&(e.default=n[0]),e}function Bs(s,...n){let e={kind:"schema",type:"nullish",reference:Bs,expects:`${s.expects} | null | undefined`,async:!1,wrapped:s,_run(t,u){return(t.value===null||t.value===void 0)&&("default"in this&&(t.value=y(this,t,u)),t.value===null||t.value===void 0)?(t.typed=!0,t):this.wrapped._run(t,u)}};return 0 in n&&(e.default=n[0]),e}function bs(s,...n){let e={kind:"schema",type:"nullish",reference:bs,expects:`${s.expects} | null | undefined`,async:!0,wrapped:s,async _run(t,u){return(t.value===null||t.value===void 0)&&("default"in this&&(t.value=await y(this,t,u)),t.value===null||t.value===void 0)?(t.typed=!0,t):this.wrapped._run(t,u)}};return 0 in n&&(e.default=n[0]),e}function Es(s){return{kind:"schema",type:"number",reference:Es,expects:"number",async:!1,message:s,_run(n,e){return typeof n.value=="number"&&!isNaN(n.value)?n.typed=!0:r(this,"type",n,e),n}}}function Ms(s,n){return{kind:"schema",type:"object",reference:Ms,expects:"Object",async:!1,entries:s,message:n,_run(e,t){let u=e.value;if(u&&typeof u=="object"){e.typed=!0,e.value={};for(let o in this.entries){let i=u[o],p=this.entries[o]._run({typed:!1,value:i},t);if(p.issues){let a={type:"object",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),(p.value!==void 0||o in u)&&(e.value[o]=p.value)}}else r(this,"type",e,t);return e}}}function As(s,n){return{kind:"schema",type:"object",reference:As,expects:"Object",async:!0,entries:s,message:n,async _run(e,t){let u=e.value;if(u&&typeof u=="object"){e.typed=!0,e.value={};let o=await Promise.all(Object.entries(this.entries).map(async([i,p])=>{let a=u[i];return[i,a,await p._run({typed:!1,value:a},t)]}));for(let[i,p,a]of o){if(a.issues){let c={type:"object",origin:"value",input:u,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],e.issues?.push(I);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),(a.value!==void 0||i in u)&&(e.value[i]=a.value)}}else r(this,"type",e,t);return e}}}function js(s,n,e){return{kind:"schema",type:"object_with_rest",reference:js,expects:"Object",async:!1,entries:s,rest:n,message:e,_run(t,u){let o=t.value;if(o&&typeof o=="object"){t.typed=!0,t.value={};for(let i in this.entries){let p=o[i],a=this.entries[i]._run({typed:!1,value:p},u);if(a.issues){let c={type:"object",origin:"value",input:o,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],t.issues?.push(I);if(t.issues||(t.issues=a.issues),u.abortEarly){t.typed=!1;break}}a.typed||(t.typed=!1),(a.value!==void 0||i in o)&&(t.value[i]=a.value)}if(!t.issues||!u.abortEarly){for(let i in o)if(T(o,i)&&!(i in this.entries)){let p=o[i],a=this.rest._run({typed:!1,value:p},u);if(a.issues){let c={type:"object",origin:"value",input:o,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],t.issues?.push(I);if(t.issues||(t.issues=a.issues),u.abortEarly){t.typed=!1;break}}a.typed||(t.typed=!1),t.value[i]=a.value}}}else r(this,"type",t,u);return t}}}function vs(s,n,e){return{kind:"schema",type:"object_with_rest",reference:vs,expects:"Object",async:!0,entries:s,rest:n,message:e,async _run(t,u){let o=t.value;if(o&&typeof o=="object"){t.typed=!0,t.value={};let[i,p]=await Promise.all([Promise.all(Object.entries(this.entries).map(async([a,c])=>{let I=o[a];return[a,I,await c._run({typed:!1,value:I},u)]})),Promise.all(Object.entries(o).filter(([a])=>T(o,a)&&!(a in this.entries)).map(async([a,c])=>[a,c,await this.rest._run({typed:!1,value:c},u)]))]);for(let[a,c,I]of i){if(I.issues){let m={type:"object",origin:"value",input:o,key:a,value:c};for(let d of I.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=I.issues),u.abortEarly){t.typed=!1;break}}I.typed||(t.typed=!1),(I.value!==void 0||a in o)&&(t.value[a]=I.value)}if(!t.issues||!u.abortEarly)for(let[a,c,I]of p){if(I.issues){let m={type:"object",origin:"value",input:o,key:a,value:c};for(let d of I.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=I.issues),u.abortEarly){t.typed=!1;break}}I.typed||(t.typed=!1),t.value[a]=I.value}}else r(this,"type",t,u);return t}}}function v(s,...n){let e={kind:"schema",type:"optional",reference:v,expects:`${s.expects} | undefined`,async:!1,wrapped:s,_run(t,u){return t.value===void 0&&("default"in this&&(t.value=y(this,t,u)),t.value===void 0)?(t.typed=!0,t):this.wrapped._run(t,u)}};return 0 in n&&(e.default=n[0]),e}function R(s,...n){let e={kind:"schema",type:"optional",reference:R,expects:`${s.expects} | undefined`,async:!0,wrapped:s,async _run(t,u){return t.value===void 0&&("default"in this&&(t.value=await y(this,t,u)),t.value===void 0)?(t.typed=!0,t):this.wrapped._run(t,u)}};return 0 in n&&(e.default=n[0]),e}function _(s,n){return{kind:"schema",type:"picklist",reference:_,expects:s.map(f).join(" | ")||"never",async:!1,options:s,message:n,_run(e,t){return this.options.includes(e.value)?e.typed=!0:r(this,"type",e,t),e}}}function Rs(s,n,e){return{kind:"schema",type:"record",reference:Rs,expects:"Object",async:!1,key:s,value:n,message:e,_run(t,u){let o=t.value;if(o&&typeof o=="object"){t.typed=!0,t.value={};for(let i in o)if(T(o,i)){let p=o[i],a=this.key._run({typed:!1,value:i},u);if(a.issues){let I={type:"object",origin:"key",input:o,key:i,value:p};for(let m of a.issues)m.path=[I],t.issues?.push(m);if(t.issues||(t.issues=a.issues),u.abortEarly){t.typed=!1;break}}let c=this.value._run({typed:!1,value:p},u);if(c.issues){let I={type:"object",origin:"value",input:o,key:i,value:p};for(let m of c.issues)m.path?m.path.unshift(I):m.path=[I],t.issues?.push(m);if(t.issues||(t.issues=c.issues),u.abortEarly){t.typed=!1;break}}(!a.typed||!c.typed)&&(t.typed=!1),a.typed&&(t.value[a.value]=c.value)}}else r(this,"type",t,u);return t}}}function _s(s,n,e){return{kind:"schema",type:"record",reference:_s,expects:"Object",async:!0,key:s,value:n,message:e,async _run(t,u){let o=t.value;if(o&&typeof o=="object"){t.typed=!0,t.value={};let i=await Promise.all(Object.entries(o).filter(([p])=>T(o,p)).map(([p,a])=>Promise.all([p,a,this.key._run({typed:!1,value:p},u),this.value._run({typed:!1,value:a},u)])));for(let[p,a,c,I]of i){if(c.issues){let m={type:"object",origin:"key",input:o,key:p,value:a};for(let d of c.issues)d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=c.issues),u.abortEarly){t.typed=!1;break}}if(I.issues){let m={type:"object",origin:"value",input:o,key:p,value:a};for(let d of I.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=I.issues),u.abortEarly){t.typed=!1;break}}(!c.typed||!I.typed)&&(t.typed=!1),c.typed&&(t.value[c.value]=I.value)}}else r(this,"type",t,u);return t}}}function Ps(s,n){return{kind:"schema",type:"set",reference:Ps,expects:"Set",async:!1,value:s,message:n,_run(e,t){let u=e.value;if(u instanceof Set){e.typed=!0,e.value=new Set;for(let o of u){let i=this.value._run({typed:!1,value:o},t);if(i.issues){let p={type:"set",origin:"value",input:u,value:o};for(let a of i.issues)a.path?a.path.unshift(p):a.path=[p],e.issues?.push(a);if(e.issues||(e.issues=i.issues),t.abortEarly){e.typed=!1;break}}i.typed||(e.typed=!1),e.value.add(i.value)}}else r(this,"type",e,t);return e}}}function qs(s,n){return{kind:"schema",type:"set",reference:qs,expects:"Set",async:!0,value:s,message:n,async _run(e,t){let u=e.value;if(u instanceof Set){e.typed=!0,e.value=new Set;let o=await Promise.all([...u].map(async i=>[i,await this.value._run({typed:!1,value:i},t)]));for(let[i,p]of o){if(p.issues){let a={type:"set",origin:"value",input:u,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),e.value.add(p.value)}}else r(this,"type",e,t);return e}}}function Ds(s,n){return{kind:"schema",type:"strict_object",reference:Ds,expects:"Object",async:!1,entries:s,message:n,_run(e,t){let u=e.value;if(u&&typeof u=="object"){e.typed=!0,e.value={};for(let o in this.entries){let i=u[o],p=this.entries[o]._run({typed:!1,value:i},t);if(p.issues){let a={type:"object",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),(p.value!==void 0||o in u)&&(e.value[o]=p.value)}if(!e.issues||!t.abortEarly){for(let o in u)if(!(o in this.entries)){let i=u[o];r(this,"type",e,t,{input:i,expected:"never",path:[{type:"object",origin:"value",input:u,key:o,value:i}]});break}}}else r(this,"type",e,t);return e}}}function Ns(s,n){return{kind:"schema",type:"strict_object",reference:Ns,expects:"Object",async:!0,entries:s,message:n,async _run(e,t){let u=e.value;if(u&&typeof u=="object"){e.typed=!0,e.value={};let o=await Promise.all(Object.entries(this.entries).map(async([i,p])=>{let a=u[i];return[i,a,await p._run({typed:!1,value:a},t)]}));for(let[i,p,a]of o){if(a.issues){let c={type:"object",origin:"value",input:u,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],e.issues?.push(I);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),(a.value!==void 0||i in u)&&(e.value[i]=a.value)}if(!e.issues||!t.abortEarly){for(let i in u)if(!(i in this.entries)){let p=u[i];r(this,"type",e,t,{input:p,expected:"never",path:[{type:"object",origin:"value",input:u,key:i,value:p}]});break}}}else r(this,"type",e,t);return e}}}function Ws(s,n){return{kind:"schema",type:"strict_tuple",reference:Ws,expects:"Array",async:!1,items:s,message:n,_run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];for(let o=0;o<this.items.length;o++){let i=u[o],p=this.items[o]._run({typed:!1,value:i},t);if(p.issues){let a={type:"array",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),e.value.push(p.value)}if(!(e.issues&&t.abortEarly)&&this.items.length<u.length){let o=u[s.length];r(this,"type",e,t,{input:o,expected:"never",path:[{type:"array",origin:"value",input:u,key:this.items.length,value:o}]})}}else r(this,"type",e,t);return e}}}function Vs(s,n){return{kind:"schema",type:"strict_tuple",reference:Vs,expects:"Array",async:!0,items:s,message:n,async _run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];let o=await Promise.all(this.items.map(async(i,p)=>{let a=u[p];return[p,a,await i._run({typed:!1,value:a},t)]}));for(let[i,p,a]of o){if(a.issues){let c={type:"array",origin:"value",input:u,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],e.issues?.push(I);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}if(!(e.issues&&t.abortEarly)&&this.items.length<u.length){let i=u[s.length];r(this,"type",e,t,{input:i,expected:"never",path:[{type:"array",origin:"value",input:u,key:this.items.length,value:i}]})}}else r(this,"type",e,t);return e}}}function Cs(s){return{kind:"schema",type:"string",reference:Cs,expects:"string",async:!1,message:s,_run(n,e){return typeof n.value=="string"?n.typed=!0:r(this,"type",n,e),n}}}function Ls(s){return{kind:"schema",type:"symbol",reference:Ls,expects:"symbol",async:!1,message:s,_run(n,e){return typeof n.value=="symbol"?n.typed=!0:r(this,"type",n,e),n}}}function Ks(s,n){return{kind:"schema",type:"tuple",reference:Ks,expects:"Array",async:!1,items:s,message:n,_run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];for(let o=0;o<this.items.length;o++){let i=u[o],p=this.items[o]._run({typed:!1,value:i},t);if(p.issues){let a={type:"array",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),e.value.push(p.value)}}else r(this,"type",e,t);return e}}}function $s(s,n){return{kind:"schema",type:"tuple",reference:$s,expects:"Array",async:!0,items:s,message:n,async _run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];let o=await Promise.all(this.items.map(async(i,p)=>{let a=u[p];return[p,a,await i._run({typed:!1,value:a},t)]}));for(let[i,p,a]of o){if(a.issues){let c={type:"array",origin:"value",input:u,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],e.issues?.push(I);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else r(this,"type",e,t);return e}}}function zs(s,n,e){return{kind:"schema",type:"tuple_with_rest",reference:zs,expects:"Array",async:!1,items:s,rest:n,message:e,_run(t,u){let o=t.value;if(Array.isArray(o)){t.typed=!0,t.value=[];for(let i=0;i<this.items.length;i++){let p=o[i],a=this.items[i]._run({typed:!1,value:p},u);if(a.issues){let c={type:"array",origin:"value",input:o,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],t.issues?.push(I);if(t.issues||(t.issues=a.issues),u.abortEarly){t.typed=!1;break}}a.typed||(t.typed=!1),t.value.push(a.value)}if(!t.issues||!u.abortEarly)for(let i=this.items.length;i<o.length;i++){let p=o[i],a=this.rest._run({typed:!1,value:p},u);if(a.issues){let c={type:"array",origin:"value",input:o,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],t.issues?.push(I);if(t.issues||(t.issues=a.issues),u.abortEarly){t.typed=!1;break}}a.typed||(t.typed=!1),t.value.push(a.value)}}else r(this,"type",t,u);return t}}}function Us(s,n,e){return{kind:"schema",type:"tuple_with_rest",reference:Us,expects:"Array",async:!0,items:s,rest:n,message:e,async _run(t,u){let o=t.value;if(Array.isArray(o)){t.typed=!0,t.value=[];let[i,p]=await Promise.all([Promise.all(this.items.map(async(a,c)=>{let I=o[c];return[c,I,await a._run({typed:!1,value:I},u)]})),Promise.all(o.slice(this.items.length).map(async(a,c)=>[c+this.items.length,a,await this.rest._run({typed:!1,value:a},u)]))]);for(let[a,c,I]of i){if(I.issues){let m={type:"array",origin:"value",input:o,key:a,value:c};for(let d of I.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=I.issues),u.abortEarly){t.typed=!1;break}}I.typed||(t.typed=!1),t.value.push(I.value)}if(!t.issues||!u.abortEarly)for(let[a,c,I]of p){if(I.issues){let m={type:"array",origin:"value",input:o,key:a,value:c};for(let d of I.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=I.issues),u.abortEarly){t.typed=!1;break}}I.typed||(t.typed=!1),t.value.push(I.value)}}else r(this,"type",t,u);return t}}}function Fs(s){return{kind:"schema",type:"undefined",reference:Fs,expects:"undefined",async:!1,message:s,_run(n,e){return n.value===void 0?n.typed=!0:r(this,"type",n,e),n}}}function w(s){let n;if(s)for(let e of s)n?n.push(...e.issues):n=e.issues;return n}function Gs(s,n){return{kind:"schema",type:"union",reference:Gs,expects:[...new Set(s.map(e=>e.expects))].join(" | ")||"never",async:!1,options:s,message:n,_run(e,t){let u,o,i;for(let p of this.options){let a=p._run({typed:!1,value:e.value},t);if(a.typed)if(a.issues)o?o.push(a):o=[a];else{u=a;break}else i?i.push(a):i=[a]}if(u)return u;if(o){if(o.length===1)return o[0];r(this,"type",e,t,{issues:w(o)}),e.typed=!0}else{if(i?.length===1)return i[0];r(this,"type",e,t,{issues:w(i)})}return e}}}function Xs(s,n){return{kind:"schema",type:"union",reference:Xs,expects:[...new Set(s.map(e=>e.expects))].join(" | ")||"never",async:!0,options:s,message:n,async _run(e,t){let u,o,i;for(let p of this.options){let a=await p._run({typed:!1,value:e.value},t);if(a.typed)if(a.issues)o?o.push(a):o=[a];else{u=a;break}else i?i.push(a):i=[a]}if(u)return u;if(o){if(o.length===1)return o[0];r(this,"type",e,t,{issues:w(o)}),e.typed=!0}else{if(i?.length===1)return i[0];r(this,"type",e,t,{issues:w(i)})}return e}}}function Hs(){return{kind:"schema",type:"unknown",reference:Hs,expects:"unknown",async:!1,_run(s){return s.typed=!0,s}}}function b(s,n,e=new Set){for(let t of n)t.type==="variant"?b(s,t.options,e):e.add(t.entries[s].expects);return e}function Js(s,n,e){let t;return{kind:"schema",type:"variant",reference:Js,expects:"Object",async:!1,key:s,options:n,message:e,_run(u,o){let i=u.value;if(i&&typeof i=="object"){let p=i[this.key];if(this.key in i){let a;for(let c of this.options)if(c.type==="variant"||!c.entries[this.key]._run({typed:!1,value:p},o).issues){let I=c._run({typed:!1,value:i},o);if(!I.issues)return I;(!a||!a.typed&&I.typed)&&(a=I)}if(a)return a}t||(t=[...b(this.key,this.options)].join(" | ")||"never"),r(this,"type",u,o,{input:p,expected:t,path:[{type:"object",origin:"value",input:i,key:this.key,value:p}]})}else r(this,"type",u,o);return u}}}function Zs(s,n,e){let t;return{kind:"schema",type:"variant",reference:Zs,expects:"Object",async:!0,key:s,options:n,message:e,async _run(u,o){let i=u.value;if(i&&typeof i=="object"){let p=i[this.key];if(this.key in i){let a;for(let c of this.options)if(c.type==="variant"||!(await c.entries[this.key]._run({typed:!1,value:p},o)).issues){let I=await c._run({typed:!1,value:i},o);if(!I.issues)return I;(!a||!a.typed&&I.typed)&&(a=I)}if(a)return a}t||(t=[...b(this.key,this.options)].join(" | ")||"never"),r(this,"type",u,o,{input:p,expected:t,path:[{type:"object",origin:"value",input:i,key:this.key,value:p}]})}else r(this,"type",u,o);return u}}}function Qs(s){return{kind:"schema",type:"void",reference:Qs,expects:"void",async:!1,message:s,_run(n,e){return n.value===void 0?n.typed=!0:r(this,"type",n,e),n}}}function Vp(s,n){return _(Object.keys(s.entries),n)}function Lp(s,n){let e={...s.entries};for(let t of n)delete e[t];return{...s,entries:e}}function Ie(s,n,e){let t=s._run({typed:!1,value:n},l(e));if(t.issues)throw new h(t.issues);return t.value}async function me(s,n,e){let t=await s._run({typed:!1,value:n},l(e));if(t.issues)throw new h(t.issues);return t.value}function Jp(s,n){let e=t=>Ie(s,t,n);return e.schema=s,e.config=n,e}function Yp(s,n){let e=t=>me(s,t,n);return e.schema=s,e.config=n,e}function sc(s,n){let e={};for(let t in s.entries)e[t]=!n||n.includes(t)?v(s.entries[t]):s.entries[t];return{...s,entries:e}}function uc(s,n){let e={};for(let t in s.entries)e[t]=!n||n.includes(t)?R(s.entries[t]):s.entries[t];return{...s,entries:e}}function oc(s,n){let e={};for(let t of n)e[t]=s.entries[t];return{...s,entries:e}}function pc(...s){return{...s[0],pipe:s,_run(n,e){for(let t=0;t<s.length;t++){if(n.issues&&(s[t].kind==="schema"||s[t].kind==="transformation")){n.typed=!1;break}(!n.issues||!e.abortEarly&&!e.abortPipeEarly)&&(n=s[t]._run(n,e))}return n}}}function Ic(...s){return{...s[0],pipe:s,async:!0,async _run(n,e){for(let t=0;t<s.length;t++){if(n.issues&&(s[t].kind==="schema"||s[t].kind==="transformation")){n.typed=!1;break}(!n.issues||!e.abortEarly&&!e.abortPipeEarly)&&(n=await s[t]._run(n,e))}return n}}}function fc(s,n,e){let t=Array.isArray(n)?n:void 0,u=Array.isArray(n)?e:n,o={};for(let i in s.entries)o[i]=!t||t.includes(i)?A(s.entries[i],u):s.entries[i];return{...s,entries:o}}function lc(s,n,e){let t=Array.isArray(n)?n:void 0,u=Array.isArray(n)?e:n,o={};for(let i in s.entries)o[i]=!t||t.includes(i)?j(s.entries[i],u):s.entries[i];return{...s,entries:o}}function de(s,n,e){let t=s._run({typed:!1,value:n},l(e));return{typed:t.typed,success:!t.issues,output:t.value,issues:t.issues}}async function fe(s,n,e){let t=await s._run({typed:!1,value:n},l(e));return{typed:t.typed,success:!t.issues,output:t.value,issues:t.issues}}function Oc(s,n){let e=t=>de(s,t,n);return e.schema=s,e.config=n,e}function Ec(s,n){let e=t=>fe(s,t,n);return e.schema=s,e.config=n,e}function Ac(s){return s.wrapped}export{P as BIC_REGEX,q as CUID2_REGEX,D as DECIMAL_REGEX,N as EMAIL_REGEX,W as EMOJI_REGEX,V as HEXADECIMAL_REGEX,C as HEX_COLOR_REGEX,L as IMEI_REGEX,K as IPV4_REGEX,$ as IPV6_REGEX,z as IP_REGEX,U as ISO_DATE_REGEX,F as ISO_DATE_TIME_REGEX,H as ISO_TIMESTAMP_REGEX,G as ISO_TIME_REGEX,X as ISO_TIME_SECOND_REGEX,J as ISO_WEEK_REGEX,Z as MAC48_REGEX,Q as MAC64_REGEX,Y as MAC_REGEX,ee as OCTAL_REGEX,ne as ULID_REGEX,se as UUID_REGEX,h as ValiError,r as _addIssue,E as _isLuhnAlgo,T as _isValidObjectKey,f as _stringify,Xn as any,Hn as array,Jn as arrayAsync,Te as bic,Zn as bigint,Qn as blob,Yn as boolean,he as brand,le as bytes,xe as check,ge as checkAsync,ke as checkItems,Va as config,Be as creditCard,be as cuid2,es as custom,ns as customAsync,ss as date,Ee as decimal,nt as deleteGlobalConfig,rt as deleteGlobalMessage,ot as deleteSchemaMessage,ct as deleteSpecificMessage,Me as email,Ae as emoji,je as empty,ve as endsWith,ht as entriesFromList,ts as enum,ts as enum_,Re as everyItem,_e as excludes,$a as fallback,Fa as fallbackAsync,Pe as filterItems,qe as findItem,De as finite,Ha as flatten,Za as forward,Ya as forwardAsync,y as getDefault,oe as getDefaults,ie as getDefaultsAsync,ae as getDotPath,x as getFallback,pe as getFallbacks,ce as getFallbacksAsync,l as getGlobalConfig,te as getGlobalMessage,re as getSchemaMessage,ue as getSpecificMessage,We as hash,Ce as hexColor,Ve as hexadecimal,Le as imei,Ke as includes,rs as instance,$e as integer,us as intersect,as as intersectAsync,ze as ip,Ue as ipv4,Fe as ipv6,co as is,kt as isOfKind,wt as isOfType,bt as isValiError,Ge as isoDate,Xe as isoDateTime,He as isoTime,Je as isoTimeSecond,Ze as isoTimestamp,Qe as isoWeek,Vp as keyof,os as lazy,is as lazyAsync,Ye as length,ps as literal,cs as looseObject,Is as looseObjectAsync,ms as looseTuple,ds as looseTupleAsync,en as mac,nn as mac48,sn as mac64,fs as map,ys as mapAsync,tn as mapItems,rn as maxBytes,un as maxLength,an as maxSize,on as maxValue,pn as mimeType,cn as minBytes,In as minLength,mn as minSize,dn as minValue,fn as multipleOf,Ts as nan,ls as never,yn as nonEmpty,hs as nonNullable,xs as nonNullableAsync,gs as nonNullish,ks as nonNullishAsync,A as nonOptional,j as nonOptionalAsync,Tn as notBytes,ln as notLength,hn as notSize,xn as notValue,Ss as null,Ss as null_,ws as nullable,Os as nullableAsync,Bs as nullish,bs as nullishAsync,Es as number,Ms as object,As as objectAsync,js as objectWithRest,vs as objectWithRestAsync,gn as octal,Lp as omit,v as optional,R as optionalAsync,Ie as parse,me as parseAsync,Jp as parser,Yp as parserAsync,sc as partial,uc as partialAsync,kn as partialCheck,Sn as partialCheckAsync,oc as pick,_ as picklist,pc as pipe,Ic as pipeAsync,wn as rawCheck,On as rawCheckAsync,Bn as rawTransform,bn as rawTransformAsync,En as readonly,Rs as record,_s as recordAsync,Mn as reduceItems,An as regex,fc as required,lc as requiredAsync,jn as safeInteger,de as safeParse,fe as safeParseAsync,Oc as safeParser,Ec as safeParserAsync,Ps as set,qs as setAsync,et as setGlobalConfig,tt as setGlobalMessage,at as setSchemaMessage,pt as setSpecificMessage,vn as size,Rn as someItem,_n as sortItems,Pn as startsWith,Ds as strictObject,Ns as strictObjectAsync,Ws as strictTuple,Vs as strictTupleAsync,Cs as string,Ls as symbol,qn as toLowerCase,Dn as toMaxValue,Nn as toMinValue,Wn as toUpperCase,Vn as transform,Cn as transformAsync,Ln as trim,Kn as trimEnd,$n as trimStart,Ks as tuple,$s as tupleAsync,zs as tupleWithRest,Us as tupleWithRestAsync,zn as ulid,Fs as undefined,Fs as undefined_,Gs as union,Xs as unionAsync,Hs as unknown,Ac as unwrap,Un as url,Fn as uuid,Gn as value,Js as variant,Zs as variantAsync,Qs as void,Qs as void_}; | ||
var P=/^[A-Z]{6}(?!00)[A-Z\d]{2}(?:[A-Z\d]{3})?$/u,q=/^[a-z][\da-z]*$/u,D=/^\d+$/u,N=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu,W=/^[\p{Extended_Pictographic}\p{Emoji_Component}]+$/u,V=/^(?:0h|0x)?[\da-f]+$/iu,C=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/iu,L=/^\d{15}$|^\d{2}-\d{6}-\d{6}-\d$/u,K=/^(?:(?:[1-9]|1\d|2[0-4])?\d|25[0-5])(?:\.(?:(?:[1-9]|1\d|2[0-4])?\d|25[0-5])){3}$/u,$=/^(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:|(?:[\da-f]{1,4}:){1,6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,5}(?::[\da-f]{1,4}){1,2}|(?:[\da-f]{1,4}:){1,4}(?::[\da-f]{1,4}){1,3}|(?:[\da-f]{1,4}:){1,3}(?::[\da-f]{1,4}){1,4}|(?:[\da-f]{1,4}:){1,2}(?::[\da-f]{1,4}){1,5}|[\da-f]{1,4}:(?::[\da-f]{1,4}){1,6}|:(?:(?::[\da-f]{1,4}){1,7}|:)|fe80:(?::[\da-f]{0,4}){0,4}%[\da-z]+|::(?:f{4}(?::0{1,4})?:)?(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d)|(?:[\da-f]{1,4}:){1,4}:(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d))$/iu,z=/^(?:(?:[1-9]|1\d|2[0-4])?\d|25[0-5])(?:\.(?:(?:[1-9]|1\d|2[0-4])?\d|25[0-5])){3}$|^(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:|(?:[\da-f]{1,4}:){1,6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,5}(?::[\da-f]{1,4}){1,2}|(?:[\da-f]{1,4}:){1,4}(?::[\da-f]{1,4}){1,3}|(?:[\da-f]{1,4}:){1,3}(?::[\da-f]{1,4}){1,4}|(?:[\da-f]{1,4}:){1,2}(?::[\da-f]{1,4}){1,5}|[\da-f]{1,4}:(?::[\da-f]{1,4}){1,6}|:(?:(?::[\da-f]{1,4}){1,7}|:)|fe80:(?::[\da-f]{0,4}){0,4}%[\da-z]+|::(?:f{4}(?::0{1,4})?:)?(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d)|(?:[\da-f]{1,4}:){1,4}:(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d))$/iu,U=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u,F=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])T(?:0\d|1\d|2[0-3]):[0-5]\d$/u,G=/^(?:0\d|1\d|2[0-3]):[0-5]\d$/u,X=/^(?:0\d|1\d|2[0-3])(?::[0-5]\d){2}$/u,H=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])T(?:0\d|1\d|2[0-3])(?::[0-5]\d){2}(?:\.\d{1,9})?(?:Z|[+-](?:0\d|1\d|2[0-3])(?::?[0-5]\d)?)$/u,J=/^\d{4}-W(?:0[1-9]|[1-4]\d|5[0-3])$/u,Z=/^(?:[\da-f]{2}:){5}[\da-f]{2}$|^(?:[\da-f]{2}-){5}[\da-f]{2}$|^(?:[\da-f]{4}\.){2}[\da-f]{4}$/iu,Q=/^(?:[\da-f]{2}:){7}[\da-f]{2}$|^(?:[\da-f]{2}-){7}[\da-f]{2}$|^(?:[\da-f]{4}\.){3}[\da-f]{4}$|^(?:[\da-f]{4}:){3}[\da-f]{4}$/iu,Y=/^(?:[\da-f]{2}:){5}[\da-f]{2}$|^(?:[\da-f]{2}-){5}[\da-f]{2}$|^(?:[\da-f]{4}\.){2}[\da-f]{4}$|^(?:[\da-f]{2}:){7}[\da-f]{2}$|^(?:[\da-f]{2}-){7}[\da-f]{2}$|^(?:[\da-f]{4}\.){3}[\da-f]{4}$|^(?:[\da-f]{4}:){3}[\da-f]{4}$/iu,ee=/^(?:0o)?[0-7]+$/iu,ne=/^[\da-hjkmnp-tv-z]{26}$/iu,se=/^[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}$/iu;var k;function et(s){k={...k,...s}}function l(s){return{lang:s?.lang??k?.lang,message:s?.message,abortEarly:s?.abortEarly??k?.abortEarly,abortPipeEarly:s?.abortPipeEarly??k?.abortPipeEarly}}function nt(){k=void 0}var O;function tt(s,n){O||(O=new Map),O.set(n,s)}function te(s){return O?.get(s)}function rt(s){O?.delete(s)}var B;function at(s,n){B||(B=new Map),B.set(n,s)}function re(s){return B?.get(s)}function ot(s){B?.delete(s)}var g;function pt(s,n,e){g||(g=new Map),g.get(s)||g.set(s,new Map),g.get(s).set(e,n)}function ue(s,n){return g?.get(s)?.get(n)}function ct(s,n){g?.get(s)?.delete(n)}function f(s){let n=typeof s;return n==="object"&&(n=(s&&Object.getPrototypeOf(s)?.constructor?.name)??"null"),n==="string"?`"${s}"`:n==="number"||n==="bigint"||n==="boolean"?`${s}`:n}function r(s,n,e,t,u){let o=u&&"input"in u?u.input:e.value,i=u?.expected??s.expects??null,p=u?.received??f(o),a={kind:s.kind,type:s.type,input:o,expected:i,received:p,message:`Invalid ${n}: ${i?`Expected ${i} but r`:"R"}eceived ${p}`,requirement:s.requirement,path:u?.path,issues:u?.issues,lang:t.lang,abortEarly:t.abortEarly,abortPipeEarly:t.abortPipeEarly},c=s.kind==="schema",I=u?.message??s.message??ue(s.reference,a.lang)??(c?re(a.lang):null)??t.message??te(a.lang);I&&(a.message=typeof I=="function"?I(a):I),c&&(e.typed=!1),e.issues?e.issues.push(a):e.issues=[a]}var ye=/\D/gu;function E(s){let n=s.replace(ye,""),e=n.length,t=1,u=0;for(;e;){let o=+n[--e];t^=1,u+=t?[0,2,4,6,8,1,3,5,7,9][o]:o}return u%10===0}function T(s,n){return Object.hasOwn(s,n)&&n!=="__proto__"&&n!=="prototype"&&n!=="constructor"}function ht(s,n){let e={};for(let t of s)e[t]=n;return e}function ae(s){if(s.path){let n="";for(let e of s.path)if("key"in e&&(typeof e.key=="string"||typeof e.key=="number"))n?n+=`.${e.key}`:n+=e.key;else return null;return n}return null}function kt(s,n){return n.kind===s}function wt(s,n){return n.type===s}function bt(s){return s instanceof h}var h=class extends Error{issues;constructor(n){super(n[0].message),this.name="ValiError",this.issues=n}};function Te(s){return{kind:"validation",type:"bic",reference:Te,async:!1,expects:null,requirement:P,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"BIC",n,e),n}}}function le(s){return{kind:"transformation",type:"brand",reference:le,async:!1,name:s,_run(n){return n}}}function he(s,n){return{kind:"validation",type:"bytes",reference:he,async:!1,expects:`${s}`,requirement:s,message:n,_run(e,t){if(e.typed){let u=new TextEncoder().encode(e.value).length;u!==this.requirement&&r(this,"bytes",e,t,{received:`${u}`})}return e}}}function xe(s,n){return{kind:"validation",type:"check",reference:xe,async:!1,expects:null,requirement:s,message:n,_run(e,t){return e.typed&&!this.requirement(e.value)&&r(this,"input",e,t),e}}}function ge(s,n){return{kind:"validation",type:"check",reference:ge,async:!0,expects:null,requirement:s,message:n,async _run(e,t){return e.typed&&!await this.requirement(e.value)&&r(this,"input",e,t),e}}}function ke(s,n){return{kind:"validation",type:"check_items",reference:ke,async:!1,expects:null,requirement:s,message:n,_run(e,t){if(e.typed)for(let u=0;u<e.value.length;u++){let o=e.value[u];this.requirement(o,u,e.value)||r(this,"item",e,t,{input:o,path:[{type:"array",origin:"value",input:e.value,key:u,value:o}]})}return e}}}var Se=/^(?:\d{14,19}|\d{4}(?: \d{3,6}){2,4}|\d{4}(?:-\d{3,6}){2,4})$/u,we=/[- ]/gu,Oe=[/^3[47]\d{13}$/u,/^3(?:0[0-5]|[68]\d)\d{11,13}$/u,/^6(?:011|5\d{2})\d{12,15}$/u,/^(?:2131|1800|35\d{3})\d{11}$/u,/^5[1-5]\d{2}|(?:222\d|22[3-9]\d|2[3-6]\d{2}|27[01]\d|2720)\d{12}$/u,/^(?:6[27]\d{14,17}|81\d{14,17})$/u,/^4\d{12}(?:\d{3,6})?$/u];function Be(s){return{kind:"validation",type:"credit_card",reference:Be,async:!1,expects:null,requirement(n){let e;return Se.test(n)&&(e=n.replace(we,""))&&Oe.some(t=>t.test(e))&&E(e)},message:s,_run(n,e){return n.typed&&!this.requirement(n.value)&&r(this,"credit card",n,e),n}}}function be(s){return{kind:"validation",type:"cuid2",reference:be,async:!1,expects:null,requirement:q,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"Cuid2",n,e),n}}}function Ee(s){return{kind:"validation",type:"decimal",reference:Ee,async:!1,expects:null,requirement:D,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"decimal",n,e),n}}}function Me(s){return{kind:"validation",type:"email",reference:Me,expects:null,async:!1,requirement:N,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"email",n,e),n}}}function Ae(s){return{kind:"validation",type:"emoji",reference:Ae,async:!1,expects:null,requirement:W,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"emoji",n,e),n}}}function je(s){return{kind:"validation",type:"empty",reference:je,async:!1,expects:"0",message:s,_run(n,e){return n.typed&&n.value.length>0&&r(this,"length",n,e,{received:`${n.value.length}`}),n}}}function ve(s,n){return{kind:"validation",type:"ends_with",reference:ve,async:!1,expects:`"${s}"`,requirement:s,message:n,_run(e,t){return e.typed&&!e.value.endsWith(this.requirement)&&r(this,"end",e,t,{received:`"${e.value.slice(-this.requirement.length)}"`}),e}}}function Re(s,n){return{kind:"validation",type:"every_item",reference:Re,async:!1,expects:null,requirement:s,message:n,_run(e,t){return e.typed&&!e.value.every(this.requirement)&&r(this,"item",e,t),e}}}function _e(s,n){let e=f(s);return{kind:"validation",type:"excludes",reference:_e,async:!1,expects:`!${e}`,requirement:s,message:n,_run(t,u){return t.typed&&t.value.includes(this.requirement)&&r(this,"content",t,u,{received:e}),t}}}function Pe(s){return{kind:"transformation",type:"filter_items",reference:Pe,async:!1,_run(n){return n.value=n.value.filter(s),n}}}function qe(s){return{kind:"transformation",type:"find_item",reference:qe,async:!1,_run(n){return n.value=n.value.find(s),n}}}function De(s){return{kind:"validation",type:"finite",reference:De,async:!1,expects:null,requirement:Number.isFinite,message:s,_run(n,e){return n.typed&&!this.requirement(n.value)&&r(this,"finite",n,e),n}}}var Ne={md4:32,md5:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8,adler32:8};function We(s,n){return{kind:"validation",type:"hash",reference:We,expects:null,async:!1,requirement:RegExp(s.map(e=>`^[a-f0-9]{${Ne[e]}}$`).join("|"),"iu"),message:n,_run(e,t){return e.typed&&!this.requirement.test(e.value)&&r(this,"hash",e,t),e}}}function Ve(s){return{kind:"validation",type:"hexadecimal",reference:Ve,async:!1,expects:null,requirement:V,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"hexadecimal",n,e),n}}}function Ce(s){return{kind:"validation",type:"hex_color",reference:Ce,async:!1,expects:null,requirement:C,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"hex color",n,e),n}}}function Le(s){return{kind:"validation",type:"imei",reference:Le,async:!1,expects:null,requirement(n){return L.test(n)&&E(n)},message:s,_run(n,e){return n.typed&&!this.requirement(n.value)&&r(this,"IMEI",n,e),n}}}function Ke(s,n){let e=f(s);return{kind:"validation",type:"includes",reference:Ke,async:!1,expects:e,requirement:s,message:n,_run(t,u){return t.typed&&!t.value.includes(this.requirement)&&r(this,"content",t,u,{received:`!${e}`}),t}}}function $e(s){return{kind:"validation",type:"integer",reference:$e,async:!1,expects:null,requirement:Number.isInteger,message:s,_run(n,e){return n.typed&&!this.requirement(n.value)&&r(this,"integer",n,e),n}}}function ze(s){return{kind:"validation",type:"ip",reference:ze,async:!1,expects:null,requirement:z,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"IP",n,e),n}}}function Ue(s){return{kind:"validation",type:"ipv4",reference:Ue,async:!1,expects:null,requirement:K,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"IPv4",n,e),n}}}function Fe(s){return{kind:"validation",type:"ipv6",reference:Fe,async:!1,expects:null,requirement:$,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"IPv6",n,e),n}}}function Ge(s){return{kind:"validation",type:"iso_date",reference:Ge,async:!1,expects:null,requirement:U,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"date",n,e),n}}}function Xe(s){return{kind:"validation",type:"iso_date_time",reference:Xe,async:!1,expects:null,requirement:F,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"date-time",n,e),n}}}function He(s){return{kind:"validation",type:"iso_time",reference:He,async:!1,expects:null,requirement:G,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"time",n,e),n}}}function Je(s){return{kind:"validation",type:"iso_time_second",reference:Je,async:!1,expects:null,requirement:X,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"time-second",n,e),n}}}function Ze(s){return{kind:"validation",type:"iso_timestamp",reference:Ze,async:!1,expects:null,requirement:H,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"timestamp",n,e),n}}}function Qe(s){return{kind:"validation",type:"iso_week",reference:Qe,async:!1,expects:null,requirement:J,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"week",n,e),n}}}function Ye(s,n){return{kind:"validation",type:"length",reference:Ye,async:!1,expects:`${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.length!==this.requirement&&r(this,"length",e,t,{received:`${e.value.length}`}),e}}}function en(s){return{kind:"validation",type:"mac",reference:en,async:!1,expects:null,requirement:Y,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"MAC",n,e),n}}}function nn(s){return{kind:"validation",type:"mac48",reference:nn,async:!1,expects:null,requirement:Z,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"48-bit MAC",n,e),n}}}function sn(s){return{kind:"validation",type:"mac64",reference:sn,async:!1,expects:null,requirement:Q,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"64-bit MAC",n,e),n}}}function tn(s){return{kind:"transformation",type:"map_items",reference:tn,async:!1,_run(n){return n.value=n.value.map(s),n}}}function rn(s,n){return{kind:"validation",type:"max_bytes",reference:rn,async:!1,expects:`<=${s}`,requirement:s,message:n,_run(e,t){if(e.typed){let u=new TextEncoder().encode(e.value).length;u>this.requirement&&r(this,"bytes",e,t,{received:`${u}`})}return e}}}function un(s,n){return{kind:"validation",type:"max_length",reference:un,async:!1,expects:`<=${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.length>this.requirement&&r(this,"length",e,t,{received:`${e.value.length}`}),e}}}function an(s,n){return{kind:"validation",type:"max_size",reference:an,async:!1,expects:`<=${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.size>this.requirement&&r(this,"size",e,t,{received:`${e.value.size}`}),e}}}function on(s,n){return{kind:"validation",type:"max_value",reference:on,async:!1,expects:`<=${s instanceof Date?s.toJSON():f(s)}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value>this.requirement&&r(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():f(e.value)}),e}}}function pn(s,n){return{kind:"validation",type:"mime_type",reference:pn,async:!1,expects:s.map(e=>`"${e}"`).join(" | ")||"never",requirement:s,message:n,_run(e,t){return e.typed&&!this.requirement.includes(e.value.type)&&r(this,"MIME type",e,t,{received:`"${e.value.type}"`}),e}}}function cn(s,n){return{kind:"validation",type:"min_bytes",reference:cn,async:!1,expects:`>=${s}`,requirement:s,message:n,_run(e,t){if(e.typed){let u=new TextEncoder().encode(e.value).length;u<this.requirement&&r(this,"bytes",e,t,{received:`${u}`})}return e}}}function In(s,n){return{kind:"validation",type:"min_length",reference:In,async:!1,expects:`>=${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.length<this.requirement&&r(this,"length",e,t,{received:`${e.value.length}`}),e}}}function mn(s,n){return{kind:"validation",type:"min_size",reference:mn,async:!1,expects:`>=${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.size<this.requirement&&r(this,"size",e,t,{received:`${e.value.size}`}),e}}}function dn(s,n){return{kind:"validation",type:"min_value",reference:dn,async:!1,expects:`>=${s instanceof Date?s.toJSON():f(s)}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value<this.requirement&&r(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():f(e.value)}),e}}}function fn(s,n){return{kind:"validation",type:"multiple_of",reference:fn,async:!1,expects:`%${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value%this.requirement!==0&&r(this,"multiple",e,t),e}}}function yn(s){return{kind:"validation",type:"non_empty",reference:yn,async:!1,expects:"!0",message:s,_run(n,e){return n.typed&&n.value.length===0&&r(this,"length",n,e,{received:"0"}),n}}}function Tn(s,n){return{kind:"validation",type:"not_bytes",reference:Tn,async:!1,expects:`!${s}`,requirement:s,message:n,_run(e,t){if(e.typed){let u=new TextEncoder().encode(e.value).length;u===this.requirement&&r(this,"bytes",e,t,{received:`${u}`})}return e}}}function ln(s,n){return{kind:"validation",type:"not_length",reference:ln,async:!1,expects:`!${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.length===this.requirement&&r(this,"length",e,t,{received:`${e.value.length}`}),e}}}function hn(s,n){return{kind:"validation",type:"not_size",reference:hn,async:!1,expects:`!${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.size===this.requirement&&r(this,"size",e,t,{received:`${e.value.size}`}),e}}}function xn(s,n){return{kind:"validation",type:"not_value",reference:xn,async:!1,expects:s instanceof Date?`!${s.toJSON()}`:`!${f(s)}`,requirement:s,message:n,_run(e,t){return e.typed&&this.requirement<=e.value&&this.requirement>=e.value&&r(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():f(e.value)}),e}}}function gn(s){return{kind:"validation",type:"octal",reference:gn,async:!1,expects:null,requirement:ee,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"octal",n,e),n}}}function M(s,n){if(s.issues){for(let e of n)for(let t of s.issues)if(t.kind==="schema"){let u=!1,o=Math.min(e.length,t.path?.length??0);for(let i=0;i<o;i++)if(e[i]!==t.path[i].key){u=!0;break}if(!u)return!1}}return!0}function kn(s,n,e){return{kind:"validation",type:"partial_check",reference:kn,async:!1,expects:null,requirement:n,message:e,_run(t,u){return M(t,s)&&!this.requirement(t.value)&&r(this,"input",t,u),t}}}function Sn(s,n,e){return{kind:"validation",type:"partial_check",reference:Sn,async:!0,expects:null,requirement:n,message:e,async _run(t,u){return M(t,s)&&!await this.requirement(t.value)&&r(this,"input",t,u),t}}}function wn(s){return{kind:"validation",type:"raw_check",reference:wn,async:!1,expects:null,_run(n,e){return s({dataset:n,config:e,addIssue:t=>r(this,t?.label??"input",n,e,t)}),n}}}function On(s){return{kind:"validation",type:"raw_check",reference:On,async:!0,expects:null,async _run(n,e){return await s({dataset:n,config:e,addIssue:t=>r(this,t?.label??"input",n,e,t)}),n}}}function Bn(s){return{kind:"transformation",type:"raw_transform",reference:Bn,async:!1,_run(n,e){let t=s({dataset:n,config:e,addIssue:u=>r(this,u?.label??"input",n,e,u),NEVER:null});return n.issues?n.typed=!1:n.value=t,n}}}function bn(s){return{kind:"transformation",type:"raw_transform",reference:bn,async:!0,async _run(n,e){let t=await s({dataset:n,config:e,addIssue:u=>r(this,u?.label??"input",n,e,u),NEVER:null});return n.issues?n.typed=!1:n.value=t,n}}}function En(){return{kind:"transformation",type:"readonly",reference:En,async:!1,_run(s){return s}}}function Mn(s,n){return{kind:"transformation",type:"reduce_items",reference:Mn,async:!1,_run(e){return e.value=e.value.reduce(s,n),e}}}function An(s,n){return{kind:"validation",type:"regex",reference:An,async:!1,expects:`${s}`,requirement:s,message:n,_run(e,t){return e.typed&&!this.requirement.test(e.value)&&r(this,"format",e,t),e}}}function jn(s){return{kind:"validation",type:"safe_integer",reference:jn,async:!1,expects:null,requirement:Number.isSafeInteger,message:s,_run(n,e){return n.typed&&!this.requirement(n.value)&&r(this,"safe integer",n,e),n}}}function vn(s,n){return{kind:"validation",type:"size",reference:vn,async:!1,expects:`${s}`,requirement:s,message:n,_run(e,t){return e.typed&&e.value.size!==this.requirement&&r(this,"size",e,t,{received:`${e.value.size}`}),e}}}function Rn(s,n){return{kind:"validation",type:"some_item",reference:Rn,async:!1,expects:null,requirement:s,message:n,_run(e,t){return e.typed&&!e.value.some(this.requirement)&&r(this,"item",e,t),e}}}function _n(s){return{kind:"transformation",type:"sort_items",reference:_n,async:!1,_run(n){return n.value=n.value.sort(s),n}}}function Pn(s,n){return{kind:"validation",type:"starts_with",reference:Pn,async:!1,expects:`"${s}"`,requirement:s,message:n,_run(e,t){return e.typed&&!e.value.startsWith(this.requirement)&&r(this,"start",e,t,{received:`"${e.value.slice(0,this.requirement.length)}"`}),e}}}function qn(){return{kind:"transformation",type:"to_lower_case",reference:qn,async:!1,_run(s){return s.value=s.value.toLowerCase(),s}}}function Dn(s){return{kind:"transformation",type:"to_max_value",reference:Dn,async:!1,requirement:s,_run(n){return n.value=n.value>this.requirement?this.requirement:n.value,n}}}function Nn(s){return{kind:"transformation",type:"to_min_value",reference:Nn,async:!1,requirement:s,_run(n){return n.value=n.value<this.requirement?this.requirement:n.value,n}}}function Wn(){return{kind:"transformation",type:"to_upper_case",reference:Wn,async:!1,_run(s){return s.value=s.value.toUpperCase(),s}}}function Vn(s){return{kind:"transformation",type:"transform",reference:Vn,async:!1,action:s,_run(n){return n.value=s(n.value),n}}}function Cn(s){return{kind:"transformation",type:"transform",reference:Cn,async:!0,action:s,async _run(n){return n.value=await s(n.value),n}}}function Ln(){return{kind:"transformation",type:"trim",reference:Ln,async:!1,_run(s){return s.value=s.value.trim(),s}}}function Kn(){return{kind:"transformation",type:"trim_end",reference:Kn,async:!1,_run(s){return s.value=s.value.trimEnd(),s}}}function $n(){return{kind:"transformation",type:"trim_start",reference:$n,async:!1,_run(s){return s.value=s.value.trimStart(),s}}}function zn(s){return{kind:"validation",type:"ulid",reference:zn,async:!1,expects:null,requirement:ne,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"ULID",n,e),n}}}function Un(s){return{kind:"validation",type:"url",reference:Un,async:!1,expects:null,requirement(n){try{return new URL(n),!0}catch{return!1}},message:s,_run(n,e){return n.typed&&!this.requirement(n.value)&&r(this,"URL",n,e),n}}}function Fn(s){return{kind:"validation",type:"uuid",reference:Fn,async:!1,expects:null,requirement:se,message:s,_run(n,e){return n.typed&&!this.requirement.test(n.value)&&r(this,"UUID",n,e),n}}}function Gn(s,n){return{kind:"validation",type:"value",reference:Gn,async:!1,expects:s instanceof Date?s.toJSON():f(s),requirement:s,message:n,_run(e,t){return e.typed&&!(this.requirement<=e.value&&this.requirement>=e.value)&&r(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():f(e.value)}),e}}}function Va(s,n){return{...s,_run(e,t){return s._run(e,{...t,...n})}}}function x(s,n,e){return typeof s.fallback=="function"?s.fallback(n,e):s.fallback}function $a(s,n){return{...s,fallback:n,_run(e,t){return s._run(e,t),e.issues?{typed:!0,value:x(this,e,t)}:e}}}function Fa(s,n){return{...s,fallback:n,async:!0,async _run(e,t){return s._run(e,t),e.issues?{typed:!0,value:await x(this,e,t)}:e}}}function Ha(s){let n={};for(let e of s)if(e.path){let t=ae(e);t?(n.nested||(n.nested={}),n.nested[t]?n.nested[t].push(e.message):n.nested[t]=[e.message]):n.other?n.other.push(e.message):n.other=[e.message]}else n.root?n.root.push(e.message):n.root=[e.message];return n}function Za(s,n){return{...s,_run(e,t){let u=e.issues&&[...e.issues];if(s._run(e,t),e.issues){for(let o of e.issues)if(!u?.includes(o)){let i=e.value;for(let p of n){let a=i[p],c={type:"unknown",origin:"value",input:i,key:p,value:a};if(o.path?o.path.push(c):o.path=[c],!a)break;i=a}}}return e}}}function Ya(s,n){return{...s,async:!0,async _run(e,t){let u=e.issues&&[...e.issues];if(await s._run(e,t),e.issues){for(let o of e.issues)if(!u?.includes(o)){let i=e.value;for(let p of n){let a=i[p],c={type:"unknown",origin:"value",input:i,key:p,value:a};if(o.path?o.path.push(c):o.path=[c],!a)break;i=a}}}return e}}}function y(s,n,e){return typeof s.default=="function"?s.default(n,e):s.default}function oe(s){if("entries"in s){let n={};for(let e in s.entries)n[e]=oe(s.entries[e]);return n}return"items"in s?s.items.map(oe):y(s)}async function ie(s){return"entries"in s?Object.fromEntries(await Promise.all(Object.entries(s.entries).map(async([n,e])=>[n,await ie(e)]))):"items"in s?Promise.all(s.items.map(ie)):y(s)}function pe(s){if("entries"in s){let n={};for(let e in s.entries)n[e]=pe(s.entries[e]);return n}return"items"in s?s.items.map(pe):x(s)}async function ce(s){return"entries"in s?Object.fromEntries(await Promise.all(Object.entries(s.entries).map(async([n,e])=>[n,await ce(e)]))):"items"in s?Promise.all(s.items.map(ce)):x(s)}function co(s,n){return!s._run({typed:!1,value:n},{abortEarly:!0}).issues}function Xn(){return{kind:"schema",type:"any",reference:Xn,expects:"any",async:!1,_run(s){return s.typed=!0,s}}}function Hn(s,n){return{kind:"schema",type:"array",reference:Hn,expects:"Array",async:!1,item:s,message:n,_run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];for(let o=0;o<u.length;o++){let i=u[o],p=this.item._run({typed:!1,value:i},t);if(p.issues){let a={type:"array",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),e.value.push(p.value)}}else r(this,"type",e,t);return e}}}function Jn(s,n){return{kind:"schema",type:"array",reference:Jn,expects:"Array",async:!0,item:s,message:n,async _run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];let o=await Promise.all(u.map(i=>this.item._run({typed:!1,value:i},t)));for(let i=0;i<o.length;i++){let p=o[i];if(p.issues){let a={type:"array",origin:"value",input:u,key:i,value:u[i]};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),e.value.push(p.value)}}else r(this,"type",e,t);return e}}}function Zn(s){return{kind:"schema",type:"bigint",reference:Zn,expects:"bigint",async:!1,message:s,_run(n,e){return typeof n.value=="bigint"?n.typed=!0:r(this,"type",n,e),n}}}function Qn(s){return{kind:"schema",type:"blob",reference:Qn,expects:"Blob",async:!1,message:s,_run(n,e){return n.value instanceof Blob?n.typed=!0:r(this,"type",n,e),n}}}function Yn(s){return{kind:"schema",type:"boolean",reference:Yn,expects:"boolean",async:!1,message:s,_run(n,e){return typeof n.value=="boolean"?n.typed=!0:r(this,"type",n,e),n}}}function es(s,n){return{kind:"schema",type:"custom",reference:es,expects:"unknown",async:!1,check:s,message:n,_run(e,t){return this.check(e.value)?e.typed=!0:r(this,"type",e,t),e}}}function ns(s,n){return{kind:"schema",type:"custom",reference:ns,expects:"unknown",async:!0,check:s,message:n,async _run(e,t){return await this.check(e.value)?e.typed=!0:r(this,"type",e,t),e}}}function ss(s){return{kind:"schema",type:"date",reference:ss,expects:"Date",async:!1,message:s,_run(n,e){return n.value instanceof Date?isNaN(n.value)?r(this,"type",n,e,{received:'"Invalid Date"'}):n.typed=!0:r(this,"type",n,e),n}}}function ts(s,n){let e=Object.entries(s).filter(([t])=>isNaN(+t)).map(([,t])=>t);return{kind:"schema",type:"enum",reference:ts,expects:e.map(f).join(" | ")||"never",async:!1,enum:s,options:e,message:n,_run(t,u){return this.options.includes(t.value)?t.typed=!0:r(this,"type",t,u),t}}}function rs(s,n){return{kind:"schema",type:"instance",reference:rs,expects:s.name,async:!1,class:s,message:n,_run(e,t){return e.value instanceof this.class?e.typed=!0:r(this,"type",e,t),e}}}function S(s,n){if(typeof s==typeof n){if(s===n||s instanceof Date&&n instanceof Date&&+s==+n)return{value:s};if(s&&n&&s.constructor===Object&&n.constructor===Object){for(let e in n)if(e in s){let t=S(s[e],n[e]);if(t.issue)return t;s[e]=t.value}else s[e]=n[e];return{value:s}}if(Array.isArray(s)&&Array.isArray(n)&&s.length===n.length){for(let e=0;e<s.length;e++){let t=S(s[e],n[e]);if(t.issue)return t;s[e]=t.value}return{value:s}}}return{issue:!0}}function us(s,n){return{kind:"schema",type:"intersect",reference:us,expects:[...new Set(s.map(e=>e.expects))].join(" & ")||"never",async:!1,options:s,message:n,_run(e,t){if(this.options.length){let u=e.value,o;e.typed=!0;for(let i of this.options){let p=i._run({typed:!1,value:u},t);if(p.issues&&(e.issues?e.issues.push(...p.issues):e.issues=p.issues,t.abortEarly)){e.typed=!1;break}p.typed||(e.typed=!1),e.typed&&(o?o.push(p.value):o=[p.value])}if(e.typed){e.value=o[0];for(let i=1;i<o.length;i++){let p=S(e.value,o[i]);if(p.issue){r(this,"type",e,t,{received:"unknown"});break}e.value=p.value}}}else r(this,"type",e,t);return e}}}function as(s,n){return{kind:"schema",type:"intersect",reference:as,expects:[...new Set(s.map(e=>e.expects))].join(" & ")||"never",async:!0,options:s,message:n,async _run(e,t){if(this.options.length){let u=e.value,o;e.typed=!0;let i=await Promise.all(this.options.map(p=>p._run({typed:!1,value:u},t)));for(let p of i){if(p.issues&&(e.issues?e.issues.push(...p.issues):e.issues=p.issues,t.abortEarly)){e.typed=!1;break}p.typed||(e.typed=!1),e.typed&&(o?o.push(p.value):o=[p.value])}if(e.typed){e.value=o[0];for(let p=1;p<o.length;p++){let a=S(e.value,o[p]);if(a.issue){r(this,"type",e,t,{received:"unknown"});break}e.value=a.value}}}else r(this,"type",e,t);return e}}}function os(s){return{kind:"schema",type:"lazy",reference:os,expects:"unknown",async:!1,getter:s,_run(n,e){return this.getter(n.value)._run(n,e)}}}function is(s){return{kind:"schema",type:"lazy",reference:is,expects:"unknown",async:!0,getter:s,async _run(n,e){return(await this.getter(n.value))._run(n,e)}}}function ps(s,n){return{kind:"schema",type:"literal",reference:ps,expects:f(s),async:!1,literal:s,message:n,_run(e,t){return e.value===this.literal?e.typed=!0:r(this,"type",e,t),e}}}function cs(s,n){return{kind:"schema",type:"loose_object",reference:cs,expects:"Object",async:!1,entries:s,message:n,_run(e,t){let u=e.value;if(u&&typeof u=="object"){e.typed=!0,e.value={};for(let o in this.entries){let i=u[o],p=this.entries[o]._run({typed:!1,value:i},t);if(p.issues){let a={type:"object",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),(p.value!==void 0||o in u)&&(e.value[o]=p.value)}if(!e.issues||!t.abortEarly)for(let o in u)T(u,o)&&!(o in this.entries)&&(e.value[o]=u[o])}else r(this,"type",e,t);return e}}}function Is(s,n){return{kind:"schema",type:"loose_object",reference:Is,expects:"Object",async:!0,entries:s,message:n,async _run(e,t){let u=e.value;if(u&&typeof u=="object"){e.typed=!0,e.value={};let o=await Promise.all(Object.entries(this.entries).map(async([i,p])=>{let a=u[i];return[i,a,await p._run({typed:!1,value:a},t)]}));for(let[i,p,a]of o){if(a.issues){let c={type:"object",origin:"value",input:u,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],e.issues?.push(I);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),(a.value!==void 0||i in u)&&(e.value[i]=a.value)}if(!e.issues||!t.abortEarly)for(let i in u)T(u,i)&&!(i in this.entries)&&(e.value[i]=u[i])}else r(this,"type",e,t);return e}}}function ms(s,n){return{kind:"schema",type:"loose_tuple",reference:ms,expects:"Array",async:!1,items:s,message:n,_run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];for(let o=0;o<this.items.length;o++){let i=u[o],p=this.items[o]._run({typed:!1,value:i},t);if(p.issues){let a={type:"array",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),e.value.push(p.value)}if(!e.issues||!t.abortEarly)for(let o=this.items.length;o<u.length;o++)e.value.push(u[o])}else r(this,"type",e,t);return e}}}function ds(s,n){return{kind:"schema",type:"loose_tuple",reference:ds,expects:"Array",async:!0,items:s,message:n,async _run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];let o=await Promise.all(this.items.map(async(i,p)=>{let a=u[p];return[p,a,await i._run({typed:!1,value:a},t)]}));for(let[i,p,a]of o){if(a.issues){let c={type:"array",origin:"value",input:u,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],e.issues?.push(I);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}if(!e.issues||!t.abortEarly)for(let i=this.items.length;i<u.length;i++)e.value.push(u[i])}else r(this,"type",e,t);return e}}}function fs(s,n,e){return{kind:"schema",type:"map",reference:fs,expects:"Map",async:!1,key:s,value:n,message:e,_run(t,u){let o=t.value;if(o instanceof Map){t.typed=!0,t.value=new Map;for(let[i,p]of o){let a=this.key._run({typed:!1,value:i},u);if(a.issues){let I={type:"map",origin:"key",input:o,key:i,value:p};for(let m of a.issues)m.path?m.path.unshift(I):m.path=[I],t.issues?.push(m);if(t.issues||(t.issues=a.issues),u.abortEarly){t.typed=!1;break}}let c=this.value._run({typed:!1,value:p},u);if(c.issues){let I={type:"map",origin:"value",input:o,key:i,value:p};for(let m of c.issues)m.path?m.path.unshift(I):m.path=[I],t.issues?.push(m);if(t.issues||(t.issues=c.issues),u.abortEarly){t.typed=!1;break}}(!a.typed||!c.typed)&&(t.typed=!1),t.value.set(a.value,c.value)}}else r(this,"type",t,u);return t}}}function ys(s,n,e){return{kind:"schema",type:"map",reference:ys,expects:"Map",async:!0,key:s,value:n,message:e,async _run(t,u){let o=t.value;if(o instanceof Map){t.typed=!0,t.value=new Map;let i=await Promise.all([...o].map(([p,a])=>Promise.all([p,a,this.key._run({typed:!1,value:p},u),this.value._run({typed:!1,value:a},u)])));for(let[p,a,c,I]of i){if(c.issues){let m={type:"map",origin:"key",input:o,key:p,value:a};for(let d of c.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=c.issues),u.abortEarly){t.typed=!1;break}}if(I.issues){let m={type:"map",origin:"value",input:o,key:p,value:a};for(let d of I.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=I.issues),u.abortEarly){t.typed=!1;break}}(!c.typed||!I.typed)&&(t.typed=!1),t.value.set(c.value,I.value)}}else r(this,"type",t,u);return t}}}function Ts(s){return{kind:"schema",type:"nan",reference:Ts,expects:"NaN",async:!1,message:s,_run(n,e){return Number.isNaN(n.value)?n.typed=!0:r(this,"type",n,e),n}}}function ls(s){return{kind:"schema",type:"never",reference:ls,expects:"never",async:!1,message:s,_run(n,e){return r(this,"type",n,e),n}}}function hs(s,n){return{kind:"schema",type:"non_nullable",reference:hs,expects:"!null",async:!1,wrapped:s,message:n,_run(e,t){return e.value===null?(r(this,"type",e,t),e):this.wrapped._run(e,t)}}}function xs(s,n){return{kind:"schema",type:"non_nullable",reference:xs,expects:"!null",async:!0,wrapped:s,message:n,async _run(e,t){return e.value===null?(r(this,"type",e,t),e):this.wrapped._run(e,t)}}}function gs(s,n){return{kind:"schema",type:"non_nullish",reference:gs,expects:"!null & !undefined",async:!1,wrapped:s,message:n,_run(e,t){return e.value===null||e.value===void 0?(r(this,"type",e,t),e):this.wrapped._run(e,t)}}}function ks(s,n){return{kind:"schema",type:"non_nullish",reference:ks,expects:"!null & !undefined",async:!0,wrapped:s,message:n,async _run(e,t){return e.value===null||e.value===void 0?(r(this,"type",e,t),e):this.wrapped._run(e,t)}}}function A(s,n){return{kind:"schema",type:"non_optional",reference:A,expects:"!undefined",async:!1,wrapped:s,message:n,_run(e,t){return e.value===void 0?(r(this,"type",e,t),e):this.wrapped._run(e,t)}}}function j(s,n){return{kind:"schema",type:"non_optional",reference:j,expects:"!undefined",async:!0,wrapped:s,message:n,async _run(e,t){return e.value===void 0?(r(this,"type",e,t),e):this.wrapped._run(e,t)}}}function Ss(s){return{kind:"schema",type:"null",reference:Ss,expects:"null",async:!1,message:s,_run(n,e){return n.value===null?n.typed=!0:r(this,"type",n,e),n}}}function ws(s,...n){let e={kind:"schema",type:"nullable",reference:ws,expects:`${s.expects} | null`,async:!1,wrapped:s,_run(t,u){return t.value===null&&("default"in this&&(t.value=y(this,t,u)),t.value===null)?(t.typed=!0,t):this.wrapped._run(t,u)}};return 0 in n&&(e.default=n[0]),e}function Os(s,...n){let e={kind:"schema",type:"nullable",reference:Os,expects:`${s.expects} | null`,async:!0,wrapped:s,async _run(t,u){return t.value===null&&("default"in this&&(t.value=await y(this,t,u)),t.value===null)?(t.typed=!0,t):this.wrapped._run(t,u)}};return 0 in n&&(e.default=n[0]),e}function Bs(s,...n){let e={kind:"schema",type:"nullish",reference:Bs,expects:`${s.expects} | null | undefined`,async:!1,wrapped:s,_run(t,u){return(t.value===null||t.value===void 0)&&("default"in this&&(t.value=y(this,t,u)),t.value===null||t.value===void 0)?(t.typed=!0,t):this.wrapped._run(t,u)}};return 0 in n&&(e.default=n[0]),e}function bs(s,...n){let e={kind:"schema",type:"nullish",reference:bs,expects:`${s.expects} | null | undefined`,async:!0,wrapped:s,async _run(t,u){return(t.value===null||t.value===void 0)&&("default"in this&&(t.value=await y(this,t,u)),t.value===null||t.value===void 0)?(t.typed=!0,t):this.wrapped._run(t,u)}};return 0 in n&&(e.default=n[0]),e}function Es(s){return{kind:"schema",type:"number",reference:Es,expects:"number",async:!1,message:s,_run(n,e){return typeof n.value=="number"&&!isNaN(n.value)?n.typed=!0:r(this,"type",n,e),n}}}function Ms(s,n){return{kind:"schema",type:"object",reference:Ms,expects:"Object",async:!1,entries:s,message:n,_run(e,t){let u=e.value;if(u&&typeof u=="object"){e.typed=!0,e.value={};for(let o in this.entries){let i=u[o],p=this.entries[o]._run({typed:!1,value:i},t);if(p.issues){let a={type:"object",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),(p.value!==void 0||o in u)&&(e.value[o]=p.value)}}else r(this,"type",e,t);return e}}}function As(s,n){return{kind:"schema",type:"object",reference:As,expects:"Object",async:!0,entries:s,message:n,async _run(e,t){let u=e.value;if(u&&typeof u=="object"){e.typed=!0,e.value={};let o=await Promise.all(Object.entries(this.entries).map(async([i,p])=>{let a=u[i];return[i,a,await p._run({typed:!1,value:a},t)]}));for(let[i,p,a]of o){if(a.issues){let c={type:"object",origin:"value",input:u,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],e.issues?.push(I);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),(a.value!==void 0||i in u)&&(e.value[i]=a.value)}}else r(this,"type",e,t);return e}}}function js(s,n,e){return{kind:"schema",type:"object_with_rest",reference:js,expects:"Object",async:!1,entries:s,rest:n,message:e,_run(t,u){let o=t.value;if(o&&typeof o=="object"){t.typed=!0,t.value={};for(let i in this.entries){let p=o[i],a=this.entries[i]._run({typed:!1,value:p},u);if(a.issues){let c={type:"object",origin:"value",input:o,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],t.issues?.push(I);if(t.issues||(t.issues=a.issues),u.abortEarly){t.typed=!1;break}}a.typed||(t.typed=!1),(a.value!==void 0||i in o)&&(t.value[i]=a.value)}if(!t.issues||!u.abortEarly){for(let i in o)if(T(o,i)&&!(i in this.entries)){let p=o[i],a=this.rest._run({typed:!1,value:p},u);if(a.issues){let c={type:"object",origin:"value",input:o,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],t.issues?.push(I);if(t.issues||(t.issues=a.issues),u.abortEarly){t.typed=!1;break}}a.typed||(t.typed=!1),t.value[i]=a.value}}}else r(this,"type",t,u);return t}}}function vs(s,n,e){return{kind:"schema",type:"object_with_rest",reference:vs,expects:"Object",async:!0,entries:s,rest:n,message:e,async _run(t,u){let o=t.value;if(o&&typeof o=="object"){t.typed=!0,t.value={};let[i,p]=await Promise.all([Promise.all(Object.entries(this.entries).map(async([a,c])=>{let I=o[a];return[a,I,await c._run({typed:!1,value:I},u)]})),Promise.all(Object.entries(o).filter(([a])=>T(o,a)&&!(a in this.entries)).map(async([a,c])=>[a,c,await this.rest._run({typed:!1,value:c},u)]))]);for(let[a,c,I]of i){if(I.issues){let m={type:"object",origin:"value",input:o,key:a,value:c};for(let d of I.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=I.issues),u.abortEarly){t.typed=!1;break}}I.typed||(t.typed=!1),(I.value!==void 0||a in o)&&(t.value[a]=I.value)}if(!t.issues||!u.abortEarly)for(let[a,c,I]of p){if(I.issues){let m={type:"object",origin:"value",input:o,key:a,value:c};for(let d of I.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=I.issues),u.abortEarly){t.typed=!1;break}}I.typed||(t.typed=!1),t.value[a]=I.value}}else r(this,"type",t,u);return t}}}function v(s,...n){let e={kind:"schema",type:"optional",reference:v,expects:`${s.expects} | undefined`,async:!1,wrapped:s,_run(t,u){return t.value===void 0&&("default"in this&&(t.value=y(this,t,u)),t.value===void 0)?(t.typed=!0,t):this.wrapped._run(t,u)}};return 0 in n&&(e.default=n[0]),e}function R(s,...n){let e={kind:"schema",type:"optional",reference:R,expects:`${s.expects} | undefined`,async:!0,wrapped:s,async _run(t,u){return t.value===void 0&&("default"in this&&(t.value=await y(this,t,u)),t.value===void 0)?(t.typed=!0,t):this.wrapped._run(t,u)}};return 0 in n&&(e.default=n[0]),e}function _(s,n){return{kind:"schema",type:"picklist",reference:_,expects:s.map(f).join(" | ")||"never",async:!1,options:s,message:n,_run(e,t){return this.options.includes(e.value)?e.typed=!0:r(this,"type",e,t),e}}}function Rs(s,n,e){return{kind:"schema",type:"record",reference:Rs,expects:"Object",async:!1,key:s,value:n,message:e,_run(t,u){let o=t.value;if(o&&typeof o=="object"){t.typed=!0,t.value={};for(let i in o)if(T(o,i)){let p=o[i],a=this.key._run({typed:!1,value:i},u);if(a.issues){let I={type:"object",origin:"key",input:o,key:i,value:p};for(let m of a.issues)m.path=[I],t.issues?.push(m);if(t.issues||(t.issues=a.issues),u.abortEarly){t.typed=!1;break}}let c=this.value._run({typed:!1,value:p},u);if(c.issues){let I={type:"object",origin:"value",input:o,key:i,value:p};for(let m of c.issues)m.path?m.path.unshift(I):m.path=[I],t.issues?.push(m);if(t.issues||(t.issues=c.issues),u.abortEarly){t.typed=!1;break}}(!a.typed||!c.typed)&&(t.typed=!1),a.typed&&(t.value[a.value]=c.value)}}else r(this,"type",t,u);return t}}}function _s(s,n,e){return{kind:"schema",type:"record",reference:_s,expects:"Object",async:!0,key:s,value:n,message:e,async _run(t,u){let o=t.value;if(o&&typeof o=="object"){t.typed=!0,t.value={};let i=await Promise.all(Object.entries(o).filter(([p])=>T(o,p)).map(([p,a])=>Promise.all([p,a,this.key._run({typed:!1,value:p},u),this.value._run({typed:!1,value:a},u)])));for(let[p,a,c,I]of i){if(c.issues){let m={type:"object",origin:"key",input:o,key:p,value:a};for(let d of c.issues)d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=c.issues),u.abortEarly){t.typed=!1;break}}if(I.issues){let m={type:"object",origin:"value",input:o,key:p,value:a};for(let d of I.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=I.issues),u.abortEarly){t.typed=!1;break}}(!c.typed||!I.typed)&&(t.typed=!1),c.typed&&(t.value[c.value]=I.value)}}else r(this,"type",t,u);return t}}}function Ps(s,n){return{kind:"schema",type:"set",reference:Ps,expects:"Set",async:!1,value:s,message:n,_run(e,t){let u=e.value;if(u instanceof Set){e.typed=!0,e.value=new Set;for(let o of u){let i=this.value._run({typed:!1,value:o},t);if(i.issues){let p={type:"set",origin:"value",input:u,value:o};for(let a of i.issues)a.path?a.path.unshift(p):a.path=[p],e.issues?.push(a);if(e.issues||(e.issues=i.issues),t.abortEarly){e.typed=!1;break}}i.typed||(e.typed=!1),e.value.add(i.value)}}else r(this,"type",e,t);return e}}}function qs(s,n){return{kind:"schema",type:"set",reference:qs,expects:"Set",async:!0,value:s,message:n,async _run(e,t){let u=e.value;if(u instanceof Set){e.typed=!0,e.value=new Set;let o=await Promise.all([...u].map(async i=>[i,await this.value._run({typed:!1,value:i},t)]));for(let[i,p]of o){if(p.issues){let a={type:"set",origin:"value",input:u,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),e.value.add(p.value)}}else r(this,"type",e,t);return e}}}function Ds(s,n){return{kind:"schema",type:"strict_object",reference:Ds,expects:"Object",async:!1,entries:s,message:n,_run(e,t){let u=e.value;if(u&&typeof u=="object"){e.typed=!0,e.value={};for(let o in this.entries){let i=u[o],p=this.entries[o]._run({typed:!1,value:i},t);if(p.issues){let a={type:"object",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),(p.value!==void 0||o in u)&&(e.value[o]=p.value)}if(!e.issues||!t.abortEarly){for(let o in u)if(!(o in this.entries)){let i=u[o];r(this,"type",e,t,{input:i,expected:"never",path:[{type:"object",origin:"value",input:u,key:o,value:i}]});break}}}else r(this,"type",e,t);return e}}}function Ns(s,n){return{kind:"schema",type:"strict_object",reference:Ns,expects:"Object",async:!0,entries:s,message:n,async _run(e,t){let u=e.value;if(u&&typeof u=="object"){e.typed=!0,e.value={};let o=await Promise.all(Object.entries(this.entries).map(async([i,p])=>{let a=u[i];return[i,a,await p._run({typed:!1,value:a},t)]}));for(let[i,p,a]of o){if(a.issues){let c={type:"object",origin:"value",input:u,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],e.issues?.push(I);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),(a.value!==void 0||i in u)&&(e.value[i]=a.value)}if(!e.issues||!t.abortEarly){for(let i in u)if(!(i in this.entries)){let p=u[i];r(this,"type",e,t,{input:p,expected:"never",path:[{type:"object",origin:"value",input:u,key:i,value:p}]});break}}}else r(this,"type",e,t);return e}}}function Ws(s,n){return{kind:"schema",type:"strict_tuple",reference:Ws,expects:"Array",async:!1,items:s,message:n,_run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];for(let o=0;o<this.items.length;o++){let i=u[o],p=this.items[o]._run({typed:!1,value:i},t);if(p.issues){let a={type:"array",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),e.value.push(p.value)}if(!(e.issues&&t.abortEarly)&&this.items.length<u.length){let o=u[s.length];r(this,"type",e,t,{input:o,expected:"never",path:[{type:"array",origin:"value",input:u,key:this.items.length,value:o}]})}}else r(this,"type",e,t);return e}}}function Vs(s,n){return{kind:"schema",type:"strict_tuple",reference:Vs,expects:"Array",async:!0,items:s,message:n,async _run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];let o=await Promise.all(this.items.map(async(i,p)=>{let a=u[p];return[p,a,await i._run({typed:!1,value:a},t)]}));for(let[i,p,a]of o){if(a.issues){let c={type:"array",origin:"value",input:u,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],e.issues?.push(I);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}if(!(e.issues&&t.abortEarly)&&this.items.length<u.length){let i=u[s.length];r(this,"type",e,t,{input:i,expected:"never",path:[{type:"array",origin:"value",input:u,key:this.items.length,value:i}]})}}else r(this,"type",e,t);return e}}}function Cs(s){return{kind:"schema",type:"string",reference:Cs,expects:"string",async:!1,message:s,_run(n,e){return typeof n.value=="string"?n.typed=!0:r(this,"type",n,e),n}}}function Ls(s){return{kind:"schema",type:"symbol",reference:Ls,expects:"symbol",async:!1,message:s,_run(n,e){return typeof n.value=="symbol"?n.typed=!0:r(this,"type",n,e),n}}}function Ks(s,n){return{kind:"schema",type:"tuple",reference:Ks,expects:"Array",async:!1,items:s,message:n,_run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];for(let o=0;o<this.items.length;o++){let i=u[o],p=this.items[o]._run({typed:!1,value:i},t);if(p.issues){let a={type:"array",origin:"value",input:u,key:o,value:i};for(let c of p.issues)c.path?c.path.unshift(a):c.path=[a],e.issues?.push(c);if(e.issues||(e.issues=p.issues),t.abortEarly){e.typed=!1;break}}p.typed||(e.typed=!1),e.value.push(p.value)}}else r(this,"type",e,t);return e}}}function $s(s,n){return{kind:"schema",type:"tuple",reference:$s,expects:"Array",async:!0,items:s,message:n,async _run(e,t){let u=e.value;if(Array.isArray(u)){e.typed=!0,e.value=[];let o=await Promise.all(this.items.map(async(i,p)=>{let a=u[p];return[p,a,await i._run({typed:!1,value:a},t)]}));for(let[i,p,a]of o){if(a.issues){let c={type:"array",origin:"value",input:u,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],e.issues?.push(I);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else r(this,"type",e,t);return e}}}function zs(s,n,e){return{kind:"schema",type:"tuple_with_rest",reference:zs,expects:"Array",async:!1,items:s,rest:n,message:e,_run(t,u){let o=t.value;if(Array.isArray(o)){t.typed=!0,t.value=[];for(let i=0;i<this.items.length;i++){let p=o[i],a=this.items[i]._run({typed:!1,value:p},u);if(a.issues){let c={type:"array",origin:"value",input:o,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],t.issues?.push(I);if(t.issues||(t.issues=a.issues),u.abortEarly){t.typed=!1;break}}a.typed||(t.typed=!1),t.value.push(a.value)}if(!t.issues||!u.abortEarly)for(let i=this.items.length;i<o.length;i++){let p=o[i],a=this.rest._run({typed:!1,value:p},u);if(a.issues){let c={type:"array",origin:"value",input:o,key:i,value:p};for(let I of a.issues)I.path?I.path.unshift(c):I.path=[c],t.issues?.push(I);if(t.issues||(t.issues=a.issues),u.abortEarly){t.typed=!1;break}}a.typed||(t.typed=!1),t.value.push(a.value)}}else r(this,"type",t,u);return t}}}function Us(s,n,e){return{kind:"schema",type:"tuple_with_rest",reference:Us,expects:"Array",async:!0,items:s,rest:n,message:e,async _run(t,u){let o=t.value;if(Array.isArray(o)){t.typed=!0,t.value=[];let[i,p]=await Promise.all([Promise.all(this.items.map(async(a,c)=>{let I=o[c];return[c,I,await a._run({typed:!1,value:I},u)]})),Promise.all(o.slice(this.items.length).map(async(a,c)=>[c+this.items.length,a,await this.rest._run({typed:!1,value:a},u)]))]);for(let[a,c,I]of i){if(I.issues){let m={type:"array",origin:"value",input:o,key:a,value:c};for(let d of I.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=I.issues),u.abortEarly){t.typed=!1;break}}I.typed||(t.typed=!1),t.value.push(I.value)}if(!t.issues||!u.abortEarly)for(let[a,c,I]of p){if(I.issues){let m={type:"array",origin:"value",input:o,key:a,value:c};for(let d of I.issues)d.path?d.path.unshift(m):d.path=[m],t.issues?.push(d);if(t.issues||(t.issues=I.issues),u.abortEarly){t.typed=!1;break}}I.typed||(t.typed=!1),t.value.push(I.value)}}else r(this,"type",t,u);return t}}}function Fs(s){return{kind:"schema",type:"undefined",reference:Fs,expects:"undefined",async:!1,message:s,_run(n,e){return n.value===void 0?n.typed=!0:r(this,"type",n,e),n}}}function w(s){let n;if(s)for(let e of s)n?n.push(...e.issues):n=e.issues;return n}function Gs(s,n){return{kind:"schema",type:"union",reference:Gs,expects:[...new Set(s.map(e=>e.expects))].join(" | ")||"never",async:!1,options:s,message:n,_run(e,t){let u,o,i;for(let p of this.options){let a=p._run({typed:!1,value:e.value},t);if(a.typed)if(a.issues)o?o.push(a):o=[a];else{u=a;break}else i?i.push(a):i=[a]}if(u)return u;if(o){if(o.length===1)return o[0];r(this,"type",e,t,{issues:w(o)}),e.typed=!0}else{if(i?.length===1)return i[0];r(this,"type",e,t,{issues:w(i)})}return e}}}function Xs(s,n){return{kind:"schema",type:"union",reference:Xs,expects:[...new Set(s.map(e=>e.expects))].join(" | ")||"never",async:!0,options:s,message:n,async _run(e,t){let u,o,i;for(let p of this.options){let a=await p._run({typed:!1,value:e.value},t);if(a.typed)if(a.issues)o?o.push(a):o=[a];else{u=a;break}else i?i.push(a):i=[a]}if(u)return u;if(o){if(o.length===1)return o[0];r(this,"type",e,t,{issues:w(o)}),e.typed=!0}else{if(i?.length===1)return i[0];r(this,"type",e,t,{issues:w(i)})}return e}}}function Hs(){return{kind:"schema",type:"unknown",reference:Hs,expects:"unknown",async:!1,_run(s){return s.typed=!0,s}}}function b(s,n,e=new Set){for(let t of n)t.type==="variant"?b(s,t.options,e):e.add(t.entries[s].expects);return e}function Js(s,n,e){let t;return{kind:"schema",type:"variant",reference:Js,expects:"Object",async:!1,key:s,options:n,message:e,_run(u,o){let i=u.value;if(i&&typeof i=="object"){let p=i[this.key];if(this.key in i){let a;for(let c of this.options)if(c.type==="variant"||!c.entries[this.key]._run({typed:!1,value:p},o).issues){let I=c._run({typed:!1,value:i},o);if(!I.issues)return I;(!a||!a.typed&&I.typed)&&(a=I)}if(a)return a}t||(t=[...b(this.key,this.options)].join(" | ")||"never"),r(this,"type",u,o,{input:p,expected:t,path:[{type:"object",origin:"value",input:i,key:this.key,value:p}]})}else r(this,"type",u,o);return u}}}function Zs(s,n,e){let t;return{kind:"schema",type:"variant",reference:Zs,expects:"Object",async:!0,key:s,options:n,message:e,async _run(u,o){let i=u.value;if(i&&typeof i=="object"){let p=i[this.key];if(this.key in i){let a;for(let c of this.options)if(c.type==="variant"||!(await c.entries[this.key]._run({typed:!1,value:p},o)).issues){let I=await c._run({typed:!1,value:i},o);if(!I.issues)return I;(!a||!a.typed&&I.typed)&&(a=I)}if(a)return a}t||(t=[...b(this.key,this.options)].join(" | ")||"never"),r(this,"type",u,o,{input:p,expected:t,path:[{type:"object",origin:"value",input:i,key:this.key,value:p}]})}else r(this,"type",u,o);return u}}}function Qs(s){return{kind:"schema",type:"void",reference:Qs,expects:"void",async:!1,message:s,_run(n,e){return n.value===void 0?n.typed=!0:r(this,"type",n,e),n}}}function Vp(s,n){return _(Object.keys(s.entries),n)}function Lp(s,n){let e={...s.entries};for(let t of n)delete e[t];return{...s,entries:e}}function Ie(s,n,e){let t=s._run({typed:!1,value:n},l(e));if(t.issues)throw new h(t.issues);return t.value}async function me(s,n,e){let t=await s._run({typed:!1,value:n},l(e));if(t.issues)throw new h(t.issues);return t.value}function Jp(s,n){let e=t=>Ie(s,t,n);return e.schema=s,e.config=n,e}function Yp(s,n){let e=t=>me(s,t,n);return e.schema=s,e.config=n,e}function sc(s,n){let e={};for(let t in s.entries)e[t]=!n||n.includes(t)?v(s.entries[t]):s.entries[t];return{...s,entries:e}}function uc(s,n){let e={};for(let t in s.entries)e[t]=!n||n.includes(t)?R(s.entries[t]):s.entries[t];return{...s,entries:e}}function oc(s,n){let e={};for(let t of n)e[t]=s.entries[t];return{...s,entries:e}}function pc(...s){return{...s[0],pipe:s,_run(n,e){for(let t=0;t<s.length;t++){if(n.issues&&(s[t].kind==="schema"||s[t].kind==="transformation")){n.typed=!1;break}(!n.issues||!e.abortEarly&&!e.abortPipeEarly)&&(n=s[t]._run(n,e))}return n}}}function Ic(...s){return{...s[0],pipe:s,async:!0,async _run(n,e){for(let t=0;t<s.length;t++){if(n.issues&&(s[t].kind==="schema"||s[t].kind==="transformation")){n.typed=!1;break}(!n.issues||!e.abortEarly&&!e.abortPipeEarly)&&(n=await s[t]._run(n,e))}return n}}}function fc(s,n,e){let t=Array.isArray(n)?n:void 0,u=Array.isArray(n)?e:n,o={};for(let i in s.entries)o[i]=!t||t.includes(i)?A(s.entries[i],u):s.entries[i];return{...s,entries:o}}function lc(s,n,e){let t=Array.isArray(n)?n:void 0,u=Array.isArray(n)?e:n,o={};for(let i in s.entries)o[i]=!t||t.includes(i)?j(s.entries[i],u):s.entries[i];return{...s,entries:o}}function de(s,n,e){let t=s._run({typed:!1,value:n},l(e));return{typed:t.typed,success:!t.issues,output:t.value,issues:t.issues}}async function fe(s,n,e){let t=await s._run({typed:!1,value:n},l(e));return{typed:t.typed,success:!t.issues,output:t.value,issues:t.issues}}function Oc(s,n){let e=t=>de(s,t,n);return e.schema=s,e.config=n,e}function Ec(s,n){let e=t=>fe(s,t,n);return e.schema=s,e.config=n,e}function Ac(s){return s.wrapped}export{P as BIC_REGEX,q as CUID2_REGEX,D as DECIMAL_REGEX,N as EMAIL_REGEX,W as EMOJI_REGEX,V as HEXADECIMAL_REGEX,C as HEX_COLOR_REGEX,L as IMEI_REGEX,K as IPV4_REGEX,$ as IPV6_REGEX,z as IP_REGEX,U as ISO_DATE_REGEX,F as ISO_DATE_TIME_REGEX,H as ISO_TIMESTAMP_REGEX,G as ISO_TIME_REGEX,X as ISO_TIME_SECOND_REGEX,J as ISO_WEEK_REGEX,Z as MAC48_REGEX,Q as MAC64_REGEX,Y as MAC_REGEX,ee as OCTAL_REGEX,ne as ULID_REGEX,se as UUID_REGEX,h as ValiError,r as _addIssue,E as _isLuhnAlgo,T as _isValidObjectKey,f as _stringify,Xn as any,Hn as array,Jn as arrayAsync,Te as bic,Zn as bigint,Qn as blob,Yn as boolean,le as brand,he as bytes,xe as check,ge as checkAsync,ke as checkItems,Va as config,Be as creditCard,be as cuid2,es as custom,ns as customAsync,ss as date,Ee as decimal,nt as deleteGlobalConfig,rt as deleteGlobalMessage,ot as deleteSchemaMessage,ct as deleteSpecificMessage,Me as email,Ae as emoji,je as empty,ve as endsWith,ht as entriesFromList,ts as enum,ts as enum_,Re as everyItem,_e as excludes,$a as fallback,Fa as fallbackAsync,Pe as filterItems,qe as findItem,De as finite,Ha as flatten,Za as forward,Ya as forwardAsync,y as getDefault,oe as getDefaults,ie as getDefaultsAsync,ae as getDotPath,x as getFallback,pe as getFallbacks,ce as getFallbacksAsync,l as getGlobalConfig,te as getGlobalMessage,re as getSchemaMessage,ue as getSpecificMessage,We as hash,Ce as hexColor,Ve as hexadecimal,Le as imei,Ke as includes,rs as instance,$e as integer,us as intersect,as as intersectAsync,ze as ip,Ue as ipv4,Fe as ipv6,co as is,kt as isOfKind,wt as isOfType,bt as isValiError,Ge as isoDate,Xe as isoDateTime,He as isoTime,Je as isoTimeSecond,Ze as isoTimestamp,Qe as isoWeek,Vp as keyof,os as lazy,is as lazyAsync,Ye as length,ps as literal,cs as looseObject,Is as looseObjectAsync,ms as looseTuple,ds as looseTupleAsync,en as mac,nn as mac48,sn as mac64,fs as map,ys as mapAsync,tn as mapItems,rn as maxBytes,un as maxLength,an as maxSize,on as maxValue,pn as mimeType,cn as minBytes,In as minLength,mn as minSize,dn as minValue,fn as multipleOf,Ts as nan,ls as never,yn as nonEmpty,hs as nonNullable,xs as nonNullableAsync,gs as nonNullish,ks as nonNullishAsync,A as nonOptional,j as nonOptionalAsync,Tn as notBytes,ln as notLength,hn as notSize,xn as notValue,Ss as null,Ss as null_,ws as nullable,Os as nullableAsync,Bs as nullish,bs as nullishAsync,Es as number,Ms as object,As as objectAsync,js as objectWithRest,vs as objectWithRestAsync,gn as octal,Lp as omit,v as optional,R as optionalAsync,Ie as parse,me as parseAsync,Jp as parser,Yp as parserAsync,sc as partial,uc as partialAsync,kn as partialCheck,Sn as partialCheckAsync,oc as pick,_ as picklist,pc as pipe,Ic as pipeAsync,wn as rawCheck,On as rawCheckAsync,Bn as rawTransform,bn as rawTransformAsync,En as readonly,Rs as record,_s as recordAsync,Mn as reduceItems,An as regex,fc as required,lc as requiredAsync,jn as safeInteger,de as safeParse,fe as safeParseAsync,Oc as safeParser,Ec as safeParserAsync,Ps as set,qs as setAsync,et as setGlobalConfig,tt as setGlobalMessage,at as setSchemaMessage,pt as setSpecificMessage,vn as size,Rn as someItem,_n as sortItems,Pn as startsWith,Ds as strictObject,Ns as strictObjectAsync,Ws as strictTuple,Vs as strictTupleAsync,Cs as string,Ls as symbol,qn as toLowerCase,Dn as toMaxValue,Nn as toMinValue,Wn as toUpperCase,Vn as transform,Cn as transformAsync,Ln as trim,Kn as trimEnd,$n as trimStart,Ks as tuple,$s as tupleAsync,zs as tupleWithRest,Us as tupleWithRestAsync,zn as ulid,Fs as undefined,Fs as undefined_,Gs as union,Xs as unionAsync,Hs as unknown,Ac as unwrap,Un as url,Fn as uuid,Gn as value,Js as variant,Zs as variantAsync,Qs as void,Qs as void_}; |
{ | ||
"name": "valibot", | ||
"description": "The modular and type safe schema library for validating structural data", | ||
"version": "0.33.1", | ||
"version": "0.33.2", | ||
"license": "MIT", | ||
@@ -53,3 +53,4 @@ "author": "Fabian Hiller", | ||
"build": "tsup", | ||
"publish": "npm publish && npx jsr publish" | ||
"publish.npm": "npm publish", | ||
"publish.jsr": "npx jsr publish" | ||
}, | ||
@@ -56,0 +57,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1195437