@sentry/junior-dashboard 0.104.0 → 0.104.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -72,7 +72,7 @@ Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}
72
72
 
73
73
  `)}p.write("payload.value = newResult;"),p.write("return payload;");let g=p.compile();return(h,y)=>g(l,h,y)},r,A=QA,i=!kA.jitless,c=i&&cy.value,u=t.catchall,d;e._zod.parse=(l,p)=>{d??(d=o.value);let b=l.value;return A(b)?i&&c&&p?.async===!1&&p.jitless!==!0?(r||(r=a(t.shape)),l=r(l,p),u?oS([],b,l,p,d,e):l):n(l,p):(l.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),l)}});function U4(e,t,n,o){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;let a=e.filter(r=>!vr(r));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(A=>pn(A,o,At())))}),t)}var Du=w("$ZodUnion",(e,t)=>{Z.init(e,t),ce(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ce(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ce(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ce(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>Bu(a.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,a)=>{if(n)return n(o,a);let r=!1,A=[];for(let i of t.options){let s=i._zod.run({value:o.value,issues:[]},a);if(s instanceof Promise)A.push(s),r=!0;else{if(s.issues.length===0)return s;A.push(s)}}return r?Promise.all(A).then(i=>U4(i,o,e,a)):U4(A,o,e,a)}});function T4(e,t,n,o){let a=e.filter(r=>r.issues.length===0);return a.length===1?(t.value=a[0].value,t):(a.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(A=>pn(A,o,At())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var Xw=w("$ZodXor",(e,t)=>{Du.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,a)=>{if(n)return n(o,a);let r=!1,A=[];for(let i of t.options){let s=i._zod.run({value:o.value,issues:[]},a);s instanceof Promise?(A.push(s),r=!0):A.push(s)}return r?Promise.all(A).then(i=>T4(i,o,e,a)):T4(A,o,e,a)}}),eE=w("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Du.init(e,t);let n=e._zod.parse;ce(e._zod,"propValues",()=>{let a={};for(let r of t.options){let A=r._zod.propValues;if(!A||Object.keys(A).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[i,s]of Object.entries(A)){a[i]||(a[i]=new Set);for(let c of s)a[i].add(c)}}return a});let o=us(()=>{let a=t.options,r=new Map;for(let A of a){let i=A._zod.propValues?.[t.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(A)}"`);for(let s of i){if(r.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);r.set(s,A)}}return r});e._zod.parse=(a,r)=>{let A=a.value;if(!QA(A))return a.issues.push({code:"invalid_type",expected:"object",input:A,inst:e}),a;let i=o.value.get(A?.[t.discriminator]);return i?i._zod.run(a,r):t.unionFallback||r.direction==="backward"?n(a,r):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:A,path:[t.discriminator],inst:e}),a)}}),tE=w("$ZodIntersection",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>{let a=n.value,r=t.left._zod.run({value:a,issues:[]},o),A=t.right._zod.run({value:a,issues:[]},o);return r instanceof Promise||A instanceof Promise?Promise.all([r,A]).then(([s,c])=>q4(n,s,c)):q4(n,r,A)}});function gw(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(_r(e)&&_r(t)){let n=Object.keys(t),o=Object.keys(e).filter(r=>n.indexOf(r)!==-1),a={...e,...t};for(let r of o){let A=gw(e[r],t[r]);if(!A.valid)return{valid:!1,mergeErrorPath:[r,...A.mergeErrorPath]};a[r]=A.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let a=e[o],r=t[o],A=gw(a,r);if(!A.valid)return{valid:!1,mergeErrorPath:[o,...A.mergeErrorPath]};n.push(A.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function q4(e,t,n){let o=new Map,a;for(let i of t.issues)if(i.code==="unrecognized_keys"){a??(a=i);for(let s of i.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(i);for(let i of n.issues)if(i.code==="unrecognized_keys")for(let s of i.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(i);let r=[...o].filter(([,i])=>i.l&&i.r).map(([i])=>i);if(r.length&&a&&e.issues.push({...a,keys:r}),vr(e))return e;let A=gw(t.value,n.value);if(!A.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(A.mergeErrorPath)}`);return e.value=A.data,e}var Sg=w("$ZodTuple",(e,t)=>{Z.init(e,t);let n=t.items;e._zod.parse=(o,a)=>{let r=o.value;if(!Array.isArray(r))return o.issues.push({input:r,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let A=[],i=O4(n,"optin"),s=O4(n,"optout");if(!t.rest){if(r.length<i)return o.issues.push({code:"too_small",minimum:i,inclusive:!0,input:r,inst:e,origin:"array"}),o;r.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:r,inst:e,origin:"array"})}let c=new Array(n.length);for(let u=0;u<n.length;u++){let d=n[u]._zod.run({value:r[u],issues:[]},a);d instanceof Promise?A.push(d.then(l=>{c[u]=l})):c[u]=d}if(t.rest){let u=n.length-1,d=r.slice(n.length);for(let l of d){u++;let p=t.rest._zod.run({value:l,issues:[]},a);p instanceof Promise?A.push(p.then(b=>z4(b,o,u))):z4(p,o,u)}}return A.length?Promise.all(A).then(()=>Y4(c,o,n,r,s)):Y4(c,o,n,r,s)}});function O4(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function z4(e,t,n){e.issues.length&&t.issues.push(...vn(n,e.issues)),t.value[n]=e.value}function Y4(e,t,n,o,a){for(let r=0;r<n.length;r++){let A=e[r],i=r<o.length;if(A.issues.length){if(!i&&r>=a){t.value.length=r;break}t.issues.push(...vn(r,A.issues))}t.value[r]=A.value}for(let r=t.value.length-1;r>=o.length&&(n[r]._zod.optout==="optional"&&t.value[r]===void 0);r--)t.value.length=r;return t}var nE=w("$ZodRecord",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!_r(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;let r=[],A=t.keyType._zod.values;if(A){n.value={};let i=new Set;for(let c of A)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){i.add(typeof c=="number"?c.toString():c);let u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(p=>pn(p,o,At())),input:c,path:[c],inst:e});continue}let d=u.value,l=t.valueType._zod.run({value:a[c],issues:[]},o);l instanceof Promise?r.push(l.then(p=>{p.issues.length&&n.issues.push(...vn(c,p.issues)),n.value[d]=p.value})):(l.issues.length&&n.issues.push(...vn(c,l.issues)),n.value[d]=l.value)}let s;for(let c in a)i.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:s})}else{n.value={};for(let i of Reflect.ownKeys(a)){if(i==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,i))continue;let s=t.keyType._zod.run({value:i,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof i=="string"&&Eg.test(i)&&s.issues.length){let d=t.keyType._zod.run({value:Number(i),issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(s=d)}if(s.issues.length){t.mode==="loose"?n.value[i]=a[i]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(d=>pn(d,o,At())),input:i,path:[i],inst:e});continue}let u=t.valueType._zod.run({value:a[i],issues:[]},o);u instanceof Promise?r.push(u.then(d=>{d.issues.length&&n.issues.push(...vn(i,d.issues)),n.value[s.value]=d.value})):(u.issues.length&&n.issues.push(...vn(i,u.issues)),n.value[s.value]=u.value)}}return r.length?Promise.all(r).then(()=>n):n}}),aE=w("$ZodMap",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!(a instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:a,inst:e}),n;let r=[];n.value=new Map;for(let[A,i]of a){let s=t.keyType._zod.run({value:A,issues:[]},o),c=t.valueType._zod.run({value:i,issues:[]},o);s instanceof Promise||c instanceof Promise?r.push(Promise.all([s,c]).then(([u,d])=>{K4(u,d,n,A,a,e,o)})):K4(s,c,n,A,a,e,o)}return r.length?Promise.all(r).then(()=>n):n}});function K4(e,t,n,o,a,r,A){e.issues.length&&(Cu.has(typeof o)?n.issues.push(...vn(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:a,inst:r,issues:e.issues.map(i=>pn(i,A,At()))})),t.issues.length&&(Cu.has(typeof o)?n.issues.push(...vn(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:a,inst:r,key:o,issues:t.issues.map(i=>pn(i,A,At()))})),n.value.set(e.value,t.value)}var oE=w("$ZodSet",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!(a instanceof Set))return n.issues.push({input:a,inst:e,expected:"set",code:"invalid_type"}),n;let r=[];n.value=new Set;for(let A of a){let i=t.valueType._zod.run({value:A,issues:[]},o);i instanceof Promise?r.push(i.then(s=>J4(s,n))):J4(i,n)}return r.length?Promise.all(r).then(()=>n):n}});function J4(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var rE=w("$ZodEnum",(e,t)=>{Z.init(e,t);let n=hu(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(a=>Cu.has(typeof a)).map(a=>typeof a=="string"?ba(a):a.toString()).join("|")})$`),e._zod.parse=(a,r)=>{let A=a.value;return o.has(A)||a.issues.push({code:"invalid_value",values:n,input:A,inst:e}),a}}),AE=w("$ZodLiteral",(e,t)=>{if(Z.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?ba(o):o?ba(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,a)=>{let r=o.value;return n.has(r)||o.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),o}}),iE=w("$ZodFile",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;return a instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:a,inst:e}),n}}),sE=w("$ZodTransform",(e,t)=>{Z.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new kr(e.constructor.name);let a=t.transform(n.value,n);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(A=>(n.value=A,n.fallback=!0,n));if(a instanceof Promise)throw new Da;return n.value=a,n.fallback=!0,n}});function W4(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Lg=w("$ZodOptional",(e,t)=>{Z.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ce(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ce(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Bu(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){let a=n.value,r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(A=>W4(A,a)):W4(r,a)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),cE=w("$ZodExactOptional",(e,t)=>{Lg.init(e,t),ce(e._zod,"values",()=>t.innerType._zod.values),ce(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),uE=w("$ZodNullable",(e,t)=>{Z.init(e,t),ce(e._zod,"optin",()=>t.innerType._zod.optin),ce(e._zod,"optout",()=>t.innerType._zod.optout),ce(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Bu(n.source)}|null)$`):void 0}),ce(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),dE=w("$ZodDefault",(e,t)=>{Z.init(e,t),e._zod.optin="optional",ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>Z4(r,t)):Z4(a,t)}});function Z4(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var lE=w("$ZodPrefault",(e,t)=>{Z.init(e,t),e._zod.optin="optional",ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),pE=w("$ZodNonOptional",(e,t)=>{Z.init(e,t),ce(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>V4(r,e)):V4(a,e)}});function V4(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var gE=w("$ZodSuccess",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new kr("ZodSuccess");let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>(n.value=r.issues.length===0,n)):(n.value=a.issues.length===0,n)}}),mE=w("$ZodCatch",(e,t)=>{Z.init(e,t),e._zod.optin="optional",ce(e._zod,"optout",()=>t.innerType._zod.optout),ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(A=>pn(A,o,At()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(r=>pn(r,o,At()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),fE=w("$ZodNaN",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),$g=w("$ZodPipe",(e,t)=>{Z.init(e,t),ce(e._zod,"values",()=>t.in._zod.values),ce(e._zod,"optin",()=>t.in._zod.optin),ce(e._zod,"optout",()=>t.out._zod.optout),ce(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let r=t.out._zod.run(n,o);return r instanceof Promise?r.then(A=>Ig(A,t.in,o)):Ig(r,t.in,o)}let a=t.in._zod.run(n,o);return a instanceof Promise?a.then(r=>Ig(r,t.out,o)):Ig(a,t.out,o)}});function Ig(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Fu=w("$ZodCodec",(e,t)=>{Z.init(e,t),ce(e._zod,"values",()=>t.in._zod.values),ce(e._zod,"optin",()=>t.in._zod.optin),ce(e._zod,"optout",()=>t.out._zod.optout),ce(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let r=t.in._zod.run(n,o);return r instanceof Promise?r.then(A=>_g(A,t,o)):_g(r,t,o)}else{let r=t.out._zod.run(n,o);return r instanceof Promise?r.then(A=>_g(A,t,o)):_g(r,t,o)}}});function _g(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let a=t.transform(e.value,e);return a instanceof Promise?a.then(r=>vg(e,r,t.out,n)):vg(e,a,t.out,n)}else{let a=t.reverseTransform(e.value,e);return a instanceof Promise?a.then(r=>vg(e,r,t.in,n)):vg(e,a,t.in,n)}}function vg(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}var bE=w("$ZodPreprocess",(e,t)=>{$g.init(e,t)}),hE=w("$ZodReadonly",(e,t)=>{Z.init(e,t),ce(e._zod,"propValues",()=>t.innerType._zod.propValues),ce(e._zod,"values",()=>t.innerType._zod.values),ce(e._zod,"optin",()=>t.innerType?._zod?.optin),ce(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(X4):X4(a)}});function X4(e){return e.value=Object.freeze(e.value),e}var BE=w("$ZodTemplateLiteral",(e,t)=>{Z.init(e,t);let n=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let a=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!a)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let r=a.startsWith("^")?1:0,A=a.endsWith("$")?a.length-1:a.length;n.push(a.slice(r,A))}else if(o===null||dy.has(typeof o))n.push(ba(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,a)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),CE=w("$ZodFunction",(e,t)=>(Z.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let a=e._def.input?lg(e._def.input,o):o,r=Reflect.apply(n,this,a);return e._def.output?lg(e._def.output,r):r}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let a=e._def.input?await pg(e._def.input,o):o,r=await Reflect.apply(n,this,a);return e._def.output?await pg(e._def.output,r):r}},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new Sg({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),yE=w("$ZodPromise",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(a=>t.innerType._zod.run({value:a,issues:[]},o))}),wE=w("$ZodLazy",(e,t)=>{Z.init(e,t),ce(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),ce(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ce(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ce(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ce(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),EE=w("$ZodCustom",(e,t)=>{qe.init(e,t),Z.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,a=t.fn(o);if(a instanceof Promise)return a.then(r=>eS(r,n,o,e));eS(a,n,o,e)}});function eS(e,t,n,o){if(!e){let a={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(a.params=o._zod.def.params),t.issues.push(ds(a))}}var Lu={};_(Lu,{ar:()=>AS,az:()=>iS,be:()=>cS,bg:()=>uS,ca:()=>dS,cs:()=>lS,da:()=>pS,de:()=>gS,el:()=>mS,en:()=>Rg,eo:()=>fS,es:()=>bS,fa:()=>hS,fi:()=>BS,fr:()=>CS,frCA:()=>yS,he:()=>wS,hr:()=>ES,hu:()=>kS,hy:()=>IS,id:()=>_S,is:()=>vS,it:()=>xS,ja:()=>DS,ka:()=>FS,kh:()=>SS,km:()=>Ng,ko:()=>LS,lt:()=>RS,mk:()=>NS,ms:()=>MS,nl:()=>jS,no:()=>GS,ota:()=>HS,pl:()=>US,ps:()=>PS,pt:()=>TS,ro:()=>qS,ru:()=>zS,sl:()=>YS,sv:()=>KS,ta:()=>JS,th:()=>WS,tr:()=>ZS,ua:()=>VS,uk:()=>Mg,ur:()=>XS,uz:()=>e9,vi:()=>t9,yo:()=>o9,zhCN:()=>n9,zhTW:()=>a9});var oO=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(a){return e[a]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${a.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${i}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${r}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${i}`}case"invalid_value":return a.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${S(a.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${a.maximum.toString()} ${A.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${a.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${a.minimum.toString()} ${A.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${a.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${a.prefix}"`:r.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${r.suffix}"`:r.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${r.includes}"`:r.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${r.pattern}`:`${n[r.format]??a.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${a.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${a.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${a.keys.length>1?"\u0629":""}: ${Q(a.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${a.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${a.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function AS(){return{localeError:oO()}}var rO=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(a){return e[a]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${a.expected}, daxil olan ${i}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${r}, daxil olan ${i}`}case"invalid_value":return a.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${S(a.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${r}${a.maximum.toString()} ${A.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${r}${a.minimum.toString()} ${A.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${r.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:r.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${r.suffix}" il\u0259 bitm\u0259lidir`:r.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${r.includes}" daxil olmal\u0131d\u0131r`:r.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${r.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[r.format]??a.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${a.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${a.keys.length>1?"lar":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`${a.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${a.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function iS(){return{localeError:rO()}}function sS(e,t,n,o){let a=Math.abs(e),r=a%10,A=a%100;return A>=11&&A<=19?o:r===1?t:r>=2&&r<=4?n:o}var AO=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(a){return e[a]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${a.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${i}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${r}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${i}`}case"invalid_value":return a.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${S(a.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);if(A){let i=Number(a.maximum),s=sS(i,A.unit.one,A.unit.few,A.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${A.verb} ${r}${a.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);if(A){let i=Number(a.minimum),s=sS(i,A.unit.one,A.unit.few,A.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${A.verb} ${r}${a.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${r.includes}"`:r.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[r.format]??a.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${a.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${Q(a.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${a.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${a.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function cS(){return{localeError:AO()}}var iO=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(a){return e[a]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${a.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${i}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${r}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${i}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${S(a.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${r}${a.maximum.toString()} ${A.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${r}${a.minimum.toString()} ${A.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;if(r.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${r.prefix}"`;if(r.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${r.suffix}"`;if(r.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${r.includes}"`;if(r.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${r.pattern}`;let A="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return r.format==="emoji"&&(A="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="datetime"&&(A="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="date"&&(A="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),r.format==="time"&&(A="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="duration"&&(A="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${A} ${n[r.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${a.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${a.keys.length>1?"\u043E\u0432\u0435":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${a.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function uS(){return{localeError:iO()}}var sO=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(a){return e[a]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${a.expected}, s'ha rebut ${i}`:`Tipus inv\xE0lid: s'esperava ${r}, s'ha rebut ${i}`}case"invalid_value":return a.values.length===1?`Valor inv\xE0lid: s'esperava ${S(a.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${Q(a.values," o ")}`;case"too_big":{let r=a.inclusive?"com a m\xE0xim":"menys de",A=t(a.origin);return A?`Massa gran: s'esperava que ${a.origin??"el valor"} contingu\xE9s ${r} ${a.maximum.toString()} ${A.unit??"elements"}`:`Massa gran: s'esperava que ${a.origin??"el valor"} fos ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"com a m\xEDnim":"m\xE9s de",A=t(a.origin);return A?`Massa petit: s'esperava que ${a.origin} contingu\xE9s ${r} ${a.minimum.toString()} ${A.unit}`:`Massa petit: s'esperava que ${a.origin} fos ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${r.prefix}"`:r.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${r.suffix}"`:r.format==="includes"?`Format inv\xE0lid: ha d'incloure "${r.includes}"`:r.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${r.pattern}`:`Format inv\xE0lid per a ${n[r.format]??a.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${a.divisor}`;case"unrecognized_keys":return`Clau${a.keys.length>1?"s":""} no reconeguda${a.keys.length>1?"s":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${a.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${a.origin}`;default:return"Entrada inv\xE0lida"}}};function dS(){return{localeError:sO()}}var cO=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(a){return e[a]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${a.expected}, obdr\u017Eeno ${i}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${r}, obdr\u017Eeno ${i}`}case"invalid_value":return a.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${S(a.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${r}${a.maximum.toString()} ${A.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED b\xFDt ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${r}${a.minimum.toString()} ${A.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED b\xFDt ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${r.prefix}"`:r.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${r.suffix}"`:r.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${r.includes}"`:r.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${r.pattern}`:`Neplatn\xFD form\xE1t ${n[r.format]??a.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${a.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${Q(a.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${a.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${a.origin}`;default:return"Neplatn\xFD vstup"}}};function lS(){return{localeError:cO()}}var uO=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(a){return e[a]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Ugyldigt input: forventede instanceof ${a.expected}, fik ${i}`:`Ugyldigt input: forventede ${r}, fik ${i}`}case"invalid_value":return a.values.length===1?`Ugyldig v\xE6rdi: forventede ${S(a.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin),i=o[a.origin]??a.origin;return A?`For stor: forventede ${i??"value"} ${A.verb} ${r} ${a.maximum.toString()} ${A.unit??"elementer"}`:`For stor: forventede ${i??"value"} havde ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin),i=o[a.origin]??a.origin;return A?`For lille: forventede ${i} ${A.verb} ${r} ${a.minimum.toString()} ${A.unit}`:`For lille: forventede ${i} havde ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ugyldig streng: skal starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: skal ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: skal indeholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${n[r.format]??a.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${Q(a.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${a.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${a.origin}`;default:return"Ugyldigt input"}}};function pS(){return{localeError:uO()}}var dO=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(a){return e[a]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${a.expected}, erhalten ${i}`:`Ung\xFCltige Eingabe: erwartet ${r}, erhalten ${i}`}case"invalid_value":return a.values.length===1?`Ung\xFCltige Eingabe: erwartet ${S(a.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${r}${a.maximum.toString()} ${A.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${r}${a.maximum.toString()} ist`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Zu klein: erwartet, dass ${a.origin} ${r}${a.minimum.toString()} ${A.unit} hat`:`Zu klein: erwartet, dass ${a.origin} ${r}${a.minimum.toString()} ist`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ung\xFCltiger String: muss mit "${r.prefix}" beginnen`:r.format==="ends_with"?`Ung\xFCltiger String: muss mit "${r.suffix}" enden`:r.format==="includes"?`Ung\xFCltiger String: muss "${r.includes}" enthalten`:r.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${r.pattern} entsprechen`:`Ung\xFCltig: ${n[r.format]??a.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${a.divisor} sein`;case"unrecognized_keys":return`${a.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${Q(a.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${a.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${a.origin}`;default:return"Ung\xFCltige Eingabe"}}};function gS(){return{localeError:dO()}}var lO=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(a){return e[a]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return typeof a.expected=="string"&&/^[A-Z]/.test(a.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${a.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${i}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${i}`}case"invalid_value":return a.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${S(a.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${r}${a.maximum.toString()} ${A.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${r}${a.minimum.toString()} ${A.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${r.prefix}"`:r.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${r.suffix}"`:r.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${r.includes}"`:r.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${r.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[r.format]??a.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${a.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${a.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${a.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${Q(a.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${a.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${a.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function mS(){return{localeError:lO()}}var pO=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(a){return e[a]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return`Invalid input: expected ${r}, received ${i}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${S(a.values[0])}`:`Invalid option: expected one of ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${A.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${A.unit}`:`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Invalid discriminator value. Expected ${a.options.map(A=>`'${A}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function Rg(){return{localeError:pO()}}var gO=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(a){return e[a]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${a.expected}, ricevi\u011Dis ${i}`:`Nevalida enigo: atendi\u011Dis ${r}, ricevi\u011Dis ${i}`}case"invalid_value":return a.values.length===1?`Nevalida enigo: atendi\u011Dis ${S(a.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${r}${a.maximum.toString()} ${A.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Tro malgranda: atendi\u011Dis ke ${a.origin} havu ${r}${a.minimum.toString()} ${A.unit}`:`Tro malgranda: atendi\u011Dis ke ${a.origin} estu ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${r.prefix}"`:r.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${r.suffix}"`:r.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${r.includes}"`:r.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${n[r.format]??a.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${a.divisor}`;case"unrecognized_keys":return`Nekonata${a.keys.length>1?"j":""} \u015Dlosilo${a.keys.length>1?"j":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${a.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${a.origin}`;default:return"Nevalida enigo"}}};function fS(){return{localeError:gO()}}var mO=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(a){return e[a]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${a.expected}, recibido ${i}`:`Entrada inv\xE1lida: se esperaba ${r}, recibido ${i}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: se esperaba ${S(a.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin),i=o[a.origin]??a.origin;return A?`Demasiado grande: se esperaba que ${i??"valor"} tuviera ${r}${a.maximum.toString()} ${A.unit??"elementos"}`:`Demasiado grande: se esperaba que ${i??"valor"} fuera ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin),i=o[a.origin]??a.origin;return A?`Demasiado peque\xF1o: se esperaba que ${i} tuviera ${r}${a.minimum.toString()} ${A.unit}`:`Demasiado peque\xF1o: se esperaba que ${i} fuera ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${r.prefix}"`:r.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${r.suffix}"`:r.format==="includes"?`Cadena inv\xE1lida: debe incluir "${r.includes}"`:r.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${r.pattern}`:`Inv\xE1lido ${n[r.format]??a.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":return`Llave${a.keys.length>1?"s":""} desconocida${a.keys.length>1?"s":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[a.origin]??a.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[a.origin]??a.origin}`;default:return"Entrada inv\xE1lida"}}};function bS(){return{localeError:mO()}}var fO=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(a){return e[a]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${a.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${i} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${r} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${i} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return a.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${S(a.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${Q(a.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} ${A.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} ${A.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:r.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:r.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${r.includes}" \u0628\u0627\u0634\u062F`:r.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${r.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[r.format]??a.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${a.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${a.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${Q(a.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${a.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${a.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function hS(){return{localeError:fO()}}var bO=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(a){return e[a]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Virheellinen tyyppi: odotettiin instanceof ${a.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${r}, oli ${i}`}case"invalid_value":return a.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${S(a.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Liian suuri: ${A.subject} t\xE4ytyy olla ${r}${a.maximum.toString()} ${A.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Liian pieni: ${A.subject} t\xE4ytyy olla ${r}${a.minimum.toString()} ${A.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${r.prefix}"`:r.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${r.suffix}"`:r.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${r.includes}"`:r.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${r.pattern}`:`Virheellinen ${n[r.format]??a.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${a.divisor} monikerta`;case"unrecognized_keys":return`${a.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${Q(a.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function BS(){return{localeError:bO()}}var hO=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(a){return e[a]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Entr\xE9e invalide : instanceof ${a.expected} attendu, ${i} re\xE7u`:`Entr\xE9e invalide : ${r} attendu, ${i} re\xE7u`}case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : ${S(a.values[0])} attendu`:`Option invalide : une valeur parmi ${Q(a.values,"|")} attendue`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Trop grand : ${o[a.origin]??"valeur"} doit ${A.verb} ${r}${a.maximum.toString()} ${A.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[a.origin]??"valeur"} doit \xEAtre ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Trop petit : ${o[a.origin]??"valeur"} doit ${A.verb} ${r}${a.minimum.toString()} ${A.unit}`:`Trop petit : ${o[a.origin]??"valeur"} doit \xEAtre ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${r.pattern}`:`${n[r.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${a.divisor}`;case"unrecognized_keys":return`Cl\xE9${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${Q(a.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${a.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entr\xE9e invalide"}}};function CS(){return{localeError:hO()}}var BO=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(a){return e[a]??null}let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Entr\xE9e invalide : attendu instanceof ${a.expected}, re\xE7u ${i}`:`Entr\xE9e invalide : attendu ${r}, re\xE7u ${i}`}case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : attendu ${S(a.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"\u2264":"<",A=t(a.origin);return A?`Trop grand : attendu que ${a.origin??"la valeur"} ait ${r}${a.maximum.toString()} ${A.unit}`:`Trop grand : attendu que ${a.origin??"la valeur"} soit ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"\u2265":">",A=t(a.origin);return A?`Trop petit : attendu que ${a.origin} ait ${r}${a.minimum.toString()} ${A.unit}`:`Trop petit : attendu que ${a.origin} soit ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${r.pattern}`:`${n[r.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${a.divisor}`;case"unrecognized_keys":return`Cl\xE9${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${Q(a.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${a.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entr\xE9e invalide"}}};function yS(){return{localeError:BO()}}var CO=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=c=>c?e[c]:void 0,o=c=>{let u=n(c);return u?u.label:c??e.unknown.label},a=c=>`\u05D4${o(c)}`,r=c=>(n(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",A=c=>c?t[c]??null:null,i={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},s={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let u=c.expected,d=s[u??""]??o(u),l=L(c.input),p=s[l]??e[l]?.label??l;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${S(c.values[0])}`;let u=c.values.map(p=>S(p));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${u[0]} \u05D0\u05D5 ${u[1]}`;let d=u[u.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${u.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let u=A(c.origin),d=a(c.origin??"value");if(c.origin==="string")return`${u?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let b=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(c.origin==="array"||c.origin==="set"){let b=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",B=c.inclusive?`${c.maximum} ${u?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${u?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${B}`.trim()}let l=c.inclusive?"<=":"<",p=r(c.origin??"value");return u?.unit?`${u.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${l}${c.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${l}${c.maximum.toString()}`}case"too_small":{let u=A(c.origin),d=a(c.origin??"value");if(c.origin==="string")return`${u?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let b=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(c.origin==="array"||c.origin==="set"){let b=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let C=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${C}`}let B=c.inclusive?`${c.minimum} ${u?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${u?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${B}`.trim()}let l=c.inclusive?">=":">",p=r(c.origin??"value");return u?.unit?`${u.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${l}${c.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${l}${c.minimum.toString()}`}case"invalid_format":{let u=c;if(u.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${u.prefix}"`;if(u.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${u.suffix}"`;if(u.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${u.includes}"`;if(u.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${u.pattern}`;let d=i[u.format],l=d?.label??u.format,b=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${l} \u05DC\u05D0 ${b}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${Q(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${a(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function wS(){return{localeError:CO()}}var yO=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(a){return e[a]??null}let n={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${a.expected}, a primljeno je ${i}`:`Neispravan unos: o\u010Dekuje se ${r}, a primljeno je ${i}`}case"invalid_value":return a.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${S(a.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin),i=o[a.origin]??a.origin;return A?`Preveliko: o\u010Dekivano da ${i??"vrijednost"} ima ${r}${a.maximum.toString()} ${A.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${i??"vrijednost"} bude ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin),i=o[a.origin]??a.origin;return A?`Premalo: o\u010Dekivano da ${i} ima ${r}${a.minimum.toString()} ${A.unit}`:`Premalo: o\u010Dekivano da ${i} bude ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${r.prefix}"`:r.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${r.suffix}"`:r.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${r.includes}"`:r.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${r.pattern}`:`Neispravna ${n[r.format]??a.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${a.divisor}`;case"unrecognized_keys":return`Neprepoznat${a.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${Q(a.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[a.origin]??a.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[a.origin]??a.origin}`;default:return"Neispravan unos"}}};function ES(){return{localeError:yO()}}var wO=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(a){return e[a]??null}let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${a.expected}, a kapott \xE9rt\xE9k ${i}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${r}, a kapott \xE9rt\xE9k ${i}`}case"invalid_value":return a.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${S(a.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`T\xFAl nagy: ${a.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${r}${a.maximum.toString()} ${A.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${a.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} m\xE9rete t\xFAl kicsi ${r}${a.minimum.toString()} ${A.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} t\xFAl kicsi ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\xC9rv\xE9nytelen string: "${r.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:r.format==="ends_with"?`\xC9rv\xE9nytelen string: "${r.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:r.format==="includes"?`\xC9rv\xE9nytelen string: "${r.includes}" \xE9rt\xE9ket kell tartalmaznia`:r.format==="regex"?`\xC9rv\xE9nytelen string: ${r.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[r.format]??a.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${a.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${a.keys.length>1?"s":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${a.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${a.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function kS(){return{localeError:wO()}}function QS(e,t,n){return Math.abs(e)===1?t:n}function bs(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var EO=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(a){return e[a]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${a.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${i}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${r}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${i}`}case"invalid_value":return a.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${S(a.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);if(A){let i=Number(a.maximum),s=QS(i,A.unit.one,A.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${bs(a.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${r}${a.maximum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${bs(a.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);if(A){let i=Number(a.minimum),s=QS(i,A.unit.one,A.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${bs(a.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${r}${a.minimum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${bs(a.origin)} \u056C\u056B\u0576\u056B ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${r.prefix}"-\u0578\u057E`:r.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${r.suffix}"-\u0578\u057E`:r.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${r.includes}"`:r.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${r.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[r.format]??a.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${a.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${a.keys.length>1?"\u0576\u0565\u0580":""}. ${Q(a.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${bs(a.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${bs(a.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function IS(){return{localeError:EO()}}var kO=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(a){return e[a]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Input tidak valid: diharapkan instanceof ${a.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${r}, diterima ${i}`}case"invalid_value":return a.values.length===1?`Input tidak valid: diharapkan ${S(a.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Terlalu besar: diharapkan ${a.origin??"value"} memiliki ${r}${a.maximum.toString()} ${A.unit??"elemen"}`:`Terlalu besar: diharapkan ${a.origin??"value"} menjadi ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Terlalu kecil: diharapkan ${a.origin} memiliki ${r}${a.minimum.toString()} ${A.unit}`:`Terlalu kecil: diharapkan ${a.origin} menjadi ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`String tidak valid: harus dimulai dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak valid: harus berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak valid: harus menyertakan "${r.includes}"`:r.format==="regex"?`String tidak valid: harus sesuai pola ${r.pattern}`:`${n[r.format]??a.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${a.keys.length>1?"s":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${a.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${a.origin}`;default:return"Input tidak valid"}}};function _S(){return{localeError:kO()}}var QO=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(a){return e[a]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${i} \xFEar sem \xE1 a\xF0 vera instanceof ${a.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${i} \xFEar sem \xE1 a\xF0 vera ${r}`}case"invalid_value":return a.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${S(a.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} hafi ${r}${a.maximum.toString()} ${A.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} s\xE9 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} hafi ${r}${a.minimum.toString()} ${A.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} s\xE9 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${r.prefix}"`:r.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${r.suffix}"`:r.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${r.includes}"`:r.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${r.pattern}`:`Rangt ${n[r.format]??a.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${a.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${a.keys.length>1?"ir lyklar":"ur lykill"}: ${Q(a.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${a.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${a.origin}`;default:return"Rangt gildi"}}};function vS(){return{localeError:QO()}}var IO=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(a){return e[a]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Input non valido: atteso instanceof ${a.expected}, ricevuto ${i}`:`Input non valido: atteso ${r}, ricevuto ${i}`}case"invalid_value":return a.values.length===1?`Input non valido: atteso ${S(a.values[0])}`:`Opzione non valida: atteso uno tra ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Troppo grande: ${a.origin??"valore"} deve avere ${r}${a.maximum.toString()} ${A.unit??"elementi"}`:`Troppo grande: ${a.origin??"valore"} deve essere ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Troppo piccolo: ${a.origin} deve avere ${r}${a.minimum.toString()} ${A.unit}`:`Troppo piccolo: ${a.origin} deve essere ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Stringa non valida: deve iniziare con "${r.prefix}"`:r.format==="ends_with"?`Stringa non valida: deve terminare con "${r.suffix}"`:r.format==="includes"?`Stringa non valida: deve includere "${r.includes}"`:r.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${r.pattern}`:`Input non valido: ${n[r.format]??a.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${a.divisor}`;case"unrecognized_keys":return`Chiav${a.keys.length>1?"i":"e"} non riconosciut${a.keys.length>1?"e":"a"}: ${Q(a.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${a.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${a.origin}`;default:return"Input non valido"}}};function xS(){return{localeError:IO()}}var _O=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(a){return e[a]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${a.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${i}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${r}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${i}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return a.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${S(a.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${Q(a.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let r=a.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",A=t(a.origin);return A?`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${A.unit??"\u8981\u7D20"}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let r=a.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",A=t(a.origin);return A?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${A.unit}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${r.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[r.format]??a.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${a.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${a.keys.length>1?"\u7FA4":""}: ${Q(a.keys,"\u3001")}`;case"invalid_key":return`${a.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${a.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function DS(){return{localeError:_O()}}var vO=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(a){return e[a]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${a.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${i}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${i}`}case"invalid_value":return a.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${S(a.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${Q(a.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${A.verb} ${r}${a.maximum.toString()} ${A.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin} ${A.verb} ${r}${a.minimum.toString()} ${A.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin} \u10D8\u10E7\u10DD\u10E1 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${r.prefix}"-\u10D8\u10D7`:r.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${r.suffix}"-\u10D8\u10D7`:r.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${r.includes}"-\u10E1`:r.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${r.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${a.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${a.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${Q(a.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${a.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${a.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function FS(){return{localeError:vO()}}var xO=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(a){return e[a]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${a.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${i}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${i}`}case"invalid_value":return a.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${S(a.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${a.maximum.toString()} ${A.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${r} ${a.minimum.toString()} ${A.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${r.prefix}"`:r.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${r.suffix}"`:r.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${r.includes}"`:r.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${r.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${a.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${Q(a.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${a.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${a.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Ng(){return{localeError:xO()}}function SS(){return Ng()}var DO=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(a){return e[a]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${a.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${i}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${r}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${i}\uC785\uB2C8\uB2E4`}case"invalid_value":return a.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${S(a.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${Q(a.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let r=a.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",A=r==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",i=t(a.origin),s=i?.unit??"\uC694\uC18C";return i?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()}${s} ${r}${A}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()} ${r}${A}`}case"too_small":{let r=a.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",A=r==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",i=t(a.origin),s=i?.unit??"\uC694\uC18C";return i?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()}${s} ${r}${A}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()} ${r}${A}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:r.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${r.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[r.format]??a.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${a.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${Q(a.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${a.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${a.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function LS(){return{localeError:DO()}}var Su=e=>e.charAt(0).toUpperCase()+e.slice(1);function $S(e){let t=Math.abs(e),n=t%10,o=t%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var FO=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(a,r,A,i){let s=e[a]??null;return s===null?s:{unit:s.unit[r],verb:s.verb[i][A?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Gautas tipas ${i}, o tik\u0117tasi - instanceof ${a.expected}`:`Gautas tipas ${i}, o tik\u0117tasi - ${r}`}case"invalid_value":return a.values.length===1?`Privalo b\u016Bti ${S(a.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${Q(a.values,"|")} pasirinkim\u0173`;case"too_big":{let r=o[a.origin]??a.origin,A=t(a.origin,$S(Number(a.maximum)),a.inclusive??!1,"smaller");if(A?.verb)return`${Su(r??a.origin??"reik\u0161m\u0117")} ${A.verb} ${a.maximum.toString()} ${A.unit??"element\u0173"}`;let i=a.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Su(r??a.origin??"reik\u0161m\u0117")} turi b\u016Bti ${i} ${a.maximum.toString()} ${A?.unit}`}case"too_small":{let r=o[a.origin]??a.origin,A=t(a.origin,$S(Number(a.minimum)),a.inclusive??!1,"bigger");if(A?.verb)return`${Su(r??a.origin??"reik\u0161m\u0117")} ${A.verb} ${a.minimum.toString()} ${A.unit??"element\u0173"}`;let i=a.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Su(r??a.origin??"reik\u0161m\u0117")} turi b\u016Bti ${i} ${a.minimum.toString()} ${A?.unit}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${r.prefix}"`:r.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${r.suffix}"`:r.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${r.includes}"`:r.format==="regex"?`Eilut\u0117 privalo atitikti ${r.pattern}`:`Neteisingas ${n[r.format]??a.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${a.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${a.keys.length>1?"i":"as"} rakt${a.keys.length>1?"ai":"as"}: ${Q(a.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let r=o[a.origin]??a.origin;return`${Su(r??a.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function RS(){return{localeError:FO()}}var SO=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(a){return e[a]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${a.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${i}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${i}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${S(a.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${r}${a.maximum.toString()} ${A.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin} \u0434\u0430 \u0438\u043C\u0430 ${r}${a.minimum.toString()} ${A.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${r.pattern}`:`Invalid ${n[r.format]??a.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${Q(a.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${a.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${a.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function NS(){return{localeError:SO()}}var LO=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(a){return e[a]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Input tidak sah: dijangka instanceof ${a.expected}, diterima ${i}`:`Input tidak sah: dijangka ${r}, diterima ${i}`}case"invalid_value":return a.values.length===1?`Input tidak sah: dijangka ${S(a.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Terlalu besar: dijangka ${a.origin??"nilai"} ${A.verb} ${r}${a.maximum.toString()} ${A.unit??"elemen"}`:`Terlalu besar: dijangka ${a.origin??"nilai"} adalah ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Terlalu kecil: dijangka ${a.origin} ${A.verb} ${r}${a.minimum.toString()} ${A.unit}`:`Terlalu kecil: dijangka ${a.origin} adalah ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`String tidak sah: mesti bermula dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak sah: mesti mengandungi "${r.includes}"`:r.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${r.pattern}`:`${n[r.format]??a.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${Q(a.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${a.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${a.origin}`;default:return"Input tidak sah"}}};function MS(){return{localeError:LO()}}var $O=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(a){return e[a]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Ongeldige invoer: verwacht instanceof ${a.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${r}, ontving ${i}`}case"invalid_value":return a.values.length===1?`Ongeldige invoer: verwacht ${S(a.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin),i=a.origin==="date"?"laat":a.origin==="string"?"lang":"groot";return A?`Te ${i}: verwacht dat ${a.origin??"waarde"} ${r}${a.maximum.toString()} ${A.unit??"elementen"} ${A.verb}`:`Te ${i}: verwacht dat ${a.origin??"waarde"} ${r}${a.maximum.toString()} is`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin),i=a.origin==="date"?"vroeg":a.origin==="string"?"kort":"klein";return A?`Te ${i}: verwacht dat ${a.origin} ${r}${a.minimum.toString()} ${A.unit} ${A.verb}`:`Te ${i}: verwacht dat ${a.origin} ${r}${a.minimum.toString()} is`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ongeldige tekst: moet met "${r.prefix}" beginnen`:r.format==="ends_with"?`Ongeldige tekst: moet op "${r.suffix}" eindigen`:r.format==="includes"?`Ongeldige tekst: moet "${r.includes}" bevatten`:r.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`:`Ongeldig: ${n[r.format]??a.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${a.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${a.keys.length>1?"s":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${a.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${a.origin}`;default:return"Ongeldige invoer"}}};function jS(){return{localeError:$O()}}var RO=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(a){return e[a]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Ugyldig input: forventet instanceof ${a.expected}, fikk ${i}`:`Ugyldig input: forventet ${r}, fikk ${i}`}case"invalid_value":return a.values.length===1?`Ugyldig verdi: forventet ${S(a.values[0])}`:`Ugyldig valg: forventet en av ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${r}${a.maximum.toString()} ${A.unit??"elementer"}`:`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`For lite(n): forventet ${a.origin} til \xE5 ha ${r}${a.minimum.toString()} ${A.unit}`:`For lite(n): forventet ${a.origin} til \xE5 ha ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${n[r.format]??a.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${Q(a.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${a.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${a.origin}`;default:return"Ugyldig input"}}};function GS(){return{localeError:RO()}}var NO=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(a){return e[a]??null}let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`F\xE2sit giren: umulan instanceof ${a.expected}, al\u0131nan ${i}`:`F\xE2sit giren: umulan ${r}, al\u0131nan ${i}`}case"invalid_value":return a.values.length===1?`F\xE2sit giren: umulan ${S(a.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${r}${a.maximum.toString()} ${A.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${r}${a.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${r}${a.minimum.toString()} ${A.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${r}${a.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let r=a;return r.format==="starts_with"?`F\xE2sit metin: "${r.prefix}" ile ba\u015Flamal\u0131.`:r.format==="ends_with"?`F\xE2sit metin: "${r.suffix}" ile bitmeli.`:r.format==="includes"?`F\xE2sit metin: "${r.includes}" ihtiv\xE2 etmeli.`:r.format==="regex"?`F\xE2sit metin: ${r.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[r.format]??a.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${a.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${a.keys.length>1?"s":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`${a.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${a.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function HS(){return{localeError:NO()}}var MO=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(a){return e[a]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${a.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${i} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${r} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${i} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return a.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${S(a.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${Q(a.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} ${A.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} \u0648\u064A`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} ${A.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} \u0648\u064A`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:r.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:r.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${r.includes}" \u0648\u0644\u0631\u064A`:r.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${r.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[r.format]??a.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${a.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${a.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${Q(a.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${a.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${a.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function PS(){return{localeError:MO()}}var jO=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(a){return e[a]??null}let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${a.expected}, otrzymano ${i}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${r}, otrzymano ${i}`}case"invalid_value":return a.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${S(a.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${a.maximum.toString()} ${A.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${a.minimum.toString()} ${A.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${r.prefix}"`:r.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${r.suffix}"`:r.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${r.includes}"`:r.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${r.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[r.format]??a.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${a.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${a.keys.length>1?"s":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${a.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${a.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function US(){return{localeError:jO()}}var GO=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(a){return e[a]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Tipo inv\xE1lido: esperado instanceof ${a.expected}, recebido ${i}`:`Tipo inv\xE1lido: esperado ${r}, recebido ${i}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperado ${S(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Muito grande: esperado que ${a.origin??"valor"} tivesse ${r}${a.maximum.toString()} ${A.unit??"elementos"}`:`Muito grande: esperado que ${a.origin??"valor"} fosse ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Muito pequeno: esperado que ${a.origin} tivesse ${r}${a.minimum.toString()} ${A.unit}`:`Muito pequeno: esperado que ${a.origin} fosse ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${r.prefix}"`:r.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${r.suffix}"`:r.format==="includes"?`Texto inv\xE1lido: deve incluir "${r.includes}"`:r.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${r.pattern}`:`${n[r.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":return`Chave${a.keys.length>1?"s":""} desconhecida${a.keys.length>1?"s":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${a.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${a.origin}`;default:return"Campo inv\xE1lido"}}};function TS(){return{localeError:GO()}}var HO=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(a){return e[a]??null}let n={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return`Intrare invalid\u0103: a\u0219teptat ${r}, primit ${i}`}case"invalid_value":return a.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${S(a.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Prea mare: a\u0219teptat ca ${a.origin??"valoarea"} ${A.verb} ${r}${a.maximum.toString()} ${A.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${a.origin??"valoarea"} s\u0103 fie ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Prea mic: a\u0219teptat ca ${a.origin} ${A.verb} ${r}${a.minimum.toString()} ${A.unit}`:`Prea mic: a\u0219teptat ca ${a.origin} s\u0103 fie ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${r.prefix}"`:r.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${r.suffix}"`:r.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${r.includes}"`:r.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${r.pattern}`:`Format invalid: ${n[r.format]??a.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${a.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${Q(a.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${a.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${a.origin}`;default:return"Intrare invalid\u0103"}}};function qS(){return{localeError:HO()}}function OS(e,t,n,o){let a=Math.abs(e),r=a%10,A=a%100;return A>=11&&A<=19?o:r===1?t:r>=2&&r<=4?n:o}var PO=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(a){return e[a]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${a.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${i}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${r}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${i}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${S(a.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);if(A){let i=Number(a.maximum),s=OS(i,A.unit.one,A.unit.few,A.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${a.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);if(A){let i=Number(a.minimum),s=OS(i,A.unit.one,A.unit.few,A.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${a.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin} \u0431\u0443\u0434\u0435\u0442 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${a.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${a.keys.length>1?"\u0438":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${a.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function zS(){return{localeError:PO()}}var UO=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(a){return e[a]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${a.expected}, prejeto ${i}`:`Neveljaven vnos: pri\u010Dakovano ${r}, prejeto ${i}`}case"invalid_value":return a.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${S(a.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} imelo ${r}${a.maximum.toString()} ${A.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Premajhno: pri\u010Dakovano, da bo ${a.origin} imelo ${r}${a.minimum.toString()} ${A.unit}`:`Premajhno: pri\u010Dakovano, da bo ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${r.prefix}"`:r.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${r.suffix}"`:r.format==="includes"?`Neveljaven niz: mora vsebovati "${r.includes}"`:r.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`:`Neveljaven ${n[r.format]??a.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${a.divisor}`;case"unrecognized_keys":return`Neprepoznan${a.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${Q(a.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${a.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${a.origin}`;default:return"Neveljaven vnos"}}};function YS(){return{localeError:UO()}}var TO=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(a){return e[a]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${a.expected}, fick ${i}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${r}, fick ${i}`}case"invalid_value":return a.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${S(a.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`F\xF6r stor(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.maximum.toString()} ${A.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${a.origin??"v\xE4rdet"} att ha ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.minimum.toString()} ${A.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${r.prefix}"`:r.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${r.suffix}"`:r.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${r.includes}"`:r.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${r.pattern}"`:`Ogiltig(t) ${n[r.format]??a.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${Q(a.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${a.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${a.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function KS(){return{localeError:TO()}}var qO=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(a){return e[a]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${a.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}`}case"invalid_value":return a.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${S(a.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${Q(a.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${a.maximum.toString()} ${A.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${a.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin} ${r}${a.minimum.toString()} ${A.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin} ${r}${a.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${r.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${a.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${a.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`${a.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${a.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function JS(){return{localeError:qO()}}var OO=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(a){return e[a]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${a.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${i}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${r} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${i}`}case"invalid_value":return a.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${S(a.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",A=t(a.origin);return A?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.maximum.toString()} ${A.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",A=t(a.origin);return A?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.minimum.toString()} ${A.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${r.prefix}"`:r.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${r.suffix}"`:r.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${r.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:r.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${r.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[r.format]??a.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${a.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${Q(a.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${a.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${a.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function WS(){return{localeError:OO()}}var zO=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(a){return e[a]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${a.expected}, al\u0131nan ${i}`:`Ge\xE7ersiz de\u011Fer: beklenen ${r}, al\u0131nan ${i}`}case"invalid_value":return a.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${S(a.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${r}${a.maximum.toString()} ${A.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${r}${a.minimum.toString()} ${A.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ge\xE7ersiz metin: "${r.prefix}" ile ba\u015Flamal\u0131`:r.format==="ends_with"?`Ge\xE7ersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Ge\xE7ersiz metin: "${r.includes}" i\xE7ermeli`:r.format==="regex"?`Ge\xE7ersiz metin: ${r.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[r.format]??a.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${a.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${a.keys.length>1?"lar":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`${a.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${a.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function ZS(){return{localeError:zO()}}var YO=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(a){return e[a]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${a.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${i}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${r}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${i}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${S(a.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${A.verb} ${r}${a.maximum.toString()} ${A.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} ${A.verb} ${r}${a.minimum.toString()} ${A.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} \u0431\u0443\u0434\u0435 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${a.keys.length>1?"\u0456":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${a.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Mg(){return{localeError:YO()}}function VS(){return Mg()}var KO=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(a){return e[a]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${a.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${i} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${r} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${i} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return a.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${S(a.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${Q(a.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${r}${a.maximum.toString()} ${A.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${r}${a.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u06D2 ${r}${a.minimum.toString()} ${A.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u0627 ${r}${a.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${r.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${a.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${a.keys.length>1?"\u0632":""}: ${Q(a.keys,"\u060C ")}`;case"invalid_key":return`${a.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${a.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function XS(){return{localeError:KO()}}var JO=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(a){return e[a]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${a.expected}, qabul qilingan ${i}`:`Noto\u2018g\u2018ri kirish: kutilgan ${r}, qabul qilingan ${i}`}case"invalid_value":return a.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${S(a.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Juda katta: kutilgan ${a.origin??"qiymat"} ${r}${a.maximum.toString()} ${A.unit} ${A.verb}`:`Juda katta: kutilgan ${a.origin??"qiymat"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Juda kichik: kutilgan ${a.origin} ${r}${a.minimum.toString()} ${A.unit} ${A.verb}`:`Juda kichik: kutilgan ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${r.prefix}" bilan boshlanishi kerak`:r.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${r.suffix}" bilan tugashi kerak`:r.format==="includes"?`Noto\u2018g\u2018ri satr: "${r.includes}" ni o\u2018z ichiga olishi kerak`:r.format==="regex"?`Noto\u2018g\u2018ri satr: ${r.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[r.format]??a.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${a.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${a.keys.length>1?"lar":""}: ${Q(a.keys,", ")}`;case"invalid_key":return`${a.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${a.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function e9(){return{localeError:JO()}}var WO=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(a){return e[a]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${a.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${i}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${r}, nh\u1EADn \u0111\u01B0\u1EE3c ${i}`}case"invalid_value":return a.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${S(a.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${A.verb} ${r}${a.maximum.toString()} ${A.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${A.verb} ${r}${a.minimum.toString()} ${A.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${r.prefix}"`:r.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${r.suffix}"`:r.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${r.includes}"`:r.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${r.pattern}`:`${n[r.format]??a.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${a.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${Q(a.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${a.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${a.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function t9(){return{localeError:WO()}}var ZO=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(a){return e[a]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${a.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${i}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${r}\uFF0C\u5B9E\u9645\u63A5\u6536 ${i}`}case"invalid_value":return a.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${S(a.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${r}${a.maximum.toString()} ${A.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${r}${a.minimum.toString()} ${A.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.prefix}" \u5F00\u5934`:r.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.suffix}" \u7ED3\u5C3E`:r.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${r.pattern}`:`\u65E0\u6548${n[r.format]??a.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${a.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${Q(a.keys,", ")}`;case"invalid_key":return`${a.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${a.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function n9(){return{localeError:ZO()}}var VO=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(a){return e[a]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${a.expected}\uFF0C\u4F46\u6536\u5230 ${i}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${r}\uFF0C\u4F46\u6536\u5230 ${i}`}case"invalid_value":return a.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${S(a.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${r}${a.maximum.toString()} ${A.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${r}${a.minimum.toString()} ${A.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.prefix}" \u958B\u982D`:r.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.suffix}" \u7D50\u5C3E`:r.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${r.pattern}`:`\u7121\u6548\u7684 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${a.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${a.keys.length>1?"\u5011":""}\uFF1A${Q(a.keys,"\u3001")}`;case"invalid_key":return`${a.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${a.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function a9(){return{localeError:VO()}}var XO=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(a){return e[a]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${a.expected}, \xE0m\u1ECD\u0300 a r\xED ${i}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${r}, \xE0m\u1ECD\u0300 a r\xED ${i}`}case"invalid_value":return a.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${S(a.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${Q(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin??"iye"} ${A.verb} ${r}${a.maximum} ${A.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${r}${a.maximum}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin} ${A.verb} ${r}${a.minimum} ${A.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${r}${a.minimum}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${r.prefix}"`:r.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${r.suffix}"`:r.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${r.includes}"`:r.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${r.pattern}`:`A\u1E63\xEC\u1E63e: ${n[r.format]??a.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${a.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${Q(a.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${a.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${a.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function o9(){return{localeError:XO()}}var r9,kE=Symbol("ZodOutput"),QE=Symbol("ZodInput"),jg=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let a={...o,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Gg(){return new jg}(r9=globalThis).__zod_globalRegistry??(r9.__zod_globalRegistry=Gg());var Kt=globalThis.__zod_globalRegistry;function IE(e,t){return new e({type:"string",...j(t)})}function _E(e,t){return new e({type:"string",coerce:!0,...j(t)})}function Hg(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...j(t)})}function $u(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...j(t)})}function Pg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...j(t)})}function Ug(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...j(t)})}function Tg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...j(t)})}function qg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...j(t)})}function Ru(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...j(t)})}function Og(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...j(t)})}function zg(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...j(t)})}function Yg(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...j(t)})}function Kg(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...j(t)})}function Jg(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...j(t)})}function Wg(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...j(t)})}function Zg(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...j(t)})}function Vg(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...j(t)})}function Xg(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...j(t)})}function vE(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...j(t)})}function em(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...j(t)})}function tm(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...j(t)})}function nm(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...j(t)})}function am(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...j(t)})}function om(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...j(t)})}function rm(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...j(t)})}var xE={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function DE(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...j(t)})}function FE(e,t){return new e({type:"string",format:"date",check:"string_format",...j(t)})}function SE(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...j(t)})}function LE(e,t){return new e({type:"string",format:"duration",check:"string_format",...j(t)})}function $E(e,t){return new e({type:"number",checks:[],...j(t)})}function RE(e,t){return new e({type:"number",coerce:!0,checks:[],...j(t)})}function NE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...j(t)})}function ME(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...j(t)})}function jE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...j(t)})}function GE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...j(t)})}function HE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...j(t)})}function PE(e,t){return new e({type:"boolean",...j(t)})}function UE(e,t){return new e({type:"boolean",coerce:!0,...j(t)})}function TE(e,t){return new e({type:"bigint",...j(t)})}function qE(e,t){return new e({type:"bigint",coerce:!0,...j(t)})}function OE(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...j(t)})}function zE(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...j(t)})}function YE(e,t){return new e({type:"symbol",...j(t)})}function KE(e,t){return new e({type:"undefined",...j(t)})}function JE(e,t){return new e({type:"null",...j(t)})}function WE(e){return new e({type:"any"})}function ZE(e){return new e({type:"unknown"})}function VE(e,t){return new e({type:"never",...j(t)})}function XE(e,t){return new e({type:"void",...j(t)})}function ek(e,t){return new e({type:"date",...j(t)})}function tk(e,t){return new e({type:"date",coerce:!0,...j(t)})}function nk(e,t){return new e({type:"nan",...j(t)})}function Za(e,t){return new kg({check:"less_than",...j(t),value:e,inclusive:!1})}function Yn(e,t){return new kg({check:"less_than",...j(t),value:e,inclusive:!0})}function Va(e,t){return new Qg({check:"greater_than",...j(t),value:e,inclusive:!1})}function gn(e,t){return new Qg({check:"greater_than",...j(t),value:e,inclusive:!0})}function Am(e){return Va(0,e)}function im(e){return Za(0,e)}function sm(e){return Yn(0,e)}function cm(e){return gn(0,e)}function xr(e,t){return new Jy({check:"multiple_of",...j(t),value:e})}function Dr(e,t){return new Vy({check:"max_size",...j(t),maximum:e})}function Xa(e,t){return new Xy({check:"min_size",...j(t),minimum:e})}function vA(e,t){return new ew({check:"size_equals",...j(t),size:e})}function xA(e,t){return new tw({check:"max_length",...j(t),maximum:e})}function Ro(e,t){return new nw({check:"min_length",...j(t),minimum:e})}function DA(e,t){return new aw({check:"length_equals",...j(t),length:e})}function hs(e,t){return new ow({check:"string_format",format:"regex",...j(t),pattern:e})}function Bs(e){return new rw({check:"string_format",format:"lowercase",...j(e)})}function Cs(e){return new Aw({check:"string_format",format:"uppercase",...j(e)})}function ys(e,t){return new iw({check:"string_format",format:"includes",...j(t),includes:e})}function ws(e,t){return new sw({check:"string_format",format:"starts_with",...j(t),prefix:e})}function Es(e,t){return new cw({check:"string_format",format:"ends_with",...j(t),suffix:e})}function um(e,t,n){return new uw({check:"property",property:e,schema:t,...j(n)})}function ks(e,t){return new dw({check:"mime_type",mime:e,...j(t)})}function Fa(e){return new lw({check:"overwrite",tx:e})}function Qs(e){return Fa(t=>t.normalize(e))}function Is(){return Fa(e=>e.trim())}function _s(){return Fa(e=>e.toLowerCase())}function vs(){return Fa(e=>e.toUpperCase())}function xs(){return Fa(e=>sy(e))}function ak(e,t,n){return new e({type:"array",element:t,...j(n)})}function tz(e,t,n){return new e({type:"union",options:t,...j(n)})}function nz(e,t,n){return new e({type:"union",options:t,inclusive:!1,...j(n)})}function az(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...j(o)})}function oz(e,t,n){return new e({type:"intersection",left:t,right:n})}function rz(e,t,n,o){let a=n instanceof Z,r=a?o:n,A=a?n:null;return new e({type:"tuple",items:t,rest:A,...j(r)})}function Az(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...j(o)})}function iz(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...j(o)})}function sz(e,t,n){return new e({type:"set",valueType:t,...j(n)})}function cz(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(a=>[a,a])):t;return new e({type:"enum",entries:o,...j(n)})}function uz(e,t,n){return new e({type:"enum",entries:t,...j(n)})}function dz(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...j(n)})}function ok(e,t){return new e({type:"file",...j(t)})}function lz(e,t){return new e({type:"transform",transform:t})}function pz(e,t){return new e({type:"optional",innerType:t})}function gz(e,t){return new e({type:"nullable",innerType:t})}function mz(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():uy(n)}})}function fz(e,t,n){return new e({type:"nonoptional",innerType:t,...j(n)})}function bz(e,t){return new e({type:"success",innerType:t})}function hz(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function Bz(e,t,n){return new e({type:"pipe",in:t,out:n})}function Cz(e,t){return new e({type:"readonly",innerType:t})}function yz(e,t,n){return new e({type:"template_literal",parts:t,...j(n)})}function wz(e,t){return new e({type:"lazy",getter:t})}function Ez(e,t){return new e({type:"promise",innerType:t})}function rk(e,t,n){let o=j(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Ak(e,t,n){return new e({type:"custom",check:"custom",fn:t,...j(n)})}function ik(e,t){let n=A9(o=>(o.addIssue=a=>{if(typeof a=="string")o.issues.push(ds(a,o.value,n._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=o.value),r.inst??(r.inst=n),r.continue??(r.continue=!n._zod.def.abort),o.issues.push(ds(r))}},e(o.value,o)),t);return n}function A9(e,t){let n=new qe({check:"custom",...j(t)});return n._zod.check=e,n}function sk(e){let t=new qe({check:"describe"});return t._zod.onattach=[n=>{let o=Kt.get(n)??{};Kt.add(n,{...o,description:e})}],t._zod.check=()=>{},t}function ck(e){let t=new qe({check:"meta"});return t._zod.onattach=[n=>{let o=Kt.get(n)??{};Kt.add(n,{...o,...e})}],t._zod.check=()=>{},t}function uk(e,t){let n=j(t),o=n.truthy??["true","1","yes","on","y","enabled"],a=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(p=>typeof p=="string"?p.toLowerCase():p),a=a.map(p=>typeof p=="string"?p.toLowerCase():p));let r=new Set(o),A=new Set(a),i=e.Codec??Fu,s=e.Boolean??xu,c=e.String??_A,u=new c({type:"string",error:n.error}),d=new s({type:"boolean",error:n.error}),l=new i({type:"pipe",in:u,out:d,transform:((p,b)=>{let B=p;return n.case!=="sensitive"&&(B=B.toLowerCase()),r.has(B)?!0:A.has(B)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...r,...A],input:b.value,inst:l,continue:!1}),{})}),reverseTransform:((p,b)=>p===!0?o[0]||"true":a[0]||"false"),error:n.error});return l}function Ds(e,t,n,o={}){let a=j(o),r={...j(o),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:i=>n.test(i),...a};return n instanceof RegExp&&(r.pattern=n),new e(r)}function Fr(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Kt,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function xe(e,t,n={path:[],schemaPath:[]}){var o;let a=e._zod.def,r=t.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;let A={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,A);let i=e._zod.toJSONSchema?.();if(i)A.schema=i;else{let u={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,A.schema,u);else{let l=A.schema,p=t.processors[a.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);p(e,t,l,u)}let d=e._zod.parent;d&&(A.ref||(A.ref=d),xe(d,t,u),t.seen.get(d).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(A.schema,s),t.io==="input"&&mn(e)&&(delete A.schema.examples,delete A.schema.default),t.io==="input"&&"_prefault"in A.schema&&((o=A.schema).default??(o.default=A.schema._prefault)),delete A.schema._prefault,t.seen.get(e).schema}function Sr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let A of e.seen.entries()){let i=e.metadataRegistry.get(A[0])?.id;if(i){let s=o.get(i);if(s&&s!==A[0])throw new Error(`Duplicate schema id "${i}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(i,A[0])}}let a=A=>{let i=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(A[0])?.id,l=e.external.uri??(b=>b);if(d)return{ref:l(d)};let p=A[1].defId??A[1].schema.id??`schema${e.counter++}`;return A[1].defId=p,{defId:p,ref:`${l("__shared")}#/${i}/${p}`}}if(A[1]===n)return{ref:"#"};let c=`#/${i}/`,u=A[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+u}},r=A=>{if(A[1].schema.$ref)return;let i=A[1],{ref:s,defId:c}=a(A);i.def={...i.schema},c&&(i.defId=c);let u=i.schema;for(let d in u)delete u[d];u.$ref=s};if(e.cycles==="throw")for(let A of e.seen.entries()){let i=A[1];if(i.cycle)throw new Error(`Cycle detected: #/${i.cycle?.join("/")}/<root>
74
74
 
75
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let A of e.seen.entries()){let i=A[1];if(t===A[0]){r(A);continue}if(e.external){let c=e.external.registry.get(A[0])?.id;if(t!==A[0]&&c){r(A);continue}}if(e.metadataRegistry.get(A[0])?.id){r(A);continue}if(i.cycle){r(A);continue}if(i.count>1&&e.reused==="ref"){r(A);continue}}}function Lr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=i=>{let s=e.seen.get(i);if(s.ref===null)return;let c=s.def??s.schema,u={...c},d=s.ref;if(s.ref=null,d){o(d);let p=e.seen.get(d),b=p.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(b)):Object.assign(c,b),Object.assign(c,u),i._zod.parent===d)for(let C in c)C==="$ref"||C==="allOf"||C in u||delete c[C];if(b.$ref&&p.def)for(let C in c)C==="$ref"||C==="allOf"||C in p.def&&JSON.stringify(c[C])===JSON.stringify(p.def[C])&&delete c[C]}let l=i._zod.parent;if(l&&l!==d){o(l);let p=e.seen.get(l);if(p?.schema.$ref&&(c.$ref=p.schema.$ref,p.def))for(let b in c)b==="$ref"||b==="allOf"||b in p.def&&JSON.stringify(c[b])===JSON.stringify(p.def[b])&&delete c[b]}e.override({zodSchema:i,jsonSchema:c,path:s.path??[]})};for(let i of[...e.seen.entries()].reverse())o(i[0]);let a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(i)}Object.assign(a,n.def??n.schema);let r=e.metadataRegistry.get(t)?.id;r!==void 0&&a.id===r&&delete a.id;let A=e.external?.defs??{};for(let i of e.seen.entries()){let s=i[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,A[s.defId]=s.def)}e.external||Object.keys(A).length>0&&(e.target==="draft-2020-12"?a.$defs=A:a.definitions=A);try{let i=JSON.parse(JSON.stringify(a));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:Fs(t,"input",e.processors),output:Fs(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function mn(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return mn(o.element,n);if(o.type==="set")return mn(o.valueType,n);if(o.type==="lazy")return mn(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return mn(o.innerType,n);if(o.type==="intersection")return mn(o.left,n)||mn(o.right,n);if(o.type==="record"||o.type==="map")return mn(o.keyType,n)||mn(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:mn(o.in,n)||mn(o.out,n);if(o.type==="object"){for(let a in o.shape)if(mn(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(let a of o.options)if(mn(a,n))return!0;return!1}if(o.type==="tuple"){for(let a of o.items)if(mn(a,n))return!0;return!!(o.rest&&mn(o.rest,n))}return!1}var dk=(e,t={})=>n=>{let o=Fr({...n,processors:t});return xe(e,o),Sr(o,e),Lr(o,e)},Fs=(e,t,n={})=>o=>{let{libraryOptions:a,target:r}=o??{},A=Fr({...a??{},target:r,io:t,processors:n});return xe(e,A),Sr(A,e),Lr(A,e)};var kz={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},lk=(e,t,n,o)=>{let a=n;a.type="string";let{minimum:r,maximum:A,format:i,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof A=="number"&&(a.maxLength=A),i&&(a.format=kz[i]??i,a.format===""&&delete a.format,i==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){let u=[...s];u.length===1?a.pattern=u[0].source:u.length>1&&(a.allOf=[...u.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},pk=(e,t,n,o)=>{let a=n,{minimum:r,maximum:A,format:i,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof i=="string"&&i.includes("int")?a.type="integer":a.type="number";let d=typeof u=="number"&&u>=(r??Number.NEGATIVE_INFINITY),l=typeof c=="number"&&c<=(A??Number.POSITIVE_INFINITY),p=t.target==="draft-04"||t.target==="openapi-3.0";d?p?(a.minimum=u,a.exclusiveMinimum=!0):a.exclusiveMinimum=u:typeof r=="number"&&(a.minimum=r),l?p?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof A=="number"&&(a.maximum=A),typeof s=="number"&&(a.multipleOf=s)},gk=(e,t,n,o)=>{n.type="boolean"},mk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},fk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},bk=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},hk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Bk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Ck=(e,t,n,o)=>{n.not={}},yk=(e,t,n,o)=>{},wk=(e,t,n,o)=>{},Ek=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},kk=(e,t,n,o)=>{let a=e._zod.def,r=hu(a.entries);r.every(A=>typeof A=="number")&&(n.type="number"),r.every(A=>typeof A=="string")&&(n.type="string"),n.enum=r},Qk=(e,t,n,o)=>{let a=e._zod.def,r=[];for(let A of a.values)if(A===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof A=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(A))}else r.push(A);if(r.length!==0)if(r.length===1){let A=r[0];n.type=A===null?"null":typeof A,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[A]:n.const=A}else r.every(A=>typeof A=="number")&&(n.type="number"),r.every(A=>typeof A=="string")&&(n.type="string"),r.every(A=>typeof A=="boolean")&&(n.type="boolean"),r.every(A=>A===null)&&(n.type="null"),n.enum=r},Ik=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},_k=(e,t,n,o)=>{let a=n,r=e._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},vk=(e,t,n,o)=>{let a=n,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:A,maximum:i,mime:s}=e._zod.bag;A!==void 0&&(r.minLength=A),i!==void 0&&(r.maxLength=i),s?s.length===1?(r.contentMediaType=s[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(a,r)},xk=(e,t,n,o)=>{n.type="boolean"},Dk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Fk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Sk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Lk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},$k=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Rk=(e,t,n,o)=>{let a=n,r=e._zod.def,{minimum:A,maximum:i}=e._zod.bag;typeof A=="number"&&(a.minItems=A),typeof i=="number"&&(a.maxItems=i),a.type="array",a.items=xe(r.element,t,{...o,path:[...o.path,"items"]})},Nk=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object",a.properties={};let A=r.shape;for(let c in A)a.properties[c]=xe(A[c],t,{...o,path:[...o.path,"properties",c]});let i=new Set(Object.keys(A)),s=new Set([...i].filter(c=>{let u=r.shape[c]._zod;return t.io==="input"?u.optin===void 0:u.optout===void 0}));s.size>0&&(a.required=Array.from(s)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=xe(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},lm=(e,t,n,o)=>{let a=e._zod.def,r=a.inclusive===!1,A=a.options.map((i,s)=>xe(i,t,{...o,path:[...o.path,r?"oneOf":"anyOf",s]}));r?n.oneOf=A:n.anyOf=A},Mk=(e,t,n,o)=>{let a=e._zod.def,r=xe(a.left,t,{...o,path:[...o.path,"allOf",0]}),A=xe(a.right,t,{...o,path:[...o.path,"allOf",1]}),i=c=>"allOf"in c&&Object.keys(c).length===1,s=[...i(r)?r.allOf:[r],...i(A)?A.allOf:[A]];n.allOf=s},jk=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="array";let A=t.target==="draft-2020-12"?"prefixItems":"items",i=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=r.items.map((l,p)=>xe(l,t,{...o,path:[...o.path,A,p]})),c=r.rest?xe(r.rest,t,{...o,path:[...o.path,i,...t.target==="openapi-3.0"?[r.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=s,c&&(a.items=c)):t.target==="openapi-3.0"?(a.items={anyOf:s},c&&a.items.anyOf.push(c),a.minItems=s.length,c||(a.maxItems=s.length)):(a.items=s,c&&(a.additionalItems=c));let{minimum:u,maximum:d}=e._zod.bag;typeof u=="number"&&(a.minItems=u),typeof d=="number"&&(a.maxItems=d)},Gk=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object";let A=r.keyType,s=A._zod.bag?.patterns;if(r.mode==="loose"&&s&&s.size>0){let u=xe(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(let d of s)a.patternProperties[d.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=xe(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=xe(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=A._zod.values;if(c){let u=[...c].filter(d=>typeof d=="string"||typeof d=="number");u.length>0&&(a.required=u)}},Hk=(e,t,n,o)=>{let a=e._zod.def,r=xe(a.innerType,t,o),A=t.seen.get(e);t.target==="openapi-3.0"?(A.ref=a.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},Pk=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},Uk=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},Tk=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},qk=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType;let A;try{A=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=A},Ok=(e,t,n,o)=>{let a=e._zod.def,r=a.in._zod.traits.has("$ZodTransform"),A=t.io==="input"?r?a.out:a.in:a.out;xe(A,t,o);let i=t.seen.get(e);i.ref=A},zk=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.readOnly=!0},Yk=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},pm=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},Kk=(e,t,n,o)=>{let a=e._zod.innerType;xe(a,t,o);let r=t.seen.get(e);r.ref=a},dm={string:lk,number:pk,boolean:gk,bigint:mk,symbol:fk,null:bk,undefined:hk,void:Bk,never:Ck,any:yk,unknown:wk,date:Ek,enum:kk,literal:Qk,nan:Ik,template_literal:_k,file:vk,success:xk,custom:Dk,function:Fk,transform:Sk,map:Lk,set:$k,array:Rk,object:Nk,union:lm,intersection:Mk,tuple:jk,record:Gk,nullable:Hk,nonoptional:Pk,default:Uk,prefault:Tk,catch:qk,pipe:Ok,readonly:zk,promise:Yk,optional:pm,lazy:Kk};function gm(e,t){if("_idmap"in e){let o=e,a=Fr({...t,processors:dm}),r={};for(let s of o._idmap.entries()){let[c,u]=s;xe(u,a)}let A={},i={registry:o,uri:t?.uri,defs:r};a.external=i;for(let s of o._idmap.entries()){let[c,u]=s;Sr(a,u),A[c]=Lr(a,u)}if(Object.keys(r).length>0){let s=a.target==="draft-2020-12"?"$defs":"definitions";A.__shared={[s]:r}}return{schemas:A}}let n=Fr({...t,processors:dm});return xe(e,n),Sr(n,e),Lr(n,e)}var mm=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Fr({processors:dm,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return xe(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),Sr(this.ctx,t);let o=Lr(this.ctx,t),{"~standard":a,...r}=o;return r}};var i9={};var Nu={};_(Nu,{ZodAny:()=>hQ,ZodArray:()=>wQ,ZodBase64:()=>Nm,ZodBase64URL:()=>Mm,ZodBigInt:()=>Gs,ZodBigIntFormat:()=>Hm,ZodBoolean:()=>js,ZodCIDRv4:()=>$m,ZodCIDRv6:()=>Rm,ZodCUID:()=>_m,ZodCUID2:()=>vm,ZodCatch:()=>qQ,ZodCodec:()=>Ku,ZodCustom:()=>Ju,ZodCustomStringFormat:()=>Ns,ZodDate:()=>Tu,ZodDefault:()=>jQ,ZodDiscriminatedUnion:()=>kQ,ZodE164:()=>jm,ZodEmail:()=>km,ZodEmoji:()=>Qm,ZodEnum:()=>$s,ZodExactOptional:()=>RQ,ZodFile:()=>LQ,ZodFunction:()=>e0,ZodGUID:()=>ju,ZodIPv4:()=>Sm,ZodIPv6:()=>Lm,ZodIntersection:()=>QQ,ZodJWT:()=>Gm,ZodKSUID:()=>Fm,ZodLazy:()=>ZQ,ZodLiteral:()=>SQ,ZodMAC:()=>dQ,ZodMap:()=>DQ,ZodNaN:()=>zQ,ZodNanoID:()=>Im,ZodNever:()=>CQ,ZodNonOptional:()=>zm,ZodNull:()=>fQ,ZodNullable:()=>MQ,ZodNumber:()=>Ms,ZodNumberFormat:()=>SA,ZodObject:()=>Ou,ZodOptional:()=>Om,ZodPipe:()=>Yu,ZodPrefault:()=>HQ,ZodPreprocess:()=>YQ,ZodPromise:()=>XQ,ZodReadonly:()=>KQ,ZodRecord:()=>Ls,ZodSet:()=>FQ,ZodString:()=>Rs,ZodStringFormat:()=>Ge,ZodSuccess:()=>TQ,ZodSymbol:()=>gQ,ZodTemplateLiteral:()=>WQ,ZodTransform:()=>$Q,ZodTuple:()=>_Q,ZodType:()=>re,ZodULID:()=>xm,ZodURL:()=>Uu,ZodUUID:()=>eo,ZodUndefined:()=>mQ,ZodUnion:()=>zu,ZodUnknown:()=>BQ,ZodVoid:()=>yQ,ZodXID:()=>Dm,ZodXor:()=>EQ,_ZodString:()=>Em,_default:()=>GQ,_function:()=>f6,any:()=>Y9,array:()=>qu,base64:()=>D9,base64url:()=>F9,bigint:()=>U9,boolean:()=>pQ,catch:()=>OQ,check:()=>b6,cidrv4:()=>v9,cidrv6:()=>x9,codec:()=>l6,cuid:()=>C9,cuid2:()=>y9,custom:()=>h6,date:()=>J9,describe:()=>B6,discriminatedUnion:()=>t6,e164:()=>S9,email:()=>u9,emoji:()=>h9,enum:()=>Tm,exactOptional:()=>NQ,file:()=>s6,float32:()=>j9,float64:()=>G9,function:()=>f6,guid:()=>d9,hash:()=>M9,hex:()=>N9,hostname:()=>R9,httpUrl:()=>b9,instanceof:()=>y6,int:()=>ym,int32:()=>H9,int64:()=>T9,intersection:()=>IQ,invertCodec:()=>p6,ipv4:()=>Q9,ipv6:()=>_9,json:()=>E6,jwt:()=>L9,keyof:()=>W9,ksuid:()=>k9,lazy:()=>VQ,literal:()=>i6,looseObject:()=>X9,looseRecord:()=>a6,mac:()=>I9,map:()=>o6,meta:()=>C6,nan:()=>d6,nanoid:()=>B9,nativeEnum:()=>A6,never:()=>Pm,nonoptional:()=>UQ,null:()=>bQ,nullable:()=>Hu,nullish:()=>c6,number:()=>lQ,object:()=>Z9,optional:()=>Gu,partialRecord:()=>n6,pipe:()=>wm,prefault:()=>PQ,preprocess:()=>k6,promise:()=>m6,readonly:()=>JQ,record:()=>xQ,refine:()=>t0,set:()=>r6,strictObject:()=>V9,string:()=>Mu,stringFormat:()=>$9,stringbool:()=>w6,success:()=>u6,superRefine:()=>n0,symbol:()=>O9,templateLiteral:()=>g6,transform:()=>qm,tuple:()=>vQ,uint32:()=>P9,uint64:()=>q9,ulid:()=>w9,undefined:()=>z9,union:()=>Um,unknown:()=>FA,url:()=>f9,uuid:()=>l9,uuidv4:()=>p9,uuidv6:()=>g9,uuidv7:()=>m9,void:()=>K9,xid:()=>E9,xor:()=>e6});var fm={};_(fm,{endsWith:()=>Es,gt:()=>Va,gte:()=>gn,includes:()=>ys,length:()=>DA,lowercase:()=>Bs,lt:()=>Za,lte:()=>Yn,maxLength:()=>xA,maxSize:()=>Dr,mime:()=>ks,minLength:()=>Ro,minSize:()=>Xa,multipleOf:()=>xr,negative:()=>im,nonnegative:()=>cm,nonpositive:()=>sm,normalize:()=>Qs,overwrite:()=>Fa,positive:()=>Am,property:()=>um,regex:()=>hs,size:()=>vA,slugify:()=>xs,startsWith:()=>ws,toLowerCase:()=>_s,toUpperCase:()=>vs,trim:()=>Is,uppercase:()=>Cs});var Ss={};_(Ss,{ZodISODate:()=>hm,ZodISODateTime:()=>bm,ZodISODuration:()=>Cm,ZodISOTime:()=>Bm,date:()=>Wk,datetime:()=>Jk,duration:()=>Vk,time:()=>Zk});var bm=w("ZodISODateTime",(e,t)=>{Iw.init(e,t),Ge.init(e,t)});function Jk(e){return DE(bm,e)}var hm=w("ZodISODate",(e,t)=>{_w.init(e,t),Ge.init(e,t)});function Wk(e){return FE(hm,e)}var Bm=w("ZodISOTime",(e,t)=>{vw.init(e,t),Ge.init(e,t)});function Zk(e){return SE(Bm,e)}var Cm=w("ZodISODuration",(e,t)=>{xw.init(e,t),Ge.init(e,t)});function Vk(e){return LE(Cm,e)}var s9=(e,t)=>{Eu.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Qu(e,n)},flatten:{value:n=>ku(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,cs,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,cs,2)}},isEmpty:{get(){return e.issues.length===0}}})},Iz=w("ZodError",s9),Dn=w("ZodError",s9,{Parent:Error});var Xk=ls(Dn),eQ=ps(Dn),tQ=gs(Dn),nQ=ms(Dn),aQ=gg(Dn),oQ=mg(Dn),rQ=fg(Dn),AQ=bg(Dn),iQ=hg(Dn),sQ=Bg(Dn),cQ=Cg(Dn),uQ=yg(Dn);var c9=new WeakMap;function Pu(e,t,n){let o=Object.getPrototypeOf(e),a=c9.get(o);if(a||(a=new Set,c9.set(o,a)),!a.has(t)){a.add(t);for(let r in n){let A=n[r];Object.defineProperty(o,r,{configurable:!0,enumerable:!1,get(){let i=A.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:i}),i},set(i){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:i})}})}}}var re=w("ZodType",(e,t)=>(Z.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Fs(e,"input"),output:Fs(e,"output")}}),e.toJSONSchema=dk(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>Xk(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>tQ(e,n,o),e.parseAsync=async(n,o)=>eQ(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>nQ(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>aQ(e,n,o),e.decode=(n,o)=>oQ(e,n,o),e.encodeAsync=async(n,o)=>rQ(e,n,o),e.decodeAsync=async(n,o)=>AQ(e,n,o),e.safeEncode=(n,o)=>iQ(e,n,o),e.safeDecode=(n,o)=>sQ(e,n,o),e.safeEncodeAsync=async(n,o)=>cQ(e,n,o),e.safeDecodeAsync=async(n,o)=>uQ(e,n,o),Pu(e,"ZodType",{check(...n){let o=this.def;return this.clone($.mergeDefs(o,{checks:[...o.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return ln(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(t0(n,o))},superRefine(n,o){return this.check(n0(n,o))},overwrite(n){return this.check(Fa(n))},optional(){return Gu(this)},exactOptional(){return NQ(this)},nullable(){return Hu(this)},nullish(){return Gu(Hu(this))},nonoptional(n){return UQ(this,n)},array(){return qu(this)},or(n){return Um([this,n])},and(n){return IQ(this,n)},transform(n){return wm(this,qm(n))},default(n){return GQ(this,n)},prefault(n){return PQ(this,n)},catch(n){return OQ(this,n)},pipe(n){return wm(this,n)},readonly(){return JQ(this)},describe(n){let o=this.clone();return Kt.add(o,{description:n}),o},meta(...n){if(n.length===0)return Kt.get(this);let o=this.clone();return Kt.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Kt.get(e)?.description},configurable:!0}),e)),Em=w("_ZodString",(e,t)=>{_A.init(e,t),re.init(e,t),e._zod.processJSONSchema=(o,a,r)=>lk(e,o,a,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Pu(e,"_ZodString",{regex(...o){return this.check(hs(...o))},includes(...o){return this.check(ys(...o))},startsWith(...o){return this.check(ws(...o))},endsWith(...o){return this.check(Es(...o))},min(...o){return this.check(Ro(...o))},max(...o){return this.check(xA(...o))},length(...o){return this.check(DA(...o))},nonempty(...o){return this.check(Ro(1,...o))},lowercase(o){return this.check(Bs(o))},uppercase(o){return this.check(Cs(o))},trim(){return this.check(Is())},normalize(...o){return this.check(Qs(...o))},toLowerCase(){return this.check(_s())},toUpperCase(){return this.check(vs())},slugify(){return this.check(xs())}})}),Rs=w("ZodString",(e,t)=>{_A.init(e,t),Em.init(e,t),e.email=n=>e.check(Hg(km,n)),e.url=n=>e.check(Ru(Uu,n)),e.jwt=n=>e.check(rm(Gm,n)),e.emoji=n=>e.check(Og(Qm,n)),e.guid=n=>e.check($u(ju,n)),e.uuid=n=>e.check(Pg(eo,n)),e.uuidv4=n=>e.check(Ug(eo,n)),e.uuidv6=n=>e.check(Tg(eo,n)),e.uuidv7=n=>e.check(qg(eo,n)),e.nanoid=n=>e.check(zg(Im,n)),e.guid=n=>e.check($u(ju,n)),e.cuid=n=>e.check(Yg(_m,n)),e.cuid2=n=>e.check(Kg(vm,n)),e.ulid=n=>e.check(Jg(xm,n)),e.base64=n=>e.check(nm(Nm,n)),e.base64url=n=>e.check(am(Mm,n)),e.xid=n=>e.check(Wg(Dm,n)),e.ksuid=n=>e.check(Zg(Fm,n)),e.ipv4=n=>e.check(Vg(Sm,n)),e.ipv6=n=>e.check(Xg(Lm,n)),e.cidrv4=n=>e.check(em($m,n)),e.cidrv6=n=>e.check(tm(Rm,n)),e.e164=n=>e.check(om(jm,n)),e.datetime=n=>e.check(Jk(n)),e.date=n=>e.check(Wk(n)),e.time=n=>e.check(Zk(n)),e.duration=n=>e.check(Vk(n))});function Mu(e){return IE(Rs,e)}var Ge=w("ZodStringFormat",(e,t)=>{je.init(e,t),Em.init(e,t)}),km=w("ZodEmail",(e,t)=>{bw.init(e,t),Ge.init(e,t)});function u9(e){return Hg(km,e)}var ju=w("ZodGUID",(e,t)=>{mw.init(e,t),Ge.init(e,t)});function d9(e){return $u(ju,e)}var eo=w("ZodUUID",(e,t)=>{fw.init(e,t),Ge.init(e,t)});function l9(e){return Pg(eo,e)}function p9(e){return Ug(eo,e)}function g9(e){return Tg(eo,e)}function m9(e){return qg(eo,e)}var Uu=w("ZodURL",(e,t)=>{hw.init(e,t),Ge.init(e,t)});function f9(e){return Ru(Uu,e)}function b9(e){return Ru(Uu,{protocol:zn.httpProtocol,hostname:zn.domain,...$.normalizeParams(e)})}var Qm=w("ZodEmoji",(e,t)=>{Bw.init(e,t),Ge.init(e,t)});function h9(e){return Og(Qm,e)}var Im=w("ZodNanoID",(e,t)=>{Cw.init(e,t),Ge.init(e,t)});function B9(e){return zg(Im,e)}var _m=w("ZodCUID",(e,t)=>{yw.init(e,t),Ge.init(e,t)});function C9(e){return Yg(_m,e)}var vm=w("ZodCUID2",(e,t)=>{ww.init(e,t),Ge.init(e,t)});function y9(e){return Kg(vm,e)}var xm=w("ZodULID",(e,t)=>{Ew.init(e,t),Ge.init(e,t)});function w9(e){return Jg(xm,e)}var Dm=w("ZodXID",(e,t)=>{kw.init(e,t),Ge.init(e,t)});function E9(e){return Wg(Dm,e)}var Fm=w("ZodKSUID",(e,t)=>{Qw.init(e,t),Ge.init(e,t)});function k9(e){return Zg(Fm,e)}var Sm=w("ZodIPv4",(e,t)=>{Dw.init(e,t),Ge.init(e,t)});function Q9(e){return Vg(Sm,e)}var dQ=w("ZodMAC",(e,t)=>{Sw.init(e,t),Ge.init(e,t)});function I9(e){return vE(dQ,e)}var Lm=w("ZodIPv6",(e,t)=>{Fw.init(e,t),Ge.init(e,t)});function _9(e){return Xg(Lm,e)}var $m=w("ZodCIDRv4",(e,t)=>{Lw.init(e,t),Ge.init(e,t)});function v9(e){return em($m,e)}var Rm=w("ZodCIDRv6",(e,t)=>{$w.init(e,t),Ge.init(e,t)});function x9(e){return tm(Rm,e)}var Nm=w("ZodBase64",(e,t)=>{Nw.init(e,t),Ge.init(e,t)});function D9(e){return nm(Nm,e)}var Mm=w("ZodBase64URL",(e,t)=>{Mw.init(e,t),Ge.init(e,t)});function F9(e){return am(Mm,e)}var jm=w("ZodE164",(e,t)=>{jw.init(e,t),Ge.init(e,t)});function S9(e){return om(jm,e)}var Gm=w("ZodJWT",(e,t)=>{Gw.init(e,t),Ge.init(e,t)});function L9(e){return rm(Gm,e)}var Ns=w("ZodCustomStringFormat",(e,t)=>{Hw.init(e,t),Ge.init(e,t)});function $9(e,t,n={}){return Ds(Ns,e,t,n)}function R9(e){return Ds(Ns,"hostname",zn.hostname,e)}function N9(e){return Ds(Ns,"hex",zn.hex,e)}function M9(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,a=zn[o];if(!a)throw new Error(`Unrecognized hash format: ${o}`);return Ds(Ns,o,a,t)}var Ms=w("ZodNumber",(e,t)=>{Dg.init(e,t),re.init(e,t),e._zod.processJSONSchema=(o,a,r)=>pk(e,o,a,r),Pu(e,"ZodNumber",{gt(o,a){return this.check(Va(o,a))},gte(o,a){return this.check(gn(o,a))},min(o,a){return this.check(gn(o,a))},lt(o,a){return this.check(Za(o,a))},lte(o,a){return this.check(Yn(o,a))},max(o,a){return this.check(Yn(o,a))},int(o){return this.check(ym(o))},safe(o){return this.check(ym(o))},positive(o){return this.check(Va(0,o))},nonnegative(o){return this.check(gn(0,o))},negative(o){return this.check(Za(0,o))},nonpositive(o){return this.check(Yn(0,o))},multipleOf(o,a){return this.check(xr(o,a))},step(o,a){return this.check(xr(o,a))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function lQ(e){return $E(Ms,e)}var SA=w("ZodNumberFormat",(e,t)=>{Pw.init(e,t),Ms.init(e,t)});function ym(e){return NE(SA,e)}function j9(e){return ME(SA,e)}function G9(e){return jE(SA,e)}function H9(e){return GE(SA,e)}function P9(e){return HE(SA,e)}var js=w("ZodBoolean",(e,t)=>{xu.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>gk(e,n,o,a)});function pQ(e){return PE(js,e)}var Gs=w("ZodBigInt",(e,t)=>{Fg.init(e,t),re.init(e,t),e._zod.processJSONSchema=(o,a,r)=>mk(e,o,a,r),e.gte=(o,a)=>e.check(gn(o,a)),e.min=(o,a)=>e.check(gn(o,a)),e.gt=(o,a)=>e.check(Va(o,a)),e.gte=(o,a)=>e.check(gn(o,a)),e.min=(o,a)=>e.check(gn(o,a)),e.lt=(o,a)=>e.check(Za(o,a)),e.lte=(o,a)=>e.check(Yn(o,a)),e.max=(o,a)=>e.check(Yn(o,a)),e.positive=o=>e.check(Va(BigInt(0),o)),e.negative=o=>e.check(Za(BigInt(0),o)),e.nonpositive=o=>e.check(Yn(BigInt(0),o)),e.nonnegative=o=>e.check(gn(BigInt(0),o)),e.multipleOf=(o,a)=>e.check(xr(o,a));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function U9(e){return TE(Gs,e)}var Hm=w("ZodBigIntFormat",(e,t)=>{Uw.init(e,t),Gs.init(e,t)});function T9(e){return OE(Hm,e)}function q9(e){return zE(Hm,e)}var gQ=w("ZodSymbol",(e,t)=>{Tw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>fk(e,n,o,a)});function O9(e){return YE(gQ,e)}var mQ=w("ZodUndefined",(e,t)=>{qw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>hk(e,n,o,a)});function z9(e){return KE(mQ,e)}var fQ=w("ZodNull",(e,t)=>{Ow.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>bk(e,n,o,a)});function bQ(e){return JE(fQ,e)}var hQ=w("ZodAny",(e,t)=>{zw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>yk(e,n,o,a)});function Y9(){return WE(hQ)}var BQ=w("ZodUnknown",(e,t)=>{Yw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>wk(e,n,o,a)});function FA(){return ZE(BQ)}var CQ=w("ZodNever",(e,t)=>{Kw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ck(e,n,o,a)});function Pm(e){return VE(CQ,e)}var yQ=w("ZodVoid",(e,t)=>{Jw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Bk(e,n,o,a)});function K9(e){return XE(yQ,e)}var Tu=w("ZodDate",(e,t)=>{Ww.init(e,t),re.init(e,t),e._zod.processJSONSchema=(o,a,r)=>Ek(e,o,a,r),e.min=(o,a)=>e.check(gn(o,a)),e.max=(o,a)=>e.check(Yn(o,a));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function J9(e){return ek(Tu,e)}var wQ=w("ZodArray",(e,t)=>{Zw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Rk(e,n,o,a),e.element=t.element,Pu(e,"ZodArray",{min(n,o){return this.check(Ro(n,o))},nonempty(n){return this.check(Ro(1,n))},max(n,o){return this.check(xA(n,o))},length(n,o){return this.check(DA(n,o))},unwrap(){return this.element}})});function qu(e,t){return ak(wQ,e,t)}function W9(e){let t=e._zod.def.shape;return Tm(Object.keys(t))}var Ou=w("ZodObject",(e,t)=>{Vw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Nk(e,n,o,a),$.defineLazy(e,"shape",()=>t.shape),Pu(e,"ZodObject",{keyof(){return Tm(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:FA()})},loose(){return this.clone({...this._zod.def,catchall:FA()})},strict(){return this.clone({...this._zod.def,catchall:Pm()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return $.extend(this,n)},safeExtend(n){return $.safeExtend(this,n)},merge(n){return $.merge(this,n)},pick(n){return $.pick(this,n)},omit(n){return $.omit(this,n)},partial(...n){return $.partial(Om,this,n[0])},required(...n){return $.required(zm,this,n[0])}})});function Z9(e,t){let n={type:"object",shape:e??{},...$.normalizeParams(t)};return new Ou(n)}function V9(e,t){return new Ou({type:"object",shape:e,catchall:Pm(),...$.normalizeParams(t)})}function X9(e,t){return new Ou({type:"object",shape:e,catchall:FA(),...$.normalizeParams(t)})}var zu=w("ZodUnion",(e,t)=>{Du.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>lm(e,n,o,a),e.options=t.options});function Um(e,t){return new zu({type:"union",options:e,...$.normalizeParams(t)})}var EQ=w("ZodXor",(e,t)=>{zu.init(e,t),Xw.init(e,t),e._zod.processJSONSchema=(n,o,a)=>lm(e,n,o,a),e.options=t.options});function e6(e,t){return new EQ({type:"union",options:e,inclusive:!1,...$.normalizeParams(t)})}var kQ=w("ZodDiscriminatedUnion",(e,t)=>{zu.init(e,t),eE.init(e,t)});function t6(e,t,n){return new kQ({type:"union",options:t,discriminator:e,...$.normalizeParams(n)})}var QQ=w("ZodIntersection",(e,t)=>{tE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Mk(e,n,o,a)});function IQ(e,t){return new QQ({type:"intersection",left:e,right:t})}var _Q=w("ZodTuple",(e,t)=>{Sg.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>jk(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function vQ(e,t,n){let o=t instanceof Z,a=o?n:t,r=o?t:null;return new _Q({type:"tuple",items:e,rest:r,...$.normalizeParams(a)})}var Ls=w("ZodRecord",(e,t)=>{nE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Gk(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function xQ(e,t,n){return!t||!t._zod?new Ls({type:"record",keyType:Mu(),valueType:e,...$.normalizeParams(t)}):new Ls({type:"record",keyType:e,valueType:t,...$.normalizeParams(n)})}function n6(e,t,n){let o=ln(e);return o._zod.values=void 0,new Ls({type:"record",keyType:o,valueType:t,...$.normalizeParams(n)})}function a6(e,t,n){return new Ls({type:"record",keyType:e,valueType:t,mode:"loose",...$.normalizeParams(n)})}var DQ=w("ZodMap",(e,t)=>{aE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Lk(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Xa(...n)),e.nonempty=n=>e.check(Xa(1,n)),e.max=(...n)=>e.check(Dr(...n)),e.size=(...n)=>e.check(vA(...n))});function o6(e,t,n){return new DQ({type:"map",keyType:e,valueType:t,...$.normalizeParams(n)})}var FQ=w("ZodSet",(e,t)=>{oE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>$k(e,n,o,a),e.min=(...n)=>e.check(Xa(...n)),e.nonempty=n=>e.check(Xa(1,n)),e.max=(...n)=>e.check(Dr(...n)),e.size=(...n)=>e.check(vA(...n))});function r6(e,t){return new FQ({type:"set",valueType:e,...$.normalizeParams(t)})}var $s=w("ZodEnum",(e,t)=>{rE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(o,a,r)=>kk(e,o,a,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,a)=>{let r={};for(let A of o)if(n.has(A))r[A]=t.entries[A];else throw new Error(`Key ${A} not found in enum`);return new $s({...t,checks:[],...$.normalizeParams(a),entries:r})},e.exclude=(o,a)=>{let r={...t.entries};for(let A of o)if(n.has(A))delete r[A];else throw new Error(`Key ${A} not found in enum`);return new $s({...t,checks:[],...$.normalizeParams(a),entries:r})}});function Tm(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new $s({type:"enum",entries:n,...$.normalizeParams(t)})}function A6(e,t){return new $s({type:"enum",entries:e,...$.normalizeParams(t)})}var SQ=w("ZodLiteral",(e,t)=>{AE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Qk(e,n,o,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function i6(e,t){return new SQ({type:"literal",values:Array.isArray(e)?e:[e],...$.normalizeParams(t)})}var LQ=w("ZodFile",(e,t)=>{iE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>vk(e,n,o,a),e.min=(n,o)=>e.check(Xa(n,o)),e.max=(n,o)=>e.check(Dr(n,o)),e.mime=(n,o)=>e.check(ks(Array.isArray(n)?n:[n],o))});function s6(e){return ok(LQ,e)}var $Q=w("ZodTransform",(e,t)=>{sE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Sk(e,n,o,a),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new kr(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push($.issue(r,n.value,t));else{let A=r;A.fatal&&(A.continue=!1),A.code??(A.code="custom"),A.input??(A.input=n.value),A.inst??(A.inst=e),n.issues.push($.issue(A))}};let a=t.transform(n.value,n);return a instanceof Promise?a.then(r=>(n.value=r,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function qm(e){return new $Q({type:"transform",transform:e})}var Om=w("ZodOptional",(e,t)=>{Lg.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>pm(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Gu(e){return new Om({type:"optional",innerType:e})}var RQ=w("ZodExactOptional",(e,t)=>{cE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>pm(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function NQ(e){return new RQ({type:"optional",innerType:e})}var MQ=w("ZodNullable",(e,t)=>{uE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Hk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Hu(e){return new MQ({type:"nullable",innerType:e})}function c6(e){return Gu(Hu(e))}var jQ=w("ZodDefault",(e,t)=>{dE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Uk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function GQ(e,t){return new jQ({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var HQ=w("ZodPrefault",(e,t)=>{lE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Tk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function PQ(e,t){return new HQ({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var zm=w("ZodNonOptional",(e,t)=>{pE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Pk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function UQ(e,t){return new zm({type:"nonoptional",innerType:e,...$.normalizeParams(t)})}var TQ=w("ZodSuccess",(e,t)=>{gE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>xk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function u6(e){return new TQ({type:"success",innerType:e})}var qQ=w("ZodCatch",(e,t)=>{mE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>qk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function OQ(e,t){return new qQ({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var zQ=w("ZodNaN",(e,t)=>{fE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ik(e,n,o,a)});function d6(e){return nk(zQ,e)}var Yu=w("ZodPipe",(e,t)=>{$g.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ok(e,n,o,a),e.in=t.in,e.out=t.out});function wm(e,t){return new Yu({type:"pipe",in:e,out:t})}var Ku=w("ZodCodec",(e,t)=>{Yu.init(e,t),Fu.init(e,t)});function l6(e,t,n){return new Ku({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function p6(e){let t=e._zod.def;return new Ku({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var YQ=w("ZodPreprocess",(e,t)=>{Yu.init(e,t),bE.init(e,t)}),KQ=w("ZodReadonly",(e,t)=>{hE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>zk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function JQ(e){return new KQ({type:"readonly",innerType:e})}var WQ=w("ZodTemplateLiteral",(e,t)=>{BE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>_k(e,n,o,a)});function g6(e,t){return new WQ({type:"template_literal",parts:e,...$.normalizeParams(t)})}var ZQ=w("ZodLazy",(e,t)=>{wE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Kk(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function VQ(e){return new ZQ({type:"lazy",getter:e})}var XQ=w("ZodPromise",(e,t)=>{yE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Yk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function m6(e){return new XQ({type:"promise",innerType:e})}var e0=w("ZodFunction",(e,t)=>{CE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Fk(e,n,o,a)});function f6(e){return new e0({type:"function",input:Array.isArray(e?.input)?vQ(e?.input):e?.input??qu(FA()),output:e?.output??FA()})}var Ju=w("ZodCustom",(e,t)=>{EE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Dk(e,n,o,a)});function b6(e){let t=new qe({check:"custom"});return t._zod.check=e,t}function h6(e,t){return rk(Ju,e??(()=>!0),t)}function t0(e,t={}){return Ak(Ju,e,t)}function n0(e,t){return ik(e,t)}var B6=sk,C6=ck;function y6(e,t={}){let n=new Ju({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...$.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var w6=(...e)=>uk({Codec:Ku,Boolean:js,String:Rs},...e);function E6(e){let t=VQ(()=>Um([Mu(e),lQ(),pQ(),bQ(),qu(t),xQ(Mu(),t)]));return t}function k6(e,t){return new YQ({type:"pipe",in:qm(e),out:t})}var vz={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function xz(e){At({customError:e})}function Dz(){return At().customError}var a0;a0||(a0={});var H={...Nu,...fm,iso:Ss},Fz=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Sz(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function Lz(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let a=n[1];if(!a||!t.defs[a])throw new Error(`Reference not found: ${e}`);return t.defs[a]}throw new Error(`Reference not found: ${e}`)}function Q6(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return H.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let a=e.$ref;if(t.refs.has(a))return t.refs.get(a);if(t.processing.has(a))return H.lazy(()=>{if(!t.refs.has(a))throw new Error(`Circular reference not resolved: ${a}`);return t.refs.get(a)});t.processing.add(a);let r=Lz(a,t),A=tn(r,t);return t.refs.set(a,A),t.processing.delete(a),A}if(e.enum!==void 0){let a=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&a.length===1&&a[0]===null)return H.null();if(a.length===0)return H.never();if(a.length===1)return H.literal(a[0]);if(a.every(A=>typeof A=="string"))return H.enum(a);let r=a.map(A=>H.literal(A));return r.length<2?r[0]:H.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return H.literal(e.const);let n=e.type;if(Array.isArray(n)){let a=n.map(r=>{let A={...e,type:r};return Q6(A,t)});return a.length===0?H.never():a.length===1?a[0]:H.union(a)}if(!n)return H.any();let o;switch(n){case"string":{let a=H.string();if(e.format){let r=e.format;r==="email"?a=a.check(H.email()):r==="uri"||r==="uri-reference"?a=a.check(H.url()):r==="uuid"||r==="guid"?a=a.check(H.uuid()):r==="date-time"?a=a.check(H.iso.datetime()):r==="date"?a=a.check(H.iso.date()):r==="time"?a=a.check(H.iso.time()):r==="duration"?a=a.check(H.iso.duration()):r==="ipv4"?a=a.check(H.ipv4()):r==="ipv6"?a=a.check(H.ipv6()):r==="mac"?a=a.check(H.mac()):r==="cidr"?a=a.check(H.cidrv4()):r==="cidr-v6"?a=a.check(H.cidrv6()):r==="base64"?a=a.check(H.base64()):r==="base64url"?a=a.check(H.base64url()):r==="e164"?a=a.check(H.e164()):r==="jwt"?a=a.check(H.jwt()):r==="emoji"?a=a.check(H.emoji()):r==="nanoid"?a=a.check(H.nanoid()):r==="cuid"?a=a.check(H.cuid()):r==="cuid2"?a=a.check(H.cuid2()):r==="ulid"?a=a.check(H.ulid()):r==="xid"?a=a.check(H.xid()):r==="ksuid"&&(a=a.check(H.ksuid()))}typeof e.minLength=="number"&&(a=a.min(e.minLength)),typeof e.maxLength=="number"&&(a=a.max(e.maxLength)),e.pattern&&(a=a.regex(new RegExp(e.pattern))),o=a;break}case"number":case"integer":{let a=n==="integer"?H.number().int():H.number();typeof e.minimum=="number"&&(a=a.min(e.minimum)),typeof e.maximum=="number"&&(a=a.max(e.maximum)),typeof e.exclusiveMinimum=="number"?a=a.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(a=a.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?a=a.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(a=a.lt(e.maximum)),typeof e.multipleOf=="number"&&(a=a.multipleOf(e.multipleOf)),o=a;break}case"boolean":{o=H.boolean();break}case"null":{o=H.null();break}case"object":{let a={},r=e.properties||{},A=new Set(e.required||[]);for(let[s,c]of Object.entries(r)){let u=tn(c,t);a[s]=A.has(s)?u:u.optional()}if(e.propertyNames){let s=tn(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?tn(e.additionalProperties,t):H.any();if(Object.keys(a).length===0){o=H.record(s,c);break}let u=H.object(a).passthrough(),d=H.looseRecord(s,c);o=H.intersection(u,d);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),u=[];for(let l of c){let p=tn(s[l],t),b=H.string().regex(new RegExp(l));u.push(H.looseRecord(b,p))}let d=[];if(Object.keys(a).length>0&&d.push(H.object(a).passthrough()),d.push(...u),d.length===0)o=H.object({}).passthrough();else if(d.length===1)o=d[0];else{let l=H.intersection(d[0],d[1]);for(let p=2;p<d.length;p++)l=H.intersection(l,d[p]);o=l}break}let i=H.object(a);e.additionalProperties===!1?o=i.strict():typeof e.additionalProperties=="object"?o=i.catchall(tn(e.additionalProperties,t)):o=i.passthrough();break}case"array":{let a=e.prefixItems,r=e.items;if(a&&Array.isArray(a)){let A=a.map(s=>tn(s,t)),i=r&&typeof r=="object"&&!Array.isArray(r)?tn(r,t):void 0;i?o=H.tuple(A).rest(i):o=H.tuple(A),typeof e.minItems=="number"&&(o=o.check(H.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(H.maxLength(e.maxItems)))}else if(Array.isArray(r)){let A=r.map(s=>tn(s,t)),i=e.additionalItems&&typeof e.additionalItems=="object"?tn(e.additionalItems,t):void 0;i?o=H.tuple(A).rest(i):o=H.tuple(A),typeof e.minItems=="number"&&(o=o.check(H.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(H.maxLength(e.maxItems)))}else if(r!==void 0){let A=tn(r,t),i=H.array(A);typeof e.minItems=="number"&&(i=i.min(e.minItems)),typeof e.maxItems=="number"&&(i=i.max(e.maxItems)),o=i}else o=H.array(H.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function tn(e,t){if(typeof e=="boolean")return e?H.any():H.never();let n=Q6(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(c=>tn(c,t)),s=H.union(i);n=o?H.intersection(n,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(c=>tn(c,t)),s=H.xor(i);n=o?H.intersection(n,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:H.any();else{let i=o?n:tn(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)i=H.intersection(i,tn(e.allOf[c],t));n=i}e.nullable===!0&&t.version==="openapi-3.0"&&(n=H.nullable(n)),e.readOnly===!0&&(n=H.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let a={},r=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let i of r)i in e&&(a[i]=e[i]);let A=["contentEncoding","contentMediaType","contentSchema"];for(let i of A)i in e&&(a[i]=e[i]);for(let i of Object.keys(e))Fz.has(i)||(a[i]=e[i]);return Object.keys(a).length>0&&t.registry.add(n,a),e.description&&(n=n.describe(e.description)),n}function I6(e,t){if(typeof e=="boolean")return e?H.any():H.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=Sz(n,t?.defaultTarget),a=n.$defs||n.definitions||{},r={version:o,defs:a,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Kt};return tn(n,r)}var o0={};_(o0,{bigint:()=>Mz,boolean:()=>Nz,date:()=>jz,number:()=>Rz,string:()=>$z});function $z(e){return _E(Rs,e)}function Rz(e){return RE(Ms,e)}function Nz(e){return UE(js,e)}function Mz(e){return qE(Gs,e)}function jz(e){return tk(Tu,e)}At(Rg());var Gz=f.object({input:f.number().finite().nonnegative().optional(),output:f.number().finite().nonnegative().optional(),cacheRead:f.number().finite().nonnegative().optional(),cacheWrite:f.number().finite().nonnegative().optional(),total:f.number().finite().nonnegative().optional()}).strict(),_6=f.object({inputTokens:f.number().int().nonnegative().optional(),outputTokens:f.number().int().nonnegative().optional(),cachedInputTokens:f.number().int().nonnegative().optional(),cacheCreationTokens:f.number().int().nonnegative().optional(),reasoningTokens:f.number().int().nonnegative().optional(),totalTokens:f.number().int().nonnegative().optional(),cost:Gz.optional()}).strict();var k=Symbol.for("drizzle:entityKind");function kt(e,t){if(!e||typeof e!="object")return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,k))throw new Error(`Class "${t.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(e).constructor;if(n)for(;n;){if(k in n&&n[k]===t[k])return!0;n=Object.getPrototypeOf(n)}return!1}var LA=class{constructor(t,n){this.table=t,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[k]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(t){return t}mapToDriverValue(t){return t}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}};var Ym=class{static[k]="ColumnBuilder";config;constructor(t,n,o){this.config={name:t,keyAsName:t==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:o,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(t){return this.config.default=t,this.config.hasDefault=!0,this}$defaultFn(t){return this.config.defaultFn=t,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(t){return this.config.onUpdateFn=t,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(t){this.config.name===""&&(this.config.name=t)}};var Mo=Symbol.for("drizzle:Name");var Km=class{static[k]="PgForeignKeyBuilder";reference;_onUpdate="no action";_onDelete="no action";constructor(t,n){this.reference=()=>{let{name:o,columns:a,foreignColumns:r}=t();return{name:o,columns:a,foreignTable:r[0].table,foreignColumns:r}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(t){return this._onUpdate=t===void 0?"no action":t,this}onDelete(t){return this._onDelete=t===void 0?"no action":t,this}build(t){return new r0(t,this)}},r0=class{constructor(t,n){this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[k]="PgForeignKey";reference;onUpdate;onDelete;getName(){let{name:t,columns:n,foreignColumns:o}=this.reference(),a=n.map(i=>i.name),r=o.map(i=>i.name),A=[this.table[Mo],...a,o[0].table[Mo],...r];return t??`${A.join("_")}_fk`}};function Jm(e,...t){return e(...t)}function s0(e,t){return`${e[Mo]}_${t.join("_")}_unique`}var A0=class{constructor(t,n){this.name=n,this.columns=t}static[k]="PgUniqueConstraintBuilder";columns;nullsNotDistinctConfig=!1;nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(t){return new i0(t,this.columns,this.nullsNotDistinctConfig,this.name)}},v6=class{static[k]="PgUniqueOnConstraintBuilder";name;constructor(t){this.name=t}on(...t){return new A0(t,this.name)}},i0=class{constructor(t,n,o,a){this.table=t,this.columns=n,this.name=a??s0(this.table,this.columns.map(r=>r.name)),this.nullsNotDistinct=o}static[k]="PgUniqueConstraint";columns;name;nullsNotDistinct=!1;getName(){return this.name}};function x6(e,t,n){for(let o=t;o<e.length;o++){let a=e[o];if(a==="\\"){o++;continue}if(a==='"')return[e.slice(t,o).replace(/\\/g,""),o+1];if(!n&&(a===","||a==="}"))return[e.slice(t,o).replace(/\\/g,""),o]}return[e.slice(t).replace(/\\/g,""),e.length]}function D6(e,t=0){let n=[],o=t,a=!1;for(;o<e.length;){let r=e[o];if(r===","){(a||o===t)&&n.push(""),a=!0,o++;continue}if(a=!1,r==="\\"){o+=2;continue}if(r==='"'){let[s,c]=x6(e,o+1,!0);n.push(s),o=c;continue}if(r==="}")return[n,o+1];if(r==="{"){let[s,c]=D6(e,o+1);n.push(s),o=c;continue}let[A,i]=x6(e,o,!1);n.push(A),o=i}return[n,o]}function F6(e){let[t]=D6(e,1);return t}function c0(e){return`{${e.map(t=>Array.isArray(t)?c0(t):typeof t=="string"?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}var T=class extends Ym{foreignKeyConfigs=[];static[k]="PgColumnBuilder";array(t){return new d0(this.config.name,this,t)}references(t,n={}){return this.foreignKeyConfigs.push({ref:t,actions:n}),this}unique(t,n){return this.config.isUnique=!0,this.config.uniqueName=t,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(t){return this.config.generated={as:t,type:"always",mode:"stored"},this}buildForeignKeys(t,n){return this.foreignKeyConfigs.map(({ref:o,actions:a})=>Jm((r,A)=>{let i=new Km(()=>{let s=r();return{columns:[t],foreignColumns:[s]}});return A.onUpdate&&i.onUpdate(A.onUpdate),A.onDelete&&i.onDelete(A.onDelete),i.build(n)},o,a))}buildExtraConfigColumn(t){return new u0(t,this.config)}},G=class extends LA{constructor(t,n){n.uniqueName||(n.uniqueName=s0(t,[n.name])),super(t,n),this.table=t}static[k]="PgColumn"},u0=class extends G{static[k]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(t){return this.indexConfig.opClass=t,this}},Hs=class{static[k]="IndexedColumn";constructor(t,n,o,a){this.name=t,this.keyAsName=n,this.type=o,this.indexConfig=a}name;keyAsName;type;indexConfig},d0=class extends T{static[k]="PgArrayBuilder";constructor(t,n,o){super(t,"array","PgArray"),this.config.baseBuilder=n,this.config.size=o}build(t){let n=this.config.baseBuilder.build(t);return new l0(t,this.config,n)}},l0=class e extends G{constructor(t,n,o,a){super(t,n),this.baseColumn=o,this.range=a,this.size=n.size}size;static[k]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(t){return typeof t=="string"&&(t=F6(t)),t.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(t,n=!1){let o=t.map(a=>a===null?null:kt(this.baseColumn,e)?this.baseColumn.mapToDriverValue(a,!0):this.baseColumn.mapToDriverValue(a));return n?o:c0(o)}};var S6=class extends T{static[k]="PgEnumObjectColumnBuilder";constructor(t,n){super(t,"string","PgEnumObjectColumn"),this.config.enum=n}build(t){return new p0(t,this.config)}},p0=class extends G{static[k]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}},L6=Symbol.for("drizzle:isPgEnum");function R6(e){return!!e&&typeof e=="function"&&L6 in e&&e[L6]===!0}var $6=class extends T{static[k]="PgEnumColumnBuilder";constructor(t,n){super(t,"string","PgEnumColumn"),this.config.enum=n}build(t){return new g0(t,this.config)}},g0=class extends G{static[k]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}};var Ps=class{static[k]="Subquery";constructor(t,n,o,a=!1,r=[]){this._={brand:"Subquery",sql:t,selectedFields:n,alias:o,isWith:a,usedTables:r}}},N6=class extends Ps{static[k]="WithSubquery"};var M6="0.45.2";var m0,f0,j6={startActiveSpan(e,t){return m0?(f0||(f0=m0.trace.getTracer("drizzle-orm",M6)),Jm((n,o)=>o.startActiveSpan(e,a=>{try{return t(a)}catch(r){throw a.setStatus({code:n.SpanStatusCode.ERROR,message:r instanceof Error?r.message:"Unknown error"}),r}finally{a.end()}}),m0,f0)):t()}};var Us=Symbol.for("drizzle:ViewBaseConfig");var b0=Symbol.for("drizzle:Schema"),G6=Symbol.for("drizzle:Columns"),H6=Symbol.for("drizzle:ExtraConfigColumns"),h0=Symbol.for("drizzle:OriginalName"),B0=Symbol.for("drizzle:BaseName"),Wu=Symbol.for("drizzle:IsAlias"),P6=Symbol.for("drizzle:ExtraConfigBuilder"),Hz=Symbol.for("drizzle:IsDrizzleTable"),lt=class{static[k]="Table";static Symbol={Name:Mo,Schema:b0,OriginalName:h0,Columns:G6,ExtraConfigColumns:H6,BaseName:B0,IsAlias:Wu,ExtraConfigBuilder:P6};[Mo];[h0];[b0];[G6];[H6];[B0];[Wu]=!1;[Hz]=!0;[P6]=void 0;constructor(t,n,o){this[Mo]=this[h0]=t,this[b0]=n,this[B0]=o}};var U6=class{static[k]="FakePrimitiveParam"};function Pz(e){return e!=null&&typeof e.getSQL=="function"}function Uz(e){let t={sql:"",params:[]};for(let n of e)t.sql+=n.sql,t.params.push(...n.params),n.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...n.typings));return t}var Kn=class{static[k]="StringChunk";value;constructor(t){this.value=Array.isArray(t)?t:[t]}getSQL(){return new pt([this])}},pt=class e{constructor(t){this.queryChunks=t;for(let n of t)if(kt(n,lt)){let o=n[lt.Symbol.Schema];this.usedTables.push(o===void 0?n[lt.Symbol.Name]:o+"."+n[lt.Symbol.Name])}}static[k]="SQL";decoder=T6;shouldInlineParams=!1;usedTables=[];append(t){return this.queryChunks.push(...t.queryChunks),this}toQuery(t){return j6.startActiveSpan("drizzle.buildSQL",n=>{let o=this.buildQueryFromSourceParams(this.queryChunks,t);return n?.setAttributes({"drizzle.query.text":o.sql,"drizzle.query.params":JSON.stringify(o.params)}),o})}buildQueryFromSourceParams(t,n){let o=Object.assign({},n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:a,escapeName:r,escapeParam:A,prepareTyping:i,inlineParams:s,paramStartIndex:c}=o;return Uz(t.map(u=>{if(kt(u,Kn))return{sql:u.value.join(""),params:[]};if(kt(u,Zu))return{sql:r(u.value),params:[]};if(u===void 0)return{sql:"",params:[]};if(Array.isArray(u)){let d=[new Kn("(")];for(let[l,p]of u.entries())d.push(p),l<u.length-1&&d.push(new Kn(", "));return d.push(new Kn(")")),this.buildQueryFromSourceParams(d,o)}if(kt(u,e))return this.buildQueryFromSourceParams(u.queryChunks,{...o,inlineParams:s||u.shouldInlineParams});if(kt(u,lt)){let d=u[lt.Symbol.Schema],l=u[lt.Symbol.Name];return{sql:d===void 0||u[Wu]?r(l):r(d)+"."+r(l),params:[]}}if(kt(u,LA)){let d=a.getColumnCasing(u);if(n.invokeSource==="indexes")return{sql:r(d),params:[]};let l=u.table[lt.Symbol.Schema];return{sql:u.table[Wu]||l===void 0?r(u.table[lt.Symbol.Name])+"."+r(d):r(l)+"."+r(u.table[lt.Symbol.Name])+"."+r(d),params:[]}}if(kt(u,C0)){let d=u[Us].schema,l=u[Us].name;return{sql:d===void 0||u[Us].isAlias?r(l):r(d)+"."+r(l),params:[]}}if(kt(u,Wm)){if(kt(u.value,Vu))return{sql:A(c.value++,u),params:[u],typings:["none"]};let d=u.value===null?null:u.encoder.mapToDriverValue(u.value);if(kt(d,e))return this.buildQueryFromSourceParams([d],o);if(s)return{sql:this.mapInlineParam(d,o),params:[]};let l=["none"];return i&&(l=[i(u.encoder)]),{sql:A(c.value++,d),params:[d],typings:l}}return kt(u,Vu)?{sql:A(c.value++,u),params:[u],typings:["none"]}:kt(u,e.Aliased)&&u.fieldAlias!==void 0?{sql:r(u.fieldAlias),params:[]}:kt(u,Ps)?u._.isWith?{sql:r(u._.alias),params:[]}:this.buildQueryFromSourceParams([new Kn("("),u._.sql,new Kn(") "),new Zu(u._.alias)],o):R6(u)?u.schema?{sql:r(u.schema)+"."+r(u.enumName),params:[]}:{sql:r(u.enumName),params:[]}:Pz(u)?u.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([u.getSQL()],o):this.buildQueryFromSourceParams([new Kn("("),u.getSQL(),new Kn(")")],o):s?{sql:this.mapInlineParam(u,o),params:[]}:{sql:A(c.value++,u),params:[u],typings:["none"]}}))}mapInlineParam(t,{escapeString:n}){if(t===null)return"null";if(typeof t=="number"||typeof t=="boolean")return t.toString();if(typeof t=="string")return n(t);if(typeof t=="object"){let o=t.toString();return n(o==="[object Object]"?JSON.stringify(t):o)}throw new Error("Unexpected param value: "+t)}getSQL(){return this}as(t){return t===void 0?this:new e.Aliased(this,t)}mapWith(t){return this.decoder=typeof t=="function"?{mapFromDriverValue:t}:t,this}inlineParams(){return this.shouldInlineParams=!0,this}if(t){return t?this:void 0}},Zu=class{constructor(t){this.value=t}static[k]="Name";brand;getSQL(){return new pt([this])}};var T6={mapFromDriverValue:e=>e},q6={mapToDriverValue:e=>e},kue={...T6,...q6},Wm=class{constructor(t,n=q6){this.value=t,this.encoder=n}static[k]="Param";brand;getSQL(){return new pt([this])}};function Ts(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!=="")&&n.push(new Kn(e[0]));for(let[o,a]of t.entries())n.push(a,new Kn(e[o+1]));return new pt(n)}(e=>{function t(){return new pt([])}e.empty=t;function n(s){return new pt(s)}e.fromList=n;function o(s){return new pt([new Kn(s)])}e.raw=o;function a(s,c){let u=[];for(let[d,l]of s.entries())d>0&&c!==void 0&&u.push(c),u.push(l);return new pt(u)}e.join=a;function r(s){return new Zu(s)}e.identifier=r;function A(s){return new Vu(s)}e.placeholder=A;function i(s,c){return new Wm(s,c)}e.param=i})(Ts||(Ts={}));(e=>{class t{constructor(o,a){this.sql=o,this.fieldAlias=a}static[k]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(pt||(pt={}));var Vu=class{constructor(t){this.name=t}static[k]="Placeholder";getSQL(){return new pt([this])}};var Tz=Symbol.for("drizzle:IsDrizzleView"),C0=class{static[k]="View";[Us];[Tz]=!0;constructor({name:t,schema:n,selectedFields:o,query:a}){this[Us]={name:t,originalName:t,schema:n,selectedFields:o,query:a,isExisting:!a,isAlias:!1}}getSQL(){return new pt([this])}};LA.prototype.getSQL=function(){return new pt([this])};lt.prototype.getSQL=function(){return new pt([this])};Ps.prototype.getSQL=function(){return new pt([this])};function be(e,t){return{name:typeof e=="string"&&e.length>0?e:"",config:typeof e=="object"?e:t}}var Iue=typeof TextDecoder>"u"?null:new TextDecoder;var jo=class extends T{static[k]="PgIntColumnBaseBuilder";generatedAlwaysAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"always",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"always"};return this.config.hasDefault=!0,this.config.notNull=!0,this}generatedByDefaultAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"byDefault",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"byDefault"};return this.config.hasDefault=!0,this.config.notNull=!0,this}};var y0=class extends jo{static[k]="PgBigInt53Builder";constructor(t){super(t,"number","PgBigInt53")}build(t){return new w0(t,this.config)}},w0=class extends G{static[k]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},E0=class extends jo{static[k]="PgBigInt64Builder";constructor(t){super(t,"bigint","PgBigInt64")}build(t){return new k0(t,this.config)}},k0=class extends G{static[k]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(t){return BigInt(t)}};function O6(e,t){let{name:n,config:o}=be(e,t);return o.mode==="number"?new y0(n):new E0(n)}var Q0=class extends T{static[k]="PgBigSerial53Builder";constructor(t){super(t,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new I0(t,this.config)}},I0=class extends G{static[k]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},_0=class extends T{static[k]="PgBigSerial64Builder";constructor(t){super(t,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(t){return new v0(t,this.config)}},v0=class extends G{static[k]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(t){return BigInt(t)}};function z6(e,t){let{name:n,config:o}=be(e,t);return o.mode==="number"?new Q0(n):new _0(n)}var x0=class extends T{static[k]="PgBooleanBuilder";constructor(t){super(t,"boolean","PgBoolean")}build(t){return new D0(t,this.config)}},D0=class extends G{static[k]="PgBoolean";getSQLType(){return"boolean"}};function Y6(e){return new x0(e??"")}var F0=class extends T{static[k]="PgCharBuilder";constructor(t,n){super(t,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new S0(t,this.config)}},S0=class extends G{static[k]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}};function K6(e,t={}){let{name:n,config:o}=be(e,t);return new F0(n,o)}var L0=class extends T{static[k]="PgCidrBuilder";constructor(t){super(t,"string","PgCidr")}build(t){return new $0(t,this.config)}},$0=class extends G{static[k]="PgCidr";getSQLType(){return"cidr"}};function J6(e){return new L0(e??"")}var R0=class extends T{static[k]="PgCustomColumnBuilder";constructor(t,n,o){super(t,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=o}build(t){return new N0(t,this.config)}},N0=class extends G{static[k]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(t,n){super(t,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(t){return typeof this.mapFrom=="function"?this.mapFrom(t):t}mapToDriverValue(t){return typeof this.mapTo=="function"?this.mapTo(t):t}};function W6(e){return(t,n)=>{let{name:o,config:a}=be(t,n);return new R0(o,a,e)}}var to=class extends T{static[k]="PgDateColumnBaseBuilder";defaultNow(){return this.default(Ts`now()`)}};var M0=class extends to{static[k]="PgDateBuilder";constructor(t){super(t,"date","PgDate")}build(t){return new j0(t,this.config)}},j0=class extends G{static[k]="PgDate";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?new Date(t):t}mapToDriverValue(t){return t.toISOString()}},G0=class extends to{static[k]="PgDateStringBuilder";constructor(t){super(t,"string","PgDateString")}build(t){return new H0(t,this.config)}},H0=class extends G{static[k]="PgDateString";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?t:t.toISOString().slice(0,-14)}};function Z6(e,t){let{name:n,config:o}=be(e,t);return o?.mode==="date"?new M0(n):new G0(n)}var P0=class extends T{static[k]="PgDoublePrecisionBuilder";constructor(t){super(t,"number","PgDoublePrecision")}build(t){return new U0(t,this.config)}},U0=class extends G{static[k]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(t){return typeof t=="string"?Number.parseFloat(t):t}};function V6(e){return new P0(e??"")}var T0=class extends T{static[k]="PgInetBuilder";constructor(t){super(t,"string","PgInet")}build(t){return new q0(t,this.config)}},q0=class extends G{static[k]="PgInet";getSQLType(){return"inet"}};function X6(e){return new T0(e??"")}var O0=class extends jo{static[k]="PgIntegerBuilder";constructor(t){super(t,"number","PgInteger")}build(t){return new z0(t,this.config)}},z0=class extends G{static[k]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(t){return typeof t=="string"?Number.parseInt(t):t}};function e3(e){return new O0(e??"")}var Y0=class extends T{static[k]="PgIntervalBuilder";constructor(t,n){super(t,"string","PgInterval"),this.config.intervalConfig=n}build(t){return new K0(t,this.config)}},K0=class extends G{static[k]="PgInterval";fields=this.config.intervalConfig.fields;precision=this.config.intervalConfig.precision;getSQLType(){let t=this.fields?` ${this.fields}`:"",n=this.precision?`(${this.precision})`:"";return`interval${t}${n}`}};function t3(e,t={}){let{name:n,config:o}=be(e,t);return new Y0(n,o)}var J0=class extends T{static[k]="PgJsonBuilder";constructor(t){super(t,"json","PgJson")}build(t){return new W0(t,this.config)}},W0=class extends G{static[k]="PgJson";constructor(t,n){super(t,n)}getSQLType(){return"json"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function n3(e){return new J0(e??"")}var Z0=class extends T{static[k]="PgJsonbBuilder";constructor(t){super(t,"json","PgJsonb")}build(t){return new V0(t,this.config)}},V0=class extends G{static[k]="PgJsonb";constructor(t,n){super(t,n)}getSQLType(){return"jsonb"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function Zm(e){return new Z0(e??"")}var X0=class extends T{static[k]="PgLineBuilder";constructor(t){super(t,"array","PgLine")}build(t){return new eI(t,this.config)}},eI=class extends G{static[k]="PgLine";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o),Number.parseFloat(a)]}mapToDriverValue(t){return`{${t[0]},${t[1]},${t[2]}}`}},tI=class extends T{static[k]="PgLineABCBuilder";constructor(t){super(t,"json","PgLineABC")}build(t){return new nI(t,this.config)}},nI=class extends G{static[k]="PgLineABC";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return{a:Number.parseFloat(n),b:Number.parseFloat(o),c:Number.parseFloat(a)}}mapToDriverValue(t){return`{${t.a},${t.b},${t.c}}`}};function a3(e,t){let{name:n,config:o}=be(e,t);return!o?.mode||o.mode==="tuple"?new X0(n):new tI(n)}var aI=class extends T{static[k]="PgMacaddrBuilder";constructor(t){super(t,"string","PgMacaddr")}build(t){return new oI(t,this.config)}},oI=class extends G{static[k]="PgMacaddr";getSQLType(){return"macaddr"}};function o3(e){return new aI(e??"")}var rI=class extends T{static[k]="PgMacaddr8Builder";constructor(t){super(t,"string","PgMacaddr8")}build(t){return new AI(t,this.config)}},AI=class extends G{static[k]="PgMacaddr8";getSQLType(){return"macaddr8"}};function r3(e){return new rI(e??"")}var iI=class extends T{static[k]="PgNumericBuilder";constructor(t,n,o){super(t,"string","PgNumeric"),this.config.precision=n,this.config.scale=o}build(t){return new sI(t,this.config)}},sI=class extends G{static[k]="PgNumeric";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="string"?t:String(t)}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},cI=class extends T{static[k]="PgNumericNumberBuilder";constructor(t,n,o){super(t,"number","PgNumericNumber"),this.config.precision=n,this.config.scale=o}build(t){return new uI(t,this.config)}},uI=class extends G{static[k]="PgNumericNumber";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},dI=class extends T{static[k]="PgNumericBigIntBuilder";constructor(t,n,o){super(t,"bigint","PgNumericBigInt"),this.config.precision=n,this.config.scale=o}build(t){return new lI(t,this.config)}},lI=class extends G{static[k]="PgNumericBigInt";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}};function A3(e,t){let{name:n,config:o}=be(e,t),a=o?.mode;return a==="number"?new cI(n,o?.precision,o?.scale):a==="bigint"?new dI(n,o?.precision,o?.scale):new iI(n,o?.precision,o?.scale)}var pI=class extends T{static[k]="PgPointTupleBuilder";constructor(t){super(t,"array","PgPointTuple")}build(t){return new gI(t,this.config)}},gI=class extends G{static[k]="PgPointTuple";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o)]}return[t.x,t.y]}mapToDriverValue(t){return`(${t[0]},${t[1]})`}},mI=class extends T{static[k]="PgPointObjectBuilder";constructor(t){super(t,"json","PgPointObject")}build(t){return new fI(t,this.config)}},fI=class extends G{static[k]="PgPointObject";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return{x:Number.parseFloat(n),y:Number.parseFloat(o)}}return t}mapToDriverValue(t){return`(${t.x},${t.y})`}};function i3(e,t){let{name:n,config:o}=be(e,t);return!o?.mode||o.mode==="tuple"?new pI(n):new mI(n)}function qz(e){let t=[];for(let n=0;n<e.length;n+=2)t.push(Number.parseInt(e.slice(n,n+2),16));return new Uint8Array(t)}function s3(e,t){let n=new ArrayBuffer(8),o=new DataView(n);for(let a=0;a<8;a++)o.setUint8(a,e[t+a]);return o.getFloat64(0,!0)}function bI(e){let t=qz(e),n=0,o=t[n];n+=1;let a=new DataView(t.buffer),r=a.getUint32(n,o===1);n+=4;let A;if(r&536870912&&(A=a.getUint32(n,o===1),n+=4),(r&65535)===1){let i=s3(t,n);n+=8;let s=s3(t,n);return n+=8,[i,s]}throw new Error("Unsupported geometry type")}var hI=class extends T{static[k]="PgGeometryBuilder";constructor(t){super(t,"array","PgGeometry")}build(t){return new BI(t,this.config)}},BI=class extends G{static[k]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){return bI(t)}mapToDriverValue(t){return`point(${t[0]} ${t[1]})`}},CI=class extends T{static[k]="PgGeometryObjectBuilder";constructor(t){super(t,"json","PgGeometryObject")}build(t){return new yI(t,this.config)}},yI=class extends G{static[k]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){let n=bI(t);return{x:n[0],y:n[1]}}mapToDriverValue(t){return`point(${t.x} ${t.y})`}};function c3(e,t){let{name:n,config:o}=be(e,t);return!o?.mode||o.mode==="tuple"?new hI(n):new CI(n)}var wI=class extends T{static[k]="PgRealBuilder";constructor(t,n){super(t,"number","PgReal"),this.config.length=n}build(t){return new EI(t,this.config)}},EI=class extends G{static[k]="PgReal";constructor(t,n){super(t,n)}getSQLType(){return"real"}mapFromDriverValue=t=>typeof t=="string"?Number.parseFloat(t):t};function u3(e){return new wI(e??"")}var kI=class extends T{static[k]="PgSerialBuilder";constructor(t){super(t,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new QI(t,this.config)}},QI=class extends G{static[k]="PgSerial";getSQLType(){return"serial"}};function d3(e){return new kI(e??"")}var II=class extends jo{static[k]="PgSmallIntBuilder";constructor(t){super(t,"number","PgSmallInt")}build(t){return new _I(t,this.config)}},_I=class extends G{static[k]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=t=>typeof t=="string"?Number(t):t};function l3(e){return new II(e??"")}var vI=class extends T{static[k]="PgSmallSerialBuilder";constructor(t){super(t,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new xI(t,this.config)}},xI=class extends G{static[k]="PgSmallSerial";getSQLType(){return"smallserial"}};function p3(e){return new vI(e??"")}var DI=class extends T{static[k]="PgTextBuilder";constructor(t,n){super(t,"string","PgText"),this.config.enumValues=n.enum}build(t){return new FI(t,this.config)}},FI=class extends G{static[k]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}};function Sa(e,t={}){let{name:n,config:o}=be(e,t);return new DI(n,o)}var SI=class extends to{constructor(t,n,o){super(t,"string","PgTime"),this.withTimezone=n,this.precision=o,this.config.withTimezone=n,this.config.precision=o}static[k]="PgTimeBuilder";build(t){return new LI(t,this.config)}},LI=class extends G{static[k]="PgTime";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`time${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}};function g3(e,t={}){let{name:n,config:o}=be(e,t);return new SI(n,o.withTimezone??!1,o.precision)}var $I=class extends to{static[k]="PgTimestampBuilder";constructor(t,n,o){super(t,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=o}build(t){return new RI(t,this.config)}},RI=class extends G{static[k]="PgTimestamp";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":` (${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){return typeof t=="string"?new Date(this.withTimezone?t:t+"+0000"):t}mapToDriverValue=t=>t.toISOString()},NI=class extends to{static[k]="PgTimestampStringBuilder";constructor(t,n,o){super(t,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=o}build(t){return new MI(t,this.config)}},MI=class extends G{static[k]="PgTimestampString";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){if(typeof t=="string")return t;let n=t.toISOString().slice(0,-1).replace("T"," ");if(this.withTimezone){let o=t.getTimezoneOffset(),a=o<=0?"+":"-";return`${n}${a}${Math.floor(Math.abs(o)/60).toString().padStart(2,"0")}`}return n}};function Vm(e,t={}){let{name:n,config:o}=be(e,t);return o?.mode==="string"?new NI(n,o.withTimezone??!1,o.precision):new $I(n,o?.withTimezone??!1,o?.precision)}var jI=class extends T{static[k]="PgUUIDBuilder";constructor(t){super(t,"string","PgUUID")}defaultRandom(){return this.default(Ts`gen_random_uuid()`)}build(t){return new GI(t,this.config)}},GI=class extends G{static[k]="PgUUID";getSQLType(){return"uuid"}};function m3(e){return new jI(e??"")}var HI=class extends T{static[k]="PgVarcharBuilder";constructor(t,n){super(t,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new PI(t,this.config)}},PI=class extends G{static[k]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}};function f3(e,t={}){let{name:n,config:o}=be(e,t);return new HI(n,o)}var UI=class extends T{static[k]="PgBinaryVectorBuilder";constructor(t,n){super(t,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(t){return new TI(t,this.config)}},TI=class extends G{static[k]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}};function b3(e,t){let{name:n,config:o}=be(e,t);return new UI(n,o)}var qI=class extends T{static[k]="PgHalfVectorBuilder";constructor(t,n){super(t,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(t){return new OI(t,this.config)}},OI=class extends G{static[k]="PgHalfVector";dimensions=this.config.dimensions;getSQLType(){return`halfvec(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function h3(e,t){let{name:n,config:o}=be(e,t);return new qI(n,o)}var zI=class extends T{static[k]="PgSparseVectorBuilder";constructor(t,n){super(t,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(t){return new YI(t,this.config)}},YI=class extends G{static[k]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}};function B3(e,t){let{name:n,config:o}=be(e,t);return new zI(n,o)}var KI=class extends T{static[k]="PgVectorBuilder";constructor(t,n){super(t,"array","PgVector"),this.config.dimensions=n.dimensions}build(t){return new JI(t,this.config)}},JI=class extends G{static[k]="PgVector";dimensions=this.config.dimensions;getSQLType(){return`vector(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function C3(e,t){let{name:n,config:o}=be(e,t);return new KI(n,o)}function y3(){return{bigint:O6,bigserial:z6,boolean:Y6,char:K6,cidr:J6,customType:W6,date:Z6,doublePrecision:V6,inet:X6,integer:e3,interval:t3,json:n3,jsonb:Zm,line:a3,macaddr:o3,macaddr8:r3,numeric:A3,point:i3,geometry:c3,real:u3,serial:d3,smallint:l3,smallserial:p3,text:Sa,time:g3,timestamp:Vm,uuid:m3,varchar:f3,bit:b3,halfvec:h3,sparsevec:B3,vector:C3}}var WI=Symbol.for("drizzle:PgInlineForeignKeys"),w3=Symbol.for("drizzle:EnableRLS"),Xu=class extends lt{static[k]="PgTable";static Symbol=Object.assign({},lt.Symbol,{InlineForeignKeys:WI,EnableRLS:w3});[WI]=[];[w3]=!1;[lt.Symbol.ExtraConfigBuilder]=void 0;[lt.Symbol.ExtraConfigColumns]={}};function Oz(e,t,n,o,a=e){let r=new Xu(e,o,a),A=typeof t=="function"?t(y3()):t,i=Object.fromEntries(Object.entries(A).map(([u,d])=>{let l=d;l.setName(u);let p=l.build(r);return r[WI].push(...l.buildForeignKeys(p,r)),[u,p]})),s=Object.fromEntries(Object.entries(A).map(([u,d])=>{let l=d;l.setName(u);let p=l.buildExtraConfigColumn(r);return[u,p]})),c=Object.assign(r,i);return c[lt.Symbol.Columns]=i,c[lt.Symbol.ExtraConfigColumns]=s,n&&(c[Xu.Symbol.ExtraConfigBuilder]=n),Object.assign(c,{enableRLS:()=>(c[Xu.Symbol.EnableRLS]=!0,c)})}var E3=(e,t,n)=>Oz(e,t,n,void 0);var Xm=class{constructor(t,n){this.unique=t,this.name=n}static[k]="PgIndexBuilderOn";on(...t){return new ed(t.map(n=>{if(kt(n,pt))return n;n=n;let o=new Hs(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=JSON.parse(JSON.stringify(n.defaultConfig)),o}),this.unique,!1,this.name)}onOnly(...t){return new ed(t.map(n=>{if(kt(n,pt))return n;n=n;let o=new Hs(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=n.defaultConfig,o}),this.unique,!0,this.name)}using(t,...n){return new ed(n.map(o=>{if(kt(o,pt))return o;o=o;let a=new Hs(o.name,!!o.keyAsName,o.columnType,o.indexConfig);return o.indexConfig=JSON.parse(JSON.stringify(o.defaultConfig)),a}),this.unique,!0,this.name,t)}},ed=class{static[k]="PgIndexBuilder";config;constructor(t,n,o,a,r="btree"){this.config={name:a,columns:t,unique:n,only:o,method:r}}concurrently(){return this.config.concurrently=!0,this}with(t){return this.config.with=t,this}where(t){return this.config.where=t,this}build(t){return new ZI(this.config,t)}},ZI=class{static[k]="PgIndex";config;constructor(t,n){this.config={...t,table:n}}};function k3(e){return new Xm(!1,e)}function Q3(e){return new Xm(!0,e)}var I3=e=>Vm(e,{withTimezone:!0}),_3=f.enum(["channel","dm","group","local_conversation","thread","web_session"]),Hpe=E3("junior_destinations",{id:Sa("id").primaryKey(),provider:Sa("provider").notNull(),providerTenantId:Sa("provider_tenant_id").notNull().default(""),providerDestinationId:Sa("provider_destination_id").notNull(),kind:Sa("kind").$type().notNull(),parentDestinationId:Sa("parent_destination_id"),displayName:Sa("display_name"),visibility:Sa("visibility").$type().notNull().default("unknown"),metadata:Zm("metadata_json"),createdAt:I3("created_at").notNull(),updatedAt:I3("updated_at").notNull()},e=>[Q3("junior_destinations_provider_destination_uidx").on(e.provider,e.providerTenantId,e.providerDestinationId),k3("junior_destinations_provider_kind_idx").on(e.provider,e.kind)]);var x3=f.object({active:f.number(),conversations:f.number(),date:f.string(),durationMs:f.number(),failed:f.number(),tokens:f.number().optional()}).strict();var zz=f.enum(["active","completed","failed"]),Yz=f.enum(["api","internal","scheduler","slack"]),Kz=_6,XI=f.object({email:f.string().optional(),fullName:f.string().optional(),slackUserId:f.string().optional(),slackUserName:f.string().optional()}).strict(),ef=f.object({displayTitle:f.string(),cumulativeDurationMs:f.number(),cumulativeUsage:Kz.optional(),conversationId:f.string(),status:zz,startedAt:f.string(),lastSeenAt:f.string(),lastProgressAt:f.string(),surface:Yz,actorIdentity:XI.optional(),archivedAt:f.string().optional(),channel:f.string().optional(),channelName:f.string().optional(),channelNameRedacted:f.boolean().optional(),locationId:f.string().optional(),sentryTraceUrl:f.string().optional(),traceId:f.string().optional()}).strict(),Jz=f.enum(["text","thinking","tool_call","tool_result","unknown"]),Wz=f.object({bytes:f.number().optional(),chars:f.number().optional(),id:f.string().optional(),input:f.unknown().optional(),inputKeys:f.array(f.string()).optional(),inputSizeBytes:f.number().optional(),inputSizeChars:f.number().optional(),inputType:f.string().optional(),name:f.string().optional(),output:f.unknown().optional(),outputKeys:f.array(f.string()).optional(),outputSizeBytes:f.number().optional(),outputSizeChars:f.number().optional(),outputType:f.string().optional(),redacted:f.boolean().optional(),sourceType:f.string().optional(),text:f.string().optional(),type:Jz}).strict(),Zz=f.enum(["assistant","system","tool","toolResult","unknown","user"]),VI=f.object({outcome:f.enum(["error","aborted"]).optional(),parts:f.array(Wz),role:Zz,timestamp:f.number().optional()}).strict(),e_=f.enum(["aborted","completed","error","running","success"]),D3=f.object({type:f.literal("subagent"),createdAt:f.string(),endedAt:f.string().optional(),id:f.string(),modelId:f.string().optional(),outcome:f.enum(["success","error","aborted"]).optional(),parentToolCallId:f.string().optional(),reasoningLevel:f.string().optional(),status:e_,subagentKind:f.string(),transcriptAvailable:f.boolean().optional()}).strict(),Vz=f.object({type:f.literal("tool_execution"),args:f.unknown().optional(),createdAt:f.string(),id:f.string(),inputKeys:f.array(f.string()).optional(),inputSizeBytes:f.number().optional(),inputSizeChars:f.number().optional(),inputType:f.string().optional(),redacted:f.boolean().optional(),status:e_,subagents:f.array(D3),toolCallId:f.string(),toolName:f.string()}).strict(),Xz=f.discriminatedUnion("type",[Vz,D3]),eY=f.discriminatedUnion("type",[f.object({type:f.literal("context_compacted"),createdAt:f.string(),modelId:f.string().optional(),summary:f.string().optional(),transcriptIndex:f.number().int().nonnegative()}).strict(),f.object({type:f.literal("model_handoff"),createdAt:f.string(),fromModelId:f.string().optional(),message:f.string().optional(),toModelId:f.string(),transcriptIndex:f.number().int().nonnegative()}).strict()]),t_=ef.extend({activity:f.array(Xz).optional(),modelId:f.string().optional(),reasoningLevel:f.string().optional(),contextEvents:f.array(eY).optional(),transcriptAvailable:f.boolean(),transcriptMetadata:f.array(VI).optional(),transcriptMessageCount:f.number().optional(),transcriptRedacted:f.boolean().optional(),transcriptRedactionReason:f.literal("non_public_conversation").optional(),transcriptExpired:f.boolean().optional(),transcriptExpiredAt:f.string().optional(),transcript:f.array(VI),generatedAt:f.string(),sentryConversationUrl:f.string().optional()}).strict(),n_=f.object({type:f.literal("subagent"),createdAt:f.string(),endedAt:f.string().optional(),id:f.string(),modelId:f.string().optional(),outcome:f.enum(["success","error","aborted"]).optional(),parentToolCallId:f.string().optional(),reasoningLevel:f.string().optional(),status:e_,subagentConversationId:f.string().optional(),subagentKind:f.string(),subagentSentryConversationUrl:f.string().optional(),transcript:f.array(VI),transcriptAvailable:f.boolean(),transcriptMessageCount:f.number().optional(),transcriptRedacted:f.boolean().optional(),transcriptRedactionReason:f.literal("non_public_conversation").optional(),transcriptExpired:f.boolean().optional(),transcriptExpiredAt:f.string().optional(),unavailableReason:f.enum(["missing_transcript_range","missing_transcript_ref","not_found"]).optional()}).strict(),a_=f.object({conversations:f.array(ef),source:f.literal("conversation_index"),generatedAt:f.string()}).strict(),qs=f.object({active:f.number(),conversations:f.number(),durationMs:f.number(),failed:f.number(),label:f.string(),costUsd:f.number().optional(),tokens:f.number().optional()}).strict(),o_=f.object({active:f.number(),conversations:f.number(),durationMs:f.number(),failed:f.number(),generatedAt:f.string(),locations:f.array(qs),actors:f.array(qs),source:f.literal("conversation_index"),costUsd:f.number().optional(),tokens:f.number().optional(),windowEnd:f.string(),windowStart:f.string()}).strict(),tY=ef.omit({cumulativeUsage:!0,sentryTraceUrl:!0,traceId:!0}),v3=qs.omit({costUsd:!0}),nY=f.object({active:f.number(),conversations:f.number(),date:f.string(),durationMs:f.number(),failed:f.number(),tokens:f.number().optional()}).strict(),aY=f.object({activePeople:f.number(),conversations:f.number(),date:f.string()}).strict(),F3=f.object({active:f.number(),activeDays:f.number(),conversations:f.number(),durationMs:f.number(),failed:f.number(),tokens:f.number().optional()}).strict(),S3=XI.extend({email:f.string().min(1)}).strict(),oY=F3.extend({firstSeenAt:f.string(),lastSeenAt:f.string(),actor:S3}).strict(),r_=f.object({activityDays:f.array(aY),generatedAt:f.string(),people:f.array(oY),source:f.literal("conversation_index"),windowEnd:f.string(),windowStart:f.string()}).strict(),A_=f.object({activityDays:f.array(nY),generatedAt:f.string(),locations:f.array(v3),recentConversations:f.array(tY),actor:S3,source:f.literal("conversation_index"),surfaces:f.array(v3),totals:F3,windowEnd:f.string(),windowStart:f.string()}).strict(),L3=qs.extend({id:f.string(),firstSeenAt:f.string(),kind:_3,lastSeenAt:f.string(),provider:f.string(),providerDestinationId:f.string(),visibility:f.literal("public")}).strict(),rY=qs.extend({actor:XI}).strict(),$3=f.object({date:f.string(),privateConversations:f.number(),publicConversations:f.number()}).strict(),i_=f.object({activityDays:f.array($3),generatedAt:f.string(),locations:f.array(L3),privateActivity:qs,source:f.literal("conversation_index"),windowEnd:f.string(),windowStart:f.string()}).strict(),s_=L3.extend({activityDays:f.array(x3),actors:f.array(rY),generatedAt:f.string(),recentConversations:f.array(ef),source:f.literal("conversation_index"),windowEnd:f.string(),windowStart:f.string()}).strict(),R3=f.object({conversationId:f.string().min(1)}).strict(),AY=f.object({actorEmail:f.string().trim().email().transform(e=>e.toLowerCase()).optional()}).strict(),iY=R3.extend({subagentId:f.string().min(1)}).strict(),sY=f.object({email:f.string().trim().min(1)}).strict(),cY=f.object({locationId:f.string().min(1)}).strict();var uY=f.object({status:f.literal("ok"),service:f.string(),timestamp:f.string()}).strict(),N3=f.object({name:f.string()}).strict(),c_=f.array(N3),u_=f.object({name:f.string(),pluginProvider:f.string().optional()}).strict(),d_=f.array(u_),M3=f.object({dir:f.string(),hasMigrationsDir:f.boolean(),hasSkillsDir:f.boolean(),packageName:f.string()}).strict(),j3=f.object({packageNames:f.array(f.string()),packages:f.array(M3),manifestRoots:f.array(f.string()),skillRoots:f.array(f.string()),tracingIncludes:f.array(f.string())}).strict(),dY=f.object({cwd:f.string(),homeDir:f.string(),descriptionText:f.string().optional(),providers:f.array(f.string()),skills:f.array(u_),packagedContent:j3}).strict(),G3=f.enum(["danger","good","neutral","warning"]),lY=f.object({label:f.string(),tone:G3.optional(),value:f.string()}).strict(),pY=f.object({key:f.string(),label:f.string()}).strict(),gY=f.object({id:f.string(),tone:G3.optional(),values:f.record(f.string(),f.string())}).strict(),mY=f.object({fields:f.array(pY).optional(),emptyText:f.string().optional(),records:f.array(gY).optional(),title:f.string()}).strict(),H3=f.object({generatedAt:f.string().optional(),metrics:f.array(lY).optional(),recordSets:f.array(mY).optional(),title:f.string().optional(),pluginName:f.string()}).strict(),l_=f.object({generatedAt:f.string(),reports:f.array(H3),source:f.literal("plugins")}).strict();var P3=f.object({user:f.object({email:f.string().trim().email(),emailVerified:f.boolean().optional(),hostedDomain:f.string().nullable().optional(),name:f.string().nullable().optional()}).strict()}).strict(),U3=f.object({allowedEmailCount:f.number(),allowedGoogleDomainCount:f.number(),authRequired:f.boolean(),authPath:f.string(),basePath:f.string(),sentryConversationLinks:f.boolean(),timeZone:f.string()}).strict();var Os=new Ub,td=class extends Error{status;constructor(t,n){super(`${t} returned ${n}`),this.status=n}};function T3(){if(typeof window>"u")return;let e=window.__JUNIOR_DASHBOARD_BASE_PATH__??"/",t=e==="/"?"/auth/login":`${e}/auth/login`;if(window.location.pathname!==t){let n=`${window.location.pathname}${window.location.search||""}`,o=new URLSearchParams;n!=="/"&&o.set("next",n);let a=o.toString();window.location.assign(a?`${t}?${a}`:t)}}async function fY(e,t){let n=await fetch(e,{body:JSON.stringify(t),credentials:"same-origin",headers:{"content-type":"application/json"},method:"PATCH"});if(n.status===401&&T3(),!n.ok)throw new td(e,n.status)}async function Jn(e,t){let n=await fetch(t,{credentials:"same-origin"});if(n.status===401)throw T3(),new td(t,n.status);if(!n.ok)throw new td(t,n.status);return e.parse(await n.json())}function p_(){return Rt({queryKey:["dashboard","core"],queryFn:async()=>{let[e,t]=await Promise.all([Jn(P3,"/api/me"),Jn(U3,"/api/config")]);return{config:t,me:e}},retry:!1})}function q3(e){let t=new URLSearchParams;e&&t.set("actorEmail",e);let n=t.toString();return Rt({queryKey:["dashboard","conversations",e??"all"],queryFn:()=>Jn(a_,`/api/conversations${n?`?${n}`:""}`),retry:!1})}function O3(){return Rt({queryKey:["dashboard","people"],queryFn:()=>Jn(r_,"/api/people"),retry:!1})}function z3(e){return Rt({enabled:!!e,queryKey:["dashboard","people",e],queryFn:async()=>Jn(A_,`/api/people/${encodeURIComponent(e)}`),retry:!1})}function Y3(){return Rt({queryKey:["dashboard","locations"],queryFn:()=>Jn(i_,"/api/locations"),retry:!1})}function K3(e){return Rt({enabled:!!e,queryKey:["dashboard","locations",e],queryFn:async()=>Jn(s_,`/api/locations/${encodeURIComponent(e)}`),retry:!1})}function J3(){let e=p_(),t=Rt({queryKey:["dashboard","conversation-stats"],queryFn:()=>Jn(o_,"/api/conversations/stats"),retry:!1}),n=Rt({queryKey:["dashboard","plugins"],queryFn:()=>Jn(c_,"/api/plugins"),retry:!1}),o=Rt({queryKey:["dashboard","skills"],queryFn:()=>Jn(d_,"/api/skills"),retry:!1}),a=Rt({queryKey:["dashboard","plugin-reports"],queryFn:()=>Jn(l_,"/api/plugin-reports"),retry:!1}),r=e.data&&n.data&&o.data;return{...e,data:r?{...e.data,conversationStatsError:!!t.error,...t.data?{conversationStats:t.data}:{},conversationStatsLoading:t.isPending,pluginReportsError:!!a.error,...a.data?{pluginReports:a.data}:{},pluginReportsLoading:a.isPending,plugins:n.data,skills:o.data}:void 0,error:e.error??n.error??o.error,isPending:e.isPending||n.isPending||o.isPending}}function W3(e){return Xb({mutationFn:t=>fY(`/api/conversations/${encodeURIComponent(e)}/archive`,t),onSettled:async()=>{await Promise.all([Os.invalidateQueries({queryKey:["dashboard","conversations"]}),Os.invalidateQueries({queryKey:["dashboard","locations"]}),Os.invalidateQueries({queryKey:["dashboard","people"]}),Os.invalidateQueries({queryKey:["conversation",e]})])}})}function Z3(e){return Rt({enabled:!!e,queryKey:["conversation",e],queryFn:async()=>bY(e),retry:!1})}function bY(e){return Jn(t_,`/api/conversations/${encodeURIComponent(e)}`)}function V3(e){return Rt({enabled:!!e,queryKey:["conversation-subagent",e?.conversationId,e?.subagentId],queryFn:async()=>{let t=e;return await Jn(n_,`/api/conversations/${encodeURIComponent(t.conversationId)}/subagents/${encodeURIComponent(t.subagentId)}`)},retry:!1})}var g_=E(x(),1);function tf(){return(0,g_.jsx)("div",{className:"relative grid size-10 shrink-0 select-none place-items-center overflow-visible",children:(0,g_.jsx)("img",{alt:"",className:"relative size-11 max-w-none -translate-y-0.5 object-contain opacity-90 drop-shadow-[0_0_7px_rgba(255,255,255,0.16)]",draggable:!1,src:"/_junior/dashboard/avatar.png"})})}var X3=["relative","overflow-hidden","bg-white/15","before:absolute","before:inset-0","before:content-['']","before:bg-[linear-gradient(90deg,#ff4d6d,#ffb703,#56f39a,#4cc9f0,#9b5de5,#ff4d6d)]","before:bg-[length:200%_100%]","before:animate-[junior-rainbow-flow_1.2s_linear_infinite]","motion-reduce:before:animate-none"].join(" ");function R(...e){return e.filter(Boolean).join(" ")}var nn="mx-auto w-full min-w-0 max-w-screen-xl";var $r=E(x(),1);function Qt(e){return(0,$r.jsx)("div",{className:R(nn,"grid min-h-[calc(100vh-5rem)] place-items-center px-4 py-8 md:px-8"),children:(0,$r.jsxs)("section",{className:"grid w-full max-w-lg grid-cols-[auto_minmax(0,1fr)] items-center gap-3 rounded-lg border border-white/15 bg-[#0b0b0b] p-4",children:[(0,$r.jsx)(tf,{}),(0,$r.jsxs)("div",{children:[(0,$r.jsx)("div",{className:"font-bold",children:e.label}),(0,$r.jsx)("div",{"aria-label":e.label,className:`${X3} mt-3 h-1.5 w-full`,role:"progressbar"})]})]})})}var of=E(ae(),1);var nf=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();var eL=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var tL=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());var m_=e=>{let t=tL(e);return t.charAt(0).toUpperCase()+t.slice(1)};var nd=E(ae(),1);var af={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var nL=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var zs=E(ae(),1);var hY=(0,zs.createContext)({});var aL=()=>(0,zs.useContext)(hY);var oL=(0,nd.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:o,className:a="",children:r,iconNode:A,...i},s)=>{let{size:c=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:l="currentColor",className:p=""}=aL()??{},b=o??d?Number(n??u)*24/Number(t??c):n??u;return(0,nd.createElement)("svg",{ref:s,...af,width:t??c??af.width,height:t??c??af.height,stroke:e??l,strokeWidth:b,className:nf("lucide",p,a),...!r&&!nL(i)&&{"aria-hidden":"true"},...i},[...A.map(([B,C])=>(0,nd.createElement)(B,C)),...Array.isArray(r)?r:[r]])});var q=(e,t)=>{let n=(0,of.forwardRef)(({className:o,...a},r)=>(0,of.createElement)(oL,{ref:r,iconNode:t,className:nf(`lucide-${eL(m_(e))}`,`lucide-${e}`,o),...a}));return n.displayName=m_(e),n};var BY=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],$A=q("activity",BY);var CY=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],ad=q("arrow-down-to-line",CY);var yY=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],od=q("arrow-left",yY);var wY=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],rd=q("arrow-right",wY);var EY=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],RA=q("bot",EY);var kY=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],Ad=q("boxes",kY);var QY=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],id=q("brain",QY);var IY=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],sd=q("check",IY);var _Y=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],cd=q("chevron-down",_Y);var vY=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Rr=q("circle-alert",vY);var xY=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],Wn=q("clock-3",xY);var DY=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],Go=q("coins",DY);var FY=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ud=q("copy",FY);var SY=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],dd=q("dollar-sign",SY);var LY=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ld=q("external-link",LY);var $Y=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],pd=q("hash",$Y);var RY=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],NA=q("lock-keyhole",RY);var NY=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],gd=q("log-out",NY);var MY=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],md=q("map-pin",MY);var jY=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],fd=q("map-pinned",jY);var GY=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],bd=q("message-square-text",GY);var HY=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Zn=q("message-square",HY);var PY=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],hd=q("minimize-2",PY);var UY=[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]],Bd=q("radio-tower",UY);var TY=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Cd=q("radio",TY);var qY=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ho=q("search",qY);var OY=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],yd=q("send",OY);var zY=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Nr=q("sparkles",zY);var YY=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],no=q("triangle-alert",YY);var KY=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],ao=q("user-round",KY);var JY=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],MA=q("users",JY);var WY=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],wd=q("x",WY);var XA=E(ae(),1);var f_=Object.defineProperty,ZY=Object.getOwnPropertyDescriptor,VY=Object.getOwnPropertyNames,XY=Object.prototype.hasOwnProperty,AL=(e,t)=>{let n={};for(var o in e)f_(n,o,{get:e[o],enumerable:!0});return t||f_(n,Symbol.toStringTag,{value:"Module"}),n},rL=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=VY(t),r=0,A=a.length,i;r<A;r++)i=a[r],!XY.call(e,i)&&i!==n&&f_(e,i,{get:(s=>t[s]).bind(null,i),enumerable:!(o=ZY(t,i))||o.enumerable});return e},iL=(e,t,n)=>(rL(e,t,"default"),n&&rL(n,t,"default"));var C_={};_(C_,{createOnigurumaEngine:()=>fK,getDefaultWasmLoader:()=>mK,loadWasm:()=>cL,setDefaultWasmLoader:()=>gK});var B_=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function eK(){return 2147483648}function tK(){return typeof performance<"u"?performance.now():Date.now()}var nK=(e,t)=>e+(t-e%t)%t;async function aK(e){let t,n,o={};function a(p){n=p,o.HEAPU8=new Uint8Array(p),o.HEAPU32=new Uint32Array(p)}function r(p,b,B){o.HEAPU8.copyWithin(p,b,b+B)}function A(p){try{return t.grow(p-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function i(p){let b=o.HEAPU8.length;p=p>>>0;let B=eK();if(p>B)return!1;for(let C=1;C<=4;C*=2){let m=b*(1+.2/C);m=Math.min(m,p+100663296);let g=Math.min(B,nK(Math.max(p,m),65536));if(A(g))return!0}return!1}let s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(p,b,B=1024){let C=b+B,m=b;for(;p[m]&&!(m>=C);)++m;if(m-b>16&&p.buffer&&s)return s.decode(p.subarray(b,m));let g="";for(;b<m;){let h=p[b++];if(!(h&128)){g+=String.fromCharCode(h);continue}let y=p[b++]&63;if((h&224)===192){g+=String.fromCharCode((h&31)<<6|y);continue}let v=p[b++]&63;if((h&240)===224?h=(h&15)<<12|y<<6|v:h=(h&7)<<18|y<<12|v<<6|p[b++]&63,h<65536)g+=String.fromCharCode(h);else{let P=h-65536;g+=String.fromCharCode(55296|P>>10,56320|P&1023)}}return g}function u(p,b){return p?c(o.HEAPU8,p,b):""}let d={emscripten_get_now:tK,emscripten_memcpy_big:r,emscripten_resize_heap:i,fd_write:()=>0};async function l(){let b=await e({env:d,wasi_snapshot_preview1:d});t=b.memory,a(t.buffer),Object.assign(o,b),o.UTF8ToString=u}return await l(),o}var oK=Object.defineProperty,rK=(e,t,n)=>t in e?oK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dt=(e,t,n)=>rK(e,typeof t!="symbol"?t+"":t,n),Gt=null;function AK(e){throw new B_(e.UTF8ToString(e.getLastOnigError()))}var Af=class e{constructor(t){Dt(this,"utf16Length"),Dt(this,"utf8Length"),Dt(this,"utf16Value"),Dt(this,"utf8Value"),Dt(this,"utf16OffsetToUtf8"),Dt(this,"utf8OffsetToUtf16");let n=t.length,o=e._utf8ByteLength(t),a=o!==n,r=a?new Uint32Array(n+1):null;a&&(r[n]=o);let A=a?new Uint32Array(o+1):null;a&&(A[o]=n);let i=new Uint8Array(o),s=0;for(let c=0;c<n;c++){let u=t.charCodeAt(c),d=u,l=!1;if(u>=55296&&u<=56319&&c+1<n){let p=t.charCodeAt(c+1);p>=56320&&p<=57343&&(d=(u-55296<<10)+65536|p-56320,l=!0)}a&&(r[c]=s,l&&(r[c+1]=s),d<=127?A[s+0]=c:d<=2047?(A[s+0]=c,A[s+1]=c):d<=65535?(A[s+0]=c,A[s+1]=c,A[s+2]=c):(A[s+0]=c,A[s+1]=c,A[s+2]=c,A[s+3]=c)),d<=127?i[s++]=d:d<=2047?(i[s++]=192|(d&1984)>>>6,i[s++]=128|(d&63)>>>0):d<=65535?(i[s++]=224|(d&61440)>>>12,i[s++]=128|(d&4032)>>>6,i[s++]=128|(d&63)>>>0):(i[s++]=240|(d&1835008)>>>18,i[s++]=128|(d&258048)>>>12,i[s++]=128|(d&4032)>>>6,i[s++]=128|(d&63)>>>0),l&&c++}this.utf16Length=n,this.utf8Length=o,this.utf16Value=t,this.utf8Value=i,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=A}static _utf8ByteLength(t){let n=0;for(let o=0,a=t.length;o<a;o++){let r=t.charCodeAt(o),A=r,i=!1;if(r>=55296&&r<=56319&&o+1<a){let s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(A=(r-55296<<10)+65536|s-56320,i=!0)}A<=127?n+=1:A<=2047?n+=2:A<=65535?n+=3:n+=4,i&&o++}return n}createString(t){let n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}},sf=class oo{constructor(t){if(Dt(this,"id",++oo.LAST_ID),Dt(this,"_onigBinding"),Dt(this,"content"),Dt(this,"utf16Length"),Dt(this,"utf8Length"),Dt(this,"utf16OffsetToUtf8"),Dt(this,"utf8OffsetToUtf16"),Dt(this,"ptr"),!Gt)throw new B_("Must invoke loadWasm first.");this._onigBinding=Gt,this.content=t;let n=new Af(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!oo._sharedPtrInUse?(oo._sharedPtr||(oo._sharedPtr=Gt.omalloc(1e4)),oo._sharedPtrInUse=!0,Gt.HEAPU8.set(n.utf8Value,oo._sharedPtr),this.ptr=oo._sharedPtr):this.ptr=n.createString(Gt)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===oo._sharedPtr?oo._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Dt(sf,"LAST_ID",0);Dt(sf,"_sharedPtr",0);Dt(sf,"_sharedPtrInUse",!1);var sL=sf,h_=class{constructor(t){if(Dt(this,"_onigBinding"),Dt(this,"_ptr"),!Gt)throw new B_("Must invoke loadWasm first.");let n=[],o=[];for(let i=0,s=t.length;i<s;i++){let c=new Af(t[i]);n[i]=c.createString(Gt),o[i]=c.utf8Length}let a=Gt.omalloc(4*t.length);Gt.HEAPU32.set(n,a/4);let r=Gt.omalloc(4*t.length);Gt.HEAPU32.set(o,r/4);let A=Gt.createOnigScanner(a,r,t.length);for(let i=0,s=t.length;i<s;i++)Gt.ofree(n[i]);Gt.ofree(r),Gt.ofree(a),A===0&&AK(Gt),this._onigBinding=Gt,this._ptr=A}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,o){let a=0;if(typeof o=="number"&&(a=o),typeof t=="string"){t=new sL(t);let r=this._findNextMatchSync(t,n,!1,a);return t.dispose(),r}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,o,a){let r=this._onigBinding,A=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(A===0)return null;let i=r.HEAPU32,s=A/4,c=i[s++],u=i[s++],d=[];for(let l=0;l<u;l++){let p=t.convertUtf8OffsetToUtf16(i[s++]),b=t.convertUtf8OffsetToUtf16(i[s++]);d[l]={start:p,end:b,length:b-p}}return{index:c,captureIndices:d}}};function iK(e){return typeof e.instantiator=="function"}function sK(e){return typeof e.default=="function"}function cK(e){return typeof e.data<"u"}function uK(e){return typeof Response<"u"&&e instanceof Response}function dK(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}var rf;function cL(e){if(rf)return rf;async function t(){Gt=await aK(async n=>{let o=e;return o=await o,typeof o=="function"&&(o=await o(n)),typeof o=="function"&&(o=await o(n)),iK(o)?o=await o.instantiator(n):sK(o)?o=await o.default(n):(cK(o)&&(o=o.data),uK(o)?typeof WebAssembly.instantiateStreaming=="function"?o=await lK(o)(n):o=await pK(o)(n):dK(o)?o=await b_(o)(n):o instanceof WebAssembly.Module?o=await b_(o)(n):"default"in o&&o.default instanceof WebAssembly.Module&&(o=await b_(o.default)(n))),"instance"in o&&(o=o.instance),"exports"in o&&(o=o.exports),o})}return rf=t(),rf}function b_(e){return t=>WebAssembly.instantiate(e,t)}function lK(e){return t=>WebAssembly.instantiateStreaming(e,t)}function pK(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var uL;function gK(e){uL=e}function mK(){return uL}async function fK(e){return e&&await cL(e),{createScanner(t){return new h_(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new sL(t)}}}var y_=AL({});iL(y_,C_);var LR=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Promise.resolve().then(()=>(lL(),dL)))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Promise.resolve().then(()=>(gL(),pL)))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(fL(),mL)))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>Promise.resolve().then(()=>(hL(),bL)))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>Promise.resolve().then(()=>(CL(),BL)))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:(()=>Promise.resolve().then(()=>(wL(),yL)))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Promise.resolve().then(()=>(kL(),EL)))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Promise.resolve().then(()=>(IL(),QL)))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Promise.resolve().then(()=>(vL(),_L)))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Promise.resolve().then(()=>(DL(),xL)))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(SL(),FL)))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Promise.resolve().then(()=>($L(),LL)))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(NL(),RL)))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Promise.resolve().then(()=>(jL(),ML)))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(HL(),GL)))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Promise.resolve().then(()=>(UL(),PL)))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Promise.resolve().then(()=>(qL(),TL)))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Promise.resolve().then(()=>(zL(),OL)))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Promise.resolve().then(()=>(KL(),YL)))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Promise.resolve().then(()=>(WL(),JL)))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Promise.resolve().then(()=>(VL(),ZL)))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Promise.resolve().then(()=>(e$(),XL)))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Promise.resolve().then(()=>(n$(),t$)))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(o$(),a$)))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Promise.resolve().then(()=>(A$(),r$)))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Promise.resolve().then(()=>(s$(),i$)))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Promise.resolve().then(()=>(u$(),c$)))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>Promise.resolve().then(()=>(l$(),d$)))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>Promise.resolve().then(()=>(g$(),p$)))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Promise.resolve().then(()=>(f$(),m$)))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Promise.resolve().then(()=>(h$(),b$)))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Promise.resolve().then(()=>(C$(),B$)))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Promise.resolve().then(()=>(w$(),y$)))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Promise.resolve().then(()=>(k$(),E$)))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Promise.resolve().then(()=>(I$(),Q$)))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(v$(),_$)))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Promise.resolve().then(()=>(D$(),x$)))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Promise.resolve().then(()=>(S$(),F$)))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Promise.resolve().then(()=>($$(),L$)))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Promise.resolve().then(()=>(N$(),R$)))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(j$(),M$)))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Promise.resolve().then(()=>(H$(),G$)))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Promise.resolve().then(()=>(U$(),P$)))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Promise.resolve().then(()=>(q$(),T$)))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>Promise.resolve().then(()=>(z$(),O$)))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Promise.resolve().then(()=>(K$(),Y$)))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Promise.resolve().then(()=>(W$(),J$)))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Promise.resolve().then(()=>(V$(),Z$)))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Promise.resolve().then(()=>(eR(),X$)))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Promise.resolve().then(()=>(nR(),tR)))},{id:"red",displayName:"Red",type:"dark",import:(()=>Promise.resolve().then(()=>(oR(),aR)))},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:(()=>Promise.resolve().then(()=>(AR(),rR)))},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:(()=>Promise.resolve().then(()=>(sR(),iR)))},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:(()=>Promise.resolve().then(()=>(uR(),cR)))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(lR(),dR)))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Promise.resolve().then(()=>(gR(),pR)))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Promise.resolve().then(()=>(fR(),mR)))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(hR(),bR)))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Promise.resolve().then(()=>(CR(),BR)))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Promise.resolve().then(()=>(wR(),yR)))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Promise.resolve().then(()=>(kR(),ER)))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Promise.resolve().then(()=>(IR(),QR)))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Promise.resolve().then(()=>(vR(),_R)))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(DR(),xR)))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Promise.resolve().then(()=>(SR(),FR)))}],$R=Object.fromEntries(LR.map(e=>[e.id,e.import]));var Le=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function vJ(e){return F_(e)}function F_(e){return Array.isArray(e)?xJ(e):e instanceof RegExp?e:typeof e=="object"?DJ(e):e}function xJ(e){let t=[];for(let n=0,o=e.length;n<o;n++)t[n]=F_(e[n]);return t}function DJ(e){let t={};for(let n in e)t[n]=F_(e[n]);return t}function TR(e,...t){return t.forEach(n=>{for(let o in n)e[o]=n[o]}),e}function qR(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?qR(e.substring(0,e.length-1)):e.substr(~t+1)}var w_=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,cf=class{static hasCaptures(e){return e===null?!1:(w_.lastIndex=0,w_.test(e))}static replaceCaptures(e,t,n){return e.replace(w_,(o,a,r,A)=>{let i=n[parseInt(a||r,10)];if(i){let s=t.substring(i.start,i.end);for(;s[0]===".";)s=s.substring(1);switch(A){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return o})}};function OR(e,t){return e<t?-1:e>t?1:0}function zR(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let a=0;a<n;a++){let r=OR(e[a],t[a]);if(r!==0)return r}return 0}return n-o}function RR(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function YR(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var KR=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Qd=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(LJ(e),t)}static createFromParsedTheme(e,t){return RJ(e,t)}_cachedMatchRoot=new KR(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,o=this._cachedMatchRoot.get(t).find(a=>FJ(e.parent,a.parentScopes));return o?new JR(o.fontStyle,o.foreground,o.background):null}},E_=class uf{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(let o of n)t=new uf(t,o);return t}static from(...t){let n=null;for(let o=0;o<t.length;o++)n=new uf(n,t[o]);return n}push(t){return new uf(this,t)}getSegments(){let t=this,n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let n=[],o=this;for(;o&&o!==t;)n.push(o.scopeName),o=o.parent;return o===t?n.reverse():void 0}};function FJ(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let o=t[n],a=!1;if(o===">"){if(n===t.length-1)return!1;o=t[++n],a=!0}for(;e&&!SJ(e.scopeName,o);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function SJ(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var JR=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function LJ(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],o=0;for(let a=0,r=t.length;a<r;a++){let A=t[a];if(!A.settings)continue;let i;if(typeof A.scope=="string"){let d=A.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),i=d.split(",")}else Array.isArray(A.scope)?i=A.scope:i=[""];let s=-1;if(typeof A.settings.fontStyle=="string"){s=0;let d=A.settings.fontStyle.split(" ");for(let l=0,p=d.length;l<p;l++)switch(d[l]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let c=null;typeof A.settings.foreground=="string"&&RR(A.settings.foreground)&&(c=A.settings.foreground);let u=null;typeof A.settings.background=="string"&&RR(A.settings.background)&&(u=A.settings.background);for(let d=0,l=i.length;d<l;d++){let b=i[d].trim().split(" "),B=b[b.length-1],C=null;b.length>1&&(C=b.slice(0,b.length-1),C.reverse()),n[o++]=new $J(B,C,a,s,c,u)}}return n}var $J=class{constructor(e,t,n,o,a,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=o,this.foreground=a,this.background=r}},Jt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Jt||{});function RJ(e,t){e.sort((s,c)=>{let u=OR(s.scope,c.scope);return u!==0||(u=zR(s.parentScopes,c.parentScopes),u!==0)?u:s.index-c.index});let n=0,o="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let s=e.shift();s.fontStyle!==-1&&(n=s.fontStyle),s.foreground!==null&&(o=s.foreground),s.background!==null&&(a=s.background)}let r=new NJ(t),A=new JR(n,r.getId(o),r.getId(a)),i=new jJ(new Q_(0,null,-1,0,0),[]);for(let s=0,c=e.length;s<c;s++){let u=e[s];i.insert(0,u.scope,u.parentScopes,u.fontStyle,r.getId(u.foreground),r.getId(u.background))}return new Qd(r,A,i)}var NJ=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},MJ=Object.freeze([]),Q_=class WR{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,o,a,r){this.scopeDepth=t,this.parentScopes=n||MJ,this.fontStyle=o,this.foreground=a,this.background=r}clone(){return new WR(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let o=0,a=t.length;o<a;o++)n[o]=t[o].clone();return n}acceptOverwrite(t,n,o,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),o!==0&&(this.foreground=o),a!==0&&(this.background=a)}},jJ=class I_{constructor(t,n=[],o={}){this._mainRule=t,this._children=o,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let o=0,a=0;for(;t.parentScopes[o]===">"&&o++,n.parentScopes[a]===">"&&a++,!(o>=t.parentScopes.length||a>=n.parentScopes.length);){let r=n.parentScopes[a].length-t.parentScopes[o].length;if(r!==0)return r;o++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),a,r;if(o===-1?(a=t,r=""):(a=t.substring(0,o),r=t.substring(o+1)),this._children.hasOwnProperty(a))return this._children[a].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(I_._cmpBySpecificity),n}insert(t,n,o,a,r,A){if(n===""){this._doInsertHere(t,o,a,r,A);return}let i=n.indexOf("."),s,c;i===-1?(s=n,c=""):(s=n.substring(0,i),c=n.substring(i+1));let u;this._children.hasOwnProperty(s)?u=this._children[s]:(u=new I_(this._mainRule.clone(),Q_.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,c,o,a,r,A)}_doInsertHere(t,n,o,a,r){if(n===null){this._mainRule.acceptOverwrite(t,o,a,r);return}for(let A=0,i=this._rulesWithParentScopes.length;A<i;A++){let s=this._rulesWithParentScopes[A];if(zR(s.parentScopes,n)===0){s.acceptOverwrite(t,o,a,r);return}}o===-1&&(o=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),r===0&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new Q_(t,n,o,a,r))}},GA=class ha{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let n=ha.getLanguageId(t),o=ha.getTokenType(t),a=ha.getFontStyle(t),r=ha.getForeground(t),A=ha.getBackground(t);console.log({languageId:n,tokenType:o,fontStyle:a,foreground:r,background:A})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,o,a,r,A,i){let s=ha.getLanguageId(t),c=ha.getTokenType(t),u=ha.containsBalancedBrackets(t)?1:0,d=ha.getFontStyle(t),l=ha.getForeground(t),p=ha.getBackground(t);return n!==0&&(s=n),o!==8&&(c=o),a!==null&&(u=a?1:0),r!==-1&&(d=r),A!==0&&(l=A),i!==0&&(p=i),(s<<0|c<<8|u<<10|d<<11|l<<15|p<<24)>>>0}};function lf(e,t){let n=[],o=GJ(e),a=o.next();for(;a!==null;){let s=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=o.next()}let c=A();if(n.push({matcher:c,priority:s}),a!==",")break;a=o.next()}return n;function r(){if(a==="-"){a=o.next();let s=r();return c=>!!s&&!s(c)}if(a==="("){a=o.next();let s=i();return a===")"&&(a=o.next()),s}if(NR(a)){let s=[];do s.push(a),a=o.next();while(NR(a));return c=>t(s,c)}return null}function A(){let s=[],c=r();for(;c;)s.push(c),c=r();return u=>s.every(d=>d(u))}function i(){let s=[],c=A();for(;c&&(s.push(c),a==="|"||a===",");){do a=o.next();while(a==="|"||a===",");c=A()}return u=>s.some(d=>d(u))}}function NR(e){return!!e&&!!e.match(/[\w\.:]+/)}function GJ(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let o=n[0];return n=t.exec(e),o}}}function ZR(e){typeof e.dispose=="function"&&e.dispose()}var Id=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},HJ=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},PJ=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},UJ=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Id(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new PJ;for(let n of e)TJ(n,this.initialScopeName,this.repo,t);for(let n of t.references)if(n instanceof Id){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function TJ(e,t,n,o){let a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let r=n.lookup(t);e instanceof Id?df({baseGrammar:r,selfGrammar:a},o):__(e.ruleName,{baseGrammar:r,selfGrammar:a,repository:a.repository},o);let A=n.injections(e.scopeName);if(A)for(let i of A)o.add(new Id(i))}function __(e,t,n){if(t.repository&&t.repository[e]){let o=t.repository[e];pf([o],t,n)}}function df(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&pf(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&pf(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function pf(e,t,n){for(let o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);let a=o.repository?TR({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&pf(o.patterns,{...t,repository:a},n);let r=o.include;if(!r)continue;let A=VR(r);switch(A.kind){case 0:df({...t,selfGrammar:t.baseGrammar},n);break;case 1:df(t,n);break;case 2:__(A.ruleName,{...t,repository:a},n);break;case 3:case 4:let i=A.scopeName===t.selfGrammar.scopeName?t.selfGrammar:A.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(i){let s={baseGrammar:t.baseGrammar,selfGrammar:i,repository:a};A.kind===4?__(A.ruleName,s,n):df(s,n)}else A.kind===4?n.add(new HJ(A.scopeName,A.ruleName)):n.add(new Id(A.scopeName));break}}}var qJ=class{kind=0},OJ=class{kind=1},zJ=class{constructor(e){this.ruleName=e}kind=2},YJ=class{constructor(e){this.scopeName=e}kind=3},KJ=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function VR(e){if(e==="$base")return new qJ;if(e==="$self")return new OJ;let t=e.indexOf("#");if(t===-1)return new YJ(e);if(t===0)return new zJ(e.substring(1));{let n=e.substring(0,t),o=e.substring(t+1);return new KJ(n,o)}}var JJ=/\\(\d+)/,MR=/\\(\d+)/g;var WJ=-1,XR=-2;var xd=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=cf.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=cf.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${qR(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:cf.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:cf.replaceCaptures(this._contentName,e,t)}},ZJ=class extends xd{retokenizeCapturedWithRuleId;constructor(e,t,n,o,a){super(e,t,n,o),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,o){throw new Error("Not supported!")}},VJ=class extends xd{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,null),this._match=new _d(o,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new vd,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},jR=class extends xd{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,o),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new vd,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},v_=class extends xd{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a,r,A,i,s,c){super(e,t,n,o),this._begin=new _d(a,this.id),this.beginCaptures=r,this._end=new _d(A||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=s||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new vd;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},gf=class extends xd{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,o,a,r,A,i,s){super(e,t,n,o),this._begin=new _d(a,this.id),this.beginCaptures=r,this.whileCaptures=i,this._while=new _d(A,XR),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new vd;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new vd,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},eN=class an{static createCaptureRule(t,n,o,a,r){return t.registerRule(A=>new ZJ(n,A,o,a,r))}static getCompiledRuleId(t,n,o){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new VJ(t.$vscodeTextmateLocation,t.id,t.name,t.match,an._compileCaptures(t.captures,n,o));if(typeof t.begin>"u"){t.repository&&(o=TR({},o,t.repository));let r=t.patterns;return typeof r>"u"&&t.include&&(r=[{include:t.include}]),new jR(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,an._compilePatterns(r,n,o))}return t.while?new gf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,an._compileCaptures(t.beginCaptures||t.captures,n,o),t.while,an._compileCaptures(t.whileCaptures||t.captures,n,o),an._compilePatterns(t.patterns,n,o)):new v_(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,an._compileCaptures(t.beginCaptures||t.captures,n,o),t.end,an._compileCaptures(t.endCaptures||t.captures,n,o),t.applyEndPatternLast,an._compilePatterns(t.patterns,n,o))}),t.id}static _compileCaptures(t,n,o){let a=[];if(t){let r=0;for(let A in t){if(A==="$vscodeTextmateLocation")continue;let i=parseInt(A,10);i>r&&(r=i)}for(let A=0;A<=r;A++)a[A]=null;for(let A in t){if(A==="$vscodeTextmateLocation")continue;let i=parseInt(A,10),s=0;t[A].patterns&&(s=an.getCompiledRuleId(t[A],n,o)),a[i]=an.createCaptureRule(n,t[A].$vscodeTextmateLocation,t[A].name,t[A].contentName,s)}}return a}static _compilePatterns(t,n,o){let a=[];if(t)for(let r=0,A=t.length;r<A;r++){let i=t[r],s=-1;if(i.include){let c=VR(i.include);switch(c.kind){case 0:case 1:s=an.getCompiledRuleId(o[i.include],n,o);break;case 2:let u=o[c.ruleName];u&&(s=an.getCompiledRuleId(u,n,o));break;case 3:case 4:let d=c.scopeName,l=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(d,o);if(p)if(l){let b=p.repository[l];b&&(s=an.getCompiledRuleId(b,n,p.repository))}else s=an.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else s=an.getCompiledRuleId(i,n,o);if(s!==-1){let c=n.getRule(s),u=!1;if((c instanceof jR||c instanceof v_||c instanceof gf)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;a.push(s)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},_d=class tN{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){let o=t.length,a=0,r=[],A=!1;for(let i=0;i<o;i++)if(t.charAt(i)==="\\"&&i+1<o){let c=t.charAt(i+1);c==="z"?(r.push(t.substring(a,i)),r.push("$(?!\\n)(?<!\\n)"),a=i+2):(c==="A"||c==="G")&&(A=!0),i++}this.hasAnchor=A,a===0?this.source=t:(r.push(t.substring(a,o)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=JJ.test(this.source):this.hasBackReferences=!1}clone(){return new tN(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let o=n.map(a=>t.substring(a.start,a.end));return MR.lastIndex=0,this.source.replace(MR,(a,r)=>YR(o[parseInt(r,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],o=[],a=[],r,A,i,s;for(r=0,A=this.source.length;r<A;r++)i=this.source.charAt(r),t[r]=i,n[r]=i,o[r]=i,a[r]=i,i==="\\"&&r+1<A&&(s=this.source.charAt(r+1),s==="A"?(t[r+1]="\uFFFF",n[r+1]="\uFFFF",o[r+1]="A",a[r+1]="A"):s==="G"?(t[r+1]="\uFFFF",n[r+1]="G",o[r+1]="\uFFFF",a[r+1]="G"):(t[r+1]=s,n[r+1]=s,o[r+1]=s,a[r+1]=s),r++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:o.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},vd=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new GR(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let o=this._items.map(a=>a.resolveAnchors(t,n));return new GR(e,o,this._items.map(a=>a.ruleId))}},GR=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
75
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let A of e.seen.entries()){let i=A[1];if(t===A[0]){r(A);continue}if(e.external){let c=e.external.registry.get(A[0])?.id;if(t!==A[0]&&c){r(A);continue}}if(e.metadataRegistry.get(A[0])?.id){r(A);continue}if(i.cycle){r(A);continue}if(i.count>1&&e.reused==="ref"){r(A);continue}}}function Lr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=i=>{let s=e.seen.get(i);if(s.ref===null)return;let c=s.def??s.schema,u={...c},d=s.ref;if(s.ref=null,d){o(d);let p=e.seen.get(d),b=p.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(b)):Object.assign(c,b),Object.assign(c,u),i._zod.parent===d)for(let C in c)C==="$ref"||C==="allOf"||C in u||delete c[C];if(b.$ref&&p.def)for(let C in c)C==="$ref"||C==="allOf"||C in p.def&&JSON.stringify(c[C])===JSON.stringify(p.def[C])&&delete c[C]}let l=i._zod.parent;if(l&&l!==d){o(l);let p=e.seen.get(l);if(p?.schema.$ref&&(c.$ref=p.schema.$ref,p.def))for(let b in c)b==="$ref"||b==="allOf"||b in p.def&&JSON.stringify(c[b])===JSON.stringify(p.def[b])&&delete c[b]}e.override({zodSchema:i,jsonSchema:c,path:s.path??[]})};for(let i of[...e.seen.entries()].reverse())o(i[0]);let a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(i)}Object.assign(a,n.def??n.schema);let r=e.metadataRegistry.get(t)?.id;r!==void 0&&a.id===r&&delete a.id;let A=e.external?.defs??{};for(let i of e.seen.entries()){let s=i[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,A[s.defId]=s.def)}e.external||Object.keys(A).length>0&&(e.target==="draft-2020-12"?a.$defs=A:a.definitions=A);try{let i=JSON.parse(JSON.stringify(a));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:Fs(t,"input",e.processors),output:Fs(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function mn(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return mn(o.element,n);if(o.type==="set")return mn(o.valueType,n);if(o.type==="lazy")return mn(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return mn(o.innerType,n);if(o.type==="intersection")return mn(o.left,n)||mn(o.right,n);if(o.type==="record"||o.type==="map")return mn(o.keyType,n)||mn(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:mn(o.in,n)||mn(o.out,n);if(o.type==="object"){for(let a in o.shape)if(mn(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(let a of o.options)if(mn(a,n))return!0;return!1}if(o.type==="tuple"){for(let a of o.items)if(mn(a,n))return!0;return!!(o.rest&&mn(o.rest,n))}return!1}var dk=(e,t={})=>n=>{let o=Fr({...n,processors:t});return xe(e,o),Sr(o,e),Lr(o,e)},Fs=(e,t,n={})=>o=>{let{libraryOptions:a,target:r}=o??{},A=Fr({...a??{},target:r,io:t,processors:n});return xe(e,A),Sr(A,e),Lr(A,e)};var kz={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},lk=(e,t,n,o)=>{let a=n;a.type="string";let{minimum:r,maximum:A,format:i,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof A=="number"&&(a.maxLength=A),i&&(a.format=kz[i]??i,a.format===""&&delete a.format,i==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){let u=[...s];u.length===1?a.pattern=u[0].source:u.length>1&&(a.allOf=[...u.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},pk=(e,t,n,o)=>{let a=n,{minimum:r,maximum:A,format:i,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof i=="string"&&i.includes("int")?a.type="integer":a.type="number";let d=typeof u=="number"&&u>=(r??Number.NEGATIVE_INFINITY),l=typeof c=="number"&&c<=(A??Number.POSITIVE_INFINITY),p=t.target==="draft-04"||t.target==="openapi-3.0";d?p?(a.minimum=u,a.exclusiveMinimum=!0):a.exclusiveMinimum=u:typeof r=="number"&&(a.minimum=r),l?p?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof A=="number"&&(a.maximum=A),typeof s=="number"&&(a.multipleOf=s)},gk=(e,t,n,o)=>{n.type="boolean"},mk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},fk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},bk=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},hk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Bk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Ck=(e,t,n,o)=>{n.not={}},yk=(e,t,n,o)=>{},wk=(e,t,n,o)=>{},Ek=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},kk=(e,t,n,o)=>{let a=e._zod.def,r=hu(a.entries);r.every(A=>typeof A=="number")&&(n.type="number"),r.every(A=>typeof A=="string")&&(n.type="string"),n.enum=r},Qk=(e,t,n,o)=>{let a=e._zod.def,r=[];for(let A of a.values)if(A===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof A=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(A))}else r.push(A);if(r.length!==0)if(r.length===1){let A=r[0];n.type=A===null?"null":typeof A,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[A]:n.const=A}else r.every(A=>typeof A=="number")&&(n.type="number"),r.every(A=>typeof A=="string")&&(n.type="string"),r.every(A=>typeof A=="boolean")&&(n.type="boolean"),r.every(A=>A===null)&&(n.type="null"),n.enum=r},Ik=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},_k=(e,t,n,o)=>{let a=n,r=e._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},vk=(e,t,n,o)=>{let a=n,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:A,maximum:i,mime:s}=e._zod.bag;A!==void 0&&(r.minLength=A),i!==void 0&&(r.maxLength=i),s?s.length===1?(r.contentMediaType=s[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(a,r)},xk=(e,t,n,o)=>{n.type="boolean"},Dk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Fk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Sk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Lk=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},$k=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Rk=(e,t,n,o)=>{let a=n,r=e._zod.def,{minimum:A,maximum:i}=e._zod.bag;typeof A=="number"&&(a.minItems=A),typeof i=="number"&&(a.maxItems=i),a.type="array",a.items=xe(r.element,t,{...o,path:[...o.path,"items"]})},Nk=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object",a.properties={};let A=r.shape;for(let c in A)a.properties[c]=xe(A[c],t,{...o,path:[...o.path,"properties",c]});let i=new Set(Object.keys(A)),s=new Set([...i].filter(c=>{let u=r.shape[c]._zod;return t.io==="input"?u.optin===void 0:u.optout===void 0}));s.size>0&&(a.required=Array.from(s)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=xe(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},lm=(e,t,n,o)=>{let a=e._zod.def,r=a.inclusive===!1,A=a.options.map((i,s)=>xe(i,t,{...o,path:[...o.path,r?"oneOf":"anyOf",s]}));r?n.oneOf=A:n.anyOf=A},Mk=(e,t,n,o)=>{let a=e._zod.def,r=xe(a.left,t,{...o,path:[...o.path,"allOf",0]}),A=xe(a.right,t,{...o,path:[...o.path,"allOf",1]}),i=c=>"allOf"in c&&Object.keys(c).length===1,s=[...i(r)?r.allOf:[r],...i(A)?A.allOf:[A]];n.allOf=s},jk=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="array";let A=t.target==="draft-2020-12"?"prefixItems":"items",i=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=r.items.map((l,p)=>xe(l,t,{...o,path:[...o.path,A,p]})),c=r.rest?xe(r.rest,t,{...o,path:[...o.path,i,...t.target==="openapi-3.0"?[r.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=s,c&&(a.items=c)):t.target==="openapi-3.0"?(a.items={anyOf:s},c&&a.items.anyOf.push(c),a.minItems=s.length,c||(a.maxItems=s.length)):(a.items=s,c&&(a.additionalItems=c));let{minimum:u,maximum:d}=e._zod.bag;typeof u=="number"&&(a.minItems=u),typeof d=="number"&&(a.maxItems=d)},Gk=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object";let A=r.keyType,s=A._zod.bag?.patterns;if(r.mode==="loose"&&s&&s.size>0){let u=xe(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(let d of s)a.patternProperties[d.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=xe(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=xe(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=A._zod.values;if(c){let u=[...c].filter(d=>typeof d=="string"||typeof d=="number");u.length>0&&(a.required=u)}},Hk=(e,t,n,o)=>{let a=e._zod.def,r=xe(a.innerType,t,o),A=t.seen.get(e);t.target==="openapi-3.0"?(A.ref=a.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},Pk=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},Uk=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},Tk=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},qk=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType;let A;try{A=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=A},Ok=(e,t,n,o)=>{let a=e._zod.def,r=a.in._zod.traits.has("$ZodTransform"),A=t.io==="input"?r?a.out:a.in:a.out;xe(A,t,o);let i=t.seen.get(e);i.ref=A},zk=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.readOnly=!0},Yk=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},pm=(e,t,n,o)=>{let a=e._zod.def;xe(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},Kk=(e,t,n,o)=>{let a=e._zod.innerType;xe(a,t,o);let r=t.seen.get(e);r.ref=a},dm={string:lk,number:pk,boolean:gk,bigint:mk,symbol:fk,null:bk,undefined:hk,void:Bk,never:Ck,any:yk,unknown:wk,date:Ek,enum:kk,literal:Qk,nan:Ik,template_literal:_k,file:vk,success:xk,custom:Dk,function:Fk,transform:Sk,map:Lk,set:$k,array:Rk,object:Nk,union:lm,intersection:Mk,tuple:jk,record:Gk,nullable:Hk,nonoptional:Pk,default:Uk,prefault:Tk,catch:qk,pipe:Ok,readonly:zk,promise:Yk,optional:pm,lazy:Kk};function gm(e,t){if("_idmap"in e){let o=e,a=Fr({...t,processors:dm}),r={};for(let s of o._idmap.entries()){let[c,u]=s;xe(u,a)}let A={},i={registry:o,uri:t?.uri,defs:r};a.external=i;for(let s of o._idmap.entries()){let[c,u]=s;Sr(a,u),A[c]=Lr(a,u)}if(Object.keys(r).length>0){let s=a.target==="draft-2020-12"?"$defs":"definitions";A.__shared={[s]:r}}return{schemas:A}}let n=Fr({...t,processors:dm});return xe(e,n),Sr(n,e),Lr(n,e)}var mm=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Fr({processors:dm,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return xe(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),Sr(this.ctx,t);let o=Lr(this.ctx,t),{"~standard":a,...r}=o;return r}};var i9={};var Nu={};_(Nu,{ZodAny:()=>hQ,ZodArray:()=>wQ,ZodBase64:()=>Nm,ZodBase64URL:()=>Mm,ZodBigInt:()=>Gs,ZodBigIntFormat:()=>Hm,ZodBoolean:()=>js,ZodCIDRv4:()=>$m,ZodCIDRv6:()=>Rm,ZodCUID:()=>_m,ZodCUID2:()=>vm,ZodCatch:()=>qQ,ZodCodec:()=>Ku,ZodCustom:()=>Ju,ZodCustomStringFormat:()=>Ns,ZodDate:()=>Tu,ZodDefault:()=>jQ,ZodDiscriminatedUnion:()=>kQ,ZodE164:()=>jm,ZodEmail:()=>km,ZodEmoji:()=>Qm,ZodEnum:()=>$s,ZodExactOptional:()=>RQ,ZodFile:()=>LQ,ZodFunction:()=>e0,ZodGUID:()=>ju,ZodIPv4:()=>Sm,ZodIPv6:()=>Lm,ZodIntersection:()=>QQ,ZodJWT:()=>Gm,ZodKSUID:()=>Fm,ZodLazy:()=>ZQ,ZodLiteral:()=>SQ,ZodMAC:()=>dQ,ZodMap:()=>DQ,ZodNaN:()=>zQ,ZodNanoID:()=>Im,ZodNever:()=>CQ,ZodNonOptional:()=>zm,ZodNull:()=>fQ,ZodNullable:()=>MQ,ZodNumber:()=>Ms,ZodNumberFormat:()=>SA,ZodObject:()=>Ou,ZodOptional:()=>Om,ZodPipe:()=>Yu,ZodPrefault:()=>HQ,ZodPreprocess:()=>YQ,ZodPromise:()=>XQ,ZodReadonly:()=>KQ,ZodRecord:()=>Ls,ZodSet:()=>FQ,ZodString:()=>Rs,ZodStringFormat:()=>Ge,ZodSuccess:()=>TQ,ZodSymbol:()=>gQ,ZodTemplateLiteral:()=>WQ,ZodTransform:()=>$Q,ZodTuple:()=>_Q,ZodType:()=>re,ZodULID:()=>xm,ZodURL:()=>Uu,ZodUUID:()=>eo,ZodUndefined:()=>mQ,ZodUnion:()=>zu,ZodUnknown:()=>BQ,ZodVoid:()=>yQ,ZodXID:()=>Dm,ZodXor:()=>EQ,_ZodString:()=>Em,_default:()=>GQ,_function:()=>f6,any:()=>Y9,array:()=>qu,base64:()=>D9,base64url:()=>F9,bigint:()=>U9,boolean:()=>pQ,catch:()=>OQ,check:()=>b6,cidrv4:()=>v9,cidrv6:()=>x9,codec:()=>l6,cuid:()=>C9,cuid2:()=>y9,custom:()=>h6,date:()=>J9,describe:()=>B6,discriminatedUnion:()=>t6,e164:()=>S9,email:()=>u9,emoji:()=>h9,enum:()=>Tm,exactOptional:()=>NQ,file:()=>s6,float32:()=>j9,float64:()=>G9,function:()=>f6,guid:()=>d9,hash:()=>M9,hex:()=>N9,hostname:()=>R9,httpUrl:()=>b9,instanceof:()=>y6,int:()=>ym,int32:()=>H9,int64:()=>T9,intersection:()=>IQ,invertCodec:()=>p6,ipv4:()=>Q9,ipv6:()=>_9,json:()=>E6,jwt:()=>L9,keyof:()=>W9,ksuid:()=>k9,lazy:()=>VQ,literal:()=>i6,looseObject:()=>X9,looseRecord:()=>a6,mac:()=>I9,map:()=>o6,meta:()=>C6,nan:()=>d6,nanoid:()=>B9,nativeEnum:()=>A6,never:()=>Pm,nonoptional:()=>UQ,null:()=>bQ,nullable:()=>Hu,nullish:()=>c6,number:()=>lQ,object:()=>Z9,optional:()=>Gu,partialRecord:()=>n6,pipe:()=>wm,prefault:()=>PQ,preprocess:()=>k6,promise:()=>m6,readonly:()=>JQ,record:()=>xQ,refine:()=>t0,set:()=>r6,strictObject:()=>V9,string:()=>Mu,stringFormat:()=>$9,stringbool:()=>w6,success:()=>u6,superRefine:()=>n0,symbol:()=>O9,templateLiteral:()=>g6,transform:()=>qm,tuple:()=>vQ,uint32:()=>P9,uint64:()=>q9,ulid:()=>w9,undefined:()=>z9,union:()=>Um,unknown:()=>FA,url:()=>f9,uuid:()=>l9,uuidv4:()=>p9,uuidv6:()=>g9,uuidv7:()=>m9,void:()=>K9,xid:()=>E9,xor:()=>e6});var fm={};_(fm,{endsWith:()=>Es,gt:()=>Va,gte:()=>gn,includes:()=>ys,length:()=>DA,lowercase:()=>Bs,lt:()=>Za,lte:()=>Yn,maxLength:()=>xA,maxSize:()=>Dr,mime:()=>ks,minLength:()=>Ro,minSize:()=>Xa,multipleOf:()=>xr,negative:()=>im,nonnegative:()=>cm,nonpositive:()=>sm,normalize:()=>Qs,overwrite:()=>Fa,positive:()=>Am,property:()=>um,regex:()=>hs,size:()=>vA,slugify:()=>xs,startsWith:()=>ws,toLowerCase:()=>_s,toUpperCase:()=>vs,trim:()=>Is,uppercase:()=>Cs});var Ss={};_(Ss,{ZodISODate:()=>hm,ZodISODateTime:()=>bm,ZodISODuration:()=>Cm,ZodISOTime:()=>Bm,date:()=>Wk,datetime:()=>Jk,duration:()=>Vk,time:()=>Zk});var bm=w("ZodISODateTime",(e,t)=>{Iw.init(e,t),Ge.init(e,t)});function Jk(e){return DE(bm,e)}var hm=w("ZodISODate",(e,t)=>{_w.init(e,t),Ge.init(e,t)});function Wk(e){return FE(hm,e)}var Bm=w("ZodISOTime",(e,t)=>{vw.init(e,t),Ge.init(e,t)});function Zk(e){return SE(Bm,e)}var Cm=w("ZodISODuration",(e,t)=>{xw.init(e,t),Ge.init(e,t)});function Vk(e){return LE(Cm,e)}var s9=(e,t)=>{Eu.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Qu(e,n)},flatten:{value:n=>ku(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,cs,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,cs,2)}},isEmpty:{get(){return e.issues.length===0}}})},Iz=w("ZodError",s9),Dn=w("ZodError",s9,{Parent:Error});var Xk=ls(Dn),eQ=ps(Dn),tQ=gs(Dn),nQ=ms(Dn),aQ=gg(Dn),oQ=mg(Dn),rQ=fg(Dn),AQ=bg(Dn),iQ=hg(Dn),sQ=Bg(Dn),cQ=Cg(Dn),uQ=yg(Dn);var c9=new WeakMap;function Pu(e,t,n){let o=Object.getPrototypeOf(e),a=c9.get(o);if(a||(a=new Set,c9.set(o,a)),!a.has(t)){a.add(t);for(let r in n){let A=n[r];Object.defineProperty(o,r,{configurable:!0,enumerable:!1,get(){let i=A.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:i}),i},set(i){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:i})}})}}}var re=w("ZodType",(e,t)=>(Z.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Fs(e,"input"),output:Fs(e,"output")}}),e.toJSONSchema=dk(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>Xk(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>tQ(e,n,o),e.parseAsync=async(n,o)=>eQ(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>nQ(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>aQ(e,n,o),e.decode=(n,o)=>oQ(e,n,o),e.encodeAsync=async(n,o)=>rQ(e,n,o),e.decodeAsync=async(n,o)=>AQ(e,n,o),e.safeEncode=(n,o)=>iQ(e,n,o),e.safeDecode=(n,o)=>sQ(e,n,o),e.safeEncodeAsync=async(n,o)=>cQ(e,n,o),e.safeDecodeAsync=async(n,o)=>uQ(e,n,o),Pu(e,"ZodType",{check(...n){let o=this.def;return this.clone($.mergeDefs(o,{checks:[...o.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return ln(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(t0(n,o))},superRefine(n,o){return this.check(n0(n,o))},overwrite(n){return this.check(Fa(n))},optional(){return Gu(this)},exactOptional(){return NQ(this)},nullable(){return Hu(this)},nullish(){return Gu(Hu(this))},nonoptional(n){return UQ(this,n)},array(){return qu(this)},or(n){return Um([this,n])},and(n){return IQ(this,n)},transform(n){return wm(this,qm(n))},default(n){return GQ(this,n)},prefault(n){return PQ(this,n)},catch(n){return OQ(this,n)},pipe(n){return wm(this,n)},readonly(){return JQ(this)},describe(n){let o=this.clone();return Kt.add(o,{description:n}),o},meta(...n){if(n.length===0)return Kt.get(this);let o=this.clone();return Kt.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Kt.get(e)?.description},configurable:!0}),e)),Em=w("_ZodString",(e,t)=>{_A.init(e,t),re.init(e,t),e._zod.processJSONSchema=(o,a,r)=>lk(e,o,a,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Pu(e,"_ZodString",{regex(...o){return this.check(hs(...o))},includes(...o){return this.check(ys(...o))},startsWith(...o){return this.check(ws(...o))},endsWith(...o){return this.check(Es(...o))},min(...o){return this.check(Ro(...o))},max(...o){return this.check(xA(...o))},length(...o){return this.check(DA(...o))},nonempty(...o){return this.check(Ro(1,...o))},lowercase(o){return this.check(Bs(o))},uppercase(o){return this.check(Cs(o))},trim(){return this.check(Is())},normalize(...o){return this.check(Qs(...o))},toLowerCase(){return this.check(_s())},toUpperCase(){return this.check(vs())},slugify(){return this.check(xs())}})}),Rs=w("ZodString",(e,t)=>{_A.init(e,t),Em.init(e,t),e.email=n=>e.check(Hg(km,n)),e.url=n=>e.check(Ru(Uu,n)),e.jwt=n=>e.check(rm(Gm,n)),e.emoji=n=>e.check(Og(Qm,n)),e.guid=n=>e.check($u(ju,n)),e.uuid=n=>e.check(Pg(eo,n)),e.uuidv4=n=>e.check(Ug(eo,n)),e.uuidv6=n=>e.check(Tg(eo,n)),e.uuidv7=n=>e.check(qg(eo,n)),e.nanoid=n=>e.check(zg(Im,n)),e.guid=n=>e.check($u(ju,n)),e.cuid=n=>e.check(Yg(_m,n)),e.cuid2=n=>e.check(Kg(vm,n)),e.ulid=n=>e.check(Jg(xm,n)),e.base64=n=>e.check(nm(Nm,n)),e.base64url=n=>e.check(am(Mm,n)),e.xid=n=>e.check(Wg(Dm,n)),e.ksuid=n=>e.check(Zg(Fm,n)),e.ipv4=n=>e.check(Vg(Sm,n)),e.ipv6=n=>e.check(Xg(Lm,n)),e.cidrv4=n=>e.check(em($m,n)),e.cidrv6=n=>e.check(tm(Rm,n)),e.e164=n=>e.check(om(jm,n)),e.datetime=n=>e.check(Jk(n)),e.date=n=>e.check(Wk(n)),e.time=n=>e.check(Zk(n)),e.duration=n=>e.check(Vk(n))});function Mu(e){return IE(Rs,e)}var Ge=w("ZodStringFormat",(e,t)=>{je.init(e,t),Em.init(e,t)}),km=w("ZodEmail",(e,t)=>{bw.init(e,t),Ge.init(e,t)});function u9(e){return Hg(km,e)}var ju=w("ZodGUID",(e,t)=>{mw.init(e,t),Ge.init(e,t)});function d9(e){return $u(ju,e)}var eo=w("ZodUUID",(e,t)=>{fw.init(e,t),Ge.init(e,t)});function l9(e){return Pg(eo,e)}function p9(e){return Ug(eo,e)}function g9(e){return Tg(eo,e)}function m9(e){return qg(eo,e)}var Uu=w("ZodURL",(e,t)=>{hw.init(e,t),Ge.init(e,t)});function f9(e){return Ru(Uu,e)}function b9(e){return Ru(Uu,{protocol:zn.httpProtocol,hostname:zn.domain,...$.normalizeParams(e)})}var Qm=w("ZodEmoji",(e,t)=>{Bw.init(e,t),Ge.init(e,t)});function h9(e){return Og(Qm,e)}var Im=w("ZodNanoID",(e,t)=>{Cw.init(e,t),Ge.init(e,t)});function B9(e){return zg(Im,e)}var _m=w("ZodCUID",(e,t)=>{yw.init(e,t),Ge.init(e,t)});function C9(e){return Yg(_m,e)}var vm=w("ZodCUID2",(e,t)=>{ww.init(e,t),Ge.init(e,t)});function y9(e){return Kg(vm,e)}var xm=w("ZodULID",(e,t)=>{Ew.init(e,t),Ge.init(e,t)});function w9(e){return Jg(xm,e)}var Dm=w("ZodXID",(e,t)=>{kw.init(e,t),Ge.init(e,t)});function E9(e){return Wg(Dm,e)}var Fm=w("ZodKSUID",(e,t)=>{Qw.init(e,t),Ge.init(e,t)});function k9(e){return Zg(Fm,e)}var Sm=w("ZodIPv4",(e,t)=>{Dw.init(e,t),Ge.init(e,t)});function Q9(e){return Vg(Sm,e)}var dQ=w("ZodMAC",(e,t)=>{Sw.init(e,t),Ge.init(e,t)});function I9(e){return vE(dQ,e)}var Lm=w("ZodIPv6",(e,t)=>{Fw.init(e,t),Ge.init(e,t)});function _9(e){return Xg(Lm,e)}var $m=w("ZodCIDRv4",(e,t)=>{Lw.init(e,t),Ge.init(e,t)});function v9(e){return em($m,e)}var Rm=w("ZodCIDRv6",(e,t)=>{$w.init(e,t),Ge.init(e,t)});function x9(e){return tm(Rm,e)}var Nm=w("ZodBase64",(e,t)=>{Nw.init(e,t),Ge.init(e,t)});function D9(e){return nm(Nm,e)}var Mm=w("ZodBase64URL",(e,t)=>{Mw.init(e,t),Ge.init(e,t)});function F9(e){return am(Mm,e)}var jm=w("ZodE164",(e,t)=>{jw.init(e,t),Ge.init(e,t)});function S9(e){return om(jm,e)}var Gm=w("ZodJWT",(e,t)=>{Gw.init(e,t),Ge.init(e,t)});function L9(e){return rm(Gm,e)}var Ns=w("ZodCustomStringFormat",(e,t)=>{Hw.init(e,t),Ge.init(e,t)});function $9(e,t,n={}){return Ds(Ns,e,t,n)}function R9(e){return Ds(Ns,"hostname",zn.hostname,e)}function N9(e){return Ds(Ns,"hex",zn.hex,e)}function M9(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,a=zn[o];if(!a)throw new Error(`Unrecognized hash format: ${o}`);return Ds(Ns,o,a,t)}var Ms=w("ZodNumber",(e,t)=>{Dg.init(e,t),re.init(e,t),e._zod.processJSONSchema=(o,a,r)=>pk(e,o,a,r),Pu(e,"ZodNumber",{gt(o,a){return this.check(Va(o,a))},gte(o,a){return this.check(gn(o,a))},min(o,a){return this.check(gn(o,a))},lt(o,a){return this.check(Za(o,a))},lte(o,a){return this.check(Yn(o,a))},max(o,a){return this.check(Yn(o,a))},int(o){return this.check(ym(o))},safe(o){return this.check(ym(o))},positive(o){return this.check(Va(0,o))},nonnegative(o){return this.check(gn(0,o))},negative(o){return this.check(Za(0,o))},nonpositive(o){return this.check(Yn(0,o))},multipleOf(o,a){return this.check(xr(o,a))},step(o,a){return this.check(xr(o,a))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function lQ(e){return $E(Ms,e)}var SA=w("ZodNumberFormat",(e,t)=>{Pw.init(e,t),Ms.init(e,t)});function ym(e){return NE(SA,e)}function j9(e){return ME(SA,e)}function G9(e){return jE(SA,e)}function H9(e){return GE(SA,e)}function P9(e){return HE(SA,e)}var js=w("ZodBoolean",(e,t)=>{xu.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>gk(e,n,o,a)});function pQ(e){return PE(js,e)}var Gs=w("ZodBigInt",(e,t)=>{Fg.init(e,t),re.init(e,t),e._zod.processJSONSchema=(o,a,r)=>mk(e,o,a,r),e.gte=(o,a)=>e.check(gn(o,a)),e.min=(o,a)=>e.check(gn(o,a)),e.gt=(o,a)=>e.check(Va(o,a)),e.gte=(o,a)=>e.check(gn(o,a)),e.min=(o,a)=>e.check(gn(o,a)),e.lt=(o,a)=>e.check(Za(o,a)),e.lte=(o,a)=>e.check(Yn(o,a)),e.max=(o,a)=>e.check(Yn(o,a)),e.positive=o=>e.check(Va(BigInt(0),o)),e.negative=o=>e.check(Za(BigInt(0),o)),e.nonpositive=o=>e.check(Yn(BigInt(0),o)),e.nonnegative=o=>e.check(gn(BigInt(0),o)),e.multipleOf=(o,a)=>e.check(xr(o,a));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function U9(e){return TE(Gs,e)}var Hm=w("ZodBigIntFormat",(e,t)=>{Uw.init(e,t),Gs.init(e,t)});function T9(e){return OE(Hm,e)}function q9(e){return zE(Hm,e)}var gQ=w("ZodSymbol",(e,t)=>{Tw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>fk(e,n,o,a)});function O9(e){return YE(gQ,e)}var mQ=w("ZodUndefined",(e,t)=>{qw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>hk(e,n,o,a)});function z9(e){return KE(mQ,e)}var fQ=w("ZodNull",(e,t)=>{Ow.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>bk(e,n,o,a)});function bQ(e){return JE(fQ,e)}var hQ=w("ZodAny",(e,t)=>{zw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>yk(e,n,o,a)});function Y9(){return WE(hQ)}var BQ=w("ZodUnknown",(e,t)=>{Yw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>wk(e,n,o,a)});function FA(){return ZE(BQ)}var CQ=w("ZodNever",(e,t)=>{Kw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ck(e,n,o,a)});function Pm(e){return VE(CQ,e)}var yQ=w("ZodVoid",(e,t)=>{Jw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Bk(e,n,o,a)});function K9(e){return XE(yQ,e)}var Tu=w("ZodDate",(e,t)=>{Ww.init(e,t),re.init(e,t),e._zod.processJSONSchema=(o,a,r)=>Ek(e,o,a,r),e.min=(o,a)=>e.check(gn(o,a)),e.max=(o,a)=>e.check(Yn(o,a));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function J9(e){return ek(Tu,e)}var wQ=w("ZodArray",(e,t)=>{Zw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Rk(e,n,o,a),e.element=t.element,Pu(e,"ZodArray",{min(n,o){return this.check(Ro(n,o))},nonempty(n){return this.check(Ro(1,n))},max(n,o){return this.check(xA(n,o))},length(n,o){return this.check(DA(n,o))},unwrap(){return this.element}})});function qu(e,t){return ak(wQ,e,t)}function W9(e){let t=e._zod.def.shape;return Tm(Object.keys(t))}var Ou=w("ZodObject",(e,t)=>{Vw.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Nk(e,n,o,a),$.defineLazy(e,"shape",()=>t.shape),Pu(e,"ZodObject",{keyof(){return Tm(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:FA()})},loose(){return this.clone({...this._zod.def,catchall:FA()})},strict(){return this.clone({...this._zod.def,catchall:Pm()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return $.extend(this,n)},safeExtend(n){return $.safeExtend(this,n)},merge(n){return $.merge(this,n)},pick(n){return $.pick(this,n)},omit(n){return $.omit(this,n)},partial(...n){return $.partial(Om,this,n[0])},required(...n){return $.required(zm,this,n[0])}})});function Z9(e,t){let n={type:"object",shape:e??{},...$.normalizeParams(t)};return new Ou(n)}function V9(e,t){return new Ou({type:"object",shape:e,catchall:Pm(),...$.normalizeParams(t)})}function X9(e,t){return new Ou({type:"object",shape:e,catchall:FA(),...$.normalizeParams(t)})}var zu=w("ZodUnion",(e,t)=>{Du.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>lm(e,n,o,a),e.options=t.options});function Um(e,t){return new zu({type:"union",options:e,...$.normalizeParams(t)})}var EQ=w("ZodXor",(e,t)=>{zu.init(e,t),Xw.init(e,t),e._zod.processJSONSchema=(n,o,a)=>lm(e,n,o,a),e.options=t.options});function e6(e,t){return new EQ({type:"union",options:e,inclusive:!1,...$.normalizeParams(t)})}var kQ=w("ZodDiscriminatedUnion",(e,t)=>{zu.init(e,t),eE.init(e,t)});function t6(e,t,n){return new kQ({type:"union",options:t,discriminator:e,...$.normalizeParams(n)})}var QQ=w("ZodIntersection",(e,t)=>{tE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Mk(e,n,o,a)});function IQ(e,t){return new QQ({type:"intersection",left:e,right:t})}var _Q=w("ZodTuple",(e,t)=>{Sg.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>jk(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function vQ(e,t,n){let o=t instanceof Z,a=o?n:t,r=o?t:null;return new _Q({type:"tuple",items:e,rest:r,...$.normalizeParams(a)})}var Ls=w("ZodRecord",(e,t)=>{nE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Gk(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function xQ(e,t,n){return!t||!t._zod?new Ls({type:"record",keyType:Mu(),valueType:e,...$.normalizeParams(t)}):new Ls({type:"record",keyType:e,valueType:t,...$.normalizeParams(n)})}function n6(e,t,n){let o=ln(e);return o._zod.values=void 0,new Ls({type:"record",keyType:o,valueType:t,...$.normalizeParams(n)})}function a6(e,t,n){return new Ls({type:"record",keyType:e,valueType:t,mode:"loose",...$.normalizeParams(n)})}var DQ=w("ZodMap",(e,t)=>{aE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Lk(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Xa(...n)),e.nonempty=n=>e.check(Xa(1,n)),e.max=(...n)=>e.check(Dr(...n)),e.size=(...n)=>e.check(vA(...n))});function o6(e,t,n){return new DQ({type:"map",keyType:e,valueType:t,...$.normalizeParams(n)})}var FQ=w("ZodSet",(e,t)=>{oE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>$k(e,n,o,a),e.min=(...n)=>e.check(Xa(...n)),e.nonempty=n=>e.check(Xa(1,n)),e.max=(...n)=>e.check(Dr(...n)),e.size=(...n)=>e.check(vA(...n))});function r6(e,t){return new FQ({type:"set",valueType:e,...$.normalizeParams(t)})}var $s=w("ZodEnum",(e,t)=>{rE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(o,a,r)=>kk(e,o,a,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,a)=>{let r={};for(let A of o)if(n.has(A))r[A]=t.entries[A];else throw new Error(`Key ${A} not found in enum`);return new $s({...t,checks:[],...$.normalizeParams(a),entries:r})},e.exclude=(o,a)=>{let r={...t.entries};for(let A of o)if(n.has(A))delete r[A];else throw new Error(`Key ${A} not found in enum`);return new $s({...t,checks:[],...$.normalizeParams(a),entries:r})}});function Tm(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new $s({type:"enum",entries:n,...$.normalizeParams(t)})}function A6(e,t){return new $s({type:"enum",entries:e,...$.normalizeParams(t)})}var SQ=w("ZodLiteral",(e,t)=>{AE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Qk(e,n,o,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function i6(e,t){return new SQ({type:"literal",values:Array.isArray(e)?e:[e],...$.normalizeParams(t)})}var LQ=w("ZodFile",(e,t)=>{iE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>vk(e,n,o,a),e.min=(n,o)=>e.check(Xa(n,o)),e.max=(n,o)=>e.check(Dr(n,o)),e.mime=(n,o)=>e.check(ks(Array.isArray(n)?n:[n],o))});function s6(e){return ok(LQ,e)}var $Q=w("ZodTransform",(e,t)=>{sE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Sk(e,n,o,a),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new kr(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push($.issue(r,n.value,t));else{let A=r;A.fatal&&(A.continue=!1),A.code??(A.code="custom"),A.input??(A.input=n.value),A.inst??(A.inst=e),n.issues.push($.issue(A))}};let a=t.transform(n.value,n);return a instanceof Promise?a.then(r=>(n.value=r,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function qm(e){return new $Q({type:"transform",transform:e})}var Om=w("ZodOptional",(e,t)=>{Lg.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>pm(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Gu(e){return new Om({type:"optional",innerType:e})}var RQ=w("ZodExactOptional",(e,t)=>{cE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>pm(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function NQ(e){return new RQ({type:"optional",innerType:e})}var MQ=w("ZodNullable",(e,t)=>{uE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Hk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Hu(e){return new MQ({type:"nullable",innerType:e})}function c6(e){return Gu(Hu(e))}var jQ=w("ZodDefault",(e,t)=>{dE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Uk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function GQ(e,t){return new jQ({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var HQ=w("ZodPrefault",(e,t)=>{lE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Tk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function PQ(e,t){return new HQ({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var zm=w("ZodNonOptional",(e,t)=>{pE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Pk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function UQ(e,t){return new zm({type:"nonoptional",innerType:e,...$.normalizeParams(t)})}var TQ=w("ZodSuccess",(e,t)=>{gE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>xk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function u6(e){return new TQ({type:"success",innerType:e})}var qQ=w("ZodCatch",(e,t)=>{mE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>qk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function OQ(e,t){return new qQ({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var zQ=w("ZodNaN",(e,t)=>{fE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ik(e,n,o,a)});function d6(e){return nk(zQ,e)}var Yu=w("ZodPipe",(e,t)=>{$g.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ok(e,n,o,a),e.in=t.in,e.out=t.out});function wm(e,t){return new Yu({type:"pipe",in:e,out:t})}var Ku=w("ZodCodec",(e,t)=>{Yu.init(e,t),Fu.init(e,t)});function l6(e,t,n){return new Ku({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function p6(e){let t=e._zod.def;return new Ku({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var YQ=w("ZodPreprocess",(e,t)=>{Yu.init(e,t),bE.init(e,t)}),KQ=w("ZodReadonly",(e,t)=>{hE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>zk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function JQ(e){return new KQ({type:"readonly",innerType:e})}var WQ=w("ZodTemplateLiteral",(e,t)=>{BE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>_k(e,n,o,a)});function g6(e,t){return new WQ({type:"template_literal",parts:e,...$.normalizeParams(t)})}var ZQ=w("ZodLazy",(e,t)=>{wE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Kk(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function VQ(e){return new ZQ({type:"lazy",getter:e})}var XQ=w("ZodPromise",(e,t)=>{yE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Yk(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function m6(e){return new XQ({type:"promise",innerType:e})}var e0=w("ZodFunction",(e,t)=>{CE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Fk(e,n,o,a)});function f6(e){return new e0({type:"function",input:Array.isArray(e?.input)?vQ(e?.input):e?.input??qu(FA()),output:e?.output??FA()})}var Ju=w("ZodCustom",(e,t)=>{EE.init(e,t),re.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Dk(e,n,o,a)});function b6(e){let t=new qe({check:"custom"});return t._zod.check=e,t}function h6(e,t){return rk(Ju,e??(()=>!0),t)}function t0(e,t={}){return Ak(Ju,e,t)}function n0(e,t){return ik(e,t)}var B6=sk,C6=ck;function y6(e,t={}){let n=new Ju({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...$.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var w6=(...e)=>uk({Codec:Ku,Boolean:js,String:Rs},...e);function E6(e){let t=VQ(()=>Um([Mu(e),lQ(),pQ(),bQ(),qu(t),xQ(Mu(),t)]));return t}function k6(e,t){return new YQ({type:"pipe",in:qm(e),out:t})}var vz={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function xz(e){At({customError:e})}function Dz(){return At().customError}var a0;a0||(a0={});var H={...Nu,...fm,iso:Ss},Fz=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Sz(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function Lz(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let a=n[1];if(!a||!t.defs[a])throw new Error(`Reference not found: ${e}`);return t.defs[a]}throw new Error(`Reference not found: ${e}`)}function Q6(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return H.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let a=e.$ref;if(t.refs.has(a))return t.refs.get(a);if(t.processing.has(a))return H.lazy(()=>{if(!t.refs.has(a))throw new Error(`Circular reference not resolved: ${a}`);return t.refs.get(a)});t.processing.add(a);let r=Lz(a,t),A=tn(r,t);return t.refs.set(a,A),t.processing.delete(a),A}if(e.enum!==void 0){let a=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&a.length===1&&a[0]===null)return H.null();if(a.length===0)return H.never();if(a.length===1)return H.literal(a[0]);if(a.every(A=>typeof A=="string"))return H.enum(a);let r=a.map(A=>H.literal(A));return r.length<2?r[0]:H.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return H.literal(e.const);let n=e.type;if(Array.isArray(n)){let a=n.map(r=>{let A={...e,type:r};return Q6(A,t)});return a.length===0?H.never():a.length===1?a[0]:H.union(a)}if(!n)return H.any();let o;switch(n){case"string":{let a=H.string();if(e.format){let r=e.format;r==="email"?a=a.check(H.email()):r==="uri"||r==="uri-reference"?a=a.check(H.url()):r==="uuid"||r==="guid"?a=a.check(H.uuid()):r==="date-time"?a=a.check(H.iso.datetime()):r==="date"?a=a.check(H.iso.date()):r==="time"?a=a.check(H.iso.time()):r==="duration"?a=a.check(H.iso.duration()):r==="ipv4"?a=a.check(H.ipv4()):r==="ipv6"?a=a.check(H.ipv6()):r==="mac"?a=a.check(H.mac()):r==="cidr"?a=a.check(H.cidrv4()):r==="cidr-v6"?a=a.check(H.cidrv6()):r==="base64"?a=a.check(H.base64()):r==="base64url"?a=a.check(H.base64url()):r==="e164"?a=a.check(H.e164()):r==="jwt"?a=a.check(H.jwt()):r==="emoji"?a=a.check(H.emoji()):r==="nanoid"?a=a.check(H.nanoid()):r==="cuid"?a=a.check(H.cuid()):r==="cuid2"?a=a.check(H.cuid2()):r==="ulid"?a=a.check(H.ulid()):r==="xid"?a=a.check(H.xid()):r==="ksuid"&&(a=a.check(H.ksuid()))}typeof e.minLength=="number"&&(a=a.min(e.minLength)),typeof e.maxLength=="number"&&(a=a.max(e.maxLength)),e.pattern&&(a=a.regex(new RegExp(e.pattern))),o=a;break}case"number":case"integer":{let a=n==="integer"?H.number().int():H.number();typeof e.minimum=="number"&&(a=a.min(e.minimum)),typeof e.maximum=="number"&&(a=a.max(e.maximum)),typeof e.exclusiveMinimum=="number"?a=a.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(a=a.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?a=a.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(a=a.lt(e.maximum)),typeof e.multipleOf=="number"&&(a=a.multipleOf(e.multipleOf)),o=a;break}case"boolean":{o=H.boolean();break}case"null":{o=H.null();break}case"object":{let a={},r=e.properties||{},A=new Set(e.required||[]);for(let[s,c]of Object.entries(r)){let u=tn(c,t);a[s]=A.has(s)?u:u.optional()}if(e.propertyNames){let s=tn(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?tn(e.additionalProperties,t):H.any();if(Object.keys(a).length===0){o=H.record(s,c);break}let u=H.object(a).passthrough(),d=H.looseRecord(s,c);o=H.intersection(u,d);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),u=[];for(let l of c){let p=tn(s[l],t),b=H.string().regex(new RegExp(l));u.push(H.looseRecord(b,p))}let d=[];if(Object.keys(a).length>0&&d.push(H.object(a).passthrough()),d.push(...u),d.length===0)o=H.object({}).passthrough();else if(d.length===1)o=d[0];else{let l=H.intersection(d[0],d[1]);for(let p=2;p<d.length;p++)l=H.intersection(l,d[p]);o=l}break}let i=H.object(a);e.additionalProperties===!1?o=i.strict():typeof e.additionalProperties=="object"?o=i.catchall(tn(e.additionalProperties,t)):o=i.passthrough();break}case"array":{let a=e.prefixItems,r=e.items;if(a&&Array.isArray(a)){let A=a.map(s=>tn(s,t)),i=r&&typeof r=="object"&&!Array.isArray(r)?tn(r,t):void 0;i?o=H.tuple(A).rest(i):o=H.tuple(A),typeof e.minItems=="number"&&(o=o.check(H.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(H.maxLength(e.maxItems)))}else if(Array.isArray(r)){let A=r.map(s=>tn(s,t)),i=e.additionalItems&&typeof e.additionalItems=="object"?tn(e.additionalItems,t):void 0;i?o=H.tuple(A).rest(i):o=H.tuple(A),typeof e.minItems=="number"&&(o=o.check(H.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(H.maxLength(e.maxItems)))}else if(r!==void 0){let A=tn(r,t),i=H.array(A);typeof e.minItems=="number"&&(i=i.min(e.minItems)),typeof e.maxItems=="number"&&(i=i.max(e.maxItems)),o=i}else o=H.array(H.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function tn(e,t){if(typeof e=="boolean")return e?H.any():H.never();let n=Q6(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(c=>tn(c,t)),s=H.union(i);n=o?H.intersection(n,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(c=>tn(c,t)),s=H.xor(i);n=o?H.intersection(n,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:H.any();else{let i=o?n:tn(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)i=H.intersection(i,tn(e.allOf[c],t));n=i}e.nullable===!0&&t.version==="openapi-3.0"&&(n=H.nullable(n)),e.readOnly===!0&&(n=H.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let a={},r=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let i of r)i in e&&(a[i]=e[i]);let A=["contentEncoding","contentMediaType","contentSchema"];for(let i of A)i in e&&(a[i]=e[i]);for(let i of Object.keys(e))Fz.has(i)||(a[i]=e[i]);return Object.keys(a).length>0&&t.registry.add(n,a),e.description&&(n=n.describe(e.description)),n}function I6(e,t){if(typeof e=="boolean")return e?H.any():H.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=Sz(n,t?.defaultTarget),a=n.$defs||n.definitions||{},r={version:o,defs:a,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Kt};return tn(n,r)}var o0={};_(o0,{bigint:()=>Mz,boolean:()=>Nz,date:()=>jz,number:()=>Rz,string:()=>$z});function $z(e){return _E(Rs,e)}function Rz(e){return RE(Ms,e)}function Nz(e){return UE(js,e)}function Mz(e){return qE(Gs,e)}function jz(e){return tk(Tu,e)}At(Rg());var Gz=f.object({input:f.number().finite().nonnegative().optional(),output:f.number().finite().nonnegative().optional(),cacheRead:f.number().finite().nonnegative().optional(),cacheWrite:f.number().finite().nonnegative().optional(),total:f.number().finite().nonnegative().optional()}).strict(),_6=f.object({inputTokens:f.number().int().nonnegative().optional(),outputTokens:f.number().int().nonnegative().optional(),cachedInputTokens:f.number().int().nonnegative().optional(),cacheCreationTokens:f.number().int().nonnegative().optional(),reasoningTokens:f.number().int().nonnegative().optional(),totalTokens:f.number().int().nonnegative().optional(),cost:Gz.optional()}).strict();var k=Symbol.for("drizzle:entityKind");function kt(e,t){if(!e||typeof e!="object")return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,k))throw new Error(`Class "${t.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(e).constructor;if(n)for(;n;){if(k in n&&n[k]===t[k])return!0;n=Object.getPrototypeOf(n)}return!1}var LA=class{constructor(t,n){this.table=t,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[k]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(t){return t}mapToDriverValue(t){return t}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}};var Ym=class{static[k]="ColumnBuilder";config;constructor(t,n,o){this.config={name:t,keyAsName:t==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:o,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(t){return this.config.default=t,this.config.hasDefault=!0,this}$defaultFn(t){return this.config.defaultFn=t,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(t){return this.config.onUpdateFn=t,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(t){this.config.name===""&&(this.config.name=t)}};var Mo=Symbol.for("drizzle:Name");var Km=class{static[k]="PgForeignKeyBuilder";reference;_onUpdate="no action";_onDelete="no action";constructor(t,n){this.reference=()=>{let{name:o,columns:a,foreignColumns:r}=t();return{name:o,columns:a,foreignTable:r[0].table,foreignColumns:r}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(t){return this._onUpdate=t===void 0?"no action":t,this}onDelete(t){return this._onDelete=t===void 0?"no action":t,this}build(t){return new r0(t,this)}},r0=class{constructor(t,n){this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[k]="PgForeignKey";reference;onUpdate;onDelete;getName(){let{name:t,columns:n,foreignColumns:o}=this.reference(),a=n.map(i=>i.name),r=o.map(i=>i.name),A=[this.table[Mo],...a,o[0].table[Mo],...r];return t??`${A.join("_")}_fk`}};function Jm(e,...t){return e(...t)}function s0(e,t){return`${e[Mo]}_${t.join("_")}_unique`}var A0=class{constructor(t,n){this.name=n,this.columns=t}static[k]="PgUniqueConstraintBuilder";columns;nullsNotDistinctConfig=!1;nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(t){return new i0(t,this.columns,this.nullsNotDistinctConfig,this.name)}},v6=class{static[k]="PgUniqueOnConstraintBuilder";name;constructor(t){this.name=t}on(...t){return new A0(t,this.name)}},i0=class{constructor(t,n,o,a){this.table=t,this.columns=n,this.name=a??s0(this.table,this.columns.map(r=>r.name)),this.nullsNotDistinct=o}static[k]="PgUniqueConstraint";columns;name;nullsNotDistinct=!1;getName(){return this.name}};function x6(e,t,n){for(let o=t;o<e.length;o++){let a=e[o];if(a==="\\"){o++;continue}if(a==='"')return[e.slice(t,o).replace(/\\/g,""),o+1];if(!n&&(a===","||a==="}"))return[e.slice(t,o).replace(/\\/g,""),o]}return[e.slice(t).replace(/\\/g,""),e.length]}function D6(e,t=0){let n=[],o=t,a=!1;for(;o<e.length;){let r=e[o];if(r===","){(a||o===t)&&n.push(""),a=!0,o++;continue}if(a=!1,r==="\\"){o+=2;continue}if(r==='"'){let[s,c]=x6(e,o+1,!0);n.push(s),o=c;continue}if(r==="}")return[n,o+1];if(r==="{"){let[s,c]=D6(e,o+1);n.push(s),o=c;continue}let[A,i]=x6(e,o,!1);n.push(A),o=i}return[n,o]}function F6(e){let[t]=D6(e,1);return t}function c0(e){return`{${e.map(t=>Array.isArray(t)?c0(t):typeof t=="string"?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}var T=class extends Ym{foreignKeyConfigs=[];static[k]="PgColumnBuilder";array(t){return new d0(this.config.name,this,t)}references(t,n={}){return this.foreignKeyConfigs.push({ref:t,actions:n}),this}unique(t,n){return this.config.isUnique=!0,this.config.uniqueName=t,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(t){return this.config.generated={as:t,type:"always",mode:"stored"},this}buildForeignKeys(t,n){return this.foreignKeyConfigs.map(({ref:o,actions:a})=>Jm((r,A)=>{let i=new Km(()=>{let s=r();return{columns:[t],foreignColumns:[s]}});return A.onUpdate&&i.onUpdate(A.onUpdate),A.onDelete&&i.onDelete(A.onDelete),i.build(n)},o,a))}buildExtraConfigColumn(t){return new u0(t,this.config)}},G=class extends LA{constructor(t,n){n.uniqueName||(n.uniqueName=s0(t,[n.name])),super(t,n),this.table=t}static[k]="PgColumn"},u0=class extends G{static[k]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(t){return this.indexConfig.opClass=t,this}},Hs=class{static[k]="IndexedColumn";constructor(t,n,o,a){this.name=t,this.keyAsName=n,this.type=o,this.indexConfig=a}name;keyAsName;type;indexConfig},d0=class extends T{static[k]="PgArrayBuilder";constructor(t,n,o){super(t,"array","PgArray"),this.config.baseBuilder=n,this.config.size=o}build(t){let n=this.config.baseBuilder.build(t);return new l0(t,this.config,n)}},l0=class e extends G{constructor(t,n,o,a){super(t,n),this.baseColumn=o,this.range=a,this.size=n.size}size;static[k]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(t){return typeof t=="string"&&(t=F6(t)),t.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(t,n=!1){let o=t.map(a=>a===null?null:kt(this.baseColumn,e)?this.baseColumn.mapToDriverValue(a,!0):this.baseColumn.mapToDriverValue(a));return n?o:c0(o)}};var S6=class extends T{static[k]="PgEnumObjectColumnBuilder";constructor(t,n){super(t,"string","PgEnumObjectColumn"),this.config.enum=n}build(t){return new p0(t,this.config)}},p0=class extends G{static[k]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}},L6=Symbol.for("drizzle:isPgEnum");function R6(e){return!!e&&typeof e=="function"&&L6 in e&&e[L6]===!0}var $6=class extends T{static[k]="PgEnumColumnBuilder";constructor(t,n){super(t,"string","PgEnumColumn"),this.config.enum=n}build(t){return new g0(t,this.config)}},g0=class extends G{static[k]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}};var Ps=class{static[k]="Subquery";constructor(t,n,o,a=!1,r=[]){this._={brand:"Subquery",sql:t,selectedFields:n,alias:o,isWith:a,usedTables:r}}},N6=class extends Ps{static[k]="WithSubquery"};var M6="0.45.2";var m0,f0,j6={startActiveSpan(e,t){return m0?(f0||(f0=m0.trace.getTracer("drizzle-orm",M6)),Jm((n,o)=>o.startActiveSpan(e,a=>{try{return t(a)}catch(r){throw a.setStatus({code:n.SpanStatusCode.ERROR,message:r instanceof Error?r.message:"Unknown error"}),r}finally{a.end()}}),m0,f0)):t()}};var Us=Symbol.for("drizzle:ViewBaseConfig");var b0=Symbol.for("drizzle:Schema"),G6=Symbol.for("drizzle:Columns"),H6=Symbol.for("drizzle:ExtraConfigColumns"),h0=Symbol.for("drizzle:OriginalName"),B0=Symbol.for("drizzle:BaseName"),Wu=Symbol.for("drizzle:IsAlias"),P6=Symbol.for("drizzle:ExtraConfigBuilder"),Hz=Symbol.for("drizzle:IsDrizzleTable"),lt=class{static[k]="Table";static Symbol={Name:Mo,Schema:b0,OriginalName:h0,Columns:G6,ExtraConfigColumns:H6,BaseName:B0,IsAlias:Wu,ExtraConfigBuilder:P6};[Mo];[h0];[b0];[G6];[H6];[B0];[Wu]=!1;[Hz]=!0;[P6]=void 0;constructor(t,n,o){this[Mo]=this[h0]=t,this[b0]=n,this[B0]=o}};var U6=class{static[k]="FakePrimitiveParam"};function Pz(e){return e!=null&&typeof e.getSQL=="function"}function Uz(e){let t={sql:"",params:[]};for(let n of e)t.sql+=n.sql,t.params.push(...n.params),n.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...n.typings));return t}var Kn=class{static[k]="StringChunk";value;constructor(t){this.value=Array.isArray(t)?t:[t]}getSQL(){return new pt([this])}},pt=class e{constructor(t){this.queryChunks=t;for(let n of t)if(kt(n,lt)){let o=n[lt.Symbol.Schema];this.usedTables.push(o===void 0?n[lt.Symbol.Name]:o+"."+n[lt.Symbol.Name])}}static[k]="SQL";decoder=T6;shouldInlineParams=!1;usedTables=[];append(t){return this.queryChunks.push(...t.queryChunks),this}toQuery(t){return j6.startActiveSpan("drizzle.buildSQL",n=>{let o=this.buildQueryFromSourceParams(this.queryChunks,t);return n?.setAttributes({"drizzle.query.text":o.sql,"drizzle.query.params":JSON.stringify(o.params)}),o})}buildQueryFromSourceParams(t,n){let o=Object.assign({},n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:a,escapeName:r,escapeParam:A,prepareTyping:i,inlineParams:s,paramStartIndex:c}=o;return Uz(t.map(u=>{if(kt(u,Kn))return{sql:u.value.join(""),params:[]};if(kt(u,Zu))return{sql:r(u.value),params:[]};if(u===void 0)return{sql:"",params:[]};if(Array.isArray(u)){let d=[new Kn("(")];for(let[l,p]of u.entries())d.push(p),l<u.length-1&&d.push(new Kn(", "));return d.push(new Kn(")")),this.buildQueryFromSourceParams(d,o)}if(kt(u,e))return this.buildQueryFromSourceParams(u.queryChunks,{...o,inlineParams:s||u.shouldInlineParams});if(kt(u,lt)){let d=u[lt.Symbol.Schema],l=u[lt.Symbol.Name];return{sql:d===void 0||u[Wu]?r(l):r(d)+"."+r(l),params:[]}}if(kt(u,LA)){let d=a.getColumnCasing(u);if(n.invokeSource==="indexes")return{sql:r(d),params:[]};let l=u.table[lt.Symbol.Schema];return{sql:u.table[Wu]||l===void 0?r(u.table[lt.Symbol.Name])+"."+r(d):r(l)+"."+r(u.table[lt.Symbol.Name])+"."+r(d),params:[]}}if(kt(u,C0)){let d=u[Us].schema,l=u[Us].name;return{sql:d===void 0||u[Us].isAlias?r(l):r(d)+"."+r(l),params:[]}}if(kt(u,Wm)){if(kt(u.value,Vu))return{sql:A(c.value++,u),params:[u],typings:["none"]};let d=u.value===null?null:u.encoder.mapToDriverValue(u.value);if(kt(d,e))return this.buildQueryFromSourceParams([d],o);if(s)return{sql:this.mapInlineParam(d,o),params:[]};let l=["none"];return i&&(l=[i(u.encoder)]),{sql:A(c.value++,d),params:[d],typings:l}}return kt(u,Vu)?{sql:A(c.value++,u),params:[u],typings:["none"]}:kt(u,e.Aliased)&&u.fieldAlias!==void 0?{sql:r(u.fieldAlias),params:[]}:kt(u,Ps)?u._.isWith?{sql:r(u._.alias),params:[]}:this.buildQueryFromSourceParams([new Kn("("),u._.sql,new Kn(") "),new Zu(u._.alias)],o):R6(u)?u.schema?{sql:r(u.schema)+"."+r(u.enumName),params:[]}:{sql:r(u.enumName),params:[]}:Pz(u)?u.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([u.getSQL()],o):this.buildQueryFromSourceParams([new Kn("("),u.getSQL(),new Kn(")")],o):s?{sql:this.mapInlineParam(u,o),params:[]}:{sql:A(c.value++,u),params:[u],typings:["none"]}}))}mapInlineParam(t,{escapeString:n}){if(t===null)return"null";if(typeof t=="number"||typeof t=="boolean")return t.toString();if(typeof t=="string")return n(t);if(typeof t=="object"){let o=t.toString();return n(o==="[object Object]"?JSON.stringify(t):o)}throw new Error("Unexpected param value: "+t)}getSQL(){return this}as(t){return t===void 0?this:new e.Aliased(this,t)}mapWith(t){return this.decoder=typeof t=="function"?{mapFromDriverValue:t}:t,this}inlineParams(){return this.shouldInlineParams=!0,this}if(t){return t?this:void 0}},Zu=class{constructor(t){this.value=t}static[k]="Name";brand;getSQL(){return new pt([this])}};var T6={mapFromDriverValue:e=>e},q6={mapToDriverValue:e=>e},kue={...T6,...q6},Wm=class{constructor(t,n=q6){this.value=t,this.encoder=n}static[k]="Param";brand;getSQL(){return new pt([this])}};function Ts(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!=="")&&n.push(new Kn(e[0]));for(let[o,a]of t.entries())n.push(a,new Kn(e[o+1]));return new pt(n)}(e=>{function t(){return new pt([])}e.empty=t;function n(s){return new pt(s)}e.fromList=n;function o(s){return new pt([new Kn(s)])}e.raw=o;function a(s,c){let u=[];for(let[d,l]of s.entries())d>0&&c!==void 0&&u.push(c),u.push(l);return new pt(u)}e.join=a;function r(s){return new Zu(s)}e.identifier=r;function A(s){return new Vu(s)}e.placeholder=A;function i(s,c){return new Wm(s,c)}e.param=i})(Ts||(Ts={}));(e=>{class t{constructor(o,a){this.sql=o,this.fieldAlias=a}static[k]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(pt||(pt={}));var Vu=class{constructor(t){this.name=t}static[k]="Placeholder";getSQL(){return new pt([this])}};var Tz=Symbol.for("drizzle:IsDrizzleView"),C0=class{static[k]="View";[Us];[Tz]=!0;constructor({name:t,schema:n,selectedFields:o,query:a}){this[Us]={name:t,originalName:t,schema:n,selectedFields:o,query:a,isExisting:!a,isAlias:!1}}getSQL(){return new pt([this])}};LA.prototype.getSQL=function(){return new pt([this])};lt.prototype.getSQL=function(){return new pt([this])};Ps.prototype.getSQL=function(){return new pt([this])};function be(e,t){return{name:typeof e=="string"&&e.length>0?e:"",config:typeof e=="object"?e:t}}var Iue=typeof TextDecoder>"u"?null:new TextDecoder;var jo=class extends T{static[k]="PgIntColumnBaseBuilder";generatedAlwaysAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"always",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"always"};return this.config.hasDefault=!0,this.config.notNull=!0,this}generatedByDefaultAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"byDefault",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"byDefault"};return this.config.hasDefault=!0,this.config.notNull=!0,this}};var y0=class extends jo{static[k]="PgBigInt53Builder";constructor(t){super(t,"number","PgBigInt53")}build(t){return new w0(t,this.config)}},w0=class extends G{static[k]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},E0=class extends jo{static[k]="PgBigInt64Builder";constructor(t){super(t,"bigint","PgBigInt64")}build(t){return new k0(t,this.config)}},k0=class extends G{static[k]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(t){return BigInt(t)}};function O6(e,t){let{name:n,config:o}=be(e,t);return o.mode==="number"?new y0(n):new E0(n)}var Q0=class extends T{static[k]="PgBigSerial53Builder";constructor(t){super(t,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new I0(t,this.config)}},I0=class extends G{static[k]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},_0=class extends T{static[k]="PgBigSerial64Builder";constructor(t){super(t,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(t){return new v0(t,this.config)}},v0=class extends G{static[k]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(t){return BigInt(t)}};function z6(e,t){let{name:n,config:o}=be(e,t);return o.mode==="number"?new Q0(n):new _0(n)}var x0=class extends T{static[k]="PgBooleanBuilder";constructor(t){super(t,"boolean","PgBoolean")}build(t){return new D0(t,this.config)}},D0=class extends G{static[k]="PgBoolean";getSQLType(){return"boolean"}};function Y6(e){return new x0(e??"")}var F0=class extends T{static[k]="PgCharBuilder";constructor(t,n){super(t,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new S0(t,this.config)}},S0=class extends G{static[k]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}};function K6(e,t={}){let{name:n,config:o}=be(e,t);return new F0(n,o)}var L0=class extends T{static[k]="PgCidrBuilder";constructor(t){super(t,"string","PgCidr")}build(t){return new $0(t,this.config)}},$0=class extends G{static[k]="PgCidr";getSQLType(){return"cidr"}};function J6(e){return new L0(e??"")}var R0=class extends T{static[k]="PgCustomColumnBuilder";constructor(t,n,o){super(t,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=o}build(t){return new N0(t,this.config)}},N0=class extends G{static[k]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(t,n){super(t,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(t){return typeof this.mapFrom=="function"?this.mapFrom(t):t}mapToDriverValue(t){return typeof this.mapTo=="function"?this.mapTo(t):t}};function W6(e){return(t,n)=>{let{name:o,config:a}=be(t,n);return new R0(o,a,e)}}var to=class extends T{static[k]="PgDateColumnBaseBuilder";defaultNow(){return this.default(Ts`now()`)}};var M0=class extends to{static[k]="PgDateBuilder";constructor(t){super(t,"date","PgDate")}build(t){return new j0(t,this.config)}},j0=class extends G{static[k]="PgDate";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?new Date(t):t}mapToDriverValue(t){return t.toISOString()}},G0=class extends to{static[k]="PgDateStringBuilder";constructor(t){super(t,"string","PgDateString")}build(t){return new H0(t,this.config)}},H0=class extends G{static[k]="PgDateString";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?t:t.toISOString().slice(0,-14)}};function Z6(e,t){let{name:n,config:o}=be(e,t);return o?.mode==="date"?new M0(n):new G0(n)}var P0=class extends T{static[k]="PgDoublePrecisionBuilder";constructor(t){super(t,"number","PgDoublePrecision")}build(t){return new U0(t,this.config)}},U0=class extends G{static[k]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(t){return typeof t=="string"?Number.parseFloat(t):t}};function V6(e){return new P0(e??"")}var T0=class extends T{static[k]="PgInetBuilder";constructor(t){super(t,"string","PgInet")}build(t){return new q0(t,this.config)}},q0=class extends G{static[k]="PgInet";getSQLType(){return"inet"}};function X6(e){return new T0(e??"")}var O0=class extends jo{static[k]="PgIntegerBuilder";constructor(t){super(t,"number","PgInteger")}build(t){return new z0(t,this.config)}},z0=class extends G{static[k]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(t){return typeof t=="string"?Number.parseInt(t):t}};function e3(e){return new O0(e??"")}var Y0=class extends T{static[k]="PgIntervalBuilder";constructor(t,n){super(t,"string","PgInterval"),this.config.intervalConfig=n}build(t){return new K0(t,this.config)}},K0=class extends G{static[k]="PgInterval";fields=this.config.intervalConfig.fields;precision=this.config.intervalConfig.precision;getSQLType(){let t=this.fields?` ${this.fields}`:"",n=this.precision?`(${this.precision})`:"";return`interval${t}${n}`}};function t3(e,t={}){let{name:n,config:o}=be(e,t);return new Y0(n,o)}var J0=class extends T{static[k]="PgJsonBuilder";constructor(t){super(t,"json","PgJson")}build(t){return new W0(t,this.config)}},W0=class extends G{static[k]="PgJson";constructor(t,n){super(t,n)}getSQLType(){return"json"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function n3(e){return new J0(e??"")}var Z0=class extends T{static[k]="PgJsonbBuilder";constructor(t){super(t,"json","PgJsonb")}build(t){return new V0(t,this.config)}},V0=class extends G{static[k]="PgJsonb";constructor(t,n){super(t,n)}getSQLType(){return"jsonb"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function Zm(e){return new Z0(e??"")}var X0=class extends T{static[k]="PgLineBuilder";constructor(t){super(t,"array","PgLine")}build(t){return new eI(t,this.config)}},eI=class extends G{static[k]="PgLine";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o),Number.parseFloat(a)]}mapToDriverValue(t){return`{${t[0]},${t[1]},${t[2]}}`}},tI=class extends T{static[k]="PgLineABCBuilder";constructor(t){super(t,"json","PgLineABC")}build(t){return new nI(t,this.config)}},nI=class extends G{static[k]="PgLineABC";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return{a:Number.parseFloat(n),b:Number.parseFloat(o),c:Number.parseFloat(a)}}mapToDriverValue(t){return`{${t.a},${t.b},${t.c}}`}};function a3(e,t){let{name:n,config:o}=be(e,t);return!o?.mode||o.mode==="tuple"?new X0(n):new tI(n)}var aI=class extends T{static[k]="PgMacaddrBuilder";constructor(t){super(t,"string","PgMacaddr")}build(t){return new oI(t,this.config)}},oI=class extends G{static[k]="PgMacaddr";getSQLType(){return"macaddr"}};function o3(e){return new aI(e??"")}var rI=class extends T{static[k]="PgMacaddr8Builder";constructor(t){super(t,"string","PgMacaddr8")}build(t){return new AI(t,this.config)}},AI=class extends G{static[k]="PgMacaddr8";getSQLType(){return"macaddr8"}};function r3(e){return new rI(e??"")}var iI=class extends T{static[k]="PgNumericBuilder";constructor(t,n,o){super(t,"string","PgNumeric"),this.config.precision=n,this.config.scale=o}build(t){return new sI(t,this.config)}},sI=class extends G{static[k]="PgNumeric";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="string"?t:String(t)}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},cI=class extends T{static[k]="PgNumericNumberBuilder";constructor(t,n,o){super(t,"number","PgNumericNumber"),this.config.precision=n,this.config.scale=o}build(t){return new uI(t,this.config)}},uI=class extends G{static[k]="PgNumericNumber";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},dI=class extends T{static[k]="PgNumericBigIntBuilder";constructor(t,n,o){super(t,"bigint","PgNumericBigInt"),this.config.precision=n,this.config.scale=o}build(t){return new lI(t,this.config)}},lI=class extends G{static[k]="PgNumericBigInt";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}};function A3(e,t){let{name:n,config:o}=be(e,t),a=o?.mode;return a==="number"?new cI(n,o?.precision,o?.scale):a==="bigint"?new dI(n,o?.precision,o?.scale):new iI(n,o?.precision,o?.scale)}var pI=class extends T{static[k]="PgPointTupleBuilder";constructor(t){super(t,"array","PgPointTuple")}build(t){return new gI(t,this.config)}},gI=class extends G{static[k]="PgPointTuple";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o)]}return[t.x,t.y]}mapToDriverValue(t){return`(${t[0]},${t[1]})`}},mI=class extends T{static[k]="PgPointObjectBuilder";constructor(t){super(t,"json","PgPointObject")}build(t){return new fI(t,this.config)}},fI=class extends G{static[k]="PgPointObject";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return{x:Number.parseFloat(n),y:Number.parseFloat(o)}}return t}mapToDriverValue(t){return`(${t.x},${t.y})`}};function i3(e,t){let{name:n,config:o}=be(e,t);return!o?.mode||o.mode==="tuple"?new pI(n):new mI(n)}function qz(e){let t=[];for(let n=0;n<e.length;n+=2)t.push(Number.parseInt(e.slice(n,n+2),16));return new Uint8Array(t)}function s3(e,t){let n=new ArrayBuffer(8),o=new DataView(n);for(let a=0;a<8;a++)o.setUint8(a,e[t+a]);return o.getFloat64(0,!0)}function bI(e){let t=qz(e),n=0,o=t[n];n+=1;let a=new DataView(t.buffer),r=a.getUint32(n,o===1);n+=4;let A;if(r&536870912&&(A=a.getUint32(n,o===1),n+=4),(r&65535)===1){let i=s3(t,n);n+=8;let s=s3(t,n);return n+=8,[i,s]}throw new Error("Unsupported geometry type")}var hI=class extends T{static[k]="PgGeometryBuilder";constructor(t){super(t,"array","PgGeometry")}build(t){return new BI(t,this.config)}},BI=class extends G{static[k]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){return bI(t)}mapToDriverValue(t){return`point(${t[0]} ${t[1]})`}},CI=class extends T{static[k]="PgGeometryObjectBuilder";constructor(t){super(t,"json","PgGeometryObject")}build(t){return new yI(t,this.config)}},yI=class extends G{static[k]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){let n=bI(t);return{x:n[0],y:n[1]}}mapToDriverValue(t){return`point(${t.x} ${t.y})`}};function c3(e,t){let{name:n,config:o}=be(e,t);return!o?.mode||o.mode==="tuple"?new hI(n):new CI(n)}var wI=class extends T{static[k]="PgRealBuilder";constructor(t,n){super(t,"number","PgReal"),this.config.length=n}build(t){return new EI(t,this.config)}},EI=class extends G{static[k]="PgReal";constructor(t,n){super(t,n)}getSQLType(){return"real"}mapFromDriverValue=t=>typeof t=="string"?Number.parseFloat(t):t};function u3(e){return new wI(e??"")}var kI=class extends T{static[k]="PgSerialBuilder";constructor(t){super(t,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new QI(t,this.config)}},QI=class extends G{static[k]="PgSerial";getSQLType(){return"serial"}};function d3(e){return new kI(e??"")}var II=class extends jo{static[k]="PgSmallIntBuilder";constructor(t){super(t,"number","PgSmallInt")}build(t){return new _I(t,this.config)}},_I=class extends G{static[k]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=t=>typeof t=="string"?Number(t):t};function l3(e){return new II(e??"")}var vI=class extends T{static[k]="PgSmallSerialBuilder";constructor(t){super(t,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new xI(t,this.config)}},xI=class extends G{static[k]="PgSmallSerial";getSQLType(){return"smallserial"}};function p3(e){return new vI(e??"")}var DI=class extends T{static[k]="PgTextBuilder";constructor(t,n){super(t,"string","PgText"),this.config.enumValues=n.enum}build(t){return new FI(t,this.config)}},FI=class extends G{static[k]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}};function Sa(e,t={}){let{name:n,config:o}=be(e,t);return new DI(n,o)}var SI=class extends to{constructor(t,n,o){super(t,"string","PgTime"),this.withTimezone=n,this.precision=o,this.config.withTimezone=n,this.config.precision=o}static[k]="PgTimeBuilder";build(t){return new LI(t,this.config)}},LI=class extends G{static[k]="PgTime";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`time${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}};function g3(e,t={}){let{name:n,config:o}=be(e,t);return new SI(n,o.withTimezone??!1,o.precision)}var $I=class extends to{static[k]="PgTimestampBuilder";constructor(t,n,o){super(t,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=o}build(t){return new RI(t,this.config)}},RI=class extends G{static[k]="PgTimestamp";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":` (${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){return typeof t=="string"?new Date(this.withTimezone?t:t+"+0000"):t}mapToDriverValue=t=>t.toISOString()},NI=class extends to{static[k]="PgTimestampStringBuilder";constructor(t,n,o){super(t,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=o}build(t){return new MI(t,this.config)}},MI=class extends G{static[k]="PgTimestampString";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){if(typeof t=="string")return t;let n=t.toISOString().slice(0,-1).replace("T"," ");if(this.withTimezone){let o=t.getTimezoneOffset(),a=o<=0?"+":"-";return`${n}${a}${Math.floor(Math.abs(o)/60).toString().padStart(2,"0")}`}return n}};function Vm(e,t={}){let{name:n,config:o}=be(e,t);return o?.mode==="string"?new NI(n,o.withTimezone??!1,o.precision):new $I(n,o?.withTimezone??!1,o?.precision)}var jI=class extends T{static[k]="PgUUIDBuilder";constructor(t){super(t,"string","PgUUID")}defaultRandom(){return this.default(Ts`gen_random_uuid()`)}build(t){return new GI(t,this.config)}},GI=class extends G{static[k]="PgUUID";getSQLType(){return"uuid"}};function m3(e){return new jI(e??"")}var HI=class extends T{static[k]="PgVarcharBuilder";constructor(t,n){super(t,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new PI(t,this.config)}},PI=class extends G{static[k]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}};function f3(e,t={}){let{name:n,config:o}=be(e,t);return new HI(n,o)}var UI=class extends T{static[k]="PgBinaryVectorBuilder";constructor(t,n){super(t,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(t){return new TI(t,this.config)}},TI=class extends G{static[k]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}};function b3(e,t){let{name:n,config:o}=be(e,t);return new UI(n,o)}var qI=class extends T{static[k]="PgHalfVectorBuilder";constructor(t,n){super(t,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(t){return new OI(t,this.config)}},OI=class extends G{static[k]="PgHalfVector";dimensions=this.config.dimensions;getSQLType(){return`halfvec(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function h3(e,t){let{name:n,config:o}=be(e,t);return new qI(n,o)}var zI=class extends T{static[k]="PgSparseVectorBuilder";constructor(t,n){super(t,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(t){return new YI(t,this.config)}},YI=class extends G{static[k]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}};function B3(e,t){let{name:n,config:o}=be(e,t);return new zI(n,o)}var KI=class extends T{static[k]="PgVectorBuilder";constructor(t,n){super(t,"array","PgVector"),this.config.dimensions=n.dimensions}build(t){return new JI(t,this.config)}},JI=class extends G{static[k]="PgVector";dimensions=this.config.dimensions;getSQLType(){return`vector(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function C3(e,t){let{name:n,config:o}=be(e,t);return new KI(n,o)}function y3(){return{bigint:O6,bigserial:z6,boolean:Y6,char:K6,cidr:J6,customType:W6,date:Z6,doublePrecision:V6,inet:X6,integer:e3,interval:t3,json:n3,jsonb:Zm,line:a3,macaddr:o3,macaddr8:r3,numeric:A3,point:i3,geometry:c3,real:u3,serial:d3,smallint:l3,smallserial:p3,text:Sa,time:g3,timestamp:Vm,uuid:m3,varchar:f3,bit:b3,halfvec:h3,sparsevec:B3,vector:C3}}var WI=Symbol.for("drizzle:PgInlineForeignKeys"),w3=Symbol.for("drizzle:EnableRLS"),Xu=class extends lt{static[k]="PgTable";static Symbol=Object.assign({},lt.Symbol,{InlineForeignKeys:WI,EnableRLS:w3});[WI]=[];[w3]=!1;[lt.Symbol.ExtraConfigBuilder]=void 0;[lt.Symbol.ExtraConfigColumns]={}};function Oz(e,t,n,o,a=e){let r=new Xu(e,o,a),A=typeof t=="function"?t(y3()):t,i=Object.fromEntries(Object.entries(A).map(([u,d])=>{let l=d;l.setName(u);let p=l.build(r);return r[WI].push(...l.buildForeignKeys(p,r)),[u,p]})),s=Object.fromEntries(Object.entries(A).map(([u,d])=>{let l=d;l.setName(u);let p=l.buildExtraConfigColumn(r);return[u,p]})),c=Object.assign(r,i);return c[lt.Symbol.Columns]=i,c[lt.Symbol.ExtraConfigColumns]=s,n&&(c[Xu.Symbol.ExtraConfigBuilder]=n),Object.assign(c,{enableRLS:()=>(c[Xu.Symbol.EnableRLS]=!0,c)})}var E3=(e,t,n)=>Oz(e,t,n,void 0);var Xm=class{constructor(t,n){this.unique=t,this.name=n}static[k]="PgIndexBuilderOn";on(...t){return new ed(t.map(n=>{if(kt(n,pt))return n;n=n;let o=new Hs(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=JSON.parse(JSON.stringify(n.defaultConfig)),o}),this.unique,!1,this.name)}onOnly(...t){return new ed(t.map(n=>{if(kt(n,pt))return n;n=n;let o=new Hs(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=n.defaultConfig,o}),this.unique,!0,this.name)}using(t,...n){return new ed(n.map(o=>{if(kt(o,pt))return o;o=o;let a=new Hs(o.name,!!o.keyAsName,o.columnType,o.indexConfig);return o.indexConfig=JSON.parse(JSON.stringify(o.defaultConfig)),a}),this.unique,!0,this.name,t)}},ed=class{static[k]="PgIndexBuilder";config;constructor(t,n,o,a,r="btree"){this.config={name:a,columns:t,unique:n,only:o,method:r}}concurrently(){return this.config.concurrently=!0,this}with(t){return this.config.with=t,this}where(t){return this.config.where=t,this}build(t){return new ZI(this.config,t)}},ZI=class{static[k]="PgIndex";config;constructor(t,n){this.config={...t,table:n}}};function k3(e){return new Xm(!1,e)}function Q3(e){return new Xm(!0,e)}var I3=e=>Vm(e,{withTimezone:!0}),_3=f.enum(["channel","dm","group","local_conversation","thread","web_session"]),Hpe=E3("junior_destinations",{id:Sa("id").primaryKey(),provider:Sa("provider").notNull(),providerTenantId:Sa("provider_tenant_id").notNull().default(""),providerDestinationId:Sa("provider_destination_id").notNull(),kind:Sa("kind").$type().notNull(),parentDestinationId:Sa("parent_destination_id"),displayName:Sa("display_name"),visibility:Sa("visibility").$type().notNull().default("unknown"),metadata:Zm("metadata_json"),createdAt:I3("created_at").notNull(),updatedAt:I3("updated_at").notNull()},e=>[Q3("junior_destinations_provider_destination_uidx").on(e.provider,e.providerTenantId,e.providerDestinationId),k3("junior_destinations_provider_kind_idx").on(e.provider,e.kind)]);var x3=f.object({active:f.number(),conversations:f.number(),date:f.string(),durationMs:f.number(),failed:f.number(),tokens:f.number().optional()}).strict();var zz=f.enum(["active","completed","failed"]),Yz=f.enum(["api","internal","scheduler","slack"]),Kz=_6,XI=f.object({email:f.string().optional(),fullName:f.string().optional(),slackUserId:f.string().optional(),slackUserName:f.string().optional()}).strict(),ef=f.object({displayTitle:f.string(),cumulativeDurationMs:f.number(),cumulativeUsage:Kz.optional(),conversationId:f.string(),status:zz,startedAt:f.string(),lastSeenAt:f.string(),lastProgressAt:f.string(),surface:Yz,actorIdentity:XI.optional(),archivedAt:f.string().optional(),channel:f.string().optional(),channelName:f.string().optional(),channelNameRedacted:f.boolean().optional(),locationId:f.string().optional(),sentryTraceUrl:f.string().optional(),traceId:f.string().optional()}).strict(),Jz=f.enum(["text","thinking","tool_call","tool_result","unknown"]),Wz=f.object({bytes:f.number().optional(),chars:f.number().optional(),id:f.string().optional(),input:f.unknown().optional(),inputKeys:f.array(f.string()).optional(),inputSizeBytes:f.number().optional(),inputSizeChars:f.number().optional(),inputType:f.string().optional(),name:f.string().optional(),output:f.unknown().optional(),outputKeys:f.array(f.string()).optional(),outputSizeBytes:f.number().optional(),outputSizeChars:f.number().optional(),outputType:f.string().optional(),redacted:f.boolean().optional(),sourceType:f.string().optional(),text:f.string().optional(),type:Jz}).strict(),Zz=f.enum(["assistant","system","tool","toolResult","unknown","user"]),VI=f.object({outcome:f.enum(["error","aborted"]).optional(),parts:f.array(Wz),role:Zz,timestamp:f.number().optional()}).strict(),e_=f.enum(["aborted","completed","error","running","success"]),D3=f.object({type:f.literal("subagent"),createdAt:f.string(),endedAt:f.string().optional(),id:f.string(),modelId:f.string().optional(),outcome:f.enum(["success","error","aborted"]).optional(),parentToolCallId:f.string().optional(),reasoningLevel:f.string().optional(),status:e_,subagentKind:f.string(),transcriptAvailable:f.boolean().optional()}).strict(),Vz=f.object({type:f.literal("tool_execution"),args:f.unknown().optional(),createdAt:f.string(),id:f.string(),inputKeys:f.array(f.string()).optional(),inputSizeBytes:f.number().optional(),inputSizeChars:f.number().optional(),inputType:f.string().optional(),redacted:f.boolean().optional(),status:e_,subagents:f.array(D3),toolCallId:f.string(),toolName:f.string()}).strict(),Xz=f.discriminatedUnion("type",[Vz,D3]),eY=f.discriminatedUnion("type",[f.object({type:f.literal("context_compacted"),createdAt:f.string(),modelId:f.string().optional(),summary:f.string().optional(),transcriptIndex:f.number().int().nonnegative()}).strict(),f.object({type:f.literal("model_handoff"),createdAt:f.string(),fromModelId:f.string().optional(),message:f.string().optional(),toModelId:f.string(),transcriptIndex:f.number().int().nonnegative()}).strict()]),t_=ef.extend({activity:f.array(Xz).optional(),modelId:f.string().optional(),reasoningLevel:f.string().optional(),contextEvents:f.array(eY).optional(),transcriptAvailable:f.boolean(),transcriptMetadata:f.array(VI).optional(),transcriptMessageCount:f.number().optional(),transcriptRedacted:f.boolean().optional(),transcriptRedactionReason:f.literal("non_public_conversation").optional(),transcriptExpired:f.boolean().optional(),transcriptExpiredAt:f.string().optional(),transcript:f.array(VI),generatedAt:f.string(),sentryConversationUrl:f.string().optional()}).strict(),n_=f.object({type:f.literal("subagent"),createdAt:f.string(),endedAt:f.string().optional(),id:f.string(),modelId:f.string().optional(),outcome:f.enum(["success","error","aborted"]).optional(),parentToolCallId:f.string().optional(),reasoningLevel:f.string().optional(),status:e_,subagentConversationId:f.string().optional(),subagentKind:f.string(),subagentSentryConversationUrl:f.string().optional(),transcript:f.array(VI),transcriptAvailable:f.boolean(),transcriptMessageCount:f.number().optional(),transcriptRedacted:f.boolean().optional(),transcriptRedactionReason:f.literal("non_public_conversation").optional(),transcriptExpired:f.boolean().optional(),transcriptExpiredAt:f.string().optional(),unavailableReason:f.enum(["missing_transcript_range","missing_transcript_ref","not_found"]).optional()}).strict(),a_=f.object({conversations:f.array(ef),source:f.literal("conversation_index"),generatedAt:f.string()}).strict(),qs=f.object({active:f.number(),conversations:f.number(),durationMs:f.number(),failed:f.number(),label:f.string(),costUsd:f.number().optional(),tokens:f.number().optional()}).strict(),o_=f.object({active:f.number(),conversations:f.number(),durationMs:f.number(),failed:f.number(),generatedAt:f.string(),locations:f.array(qs),actors:f.array(qs),source:f.literal("conversation_index"),costUsd:f.number().optional(),tokens:f.number().optional(),windowEnd:f.string(),windowStart:f.string()}).strict(),tY=ef.omit({cumulativeUsage:!0,sentryTraceUrl:!0,traceId:!0}),v3=qs.omit({costUsd:!0}),nY=f.object({active:f.number(),conversations:f.number(),date:f.string(),durationMs:f.number(),failed:f.number(),tokens:f.number().optional()}).strict(),aY=f.object({activePeople:f.number(),conversations:f.number(),date:f.string()}).strict(),F3=f.object({active:f.number(),activeDays:f.number(),conversations:f.number(),durationMs:f.number(),failed:f.number(),tokens:f.number().optional()}).strict(),S3=XI.extend({email:f.string().min(1)}).strict(),oY=F3.extend({firstSeenAt:f.string(),lastSeenAt:f.string(),actor:S3}).strict(),r_=f.object({activityDays:f.array(aY),generatedAt:f.string(),people:f.array(oY),source:f.literal("conversation_index"),windowEnd:f.string(),windowStart:f.string()}).strict(),A_=f.object({activityDays:f.array(nY),generatedAt:f.string(),locations:f.array(v3),recentConversations:f.array(tY),actor:S3,source:f.literal("conversation_index"),surfaces:f.array(v3),totals:F3,windowEnd:f.string(),windowStart:f.string()}).strict(),L3=qs.extend({id:f.string(),firstSeenAt:f.string(),kind:_3,lastSeenAt:f.string(),provider:f.string(),providerDestinationId:f.string(),visibility:f.literal("public")}).strict(),rY=qs.extend({actor:XI}).strict(),$3=f.object({date:f.string(),privateConversations:f.number(),publicConversations:f.number()}).strict(),i_=f.object({activityDays:f.array($3),generatedAt:f.string(),locations:f.array(L3),privateActivity:qs,source:f.literal("conversation_index"),windowEnd:f.string(),windowStart:f.string()}).strict(),s_=L3.extend({activityDays:f.array(x3),actors:f.array(rY),generatedAt:f.string(),recentConversations:f.array(ef),source:f.literal("conversation_index"),windowEnd:f.string(),windowStart:f.string()}).strict(),R3=f.object({conversationId:f.string().min(1)}).strict(),AY=f.object({actorEmail:f.string().trim().email().transform(e=>e.toLowerCase()).optional()}).strict(),iY=R3.extend({subagentId:f.string().min(1)}).strict(),sY=f.object({email:f.string().trim().min(1)}).strict(),cY=f.object({locationId:f.string().min(1)}).strict();var uY=f.object({status:f.literal("ok"),service:f.string(),timestamp:f.string()}).strict(),N3=f.object({name:f.string()}).strict(),c_=f.array(N3),u_=f.object({name:f.string(),pluginProvider:f.string().optional()}).strict(),d_=f.array(u_),M3=f.object({dir:f.string(),hasMigrationsDir:f.boolean(),hasSkillsDir:f.boolean(),packageName:f.string()}).strict(),j3=f.object({packageNames:f.array(f.string()),packages:f.array(M3),manifestRoots:f.array(f.string()),skillRoots:f.array(f.string()),tracingIncludes:f.array(f.string())}).strict(),dY=f.object({cwd:f.string(),homeDir:f.string(),descriptionText:f.string().optional(),providers:f.array(f.string()),skills:f.array(u_),packagedContent:j3}).strict(),G3=f.enum(["danger","good","neutral","warning"]),lY=f.object({label:f.string(),tone:G3.optional(),value:f.string()}).strict(),pY=f.object({key:f.string(),label:f.string()}).strict(),gY=f.object({id:f.string(),tone:G3.optional(),values:f.record(f.string(),f.string())}).strict(),mY=f.object({fields:f.array(pY).optional(),emptyText:f.string().optional(),records:f.array(gY).optional(),title:f.string()}).strict(),H3=f.object({generatedAt:f.string().optional(),metrics:f.array(lY).optional(),recordSets:f.array(mY).optional(),title:f.string().optional(),pluginName:f.string()}).strict(),l_=f.object({generatedAt:f.string(),reports:f.array(H3),source:f.literal("plugins")}).strict();var P3=f.object({user:f.object({email:f.string().trim().email(),emailVerified:f.boolean().optional(),name:f.string().nullable().optional()}).strict()}).strict(),U3=f.object({allowedEmailCount:f.number(),allowedGoogleDomainCount:f.number(),authRequired:f.boolean(),authPath:f.string(),basePath:f.string(),sentryConversationLinks:f.boolean(),timeZone:f.string()}).strict();var Os=new Ub,td=class extends Error{status;constructor(t,n){super(`${t} returned ${n}`),this.status=n}};function T3(){if(typeof window>"u")return;let e=window.__JUNIOR_DASHBOARD_BASE_PATH__??"/",t=e==="/"?"/auth/login":`${e}/auth/login`;if(window.location.pathname!==t){let n=`${window.location.pathname}${window.location.search||""}`,o=new URLSearchParams;n!=="/"&&o.set("next",n);let a=o.toString();window.location.assign(a?`${t}?${a}`:t)}}async function fY(e,t){let n=await fetch(e,{body:JSON.stringify(t),credentials:"same-origin",headers:{"content-type":"application/json"},method:"PATCH"});if(n.status===401&&T3(),!n.ok)throw new td(e,n.status)}async function Jn(e,t){let n=await fetch(t,{credentials:"same-origin"});if(n.status===401)throw T3(),new td(t,n.status);if(!n.ok)throw new td(t,n.status);return e.parse(await n.json())}function p_(){return Rt({queryKey:["dashboard","core"],queryFn:async()=>{let[e,t]=await Promise.all([Jn(P3,"/api/me"),Jn(U3,"/api/config")]);return{config:t,me:e}},retry:!1})}function q3(e){let t=new URLSearchParams;e&&t.set("actorEmail",e);let n=t.toString();return Rt({queryKey:["dashboard","conversations",e??"all"],queryFn:()=>Jn(a_,`/api/conversations${n?`?${n}`:""}`),retry:!1})}function O3(){return Rt({queryKey:["dashboard","people"],queryFn:()=>Jn(r_,"/api/people"),retry:!1})}function z3(e){return Rt({enabled:!!e,queryKey:["dashboard","people",e],queryFn:async()=>Jn(A_,`/api/people/${encodeURIComponent(e)}`),retry:!1})}function Y3(){return Rt({queryKey:["dashboard","locations"],queryFn:()=>Jn(i_,"/api/locations"),retry:!1})}function K3(e){return Rt({enabled:!!e,queryKey:["dashboard","locations",e],queryFn:async()=>Jn(s_,`/api/locations/${encodeURIComponent(e)}`),retry:!1})}function J3(){let e=p_(),t=Rt({queryKey:["dashboard","conversation-stats"],queryFn:()=>Jn(o_,"/api/conversations/stats"),retry:!1}),n=Rt({queryKey:["dashboard","plugins"],queryFn:()=>Jn(c_,"/api/plugins"),retry:!1}),o=Rt({queryKey:["dashboard","skills"],queryFn:()=>Jn(d_,"/api/skills"),retry:!1}),a=Rt({queryKey:["dashboard","plugin-reports"],queryFn:()=>Jn(l_,"/api/plugin-reports"),retry:!1}),r=e.data&&n.data&&o.data;return{...e,data:r?{...e.data,conversationStatsError:!!t.error,...t.data?{conversationStats:t.data}:{},conversationStatsLoading:t.isPending,pluginReportsError:!!a.error,...a.data?{pluginReports:a.data}:{},pluginReportsLoading:a.isPending,plugins:n.data,skills:o.data}:void 0,error:e.error??n.error??o.error,isPending:e.isPending||n.isPending||o.isPending}}function W3(e){return Xb({mutationFn:t=>fY(`/api/conversations/${encodeURIComponent(e)}/archive`,t),onSettled:async()=>{await Promise.all([Os.invalidateQueries({queryKey:["dashboard","conversations"]}),Os.invalidateQueries({queryKey:["dashboard","locations"]}),Os.invalidateQueries({queryKey:["dashboard","people"]}),Os.invalidateQueries({queryKey:["conversation",e]})])}})}function Z3(e){return Rt({enabled:!!e,queryKey:["conversation",e],queryFn:async()=>bY(e),retry:!1})}function bY(e){return Jn(t_,`/api/conversations/${encodeURIComponent(e)}`)}function V3(e){return Rt({enabled:!!e,queryKey:["conversation-subagent",e?.conversationId,e?.subagentId],queryFn:async()=>{let t=e;return await Jn(n_,`/api/conversations/${encodeURIComponent(t.conversationId)}/subagents/${encodeURIComponent(t.subagentId)}`)},retry:!1})}var g_=E(x(),1);function tf(){return(0,g_.jsx)("div",{className:"relative grid size-10 shrink-0 select-none place-items-center overflow-visible",children:(0,g_.jsx)("img",{alt:"",className:"relative size-11 max-w-none -translate-y-0.5 object-contain opacity-90 drop-shadow-[0_0_7px_rgba(255,255,255,0.16)]",draggable:!1,src:"/_junior/dashboard/avatar.png"})})}var X3=["relative","overflow-hidden","bg-white/15","before:absolute","before:inset-0","before:content-['']","before:bg-[linear-gradient(90deg,#ff4d6d,#ffb703,#56f39a,#4cc9f0,#9b5de5,#ff4d6d)]","before:bg-[length:200%_100%]","before:animate-[junior-rainbow-flow_1.2s_linear_infinite]","motion-reduce:before:animate-none"].join(" ");function R(...e){return e.filter(Boolean).join(" ")}var nn="mx-auto w-full min-w-0 max-w-screen-xl";var $r=E(x(),1);function Qt(e){return(0,$r.jsx)("div",{className:R(nn,"grid min-h-[calc(100vh-5rem)] place-items-center px-4 py-8 md:px-8"),children:(0,$r.jsxs)("section",{className:"grid w-full max-w-lg grid-cols-[auto_minmax(0,1fr)] items-center gap-3 rounded-lg border border-white/15 bg-[#0b0b0b] p-4",children:[(0,$r.jsx)(tf,{}),(0,$r.jsxs)("div",{children:[(0,$r.jsx)("div",{className:"font-bold",children:e.label}),(0,$r.jsx)("div",{"aria-label":e.label,className:`${X3} mt-3 h-1.5 w-full`,role:"progressbar"})]})]})})}var of=E(ae(),1);var nf=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();var eL=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var tL=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());var m_=e=>{let t=tL(e);return t.charAt(0).toUpperCase()+t.slice(1)};var nd=E(ae(),1);var af={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var nL=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var zs=E(ae(),1);var hY=(0,zs.createContext)({});var aL=()=>(0,zs.useContext)(hY);var oL=(0,nd.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:o,className:a="",children:r,iconNode:A,...i},s)=>{let{size:c=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:l="currentColor",className:p=""}=aL()??{},b=o??d?Number(n??u)*24/Number(t??c):n??u;return(0,nd.createElement)("svg",{ref:s,...af,width:t??c??af.width,height:t??c??af.height,stroke:e??l,strokeWidth:b,className:nf("lucide",p,a),...!r&&!nL(i)&&{"aria-hidden":"true"},...i},[...A.map(([B,C])=>(0,nd.createElement)(B,C)),...Array.isArray(r)?r:[r]])});var q=(e,t)=>{let n=(0,of.forwardRef)(({className:o,...a},r)=>(0,of.createElement)(oL,{ref:r,iconNode:t,className:nf(`lucide-${eL(m_(e))}`,`lucide-${e}`,o),...a}));return n.displayName=m_(e),n};var BY=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],$A=q("activity",BY);var CY=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],ad=q("arrow-down-to-line",CY);var yY=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],od=q("arrow-left",yY);var wY=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],rd=q("arrow-right",wY);var EY=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],RA=q("bot",EY);var kY=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],Ad=q("boxes",kY);var QY=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],id=q("brain",QY);var IY=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],sd=q("check",IY);var _Y=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],cd=q("chevron-down",_Y);var vY=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Rr=q("circle-alert",vY);var xY=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],Wn=q("clock-3",xY);var DY=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],Go=q("coins",DY);var FY=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ud=q("copy",FY);var SY=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],dd=q("dollar-sign",SY);var LY=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ld=q("external-link",LY);var $Y=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],pd=q("hash",$Y);var RY=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],NA=q("lock-keyhole",RY);var NY=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],gd=q("log-out",NY);var MY=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],md=q("map-pin",MY);var jY=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],fd=q("map-pinned",jY);var GY=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],bd=q("message-square-text",GY);var HY=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Zn=q("message-square",HY);var PY=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],hd=q("minimize-2",PY);var UY=[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]],Bd=q("radio-tower",UY);var TY=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Cd=q("radio",TY);var qY=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ho=q("search",qY);var OY=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],yd=q("send",OY);var zY=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Nr=q("sparkles",zY);var YY=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],no=q("triangle-alert",YY);var KY=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],ao=q("user-round",KY);var JY=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],MA=q("users",JY);var WY=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],wd=q("x",WY);var XA=E(ae(),1);var f_=Object.defineProperty,ZY=Object.getOwnPropertyDescriptor,VY=Object.getOwnPropertyNames,XY=Object.prototype.hasOwnProperty,AL=(e,t)=>{let n={};for(var o in e)f_(n,o,{get:e[o],enumerable:!0});return t||f_(n,Symbol.toStringTag,{value:"Module"}),n},rL=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=VY(t),r=0,A=a.length,i;r<A;r++)i=a[r],!XY.call(e,i)&&i!==n&&f_(e,i,{get:(s=>t[s]).bind(null,i),enumerable:!(o=ZY(t,i))||o.enumerable});return e},iL=(e,t,n)=>(rL(e,t,"default"),n&&rL(n,t,"default"));var C_={};_(C_,{createOnigurumaEngine:()=>fK,getDefaultWasmLoader:()=>mK,loadWasm:()=>cL,setDefaultWasmLoader:()=>gK});var B_=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function eK(){return 2147483648}function tK(){return typeof performance<"u"?performance.now():Date.now()}var nK=(e,t)=>e+(t-e%t)%t;async function aK(e){let t,n,o={};function a(p){n=p,o.HEAPU8=new Uint8Array(p),o.HEAPU32=new Uint32Array(p)}function r(p,b,B){o.HEAPU8.copyWithin(p,b,b+B)}function A(p){try{return t.grow(p-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function i(p){let b=o.HEAPU8.length;p=p>>>0;let B=eK();if(p>B)return!1;for(let C=1;C<=4;C*=2){let m=b*(1+.2/C);m=Math.min(m,p+100663296);let g=Math.min(B,nK(Math.max(p,m),65536));if(A(g))return!0}return!1}let s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(p,b,B=1024){let C=b+B,m=b;for(;p[m]&&!(m>=C);)++m;if(m-b>16&&p.buffer&&s)return s.decode(p.subarray(b,m));let g="";for(;b<m;){let h=p[b++];if(!(h&128)){g+=String.fromCharCode(h);continue}let y=p[b++]&63;if((h&224)===192){g+=String.fromCharCode((h&31)<<6|y);continue}let v=p[b++]&63;if((h&240)===224?h=(h&15)<<12|y<<6|v:h=(h&7)<<18|y<<12|v<<6|p[b++]&63,h<65536)g+=String.fromCharCode(h);else{let P=h-65536;g+=String.fromCharCode(55296|P>>10,56320|P&1023)}}return g}function u(p,b){return p?c(o.HEAPU8,p,b):""}let d={emscripten_get_now:tK,emscripten_memcpy_big:r,emscripten_resize_heap:i,fd_write:()=>0};async function l(){let b=await e({env:d,wasi_snapshot_preview1:d});t=b.memory,a(t.buffer),Object.assign(o,b),o.UTF8ToString=u}return await l(),o}var oK=Object.defineProperty,rK=(e,t,n)=>t in e?oK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dt=(e,t,n)=>rK(e,typeof t!="symbol"?t+"":t,n),Gt=null;function AK(e){throw new B_(e.UTF8ToString(e.getLastOnigError()))}var Af=class e{constructor(t){Dt(this,"utf16Length"),Dt(this,"utf8Length"),Dt(this,"utf16Value"),Dt(this,"utf8Value"),Dt(this,"utf16OffsetToUtf8"),Dt(this,"utf8OffsetToUtf16");let n=t.length,o=e._utf8ByteLength(t),a=o!==n,r=a?new Uint32Array(n+1):null;a&&(r[n]=o);let A=a?new Uint32Array(o+1):null;a&&(A[o]=n);let i=new Uint8Array(o),s=0;for(let c=0;c<n;c++){let u=t.charCodeAt(c),d=u,l=!1;if(u>=55296&&u<=56319&&c+1<n){let p=t.charCodeAt(c+1);p>=56320&&p<=57343&&(d=(u-55296<<10)+65536|p-56320,l=!0)}a&&(r[c]=s,l&&(r[c+1]=s),d<=127?A[s+0]=c:d<=2047?(A[s+0]=c,A[s+1]=c):d<=65535?(A[s+0]=c,A[s+1]=c,A[s+2]=c):(A[s+0]=c,A[s+1]=c,A[s+2]=c,A[s+3]=c)),d<=127?i[s++]=d:d<=2047?(i[s++]=192|(d&1984)>>>6,i[s++]=128|(d&63)>>>0):d<=65535?(i[s++]=224|(d&61440)>>>12,i[s++]=128|(d&4032)>>>6,i[s++]=128|(d&63)>>>0):(i[s++]=240|(d&1835008)>>>18,i[s++]=128|(d&258048)>>>12,i[s++]=128|(d&4032)>>>6,i[s++]=128|(d&63)>>>0),l&&c++}this.utf16Length=n,this.utf8Length=o,this.utf16Value=t,this.utf8Value=i,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=A}static _utf8ByteLength(t){let n=0;for(let o=0,a=t.length;o<a;o++){let r=t.charCodeAt(o),A=r,i=!1;if(r>=55296&&r<=56319&&o+1<a){let s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(A=(r-55296<<10)+65536|s-56320,i=!0)}A<=127?n+=1:A<=2047?n+=2:A<=65535?n+=3:n+=4,i&&o++}return n}createString(t){let n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}},sf=class oo{constructor(t){if(Dt(this,"id",++oo.LAST_ID),Dt(this,"_onigBinding"),Dt(this,"content"),Dt(this,"utf16Length"),Dt(this,"utf8Length"),Dt(this,"utf16OffsetToUtf8"),Dt(this,"utf8OffsetToUtf16"),Dt(this,"ptr"),!Gt)throw new B_("Must invoke loadWasm first.");this._onigBinding=Gt,this.content=t;let n=new Af(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!oo._sharedPtrInUse?(oo._sharedPtr||(oo._sharedPtr=Gt.omalloc(1e4)),oo._sharedPtrInUse=!0,Gt.HEAPU8.set(n.utf8Value,oo._sharedPtr),this.ptr=oo._sharedPtr):this.ptr=n.createString(Gt)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===oo._sharedPtr?oo._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Dt(sf,"LAST_ID",0);Dt(sf,"_sharedPtr",0);Dt(sf,"_sharedPtrInUse",!1);var sL=sf,h_=class{constructor(t){if(Dt(this,"_onigBinding"),Dt(this,"_ptr"),!Gt)throw new B_("Must invoke loadWasm first.");let n=[],o=[];for(let i=0,s=t.length;i<s;i++){let c=new Af(t[i]);n[i]=c.createString(Gt),o[i]=c.utf8Length}let a=Gt.omalloc(4*t.length);Gt.HEAPU32.set(n,a/4);let r=Gt.omalloc(4*t.length);Gt.HEAPU32.set(o,r/4);let A=Gt.createOnigScanner(a,r,t.length);for(let i=0,s=t.length;i<s;i++)Gt.ofree(n[i]);Gt.ofree(r),Gt.ofree(a),A===0&&AK(Gt),this._onigBinding=Gt,this._ptr=A}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,o){let a=0;if(typeof o=="number"&&(a=o),typeof t=="string"){t=new sL(t);let r=this._findNextMatchSync(t,n,!1,a);return t.dispose(),r}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,o,a){let r=this._onigBinding,A=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(A===0)return null;let i=r.HEAPU32,s=A/4,c=i[s++],u=i[s++],d=[];for(let l=0;l<u;l++){let p=t.convertUtf8OffsetToUtf16(i[s++]),b=t.convertUtf8OffsetToUtf16(i[s++]);d[l]={start:p,end:b,length:b-p}}return{index:c,captureIndices:d}}};function iK(e){return typeof e.instantiator=="function"}function sK(e){return typeof e.default=="function"}function cK(e){return typeof e.data<"u"}function uK(e){return typeof Response<"u"&&e instanceof Response}function dK(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}var rf;function cL(e){if(rf)return rf;async function t(){Gt=await aK(async n=>{let o=e;return o=await o,typeof o=="function"&&(o=await o(n)),typeof o=="function"&&(o=await o(n)),iK(o)?o=await o.instantiator(n):sK(o)?o=await o.default(n):(cK(o)&&(o=o.data),uK(o)?typeof WebAssembly.instantiateStreaming=="function"?o=await lK(o)(n):o=await pK(o)(n):dK(o)?o=await b_(o)(n):o instanceof WebAssembly.Module?o=await b_(o)(n):"default"in o&&o.default instanceof WebAssembly.Module&&(o=await b_(o.default)(n))),"instance"in o&&(o=o.instance),"exports"in o&&(o=o.exports),o})}return rf=t(),rf}function b_(e){return t=>WebAssembly.instantiate(e,t)}function lK(e){return t=>WebAssembly.instantiateStreaming(e,t)}function pK(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var uL;function gK(e){uL=e}function mK(){return uL}async function fK(e){return e&&await cL(e),{createScanner(t){return new h_(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new sL(t)}}}var y_=AL({});iL(y_,C_);var LR=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Promise.resolve().then(()=>(lL(),dL)))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Promise.resolve().then(()=>(gL(),pL)))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(fL(),mL)))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>Promise.resolve().then(()=>(hL(),bL)))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>Promise.resolve().then(()=>(CL(),BL)))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:(()=>Promise.resolve().then(()=>(wL(),yL)))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Promise.resolve().then(()=>(kL(),EL)))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Promise.resolve().then(()=>(IL(),QL)))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Promise.resolve().then(()=>(vL(),_L)))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Promise.resolve().then(()=>(DL(),xL)))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(SL(),FL)))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Promise.resolve().then(()=>($L(),LL)))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(NL(),RL)))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Promise.resolve().then(()=>(jL(),ML)))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(HL(),GL)))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Promise.resolve().then(()=>(UL(),PL)))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Promise.resolve().then(()=>(qL(),TL)))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Promise.resolve().then(()=>(zL(),OL)))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Promise.resolve().then(()=>(KL(),YL)))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Promise.resolve().then(()=>(WL(),JL)))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Promise.resolve().then(()=>(VL(),ZL)))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Promise.resolve().then(()=>(e$(),XL)))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Promise.resolve().then(()=>(n$(),t$)))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(o$(),a$)))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Promise.resolve().then(()=>(A$(),r$)))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Promise.resolve().then(()=>(s$(),i$)))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Promise.resolve().then(()=>(u$(),c$)))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>Promise.resolve().then(()=>(l$(),d$)))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>Promise.resolve().then(()=>(g$(),p$)))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Promise.resolve().then(()=>(f$(),m$)))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Promise.resolve().then(()=>(h$(),b$)))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Promise.resolve().then(()=>(C$(),B$)))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Promise.resolve().then(()=>(w$(),y$)))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Promise.resolve().then(()=>(k$(),E$)))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Promise.resolve().then(()=>(I$(),Q$)))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(v$(),_$)))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Promise.resolve().then(()=>(D$(),x$)))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Promise.resolve().then(()=>(S$(),F$)))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Promise.resolve().then(()=>($$(),L$)))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Promise.resolve().then(()=>(N$(),R$)))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(j$(),M$)))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Promise.resolve().then(()=>(H$(),G$)))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Promise.resolve().then(()=>(U$(),P$)))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Promise.resolve().then(()=>(q$(),T$)))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>Promise.resolve().then(()=>(z$(),O$)))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Promise.resolve().then(()=>(K$(),Y$)))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Promise.resolve().then(()=>(W$(),J$)))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Promise.resolve().then(()=>(V$(),Z$)))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Promise.resolve().then(()=>(eR(),X$)))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Promise.resolve().then(()=>(nR(),tR)))},{id:"red",displayName:"Red",type:"dark",import:(()=>Promise.resolve().then(()=>(oR(),aR)))},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:(()=>Promise.resolve().then(()=>(AR(),rR)))},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:(()=>Promise.resolve().then(()=>(sR(),iR)))},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:(()=>Promise.resolve().then(()=>(uR(),cR)))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(lR(),dR)))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Promise.resolve().then(()=>(gR(),pR)))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Promise.resolve().then(()=>(fR(),mR)))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(hR(),bR)))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Promise.resolve().then(()=>(CR(),BR)))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Promise.resolve().then(()=>(wR(),yR)))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Promise.resolve().then(()=>(kR(),ER)))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Promise.resolve().then(()=>(IR(),QR)))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Promise.resolve().then(()=>(vR(),_R)))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(DR(),xR)))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Promise.resolve().then(()=>(SR(),FR)))}],$R=Object.fromEntries(LR.map(e=>[e.id,e.import]));var Le=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function vJ(e){return F_(e)}function F_(e){return Array.isArray(e)?xJ(e):e instanceof RegExp?e:typeof e=="object"?DJ(e):e}function xJ(e){let t=[];for(let n=0,o=e.length;n<o;n++)t[n]=F_(e[n]);return t}function DJ(e){let t={};for(let n in e)t[n]=F_(e[n]);return t}function TR(e,...t){return t.forEach(n=>{for(let o in n)e[o]=n[o]}),e}function qR(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?qR(e.substring(0,e.length-1)):e.substr(~t+1)}var w_=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,cf=class{static hasCaptures(e){return e===null?!1:(w_.lastIndex=0,w_.test(e))}static replaceCaptures(e,t,n){return e.replace(w_,(o,a,r,A)=>{let i=n[parseInt(a||r,10)];if(i){let s=t.substring(i.start,i.end);for(;s[0]===".";)s=s.substring(1);switch(A){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return o})}};function OR(e,t){return e<t?-1:e>t?1:0}function zR(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let a=0;a<n;a++){let r=OR(e[a],t[a]);if(r!==0)return r}return 0}return n-o}function RR(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function YR(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var KR=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Qd=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(LJ(e),t)}static createFromParsedTheme(e,t){return RJ(e,t)}_cachedMatchRoot=new KR(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,o=this._cachedMatchRoot.get(t).find(a=>FJ(e.parent,a.parentScopes));return o?new JR(o.fontStyle,o.foreground,o.background):null}},E_=class uf{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(let o of n)t=new uf(t,o);return t}static from(...t){let n=null;for(let o=0;o<t.length;o++)n=new uf(n,t[o]);return n}push(t){return new uf(this,t)}getSegments(){let t=this,n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let n=[],o=this;for(;o&&o!==t;)n.push(o.scopeName),o=o.parent;return o===t?n.reverse():void 0}};function FJ(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let o=t[n],a=!1;if(o===">"){if(n===t.length-1)return!1;o=t[++n],a=!0}for(;e&&!SJ(e.scopeName,o);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function SJ(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var JR=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function LJ(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],o=0;for(let a=0,r=t.length;a<r;a++){let A=t[a];if(!A.settings)continue;let i;if(typeof A.scope=="string"){let d=A.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),i=d.split(",")}else Array.isArray(A.scope)?i=A.scope:i=[""];let s=-1;if(typeof A.settings.fontStyle=="string"){s=0;let d=A.settings.fontStyle.split(" ");for(let l=0,p=d.length;l<p;l++)switch(d[l]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let c=null;typeof A.settings.foreground=="string"&&RR(A.settings.foreground)&&(c=A.settings.foreground);let u=null;typeof A.settings.background=="string"&&RR(A.settings.background)&&(u=A.settings.background);for(let d=0,l=i.length;d<l;d++){let b=i[d].trim().split(" "),B=b[b.length-1],C=null;b.length>1&&(C=b.slice(0,b.length-1),C.reverse()),n[o++]=new $J(B,C,a,s,c,u)}}return n}var $J=class{constructor(e,t,n,o,a,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=o,this.foreground=a,this.background=r}},Jt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Jt||{});function RJ(e,t){e.sort((s,c)=>{let u=OR(s.scope,c.scope);return u!==0||(u=zR(s.parentScopes,c.parentScopes),u!==0)?u:s.index-c.index});let n=0,o="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let s=e.shift();s.fontStyle!==-1&&(n=s.fontStyle),s.foreground!==null&&(o=s.foreground),s.background!==null&&(a=s.background)}let r=new NJ(t),A=new JR(n,r.getId(o),r.getId(a)),i=new jJ(new Q_(0,null,-1,0,0),[]);for(let s=0,c=e.length;s<c;s++){let u=e[s];i.insert(0,u.scope,u.parentScopes,u.fontStyle,r.getId(u.foreground),r.getId(u.background))}return new Qd(r,A,i)}var NJ=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},MJ=Object.freeze([]),Q_=class WR{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,o,a,r){this.scopeDepth=t,this.parentScopes=n||MJ,this.fontStyle=o,this.foreground=a,this.background=r}clone(){return new WR(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let o=0,a=t.length;o<a;o++)n[o]=t[o].clone();return n}acceptOverwrite(t,n,o,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),o!==0&&(this.foreground=o),a!==0&&(this.background=a)}},jJ=class I_{constructor(t,n=[],o={}){this._mainRule=t,this._children=o,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let o=0,a=0;for(;t.parentScopes[o]===">"&&o++,n.parentScopes[a]===">"&&a++,!(o>=t.parentScopes.length||a>=n.parentScopes.length);){let r=n.parentScopes[a].length-t.parentScopes[o].length;if(r!==0)return r;o++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),a,r;if(o===-1?(a=t,r=""):(a=t.substring(0,o),r=t.substring(o+1)),this._children.hasOwnProperty(a))return this._children[a].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(I_._cmpBySpecificity),n}insert(t,n,o,a,r,A){if(n===""){this._doInsertHere(t,o,a,r,A);return}let i=n.indexOf("."),s,c;i===-1?(s=n,c=""):(s=n.substring(0,i),c=n.substring(i+1));let u;this._children.hasOwnProperty(s)?u=this._children[s]:(u=new I_(this._mainRule.clone(),Q_.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,c,o,a,r,A)}_doInsertHere(t,n,o,a,r){if(n===null){this._mainRule.acceptOverwrite(t,o,a,r);return}for(let A=0,i=this._rulesWithParentScopes.length;A<i;A++){let s=this._rulesWithParentScopes[A];if(zR(s.parentScopes,n)===0){s.acceptOverwrite(t,o,a,r);return}}o===-1&&(o=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),r===0&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new Q_(t,n,o,a,r))}},GA=class ha{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let n=ha.getLanguageId(t),o=ha.getTokenType(t),a=ha.getFontStyle(t),r=ha.getForeground(t),A=ha.getBackground(t);console.log({languageId:n,tokenType:o,fontStyle:a,foreground:r,background:A})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,o,a,r,A,i){let s=ha.getLanguageId(t),c=ha.getTokenType(t),u=ha.containsBalancedBrackets(t)?1:0,d=ha.getFontStyle(t),l=ha.getForeground(t),p=ha.getBackground(t);return n!==0&&(s=n),o!==8&&(c=o),a!==null&&(u=a?1:0),r!==-1&&(d=r),A!==0&&(l=A),i!==0&&(p=i),(s<<0|c<<8|u<<10|d<<11|l<<15|p<<24)>>>0}};function lf(e,t){let n=[],o=GJ(e),a=o.next();for(;a!==null;){let s=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=o.next()}let c=A();if(n.push({matcher:c,priority:s}),a!==",")break;a=o.next()}return n;function r(){if(a==="-"){a=o.next();let s=r();return c=>!!s&&!s(c)}if(a==="("){a=o.next();let s=i();return a===")"&&(a=o.next()),s}if(NR(a)){let s=[];do s.push(a),a=o.next();while(NR(a));return c=>t(s,c)}return null}function A(){let s=[],c=r();for(;c;)s.push(c),c=r();return u=>s.every(d=>d(u))}function i(){let s=[],c=A();for(;c&&(s.push(c),a==="|"||a===",");){do a=o.next();while(a==="|"||a===",");c=A()}return u=>s.some(d=>d(u))}}function NR(e){return!!e&&!!e.match(/[\w\.:]+/)}function GJ(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let o=n[0];return n=t.exec(e),o}}}function ZR(e){typeof e.dispose=="function"&&e.dispose()}var Id=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},HJ=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},PJ=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},UJ=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Id(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new PJ;for(let n of e)TJ(n,this.initialScopeName,this.repo,t);for(let n of t.references)if(n instanceof Id){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function TJ(e,t,n,o){let a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let r=n.lookup(t);e instanceof Id?df({baseGrammar:r,selfGrammar:a},o):__(e.ruleName,{baseGrammar:r,selfGrammar:a,repository:a.repository},o);let A=n.injections(e.scopeName);if(A)for(let i of A)o.add(new Id(i))}function __(e,t,n){if(t.repository&&t.repository[e]){let o=t.repository[e];pf([o],t,n)}}function df(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&pf(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&pf(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function pf(e,t,n){for(let o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);let a=o.repository?TR({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&pf(o.patterns,{...t,repository:a},n);let r=o.include;if(!r)continue;let A=VR(r);switch(A.kind){case 0:df({...t,selfGrammar:t.baseGrammar},n);break;case 1:df(t,n);break;case 2:__(A.ruleName,{...t,repository:a},n);break;case 3:case 4:let i=A.scopeName===t.selfGrammar.scopeName?t.selfGrammar:A.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(i){let s={baseGrammar:t.baseGrammar,selfGrammar:i,repository:a};A.kind===4?__(A.ruleName,s,n):df(s,n)}else A.kind===4?n.add(new HJ(A.scopeName,A.ruleName)):n.add(new Id(A.scopeName));break}}}var qJ=class{kind=0},OJ=class{kind=1},zJ=class{constructor(e){this.ruleName=e}kind=2},YJ=class{constructor(e){this.scopeName=e}kind=3},KJ=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function VR(e){if(e==="$base")return new qJ;if(e==="$self")return new OJ;let t=e.indexOf("#");if(t===-1)return new YJ(e);if(t===0)return new zJ(e.substring(1));{let n=e.substring(0,t),o=e.substring(t+1);return new KJ(n,o)}}var JJ=/\\(\d+)/,MR=/\\(\d+)/g;var WJ=-1,XR=-2;var xd=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=cf.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=cf.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${qR(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:cf.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:cf.replaceCaptures(this._contentName,e,t)}},ZJ=class extends xd{retokenizeCapturedWithRuleId;constructor(e,t,n,o,a){super(e,t,n,o),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,o){throw new Error("Not supported!")}},VJ=class extends xd{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,null),this._match=new _d(o,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new vd,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},jR=class extends xd{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,o),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new vd,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},v_=class extends xd{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a,r,A,i,s,c){super(e,t,n,o),this._begin=new _d(a,this.id),this.beginCaptures=r,this._end=new _d(A||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=s||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new vd;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},gf=class extends xd{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,o,a,r,A,i,s){super(e,t,n,o),this._begin=new _d(a,this.id),this.beginCaptures=r,this.whileCaptures=i,this._while=new _d(A,XR),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new vd;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new vd,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},eN=class an{static createCaptureRule(t,n,o,a,r){return t.registerRule(A=>new ZJ(n,A,o,a,r))}static getCompiledRuleId(t,n,o){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new VJ(t.$vscodeTextmateLocation,t.id,t.name,t.match,an._compileCaptures(t.captures,n,o));if(typeof t.begin>"u"){t.repository&&(o=TR({},o,t.repository));let r=t.patterns;return typeof r>"u"&&t.include&&(r=[{include:t.include}]),new jR(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,an._compilePatterns(r,n,o))}return t.while?new gf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,an._compileCaptures(t.beginCaptures||t.captures,n,o),t.while,an._compileCaptures(t.whileCaptures||t.captures,n,o),an._compilePatterns(t.patterns,n,o)):new v_(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,an._compileCaptures(t.beginCaptures||t.captures,n,o),t.end,an._compileCaptures(t.endCaptures||t.captures,n,o),t.applyEndPatternLast,an._compilePatterns(t.patterns,n,o))}),t.id}static _compileCaptures(t,n,o){let a=[];if(t){let r=0;for(let A in t){if(A==="$vscodeTextmateLocation")continue;let i=parseInt(A,10);i>r&&(r=i)}for(let A=0;A<=r;A++)a[A]=null;for(let A in t){if(A==="$vscodeTextmateLocation")continue;let i=parseInt(A,10),s=0;t[A].patterns&&(s=an.getCompiledRuleId(t[A],n,o)),a[i]=an.createCaptureRule(n,t[A].$vscodeTextmateLocation,t[A].name,t[A].contentName,s)}}return a}static _compilePatterns(t,n,o){let a=[];if(t)for(let r=0,A=t.length;r<A;r++){let i=t[r],s=-1;if(i.include){let c=VR(i.include);switch(c.kind){case 0:case 1:s=an.getCompiledRuleId(o[i.include],n,o);break;case 2:let u=o[c.ruleName];u&&(s=an.getCompiledRuleId(u,n,o));break;case 3:case 4:let d=c.scopeName,l=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(d,o);if(p)if(l){let b=p.repository[l];b&&(s=an.getCompiledRuleId(b,n,p.repository))}else s=an.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else s=an.getCompiledRuleId(i,n,o);if(s!==-1){let c=n.getRule(s),u=!1;if((c instanceof jR||c instanceof v_||c instanceof gf)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;a.push(s)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},_d=class tN{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){let o=t.length,a=0,r=[],A=!1;for(let i=0;i<o;i++)if(t.charAt(i)==="\\"&&i+1<o){let c=t.charAt(i+1);c==="z"?(r.push(t.substring(a,i)),r.push("$(?!\\n)(?<!\\n)"),a=i+2):(c==="A"||c==="G")&&(A=!0),i++}this.hasAnchor=A,a===0?this.source=t:(r.push(t.substring(a,o)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=JJ.test(this.source):this.hasBackReferences=!1}clone(){return new tN(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let o=n.map(a=>t.substring(a.start,a.end));return MR.lastIndex=0,this.source.replace(MR,(a,r)=>YR(o[parseInt(r,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],o=[],a=[],r,A,i,s;for(r=0,A=this.source.length;r<A;r++)i=this.source.charAt(r),t[r]=i,n[r]=i,o[r]=i,a[r]=i,i==="\\"&&r+1<A&&(s=this.source.charAt(r+1),s==="A"?(t[r+1]="\uFFFF",n[r+1]="\uFFFF",o[r+1]="A",a[r+1]="A"):s==="G"?(t[r+1]="\uFFFF",n[r+1]="G",o[r+1]="\uFFFF",a[r+1]="G"):(t[r+1]=s,n[r+1]=s,o[r+1]=s,a[r+1]=s),r++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:o.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},vd=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new GR(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let o=this._items.map(a=>a.resolveAnchors(t,n));return new GR(e,o,this._items.map(a=>a.ruleId))}},GR=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
76
76
  `)}findNextMatchSync(e,t,n){let o=this.scanner.findNextMatchSync(e,t,n);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},k_=class{constructor(e,t){this.languageId=e,this.tokenType=t}},XJ=class x_{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new k_(t,8),this._embeddedLanguagesMatcher=new eW(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?x_._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new k_(0,0);_getBasicScopeAttributes=new KR(t=>{let n=this._scopeToLanguage(t),o=this._toStandardTokenType(t);return new k_(n,o)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let n=t.match(x_.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},eW=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([n,o])=>YR(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Rfe={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},nN=!1,HR=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function aN(e,t,n,o,a,r,A,i){let s=t.content.length,c=!1,u=-1;if(A){let p=tW(e,t,n,o,a,r);a=p.stack,o=p.linePos,n=p.isFirstLine,u=p.anchorPosition}let d=Date.now();for(;!c;){if(i!==0&&Date.now()-d>i)return new HR(a,!0);l()}return new HR(a,!1);function l(){let p=nW(e,t,n,o,a,u);if(!p){r.produce(a,s),c=!0;return}let b=p.captureIndices,B=p.matchedRuleId,C=b&&b.length>0?b[0].end>o:!1;if(B===WJ){let m=a.getRule(e);r.produce(a,b[0].start),a=a.withContentNameScopesList(a.nameScopesList),Ed(e,t,n,a,r,m.endCaptures,b),r.produce(a,b[0].end);let g=a;if(a=a.parent,u=g.getAnchorPos(),!C&&g.getEnterPos()===o){a=g,r.produce(a,s),c=!0;return}}else{let m=e.getRule(B);r.produce(a,b[0].start);let g=a,h=m.getName(t.content,b),y=a.contentNameScopesList.pushAttributed(h,e);if(a=a.push(B,o,u,b[0].end===s,null,y,y),m instanceof v_){let v=m;Ed(e,t,n,a,r,v.beginCaptures,b),r.produce(a,b[0].end),u=b[0].end;let P=v.getContentName(t.content,b),M=y.pushAttributed(P,e);if(a=a.withContentNameScopesList(M),v.endHasBackReferences&&(a=a.withEndRule(v.getEndWithResolvedBackReferences(t.content,b))),!C&&g.hasSameRuleAs(a)){a=a.pop(),r.produce(a,s),c=!0;return}}else if(m instanceof gf){let v=m;Ed(e,t,n,a,r,v.beginCaptures,b),r.produce(a,b[0].end),u=b[0].end;let P=v.getContentName(t.content,b),M=y.pushAttributed(P,e);if(a=a.withContentNameScopesList(M),v.whileHasBackReferences&&(a=a.withEndRule(v.getWhileWithResolvedBackReferences(t.content,b))),!C&&g.hasSameRuleAs(a)){a=a.pop(),r.produce(a,s),c=!0;return}}else if(Ed(e,t,n,a,r,m.captures,b),r.produce(a,b[0].end),a=a.pop(),!C){a=a.safePop(),r.produce(a,s),c=!0;return}}b[0].end>o&&(o=b[0].end,n=!1)}}function tW(e,t,n,o,a,r){let A=a.beginRuleCapturedEOL?0:-1,i=[];for(let s=a;s;s=s.pop()){let c=s.getRule(e);c instanceof gf&&i.push({rule:c,stack:s})}for(let s=i.pop();s;s=i.pop()){let{ruleScanner:c,findOptions:u}=rW(s.rule,e,s.stack.endRule,n,o===A),d=c.findNextMatchSync(t,o,u);if(d){if(d.ruleId!==XR){a=s.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(r.produce(s.stack,d.captureIndices[0].start),Ed(e,t,n,s.stack,r,s.rule.whileCaptures,d.captureIndices),r.produce(s.stack,d.captureIndices[0].end),A=d.captureIndices[0].end,d.captureIndices[0].end>o&&(o=d.captureIndices[0].end,n=!1))}else{a=s.stack.pop();break}}return{stack:a,linePos:o,anchorPosition:A,isFirstLine:n}}function nW(e,t,n,o,a,r){let A=aW(e,t,n,o,a,r),i=e.getInjections();if(i.length===0)return A;let s=oW(i,e,t,n,o,a,r);if(!s)return A;if(!A)return s;let c=A.captureIndices[0].start,u=s.captureIndices[0].start;return u<c||s.priorityMatch&&u===c?s:A}function aW(e,t,n,o,a,r){let A=a.getRule(e),{ruleScanner:i,findOptions:s}=oN(A,e,a.endRule,n,o===r),c=i.findNextMatchSync(t,o,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function oW(e,t,n,o,a,r,A){let i=Number.MAX_VALUE,s=null,c,u=0,d=r.contentNameScopesList.getScopeNames();for(let l=0,p=e.length;l<p;l++){let b=e[l];if(!b.matcher(d))continue;let B=t.getRule(b.ruleId),{ruleScanner:C,findOptions:m}=oN(B,t,null,o,a===A),g=C.findNextMatchSync(n,a,m);if(!g)continue;let h=g.captureIndices[0].start;if(!(h>=i)&&(i=h,s=g.captureIndices,c=g.ruleId,u=b.priority,i===a))break}return s?{priorityMatch:u===-1,captureIndices:s,matchedRuleId:c}:null}function oN(e,t,n,o,a){if(nN){let A=e.compile(t,n),i=rN(o,a);return{ruleScanner:A,findOptions:i}}return{ruleScanner:e.compileAG(t,n,o,a),findOptions:0}}function rW(e,t,n,o,a){if(nN){let A=e.compileWhile(t,n),i=rN(o,a);return{ruleScanner:A,findOptions:i}}return{ruleScanner:e.compileWhileAG(t,n,o,a),findOptions:0}}function rN(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function Ed(e,t,n,o,a,r,A){if(r.length===0)return;let i=t.content,s=Math.min(r.length,A.length),c=[],u=A[0].end;for(let d=0;d<s;d++){let l=r[d];if(l===null)continue;let p=A[d];if(p.length===0)continue;if(p.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=p.start;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?a.produceFromScopes(c[c.length-1].scopes,p.start):a.produce(o,p.start),l.retokenizeCapturedWithRuleId){let B=l.getName(i,A),C=o.contentNameScopesList.pushAttributed(B,e),m=l.getContentName(i,A),g=C.pushAttributed(m,e),h=o.push(l.retokenizeCapturedWithRuleId,p.start,-1,!1,null,C,g),y=e.createOnigString(i.substring(0,p.end));aN(e,y,n&&p.start===0,p.start,h,a,!1,0),ZR(y);continue}let b=l.getName(i,A);if(b!==null){let C=(c.length>0?c[c.length-1].scopes:o.contentNameScopesList).pushAttributed(b,e);c.push(new AW(C,p.end))}}for(;c.length>0;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var AW=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function iW(e,t,n,o,a,r,A,i){return new cW(e,t,n,o,a,r,A,i)}function PR(e,t,n,o,a){let r=lf(t,mf),A=eN.getCompiledRuleId(n,o,a.repository);for(let i of r)e.push({debugSelector:t,matcher:i.matcher,ruleId:A,grammar:a,priority:i.priority})}function mf(e,t){if(t.length<e.length)return!1;let n=0;return e.every(o=>{for(let a=n;a<t.length;a++)if(sW(t[a],o))return n=a+1,!0;return!1})}function sW(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var cW=class{constructor(e,t,n,o,a,r,A,i){if(this._rootScopeName=e,this.balancedBracketSelectors=r,this._onigLib=i,this._basicScopeAttributesProvider=new XJ(n,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=A,this._grammar=UR(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(let s of Object.keys(a)){let c=lf(s,mf);for(let u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:a[s]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,o=e.lookup(n);if(o){let a=o.injections;if(a)for(let A in a)PR(t,A,a[A],this,o);let r=this._grammarRepository.injections(n);r&&r.forEach(A=>{let i=this.getExternalGrammar(A);if(i){let s=i.injectionSelector;s&&PR(t,s,i,this,i)}})}return t.sort((a,r)=>a.priority-r.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=UR(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let o=this._tokenize(e,t,!1,n);return{tokens:o.lineTokens.getResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}tokenizeLine2(e,t,n=0){let o=this._tokenize(e,t,!0,n);return{tokens:o.lineTokens.getBinaryResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}_tokenize(e,t,n,o){this._rootId===-1&&(this._rootId=eN.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===D_.NULL){a=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),d=GA.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),l=this.getRule(this._rootId).getName(null,null),p;l?p=kd.createRootAndLookUpScopeName(l,d,this):p=kd.createRoot("unknown",d),t=new D_(null,this._rootId,-1,-1,!1,null,p,p)}else a=!1,t.reset();e=e+`
77
77
  `;let r=this.createOnigString(e),A=r.content.length,i=new dW(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=aN(this,r,a,0,t,i,!0,o);return ZR(r),{lineLength:A,lineTokens:i,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function UR(e,t){return e=vJ(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var kd=class ro{constructor(t,n,o){this.parent=t,this.scopePath=n,this.tokenAttributes=o}static fromExtension(t,n){let o=t,a=t?.scopePath??null;for(let r of n)a=E_.push(a,r.scopeNames),o=new ro(o,a,r.encodedTokenAttributes);return o}static createRoot(t,n){return new ro(null,new E_(null,t),n)}static createRootAndLookUpScopeName(t,n,o){let a=o.getMetadataForScope(t),r=new E_(null,t),A=o.themeProvider.themeMatch(r),i=ro.mergeAttributes(n,a,A);return new ro(null,r,i)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return ro.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,o){let a=-1,r=0,A=0;return o!==null&&(a=o.fontStyle,r=o.foregroundId,A=o.backgroundId),GA.set(t,n.languageId,n.tokenType,null,a,r,A)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return ro._pushAttributed(this,t,n);let o=t.split(/ /g),a=this;for(let r of o)a=ro._pushAttributed(a,r,n);return a}static _pushAttributed(t,n,o){let a=o.getMetadataForScope(n),r=t.scopePath.push(n),A=o.themeProvider.themeMatch(r),i=ro.mergeAttributes(t.tokenAttributes,a,A);return new ro(t,r,i)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){let n=[],o=this;for(;o&&o!==t;)n.push({encodedTokenAttributes:o.tokenAttributes,scopeNames:o.scopePath.getExtensionIfDefined(o.parent?.scopePath??null)}),o=o.parent;return o===t?n.reverse():void 0}},D_=class jA{constructor(t,n,o,a,r,A,i,s){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=r,this.endRule=A,this.nameScopesList=i,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=o,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new jA(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:jA._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?kd.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){jA._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,o,a,r,A,i){return new jA(this,t,n,o,a,r,A,i)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){let t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new jA(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let o=kd.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new jA(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,o,kd.fromExtension(o,n.contentNameScopesList))}},uW=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):lf(n,mf).map(o=>o.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>lf(n,mf).map(o=>o.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},dW=class{constructor(e,t,n,o){this.balancedBracketSelectors=o,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let o=e?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let r=e?.getScopeNames()??[];for(let A of this._tokenTypeOverrides)A.matcher(r)&&(o=GA.set(o,0,A.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(r))}if(a&&(o=GA.set(o,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===o){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(o),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let o=0,a=this._binaryTokens.length;o<a;o++)n[o]=this._binaryTokens[o];return n}},lW=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,o,a){if(!this._grammars.has(e)){let r=this._rawGrammars.get(e);if(!r)return null;this._grammars.set(e,iW(e,r,t,n,o,a,this,this._onigLib))}return this._grammars.get(e)}},AN=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new lW(Qd.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Qd.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new uW(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,o,a){let r=new UJ(this._syncRegistry,e);for(;r.Q.length>0;)r.Q.map(A=>this._loadSingleGrammar(A.scopeName)),r.processQueue();return this._grammarForScopeName(e,t,n,o,a)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,o=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,o)}_grammarForScopeName(e,t=0,n=null,o=null,a=null){return this._syncRegistry.grammarForScopeName(e,t,n,o,a)}},ff=D_.NULL;function Fd(e,t){let n=typeof e=="string"?{}:{...e.colorReplacements},o=typeof e=="string"?e:e.name;for(let[a,r]of Object.entries(t?.colorReplacements||{}))typeof r=="string"?n[a]=r:a===o&&Object.assign(n,r);return n}function Po(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function dN(e){return Array.isArray(e)?e:[e]}async function S_(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Sd(e){return!e||["plaintext","txt","text","plain"].includes(e)}function L_(e){return e==="ansi"||Sd(e)}function Ld(e){return e==="none"}function $_(e){return Ld(e)}var pW=/(\r?\n)/g;function Ys(e,t=!1){if(e.length===0)return[["",0]];let n=e.split(pW),o=0,a=[];for(let r=0;r<n.length;r+=2){let A=t?n[r]+(n[r+1]||""):n[r];a.push([A,o]),o+=n[r].length,o+=n[r+1]?.length||0}return a}var iN={light:"#333333",dark:"#bbbbbb"},sN={light:"#fffffe",dark:"#1e1e1e"},cN="__shiki_resolved";function bf(e){if(e?.[cN])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:o}=t;if(!n||!o){let i=t.settings?t.settings.find(s=>!s.name&&!s.scope):void 0;i?.settings?.foreground&&(o=i.settings.foreground),i?.settings?.background&&(n=i.settings.background),!o&&t?.colors?.["editor.foreground"]&&(o=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),o||(o=t.type==="light"?iN.light:iN.dark),n||(n=t.type==="light"?sN.light:sN.dark),t.fg=o,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0,r=new Map;function A(i){if(r.has(i))return r.get(i);a+=1;let s=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${s}`]?A(i):(r.set(i,s),s)}t.settings=t.settings.map(i=>{let s=i.settings?.foreground&&!i.settings.foreground.startsWith("#"),c=i.settings?.background&&!i.settings.background.startsWith("#");if(!s&&!c)return i;let u={...i,settings:{...i.settings}};if(s){let d=A(i.settings.foreground);t.colorReplacements[d]=i.settings.foreground,u.settings.foreground=d}if(c){let d=A(i.settings.background);t.colorReplacements[d]=i.settings.background,u.settings.background=d}return u});for(let i of Object.keys(t.colors||{}))if((i==="editor.foreground"||i==="editor.background"||i.startsWith("terminal.ansi"))&&!t.colors[i]?.startsWith("#")){let s=A(t.colors[i]);t.colorReplacements[s]=t.colors[i],t.colors[i]=s}return Object.defineProperty(t,cN,{enumerable:!1,writable:!1,value:!0}),t}async function lN(e){return[...new Set((await Promise.all(e.filter(t=>!L_(t)).map(async t=>await S_(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function pN(e){return(await Promise.all(e.map(async t=>$_(t)?null:bf(await S_(t))))).filter(t=>!!t)}function gN(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Le(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var gW=class extends AN{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,o={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=o,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=bf(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Qd.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=gN(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(a=>a.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let o=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(o.name=e.name,this._resolvedGrammars.set(e.name,o),e.aliases&&e.aliases.forEach(a=>{this._alias[a]=e.name}),this._loadedLanguagesCache=null,t.size)for(let a of t)this._resolvedGrammars.delete(a.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(a.scopeName),this._syncRegistry?._grammars?.delete(a.scopeName),this.loadLanguage(this._langMap.get(a.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let o of e)this.resolveEmbeddedLanguages(o);let t=[...this._langGraph.entries()],n=t.filter(([o,a])=>!a);if(n.length){let o=t.filter(([a,r])=>r?(r.embeddedLanguages||r.embeddedLangs)?.some(A=>n.map(([i])=>i).includes(A)):!1).filter(a=>!n.includes(a));throw new Le(`Missing languages ${n.map(([a])=>`\`${a}\``).join(", ")}, required by ${o.map(([a])=>`\`${a}\``).join(", ")}`)}for(let[o,a]of t)this._resolver.addLanguage(a);for(let[o,a]of t)this.loadLanguage(a)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let n of t)this._langGraph.set(n,this._langMap.get(n))}},mW=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let o=1;o<=t.length;o++){let a=t.slice(0,o).join(".");n=[...n,...this._injections.get(a)||[]]}return n}},Dd=0;function R_(e){Dd+=1,e.warnings!==!1&&Dd>=10&&Dd%10===0&&console.warn(`[Shiki] ${Dd} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Le("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),o=(e.themes||[]).flat(1).map(bf),a=new gW(new mW(e.engine,n),o,n,e.langAlias),r;function A(g){return gN(g,e.langAlias)}function i(g){C();let h=a.getGrammar(typeof g=="string"?g:g.name);if(!h)throw new Le(`Language \`${g}\` not found, you may need to load it first`);return h}function s(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();let h=a.getTheme(g);if(!h)throw new Le(`Theme \`${g}\` not found, you may need to load it first`);return h}function c(g){C();let h=s(g);return r!==g&&(a.setTheme(h),r=g),{theme:h,colorMap:a.getColorMap()}}function u(){return C(),a.getLoadedThemes()}function d(){return C(),a.getLoadedLanguages()}function l(...g){C(),a.loadLanguages(g.flat(1))}async function p(...g){return l(await lN(g))}function b(...g){C();for(let h of g.flat(1))a.loadTheme(h)}async function B(...g){return C(),b(await pN(g))}function C(){if(t)throw new Le("Shiki instance has been disposed")}function m(){t||(t=!0,a.dispose(),Dd-=1)}return{setTheme:c,getTheme:s,getLanguage:i,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:A,loadLanguage:p,loadLanguageSync:l,loadTheme:B,loadThemeSync:b,dispose:m,[Symbol.dispose]:m}}async function N_(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,o]=await Promise.all([pN(e.themes||[]),lN(e.langs||[]),e.engine]);return R_({...e,themes:t,langs:n,engine:o})}var mN=new WeakMap;function $d(e,t){mN.set(e,t)}function Ks(e){return mN.get(e)}var hf=class fN{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new fN(Object.fromEntries(dN(n).map(o=>[o,ff])),t)}constructor(...t){if(t.length===2){let[n,o]=t;this.lang=o,this._stacks=n}else{let[n,o,a]=t;this.lang=o,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return fW(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function fW(e){let t=[],n=new Set;function o(a){if(n.has(a))return;n.add(a);let r=a?.nameScopesList?.scopeName;r&&t.push(r),a.parent&&o(a.parent)}return o(e),t}function bW(e,t){if(!(e instanceof hf))throw new Le("Invalid grammar state");return e.getInternalStack(t)}var hW=/,/,BW=/ /;function M_(e,t,n={}){let{theme:o=e.getLoadedThemes()[0]}=n;if(Sd(e.resolveLangAlias(n.lang||"text"))||Ld(o))return Ys(t).map(i=>[{content:i[0],offset:i[1]}]);let{theme:a,colorMap:r}=e.setTheme(o),A=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==A.name)throw new Le(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${A.name}"`);if(!n.grammarState.themes.includes(a.name))throw new Le(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return hN(t,A,a,r,n)}function bN(...e){if(e.length===2)return Ks(e[1]);let[t,n,o={}]=e,{lang:a="text",theme:r=t.getLoadedThemes()[0]}=o;if(Sd(a)||Ld(r))throw new Le("Plain language does not have grammar state");if(a==="ansi")throw new Le("ANSI language does not have grammar state");let{theme:A,colorMap:i}=t.setTheme(r),s=t.getLanguage(a);return new hf(j_(n,s,A,i,o).stateStack,s.name,A.name)}function hN(e,t,n,o,a){let r=j_(e,t,n,o,a),A=new hf(r.stateStack,t.name,n.name);return $d(r.tokens,A),r.tokens}function j_(e,t,n,o,a){let r=Fd(n,a),{tokenizeMaxLineLength:A=0,tokenizeTimeLimit:i=500}=a,s=Ys(e),c=a.grammarState?bW(a.grammarState,n.name)??ff:a.grammarContextCode!=null?j_(a.grammarContextCode,t,n,o,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:ff,u=[],d=[];for(let l=0,p=s.length;l<p;l++){let[b,B]=s[l];if(b===""){u=[],d.push([]);continue}if(A>0&&b.length>=A){u=[],d.push([{content:b,offset:B,color:"",fontStyle:0}]);continue}let C,m,g;a.includeExplanation&&(C=t.tokenizeLine(b,c,i),m=C.tokens,g=0);let h=t.tokenizeLine2(b,c,i),y=h.tokens.length/2;for(let v=0;v<y;v++){let P=h.tokens[2*v],M=v+1<y?h.tokens[2*v+2]:b.length;if(P===M)continue;let U=h.tokens[2*v+1],K=Po(o[GA.getForeground(U)],r),X=GA.getFontStyle(U),Ut={content:b.substring(P,M),offset:B+P,color:K,fontStyle:X};if(a.includeExplanation){let ka=[];if(a.includeExplanation!=="scopeName")for(let na of n.settings){let An;switch(typeof na.scope){case"string":An=na.scope.split(hW).map(Db=>Db.trim());break;case"object":An=na.scope;break;default:continue}ka.push({settings:na,selectors:An.map(Db=>Db.split(BW))})}Ut.explanation=[];let ja=0;for(;P+ja<M;){let na=m[g],An=b.substring(na.startIndex,na.endIndex);ja+=An.length,Ut.explanation.push({content:An,scopes:a.includeExplanation==="scopeName"?CW(na.scopes):yW(ka,na.scopes)}),g+=1}}u.push(Ut)}d.push(u),u=[],c=h.ruleStack}return{tokens:d,stateStack:c}}function CW(e){return e.map(t=>({scopeName:t}))}function yW(e,t){let n=[];for(let o=0,a=t.length;o<a;o++){let r=t[o];n[o]={scopeName:r,themeMatches:EW(e,r,t.slice(0,o))}}return n}function uN(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function wW(e,t,n){if(!uN(e.at(-1),t))return!1;let o=e.length-2,a=n.length-1;for(;o>=0&&a>=0;)uN(e[o],n[a])&&(o-=1),a-=1;return o===-1}function EW(e,t,n){let o=[];for(let{selectors:a,settings:r}of e)for(let A of a)if(wW(A,t,n)){o.push(r);break}return o}function Bf(e,t,n,o=M_){let a=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),r=a.map(c=>{let u=o(e,t,{...n,theme:c.theme});return{tokens:u,state:Ks(u),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),A=kW(...r.map(c=>c.tokens)),i=A[0].map((c,u)=>c.map((d,l)=>{let p={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=d.explanation),A.forEach((b,B)=>{let{content:C,explanation:m,offset:g,...h}=b[u][l];p.variants[a[B].color]=h}),p})),s=r[0].state?new hf(Object.fromEntries(r.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),r[0].state.lang):void 0;return s&&$d(i,s),i}function kW(...e){let t=e.map(()=>[]),n=e.length;for(let o=0;o<e[0].length;o++){let a=e.map(s=>s[o]),r=t.map(()=>[]);t.forEach((s,c)=>s.push(r[c]));let A=a.map(()=>0),i=a.map(s=>s[0]);for(;i.every(s=>s);){let s=Math.min(...i.map(c=>c.content.length));for(let c=0;c<n;c++){let u=i[c];u.content.length===s?(r[c].push(u),A[c]+=1,i[c]=a[c][A[c]]):(r[c].push({...u,content:u.content.slice(0,s)}),i[c]={...u,content:u.content.slice(s),offset:u.offset+s})}}}return t}var BN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Uo=class{constructor(t,n,o){this.normal=n,this.property=t,o&&(this.space=o)}};Uo.prototype.normal={};Uo.prototype.property={};Uo.prototype.space=void 0;function G_(e,t){let n={},o={};for(let a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new Uo(n,o,t)}function Rd(e){return e.toLowerCase()}var Ht=class{constructor(t,n){this.attribute=n,this.property=t}};Ht.prototype.attribute="";Ht.prototype.booleanish=!1;Ht.prototype.boolean=!1;Ht.prototype.commaOrSpaceSeparated=!1;Ht.prototype.commaSeparated=!1;Ht.prototype.defined=!1;Ht.prototype.mustUseProperty=!1;Ht.prototype.number=!1;Ht.prototype.overloadedBoolean=!1;Ht.prototype.property="";Ht.prototype.spaceSeparated=!1;Ht.prototype.space=void 0;var Nd={};_(Nd,{boolean:()=>te,booleanish:()=>it,commaOrSpaceSeparated:()=>Fn,commaSeparated:()=>Mr,number:()=>N,overloadedBoolean:()=>Cf,spaceSeparated:()=>$e});var QW=0,te=HA(),it=HA(),Cf=HA(),N=HA(),$e=HA(),Mr=HA(),Fn=HA();function HA(){return 2**++QW}var H_=Object.keys(Nd),PA=class extends Ht{constructor(t,n,o,a){let r=-1;if(super(t,n),CN(this,"space",a),typeof o=="number")for(;++r<H_.length;){let A=H_[r];CN(this,H_[r],(o&Nd[A])===Nd[A])}}};PA.prototype.defined=!0;function CN(e,t,n){n&&(e[t]=n)}function Ba(e){let t={},n={};for(let[o,a]of Object.entries(e.properties)){let r=new PA(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(r.mustUseProperty=!0),t[o]=r,n[Rd(o)]=o,n[Rd(r.attribute)]=o}return new Uo(t,n,e.space)}var P_=Ba({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:$e,ariaCurrent:null,ariaDescribedBy:$e,ariaDetails:null,ariaDisabled:it,ariaDropEffect:$e,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:$e,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$e,ariaLevel:N,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:$e,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:$e,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:it,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yf(e,t){return t in e?e[t]:t}function wf(e,t){return yf(e,t.toLowerCase())}var yN=Ba({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mr,acceptCharset:$e,accessKey:$e,action:null,allow:null,allowFullScreen:te,allowPaymentRequest:te,allowUserMedia:te,alt:null,as:null,async:te,autoCapitalize:null,autoComplete:$e,autoFocus:te,autoPlay:te,blocking:$e,capture:null,charSet:null,checked:te,cite:null,className:$e,cols:N,colSpan:null,content:null,contentEditable:it,controls:te,controlsList:$e,coords:N|Mr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:te,defer:te,dir:null,dirName:null,disabled:te,download:Cf,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:te,formTarget:null,headers:$e,height:N,hidden:Cf,high:N,href:null,hrefLang:null,htmlFor:$e,httpEquiv:$e,id:null,imageSizes:null,imageSrcSet:null,inert:te,inputMode:null,integrity:null,is:null,isMap:te,itemId:null,itemProp:$e,itemRef:$e,itemScope:te,itemType:$e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:te,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,multiple:te,muted:te,name:null,nonce:null,noModule:te,noValidate:te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:te,optimum:N,pattern:null,ping:$e,placeholder:null,playsInline:te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:te,referrerPolicy:null,rel:$e,required:te,reversed:te,rows:N,rowSpan:N,sandbox:$e,scope:null,scoped:te,seamless:te,selected:te,shadowRootClonable:te,shadowRootDelegatesFocus:te,shadowRootMode:null,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:te,useMap:null,value:it,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$e,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:te,declare:te,event:null,face:null,frame:null,frameBorder:null,hSpace:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:te,noHref:te,noShade:te,noWrap:te,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:te,disableRemotePlayback:te,prefix:null,property:null,results:N,security:null,unselectable:null},space:"html",transform:wf});var wN=Ba({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Fn,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:$e,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:te,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Mr,g2:Mr,glyphName:Mr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:Fn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:N,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fn,rev:Fn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fn,requiredFeatures:Fn,requiredFonts:Fn,requiredFormats:Fn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:Fn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fn,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yf});var U_=Ba({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var T_=Ba({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:wf});var q_=Ba({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var IW=/[A-Z]/g,EN=/-[a-z]/g,_W=/^data[-\w.:]+$/i;function O_(e,t){let n=Rd(t),o=t,a=Ht;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_W.test(t)){if(t.charAt(4)==="-"){let r=t.slice(5).replace(EN,xW);o="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{let r=t.slice(4);if(!EN.test(r)){let A=r.replace(IW,vW);A.charAt(0)!=="-"&&(A="-"+A),t="data"+A}}a=PA}return new a(o,t)}function vW(e){return"-"+e.toLowerCase()}function xW(e){return e.charAt(1).toUpperCase()}var kN=G_([P_,yN,U_,T_,q_],"html"),Ef=G_([P_,wN,U_,T_,q_],"svg");var QN={}.hasOwnProperty;function IN(e,t){let n=t||{};function o(a,...r){let A=o.invalid,i=o.handlers;if(a&&QN.call(a,e)){let s=String(a[e]);A=QN.call(i,s)?i[s]:o.unknown}if(A)return A.call(this,a,...r)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}var DW=/["&'<>`]/g,FW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,SW=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,LW=/[|\\{}()[\]^$+*?.]/g,_N=new WeakMap;function vN(e,t){if(e=e.replace(t.subset?$W(t.subset):DW,o),t.subset||t.escapeOnly)return e;return e.replace(FW,n).replace(SW,o);function n(a,r,A){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,A.charCodeAt(r+2),t)}function o(a,r,A){return t.format(a.charCodeAt(0),A.charCodeAt(r+1),t)}}function $W(e){let t=_N.get(e);return t||(t=RW(e),_N.set(e,t)),t}function RW(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(LW,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var NW=/[\dA-Fa-f]/;function xN(e,t,n){let o="&#x"+e.toString(16).toUpperCase();return n&&t&&!NW.test(String.fromCharCode(t))?o:o+";"}var MW=/\d/;function DN(e,t,n){let o="&#"+String(e);return n&&t&&!MW.test(String.fromCharCode(t))?o:o+";"}var FN=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var kf={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var SN=["cent","copy","divide","gt","lt","not","para","times"];var LN={}.hasOwnProperty,z_={},Qf;for(Qf in kf)LN.call(kf,Qf)&&(z_[kf[Qf]]=Qf);var jW=/[^\dA-Za-z]/;function $N(e,t,n,o){let a=String.fromCharCode(e);if(LN.call(z_,a)){let r=z_[a],A="&"+r;return n&&FN.includes(r)&&!SN.includes(r)&&(!o||t&&t!==61&&jW.test(String.fromCharCode(t)))?A:A+";"}return""}function RN(e,t,n){let o=xN(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=$N(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){let r=DN(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function To(e,t){return vN(e,Object.assign({format:RN},t))}var GW=/^>|^->|<!--|-->|--!>|<!-$/g,HW=[">"],PW=["<",">"];function NN(e,t,n,o){return o.settings.bogusComments?"<?"+To(e.value,Object.assign({},o.settings.characterReferences,{subset:HW}))+">":"<!--"+e.value.replace(GW,a)+"-->";function a(r){return To(r,Object.assign({},o.settings.characterReferences,{subset:PW}))}}function MN(e,t,n,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function Y_(e,t){let n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(t);for(;a!==-1;)o++,a=n.indexOf(t,a+t.length);return o}function jN(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function GN(e){return e.join(" ").trim()}var UW=/[ \t\n\f\r]/g;function UA(e){return typeof e=="object"?e.type==="text"?HN(e.value):!1:HN(e)}function HN(e){return e.replace(UW,"")===""}var gt=PN(1),K_=PN(-1),TW=[];function PN(e){return t;function t(n,o,a){let r=n?n.children:TW,A=(o||0)+e,i=r[A];if(!a)for(;i&&UA(i);)A+=e,i=r[A];return i}}var qW={}.hasOwnProperty;function If(e){return t;function t(n,o,a){return qW.call(e,n.tagName)&&e[n.tagName](n,o,a)}}var Md=If({body:zW,caption:J_,colgroup:J_,dd:WW,dt:JW,head:J_,html:OW,li:KW,optgroup:ZW,option:VW,p:YW,rp:UN,rt:UN,tbody:eZ,td:TN,tfoot:tZ,th:TN,thead:XW,tr:nZ});function J_(e,t,n){let o=gt(n,t,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&UA(o.value.charAt(0)))}function OW(e,t,n){let o=gt(n,t);return!o||o.type!=="comment"}function zW(e,t,n){let o=gt(n,t);return!o||o.type!=="comment"}function YW(e,t,n){let o=gt(n,t);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function KW(e,t,n){let o=gt(n,t);return!o||o.type==="element"&&o.tagName==="li"}function JW(e,t,n){let o=gt(n,t);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function WW(e,t,n){let o=gt(n,t);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function UN(e,t,n){let o=gt(n,t);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function ZW(e,t,n){let o=gt(n,t);return!o||o.type==="element"&&o.tagName==="optgroup"}function VW(e,t,n){let o=gt(n,t);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function XW(e,t,n){let o=gt(n,t);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function eZ(e,t,n){let o=gt(n,t);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function tZ(e,t,n){return!gt(n,t)}function nZ(e,t,n){let o=gt(n,t);return!o||o.type==="element"&&o.tagName==="tr"}function TN(e,t,n){let o=gt(n,t);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}var qN=If({body:rZ,colgroup:AZ,head:oZ,html:aZ,tbody:iZ});function aZ(e){let t=gt(e,-1);return!t||t.type!=="comment"}function oZ(e){let t=new Set;for(let o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(t.has(o.tagName))return!1;t.add(o.tagName)}let n=e.children[0];return!n||n.type==="element"}function rZ(e){let t=gt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&UA(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function AZ(e,t,n){let o=K_(n,t),a=gt(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&Md(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function iZ(e,t,n){let o=K_(n,t),a=gt(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&Md(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}var _f={name:[[`
78
78
  \f\r &/=>`.split(""),`