makeables 0.4.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +44 -5
  2. package/dist/assets/stickers/community/brew-fx.webp +0 -0
  3. package/dist/assets/stickers/community/brew.webp +0 -0
  4. package/dist/assets/stickers/community/crafter-fx.webp +0 -0
  5. package/dist/assets/stickers/community/crafter.webp +0 -0
  6. package/dist/assets/stickers/community/friday-fx.webp +0 -0
  7. package/dist/assets/stickers/community/friday.webp +0 -0
  8. package/dist/assets/stickers/community/provenance.json +43 -0
  9. package/dist/assets/stickers/typingmind/absolutely-right-fx.webp +0 -0
  10. package/dist/assets/stickers/typingmind/absolutely-right.webp +0 -0
  11. package/dist/assets/stickers/typingmind/agi-disco-fx.webp +0 -0
  12. package/dist/assets/stickers/typingmind/agi-disco.webp +0 -0
  13. package/dist/assets/stickers/typingmind/agi-is-coming-fx.webp +0 -0
  14. package/dist/assets/stickers/typingmind/agi-is-coming.webp +0 -0
  15. package/dist/assets/stickers/typingmind/cmd-enter-fx.webp +0 -0
  16. package/dist/assets/stickers/typingmind/cmd-enter.webp +0 -0
  17. package/dist/assets/stickers/typingmind/emotional-support-fx.webp +0 -0
  18. package/dist/assets/stickers/typingmind/emotional-support.webp +0 -0
  19. package/dist/assets/stickers/typingmind/energy-fx.webp +0 -0
  20. package/dist/assets/stickers/typingmind/energy.webp +0 -0
  21. package/dist/assets/stickers/typingmind/motion-fx.webp +0 -0
  22. package/dist/assets/stickers/typingmind/motion.webp +0 -0
  23. package/dist/assets/stickers/typingmind/provenance.json +97 -0
  24. package/dist/assets/stickers/typingmind/typingmind-fx.webp +0 -0
  25. package/dist/assets/stickers/typingmind/typingmind.webp +0 -0
  26. package/dist/assets/stickers/typingmind/youre-cooked-fx.webp +0 -0
  27. package/dist/assets/stickers/typingmind/youre-cooked.webp +0 -0
  28. package/dist/chunk-4AJQBAFB.js +22687 -0
  29. package/dist/cli.js +503 -20456
  30. package/dist/mcp-LXTO7XOO.js +407 -0
  31. package/dist/mcp-app.html +180 -0
  32. package/package.json +5 -3
@@ -0,0 +1,180 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Makeables Studio</title>
7
+ <style>
8
+ :root {
9
+ color-scheme: light dark;
10
+ font-family: var(--font-sans, system-ui, sans-serif);
11
+ color: var(--color-text-primary, light-dark(#202020, #ededeb));
12
+ background: var(--color-background-primary, light-dark(#fff, #191919));
13
+ --muted: var(--color-text-secondary, light-dark(#73736f, #999994));
14
+ --line: var(--color-border-primary, light-dark(#e6e6e2, #333330));
15
+ --surface: var(--color-background-secondary, light-dark(#f5f5f2, #242422));
16
+ }
17
+ * { box-sizing: border-box; }
18
+ body { margin: 0; padding: 12px; }
19
+ button, select, textarea { font: inherit; color: inherit; }
20
+ button, select { min-height: 30px; border-radius: 6px; cursor: pointer; }
21
+ button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; background: transparent; padding: 5px 8px; font-size: 12px; font-weight: 500; }
22
+ button:hover, select:hover { background: var(--surface); }
23
+ button:disabled, select:disabled { opacity: .4; cursor: default; }
24
+ button:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
25
+ svg { width: 15px; height: 15px; flex: none; }
26
+ .topbar, .toolbar, .actions, .tools { display: flex; align-items: center; gap: 6px; }
27
+ .topbar { gap: 9px; }
28
+ .mark { color: var(--muted); width: 17px; height: 17px; }
29
+ h1 { flex: 1; min-width: 0; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
30
+ .icon-button { width: 30px; padding: 6px; color: var(--muted); }
31
+ .primary { color: var(--color-background-primary, light-dark(#fff, #191919)); background: var(--color-text-primary, light-dark(#202020, #ededeb)); }
32
+ .primary:hover { opacity: .88; background: var(--color-text-primary, light-dark(#202020, #ededeb)); }
33
+ .export { position: relative; }
34
+ .export-menu { position: absolute; z-index: 2; right: 0; top: calc(100% + 6px); width: 180px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--color-background-primary, light-dark(#fff, #191919)); box-shadow: 0 8px 24px #0002; }
35
+ .export-menu button { width: 100%; justify-content: flex-start; padding: 8px 10px; }
36
+ .stage { position: relative; display: grid; place-items: center; height: clamp(220px, 56vw, 320px); margin: 10px 0 8px; border-radius: 9px; overflow: hidden; background: var(--surface); }
37
+ .stage img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 12px; object-fit: contain; filter: drop-shadow(0 3px 5px #0002); }
38
+ #empty { font-size: 12px; color: var(--muted); }
39
+ #preview-kind { position: absolute; bottom: 8px; right: 10px; color: var(--muted); font-size: 10px; }
40
+ .toolbar { justify-content: space-between; flex-wrap: wrap; }
41
+ .tools { gap: 8px; }
42
+ .faces { display: flex; gap: 2px; margin: 0; border: 0; background: var(--surface); padding: 2px; border-radius: 6px; }
43
+ .faces button { min-height: 24px; padding: 3px 9px; font-size: 11px; color: var(--muted); }
44
+ .faces [aria-pressed=true] { color: inherit; background: var(--color-background-primary, light-dark(#fff, #191919)); box-shadow: 0 1px 3px #0001; }
45
+ .finish-control { position: relative; display: inline-flex; align-items: center; }
46
+ .select-chevron { position: absolute; top: 50%; right: 9px; width: 14px; height: 14px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
47
+ #finish { appearance: none; max-width: 150px; padding: 4px 30px 4px 10px; font-size: 12px; border: 1px solid var(--line); background-color: transparent; }
48
+ #edit-toggle { color: var(--muted); }
49
+ #edit-toggle[aria-expanded=true] { color: inherit; background: var(--surface); }
50
+ #status { min-width: 0; margin: 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
51
+ #status[data-error=true] { flex-basis: 100%; color: light-dark(#a32414, #ffab91); padding-top: 4px; }
52
+ #export-note { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
53
+ #controls { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; }
54
+ #texts { display: grid; gap: 8px; }
55
+ #texts label { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 2.2fr); align-items: center; gap: 12px; font-size: 11px; color: var(--muted); }
56
+ textarea { display: block; width: 100%; min-width: 0; min-height: 32px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--color-text-primary, light-dark(#202020, #ededeb)); font-size: 12px; line-height: 18px; resize: vertical; }
57
+ .edit-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
58
+ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
59
+ .stage img[hidden], [hidden] { display: none; }
60
+ @media (max-width: 380px) {
61
+ body { padding: 10px; }
62
+ .topbar { gap: 6px; }
63
+ .mark { display: none; }
64
+ .tools { gap: 4px; }
65
+ #finish { max-width: 128px; }
66
+ #texts label { gap: 8px; }
67
+ }
68
+ </style>
69
+ </head>
70
+ <body>
71
+ <header class="topbar">
72
+ <svg class="mark" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5" aria-label="Makeables" role="img"><path d="M10 1v18M1 10h18M3.6 3.6l12.8 12.8M3.6 16.4 16.4 3.6"/></svg>
73
+ <h1 id="title">Your design</h1>
74
+ <div class="actions">
75
+ <button class="icon-button" type="button" id="refresh" disabled aria-label="Refresh preview" title="Refresh preview"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M16 7a6.5 6.5 0 1 0 .3 5M16 2v5h-5" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
76
+ <div class="export">
77
+ <button class="primary" type="button" id="export" disabled aria-expanded="false" aria-controls="export-options">Export<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="m6 8 4 4 4-4" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
78
+ <div id="export-options" class="export-menu" hidden>
79
+ <button type="button" id="png" disabled>PNG image</button>
80
+ <button type="button" id="package" disabled>Makeables file</button>
81
+ <button type="button" id="json" disabled>Editable JSON</button>
82
+ </div>
83
+ </div>
84
+ </div>
85
+ </header>
86
+ <div class="stage">
87
+ <span id="empty">Preparing your design…</span>
88
+ <img id="preview" hidden alt="">
89
+ <span id="preview-kind" hidden>Flat artwork</span>
90
+ </div>
91
+ <div class="toolbar">
92
+ <div class="tools">
93
+ <fieldset id="faces" class="faces" aria-label="Preview side" hidden>
94
+ <button type="button" id="front" disabled aria-pressed="true">Front</button>
95
+ <button type="button" id="back" disabled aria-pressed="false">Back</button>
96
+ </fieldset>
97
+ <label id="finish-label" class="finish-control" hidden><span class="sr-only">Sticker finish</span><select id="finish" disabled><option value="vinyl">Vinyl</option><option value="glitter">Glitter</option><option value="holographic">Holographic</option></select><svg class="select-chevron" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="m6 8 4 4 4-4" stroke-linecap="round" stroke-linejoin="round"/></svg></label>
98
+ <button type="button" id="edit-toggle" aria-expanded="false" aria-controls="controls" hidden><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="m13 3 4 4M3 17l4-1L17 6a2.8 2.8 0 0 0-4-4L3 12z" stroke-linecap="round" stroke-linejoin="round"/></svg>Edit text</button>
99
+ </div>
100
+ <p id="status" role="status" aria-live="polite">Connecting…</p>
101
+ </div>
102
+ <p id="export-note" hidden>Downloads unavailable here. Export the saved file with the CLI.</p>
103
+ <section id="controls" aria-label="Edit text" hidden>
104
+ <div id="texts"></div>
105
+ <div id="edit-actions" class="edit-actions" hidden>
106
+ <button type="button" id="reset">Reset</button>
107
+ <button id="apply" class="primary" type="button" disabled>Save changes</button>
108
+ </div>
109
+ </section>
110
+ <script type="module">var bm=Object.defineProperty;var Ne=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,n)=>(typeof require<"u"?require:r)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var k=(t,r)=>()=>(t&&(r=t(t=0)),r);var ze=(t,r)=>{for(var n in r)bm(t,n,{get:r[n],enumerable:!0})};function u(t,r,n){function i(c,l){var h;Object.defineProperty(c,"_zod",{value:c._zod??{},enumerable:!1}),(h=c._zod).traits??(h.traits=new Set),c._zod.traits.add(t),r(c,l);for(let f in a.prototype)f in c||Object.defineProperty(c,f,{value:a.prototype[f].bind(c)});c._zod.constr=a,c._zod.def=l}let e=n?.Parent??Object;class o extends e{}Object.defineProperty(o,"name",{value:t});function a(c){var l;let h=n?.Parent?new o:this;i(h,c),(l=h._zod).deferred??(l.deferred=[]);for(let f of h._zod.deferred)f();return h}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:c=>n?.Parent&&c instanceof n.Parent?!0:c?._zod?.traits?.has(t)}),Object.defineProperty(a,"name",{value:t}),a}function W(t){return t&&Object.assign(Pt,t),Pt}var Ir,jr,pe,Pt,Be=k(()=>{Ir=Object.freeze({status:"aborted"});jr=Symbol("zod_brand"),pe=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Pt={}});var y={};ze(y,{BIGINT_FORMAT_RANGES:()=>Ro,Class:()=>Po,NUMBER_FORMAT_RANGES:()=>Zo,aborted:()=>Ee,allowsEval:()=>Uo,assert:()=>zm,assertEqual:()=>_m,assertIs:()=>$m,assertNever:()=>xm,assertNotEqual:()=>ym,assignProp:()=>No,cached:()=>Nt,captureStackTrace:()=>Pr,cleanEnum:()=>Zm,cleanRegex:()=>Ut,clone:()=>oe,createTransparentProxy:()=>Pm,defineLazy:()=>R,esc:()=>Ue,escapeRegex:()=>_e,extend:()=>Nm,finalizeIssue:()=>se,floatSafeRemainder:()=>Oo,getElementAtPath:()=>km,getEnumValues:()=>Ot,getLengthableOrigin:()=>Zt,getParsedType:()=>jm,getSizableOrigin:()=>Dt,isObject:()=>We,isPlainObject:()=>Ke,issue:()=>Ao,joinValues:()=>g,jsonStringifyReplacer:()=>To,merge:()=>Um,normalizeParams:()=>v,nullish:()=>ke,numKeys:()=>Im,omit:()=>Om,optionalKeys:()=>Do,partial:()=>Em,pick:()=>Tm,prefixIssues:()=>ie,primitiveTypes:()=>Eo,promiseAllObject:()=>Sm,propertyKeyTypes:()=>Et,randomString:()=>wm,required:()=>Dm,stringifyPrimitive:()=>_,unwrapMessage:()=>Tt});function _m(t){return t}function ym(t){return t}function $m(t){}function xm(t){throw new Error}function zm(t){}function Ot(t){let r=Object.values(t).filter(i=>typeof i=="number");return Object.entries(t).filter(([i,e])=>r.indexOf(+i)===-1).map(([i,e])=>e)}function g(t,r="|"){return t.map(n=>_(n)).join(r)}function To(t,r){return typeof r=="bigint"?r.toString():r}function Nt(t){return{get value(){{let n=t();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function ke(t){return t==null}function Ut(t){let r=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(r,n)}function Oo(t,r){let n=(t.toString().split(".")[1]||"").length,i=(r.toString().split(".")[1]||"").length,e=n>i?n:i,o=Number.parseInt(t.toFixed(e).replace(".","")),a=Number.parseInt(r.toFixed(e).replace(".",""));return o%a/10**e}function R(t,r,n){Object.defineProperty(t,r,{get(){{let e=n();return t[r]=e,e}throw new Error("cached value already set")},set(e){Object.defineProperty(t,r,{value:e})},configurable:!0})}function No(t,r,n){Object.defineProperty(t,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function km(t,r){return r?r.reduce((n,i)=>n?.[i],t):t}function Sm(t){let r=Object.keys(t),n=r.map(i=>t[i]);return Promise.all(n).then(i=>{let e={};for(let o=0;o<r.length;o++)e[r[o]]=i[o];return e})}function wm(t=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<t;i++)n+=r[Math.floor(Math.random()*r.length)];return n}function Ue(t){return JSON.stringify(t)}function We(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ke(t){if(We(t)===!1)return!1;let r=t.constructor;if(r===void 0)return!0;let n=r.prototype;return!(We(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Im(t){let r=0;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&r++;return r}function _e(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function oe(t,r,n){let i=new t._zod.constr(r??t._zod.def);return(!r||n?.parent)&&(i._zod.parent=t),i}function v(t){let r=t;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Pm(t){let r;return new Proxy({},{get(n,i,e){return r??(r=t()),Reflect.get(r,i,e)},set(n,i,e,o){return r??(r=t()),Reflect.set(r,i,e,o)},has(n,i){return r??(r=t()),Reflect.has(r,i)},deleteProperty(n,i){return r??(r=t()),Reflect.deleteProperty(r,i)},ownKeys(n){return r??(r=t()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,i){return r??(r=t()),Reflect.getOwnPropertyDescriptor(r,i)},defineProperty(n,i,e){return r??(r=t()),Reflect.defineProperty(r,i,e)}})}function _(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Do(t){return Object.keys(t).filter(r=>t[r]._zod.optin==="optional"&&t[r]._zod.optout==="optional")}function Tm(t,r){let n={},i=t._zod.def;for(let e in r){if(!(e in i.shape))throw new Error(`Unrecognized key: "${e}"`);r[e]&&(n[e]=i.shape[e])}return oe(t,{...t._zod.def,shape:n,checks:[]})}function Om(t,r){let n={...t._zod.def.shape},i=t._zod.def;for(let e in r){if(!(e in i.shape))throw new Error(`Unrecognized key: "${e}"`);r[e]&&delete n[e]}return oe(t,{...t._zod.def,shape:n,checks:[]})}function Nm(t,r){if(!Ke(r))throw new Error("Invalid input to extend: expected a plain object");let n={...t._zod.def,get shape(){let i={...t._zod.def.shape,...r};return No(this,"shape",i),i},checks:[]};return oe(t,n)}function Um(t,r){return oe(t,{...t._zod.def,get shape(){let n={...t._zod.def.shape,...r._zod.def.shape};return No(this,"shape",n),n},catchall:r._zod.def.catchall,checks:[]})}function Em(t,r,n){let i=r._zod.def.shape,e={...i};if(n)for(let o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(e[o]=t?new t({type:"optional",innerType:i[o]}):i[o])}else for(let o in i)e[o]=t?new t({type:"optional",innerType:i[o]}):i[o];return oe(r,{...r._zod.def,shape:e,checks:[]})}function Dm(t,r,n){let i=r._zod.def.shape,e={...i};if(n)for(let o in n){if(!(o in e))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(e[o]=new t({type:"nonoptional",innerType:i[o]}))}else for(let o in i)e[o]=new t({type:"nonoptional",innerType:i[o]});return oe(r,{...r._zod.def,shape:e,checks:[]})}function Ee(t,r=0){for(let n=r;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}function ie(t,r){return r.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(t),n})}function Tt(t){return typeof t=="string"?t:t?.message}function se(t,r,n){let i={...t,path:t.path??[]};if(!t.message){let e=Tt(t.inst?._zod.def?.error?.(t))??Tt(r?.error?.(t))??Tt(n.customError?.(t))??Tt(n.localeError?.(t))??"Invalid input";i.message=e}return delete i.inst,delete i.continue,r?.reportInput||delete i.input,i}function Dt(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Zt(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Ao(...t){let[r,n,i]=t;return typeof r=="string"?{message:r,code:"custom",input:n,inst:i}:{...r}}function Zm(t){return Object.entries(t).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}var Pr,Uo,jm,Et,Eo,Zo,Ro,Po,P=k(()=>{Pr=Error.captureStackTrace?Error.captureStackTrace:(...t)=>{};Uo=Nt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});jm=t=>{let r=typeof t;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Et=new Set(["string","number","symbol"]),Eo=new Set(["string","number","bigint","boolean","symbol","undefined"]);Zo={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ro={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};Po=class{constructor(...r){}}});function Qe(t,r=n=>n.message){let n={},i=[];for(let e of t.issues)e.path.length>0?(n[e.path[0]]=n[e.path[0]]||[],n[e.path[0]].push(r(e))):i.push(r(e));return{formErrors:i,fieldErrors:n}}function Ye(t,r){let n=r||function(o){return o.message},i={_errors:[]},e=o=>{for(let a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>e({issues:c}));else if(a.code==="invalid_key")e({issues:a.issues});else if(a.code==="invalid_element")e({issues:a.issues});else if(a.path.length===0)i._errors.push(n(a));else{let c=i,l=0;for(;l<a.path.length;){let h=a.path[l];l===a.path.length-1?(c[h]=c[h]||{_errors:[]},c[h]._errors.push(n(a))):c[h]=c[h]||{_errors:[]},c=c[h],l++}}};return e(t),i}function Tr(t,r){let n=r||function(o){return o.message},i={errors:[]},e=(o,a=[])=>{var c,l;for(let h of o.issues)if(h.code==="invalid_union"&&h.errors.length)h.errors.map(f=>e({issues:f},h.path));else if(h.code==="invalid_key")e({issues:h.issues},h.path);else if(h.code==="invalid_element")e({issues:h.issues},h.path);else{let f=[...a,...h.path];if(f.length===0){i.errors.push(n(h));continue}let m=i,$=0;for(;$<f.length;){let b=f[$],p=$===f.length-1;typeof b=="string"?(m.properties??(m.properties={}),(c=m.properties)[b]??(c[b]={errors:[]}),m=m.properties[b]):(m.items??(m.items=[]),(l=m.items)[b]??(l[b]={errors:[]}),m=m.items[b]),p&&m.errors.push(n(h)),$++}}};return e(t),i}function Vc(t){let r=[];for(let n of t)typeof n=="number"?r.push(`[${n}]`):typeof n=="symbol"?r.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?r.push(`[${JSON.stringify(n)}]`):(r.length&&r.push("."),r.push(n));return r.join("")}function Or(t){let r=[],n=[...t.issues].sort((i,e)=>i.path.length-e.path.length);for(let i of n)r.push(`\u2716 ${i.message}`),i.path?.length&&r.push(` \u2192 at ${Vc(i.path)}`);return r.join(`
111
+ `)}var qc,Rt,Ge,Co=k(()=>{Be();P();qc=(t,r)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:r,enumerable:!1}),Object.defineProperty(t,"message",{get(){return JSON.stringify(r,To,2)},enumerable:!0}),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Rt=u("$ZodError",qc),Ge=u("$ZodError",qc,{Parent:Error})});var Nr,At,Ur,Ct,Er,Xe,Dr,Mt,Zr=k(()=>{Be();Co();P();Nr=t=>(r,n,i,e)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},a=r._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new pe;if(a.issues.length){let c=new(e?.Err??t)(a.issues.map(l=>se(l,o,W())));throw Pr(c,e?.callee),c}return a.value},At=Nr(Ge),Ur=t=>async(r,n,i,e)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},a=r._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(e?.Err??t)(a.issues.map(l=>se(l,o,W())));throw Pr(c,e?.callee),c}return a.value},Ct=Ur(Ge),Er=t=>(r,n,i)=>{let e=i?{...i,async:!1}:{async:!1},o=r._zod.run({value:n,issues:[]},e);if(o instanceof Promise)throw new pe;return o.issues.length?{success:!1,error:new(t??Rt)(o.issues.map(a=>se(a,e,W())))}:{success:!0,data:o.value}},Xe=Er(Ge),Dr=t=>async(r,n,i)=>{let e=i?Object.assign(i,{async:!0}):{async:!0},o=r._zod.run({value:n,issues:[]},e);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new t(o.issues.map(a=>se(a,e,W())))}:{success:!0,data:o.value}},Mt=Dr(Ge)});var Se={};ze(Se,{_emoji:()=>Hc,base64:()=>ei,base64url:()=>Rr,bigint:()=>si,boolean:()=>li,browserEmail:()=>Fm,cidrv4:()=>Yo,cidrv6:()=>Xo,cuid:()=>Mo,cuid2:()=>Lo,date:()=>ni,datetime:()=>ii,domain:()=>Jm,duration:()=>Jo,e164:()=>ri,email:()=>Wo,emoji:()=>Ko,extendedDuration:()=>Am,guid:()=>Bo,hostname:()=>ti,html5Email:()=>qm,integer:()=>ci,ipv4:()=>Go,ipv6:()=>Qo,ksuid:()=>Ho,lowercase:()=>pi,nanoid:()=>Fo,null:()=>di,number:()=>ui,rfc5322Email:()=>Vm,string:()=>ai,time:()=>oi,ulid:()=>qo,undefined:()=>mi,unicodeEmail:()=>Hm,uppercase:()=>fi,uuid:()=>De,uuid4:()=>Cm,uuid6:()=>Mm,uuid7:()=>Lm,xid:()=>Vo});function Ko(){return new RegExp(Hc,"u")}function Jc(t){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${r}`:t.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${t.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function oi(t){return new RegExp(`^${Jc(t)}$`)}function ii(t){let r=Jc({precision:t.precision}),n=["Z"];t.local&&n.push(""),t.offset&&n.push("([+-]\\d{2}:\\d{2})");let i=`${r}(?:${n.join("|")})`;return new RegExp(`^${Fc}T(?:${i})$`)}var Mo,Lo,qo,Vo,Ho,Fo,Jo,Am,Bo,De,Cm,Mm,Lm,Wo,qm,Vm,Hm,Fm,Hc,Go,Qo,Yo,Xo,ei,Rr,ti,Jm,ri,Fc,ni,ai,si,ci,ui,li,di,mi,pi,fi,Ar=k(()=>{Mo=/^[cC][^\s-]{8,}$/,Lo=/^[0-9a-z]+$/,qo=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Vo=/^[0-9a-vA-V]{20}$/,Ho=/^[A-Za-z0-9]{27}$/,Fo=/^[a-zA-Z0-9_-]{21}$/,Jo=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Am=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Bo=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,De=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,Cm=De(4),Mm=De(6),Lm=De(7),Wo=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,qm=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Vm=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Hm=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Fm=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Hc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";Go=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Qo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Yo=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Xo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ei=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Rr=/^[A-Za-z0-9_-]*$/,ti=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Jm=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ri=/^\+(?:[0-9]){6,14}[0-9]$/,Fc="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ni=new RegExp(`^${Fc}$`);ai=t=>{let r=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},si=/^\d+n?$/,ci=/^\d+$/,ui=/^-?\d+(?:\.\d+)?/i,li=/true|false/i,di=/null/i,mi=/undefined/i,pi=/^[^A-Z]*$/,fi=/^[^a-z]*$/});function Bc(t,r,n){t.issues.length&&r.issues.push(...ie(n,t.issues))}var B,Wc,Cr,Mr,gi,hi,vi,bi,_i,yi,$i,xi,zi,et,ki,Si,wi,Ii,ji,Pi,Ti,Oi,Ni,Lr=k(()=>{Be();Ar();P();B=u("$ZodCheck",(t,r)=>{var n;t._zod??(t._zod={}),t._zod.def=r,(n=t._zod).onattach??(n.onattach=[])}),Wc={number:"number",bigint:"bigint",object:"date"},Cr=u("$ZodCheckLessThan",(t,r)=>{B.init(t,r);let n=Wc[typeof r.value];t._zod.onattach.push(i=>{let e=i._zod.bag,o=(r.inclusive?e.maximum:e.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<o&&(r.inclusive?e.maximum=r.value:e.exclusiveMaximum=r.value)}),t._zod.check=i=>{(r.inclusive?i.value<=r.value:i.value<r.value)||i.issues.push({origin:n,code:"too_big",maximum:r.value,input:i.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),Mr=u("$ZodCheckGreaterThan",(t,r)=>{B.init(t,r);let n=Wc[typeof r.value];t._zod.onattach.push(i=>{let e=i._zod.bag,o=(r.inclusive?e.minimum:e.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>o&&(r.inclusive?e.minimum=r.value:e.exclusiveMinimum=r.value)}),t._zod.check=i=>{(r.inclusive?i.value>=r.value:i.value>r.value)||i.issues.push({origin:n,code:"too_small",minimum:r.value,input:i.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),gi=u("$ZodCheckMultipleOf",(t,r)=>{B.init(t,r),t._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=r.value)}),t._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):Oo(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:t,continue:!r.abort})}}),hi=u("$ZodCheckNumberFormat",(t,r)=>{B.init(t,r),r.format=r.format||"float64";let n=r.format?.includes("int"),i=n?"int":"number",[e,o]=Zo[r.format];t._zod.onattach.push(a=>{let c=a._zod.bag;c.format=r.format,c.minimum=e,c.maximum=o,n&&(c.pattern=ci)}),t._zod.check=a=>{let c=a.value;if(n){if(!Number.isInteger(c)){a.issues.push({expected:i,format:r.format,code:"invalid_type",input:c,inst:t});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,continue:!r.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,continue:!r.abort});return}}c<e&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:e,inclusive:!0,inst:t,continue:!r.abort}),c>o&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:o,inst:t})}}),vi=u("$ZodCheckBigIntFormat",(t,r)=>{B.init(t,r);let[n,i]=Ro[r.format];t._zod.onattach.push(e=>{let o=e._zod.bag;o.format=r.format,o.minimum=n,o.maximum=i}),t._zod.check=e=>{let o=e.value;o<n&&e.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!r.abort}),o>i&&e.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:t})}}),bi=u("$ZodCheckMaxSize",(t,r)=>{var n;B.init(t,r),(n=t._zod.def).when??(n.when=i=>{let e=i.value;return!ke(e)&&e.size!==void 0}),t._zod.onattach.push(i=>{let e=i._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<e&&(i._zod.bag.maximum=r.maximum)}),t._zod.check=i=>{let e=i.value;e.size<=r.maximum||i.issues.push({origin:Dt(e),code:"too_big",maximum:r.maximum,input:e,inst:t,continue:!r.abort})}}),_i=u("$ZodCheckMinSize",(t,r)=>{var n;B.init(t,r),(n=t._zod.def).when??(n.when=i=>{let e=i.value;return!ke(e)&&e.size!==void 0}),t._zod.onattach.push(i=>{let e=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>e&&(i._zod.bag.minimum=r.minimum)}),t._zod.check=i=>{let e=i.value;e.size>=r.minimum||i.issues.push({origin:Dt(e),code:"too_small",minimum:r.minimum,input:e,inst:t,continue:!r.abort})}}),yi=u("$ZodCheckSizeEquals",(t,r)=>{var n;B.init(t,r),(n=t._zod.def).when??(n.when=i=>{let e=i.value;return!ke(e)&&e.size!==void 0}),t._zod.onattach.push(i=>{let e=i._zod.bag;e.minimum=r.size,e.maximum=r.size,e.size=r.size}),t._zod.check=i=>{let e=i.value,o=e.size;if(o===r.size)return;let a=o>r.size;i.issues.push({origin:Dt(e),...a?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!r.abort})}}),$i=u("$ZodCheckMaxLength",(t,r)=>{var n;B.init(t,r),(n=t._zod.def).when??(n.when=i=>{let e=i.value;return!ke(e)&&e.length!==void 0}),t._zod.onattach.push(i=>{let e=i._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<e&&(i._zod.bag.maximum=r.maximum)}),t._zod.check=i=>{let e=i.value;if(e.length<=r.maximum)return;let a=Zt(e);i.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),xi=u("$ZodCheckMinLength",(t,r)=>{var n;B.init(t,r),(n=t._zod.def).when??(n.when=i=>{let e=i.value;return!ke(e)&&e.length!==void 0}),t._zod.onattach.push(i=>{let e=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>e&&(i._zod.bag.minimum=r.minimum)}),t._zod.check=i=>{let e=i.value;if(e.length>=r.minimum)return;let a=Zt(e);i.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),zi=u("$ZodCheckLengthEquals",(t,r)=>{var n;B.init(t,r),(n=t._zod.def).when??(n.when=i=>{let e=i.value;return!ke(e)&&e.length!==void 0}),t._zod.onattach.push(i=>{let e=i._zod.bag;e.minimum=r.length,e.maximum=r.length,e.length=r.length}),t._zod.check=i=>{let e=i.value,o=e.length;if(o===r.length)return;let a=Zt(e),c=o>r.length;i.issues.push({origin:a,...c?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!r.abort})}}),et=u("$ZodCheckStringFormat",(t,r)=>{var n,i;B.init(t,r),t._zod.onattach.push(e=>{let o=e._zod.bag;o.format=r.format,r.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(r.pattern))}),r.pattern?(n=t._zod).check??(n.check=e=>{r.pattern.lastIndex=0,!r.pattern.test(e.value)&&e.issues.push({origin:"string",code:"invalid_format",format:r.format,input:e.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:t,continue:!r.abort})}):(i=t._zod).check??(i.check=()=>{})}),ki=u("$ZodCheckRegex",(t,r)=>{et.init(t,r),t._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:t,continue:!r.abort})}}),Si=u("$ZodCheckLowerCase",(t,r)=>{r.pattern??(r.pattern=pi),et.init(t,r)}),wi=u("$ZodCheckUpperCase",(t,r)=>{r.pattern??(r.pattern=fi),et.init(t,r)}),Ii=u("$ZodCheckIncludes",(t,r)=>{B.init(t,r);let n=_e(r.includes),i=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=i,t._zod.onattach.push(e=>{let o=e._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),t._zod.check=e=>{e.value.includes(r.includes,r.position)||e.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:e.value,inst:t,continue:!r.abort})}}),ji=u("$ZodCheckStartsWith",(t,r)=>{B.init(t,r);let n=new RegExp(`^${_e(r.prefix)}.*`);r.pattern??(r.pattern=n),t._zod.onattach.push(i=>{let e=i._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(n)}),t._zod.check=i=>{i.value.startsWith(r.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:i.value,inst:t,continue:!r.abort})}}),Pi=u("$ZodCheckEndsWith",(t,r)=>{B.init(t,r);let n=new RegExp(`.*${_e(r.suffix)}$`);r.pattern??(r.pattern=n),t._zod.onattach.push(i=>{let e=i._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(n)}),t._zod.check=i=>{i.value.endsWith(r.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:i.value,inst:t,continue:!r.abort})}});Ti=u("$ZodCheckProperty",(t,r)=>{B.init(t,r),t._zod.check=n=>{let i=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(i instanceof Promise)return i.then(e=>Bc(e,n,r.property));Bc(i,n,r.property)}}),Oi=u("$ZodCheckMimeType",(t,r)=>{B.init(t,r);let n=new Set(r.mime);t._zod.onattach.push(i=>{i._zod.bag.mime=r.mime}),t._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:r.mime,input:i.value.type,inst:t})}}),Ni=u("$ZodCheckOverwrite",(t,r)=>{B.init(t,r),t._zod.check=n=>{n.value=r.tx(n.value)}})});var Lt,Ui=k(()=>{Lt=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let i=r.split(`
112
+ `).filter(a=>a),e=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(e)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let r=Function,n=this?.args,e=[...(this?.content??[""]).map(o=>` ${o}`)];return new r(...n,e.join(`
113
+ `))}}});var Ei,Di=k(()=>{Ei={major:4,minor:0,patch:0}});function ra(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}function su(t){if(!Rr.test(t))return!1;let r=t.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return ra(n)}function cu(t,r=null){try{let n=t.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let e=JSON.parse(atob(i));return!("typ"in e&&e?.typ!=="JWT"||!e.alg||r&&(!("alg"in e)||e.alg!==r))}catch{return!1}}function Gc(t,r,n){t.issues.length&&r.issues.push(...ie(n,t.issues)),r.value[n]=t.value}function qr(t,r,n){t.issues.length&&r.issues.push(...ie(n,t.issues)),r.value[n]=t.value}function Qc(t,r,n,i){t.issues.length?i[n]===void 0?n in i?r.value[n]=void 0:r.value[n]=t.value:r.issues.push(...ie(n,t.issues)):t.value===void 0?n in i&&(r.value[n]=void 0):r.value[n]=t.value}function Yc(t,r,n,i){for(let e of t)if(e.issues.length===0)return r.value=e.value,r;return r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:t.map(e=>e.issues.map(o=>se(o,i,W())))}),r}function Zi(t,r){if(t===r)return{valid:!0,data:t};if(t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(Ke(t)&&Ke(r)){let n=Object.keys(r),i=Object.keys(t).filter(o=>n.indexOf(o)!==-1),e={...t,...r};for(let o of i){let a=Zi(t[o],r[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};e[o]=a.data}return{valid:!0,data:e}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<t.length;i++){let e=t[i],o=r[i],a=Zi(e,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Xc(t,r,n){if(r.issues.length&&t.issues.push(...r.issues),n.issues.length&&t.issues.push(...n.issues),Ee(t))return t;let i=Zi(r.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return t.value=i.data,t}function Vr(t,r,n){t.issues.length&&r.issues.push(...ie(n,t.issues)),r.value[n]=t.value}function eu(t,r,n,i,e,o,a){t.issues.length&&(Et.has(typeof i)?n.issues.push(...ie(i,t.issues)):n.issues.push({origin:"map",code:"invalid_key",input:e,inst:o,issues:t.issues.map(c=>se(c,a,W()))})),r.issues.length&&(Et.has(typeof i)?n.issues.push(...ie(i,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:e,inst:o,key:i,issues:r.issues.map(c=>se(c,a,W()))})),n.value.set(t.value,r.value)}function tu(t,r){t.issues.length&&r.issues.push(...t.issues),r.value.add(t.value)}function ru(t,r){return t.value===void 0&&(t.value=r.defaultValue),t}function nu(t,r){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:r}),t}function ou(t,r,n){return Ee(t)?t:r.out._zod.run({value:t.value,issues:t.issues},n)}function iu(t){return t.value=Object.freeze(t.value),t}function au(t,r,n,i){if(!t){let e={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(e.params=i._zod.def.params),r.issues.push(Ao(e))}}var T,Ze,q,Ri,Ai,Ci,Mi,Li,qi,Vi,Hi,Fi,Ji,Bi,Wi,Ki,Gi,Qi,Yi,Xi,ea,ta,na,oa,ia,aa,sa,Hr,ca,qt,Fr,ua,la,da,ma,pa,tt,fa,ga,ha,Vt,va,Jr,ba,_a,Re,ya,$a,xa,za,ka,Sa,Ht,wa,Ia,ja,Pa,Ta,Oa,Na,Ua,Ft,Ea,Da,Za,Ra,Aa,Jt=k(()=>{Lr();Be();Ui();Zr();Ar();P();Di();P();T=u("$ZodType",(t,r)=>{var n;t??(t={}),t._zod.def=r,t._zod.bag=t._zod.bag||{},t._zod.version=Ei;let i=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&i.unshift(t);for(let e of i)for(let o of e._zod.onattach)o(t);if(i.length===0)(n=t._zod).deferred??(n.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let e=(o,a,c)=>{let l=Ee(o),h;for(let f of a){if(f._zod.def.when){if(!f._zod.def.when(o))continue}else if(l)continue;let m=o.issues.length,$=f._zod.check(o);if($ instanceof Promise&&c?.async===!1)throw new pe;if(h||$ instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await $,o.issues.length!==m&&(l||(l=Ee(o,m)))});else{if(o.issues.length===m)continue;l||(l=Ee(o,m))}}return h?h.then(()=>o):o};t._zod.run=(o,a)=>{let c=t._zod.parse(o,a);if(c instanceof Promise){if(a.async===!1)throw new pe;return c.then(l=>e(l,i,a))}return e(c,i,a)}}t["~standard"]={validate:e=>{try{let o=Xe(t,e);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Mt(t,e).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Ze=u("$ZodString",(t,r)=>{T.init(t,r),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??ai(t._zod.bag),t._zod.parse=(n,i)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),q=u("$ZodStringFormat",(t,r)=>{et.init(t,r),Ze.init(t,r)}),Ri=u("$ZodGUID",(t,r)=>{r.pattern??(r.pattern=Bo),q.init(t,r)}),Ai=u("$ZodUUID",(t,r)=>{if(r.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(i===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=De(i))}else r.pattern??(r.pattern=De());q.init(t,r)}),Ci=u("$ZodEmail",(t,r)=>{r.pattern??(r.pattern=Wo),q.init(t,r)}),Mi=u("$ZodURL",(t,r)=>{q.init(t,r),t._zod.check=n=>{try{let i=n.value,e=new URL(i),o=e.href;r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(e.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:ti.source,input:n.value,inst:t,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:t,continue:!r.abort})),!i.endsWith("/")&&o.endsWith("/")?n.value=o.slice(0,-1):n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!r.abort})}}}),Li=u("$ZodEmoji",(t,r)=>{r.pattern??(r.pattern=Ko()),q.init(t,r)}),qi=u("$ZodNanoID",(t,r)=>{r.pattern??(r.pattern=Fo),q.init(t,r)}),Vi=u("$ZodCUID",(t,r)=>{r.pattern??(r.pattern=Mo),q.init(t,r)}),Hi=u("$ZodCUID2",(t,r)=>{r.pattern??(r.pattern=Lo),q.init(t,r)}),Fi=u("$ZodULID",(t,r)=>{r.pattern??(r.pattern=qo),q.init(t,r)}),Ji=u("$ZodXID",(t,r)=>{r.pattern??(r.pattern=Vo),q.init(t,r)}),Bi=u("$ZodKSUID",(t,r)=>{r.pattern??(r.pattern=Ho),q.init(t,r)}),Wi=u("$ZodISODateTime",(t,r)=>{r.pattern??(r.pattern=ii(r)),q.init(t,r)}),Ki=u("$ZodISODate",(t,r)=>{r.pattern??(r.pattern=ni),q.init(t,r)}),Gi=u("$ZodISOTime",(t,r)=>{r.pattern??(r.pattern=oi(r)),q.init(t,r)}),Qi=u("$ZodISODuration",(t,r)=>{r.pattern??(r.pattern=Jo),q.init(t,r)}),Yi=u("$ZodIPv4",(t,r)=>{r.pattern??(r.pattern=Go),q.init(t,r),t._zod.onattach.push(n=>{let i=n._zod.bag;i.format="ipv4"})}),Xi=u("$ZodIPv6",(t,r)=>{r.pattern??(r.pattern=Qo),q.init(t,r),t._zod.onattach.push(n=>{let i=n._zod.bag;i.format="ipv6"}),t._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!r.abort})}}}),ea=u("$ZodCIDRv4",(t,r)=>{r.pattern??(r.pattern=Yo),q.init(t,r)}),ta=u("$ZodCIDRv6",(t,r)=>{r.pattern??(r.pattern=Xo),q.init(t,r),t._zod.check=n=>{let[i,e]=n.value.split("/");try{if(!e)throw new Error;let o=Number(e);if(`${o}`!==e)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!r.abort})}}});na=u("$ZodBase64",(t,r)=>{r.pattern??(r.pattern=ei),q.init(t,r),t._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),t._zod.check=n=>{ra(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!r.abort})}});oa=u("$ZodBase64URL",(t,r)=>{r.pattern??(r.pattern=Rr),q.init(t,r),t._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),t._zod.check=n=>{su(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!r.abort})}}),ia=u("$ZodE164",(t,r)=>{r.pattern??(r.pattern=ri),q.init(t,r)});aa=u("$ZodJWT",(t,r)=>{q.init(t,r),t._zod.check=n=>{cu(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!r.abort})}}),sa=u("$ZodCustomStringFormat",(t,r)=>{q.init(t,r),t._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:t,continue:!r.abort})}}),Hr=u("$ZodNumber",(t,r)=>{T.init(t,r),t._zod.pattern=t._zod.bag.pattern??ui,t._zod.parse=(n,i)=>{if(r.coerce)try{n.value=Number(n.value)}catch{}let e=n.value;if(typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e))return n;let o=typeof e=="number"?Number.isNaN(e)?"NaN":Number.isFinite(e)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:e,inst:t,...o?{received:o}:{}}),n}}),ca=u("$ZodNumber",(t,r)=>{hi.init(t,r),Hr.init(t,r)}),qt=u("$ZodBoolean",(t,r)=>{T.init(t,r),t._zod.pattern=li,t._zod.parse=(n,i)=>{if(r.coerce)try{n.value=!!n.value}catch{}let e=n.value;return typeof e=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:e,inst:t}),n}}),Fr=u("$ZodBigInt",(t,r)=>{T.init(t,r),t._zod.pattern=si,t._zod.parse=(n,i)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:t}),n}}),ua=u("$ZodBigInt",(t,r)=>{vi.init(t,r),Fr.init(t,r)}),la=u("$ZodSymbol",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>{let e=n.value;return typeof e=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:e,inst:t}),n}}),da=u("$ZodUndefined",(t,r)=>{T.init(t,r),t._zod.pattern=mi,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(n,i)=>{let e=n.value;return typeof e>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:e,inst:t}),n}}),ma=u("$ZodNull",(t,r)=>{T.init(t,r),t._zod.pattern=di,t._zod.values=new Set([null]),t._zod.parse=(n,i)=>{let e=n.value;return e===null||n.issues.push({expected:"null",code:"invalid_type",input:e,inst:t}),n}}),pa=u("$ZodAny",(t,r)=>{T.init(t,r),t._zod.parse=n=>n}),tt=u("$ZodUnknown",(t,r)=>{T.init(t,r),t._zod.parse=n=>n}),fa=u("$ZodNever",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)}),ga=u("$ZodVoid",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>{let e=n.value;return typeof e>"u"||n.issues.push({expected:"void",code:"invalid_type",input:e,inst:t}),n}}),ha=u("$ZodDate",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>{if(r.coerce)try{n.value=new Date(n.value)}catch{}let e=n.value,o=e instanceof Date;return o&&!Number.isNaN(e.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:e,...o?{received:"Invalid Date"}:{},inst:t}),n}});Vt=u("$ZodArray",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>{let e=n.value;if(!Array.isArray(e))return n.issues.push({expected:"array",code:"invalid_type",input:e,inst:t}),n;n.value=Array(e.length);let o=[];for(let a=0;a<e.length;a++){let c=e[a],l=r.element._zod.run({value:c,issues:[]},i);l instanceof Promise?o.push(l.then(h=>Gc(h,n,a))):Gc(l,n,a)}return o.length?Promise.all(o).then(()=>n):n}});va=u("$ZodObject",(t,r)=>{T.init(t,r);let n=Nt(()=>{let m=Object.keys(r.shape);for(let b of m)if(!(r.shape[b]instanceof T))throw new Error(`Invalid element at key "${b}": expected a Zod schema`);let $=Do(r.shape);return{shape:r.shape,keys:m,keySet:new Set(m),numKeys:m.length,optionalKeys:new Set($)}});R(t._zod,"propValues",()=>{let m=r.shape,$={};for(let b in m){let p=m[b]._zod;if(p.values){$[b]??($[b]=new Set);for(let x of p.values)$[b].add(x)}}return $});let i=m=>{let $=new Lt(["shape","payload","ctx"]),b=n.value,p=w=>{let j=Ue(w);return`shape[${j}]._zod.run({ value: input[${j}], issues: [] }, ctx)`};$.write("const input = payload.value;");let x=Object.create(null),S=0;for(let w of b.keys)x[w]=`key_${S++}`;$.write("const newResult = {}");for(let w of b.keys)if(b.optionalKeys.has(w)){let j=x[w];$.write(`const ${j} = ${p(w)};`);let E=Ue(w);$.write(`
114
+ if (${j}.issues.length) {
115
+ if (input[${E}] === undefined) {
116
+ if (${E} in input) {
117
+ newResult[${E}] = undefined;
118
+ }
119
+ } else {
120
+ payload.issues = payload.issues.concat(
121
+ ${j}.issues.map((iss) => ({
122
+ ...iss,
123
+ path: iss.path ? [${E}, ...iss.path] : [${E}],
124
+ }))
125
+ );
126
+ }
127
+ } else if (${j}.value === undefined) {
128
+ if (${E} in input) newResult[${E}] = undefined;
129
+ } else {
130
+ newResult[${E}] = ${j}.value;
131
+ }
132
+ `)}else{let j=x[w];$.write(`const ${j} = ${p(w)};`),$.write(`
133
+ if (${j}.issues.length) payload.issues = payload.issues.concat(${j}.issues.map(iss => ({
134
+ ...iss,
135
+ path: iss.path ? [${Ue(w)}, ...iss.path] : [${Ue(w)}]
136
+ })));`),$.write(`newResult[${Ue(w)}] = ${j}.value`)}$.write("payload.value = newResult;"),$.write("return payload;");let A=$.compile();return(w,j)=>A(m,w,j)},e,o=We,a=!Pt.jitless,l=a&&Uo.value,h=r.catchall,f;t._zod.parse=(m,$)=>{f??(f=n.value);let b=m.value;if(!o(b))return m.issues.push({expected:"object",code:"invalid_type",input:b,inst:t}),m;let p=[];if(a&&l&&$?.async===!1&&$.jitless!==!0)e||(e=i(r.shape)),m=e(m,$);else{m.value={};let j=f.shape;for(let E of f.keys){let Oe=j[E],wr=Oe._zod.run({value:b[E],issues:[]},$),Mc=Oe._zod.optin==="optional"&&Oe._zod.optout==="optional";wr instanceof Promise?p.push(wr.then(Lc=>Mc?Qc(Lc,m,E,b):qr(Lc,m,E))):Mc?Qc(wr,m,E,b):qr(wr,m,E)}}if(!h)return p.length?Promise.all(p).then(()=>m):m;let x=[],S=f.keySet,A=h._zod,w=A.def.type;for(let j of Object.keys(b)){if(S.has(j))continue;if(w==="never"){x.push(j);continue}let E=A.run({value:b[j],issues:[]},$);E instanceof Promise?p.push(E.then(Oe=>qr(Oe,m,j))):qr(E,m,j)}return x.length&&m.issues.push({code:"unrecognized_keys",keys:x,input:b,inst:t}),p.length?Promise.all(p).then(()=>m):m}});Jr=u("$ZodUnion",(t,r)=>{T.init(t,r),R(t._zod,"optin",()=>r.options.some(n=>n._zod.optin==="optional")?"optional":void 0),R(t._zod,"optout",()=>r.options.some(n=>n._zod.optout==="optional")?"optional":void 0),R(t._zod,"values",()=>{if(r.options.every(n=>n._zod.values))return new Set(r.options.flatMap(n=>Array.from(n._zod.values)))}),R(t._zod,"pattern",()=>{if(r.options.every(n=>n._zod.pattern)){let n=r.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Ut(i.source)).join("|")})$`)}}),t._zod.parse=(n,i)=>{let e=!1,o=[];for(let a of r.options){let c=a._zod.run({value:n.value,issues:[]},i);if(c instanceof Promise)o.push(c),e=!0;else{if(c.issues.length===0)return c;o.push(c)}}return e?Promise.all(o).then(a=>Yc(a,n,t,i)):Yc(o,n,t,i)}}),ba=u("$ZodDiscriminatedUnion",(t,r)=>{Jr.init(t,r);let n=t._zod.parse;R(t._zod,"propValues",()=>{let e={};for(let o of r.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(o)}"`);for(let[c,l]of Object.entries(a)){e[c]||(e[c]=new Set);for(let h of l)e[c].add(h)}}return e});let i=Nt(()=>{let e=r.options,o=new Map;for(let a of e){let c=a._zod.propValues[r.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(let l of c){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,a)}}return o});t._zod.parse=(e,o)=>{let a=e.value;if(!We(a))return e.issues.push({code:"invalid_type",expected:"object",input:a,inst:t}),e;let c=i.value.get(a?.[r.discriminator]);return c?c._zod.run(e,o):r.unionFallback?n(e,o):(e.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[r.discriminator],inst:t}),e)}}),_a=u("$ZodIntersection",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>{let e=n.value,o=r.left._zod.run({value:e,issues:[]},i),a=r.right._zod.run({value:e,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([l,h])=>Xc(n,l,h)):Xc(n,o,a)}});Re=u("$ZodTuple",(t,r)=>{T.init(t,r);let n=r.items,i=n.length-[...n].reverse().findIndex(e=>e._zod.optin!=="optional");t._zod.parse=(e,o)=>{let a=e.value;if(!Array.isArray(a))return e.issues.push({input:a,inst:t,expected:"tuple",code:"invalid_type"}),e;e.value=[];let c=[];if(!r.rest){let h=a.length>n.length,f=a.length<i-1;if(h||f)return e.issues.push({input:a,inst:t,origin:"array",...h?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}}),e}let l=-1;for(let h of n){if(l++,l>=a.length&&l>=i)continue;let f=h._zod.run({value:a[l],issues:[]},o);f instanceof Promise?c.push(f.then(m=>Vr(m,e,l))):Vr(f,e,l)}if(r.rest){let h=a.slice(n.length);for(let f of h){l++;let m=r.rest._zod.run({value:f,issues:[]},o);m instanceof Promise?c.push(m.then($=>Vr($,e,l))):Vr(m,e,l)}}return c.length?Promise.all(c).then(()=>e):e}});ya=u("$ZodRecord",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>{let e=n.value;if(!Ke(e))return n.issues.push({expected:"record",code:"invalid_type",input:e,inst:t}),n;let o=[];if(r.keyType._zod.values){let a=r.keyType._zod.values;n.value={};for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){let h=r.valueType._zod.run({value:e[l],issues:[]},i);h instanceof Promise?o.push(h.then(f=>{f.issues.length&&n.issues.push(...ie(l,f.issues)),n.value[l]=f.value})):(h.issues.length&&n.issues.push(...ie(l,h.issues)),n.value[l]=h.value)}let c;for(let l in e)a.has(l)||(c=c??[],c.push(l));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:e,inst:t,keys:c})}else{n.value={};for(let a of Reflect.ownKeys(e)){if(a==="__proto__")continue;let c=r.keyType._zod.run({value:a,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:c.issues.map(h=>se(h,i,W())),input:a,path:[a],inst:t}),n.value[c.value]=c.value;continue}let l=r.valueType._zod.run({value:e[a],issues:[]},i);l instanceof Promise?o.push(l.then(h=>{h.issues.length&&n.issues.push(...ie(a,h.issues)),n.value[c.value]=h.value})):(l.issues.length&&n.issues.push(...ie(a,l.issues)),n.value[c.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),$a=u("$ZodMap",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>{let e=n.value;if(!(e instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:e,inst:t}),n;let o=[];n.value=new Map;for(let[a,c]of e){let l=r.keyType._zod.run({value:a,issues:[]},i),h=r.valueType._zod.run({value:c,issues:[]},i);l instanceof Promise||h instanceof Promise?o.push(Promise.all([l,h]).then(([f,m])=>{eu(f,m,n,a,e,t,i)})):eu(l,h,n,a,e,t,i)}return o.length?Promise.all(o).then(()=>n):n}});xa=u("$ZodSet",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>{let e=n.value;if(!(e instanceof Set))return n.issues.push({input:e,inst:t,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of e){let c=r.valueType._zod.run({value:a,issues:[]},i);c instanceof Promise?o.push(c.then(l=>tu(l,n))):tu(c,n)}return o.length?Promise.all(o).then(()=>n):n}});za=u("$ZodEnum",(t,r)=>{T.init(t,r);let n=Ot(r.entries);t._zod.values=new Set(n),t._zod.pattern=new RegExp(`^(${n.filter(i=>Et.has(typeof i)).map(i=>typeof i=="string"?_e(i):i.toString()).join("|")})$`),t._zod.parse=(i,e)=>{let o=i.value;return t._zod.values.has(o)||i.issues.push({code:"invalid_value",values:n,input:o,inst:t}),i}}),ka=u("$ZodLiteral",(t,r)=>{T.init(t,r),t._zod.values=new Set(r.values),t._zod.pattern=new RegExp(`^(${r.values.map(n=>typeof n=="string"?_e(n):n?n.toString():String(n)).join("|")})$`),t._zod.parse=(n,i)=>{let e=n.value;return t._zod.values.has(e)||n.issues.push({code:"invalid_value",values:r.values,input:e,inst:t}),n}}),Sa=u("$ZodFile",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>{let e=n.value;return e instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:e,inst:t}),n}}),Ht=u("$ZodTransform",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>{let e=r.transform(n.value,n);if(i.async)return(e instanceof Promise?e:Promise.resolve(e)).then(a=>(n.value=a,n));if(e instanceof Promise)throw new pe;return n.value=e,n}}),wa=u("$ZodOptional",(t,r)=>{T.init(t,r),t._zod.optin="optional",t._zod.optout="optional",R(t._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),R(t._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Ut(n.source)})?$`):void 0}),t._zod.parse=(n,i)=>r.innerType._zod.optin==="optional"?r.innerType._zod.run(n,i):n.value===void 0?n:r.innerType._zod.run(n,i)}),Ia=u("$ZodNullable",(t,r)=>{T.init(t,r),R(t._zod,"optin",()=>r.innerType._zod.optin),R(t._zod,"optout",()=>r.innerType._zod.optout),R(t._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Ut(n.source)}|null)$`):void 0}),R(t._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),t._zod.parse=(n,i)=>n.value===null?n:r.innerType._zod.run(n,i)}),ja=u("$ZodDefault",(t,r)=>{T.init(t,r),t._zod.optin="optional",R(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(n,i)=>{if(n.value===void 0)return n.value=r.defaultValue,n;let e=r.innerType._zod.run(n,i);return e instanceof Promise?e.then(o=>ru(o,r)):ru(e,r)}});Pa=u("$ZodPrefault",(t,r)=>{T.init(t,r),t._zod.optin="optional",R(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(n,i)=>(n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,i))}),Ta=u("$ZodNonOptional",(t,r)=>{T.init(t,r),R(t._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),t._zod.parse=(n,i)=>{let e=r.innerType._zod.run(n,i);return e instanceof Promise?e.then(o=>nu(o,t)):nu(e,t)}});Oa=u("$ZodSuccess",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>{let e=r.innerType._zod.run(n,i);return e instanceof Promise?e.then(o=>(n.value=o.issues.length===0,n)):(n.value=e.issues.length===0,n)}}),Na=u("$ZodCatch",(t,r)=>{T.init(t,r),t._zod.optin="optional",R(t._zod,"optout",()=>r.innerType._zod.optout),R(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(n,i)=>{let e=r.innerType._zod.run(n,i);return e instanceof Promise?e.then(o=>(n.value=o.value,o.issues.length&&(n.value=r.catchValue({...n,error:{issues:o.issues.map(a=>se(a,i,W()))},input:n.value}),n.issues=[]),n)):(n.value=e.value,e.issues.length&&(n.value=r.catchValue({...n,error:{issues:e.issues.map(o=>se(o,i,W()))},input:n.value}),n.issues=[]),n)}}),Ua=u("$ZodNaN",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:t,expected:"nan",code:"invalid_type"}),n)}),Ft=u("$ZodPipe",(t,r)=>{T.init(t,r),R(t._zod,"values",()=>r.in._zod.values),R(t._zod,"optin",()=>r.in._zod.optin),R(t._zod,"optout",()=>r.out._zod.optout),t._zod.parse=(n,i)=>{let e=r.in._zod.run(n,i);return e instanceof Promise?e.then(o=>ou(o,r,i)):ou(e,r,i)}});Ea=u("$ZodReadonly",(t,r)=>{T.init(t,r),R(t._zod,"propValues",()=>r.innerType._zod.propValues),R(t._zod,"values",()=>r.innerType._zod.values),R(t._zod,"optin",()=>r.innerType._zod.optin),R(t._zod,"optout",()=>r.innerType._zod.optout),t._zod.parse=(n,i)=>{let e=r.innerType._zod.run(n,i);return e instanceof Promise?e.then(iu):iu(e)}});Da=u("$ZodTemplateLiteral",(t,r)=>{T.init(t,r);let n=[];for(let i of r.parts)if(i instanceof T){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let e=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!e)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;n.push(e.slice(o,a))}else if(i===null||Eo.has(typeof i))n.push(_e(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);t._zod.pattern=new RegExp(`^${n.join("")}$`),t._zod.parse=(i,e)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:t,expected:"template_literal",code:"invalid_type"}),i):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:t,code:"invalid_format",format:"template_literal",pattern:t._zod.pattern.source}),i)}),Za=u("$ZodPromise",(t,r)=>{T.init(t,r),t._zod.parse=(n,i)=>Promise.resolve(n.value).then(e=>r.innerType._zod.run({value:e,issues:[]},i))}),Ra=u("$ZodLazy",(t,r)=>{T.init(t,r),R(t._zod,"innerType",()=>r.getter()),R(t._zod,"pattern",()=>t._zod.innerType._zod.pattern),R(t._zod,"propValues",()=>t._zod.innerType._zod.propValues),R(t._zod,"optin",()=>t._zod.innerType._zod.optin),R(t._zod,"optout",()=>t._zod.innerType._zod.optout),t._zod.parse=(n,i)=>t._zod.innerType._zod.run(n,i)}),Aa=u("$ZodCustom",(t,r)=>{B.init(t,r),T.init(t,r),t._zod.parse=(n,i)=>n,t._zod.check=n=>{let i=n.value,e=r.fn(i);if(e instanceof Promise)return e.then(o=>au(o,n,i,t));au(e,n,i,t)}})});function lu(){return{localeError:Bm()}}var Bm,du=k(()=>{P();Bm=()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\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 ${e.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${n(e.input)}`;case"invalid_value":return e.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 ${_(e.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: ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.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 ${e.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${e.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 ${e.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${e.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${e.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${e.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${e.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${i[o.format]??e.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 ${e.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${e.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${e.keys.length>1?"\u0629":""}: ${g(e.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${e.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 ${e.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}}});function mu(){return{localeError:Wm()}}var Wm,pu=k(()=>{P();Wm=()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${e.expected}, daxil olan ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${_(e.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${e.origin??"d\u0259y\u0259r"} ${o}${e.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${e.origin??"d\u0259y\u0259r"} ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${e.origin} ${o}${e.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${e.origin} ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${i[o.format]??e.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${e.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${e.keys.length>1?"lar":""}: ${g(e.keys,", ")}`;case"invalid_key":return`${e.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${e.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}}});function fu(t,r,n,i){let e=Math.abs(t),o=e%10,a=e%100;return a>=11&&a<=19?i:o===1?r:o>=2&&o<=4?n:i}function gu(){return{localeError:Km()}}var Km,hu=k(()=>{P();Km=()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(e))return"\u043C\u0430\u0441\u0456\u045E";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${e.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${n(e.input)}`;case"invalid_value":return e.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 ${_(e.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 ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);if(a){let c=Number(e.maximum),l=fu(c,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 ${e.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${e.maximum.toString()} ${l}`}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 ${e.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);if(a){let c=Number(e.minimum),l=fu(c,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 ${e.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${e.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${i[o.format]??e.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 ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${e.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${g(e.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${e.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 ${e.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}}});function vu(){return{localeError:Gm()}}var Gm,bu=k(()=>{P();Gm=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${e.expected}, s'ha rebut ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Valor inv\xE0lid: s'esperava ${_(e.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${g(e.values," o ")}`;case"too_big":{let o=e.inclusive?"com a m\xE0xim":"menys de",a=r(e.origin);return a?`Massa gran: s'esperava que ${e.origin??"el valor"} contingu\xE9s ${o} ${e.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${o} ${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?"com a m\xEDnim":"m\xE9s de",a=r(e.origin);return a?`Massa petit: s'esperava que ${e.origin} contingu\xE9s ${o} ${e.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${o} ${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${i[o.format]??e.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${e.divisor}`;case"unrecognized_keys":return`Clau${e.keys.length>1?"s":""} no reconeguda${e.keys.length>1?"s":""}: ${g(e.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${e.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${e.origin}`;default:return"Entrada inv\xE0lida"}}}});function _u(){return{localeError:Qm()}}var Qm,yu=k(()=>{P();Qm=()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(e))return"pole";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${e.expected}, obdr\u017Eeno ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${_(e.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${e.origin??"hodnota"} mus\xED m\xEDt ${o}${e.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${e.origin??"hodnota"} mus\xED b\xFDt ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${e.origin??"hodnota"} mus\xED m\xEDt ${o}${e.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${e.origin??"hodnota"} mus\xED b\xFDt ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${i[o.format]??e.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${e.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${g(e.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${e.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${e.origin}`;default:return"Neplatn\xFD vstup"}}}});function $u(){return{localeError:Ym()}}var Ym,xu=k(()=>{P();Ym=()=>{let t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"Zahl";case"object":{if(Array.isArray(e))return"Array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${e.expected}, erhalten ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Ung\xFCltige Eingabe: erwartet ${_(e.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Zu gro\xDF: erwartet, dass ${e.origin??"Wert"} ${o}${e.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${e.origin??"Wert"} ${o}${e.maximum.toString()} ist`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Zu klein: erwartet, dass ${e.origin} ${o}${e.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${o}${e.minimum.toString()} ist`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${i[o.format]??e.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${e.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${g(e.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${e.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${e.origin}`;default:return"Ung\xFCltige Eingabe"}}}});function Br(){return{localeError:ep()}}var Xm,ep,Ca=k(()=>{P();Xm=t=>{let r=typeof t;switch(r){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return r},ep=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function r(i){return t[i]??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"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${Xm(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${_(i.values[0])}`:`Invalid option: expected one of ${g(i.values,"|")}`;case"too_big":{let e=i.inclusive?"<=":"<",o=r(i.origin);return o?`Too big: expected ${i.origin??"value"} to have ${e}${i.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${e}${i.maximum.toString()}`}case"too_small":{let e=i.inclusive?">=":">",o=r(i.origin);return o?`Too small: expected ${i.origin} to have ${e}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${e}${i.minimum.toString()}`}case"invalid_format":{let e=i;return e.format==="starts_with"?`Invalid string: must start with "${e.prefix}"`:e.format==="ends_with"?`Invalid string: must end with "${e.suffix}"`:e.format==="includes"?`Invalid string: must include "${e.includes}"`:e.format==="regex"?`Invalid string: must match pattern ${e.pattern}`:`Invalid ${n[e.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${g(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}}});function zu(){return{localeError:rp()}}var tp,rp,ku=k(()=>{P();tp=t=>{let r=typeof t;switch(r){case"number":return Number.isNaN(t)?"NaN":"nombro";case"object":{if(Array.isArray(t))return"tabelo";if(t===null)return"senvalora";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return r},rp=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(i){return t[i]??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"};return i=>{switch(i.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${i.expected}, ricevi\u011Dis ${tp(i.input)}`;case"invalid_value":return i.values.length===1?`Nevalida enigo: atendi\u011Dis ${_(i.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${g(i.values,"|")}`;case"too_big":{let e=i.inclusive?"<=":"<",o=r(i.origin);return o?`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${e}${i.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${e}${i.maximum.toString()}`}case"too_small":{let e=i.inclusive?">=":">",o=r(i.origin);return o?`Tro malgranda: atendi\u011Dis ke ${i.origin} havu ${e}${i.minimum.toString()} ${o.unit}`:`Tro malgranda: atendi\u011Dis ke ${i.origin} estu ${e}${i.minimum.toString()}`}case"invalid_format":{let e=i;return e.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${e.prefix}"`:e.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${e.suffix}"`:e.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${e.includes}"`:e.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${e.pattern}`:`Nevalida ${n[e.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} \u015Dlosilo${i.keys.length>1?"j":""}: ${g(i.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}}});function Su(){return{localeError:np()}}var np,wu=k(()=>{P();np=()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(e))return"arreglo";if(e===null)return"nulo";if(Object.getPrototypeOf(e)!==Object.prototype)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${e.expected}, recibido ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Entrada inv\xE1lida: se esperaba ${_(e.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Demasiado grande: se esperaba que ${e.origin??"valor"} tuviera ${o}${e.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${e.origin??"valor"} fuera ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Demasiado peque\xF1o: se esperaba que ${e.origin} tuviera ${o}${e.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${e.origin} fuera ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${i[o.format]??e.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${e.divisor}`;case"unrecognized_keys":return`Llave${e.keys.length>1?"s":""} desconocida${e.keys.length>1?"s":""}: ${g(e.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${e.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${e.origin}`;default:return"Entrada inv\xE1lida"}}}});function Iu(){return{localeError:op()}}var op,ju=k(()=>{P();op=()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(e))return"\u0622\u0631\u0627\u06CC\u0647";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${e.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${n(e.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return e.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${_(e.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 ${g(e.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${e.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${e.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${e.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${e.origin} \u0628\u0627\u06CC\u062F ${o}${e.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${e.origin} \u0628\u0627\u06CC\u062F ${o}${e.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${i[o.format]??e.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 ${e.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${e.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${g(e.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${e.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 ${e.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}}});function Pu(){return{localeError:ip()}}var ip,Tu=k(()=>{P();ip=()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${e.expected}, oli ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${_(e.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${e.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${e.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${i[o.format]??e.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${e.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${g(e.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 Ou(){return{localeError:ap()}}var ap,Nu=k(()=>{P();ap=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"nombre";case"object":{if(Array.isArray(e))return"tableau";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Entr\xE9e invalide : ${e.expected} attendu, ${n(e.input)} re\xE7u`;case"invalid_value":return e.values.length===1?`Entr\xE9e invalide : ${_(e.values[0])} attendu`:`Option invalide : une valeur parmi ${g(e.values,"|")} attendue`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Trop grand : ${e.origin??"valeur"} doit ${a.verb} ${o}${e.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${e.origin??"valeur"} doit \xEAtre ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Trop petit : ${e.origin} doit ${a.verb} ${o}${e.minimum.toString()} ${a.unit}`:`Trop petit : ${e.origin} doit \xEAtre ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${i[o.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${e.divisor}`;case"unrecognized_keys":return`Cl\xE9${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${g(e.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${e.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`;default:return"Entr\xE9e invalide"}}}});function Uu(){return{localeError:sp()}}var sp,Eu=k(()=>{P();sp=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${e.expected}, re\xE7u ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Entr\xE9e invalide : attendu ${_(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"\u2264":"<",a=r(e.origin);return a?`Trop grand : attendu que ${e.origin??"la valeur"} ait ${o}${e.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${e.origin??"la valeur"} soit ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?"\u2265":">",a=r(e.origin);return a?`Trop petit : attendu que ${e.origin} ait ${o}${e.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${e.origin} soit ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${i[o.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${e.divisor}`;case"unrecognized_keys":return`Cl\xE9${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${g(e.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${e.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`;default:return"Entr\xE9e invalide"}}}});function Du(){return{localeError:cp()}}var cp,Zu=k(()=>{P();cp=()=>{let t={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return e=>{switch(e.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${e.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${n(e.input)}`;case"invalid_value":return e.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${_(e.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${e.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${e.maximum.toString()} ${a.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${e.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${e.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${e.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${e.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${o.prefix}"`:o.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${o.suffix}"`:o.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${o.includes}"`:o.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${o.pattern}`:`${i[o.format]??e.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}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 ${e.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${e.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${e.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${g(e.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${e.origin}`;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${e.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}}});function Ru(){return{localeError:up()}}var up,Au=k(()=>{P();up=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(e))return"t\xF6mb";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${e.expected}, a kapott \xE9rt\xE9k ${n(e.input)}`;case"invalid_value":return e.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${_(e.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`T\xFAl nagy: ${e.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${e.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${e.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${e.origin} m\xE9rete t\xFAl kicsi ${o}${e.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${e.origin} t\xFAl kicsi ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${i[o.format]??e.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${e.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${e.keys.length>1?"s":""}: ${g(e.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${e.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${e.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}}});function Cu(){return{localeError:lp()}}var lp,Mu=k(()=>{P();lp=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Input tidak valid: diharapkan ${e.expected}, diterima ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Input tidak valid: diharapkan ${_(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${o}${e.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${e.origin??"value"} menjadi ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Terlalu kecil: diharapkan ${e.origin} memiliki ${o}${e.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${i[o.format]??e.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${e.keys.length>1?"s":""}: ${g(e.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${e.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${e.origin}`;default:return"Input tidak valid"}}}});function Lu(){return{localeError:dp()}}var dp,qu=k(()=>{P();dp=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"numero";case"object":{if(Array.isArray(e))return"vettore";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Input non valido: atteso ${e.expected}, ricevuto ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Input non valido: atteso ${_(e.values[0])}`:`Opzione non valida: atteso uno tra ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Troppo grande: ${e.origin??"valore"} deve avere ${o}${e.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${e.origin??"valore"} deve essere ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Troppo piccolo: ${e.origin} deve avere ${o}${e.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${e.origin} deve essere ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${i[o.format]??e.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case"unrecognized_keys":return`Chiav${e.keys.length>1?"i":"e"} non riconosciut${e.keys.length>1?"e":"a"}: ${g(e.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${e.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${e.origin}`;default:return"Input non valido"}}}});function Vu(){return{localeError:mp()}}var mp,Hu=k(()=>{P();mp=()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(e))return"\u914D\u5217";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${e.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${n(e.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return e.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${_(e.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${g(e.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=e.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=r(e.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${e.origin??"\u5024"}\u306F${e.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${e.origin??"\u5024"}\u306F${e.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=e.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=r(e.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${e.origin}\u306F${e.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${e.origin}\u306F${e.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${i[o.format]??e.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${e.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${e.keys.length>1?"\u7FA4":""}: ${g(e.keys,"\u3001")}`;case"invalid_key":return`${e.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${e.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}}});function Fu(){return{localeError:pp()}}var pp,Ju=k(()=>{P();pp=()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(e))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(e===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\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 ${e.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${n(e.input)}`;case"invalid_value":return e.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 ${_(e.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 ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${e.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin} ${o} ${e.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin} ${o} ${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${i[o.format]??e.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 ${e.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${g(e.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 ${e.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 ${e.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 Bu(){return{localeError:fp()}}var fp,Wu=k(()=>{P();fp=()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${e.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${n(e.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return e.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${_(e.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${g(e.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=e.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=r(e.origin),l=c?.unit??"\uC694\uC18C";return c?`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${e.maximum.toString()}${l} ${o}${a}`:`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${e.maximum.toString()} ${o}${a}`}case"too_small":{let o=e.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=r(e.origin),l=c?.unit??"\uC694\uC18C";return c?`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${e.minimum.toString()}${l} ${o}${a}`:`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${e.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${i[o.format]??e.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${e.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${g(e.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${e.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${e.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}}});function Ku(){return{localeError:gp()}}var gp,Gu=k(()=>{P();gp=()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(e))return"\u043D\u0438\u0437\u0430";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Invalid input: expected ${_(e.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 ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.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 ${e.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${e.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 ${e.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${e.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${i[o.format]??e.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 ${e.divisor}`;case"unrecognized_keys":return`${e.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"}: ${g(e.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${e.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 ${e.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}}});function Qu(){return{localeError:hp()}}var hp,Yu=k(()=>{P();hp=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"nombor";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Input tidak sah: dijangka ${e.expected}, diterima ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Input tidak sah: dijangka ${_(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Terlalu besar: dijangka ${e.origin??"nilai"} ${a.verb} ${o}${e.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${e.origin??"nilai"} adalah ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Terlalu kecil: dijangka ${e.origin} ${a.verb} ${o}${e.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${i[o.format]??e.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${g(e.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${e.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${e.origin}`;default:return"Input tidak sah"}}}});function Xu(){return{localeError:vp()}}var vp,el=k(()=>{P();vp=()=>{let t={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"getal";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Ongeldige invoer: verwacht ${e.expected}, ontving ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Ongeldige invoer: verwacht ${_(e.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Te lang: verwacht dat ${e.origin??"waarde"} ${o}${e.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${e.origin??"waarde"} ${o}${e.maximum.toString()} is`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Te kort: verwacht dat ${e.origin} ${o}${e.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${e.origin} ${o}${e.minimum.toString()} is`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${i[o.format]??e.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${e.keys.length>1?"s":""}: ${g(e.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${e.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${e.origin}`;default:return"Ongeldige invoer"}}}});function tl(){return{localeError:bp()}}var bp,rl=k(()=>{P();bp=()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"tall";case"object":{if(Array.isArray(e))return"liste";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Ugyldig input: forventet ${e.expected}, fikk ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Ugyldig verdi: forventet ${_(e.values[0])}`:`Ugyldig valg: forventet en av ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`For stor(t): forventet ${e.origin??"value"} til \xE5 ha ${o}${e.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${e.origin??"value"} til \xE5 ha ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`For lite(n): forventet ${e.origin} til \xE5 ha ${o}${e.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${e.origin} til \xE5 ha ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${i[o.format]??e.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${g(e.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${e.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${e.origin}`;default:return"Ugyldig input"}}}});function nl(){return{localeError:_p()}}var _p,ol=k(()=>{P();_p=()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"numara";case"object":{if(Array.isArray(e))return"saf";if(e===null)return"gayb";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`F\xE2sit giren: umulan ${e.expected}, al\u0131nan ${n(e.input)}`;case"invalid_value":return e.values.length===1?`F\xE2sit giren: umulan ${_(e.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Fazla b\xFCy\xFCk: ${e.origin??"value"}, ${o}${e.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${e.origin??"value"}, ${o}${e.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Fazla k\xFC\xE7\xFCk: ${e.origin}, ${o}${e.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${e.origin}, ${o}${e.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=e;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${i[o.format]??e.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${e.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${e.keys.length>1?"s":""}: ${g(e.keys,", ")}`;case"invalid_key":return`${e.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${e.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}}});function il(){return{localeError:yp()}}var yp,al=k(()=>{P();yp=()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(e))return"\u0627\u0631\u06D0";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${e.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${n(e.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return e.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${_(e.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${g(e.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${e.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${e.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${e.maximum.toString()} \u0648\u064A`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${e.origin} \u0628\u0627\u06CC\u062F ${o}${e.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${e.origin} \u0628\u0627\u06CC\u062F ${o}${e.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${i[o.format]??e.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${e.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${e.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${g(e.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${e.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 ${e.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}}});function sl(){return{localeError:$p()}}var $p,cl=k(()=>{P();$p=()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"liczba";case"object":{if(Array.isArray(e))return"tablica";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${e.expected}, otrzymano ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${_(e.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${e.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${e.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${i[o.format]??e.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${e.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${e.keys.length>1?"s":""}: ${g(e.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${e.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${e.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}}});function ul(){return{localeError:xp()}}var xp,ll=k(()=>{P();xp=()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(e))return"array";if(e===null)return"nulo";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${e.expected}, recebido ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Entrada inv\xE1lida: esperado ${_(e.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Muito grande: esperado que ${e.origin??"valor"} tivesse ${o}${e.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${e.origin??"valor"} fosse ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Muito pequeno: esperado que ${e.origin} tivesse ${o}${e.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${i[o.format]??e.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${e.divisor}`;case"unrecognized_keys":return`Chave${e.keys.length>1?"s":""} desconhecida${e.keys.length>1?"s":""}: ${g(e.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${e.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${e.origin}`;default:return"Campo inv\xE1lido"}}}});function dl(t,r,n,i){let e=Math.abs(t),o=e%10,a=e%100;return a>=11&&a<=19?i:o===1?r:o>=2&&o<=4?n:i}function ml(){return{localeError:zp()}}var zp,pl=k(()=>{P();zp=()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(e))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${e.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${n(e.input)}`;case"invalid_value":return e.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${_(e.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 ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);if(a){let c=Number(e.maximum),l=dl(c,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 ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${e.maximum.toString()} ${l}`}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 ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);if(a){let c=Number(e.minimum),l=dl(c,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 ${e.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${e.minimum.toString()} ${l}`}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 ${e.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${i[o.format]??e.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 ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${e.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${e.keys.length>1?"\u0438":""}: ${g(e.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${e.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 ${e.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 fl(){return{localeError:kp()}}var kp,gl=k(()=>{P();kp=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(e))return"tabela";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${e.expected}, prejeto ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${_(e.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${e.origin??"vrednost"} imelo ${o}${e.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${e.origin??"vrednost"} ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${e.origin} imelo ${o}${e.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${e.origin} ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${i[o.format]??e.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${e.divisor}`;case"unrecognized_keys":return`Neprepoznan${e.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${g(e.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${e.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${e.origin}`;default:return"Neveljaven vnos"}}}});function hl(){return{localeError:Sp()}}var Sp,vl=k(()=>{P();Sp=()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"antal";case"object":{if(Array.isArray(e))return"lista";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${e.expected}, fick ${n(e.input)}`;case"invalid_value":return e.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${_(e.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${e.origin??"v\xE4rdet"} att ha ${o}${e.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${e.origin??"v\xE4rdet"} att ha ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${e.origin??"v\xE4rdet"} att ha ${o}${e.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${e.origin??"v\xE4rdet"} att ha ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${i[o.format]??e.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${g(e.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${e.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${e.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}}});function bl(){return{localeError:wp()}}var wp,_l=k(()=>{P();wp=()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(e))return"\u0B85\u0BA3\u0BBF";if(e===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\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 ${e.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n(e.input)}`;case"invalid_value":return e.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 ${_(e.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 ${g(e.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.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 ${e.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${e.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 ${e.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${e.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.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 ${e.origin} ${o}${e.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 ${e.origin} ${o}${e.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${i[o.format]??e.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${e.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${e.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${g(e.keys,", ")}`;case"invalid_key":return`${e.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`${e.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 yl(){return{localeError:Ip()}}var Ip,$l=k(()=>{P();Ip=()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(e))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(e===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\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 ${e.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${n(e.input)}`;case"invalid_value":return e.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${_(e.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 ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=r(e.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${e.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=r(e.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${e.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${i[o.format]??e.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 ${e.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: ${g(e.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${e.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 ${e.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}}});function xl(){return{localeError:Pp()}}var jp,Pp,zl=k(()=>{P();jp=t=>{let r=typeof t;switch(r){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return r},Pp=()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(i){return t[i]??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"};return i=>{switch(i.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${i.expected}, al\u0131nan ${jp(i.input)}`;case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${_(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${g(i.values,"|")}`;case"too_big":{let e=i.inclusive?"<=":"<",o=r(i.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${e}${i.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${e}${i.maximum.toString()}`}case"too_small":{let e=i.inclusive?">=":">",o=r(i.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${e}${i.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${e}${i.minimum.toString()}`}case"invalid_format":{let e=i;return e.format==="starts_with"?`Ge\xE7ersiz metin: "${e.prefix}" ile ba\u015Flamal\u0131`:e.format==="ends_with"?`Ge\xE7ersiz metin: "${e.suffix}" ile bitmeli`:e.format==="includes"?`Ge\xE7ersiz metin: "${e.includes}" i\xE7ermeli`:e.format==="regex"?`Ge\xE7ersiz metin: ${e.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[e.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${g(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}}});function kl(){return{localeError:Tp()}}var Tp,Sl=k(()=>{P();Tp=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(e))return"\u043C\u0430\u0441\u0438\u0432";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\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 ${e.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${n(e.input)}`;case"invalid_value":return e.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 ${_(e.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 ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.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 ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${e.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 ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.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 ${e.origin} ${a.verb} ${o}${e.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 ${e.origin} \u0431\u0443\u0434\u0435 ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${i[o.format]??e.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 ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${e.keys.length>1?"\u0456":""}: ${g(e.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${e.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 ${e.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 wl(){return{localeError:Op()}}var Op,Il=k(()=>{P();Op=()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(e))return"\u0622\u0631\u06D2";if(e===null)return"\u0646\u0644";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${e.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${n(e.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return e.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${_(e.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${g(e.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${e.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${e.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: ${e.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${e.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${e.origin} \u06A9\u06D2 ${o}${e.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${e.origin} \u06A9\u0627 ${o}${e.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${i[o.format]??e.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${e.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${e.keys.length>1?"\u0632":""}: ${g(e.keys,"\u060C ")}`;case"invalid_key":return`${e.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${e.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}}});function jl(){return{localeError:Np()}}var Np,Pl=k(()=>{P();Np=()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(e))return"m\u1EA3ng";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${e.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${n(e.input)}`;case"invalid_value":return e.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${_(e.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${e.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${e.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${e.origin??"gi\xE1 tr\u1ECB"} ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${e.origin} ${a.verb} ${o}${e.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${e.origin} ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${i[o.format]??e.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 ${e.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${g(e.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${e.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 ${e.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}}});function Tl(){return{localeError:Up()}}var Up,Ol=k(()=>{P();Up=()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(e))return"\u6570\u7EC4";if(e===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${e.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${n(e.input)}`;case"invalid_value":return e.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${_(e.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${e.origin??"\u503C"} ${o}${e.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${e.origin??"\u503C"} ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${e.origin} ${o}${e.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${e.origin} ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${i[o.format]??e.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${e.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${g(e.keys,", ")}`;case"invalid_key":return`${e.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${e.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}}});function Nl(){return{localeError:Ep()}}var Ep,Ul=k(()=>{P();Ep=()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(e){return t[e]??null}let n=e=>{let o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return o},i={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"};return e=>{switch(e.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${e.expected}\uFF0C\u4F46\u6536\u5230 ${n(e.input)}`;case"invalid_value":return e.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${_(e.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${g(e.values,"|")}`;case"too_big":{let o=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${e.origin??"\u503C"} \u61C9\u70BA ${o}${e.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${e.origin??"\u503C"} \u61C9\u70BA ${o}${e.maximum.toString()}`}case"too_small":{let o=e.inclusive?">=":">",a=r(e.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${e.origin} \u61C9\u70BA ${o}${e.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${e.origin} \u61C9\u70BA ${o}${e.minimum.toString()}`}case"invalid_format":{let o=e;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${i[o.format]??e.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${e.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${e.keys.length>1?"\u5011":""}\uFF1A${g(e.keys,"\u3001")}`;case"invalid_key":return`${e.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${e.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}}});var rt={};ze(rt,{ar:()=>lu,az:()=>mu,be:()=>gu,ca:()=>vu,cs:()=>_u,de:()=>$u,en:()=>Br,eo:()=>zu,es:()=>Su,fa:()=>Iu,fi:()=>Pu,fr:()=>Ou,frCA:()=>Uu,he:()=>Du,hu:()=>Ru,id:()=>Cu,it:()=>Lu,ja:()=>Vu,kh:()=>Fu,ko:()=>Bu,mk:()=>Ku,ms:()=>Qu,nl:()=>Xu,no:()=>tl,ota:()=>nl,pl:()=>sl,ps:()=>il,pt:()=>ul,ru:()=>ml,sl:()=>fl,sv:()=>hl,ta:()=>bl,th:()=>yl,tr:()=>xl,ua:()=>kl,ur:()=>wl,vi:()=>jl,zhCN:()=>Tl,zhTW:()=>Nl});var Ma=k(()=>{du();pu();hu();bu();yu();xu();Ca();ku();wu();ju();Tu();Nu();Eu();Zu();Au();Mu();qu();Hu();Ju();Wu();Gu();Yu();el();rl();ol();al();cl();ll();pl();gl();vl();_l();$l();zl();Sl();Il();Pl();Ol();Ul()});function Bt(){return new nt}var Wr,Kr,nt,me,La=k(()=>{Wr=Symbol("ZodOutput"),Kr=Symbol("ZodInput"),nt=class{constructor(){this._map=new Map,this._idmap=new Map}add(r,...n){let i=n[0];if(this._map.set(r,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,r)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){let n=r._zod.parent;if(n){let i={...this.get(n)??{}};return delete i.id,{...i,...this._map.get(r)}}return this._map.get(r)}has(r){return this._map.has(r)}};me=Bt()});function qa(t,r){return new t({type:"string",...v(r)})}function Va(t,r){return new t({type:"string",coerce:!0,...v(r)})}function Gr(t,r){return new t({type:"string",format:"email",check:"string_format",abort:!1,...v(r)})}function Wt(t,r){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...v(r)})}function Qr(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...v(r)})}function Yr(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...v(r)})}function Xr(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...v(r)})}function en(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...v(r)})}function tn(t,r){return new t({type:"string",format:"url",check:"string_format",abort:!1,...v(r)})}function rn(t,r){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...v(r)})}function nn(t,r){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...v(r)})}function on(t,r){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...v(r)})}function an(t,r){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...v(r)})}function sn(t,r){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...v(r)})}function cn(t,r){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...v(r)})}function un(t,r){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...v(r)})}function ln(t,r){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...v(r)})}function dn(t,r){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...v(r)})}function mn(t,r){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...v(r)})}function pn(t,r){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...v(r)})}function fn(t,r){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...v(r)})}function gn(t,r){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...v(r)})}function hn(t,r){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...v(r)})}function vn(t,r){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...v(r)})}function Ha(t,r){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...v(r)})}function Fa(t,r){return new t({type:"string",format:"date",check:"string_format",...v(r)})}function Ja(t,r){return new t({type:"string",format:"time",check:"string_format",precision:null,...v(r)})}function Ba(t,r){return new t({type:"string",format:"duration",check:"string_format",...v(r)})}function Wa(t,r){return new t({type:"number",checks:[],...v(r)})}function Ka(t,r){return new t({type:"number",coerce:!0,checks:[],...v(r)})}function Ga(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...v(r)})}function Qa(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...v(r)})}function Ya(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...v(r)})}function Xa(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...v(r)})}function es(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...v(r)})}function ts(t,r){return new t({type:"boolean",...v(r)})}function rs(t,r){return new t({type:"boolean",coerce:!0,...v(r)})}function ns(t,r){return new t({type:"bigint",...v(r)})}function os(t,r){return new t({type:"bigint",coerce:!0,...v(r)})}function is(t,r){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...v(r)})}function as(t,r){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...v(r)})}function ss(t,r){return new t({type:"symbol",...v(r)})}function cs(t,r){return new t({type:"undefined",...v(r)})}function us(t,r){return new t({type:"null",...v(r)})}function ls(t){return new t({type:"any"})}function ot(t){return new t({type:"unknown"})}function ds(t,r){return new t({type:"never",...v(r)})}function ms(t,r){return new t({type:"void",...v(r)})}function ps(t,r){return new t({type:"date",...v(r)})}function fs(t,r){return new t({type:"date",coerce:!0,...v(r)})}function gs(t,r){return new t({type:"nan",...v(r)})}function fe(t,r){return new Cr({check:"less_than",...v(r),value:t,inclusive:!1})}function ce(t,r){return new Cr({check:"less_than",...v(r),value:t,inclusive:!0})}function ge(t,r){return new Mr({check:"greater_than",...v(r),value:t,inclusive:!1})}function ne(t,r){return new Mr({check:"greater_than",...v(r),value:t,inclusive:!0})}function _n(t){return ge(0,t)}function yn(t){return fe(0,t)}function $n(t){return ce(0,t)}function xn(t){return ne(0,t)}function we(t,r){return new gi({check:"multiple_of",...v(r),value:t})}function Ae(t,r){return new bi({check:"max_size",...v(r),maximum:t})}function Ie(t,r){return new _i({check:"min_size",...v(r),minimum:t})}function it(t,r){return new yi({check:"size_equals",...v(r),size:t})}function Ce(t,r){return new $i({check:"max_length",...v(r),maximum:t})}function ye(t,r){return new xi({check:"min_length",...v(r),minimum:t})}function Me(t,r){return new zi({check:"length_equals",...v(r),length:t})}function at(t,r){return new ki({check:"string_format",format:"regex",...v(r),pattern:t})}function st(t){return new Si({check:"string_format",format:"lowercase",...v(t)})}function ct(t){return new wi({check:"string_format",format:"uppercase",...v(t)})}function ut(t,r){return new Ii({check:"string_format",format:"includes",...v(r),includes:t})}function lt(t,r){return new ji({check:"string_format",format:"starts_with",...v(r),prefix:t})}function dt(t,r){return new Pi({check:"string_format",format:"ends_with",...v(r),suffix:t})}function zn(t,r,n){return new Ti({check:"property",property:t,schema:r,...v(n)})}function mt(t,r){return new Oi({check:"mime_type",mime:t,...v(r)})}function he(t){return new Ni({check:"overwrite",tx:t})}function pt(t){return he(r=>r.normalize(t))}function ft(){return he(t=>t.trim())}function gt(){return he(t=>t.toLowerCase())}function ht(){return he(t=>t.toUpperCase())}function Kt(t,r,n){return new t({type:"array",element:r,...v(n)})}function Dp(t,r,n){return new t({type:"union",options:r,...v(n)})}function Zp(t,r,n,i){return new t({type:"union",options:n,discriminator:r,...v(i)})}function Rp(t,r,n){return new t({type:"intersection",left:r,right:n})}function hs(t,r,n,i){let e=n instanceof T,o=e?i:n,a=e?n:null;return new t({type:"tuple",items:r,rest:a,...v(o)})}function Ap(t,r,n,i){return new t({type:"record",keyType:r,valueType:n,...v(i)})}function Cp(t,r,n,i){return new t({type:"map",keyType:r,valueType:n,...v(i)})}function Mp(t,r,n){return new t({type:"set",valueType:r,...v(n)})}function Lp(t,r,n){let i=Array.isArray(r)?Object.fromEntries(r.map(e=>[e,e])):r;return new t({type:"enum",entries:i,...v(n)})}function qp(t,r,n){return new t({type:"enum",entries:r,...v(n)})}function Vp(t,r,n){return new t({type:"literal",values:Array.isArray(r)?r:[r],...v(n)})}function vs(t,r){return new t({type:"file",...v(r)})}function Hp(t,r){return new t({type:"transform",transform:r})}function Fp(t,r){return new t({type:"optional",innerType:r})}function Jp(t,r){return new t({type:"nullable",innerType:r})}function Bp(t,r,n){return new t({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():n}})}function Wp(t,r,n){return new t({type:"nonoptional",innerType:r,...v(n)})}function Kp(t,r){return new t({type:"success",innerType:r})}function Gp(t,r,n){return new t({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}function Qp(t,r,n){return new t({type:"pipe",in:r,out:n})}function Yp(t,r){return new t({type:"readonly",innerType:r})}function Xp(t,r,n){return new t({type:"template_literal",parts:r,...v(n)})}function ef(t,r){return new t({type:"lazy",getter:r})}function tf(t,r){return new t({type:"promise",innerType:r})}function bs(t,r,n){let i=v(n);return i.abort??(i.abort=!0),new t({type:"custom",check:"custom",fn:r,...i})}function _s(t,r,n){return new t({type:"custom",check:"custom",fn:r,...v(n)})}function ys(t,r){let n=v(r),i=n.truthy??["true","1","yes","on","y","enabled"],e=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(p=>typeof p=="string"?p.toLowerCase():p),e=e.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(i),a=new Set(e),c=t.Pipe??Ft,l=t.Boolean??qt,h=t.String??Ze,f=t.Transform??Ht,m=new f({type:"transform",transform:(p,x)=>{let S=p;return n.case!=="sensitive"&&(S=S.toLowerCase()),o.has(S)?!0:a.has(S)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:x.value,inst:m}),{})},error:n.error}),$=new c({type:"pipe",in:new h({type:"string",error:n.error}),out:m,error:n.error});return new c({type:"pipe",in:$,out:new l({type:"boolean",error:n.error}),error:n.error})}function $s(t,r,n,i={}){let e=v(i),o={...v(i),check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:c=>n.test(c),...e};return n instanceof RegExp&&(o.pattern=n),new t(o)}var bn,xs=k(()=>{Lr();Jt();P();bn={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function Sn(t){return new kn({type:"function",input:Array.isArray(t?.input)?hs(Re,t?.input):t?.input??Kt(Vt,ot(tt)),output:t?.output??ot(tt)})}var kn,El=k(()=>{xs();Zr();Jt();Jt();kn=class{constructor(r){this._def=r,this.def=r}implement(r){if(typeof r!="function")throw new Error("implement() must be called with a function");let n=((...i)=>{let e=this._def.input?At(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(e))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=r(...e);return this._def.output?At(this._def.output,o,void 0,{callee:n}):o});return n}implementAsync(r){if(typeof r!="function")throw new Error("implement() must be called with a function");let n=(async(...i)=>{let e=this._def.input?await Ct(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(e))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=await r(...e);return this._def.output?Ct(this._def.output,o,void 0,{callee:n}):o});return n}input(...r){let n=this.constructor;return Array.isArray(r[0])?new n({type:"function",input:new Re({type:"tuple",items:r[0],rest:r[1]}),output:this._def.output}):new n({type:"function",input:r[0],output:this._def.output})}output(r){let n=this.constructor;return new n({type:"function",input:this._def.input,output:r})}}});function wn(t,r){if(t instanceof nt){let i=new Gt(r),e={};for(let c of t._idmap.entries()){let[l,h]=c;i.process(h)}let o={},a={registry:t,uri:r?.uri,defs:e};for(let c of t._idmap.entries()){let[l,h]=c;o[l]=i.emit(h,{...r,external:a})}if(Object.keys(e).length>0){let c=i.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[c]:e}}return{schemas:o}}let n=new Gt(r);return n.process(t),n.emit(t,r)}function G(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let e=t._zod.def;switch(e.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return G(e.element,n);case"object":{for(let o in e.shape)if(G(e.shape[o],n))return!0;return!1}case"union":{for(let o of e.options)if(G(o,n))return!0;return!1}case"intersection":return G(e.left,n)||G(e.right,n);case"tuple":{for(let o of e.items)if(G(o,n))return!0;return!!(e.rest&&G(e.rest,n))}case"record":return G(e.keyType,n)||G(e.valueType,n);case"map":return G(e.keyType,n)||G(e.valueType,n);case"set":return G(e.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return G(e.innerType,n);case"lazy":return G(e.getter(),n);case"default":return G(e.innerType,n);case"prefault":return G(e.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return G(e.in,n)||G(e.out,n);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${e.type}`)}var Gt,Dl=k(()=>{La();P();Gt=class{constructor(r){this.counter=0,this.metadataRegistry=r?.metadata??me,this.target=r?.target??"draft-2020-12",this.unrepresentable=r?.unrepresentable??"throw",this.override=r?.override??(()=>{}),this.io=r?.io??"output",this.seen=new Map}process(r,n={path:[],schemaPath:[]}){var i;let e=r._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(r);if(a)return a.count++,n.schemaPath.includes(r)&&(a.cycle=n.path),a.schema;let c={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(r,c);let l=r._zod.toJSONSchema?.();if(l)c.schema=l;else{let m={...n,schemaPath:[...n.schemaPath,r],path:n.path},$=r._zod.parent;if($)c.ref=$,this.process($,m),this.seen.get($).isParent=!0;else{let b=c.schema;switch(e.type){case"string":{let p=b;p.type="string";let{minimum:x,maximum:S,format:A,patterns:w,contentEncoding:j}=r._zod.bag;if(typeof x=="number"&&(p.minLength=x),typeof S=="number"&&(p.maxLength=S),A&&(p.format=o[A]??A,p.format===""&&delete p.format),j&&(p.contentEncoding=j),w&&w.size>0){let E=[...w];E.length===1?p.pattern=E[0].source:E.length>1&&(c.schema.allOf=[...E.map(Oe=>({...this.target==="draft-7"?{type:"string"}:{},pattern:Oe.source}))])}break}case"number":{let p=b,{minimum:x,maximum:S,format:A,multipleOf:w,exclusiveMaximum:j,exclusiveMinimum:E}=r._zod.bag;typeof A=="string"&&A.includes("int")?p.type="integer":p.type="number",typeof E=="number"&&(p.exclusiveMinimum=E),typeof x=="number"&&(p.minimum=x,typeof E=="number"&&(E>=x?delete p.minimum:delete p.exclusiveMinimum)),typeof j=="number"&&(p.exclusiveMaximum=j),typeof S=="number"&&(p.maximum=S,typeof j=="number"&&(j<=S?delete p.maximum:delete p.exclusiveMaximum)),typeof w=="number"&&(p.multipleOf=w);break}case"boolean":{let p=b;p.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{b.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{b.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let p=b,{minimum:x,maximum:S}=r._zod.bag;typeof x=="number"&&(p.minItems=x),typeof S=="number"&&(p.maxItems=S),p.type="array",p.items=this.process(e.element,{...m,path:[...m.path,"items"]});break}case"object":{let p=b;p.type="object",p.properties={};let x=e.shape;for(let w in x)p.properties[w]=this.process(x[w],{...m,path:[...m.path,"properties",w]});let S=new Set(Object.keys(x)),A=new Set([...S].filter(w=>{let j=e.shape[w]._zod;return this.io==="input"?j.optin===void 0:j.optout===void 0}));A.size>0&&(p.required=Array.from(A)),e.catchall?._zod.def.type==="never"?p.additionalProperties=!1:e.catchall?e.catchall&&(p.additionalProperties=this.process(e.catchall,{...m,path:[...m.path,"additionalProperties"]})):this.io==="output"&&(p.additionalProperties=!1);break}case"union":{let p=b;p.anyOf=e.options.map((x,S)=>this.process(x,{...m,path:[...m.path,"anyOf",S]}));break}case"intersection":{let p=b,x=this.process(e.left,{...m,path:[...m.path,"allOf",0]}),S=this.process(e.right,{...m,path:[...m.path,"allOf",1]}),A=j=>"allOf"in j&&Object.keys(j).length===1,w=[...A(x)?x.allOf:[x],...A(S)?S.allOf:[S]];p.allOf=w;break}case"tuple":{let p=b;p.type="array";let x=e.items.map((w,j)=>this.process(w,{...m,path:[...m.path,"prefixItems",j]}));if(this.target==="draft-2020-12"?p.prefixItems=x:p.items=x,e.rest){let w=this.process(e.rest,{...m,path:[...m.path,"items"]});this.target==="draft-2020-12"?p.items=w:p.additionalItems=w}e.rest&&(p.items=this.process(e.rest,{...m,path:[...m.path,"items"]}));let{minimum:S,maximum:A}=r._zod.bag;typeof S=="number"&&(p.minItems=S),typeof A=="number"&&(p.maxItems=A);break}case"record":{let p=b;p.type="object",p.propertyNames=this.process(e.keyType,{...m,path:[...m.path,"propertyNames"]}),p.additionalProperties=this.process(e.valueType,{...m,path:[...m.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let p=b,x=Ot(e.entries);x.every(S=>typeof S=="number")&&(p.type="number"),x.every(S=>typeof S=="string")&&(p.type="string"),p.enum=x;break}case"literal":{let p=b,x=[];for(let S of e.values)if(S===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof S=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");x.push(Number(S))}else x.push(S);if(x.length!==0)if(x.length===1){let S=x[0];p.type=S===null?"null":typeof S,p.const=S}else x.every(S=>typeof S=="number")&&(p.type="number"),x.every(S=>typeof S=="string")&&(p.type="string"),x.every(S=>typeof S=="boolean")&&(p.type="string"),x.every(S=>S===null)&&(p.type="null"),p.enum=x;break}case"file":{let p=b,x={type:"string",format:"binary",contentEncoding:"binary"},{minimum:S,maximum:A,mime:w}=r._zod.bag;S!==void 0&&(x.minLength=S),A!==void 0&&(x.maxLength=A),w?w.length===1?(x.contentMediaType=w[0],Object.assign(p,x)):p.anyOf=w.map(j=>({...x,contentMediaType:j})):Object.assign(p,x);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let p=this.process(e.innerType,m);b.anyOf=[p,{type:"null"}];break}case"nonoptional":{this.process(e.innerType,m),c.ref=e.innerType;break}case"success":{let p=b;p.type="boolean";break}case"default":{this.process(e.innerType,m),c.ref=e.innerType,b.default=JSON.parse(JSON.stringify(e.defaultValue));break}case"prefault":{this.process(e.innerType,m),c.ref=e.innerType,this.io==="input"&&(b._prefault=JSON.parse(JSON.stringify(e.defaultValue)));break}case"catch":{this.process(e.innerType,m),c.ref=e.innerType;let p;try{p=e.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}b.default=p;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let p=b,x=r._zod.pattern;if(!x)throw new Error("Pattern not found in template literal");p.type="string",p.pattern=x.source;break}case"pipe":{let p=this.io==="input"?e.in._zod.def.type==="transform"?e.out:e.in:e.out;this.process(p,m),c.ref=p;break}case"readonly":{this.process(e.innerType,m),c.ref=e.innerType,b.readOnly=!0;break}case"promise":{this.process(e.innerType,m),c.ref=e.innerType;break}case"optional":{this.process(e.innerType,m),c.ref=e.innerType;break}case"lazy":{let p=r._zod.innerType;this.process(p,m),c.ref=p;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}}let h=this.metadataRegistry.get(r);return h&&Object.assign(c.schema,h),this.io==="input"&&G(r)&&(delete c.schema.examples,delete c.schema.default),this.io==="input"&&c.schema._prefault&&((i=c.schema).default??(i.default=c.schema._prefault)),delete c.schema._prefault,this.seen.get(r).schema}emit(r,n){let i={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},e=this.seen.get(r);if(!e)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=f=>{let m=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){let x=i.external.registry.get(f[0])?.id,S=i.external.uri??(w=>w);if(x)return{ref:S(x)};let A=f[1].defId??f[1].schema.id??`schema${this.counter++}`;return f[1].defId=A,{defId:A,ref:`${S("__shared")}#/${m}/${A}`}}if(f[1]===e)return{ref:"#"};let b=`#/${m}/`,p=f[1].schema.id??`__schema${this.counter++}`;return{defId:p,ref:b+p}},a=f=>{if(f[1].schema.$ref)return;let m=f[1],{ref:$,defId:b}=o(f);m.def={...m.schema},b&&(m.defId=b);let p=m.schema;for(let x in p)delete p[x];p.$ref=$};if(i.cycles==="throw")for(let f of this.seen.entries()){let m=f[1];if(m.cycle)throw new Error(`Cycle detected: #/${m.cycle?.join("/")}/<root>
137
+
138
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let f of this.seen.entries()){let m=f[1];if(r===f[0]){a(f);continue}if(i.external){let b=i.external.registry.get(f[0])?.id;if(r!==f[0]&&b){a(f);continue}}if(this.metadataRegistry.get(f[0])?.id){a(f);continue}if(m.cycle){a(f);continue}if(m.count>1&&i.reused==="ref"){a(f);continue}}let c=(f,m)=>{let $=this.seen.get(f),b=$.def??$.schema,p={...b};if($.ref===null)return;let x=$.ref;if($.ref=null,x){c(x,m);let S=this.seen.get(x).schema;S.$ref&&m.target==="draft-7"?(b.allOf=b.allOf??[],b.allOf.push(S)):(Object.assign(b,S),Object.assign(b,p))}$.isParent||this.override({zodSchema:f,jsonSchema:b,path:$.path??[]})};for(let f of[...this.seen.entries()].reverse())c(f[0],{target:this.target});let l={};if(this.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?l.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),i.external?.uri){let f=i.external.registry.get(r)?.id;if(!f)throw new Error("Schema is missing an `id` property");l.$id=i.external.uri(f)}Object.assign(l,e.def);let h=i.external?.defs??{};for(let f of this.seen.entries()){let m=f[1];m.def&&m.defId&&(h[m.defId]=m.def)}i.external||Object.keys(h).length>0&&(this.target==="draft-2020-12"?l.$defs=h:l.definitions=h);try{return JSON.parse(JSON.stringify(l))}catch{throw new Error("Error converting schema to JSON.")}}}});var Zl={};var Rl=k(()=>{});var ve={};ze(ve,{$ZodAny:()=>pa,$ZodArray:()=>Vt,$ZodAsyncError:()=>pe,$ZodBase64:()=>na,$ZodBase64URL:()=>oa,$ZodBigInt:()=>Fr,$ZodBigIntFormat:()=>ua,$ZodBoolean:()=>qt,$ZodCIDRv4:()=>ea,$ZodCIDRv6:()=>ta,$ZodCUID:()=>Vi,$ZodCUID2:()=>Hi,$ZodCatch:()=>Na,$ZodCheck:()=>B,$ZodCheckBigIntFormat:()=>vi,$ZodCheckEndsWith:()=>Pi,$ZodCheckGreaterThan:()=>Mr,$ZodCheckIncludes:()=>Ii,$ZodCheckLengthEquals:()=>zi,$ZodCheckLessThan:()=>Cr,$ZodCheckLowerCase:()=>Si,$ZodCheckMaxLength:()=>$i,$ZodCheckMaxSize:()=>bi,$ZodCheckMimeType:()=>Oi,$ZodCheckMinLength:()=>xi,$ZodCheckMinSize:()=>_i,$ZodCheckMultipleOf:()=>gi,$ZodCheckNumberFormat:()=>hi,$ZodCheckOverwrite:()=>Ni,$ZodCheckProperty:()=>Ti,$ZodCheckRegex:()=>ki,$ZodCheckSizeEquals:()=>yi,$ZodCheckStartsWith:()=>ji,$ZodCheckStringFormat:()=>et,$ZodCheckUpperCase:()=>wi,$ZodCustom:()=>Aa,$ZodCustomStringFormat:()=>sa,$ZodDate:()=>ha,$ZodDefault:()=>ja,$ZodDiscriminatedUnion:()=>ba,$ZodE164:()=>ia,$ZodEmail:()=>Ci,$ZodEmoji:()=>Li,$ZodEnum:()=>za,$ZodError:()=>Rt,$ZodFile:()=>Sa,$ZodFunction:()=>kn,$ZodGUID:()=>Ri,$ZodIPv4:()=>Yi,$ZodIPv6:()=>Xi,$ZodISODate:()=>Ki,$ZodISODateTime:()=>Wi,$ZodISODuration:()=>Qi,$ZodISOTime:()=>Gi,$ZodIntersection:()=>_a,$ZodJWT:()=>aa,$ZodKSUID:()=>Bi,$ZodLazy:()=>Ra,$ZodLiteral:()=>ka,$ZodMap:()=>$a,$ZodNaN:()=>Ua,$ZodNanoID:()=>qi,$ZodNever:()=>fa,$ZodNonOptional:()=>Ta,$ZodNull:()=>ma,$ZodNullable:()=>Ia,$ZodNumber:()=>Hr,$ZodNumberFormat:()=>ca,$ZodObject:()=>va,$ZodOptional:()=>wa,$ZodPipe:()=>Ft,$ZodPrefault:()=>Pa,$ZodPromise:()=>Za,$ZodReadonly:()=>Ea,$ZodRealError:()=>Ge,$ZodRecord:()=>ya,$ZodRegistry:()=>nt,$ZodSet:()=>xa,$ZodString:()=>Ze,$ZodStringFormat:()=>q,$ZodSuccess:()=>Oa,$ZodSymbol:()=>la,$ZodTemplateLiteral:()=>Da,$ZodTransform:()=>Ht,$ZodTuple:()=>Re,$ZodType:()=>T,$ZodULID:()=>Fi,$ZodURL:()=>Mi,$ZodUUID:()=>Ai,$ZodUndefined:()=>da,$ZodUnion:()=>Jr,$ZodUnknown:()=>tt,$ZodVoid:()=>ga,$ZodXID:()=>Ji,$brand:()=>jr,$constructor:()=>u,$input:()=>Kr,$output:()=>Wr,Doc:()=>Lt,JSONSchema:()=>Zl,JSONSchemaGenerator:()=>Gt,NEVER:()=>Ir,TimePrecision:()=>bn,_any:()=>ls,_array:()=>Kt,_base64:()=>fn,_base64url:()=>gn,_bigint:()=>ns,_boolean:()=>ts,_catch:()=>Gp,_cidrv4:()=>mn,_cidrv6:()=>pn,_coercedBigint:()=>os,_coercedBoolean:()=>rs,_coercedDate:()=>fs,_coercedNumber:()=>Ka,_coercedString:()=>Va,_cuid:()=>on,_cuid2:()=>an,_custom:()=>bs,_date:()=>ps,_default:()=>Bp,_discriminatedUnion:()=>Zp,_e164:()=>hn,_email:()=>Gr,_emoji:()=>rn,_endsWith:()=>dt,_enum:()=>Lp,_file:()=>vs,_float32:()=>Qa,_float64:()=>Ya,_gt:()=>ge,_gte:()=>ne,_guid:()=>Wt,_includes:()=>ut,_int:()=>Ga,_int32:()=>Xa,_int64:()=>is,_intersection:()=>Rp,_ipv4:()=>ln,_ipv6:()=>dn,_isoDate:()=>Fa,_isoDateTime:()=>Ha,_isoDuration:()=>Ba,_isoTime:()=>Ja,_jwt:()=>vn,_ksuid:()=>un,_lazy:()=>ef,_length:()=>Me,_literal:()=>Vp,_lowercase:()=>st,_lt:()=>fe,_lte:()=>ce,_map:()=>Cp,_max:()=>ce,_maxLength:()=>Ce,_maxSize:()=>Ae,_mime:()=>mt,_min:()=>ne,_minLength:()=>ye,_minSize:()=>Ie,_multipleOf:()=>we,_nan:()=>gs,_nanoid:()=>nn,_nativeEnum:()=>qp,_negative:()=>yn,_never:()=>ds,_nonnegative:()=>xn,_nonoptional:()=>Wp,_nonpositive:()=>$n,_normalize:()=>pt,_null:()=>us,_nullable:()=>Jp,_number:()=>Wa,_optional:()=>Fp,_overwrite:()=>he,_parse:()=>Nr,_parseAsync:()=>Ur,_pipe:()=>Qp,_positive:()=>_n,_promise:()=>tf,_property:()=>zn,_readonly:()=>Yp,_record:()=>Ap,_refine:()=>_s,_regex:()=>at,_safeParse:()=>Er,_safeParseAsync:()=>Dr,_set:()=>Mp,_size:()=>it,_startsWith:()=>lt,_string:()=>qa,_stringFormat:()=>$s,_stringbool:()=>ys,_success:()=>Kp,_symbol:()=>ss,_templateLiteral:()=>Xp,_toLowerCase:()=>gt,_toUpperCase:()=>ht,_transform:()=>Hp,_trim:()=>ft,_tuple:()=>hs,_uint32:()=>es,_uint64:()=>as,_ulid:()=>sn,_undefined:()=>cs,_union:()=>Dp,_unknown:()=>ot,_uppercase:()=>ct,_url:()=>tn,_uuid:()=>Qr,_uuidv4:()=>Yr,_uuidv6:()=>Xr,_uuidv7:()=>en,_void:()=>ms,_xid:()=>cn,clone:()=>oe,config:()=>W,flattenError:()=>Qe,formatError:()=>Ye,function:()=>Sn,globalConfig:()=>Pt,globalRegistry:()=>me,isValidBase64:()=>ra,isValidBase64URL:()=>su,isValidJWT:()=>cu,locales:()=>rt,parse:()=>At,parseAsync:()=>Ct,prettifyError:()=>Or,regexes:()=>Se,registry:()=>Bt,safeParse:()=>Xe,safeParseAsync:()=>Mt,toDotPath:()=>Vc,toJSONSchema:()=>wn,treeifyError:()=>Tr,util:()=>y,version:()=>Ei});var ae=k(()=>{Be();Zr();Co();Jt();Lr();Di();P();Ar();Ma();La();Ui();El();xs();Dl();Rl()});var zs=k(()=>{ae()});var Le={};ze(Le,{ZodISODate:()=>Yt,ZodISODateTime:()=>Qt,ZodISODuration:()=>er,ZodISOTime:()=>Xt,date:()=>Ss,datetime:()=>ks,duration:()=>Is,time:()=>ws});function ks(t){return Ha(Qt,t)}function Ss(t){return Fa(Yt,t)}function ws(t){return Ja(Xt,t)}function Is(t){return Ba(er,t)}var Qt,Yt,Xt,er,Pn=k(()=>{ae();Tn();Qt=u("ZodISODateTime",(t,r)=>{Wi.init(t,r),V.init(t,r)});Yt=u("ZodISODate",(t,r)=>{Ki.init(t,r),V.init(t,r)});Xt=u("ZodISOTime",(t,r)=>{Gi.init(t,r),V.init(t,r)});er=u("ZodISODuration",(t,r)=>{Qi.init(t,r),V.init(t,r)})});var Ll,ql,qe,js=k(()=>{ae();ae();Ll=(t,r)=>{Rt.init(t,r),t.name="ZodError",Object.defineProperties(t,{format:{value:n=>Ye(t,n)},flatten:{value:n=>Qe(t,n)},addIssue:{value:n=>t.issues.push(n)},addIssues:{value:n=>t.issues.push(...n)},isEmpty:{get(){return t.issues.length===0}}})},ql=u("ZodError",Ll),qe=u("ZodError",Ll,{Parent:Error})});var On,Nn,Un,En,Ps=k(()=>{ae();js();On=Nr(qe),Nn=Ur(qe),Un=Er(qe),En=Dr(qe)});function d(t){return qa(bt,t)}function Vl(t){return Gr(Rn,t)}function Hl(t){return Wt(tr,t)}function Fl(t){return Qr(be,t)}function Jl(t){return Yr(be,t)}function Bl(t){return Xr(be,t)}function Wl(t){return en(be,t)}function Kl(t){return tn(An,t)}function Gl(t){return rn(Cn,t)}function Ql(t){return nn(Mn,t)}function Yl(t){return on(Ln,t)}function Xl(t){return an(qn,t)}function ed(t){return sn(Vn,t)}function td(t){return cn(Hn,t)}function rd(t){return un(Fn,t)}function nd(t){return ln(Jn,t)}function od(t){return dn(Bn,t)}function id(t){return mn(Wn,t)}function ad(t){return pn(Kn,t)}function sd(t){return fn(Gn,t)}function cd(t){return gn(Qn,t)}function ud(t){return hn(Yn,t)}function ld(t){return vn(Xn,t)}function dd(t,r,n={}){return $s(Ts,t,r,n)}function Z(t){return Wa(_t,t)}function Dn(t){return Ga(Ve,t)}function md(t){return Qa(Ve,t)}function pd(t){return Ya(Ve,t)}function fd(t){return Xa(Ve,t)}function gd(t){return es(Ve,t)}function K(t){return ts(yt,t)}function hd(t){return ns($t,t)}function vd(t){return is(eo,t)}function bd(t){return as(eo,t)}function _d(t){return ss(Os,t)}function yd(t){return cs(Ns,t)}function or(t){return us(Us,t)}function $d(){return ls(Es)}function F(){return ot(Ds)}function ir(t){return ds(Zs,t)}function xd(t){return ms(Rs,t)}function zd(t){return ps(ar,t)}function U(t,r){return Kt(As,t,r)}function kd(t){let r=t._zod.def.shape;return I(Object.keys(r))}function z(t,r){let n={type:"object",get shape(){return y.assignProp(this,"shape",{...t}),this.shape},...y.normalizeParams(r)};return new sr(n)}function Sd(t,r){return new sr({type:"object",get shape(){return y.assignProp(this,"shape",{...t}),this.shape},catchall:ir(),...y.normalizeParams(r)})}function Y(t,r){return new sr({type:"object",get shape(){return y.assignProp(this,"shape",{...t}),this.shape},catchall:F(),...y.normalizeParams(r)})}function M(t,r){return new to({type:"union",options:t,...y.normalizeParams(r)})}function cr(t,r,n){return new Cs({type:"union",options:r,discriminator:t,...y.normalizeParams(n)})}function xt(t,r){return new Ms({type:"intersection",left:t,right:r})}function wd(t,r,n){let i=r instanceof T,e=i?n:r,o=i?r:null;return new Ls({type:"tuple",items:t,rest:o,...y.normalizeParams(e)})}function L(t,r,n){return new ro({type:"record",keyType:t,valueType:r,...y.normalizeParams(n)})}function Id(t,r,n){return new ro({type:"record",keyType:M([t,ir()]),valueType:r,...y.normalizeParams(n)})}function jd(t,r,n){return new qs({type:"map",keyType:t,valueType:r,...y.normalizeParams(n)})}function Pd(t,r){return new Vs({type:"set",valueType:t,...y.normalizeParams(r)})}function re(t,r){let n=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new vt({type:"enum",entries:n,...y.normalizeParams(r)})}function Td(t,r){return new vt({type:"enum",entries:t,...y.normalizeParams(r)})}function I(t,r){return new Hs({type:"literal",values:Array.isArray(t)?t:[t],...y.normalizeParams(r)})}function Od(t){return vs(Fs,t)}function oo(t){return new no({type:"transform",transform:t})}function H(t){return new io({type:"optional",innerType:t})}function rr(t){return new Js({type:"nullable",innerType:t})}function Nd(t){return H(rr(t))}function Ws(t,r){return new Bs({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():r}})}function Gs(t,r){return new Ks({type:"prefault",innerType:t,get defaultValue(){return typeof r=="function"?r():r}})}function Qs(t,r){return new ao({type:"nonoptional",innerType:t,...y.normalizeParams(r)})}function Ud(t){return new Ys({type:"success",innerType:t})}function ec(t,r){return new Xs({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function Ed(t){return gs(tc,t)}function nr(t,r){return new so({type:"pipe",in:t,out:r})}function nc(t){return new rc({type:"readonly",innerType:t})}function Dd(t,r){return new oc({type:"template_literal",parts:t,...y.normalizeParams(r)})}function ac(t){return new ic({type:"lazy",getter:t})}function Zd(t){return new sc({type:"promise",innerType:t})}function cc(t){let r=new B({check:"custom"});return r._zod.check=t,r}function co(t,r){return bs(ur,t??(()=>!0),r)}function uc(t,r={}){return _s(ur,t,r)}function lc(t){let r=cc(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(y.issue(i,n.value,r._zod.def));else{let e=i;e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=n.value),e.inst??(e.inst=r),e.continue??(e.continue=!r._zod.def.abort),n.issues.push(y.issue(e))}},t(n.value,n)));return r}function Rd(t,r={error:`Input not instance of ${t.name}`}){let n=new ur({type:"custom",check:"custom",fn:i=>i instanceof t,abort:!0,...y.normalizeParams(r)});return n._zod.bag.Class=t,n}function Cd(t){let r=ac(()=>M([d(t),Z(),K(),or(),U(r),L(d(),r)]));return r}function lr(t,r){return nr(oo(t),r)}var N,Zn,bt,V,Rn,tr,be,An,Cn,Mn,Ln,qn,Vn,Hn,Fn,Jn,Bn,Wn,Kn,Gn,Qn,Yn,Xn,Ts,_t,Ve,yt,$t,eo,Os,Ns,Us,Es,Ds,Zs,Rs,ar,As,sr,to,Cs,Ms,Ls,ro,qs,Vs,vt,Hs,Fs,no,io,Js,Bs,Ks,ao,Ys,Xs,tc,so,rc,oc,ic,sc,ur,Ad,Tn=k(()=>{ae();ae();zs();Pn();Ps();N=u("ZodType",(t,r)=>(T.init(t,r),t.def=r,Object.defineProperty(t,"_def",{value:r}),t.check=(...n)=>t.clone({...r,checks:[...r.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),t.clone=(n,i)=>oe(t,n,i),t.brand=()=>t,t.register=((n,i)=>(n.add(t,i),t)),t.parse=(n,i)=>On(t,n,i,{callee:t.parse}),t.safeParse=(n,i)=>Un(t,n,i),t.parseAsync=async(n,i)=>Nn(t,n,i,{callee:t.parseAsync}),t.safeParseAsync=async(n,i)=>En(t,n,i),t.spa=t.safeParseAsync,t.refine=(n,i)=>t.check(uc(n,i)),t.superRefine=n=>t.check(lc(n)),t.overwrite=n=>t.check(he(n)),t.optional=()=>H(t),t.nullable=()=>rr(t),t.nullish=()=>H(rr(t)),t.nonoptional=n=>Qs(t,n),t.array=()=>U(t),t.or=n=>M([t,n]),t.and=n=>xt(t,n),t.transform=n=>nr(t,oo(n)),t.default=n=>Ws(t,n),t.prefault=n=>Gs(t,n),t.catch=n=>ec(t,n),t.pipe=n=>nr(t,n),t.readonly=()=>nc(t),t.describe=n=>{let i=t.clone();return me.add(i,{description:n}),i},Object.defineProperty(t,"description",{get(){return me.get(t)?.description},configurable:!0}),t.meta=(...n)=>{if(n.length===0)return me.get(t);let i=t.clone();return me.add(i,n[0]),i},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),Zn=u("_ZodString",(t,r)=>{Ze.init(t,r),N.init(t,r);let n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null,t.regex=(...i)=>t.check(at(...i)),t.includes=(...i)=>t.check(ut(...i)),t.startsWith=(...i)=>t.check(lt(...i)),t.endsWith=(...i)=>t.check(dt(...i)),t.min=(...i)=>t.check(ye(...i)),t.max=(...i)=>t.check(Ce(...i)),t.length=(...i)=>t.check(Me(...i)),t.nonempty=(...i)=>t.check(ye(1,...i)),t.lowercase=i=>t.check(st(i)),t.uppercase=i=>t.check(ct(i)),t.trim=()=>t.check(ft()),t.normalize=(...i)=>t.check(pt(...i)),t.toLowerCase=()=>t.check(gt()),t.toUpperCase=()=>t.check(ht())}),bt=u("ZodString",(t,r)=>{Ze.init(t,r),Zn.init(t,r),t.email=n=>t.check(Gr(Rn,n)),t.url=n=>t.check(tn(An,n)),t.jwt=n=>t.check(vn(Xn,n)),t.emoji=n=>t.check(rn(Cn,n)),t.guid=n=>t.check(Wt(tr,n)),t.uuid=n=>t.check(Qr(be,n)),t.uuidv4=n=>t.check(Yr(be,n)),t.uuidv6=n=>t.check(Xr(be,n)),t.uuidv7=n=>t.check(en(be,n)),t.nanoid=n=>t.check(nn(Mn,n)),t.guid=n=>t.check(Wt(tr,n)),t.cuid=n=>t.check(on(Ln,n)),t.cuid2=n=>t.check(an(qn,n)),t.ulid=n=>t.check(sn(Vn,n)),t.base64=n=>t.check(fn(Gn,n)),t.base64url=n=>t.check(gn(Qn,n)),t.xid=n=>t.check(cn(Hn,n)),t.ksuid=n=>t.check(un(Fn,n)),t.ipv4=n=>t.check(ln(Jn,n)),t.ipv6=n=>t.check(dn(Bn,n)),t.cidrv4=n=>t.check(mn(Wn,n)),t.cidrv6=n=>t.check(pn(Kn,n)),t.e164=n=>t.check(hn(Yn,n)),t.datetime=n=>t.check(ks(n)),t.date=n=>t.check(Ss(n)),t.time=n=>t.check(ws(n)),t.duration=n=>t.check(Is(n))});V=u("ZodStringFormat",(t,r)=>{q.init(t,r),Zn.init(t,r)}),Rn=u("ZodEmail",(t,r)=>{Ci.init(t,r),V.init(t,r)});tr=u("ZodGUID",(t,r)=>{Ri.init(t,r),V.init(t,r)});be=u("ZodUUID",(t,r)=>{Ai.init(t,r),V.init(t,r)});An=u("ZodURL",(t,r)=>{Mi.init(t,r),V.init(t,r)});Cn=u("ZodEmoji",(t,r)=>{Li.init(t,r),V.init(t,r)});Mn=u("ZodNanoID",(t,r)=>{qi.init(t,r),V.init(t,r)});Ln=u("ZodCUID",(t,r)=>{Vi.init(t,r),V.init(t,r)});qn=u("ZodCUID2",(t,r)=>{Hi.init(t,r),V.init(t,r)});Vn=u("ZodULID",(t,r)=>{Fi.init(t,r),V.init(t,r)});Hn=u("ZodXID",(t,r)=>{Ji.init(t,r),V.init(t,r)});Fn=u("ZodKSUID",(t,r)=>{Bi.init(t,r),V.init(t,r)});Jn=u("ZodIPv4",(t,r)=>{Yi.init(t,r),V.init(t,r)});Bn=u("ZodIPv6",(t,r)=>{Xi.init(t,r),V.init(t,r)});Wn=u("ZodCIDRv4",(t,r)=>{ea.init(t,r),V.init(t,r)});Kn=u("ZodCIDRv6",(t,r)=>{ta.init(t,r),V.init(t,r)});Gn=u("ZodBase64",(t,r)=>{na.init(t,r),V.init(t,r)});Qn=u("ZodBase64URL",(t,r)=>{oa.init(t,r),V.init(t,r)});Yn=u("ZodE164",(t,r)=>{ia.init(t,r),V.init(t,r)});Xn=u("ZodJWT",(t,r)=>{aa.init(t,r),V.init(t,r)});Ts=u("ZodCustomStringFormat",(t,r)=>{sa.init(t,r),V.init(t,r)});_t=u("ZodNumber",(t,r)=>{Hr.init(t,r),N.init(t,r),t.gt=(i,e)=>t.check(ge(i,e)),t.gte=(i,e)=>t.check(ne(i,e)),t.min=(i,e)=>t.check(ne(i,e)),t.lt=(i,e)=>t.check(fe(i,e)),t.lte=(i,e)=>t.check(ce(i,e)),t.max=(i,e)=>t.check(ce(i,e)),t.int=i=>t.check(Dn(i)),t.safe=i=>t.check(Dn(i)),t.positive=i=>t.check(ge(0,i)),t.nonnegative=i=>t.check(ne(0,i)),t.negative=i=>t.check(fe(0,i)),t.nonpositive=i=>t.check(ce(0,i)),t.multipleOf=(i,e)=>t.check(we(i,e)),t.step=(i,e)=>t.check(we(i,e)),t.finite=()=>t;let n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null});Ve=u("ZodNumberFormat",(t,r)=>{ca.init(t,r),_t.init(t,r)});yt=u("ZodBoolean",(t,r)=>{qt.init(t,r),N.init(t,r)});$t=u("ZodBigInt",(t,r)=>{Fr.init(t,r),N.init(t,r),t.gte=(i,e)=>t.check(ne(i,e)),t.min=(i,e)=>t.check(ne(i,e)),t.gt=(i,e)=>t.check(ge(i,e)),t.gte=(i,e)=>t.check(ne(i,e)),t.min=(i,e)=>t.check(ne(i,e)),t.lt=(i,e)=>t.check(fe(i,e)),t.lte=(i,e)=>t.check(ce(i,e)),t.max=(i,e)=>t.check(ce(i,e)),t.positive=i=>t.check(ge(BigInt(0),i)),t.negative=i=>t.check(fe(BigInt(0),i)),t.nonpositive=i=>t.check(ce(BigInt(0),i)),t.nonnegative=i=>t.check(ne(BigInt(0),i)),t.multipleOf=(i,e)=>t.check(we(i,e));let n=t._zod.bag;t.minValue=n.minimum??null,t.maxValue=n.maximum??null,t.format=n.format??null});eo=u("ZodBigIntFormat",(t,r)=>{ua.init(t,r),$t.init(t,r)});Os=u("ZodSymbol",(t,r)=>{la.init(t,r),N.init(t,r)});Ns=u("ZodUndefined",(t,r)=>{da.init(t,r),N.init(t,r)});Us=u("ZodNull",(t,r)=>{ma.init(t,r),N.init(t,r)});Es=u("ZodAny",(t,r)=>{pa.init(t,r),N.init(t,r)});Ds=u("ZodUnknown",(t,r)=>{tt.init(t,r),N.init(t,r)});Zs=u("ZodNever",(t,r)=>{fa.init(t,r),N.init(t,r)});Rs=u("ZodVoid",(t,r)=>{ga.init(t,r),N.init(t,r)});ar=u("ZodDate",(t,r)=>{ha.init(t,r),N.init(t,r),t.min=(i,e)=>t.check(ne(i,e)),t.max=(i,e)=>t.check(ce(i,e));let n=t._zod.bag;t.minDate=n.minimum?new Date(n.minimum):null,t.maxDate=n.maximum?new Date(n.maximum):null});As=u("ZodArray",(t,r)=>{Vt.init(t,r),N.init(t,r),t.element=r.element,t.min=(n,i)=>t.check(ye(n,i)),t.nonempty=n=>t.check(ye(1,n)),t.max=(n,i)=>t.check(Ce(n,i)),t.length=(n,i)=>t.check(Me(n,i)),t.unwrap=()=>t.element});sr=u("ZodObject",(t,r)=>{va.init(t,r),N.init(t,r),y.defineLazy(t,"shape",()=>r.shape),t.keyof=()=>re(Object.keys(t._zod.def.shape)),t.catchall=n=>t.clone({...t._zod.def,catchall:n}),t.passthrough=()=>t.clone({...t._zod.def,catchall:F()}),t.loose=()=>t.clone({...t._zod.def,catchall:F()}),t.strict=()=>t.clone({...t._zod.def,catchall:ir()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=n=>y.extend(t,n),t.merge=n=>y.merge(t,n),t.pick=n=>y.pick(t,n),t.omit=n=>y.omit(t,n),t.partial=(...n)=>y.partial(io,t,n[0]),t.required=(...n)=>y.required(ao,t,n[0])});to=u("ZodUnion",(t,r)=>{Jr.init(t,r),N.init(t,r),t.options=r.options});Cs=u("ZodDiscriminatedUnion",(t,r)=>{to.init(t,r),ba.init(t,r)});Ms=u("ZodIntersection",(t,r)=>{_a.init(t,r),N.init(t,r)});Ls=u("ZodTuple",(t,r)=>{Re.init(t,r),N.init(t,r),t.rest=n=>t.clone({...t._zod.def,rest:n})});ro=u("ZodRecord",(t,r)=>{ya.init(t,r),N.init(t,r),t.keyType=r.keyType,t.valueType=r.valueType});qs=u("ZodMap",(t,r)=>{$a.init(t,r),N.init(t,r),t.keyType=r.keyType,t.valueType=r.valueType});Vs=u("ZodSet",(t,r)=>{xa.init(t,r),N.init(t,r),t.min=(...n)=>t.check(Ie(...n)),t.nonempty=n=>t.check(Ie(1,n)),t.max=(...n)=>t.check(Ae(...n)),t.size=(...n)=>t.check(it(...n))});vt=u("ZodEnum",(t,r)=>{za.init(t,r),N.init(t,r),t.enum=r.entries,t.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));t.extract=(i,e)=>{let o={};for(let a of i)if(n.has(a))o[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new vt({...r,checks:[],...y.normalizeParams(e),entries:o})},t.exclude=(i,e)=>{let o={...r.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new vt({...r,checks:[],...y.normalizeParams(e),entries:o})}});Hs=u("ZodLiteral",(t,r)=>{ka.init(t,r),N.init(t,r),t.values=new Set(r.values),Object.defineProperty(t,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});Fs=u("ZodFile",(t,r)=>{Sa.init(t,r),N.init(t,r),t.min=(n,i)=>t.check(Ie(n,i)),t.max=(n,i)=>t.check(Ae(n,i)),t.mime=(n,i)=>t.check(mt(Array.isArray(n)?n:[n],i))});no=u("ZodTransform",(t,r)=>{Ht.init(t,r),N.init(t,r),t._zod.parse=(n,i)=>{n.addIssue=o=>{if(typeof o=="string")n.issues.push(y.issue(o,n.value,r));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=t),a.continue??(a.continue=!0),n.issues.push(y.issue(a))}};let e=r.transform(n.value,n);return e instanceof Promise?e.then(o=>(n.value=o,n)):(n.value=e,n)}});io=u("ZodOptional",(t,r)=>{wa.init(t,r),N.init(t,r),t.unwrap=()=>t._zod.def.innerType});Js=u("ZodNullable",(t,r)=>{Ia.init(t,r),N.init(t,r),t.unwrap=()=>t._zod.def.innerType});Bs=u("ZodDefault",(t,r)=>{ja.init(t,r),N.init(t,r),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});Ks=u("ZodPrefault",(t,r)=>{Pa.init(t,r),N.init(t,r),t.unwrap=()=>t._zod.def.innerType});ao=u("ZodNonOptional",(t,r)=>{Ta.init(t,r),N.init(t,r),t.unwrap=()=>t._zod.def.innerType});Ys=u("ZodSuccess",(t,r)=>{Oa.init(t,r),N.init(t,r),t.unwrap=()=>t._zod.def.innerType});Xs=u("ZodCatch",(t,r)=>{Na.init(t,r),N.init(t,r),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});tc=u("ZodNaN",(t,r)=>{Ua.init(t,r),N.init(t,r)});so=u("ZodPipe",(t,r)=>{Ft.init(t,r),N.init(t,r),t.in=r.in,t.out=r.out});rc=u("ZodReadonly",(t,r)=>{Ea.init(t,r),N.init(t,r)});oc=u("ZodTemplateLiteral",(t,r)=>{Da.init(t,r),N.init(t,r)});ic=u("ZodLazy",(t,r)=>{Ra.init(t,r),N.init(t,r),t.unwrap=()=>t._zod.def.getter()});sc=u("ZodPromise",(t,r)=>{Za.init(t,r),N.init(t,r),t.unwrap=()=>t._zod.def.innerType});ur=u("ZodCustom",(t,r)=>{Aa.init(t,r),N.init(t,r)});Ad=(...t)=>ys({Pipe:so,Boolean:yt,String:bt,Transform:no},...t)});function Ld(t){W({customError:t})}function qd(){return W().customError}var Md,Vd=k(()=>{ae();Md={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"}});var uo={};ze(uo,{bigint:()=>cf,boolean:()=>sf,date:()=>uf,number:()=>af,string:()=>of});function of(t){return Va(bt,t)}function af(t){return Ka(_t,t)}function sf(t){return rs(yt,t)}function cf(t){return os($t,t)}function uf(t){return fs(ar,t)}var Hd=k(()=>{ae();Tn()});var s={};ze(s,{$brand:()=>jr,$input:()=>Kr,$output:()=>Wr,NEVER:()=>Ir,TimePrecision:()=>bn,ZodAny:()=>Es,ZodArray:()=>As,ZodBase64:()=>Gn,ZodBase64URL:()=>Qn,ZodBigInt:()=>$t,ZodBigIntFormat:()=>eo,ZodBoolean:()=>yt,ZodCIDRv4:()=>Wn,ZodCIDRv6:()=>Kn,ZodCUID:()=>Ln,ZodCUID2:()=>qn,ZodCatch:()=>Xs,ZodCustom:()=>ur,ZodCustomStringFormat:()=>Ts,ZodDate:()=>ar,ZodDefault:()=>Bs,ZodDiscriminatedUnion:()=>Cs,ZodE164:()=>Yn,ZodEmail:()=>Rn,ZodEmoji:()=>Cn,ZodEnum:()=>vt,ZodError:()=>ql,ZodFile:()=>Fs,ZodGUID:()=>tr,ZodIPv4:()=>Jn,ZodIPv6:()=>Bn,ZodISODate:()=>Yt,ZodISODateTime:()=>Qt,ZodISODuration:()=>er,ZodISOTime:()=>Xt,ZodIntersection:()=>Ms,ZodIssueCode:()=>Md,ZodJWT:()=>Xn,ZodKSUID:()=>Fn,ZodLazy:()=>ic,ZodLiteral:()=>Hs,ZodMap:()=>qs,ZodNaN:()=>tc,ZodNanoID:()=>Mn,ZodNever:()=>Zs,ZodNonOptional:()=>ao,ZodNull:()=>Us,ZodNullable:()=>Js,ZodNumber:()=>_t,ZodNumberFormat:()=>Ve,ZodObject:()=>sr,ZodOptional:()=>io,ZodPipe:()=>so,ZodPrefault:()=>Ks,ZodPromise:()=>sc,ZodReadonly:()=>rc,ZodRealError:()=>qe,ZodRecord:()=>ro,ZodSet:()=>Vs,ZodString:()=>bt,ZodStringFormat:()=>V,ZodSuccess:()=>Ys,ZodSymbol:()=>Os,ZodTemplateLiteral:()=>oc,ZodTransform:()=>no,ZodTuple:()=>Ls,ZodType:()=>N,ZodULID:()=>Vn,ZodURL:()=>An,ZodUUID:()=>be,ZodUndefined:()=>Ns,ZodUnion:()=>to,ZodUnknown:()=>Ds,ZodVoid:()=>Rs,ZodXID:()=>Hn,_ZodString:()=>Zn,_default:()=>Ws,any:()=>$d,array:()=>U,base64:()=>sd,base64url:()=>cd,bigint:()=>hd,boolean:()=>K,catch:()=>ec,check:()=>cc,cidrv4:()=>id,cidrv6:()=>ad,clone:()=>oe,coerce:()=>uo,config:()=>W,core:()=>ve,cuid:()=>Yl,cuid2:()=>Xl,custom:()=>co,date:()=>zd,discriminatedUnion:()=>cr,e164:()=>ud,email:()=>Vl,emoji:()=>Gl,endsWith:()=>dt,enum:()=>re,file:()=>Od,flattenError:()=>Qe,float32:()=>md,float64:()=>pd,formatError:()=>Ye,function:()=>Sn,getErrorMap:()=>qd,globalRegistry:()=>me,gt:()=>ge,gte:()=>ne,guid:()=>Hl,includes:()=>ut,instanceof:()=>Rd,int:()=>Dn,int32:()=>fd,int64:()=>vd,intersection:()=>xt,ipv4:()=>nd,ipv6:()=>od,iso:()=>Le,json:()=>Cd,jwt:()=>ld,keyof:()=>kd,ksuid:()=>rd,lazy:()=>ac,length:()=>Me,literal:()=>I,locales:()=>rt,looseObject:()=>Y,lowercase:()=>st,lt:()=>fe,lte:()=>ce,map:()=>jd,maxLength:()=>Ce,maxSize:()=>Ae,mime:()=>mt,minLength:()=>ye,minSize:()=>Ie,multipleOf:()=>we,nan:()=>Ed,nanoid:()=>Ql,nativeEnum:()=>Td,negative:()=>yn,never:()=>ir,nonnegative:()=>xn,nonoptional:()=>Qs,nonpositive:()=>$n,normalize:()=>pt,null:()=>or,nullable:()=>rr,nullish:()=>Nd,number:()=>Z,object:()=>z,optional:()=>H,overwrite:()=>he,parse:()=>On,parseAsync:()=>Nn,partialRecord:()=>Id,pipe:()=>nr,positive:()=>_n,prefault:()=>Gs,preprocess:()=>lr,prettifyError:()=>Or,promise:()=>Zd,property:()=>zn,readonly:()=>nc,record:()=>L,refine:()=>uc,regex:()=>at,regexes:()=>Se,registry:()=>Bt,safeParse:()=>Un,safeParseAsync:()=>En,set:()=>Pd,setErrorMap:()=>Ld,size:()=>it,startsWith:()=>lt,strictObject:()=>Sd,string:()=>d,stringFormat:()=>dd,stringbool:()=>Ad,success:()=>Ud,superRefine:()=>lc,symbol:()=>_d,templateLiteral:()=>Dd,toJSONSchema:()=>wn,toLowerCase:()=>gt,toUpperCase:()=>ht,transform:()=>oo,treeifyError:()=>Tr,trim:()=>ft,tuple:()=>wd,uint32:()=>gd,uint64:()=>bd,ulid:()=>ed,undefined:()=>yd,union:()=>M,unknown:()=>F,uppercase:()=>ct,url:()=>Kl,uuid:()=>Fl,uuidv4:()=>Jl,uuidv6:()=>Bl,uuidv7:()=>Wl,void:()=>xd,xid:()=>td});var dc=k(()=>{ae();Tn();zs();js();Ps();Vd();ae();Ca();ae();Ma();Pn();Pn();Hd();W(Br())});var Fd,mc=k(()=>{dc();dc();Fd=s});var pc={};ze(pc,{$brand:()=>jr,$input:()=>Kr,$output:()=>Wr,NEVER:()=>Ir,TimePrecision:()=>bn,ZodAny:()=>Es,ZodArray:()=>As,ZodBase64:()=>Gn,ZodBase64URL:()=>Qn,ZodBigInt:()=>$t,ZodBigIntFormat:()=>eo,ZodBoolean:()=>yt,ZodCIDRv4:()=>Wn,ZodCIDRv6:()=>Kn,ZodCUID:()=>Ln,ZodCUID2:()=>qn,ZodCatch:()=>Xs,ZodCustom:()=>ur,ZodCustomStringFormat:()=>Ts,ZodDate:()=>ar,ZodDefault:()=>Bs,ZodDiscriminatedUnion:()=>Cs,ZodE164:()=>Yn,ZodEmail:()=>Rn,ZodEmoji:()=>Cn,ZodEnum:()=>vt,ZodError:()=>ql,ZodFile:()=>Fs,ZodGUID:()=>tr,ZodIPv4:()=>Jn,ZodIPv6:()=>Bn,ZodISODate:()=>Yt,ZodISODateTime:()=>Qt,ZodISODuration:()=>er,ZodISOTime:()=>Xt,ZodIntersection:()=>Ms,ZodIssueCode:()=>Md,ZodJWT:()=>Xn,ZodKSUID:()=>Fn,ZodLazy:()=>ic,ZodLiteral:()=>Hs,ZodMap:()=>qs,ZodNaN:()=>tc,ZodNanoID:()=>Mn,ZodNever:()=>Zs,ZodNonOptional:()=>ao,ZodNull:()=>Us,ZodNullable:()=>Js,ZodNumber:()=>_t,ZodNumberFormat:()=>Ve,ZodObject:()=>sr,ZodOptional:()=>io,ZodPipe:()=>so,ZodPrefault:()=>Ks,ZodPromise:()=>sc,ZodReadonly:()=>rc,ZodRealError:()=>qe,ZodRecord:()=>ro,ZodSet:()=>Vs,ZodString:()=>bt,ZodStringFormat:()=>V,ZodSuccess:()=>Ys,ZodSymbol:()=>Os,ZodTemplateLiteral:()=>oc,ZodTransform:()=>no,ZodTuple:()=>Ls,ZodType:()=>N,ZodULID:()=>Vn,ZodURL:()=>An,ZodUUID:()=>be,ZodUndefined:()=>Ns,ZodUnion:()=>to,ZodUnknown:()=>Ds,ZodVoid:()=>Rs,ZodXID:()=>Hn,_ZodString:()=>Zn,_default:()=>Ws,any:()=>$d,array:()=>U,base64:()=>sd,base64url:()=>cd,bigint:()=>hd,boolean:()=>K,catch:()=>ec,check:()=>cc,cidrv4:()=>id,cidrv6:()=>ad,clone:()=>oe,coerce:()=>uo,config:()=>W,core:()=>ve,cuid:()=>Yl,cuid2:()=>Xl,custom:()=>co,date:()=>zd,default:()=>lf,discriminatedUnion:()=>cr,e164:()=>ud,email:()=>Vl,emoji:()=>Gl,endsWith:()=>dt,enum:()=>re,file:()=>Od,flattenError:()=>Qe,float32:()=>md,float64:()=>pd,formatError:()=>Ye,function:()=>Sn,getErrorMap:()=>qd,globalRegistry:()=>me,gt:()=>ge,gte:()=>ne,guid:()=>Hl,includes:()=>ut,instanceof:()=>Rd,int:()=>Dn,int32:()=>fd,int64:()=>vd,intersection:()=>xt,ipv4:()=>nd,ipv6:()=>od,iso:()=>Le,json:()=>Cd,jwt:()=>ld,keyof:()=>kd,ksuid:()=>rd,lazy:()=>ac,length:()=>Me,literal:()=>I,locales:()=>rt,looseObject:()=>Y,lowercase:()=>st,lt:()=>fe,lte:()=>ce,map:()=>jd,maxLength:()=>Ce,maxSize:()=>Ae,mime:()=>mt,minLength:()=>ye,minSize:()=>Ie,multipleOf:()=>we,nan:()=>Ed,nanoid:()=>Ql,nativeEnum:()=>Td,negative:()=>yn,never:()=>ir,nonnegative:()=>xn,nonoptional:()=>Qs,nonpositive:()=>$n,normalize:()=>pt,null:()=>or,nullable:()=>rr,nullish:()=>Nd,number:()=>Z,object:()=>z,optional:()=>H,overwrite:()=>he,parse:()=>On,parseAsync:()=>Nn,partialRecord:()=>Id,pipe:()=>nr,positive:()=>_n,prefault:()=>Gs,preprocess:()=>lr,prettifyError:()=>Or,promise:()=>Zd,property:()=>zn,readonly:()=>nc,record:()=>L,refine:()=>uc,regex:()=>at,regexes:()=>Se,registry:()=>Bt,safeParse:()=>Un,safeParseAsync:()=>En,set:()=>Pd,setErrorMap:()=>Ld,size:()=>it,startsWith:()=>lt,strictObject:()=>Sd,string:()=>d,stringFormat:()=>dd,stringbool:()=>Ad,success:()=>Ud,superRefine:()=>lc,symbol:()=>_d,templateLiteral:()=>Dd,toJSONSchema:()=>wn,toLowerCase:()=>gt,toUpperCase:()=>ht,transform:()=>oo,treeifyError:()=>Tr,trim:()=>ft,tuple:()=>wd,uint32:()=>gd,uint64:()=>bd,ulid:()=>ed,undefined:()=>yd,union:()=>M,unknown:()=>F,uppercase:()=>ct,url:()=>Kl,uuid:()=>Fl,uuidv4:()=>Jl,uuidv6:()=>Bl,uuidv7:()=>Wl,void:()=>xd,xid:()=>td,z:()=>s});var lf,dr=k(()=>{mc();mc();lf=Fd});ae();function In(t){return!!t._zod}function jn(t,r){return In(t)?Xe(t,r):t.safeParse(r)}function Al(t){if(!t)return;let r;if(In(t)?r=t._zod?.def?.shape:r=t.shape,!!r){if(typeof r=="function")try{return r()}catch{return}return r}}function Cl(t){if(In(t)){let o=t._zod?.def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}}let n=t._def;if(n){if(n.value!==void 0)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}let i=t.value;if(i!==void 0)return i}dr();var je="io.modelcontextprotocol/related-task",mo="2.0",Q=co(t=>t!==null&&(typeof t=="object"||typeof t=="function")),Jd=M([d(),Z().int()]),Bd=d(),qb=Y({ttl:Z().optional(),pollInterval:Z().optional()}),df=z({ttl:Z().optional()}),mf=z({taskId:d()}),gc=Y({progressToken:Jd.optional(),[je]:mf.optional()}),ue=z({_meta:gc.optional()}),mr=ue.extend({task:df.optional()}),Wd=t=>mr.safeParse(t).success,X=z({method:d(),params:ue.loose().optional()}),le=z({_meta:gc.optional()}),de=z({method:d(),params:le.loose().optional()}),ee=Y({_meta:gc.optional()}),kt=M([d(),Z().int()]),Kd=z({jsonrpc:I(mo),id:kt,...X.shape}).strict(),hc=t=>Kd.safeParse(t).success,Gd=z({jsonrpc:I(mo),...de.shape}).strict(),Qd=t=>Gd.safeParse(t).success,vc=z({jsonrpc:I(mo),id:kt,result:ee}).strict(),pr=t=>vc.safeParse(t).success;var C;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(C||(C={}));var bc=z({jsonrpc:I(mo),id:kt.optional(),error:z({code:Z().int(),message:d(),data:F().optional()})}).strict();var Yd=t=>bc.safeParse(t).success;var Xd=M([Kd,Gd,vc,bc]),Vb=M([vc,bc]),po=ee.strict(),pf=le.extend({requestId:kt.optional(),reason:d().optional()}),fo=de.extend({method:I("notifications/cancelled"),params:pf}),ff=z({src:d(),mimeType:d().optional(),sizes:U(d()).optional(),theme:re(["light","dark"]).optional()}),fr=z({icons:U(ff).optional()}),zt=z({name:d(),title:d().optional()}),gr=zt.extend({...zt.shape,...fr.shape,version:d(),websiteUrl:d().optional(),description:d().optional()}),gf=xt(z({applyDefaults:K().optional()}),L(d(),F())),hf=lr(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,xt(z({form:gf.optional(),url:Q.optional()}),L(d(),F()).optional())),vf=Y({list:Q.optional(),cancel:Q.optional(),requests:Y({sampling:Y({createMessage:Q.optional()}).optional(),elicitation:Y({create:Q.optional()}).optional()}).optional()}),bf=Y({list:Q.optional(),cancel:Q.optional(),requests:Y({tools:Y({call:Q.optional()}).optional()}).optional()}),_f=z({experimental:L(d(),Q).optional(),sampling:z({context:Q.optional(),tools:Q.optional()}).optional(),elicitation:hf.optional(),roots:z({listChanged:K().optional()}).optional(),tasks:vf.optional(),extensions:L(d(),Q).optional()}),yf=ue.extend({protocolVersion:d(),capabilities:_f,clientInfo:gr}),$f=X.extend({method:I("initialize"),params:yf});var xf=z({experimental:L(d(),Q).optional(),logging:Q.optional(),completions:Q.optional(),prompts:z({listChanged:K().optional()}).optional(),resources:z({subscribe:K().optional(),listChanged:K().optional()}).optional(),tools:z({listChanged:K().optional()}).optional(),tasks:bf.optional(),extensions:L(d(),Q).optional()}),zf=ee.extend({protocolVersion:d(),capabilities:xf,serverInfo:gr,instructions:d().optional()}),kf=de.extend({method:I("notifications/initialized"),params:le.optional()});var St=X.extend({method:I("ping"),params:ue.optional()}),Sf=z({progress:Z(),total:H(Z()),message:H(d())}),wf=z({...le.shape,...Sf.shape,progressToken:Jd}),go=de.extend({method:I("notifications/progress"),params:wf}),If=ue.extend({cursor:Bd.optional()}),hr=X.extend({params:If.optional()}),vr=ee.extend({nextCursor:Bd.optional()}),jf=re(["working","input_required","completed","failed","cancelled"]),br=z({taskId:d(),status:jf,ttl:M([Z(),or()]),createdAt:d(),lastUpdatedAt:d(),pollInterval:H(Z()),statusMessage:H(d())}),ho=ee.extend({task:br}),Pf=le.merge(br),_r=de.extend({method:I("notifications/tasks/status"),params:Pf}),vo=X.extend({method:I("tasks/get"),params:ue.extend({taskId:d()})}),bo=ee.merge(br),_o=X.extend({method:I("tasks/result"),params:ue.extend({taskId:d()})}),Hb=ee.loose(),yo=hr.extend({method:I("tasks/list")}),$o=vr.extend({tasks:U(br)}),xo=X.extend({method:I("tasks/cancel"),params:ue.extend({taskId:d()})}),em=ee.merge(br),tm=z({uri:d(),mimeType:H(d()),_meta:L(d(),F()).optional()}),rm=tm.extend({text:d()}),_c=d().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),nm=tm.extend({blob:_c}),yr=re(["user","assistant"]),wt=z({audience:U(yr).optional(),priority:Z().min(0).max(1).optional(),lastModified:Le.datetime({offset:!0}).optional()}),om=z({...zt.shape,...fr.shape,uri:d(),description:H(d()),mimeType:H(d()),size:H(Z()),annotations:wt.optional(),_meta:H(Y({}))}),Tf=z({...zt.shape,...fr.shape,uriTemplate:d(),description:H(d()),mimeType:H(d()),annotations:wt.optional(),_meta:H(Y({}))}),Of=hr.extend({method:I("resources/list")}),yc=vr.extend({resources:U(om)}),Nf=hr.extend({method:I("resources/templates/list")}),Uf=vr.extend({resourceTemplates:U(Tf)}),$c=ue.extend({uri:d()}),Ef=$c,Df=X.extend({method:I("resources/read"),params:Ef}),xc=ee.extend({contents:U(M([rm,nm]))}),Zf=de.extend({method:I("notifications/resources/list_changed"),params:le.optional()}),Rf=$c,Af=X.extend({method:I("resources/subscribe"),params:Rf}),Cf=$c,Mf=X.extend({method:I("resources/unsubscribe"),params:Cf}),Lf=le.extend({uri:d()}),qf=de.extend({method:I("notifications/resources/updated"),params:Lf}),Vf=z({name:d(),description:H(d()),required:H(K())}),Hf=z({...zt.shape,...fr.shape,description:H(d()),arguments:H(U(Vf)),_meta:H(Y({}))}),Ff=hr.extend({method:I("prompts/list")}),Jf=vr.extend({prompts:U(Hf)}),Bf=ue.extend({name:d(),arguments:L(d(),d()).optional()}),Wf=X.extend({method:I("prompts/get"),params:Bf}),zc=z({type:I("text"),text:d(),annotations:wt.optional(),_meta:L(d(),F()).optional()}),kc=z({type:I("image"),data:_c,mimeType:d(),annotations:wt.optional(),_meta:L(d(),F()).optional()}),Sc=z({type:I("audio"),data:_c,mimeType:d(),annotations:wt.optional(),_meta:L(d(),F()).optional()}),Kf=z({type:I("tool_use"),name:d(),id:d(),input:L(d(),F()),_meta:L(d(),F()).optional()}),wc=z({type:I("resource"),resource:M([rm,nm]),annotations:wt.optional(),_meta:L(d(),F()).optional()}),Ic=om.extend({type:I("resource_link")}),It=M([zc,kc,Sc,Ic,wc]),Gf=z({role:yr,content:It}),Qf=ee.extend({description:d().optional(),messages:U(Gf)}),Yf=de.extend({method:I("notifications/prompts/list_changed"),params:le.optional()}),Xf=z({title:d().optional(),readOnlyHint:K().optional(),destructiveHint:K().optional(),idempotentHint:K().optional(),openWorldHint:K().optional()}),eg=z({taskSupport:re(["required","optional","forbidden"]).optional()}),zo=z({...zt.shape,...fr.shape,description:d().optional(),inputSchema:z({type:I("object"),properties:L(d(),Q).optional(),required:U(d()).optional()}).catchall(F()),outputSchema:z({type:I("object"),properties:L(d(),Q).optional(),required:U(d()).optional()}).catchall(F()).optional(),annotations:Xf.optional(),execution:eg.optional(),_meta:L(d(),F()).optional()}),jc=hr.extend({method:I("tools/list")}),tg=vr.extend({tools:U(zo)}),jt=ee.extend({content:U(It).default([]),structuredContent:L(d(),F()).optional(),isError:K().optional()}),Fb=jt.or(ee.extend({toolResult:F()})),rg=mr.extend({name:d(),arguments:L(d(),F()).optional()}),Pc=X.extend({method:I("tools/call"),params:rg}),ng=de.extend({method:I("notifications/tools/list_changed"),params:le.optional()}),Jb=z({autoRefresh:K().default(!0),debounceMs:Z().int().nonnegative().default(300)}),im=re(["debug","info","notice","warning","error","critical","alert","emergency"]),og=ue.extend({level:im}),ig=X.extend({method:I("logging/setLevel"),params:og}),ag=le.extend({level:im,logger:d().optional(),data:F()}),sg=de.extend({method:I("notifications/message"),params:ag}),cg=z({name:d().optional()}),ug=z({hints:U(cg).optional(),costPriority:Z().min(0).max(1).optional(),speedPriority:Z().min(0).max(1).optional(),intelligencePriority:Z().min(0).max(1).optional()}),lg=z({mode:re(["auto","required","none"]).optional()}),dg=z({type:I("tool_result"),toolUseId:d().describe("The unique identifier for the corresponding tool call."),content:U(It).default([]),structuredContent:z({}).loose().optional(),isError:K().optional(),_meta:L(d(),F()).optional()}),mg=cr("type",[zc,kc,Sc]),lo=cr("type",[zc,kc,Sc,Kf,dg]),pg=z({role:yr,content:M([lo,U(lo)]),_meta:L(d(),F()).optional()}),fg=mr.extend({messages:U(pg),modelPreferences:ug.optional(),systemPrompt:d().optional(),includeContext:re(["none","thisServer","allServers"]).optional(),temperature:Z().optional(),maxTokens:Z().int(),stopSequences:U(d()).optional(),metadata:Q.optional(),tools:U(zo).optional(),toolChoice:lg.optional()}),gg=X.extend({method:I("sampling/createMessage"),params:fg}),Tc=ee.extend({model:d(),stopReason:H(re(["endTurn","stopSequence","maxTokens"]).or(d())),role:yr,content:mg}),Oc=ee.extend({model:d(),stopReason:H(re(["endTurn","stopSequence","maxTokens","toolUse"]).or(d())),role:yr,content:M([lo,U(lo)])}),hg=z({type:I("boolean"),title:d().optional(),description:d().optional(),default:K().optional()}),vg=z({type:I("string"),title:d().optional(),description:d().optional(),minLength:Z().optional(),maxLength:Z().optional(),format:re(["email","uri","date","date-time"]).optional(),default:d().optional()}),bg=z({type:re(["number","integer"]),title:d().optional(),description:d().optional(),minimum:Z().optional(),maximum:Z().optional(),default:Z().optional()}),_g=z({type:I("string"),title:d().optional(),description:d().optional(),enum:U(d()),default:d().optional()}),yg=z({type:I("string"),title:d().optional(),description:d().optional(),oneOf:U(z({const:d(),title:d()})),default:d().optional()}),$g=z({type:I("string"),title:d().optional(),description:d().optional(),enum:U(d()),enumNames:U(d()).optional(),default:d().optional()}),xg=M([_g,yg]),zg=z({type:I("array"),title:d().optional(),description:d().optional(),minItems:Z().optional(),maxItems:Z().optional(),items:z({type:I("string"),enum:U(d())}),default:U(d()).optional()}),kg=z({type:I("array"),title:d().optional(),description:d().optional(),minItems:Z().optional(),maxItems:Z().optional(),items:z({anyOf:U(z({const:d(),title:d()}))}),default:U(d()).optional()}),Sg=M([zg,kg]),wg=M([$g,xg,Sg]),Ig=M([wg,hg,vg,bg]),jg=mr.extend({mode:I("form").optional(),message:d(),requestedSchema:z({type:I("object"),properties:L(d(),Ig),required:U(d()).optional()})}),Pg=mr.extend({mode:I("url"),message:d(),elicitationId:d(),url:d().url()}),Tg=M([jg,Pg]),Og=X.extend({method:I("elicitation/create"),params:Tg}),Ng=le.extend({elicitationId:d()}),Ug=de.extend({method:I("notifications/elicitation/complete"),params:Ng}),Eg=ee.extend({action:re(["accept","decline","cancel"]),content:lr(t=>t===null?void 0:t,L(d(),M([d(),Z(),K(),U(d())])).optional())}),Dg=z({type:I("ref/resource"),uri:d()});var Zg=z({type:I("ref/prompt"),name:d()}),Rg=ue.extend({ref:M([Zg,Dg]),argument:z({name:d(),value:d()}),context:z({arguments:L(d(),d()).optional()}).optional()}),Ag=X.extend({method:I("completion/complete"),params:Rg});var Cg=ee.extend({completion:Y({values:U(d()).max(100),total:H(Z().int()),hasMore:H(K())})}),Mg=z({uri:d().startsWith("file://"),name:d().optional(),_meta:L(d(),F()).optional()}),Lg=X.extend({method:I("roots/list"),params:ue.optional()}),qg=ee.extend({roots:U(Mg)}),Vg=de.extend({method:I("notifications/roots/list_changed"),params:le.optional()}),Bb=M([St,$f,Ag,ig,Wf,Ff,Of,Nf,Df,Af,Mf,Pc,jc,vo,_o,yo,xo]),Wb=M([fo,go,kf,Vg,_r]),Kb=M([po,Tc,Oc,Eg,qg,bo,$o,ho]),Gb=M([St,gg,Og,Lg,vo,_o,yo,xo]),Qb=M([fo,go,sg,qf,Zf,ng,Yf,_r,Ug]),Yb=M([po,zf,Cg,Qf,Jf,yc,Uf,xc,jt,tg,bo,$o,ho]),D=class t extends Error{constructor(r,n,i){super(`MCP error ${r}: ${n}`),this.code=r,this.data=i,this.name="McpError"}static fromError(r,n,i){if(r===C.UrlElicitationRequired&&i){let e=i;if(e.elicitations)return new fc(e.elicitations,n)}return new t(r,n,i)}},fc=class extends D{constructor(r,n=`URL elicitation${r.length>1?"s":""} required`){super(C.UrlElicitationRequired,n,{elicitations:r})}get elicitations(){return this.data?.elicitations??[]}};function Pe(t){return t==="completed"||t==="failed"||t==="cancelled"}var Hg=Symbol("Let zodToJsonSchema decide on which parser to use");var O_=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function Nc(t){let n=Al(t)?.method;if(!n)throw new Error("Schema is missing a method literal");let i=Cl(n);if(typeof i!="string")throw new Error("Schema method literal must be a string");return i}function Uc(t,r){let n=jn(t,r);if(!n.success)throw n.error;return n.data}var Gg=6e4,ko=class{constructor(r){this._options=r,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(fo,n=>{this._oncancel(n)}),this.setNotificationHandler(go,n=>{this._onprogress(n)}),this.setRequestHandler(St,n=>({})),this._taskStore=r?.taskStore,this._taskMessageQueue=r?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(vo,async(n,i)=>{let e=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!e)throw new D(C.InvalidParams,"Failed to retrieve task: Task not found");return{...e}}),this.setRequestHandler(_o,async(n,i)=>{let e=async()=>{let o=n.params.taskId;if(this._taskMessageQueue){let c;for(;c=await this._taskMessageQueue.dequeue(o,i.sessionId);){if(c.type==="response"||c.type==="error"){let l=c.message,h=l.id,f=this._requestResolvers.get(h);if(f)if(this._requestResolvers.delete(h),c.type==="response")f(l);else{let m=l,$=new D(m.error.code,m.error.message,m.error.data);f($)}else{let m=c.type==="response"?"Response":"Error";this._onerror(new Error(`${m} handler missing for request ${h}`))}continue}await this._transport?.send(c.message,{relatedRequestId:i.requestId})}}let a=await this._taskStore.getTask(o,i.sessionId);if(!a)throw new D(C.InvalidParams,`Task not found: ${o}`);if(!Pe(a.status))return await this._waitForTaskUpdate(o,i.signal),await e();if(Pe(a.status)){let c=await this._taskStore.getTaskResult(o,i.sessionId);return this._clearTaskQueue(o),{...c,_meta:{...c._meta,[je]:{taskId:o}}}}return await e()};return await e()}),this.setRequestHandler(yo,async(n,i)=>{try{let{tasks:e,nextCursor:o}=await this._taskStore.listTasks(n.params?.cursor,i.sessionId);return{tasks:e,nextCursor:o,_meta:{}}}catch(e){throw new D(C.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(xo,async(n,i)=>{try{let e=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!e)throw new D(C.InvalidParams,`Task not found: ${n.params.taskId}`);if(Pe(e.status))throw new D(C.InvalidParams,`Cannot cancel task in terminal status: ${e.status}`);await this._taskStore.updateTaskStatus(n.params.taskId,"cancelled","Client cancelled task execution.",i.sessionId),this._clearTaskQueue(n.params.taskId);let o=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!o)throw new D(C.InvalidParams,`Task not found after cancellation: ${n.params.taskId}`);return{_meta:{},...o}}catch(e){throw e instanceof D?e:new D(C.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(r){if(!r.params.requestId)return;this._requestHandlerAbortControllers.get(r.params.requestId)?.abort(r.params.reason)}_setupTimeout(r,n,i,e,o=!1){this._timeoutInfo.set(r,{timeoutId:setTimeout(e,n),startTime:Date.now(),timeout:n,maxTotalTimeout:i,resetTimeoutOnProgress:o,onTimeout:e})}_resetTimeout(r){let n=this._timeoutInfo.get(r);if(!n)return!1;let i=Date.now()-n.startTime;if(n.maxTotalTimeout&&i>=n.maxTotalTimeout)throw this._timeoutInfo.delete(r),D.fromError(C.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:n.maxTotalTimeout,totalElapsed:i});return clearTimeout(n.timeoutId),n.timeoutId=setTimeout(n.onTimeout,n.timeout),!0}_cleanupTimeout(r){let n=this._timeoutInfo.get(r);n&&(clearTimeout(n.timeoutId),this._timeoutInfo.delete(r))}async connect(r){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=r;let n=this.transport?.onclose;this._transport.onclose=()=>{n?.(),this._onclose()};let i=this.transport?.onerror;this._transport.onerror=o=>{i?.(o),this._onerror(o)};let e=this._transport?.onmessage;this._transport.onmessage=(o,a)=>{e?.(o,a),pr(o)||Yd(o)?this._onresponse(o):hc(o)?this._onrequest(o,a):Qd(o)?this._onnotification(o):this._onerror(new Error(`Unknown message type: ${JSON.stringify(o)}`))},await this._transport.start()}_onclose(){let r=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let i of this._timeoutInfo.values())clearTimeout(i.timeoutId);this._timeoutInfo.clear();for(let i of this._requestHandlerAbortControllers.values())i.abort();this._requestHandlerAbortControllers.clear();let n=D.fromError(C.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let i of r.values())i(n)}_onerror(r){this.onerror?.(r)}_onnotification(r){let n=this._notificationHandlers.get(r.method)??this.fallbackNotificationHandler;n!==void 0&&Promise.resolve().then(()=>n(r)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(r,n){let i=this._requestHandlers.get(r.method)??this.fallbackRequestHandler,e=this._transport,o=r.params?._meta?.[je]?.taskId;if(i===void 0){let f={jsonrpc:"2.0",id:r.id,error:{code:C.MethodNotFound,message:"Method not found"}};o&&this._taskMessageQueue?this._enqueueTaskMessage(o,{type:"error",message:f,timestamp:Date.now()},e?.sessionId).catch(m=>this._onerror(new Error(`Failed to enqueue error response: ${m}`))):e?.send(f).catch(m=>this._onerror(new Error(`Failed to send an error response: ${m}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(r.id,a);let c=Wd(r.params)?r.params.task:void 0,l=this._taskStore?this.requestTaskStore(r,e?.sessionId):void 0,h={signal:a.signal,sessionId:e?.sessionId,_meta:r.params?._meta,sendNotification:async f=>{if(a.signal.aborted)return;let m={relatedRequestId:r.id};o&&(m.relatedTask={taskId:o}),await this.notification(f,m)},sendRequest:async(f,m,$)=>{if(a.signal.aborted)throw new D(C.ConnectionClosed,"Request was cancelled");let b={...$,relatedRequestId:r.id};o&&!b.relatedTask&&(b.relatedTask={taskId:o});let p=b.relatedTask?.taskId??o;return p&&l&&await l.updateTaskStatus(p,"input_required"),await this.request(f,m,b)},authInfo:n?.authInfo,requestId:r.id,requestInfo:n?.requestInfo,taskId:o,taskStore:l,taskRequestedTtl:c?.ttl,closeSSEStream:n?.closeSSEStream,closeStandaloneSSEStream:n?.closeStandaloneSSEStream};Promise.resolve().then(()=>{c&&this.assertTaskHandlerCapability(r.method)}).then(()=>i(r,h)).then(async f=>{if(a.signal.aborted)return;let m={result:f,jsonrpc:"2.0",id:r.id};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"response",message:m,timestamp:Date.now()},e?.sessionId):await e?.send(m)},async f=>{if(a.signal.aborted)return;let m={jsonrpc:"2.0",id:r.id,error:{code:Number.isSafeInteger(f.code)?f.code:C.InternalError,message:f.message??"Internal error",...f.data!==void 0&&{data:f.data}}};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"error",message:m,timestamp:Date.now()},e?.sessionId):await e?.send(m)}).catch(f=>this._onerror(new Error(`Failed to send response: ${f}`))).finally(()=>{this._requestHandlerAbortControllers.get(r.id)===a&&this._requestHandlerAbortControllers.delete(r.id)})}_onprogress(r){let{progressToken:n,...i}=r.params,e=Number(n),o=this._progressHandlers.get(e);if(!o){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(r)}`));return}let a=this._responseHandlers.get(e),c=this._timeoutInfo.get(e);if(c&&a&&c.resetTimeoutOnProgress)try{this._resetTimeout(e)}catch(l){this._responseHandlers.delete(e),this._progressHandlers.delete(e),this._cleanupTimeout(e),a(l);return}o(i)}_onresponse(r){let n=Number(r.id),i=this._requestResolvers.get(n);if(i){if(this._requestResolvers.delete(n),pr(r))i(r);else{let a=new D(r.error.code,r.error.message,r.error.data);i(a)}return}let e=this._responseHandlers.get(n);if(e===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(r)}`));return}this._responseHandlers.delete(n),this._cleanupTimeout(n);let o=!1;if(pr(r)&&r.result&&typeof r.result=="object"){let a=r.result;if(a.task&&typeof a.task=="object"){let c=a.task;typeof c.taskId=="string"&&(o=!0,this._taskProgressTokens.set(c.taskId,n))}}if(o||this._progressHandlers.delete(n),pr(r))e(r);else{let a=D.fromError(r.error.code,r.error.message,r.error.data);e(a)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(r,n,i){let{task:e}=i??{};if(!e){try{yield{type:"result",result:await this.request(r,n,i)}}catch(a){yield{type:"error",error:a instanceof D?a:new D(C.InternalError,String(a))}}return}let o;try{let a=await this.request(r,ho,i);if(a.task)o=a.task.taskId,yield{type:"taskCreated",task:a.task};else throw new D(C.InternalError,"Task creation did not return a task");for(;;){let c=await this.getTask({taskId:o},i);if(yield{type:"taskStatus",task:c},Pe(c.status)){c.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:o},n,i)}:c.status==="failed"?yield{type:"error",error:new D(C.InternalError,`Task ${o} failed`)}:c.status==="cancelled"&&(yield{type:"error",error:new D(C.InternalError,`Task ${o} was cancelled`)});return}if(c.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:o},n,i)};return}let l=c.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(h=>setTimeout(h,l)),i?.signal?.throwIfAborted()}}catch(a){yield{type:"error",error:a instanceof D?a:new D(C.InternalError,String(a))}}}request(r,n,i){let{relatedRequestId:e,resumptionToken:o,onresumptiontoken:a,task:c,relatedTask:l}=i??{};return new Promise((h,f)=>{let m=w=>{f(w)};if(!this._transport){m(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(r.method),c&&this.assertTaskCapability(r.method)}catch(w){m(w);return}i?.signal?.throwIfAborted();let $=this._requestMessageId++,b={...r,jsonrpc:"2.0",id:$};i?.onprogress&&(this._progressHandlers.set($,i.onprogress),b.params={...r.params,_meta:{...r.params?._meta||{},progressToken:$}}),c&&(b.params={...b.params,task:c}),l&&(b.params={...b.params,_meta:{...b.params?._meta||{},[je]:l}});let p=w=>{this._responseHandlers.delete($),this._progressHandlers.delete($),this._cleanupTimeout($),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:$,reason:String(w)}},{relatedRequestId:e,resumptionToken:o,onresumptiontoken:a}).catch(E=>this._onerror(new Error(`Failed to send cancellation: ${E}`)));let j=w instanceof D?w:new D(C.RequestTimeout,String(w));f(j)};this._responseHandlers.set($,w=>{if(!i?.signal?.aborted){if(w instanceof Error)return f(w);try{let j=jn(n,w.result);j.success?h(j.data):f(j.error)}catch(j){f(j)}}}),i?.signal?.addEventListener("abort",()=>{p(i?.signal?.reason)});let x=i?.timeout??Gg,S=()=>p(D.fromError(C.RequestTimeout,"Request timed out",{timeout:x}));this._setupTimeout($,x,i?.maxTotalTimeout,S,i?.resetTimeoutOnProgress??!1);let A=l?.taskId;if(A){let w=j=>{let E=this._responseHandlers.get($);E?E(j):this._onerror(new Error(`Response handler missing for side-channeled request ${$}`))};this._requestResolvers.set($,w),this._enqueueTaskMessage(A,{type:"request",message:b,timestamp:Date.now()}).catch(j=>{this._cleanupTimeout($),f(j)})}else this._transport.send(b,{relatedRequestId:e,resumptionToken:o,onresumptiontoken:a}).catch(w=>{this._cleanupTimeout($),f(w)})})}async getTask(r,n){return this.request({method:"tasks/get",params:r},bo,n)}async getTaskResult(r,n,i){return this.request({method:"tasks/result",params:r},n,i)}async listTasks(r,n){return this.request({method:"tasks/list",params:r},$o,n)}async cancelTask(r,n){return this.request({method:"tasks/cancel",params:r},em,n)}async notification(r,n){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(r.method);let i=n?.relatedTask?.taskId;if(i){let c={...r,jsonrpc:"2.0",params:{...r.params,_meta:{...r.params?._meta||{},[je]:n.relatedTask}}};await this._enqueueTaskMessage(i,{type:"notification",message:c,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(r.method)&&!r.params&&!n?.relatedRequestId&&!n?.relatedTask){if(this._pendingDebouncedNotifications.has(r.method))return;this._pendingDebouncedNotifications.add(r.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(r.method),!this._transport)return;let c={...r,jsonrpc:"2.0"};n?.relatedTask&&(c={...c,params:{...c.params,_meta:{...c.params?._meta||{},[je]:n.relatedTask}}}),this._transport?.send(c,n).catch(l=>this._onerror(l))});return}let a={...r,jsonrpc:"2.0"};n?.relatedTask&&(a={...a,params:{...a.params,_meta:{...a.params?._meta||{},[je]:n.relatedTask}}}),await this._transport.send(a,n)}setRequestHandler(r,n){let i=Nc(r);this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(e,o)=>{let a=Uc(r,e);return Promise.resolve(n(a,o))})}removeRequestHandler(r){this._requestHandlers.delete(r)}assertCanSetRequestHandler(r){if(this._requestHandlers.has(r))throw new Error(`A request handler for ${r} already exists, which would be overridden`)}setNotificationHandler(r,n){let i=Nc(r);this._notificationHandlers.set(i,e=>{let o=Uc(r,e);return Promise.resolve(n(o))})}removeNotificationHandler(r){this._notificationHandlers.delete(r)}_cleanupTaskProgressHandler(r){let n=this._taskProgressTokens.get(r);n!==void 0&&(this._progressHandlers.delete(n),this._taskProgressTokens.delete(r))}async _enqueueTaskMessage(r,n,i){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let e=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(r,n,i,e)}async _clearTaskQueue(r,n){if(this._taskMessageQueue){let i=await this._taskMessageQueue.dequeueAll(r,n);for(let e of i)if(e.type==="request"&&hc(e.message)){let o=e.message.id,a=this._requestResolvers.get(o);a?(a(new D(C.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(o)):this._onerror(new Error(`Resolver missing for request ${o} during task ${r} cleanup`))}}}async _waitForTaskUpdate(r,n){let i=this._options?.defaultTaskPollInterval??1e3;try{let e=await this._taskStore?.getTask(r);e?.pollInterval&&(i=e.pollInterval)}catch{}return new Promise((e,o)=>{if(n.aborted){o(new D(C.InvalidRequest,"Request cancelled"));return}let a=setTimeout(e,i);n.addEventListener("abort",()=>{clearTimeout(a),o(new D(C.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(r,n){let i=this._taskStore;if(!i)throw new Error("No task store configured");return{createTask:async e=>{if(!r)throw new Error("No request provided");return await i.createTask(e,r.id,{method:r.method,params:r.params},n)},getTask:async e=>{let o=await i.getTask(e,n);if(!o)throw new D(C.InvalidParams,"Failed to retrieve task: Task not found");return o},storeTaskResult:async(e,o,a)=>{await i.storeTaskResult(e,o,a,n);let c=await i.getTask(e,n);if(c){let l=_r.parse({method:"notifications/tasks/status",params:c});await this.notification(l),Pe(c.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>i.getTaskResult(e,n),updateTaskStatus:async(e,o,a)=>{let c=await i.getTask(e,n);if(!c)throw new D(C.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(Pe(c.status))throw new D(C.InvalidParams,`Cannot update task "${e}" from terminal status "${c.status}" to "${o}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await i.updateTaskStatus(e,o,a,n);let l=await i.getTask(e,n);if(l){let h=_r.parse({method:"notifications/tasks/status",params:l});await this.notification(h),Pe(l.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>i.listTasks(e,n)}}};function am(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function sm(t,r){let n={...t};for(let i in r){let e=i,o=r[e];if(o===void 0)continue;let a=n[e];am(a)&&am(o)?n[e]={...a,...o}:n[e]=o}return n}dr();dr();var Px=(t=>typeof Ne<"u"?Ne:typeof Proxy<"u"?new Proxy(t,{get:(r,n)=>(typeof Ne<"u"?Ne:r)[n]}):t)(function(t){if(typeof Ne<"u")return Ne.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),Ec=class extends ko{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(r,n){}_ensureEventSlot(r){let n=this._eventSlots.get(r);if(!n){let i=this.eventSchemas[r];if(!i)throw Error(`Unknown event: ${String(r)}`);n={listeners:[]},this._eventSlots.set(r,n);let e=i.shape.method.value;this._registeredMethods.add(e);let o=n;super.setNotificationHandler(i,a=>{let c=a.params;this.onEventDispatch(r,c),o.onHandler?.(c);for(let l of[...o.listeners])l(c)})}return n}setEventHandler(r,n){let i=this._ensureEventSlot(r);i.onHandler&&n&&console.warn(`[MCP Apps] on${String(r)} handler replaced. Use addEventListener("${String(r)}", \u2026) to add multiple listeners without replacing.`),i.onHandler=n}getEventHandler(r){return this._eventSlots.get(r)?.onHandler}addEventListener(r,n){this._ensureEventSlot(r).listeners.push(n)}removeEventListener(r,n){let i=this._eventSlots.get(r);if(!i)return;let e=i.listeners.indexOf(n);e!==-1&&i.listeners.splice(e,1)}setRequestHandler=(r,n)=>{this._assertMethodNotRegistered(r,"setRequestHandler"),super.setRequestHandler(r,n)};setNotificationHandler=(r,n)=>{this._assertMethodNotRegistered(r,"setNotificationHandler"),super.setNotificationHandler(r,n)};warnIfRequestHandlerReplaced(r,n,i){n&&i&&console.warn(`[MCP Apps] ${r} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(r,n)=>{let i=r.shape.method.value;this._registeredMethods.add(i),super.setRequestHandler(r,n)};_assertMethodNotRegistered(r,n){let i=r.shape.method.value;if(this._registeredMethods.has(i))throw Error(`Handler for "${i}" already registered (via ${n}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(i)}},Qg="2026-01-26";var Yg="ui/notifications/tool-input-partial";var Dc=class{eventTarget;eventSource;messageListener;constructor(r=window.parent,n){this.eventTarget=r,this.eventSource=n,this.messageListener=i=>{if(n&&i.source!==this.eventSource){console.debug("Ignoring message from unknown source",i);return}let e=Xd.safeParse(i.data);e.success?(console.debug("Parsed message",e.data),this.onmessage?.(e.data)):i.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",e.error.message,i):(console.error("Failed to parse message",e.error.message,i),this.onerror?.(Error("Invalid JSON-RPC message received: "+e.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(r,n){r.method!==Yg&&console.debug("Sending message",r),this.eventTarget.postMessage(r,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},Xg=s.union([s.literal("light"),s.literal("dark")]).describe("Color theme preference for the host environment."),xr=s.union([s.literal("inline"),s.literal("fullscreen"),s.literal("pip")]).describe("Display mode for UI presentation."),eh=s.union([s.literal("--color-background-primary"),s.literal("--color-background-secondary"),s.literal("--color-background-tertiary"),s.literal("--color-background-inverse"),s.literal("--color-background-ghost"),s.literal("--color-background-info"),s.literal("--color-background-danger"),s.literal("--color-background-success"),s.literal("--color-background-warning"),s.literal("--color-background-disabled"),s.literal("--color-text-primary"),s.literal("--color-text-secondary"),s.literal("--color-text-tertiary"),s.literal("--color-text-inverse"),s.literal("--color-text-ghost"),s.literal("--color-text-info"),s.literal("--color-text-danger"),s.literal("--color-text-success"),s.literal("--color-text-warning"),s.literal("--color-text-disabled"),s.literal("--color-border-primary"),s.literal("--color-border-secondary"),s.literal("--color-border-tertiary"),s.literal("--color-border-inverse"),s.literal("--color-border-ghost"),s.literal("--color-border-info"),s.literal("--color-border-danger"),s.literal("--color-border-success"),s.literal("--color-border-warning"),s.literal("--color-border-disabled"),s.literal("--color-ring-primary"),s.literal("--color-ring-secondary"),s.literal("--color-ring-inverse"),s.literal("--color-ring-info"),s.literal("--color-ring-danger"),s.literal("--color-ring-success"),s.literal("--color-ring-warning"),s.literal("--font-sans"),s.literal("--font-mono"),s.literal("--font-weight-normal"),s.literal("--font-weight-medium"),s.literal("--font-weight-semibold"),s.literal("--font-weight-bold"),s.literal("--font-text-xs-size"),s.literal("--font-text-sm-size"),s.literal("--font-text-md-size"),s.literal("--font-text-lg-size"),s.literal("--font-heading-xs-size"),s.literal("--font-heading-sm-size"),s.literal("--font-heading-md-size"),s.literal("--font-heading-lg-size"),s.literal("--font-heading-xl-size"),s.literal("--font-heading-2xl-size"),s.literal("--font-heading-3xl-size"),s.literal("--font-text-xs-line-height"),s.literal("--font-text-sm-line-height"),s.literal("--font-text-md-line-height"),s.literal("--font-text-lg-line-height"),s.literal("--font-heading-xs-line-height"),s.literal("--font-heading-sm-line-height"),s.literal("--font-heading-md-line-height"),s.literal("--font-heading-lg-line-height"),s.literal("--font-heading-xl-line-height"),s.literal("--font-heading-2xl-line-height"),s.literal("--font-heading-3xl-line-height"),s.literal("--border-radius-xs"),s.literal("--border-radius-sm"),s.literal("--border-radius-md"),s.literal("--border-radius-lg"),s.literal("--border-radius-xl"),s.literal("--border-radius-full"),s.literal("--border-width-regular"),s.literal("--shadow-hairline"),s.literal("--shadow-sm"),s.literal("--shadow-md"),s.literal("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),th=s.record(eh.describe(`Style variables for theming MCP apps.
139
+
140
+ Individual style keys are optional - hosts may provide any subset of these values.
141
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
142
+
143
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
144
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),s.union([s.string(),s.undefined()]).describe(`Style variables for theming MCP apps.
145
+
146
+ Individual style keys are optional - hosts may provide any subset of these values.
147
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
148
+
149
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
150
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
151
+
152
+ Individual style keys are optional - hosts may provide any subset of these values.
153
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
154
+
155
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
156
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),Zx=s.object({method:s.literal("ui/open-link"),params:s.object({url:s.string().describe("URL to open in the host's browser")})}),rh=s.object({isError:s.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),nh=s.object({isError:s.boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),oh=s.object({isError:s.boolean().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough(),Rx=s.object({method:s.literal("ui/notifications/sandbox-proxy-ready"),params:s.object({})}),Zc=s.object({connectDomains:s.array(s.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
157
+
158
+ - Maps to CSP \`connect-src\` directive
159
+ - Empty or omitted \u2192 no network connections (secure default)`),resourceDomains:s.array(s.string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted \u2192 no network resources (secure default)"),frameDomains:s.array(s.string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted \u2192 no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:s.array(s.string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted \u2192 only same origin allowed (`base-uri 'self'`)")}),Rc=s.object({camera:s.object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:s.object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:s.object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:s.object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")}),Ax=s.object({method:s.literal("ui/notifications/size-changed"),params:s.object({width:s.number().optional().describe("New width in pixels."),height:s.number().optional().describe("New height in pixels.")})}),ih=s.object({method:s.literal("ui/notifications/tool-input"),params:s.object({arguments:s.record(s.string(),s.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),ah=s.object({method:s.literal("ui/notifications/tool-input-partial"),params:s.object({arguments:s.record(s.string(),s.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),sh=s.object({method:s.literal("ui/notifications/tool-cancelled"),params:s.object({reason:s.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),ch=s.object({fonts:s.string().optional()}),uh=s.object({variables:th.optional().describe("CSS variables for theming the app."),css:ch.optional().describe("CSS blocks that apps can inject.")}),lh=s.object({method:s.literal("ui/resource-teardown"),params:s.object({})}),Cx=s.record(s.string(),s.unknown()),cm=s.object({text:s.object({}).optional().describe("Host supports text content blocks."),image:s.object({}).optional().describe("Host supports image content blocks."),audio:s.object({}).optional().describe("Host supports audio content blocks."),resource:s.object({}).optional().describe("Host supports resource content blocks."),resourceLink:s.object({}).optional().describe("Host supports resource link content blocks."),structuredContent:s.object({}).optional().describe("Host supports structured content.")}),Mx=s.object({method:s.literal("ui/notifications/request-teardown"),params:s.object({}).optional()}),dh=s.object({experimental:s.record(s.string(),s.record(s.string(),s.any()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),openLinks:s.object({}).optional().describe("Host supports opening external URLs."),downloadFile:s.object({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:s.object({listChanged:s.boolean().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:s.object({listChanged:s.boolean().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:s.object({}).optional().describe("Host accepts log messages."),sandbox:s.object({permissions:Rc.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:Zc.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:cm.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:cm.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:s.object({tools:s.object({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),mh=s.object({experimental:s.record(s.string(),s.record(s.string(),s.any()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),tools:s.object({listChanged:s.boolean().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:s.array(xr).optional().describe("Display modes the app supports.")}),Lx=s.object({method:s.literal("ui/notifications/initialized"),params:s.object({}).optional()}),qx=s.object({csp:Zc.optional().describe("Content Security Policy configuration for UI resources."),permissions:Rc.optional().describe("Sandbox permissions requested by the UI resource."),domain:s.string().optional().describe(`Dedicated origin for view sandbox.
160
+
161
+ Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
162
+
163
+ **Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
164
+ - Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
165
+ - URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
166
+
167
+ If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:s.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.
168
+
169
+ Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
170
+
171
+ - \`true\`: request visible border + background
172
+ - \`false\`: request no visible border + background
173
+ - omitted: host decides border`)}),Vx=s.object({method:s.literal("ui/request-display-mode"),params:s.object({mode:xr.describe("The display mode being requested.")})}),ph=s.object({mode:xr.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),fh=s.union([s.literal("model"),s.literal("app")]).describe("Tool visibility scope - who can access the tool."),Hx=s.object({resourceUri:s.string().optional(),visibility:s.array(fh).optional().describe(`Who can access this tool. Default: ["model", "app"]
174
+ - "model": Tool visible to and callable by the agent
175
+ - "app": Tool callable by the app from this server only`),csp:s.never().optional(),permissions:s.never().optional()}),Fx=s.object({mimeTypes:s.array(s.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),Jx=s.object({method:s.literal("ui/download-file"),params:s.object({contents:s.array(s.union([wc,Ic])).describe("Resource contents to download \u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),Bx=s.object({method:s.literal("ui/message"),params:s.object({role:s.literal("user").describe('Message role, currently only "user" is supported.'),content:s.array(It).describe("Message content blocks (text, image, etc.).")})}),Wx=s.object({method:s.literal("ui/notifications/sandbox-resource-ready"),params:s.object({html:s.string().describe("HTML content to load into the inner iframe."),sandbox:s.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:Zc.optional().describe("CSP configuration from resource metadata."),permissions:Rc.optional().describe("Sandbox permissions from resource metadata.")})}),gh=s.object({method:s.literal("ui/notifications/tool-result"),params:jt.describe("Standard MCP tool execution result.")}),dm=s.object({toolInfo:s.object({id:kt.optional().describe("JSON-RPC id of the tools/call request."),tool:zo.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:Xg.optional().describe("Current color theme preference."),styles:uh.optional().describe("Style configuration for theming the app."),displayMode:xr.optional().describe("How the UI is currently displayed."),availableDisplayModes:s.array(xr).optional().describe("Display modes the host supports."),containerDimensions:s.union([s.object({height:s.number().describe("Fixed container height in pixels.")}),s.object({maxHeight:s.union([s.number(),s.undefined()]).optional().describe("Maximum container height in pixels.")})]).and(s.union([s.object({width:s.number().describe("Fixed container width in pixels.")}),s.object({maxWidth:s.union([s.number(),s.undefined()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
176
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:s.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:s.string().optional().describe("User's timezone in IANA format."),userAgent:s.string().optional().describe("Host application identifier."),platform:s.union([s.literal("web"),s.literal("desktop"),s.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:s.object({touch:s.boolean().optional().describe("Whether the device supports touch input."),hover:s.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:s.object({top:s.number().describe("Top safe area inset in pixels."),right:s.number().describe("Right safe area inset in pixels."),bottom:s.number().describe("Bottom safe area inset in pixels."),left:s.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),hh=s.object({method:s.literal("ui/notifications/host-context-changed"),params:dm.describe("Partial context update containing only changed fields.")}),Kx=s.object({method:s.literal("ui/update-model-context"),params:s.object({content:s.array(It).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:s.record(s.string(),s.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),Gx=s.object({method:s.literal("ui/initialize"),params:s.object({appInfo:gr.describe("App identification (name and version)."),appCapabilities:mh.describe("Features and capabilities this app provides."),protocolVersion:s.string().describe("Protocol version this app supports.")})}),vh=s.object({protocolVersion:s.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:gr.describe("Host application identification and version."),hostCapabilities:dh.describe("Features and capabilities provided by the host."),hostContext:dm.describe("Rich context about the host environment.")}).passthrough(),bh={target:"draft-2020-12"};async function um(t,r){let n=t["~standard"];if(n.jsonSchema)return n.jsonSchema[r](bh);if(n.vendor==="zod"){let{z:i}=await Promise.resolve().then(()=>(dr(),pc));return i.toJSONSchema(t,{io:r})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function lm(t,r,n=""){let i=await t["~standard"].validate(r);if(i.issues){let e=i.issues.map(o=>{let a=o.path?.map(c=>typeof c=="object"?c.key:c).join(".");return a?`${a}: ${o.message}`:o.message}).join("; ");throw Error(n+e)}return i.value}function mm(t){let r=document.documentElement;r.setAttribute("data-theme",t),r.style.colorScheme=t}function pm(t,r=document.documentElement){for(let[n,i]of Object.entries(t))i!==void 0&&r.style.setProperty(n,i)}var So=class t extends Ec{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(r){if(this._initializedSent)return;let n=`[ext-apps] App.${r}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(n);console.warn(`${n}. This will throw in a future release.`)}eventSchemas={toolinput:ih,toolinputpartial:ah,toolresult:gh,toolcancelled:sh,hostcontextchanged:hh};static ONE_SHOT_EVENTS=new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]);_everHadListener=new Set;_assertHandlerTiming(r){if(!t.ONE_SHOT_EVENTS.has(r)||this._everHadListener.has(r)||(this._everHadListener.add(r),!this._initializedSent))return;let n=`[ext-apps] "${String(r)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(r,n){n&&this._assertHandlerTiming(r),super.setEventHandler(r,n)}addEventListener(r,n){this._assertHandlerTiming(r),super.addEventListener(r,n)}onEventDispatch(r,n){r==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...n})}constructor(r,n={},i={autoResize:!0}){super(i),this._appInfo=r,this._capabilities=n,this.options=i,i.allowUnsafeEval||s.config({jitless:!0}),this.setRequestHandler(St,e=>(console.log("Received ping:",e.params),{})),this.setEventHandler("hostcontextchanged",void 0)}registerCapabilities(r){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=sm(this._capabilities,r)}registerTool(r,n,i){if(this._registeredTools[r])throw Error(`Tool ${r} is already registered`);let e=this,o=()=>{e._initializedSent&&e._capabilities.tools?.listChanged&&e.sendToolListChanged()},a=n.inputSchema!==void 0,c={title:n.title,description:n.description,inputSchema:n.inputSchema,outputSchema:n.outputSchema,annotations:n.annotations,_meta:n._meta,enabled:!0,enable(){this.enabled=!0,o()},disable(){this.enabled=!1,o()},update(l){Object.assign(this,l),o()},remove(){e._registeredTools[r]===c&&(delete e._registeredTools[r],o())},handler:async(l,h)=>{if(!c.enabled)throw Error(`Tool ${r} is disabled`);let f;if(a){let m=c.inputSchema,$=m?await lm(m,l??{},`Invalid input for tool ${r}: `):l??{};f=await i($,h)}else f=await i(h);return c.outputSchema&&!f.isError&&(f.structuredContent=await lm(c.outputSchema,f.structuredContent,`Invalid output for tool ${r}: `)),f}};return this._registeredTools[r]=c,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),o(),c}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(r,n)=>{let i=this._registeredTools[r.name];if(!i)throw Error(`Tool ${r.name} not found`);return i.handler(r.arguments,n)},this.onlisttools=async(r,n)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([i,e])=>e.enabled).map(async([i,e])=>{let o={name:i,title:e.title,description:e.description,inputSchema:e.inputSchema?await um(e.inputSchema,"input"):{type:"object",properties:{}}};return e.outputSchema&&(o.outputSchema=await um(e.outputSchema,"output")),e.annotations&&(o.annotations=e.annotations),e._meta&&(o._meta=e._meta),o}))}))}async sendToolListChanged(r={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:r})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(r){this.setEventHandler("toolinput",r)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(r){this.setEventHandler("toolinputpartial",r)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(r){this.setEventHandler("toolresult",r)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(r){this.setEventHandler("toolcancelled",r)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(r){this.setEventHandler("hostcontextchanged",r)}_onteardown;get onteardown(){return this._onteardown}set onteardown(r){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,r),this._onteardown=r,this.replaceRequestHandler(lh,(n,i)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(n.params,i)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(r){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,r),this._oncalltool=r,this.replaceRequestHandler(Pc,(n,i)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(n.params,i)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(r){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,r),this._onlisttools=r,this.replaceRequestHandler(jc,(n,i)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(n.params,i)})}assertCapabilityForMethod(r){switch(r){case"sampling/createMessage":if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${r})`);break}}assertRequestHandlerCapability(r){switch(r){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${r})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${r} registered`)}}assertNotificationCapability(r){}assertTaskCapability(r){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(r){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(r,n){if(this._assertInitialized("callServerTool"),typeof r=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${r}"). Did you mean: callServerTool({ name: "${r}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:r},jt,{onprogress:()=>{},resetTimeoutOnProgress:!0,...n})}async readServerResource(r,n){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:r},xc,n)}async listServerResources(r,n){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:r},yc,n)}async createSamplingMessage(r,n){this._assertInitialized("createSamplingMessage");let i=r.tools?Oc:Tc;return await this.request({method:"sampling/createMessage",params:r},i,n)}sendMessage(r,n){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:r},oh,n)}sendLog(r){return this.notification({method:"notifications/message",params:r})}updateModelContext(r,n){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:r},po,n)}openLink(r,n){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:r},rh,n)}sendOpenLink=this.openLink;downloadFile(r,n){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:r},nh,n)}requestTeardown(r={}){return this.notification({method:"ui/notifications/request-teardown",params:r})}requestDisplayMode(r,n){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:r},ph,n)}sendSizeChanged(r){return this.notification({method:"ui/notifications/size-changed",params:r})}setupSizeChangedNotifications(){let r=!1,n=0,i=0,e=()=>{r||(r=!0,requestAnimationFrame(()=>{r=!1;let a=document.documentElement,c=a.style.height;a.style.height="max-content";let l=Math.ceil(a.getBoundingClientRect().height);a.style.height=c;let h=Math.ceil(window.innerWidth);(h!==n||l!==i)&&(n=h,i=l,this.sendSizeChanged({width:h,height:l}))}))};e();let o=new ResizeObserver(e);return o.observe(document.documentElement),o.observe(document.body),()=>o.disconnect()}async connect(r=new Dc(window.parent,window.parent),n){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(r);try{let i=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Qg}},vh,n);if(i===void 0)throw Error(`Server sent invalid initialize result: ${i}`);this._hostCapabilities=i.hostCapabilities,this._hostInfo=i.hostInfo,this._hostContext=i.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(i){throw this.close(),i}}};var Te=new So({name:"Makeables Studio",version:"1.0.0"},{},{autoResize:!0}),O=t=>document.getElementById(t),wo=O("status"),J,Fe=!1,zr=!1,fm=!1,He=[];function kr(){return He.filter(({layer:t,input:r})=>t.text!==r.value)}function xe(t,r=!1){wo.textContent=t,wo.dataset.error=String(r)}function Ac(){xe(kr().length?"Unsaved changes":"Saved")}function gm(t){O("controls").hidden=!t,O("edit-toggle").setAttribute("aria-expanded",String(t))}function Sr(t,r=!1){O("export-options").hidden=!t,O("export").setAttribute("aria-expanded",String(t)),r&&O(t?"png":"export").focus()}function Je(){let t=!J||Fe||!fm,r=kr().length>0;for(let n of["refresh","edit-toggle","reset"])O(n).disabled=t;for(let n of["front","back"])O(n).disabled=t||r;O("apply").disabled=t||!r,O("edit-actions").hidden=!r,O("finish").disabled=t;for(let{input:n}of He)n.disabled=t;for(let n of["export","png","json","package"])O(n).disabled=t||!zr||r;O("export").title=r?"Save text changes before exporting":zr?"Export your design":"Downloads are unavailable in this host"}function hm(t){if(t.isError)throw new Error(t.content?.find(c=>c.type==="text")?.text??"The operation failed. Refresh before retrying.");let r=t._meta?.makeables;if(!r?.design||typeof r.png!="string"||typeof r.revision!="string")return;let n=J?.file===r.file&&J?.side===r.side,i=new Map(n?kr().map(({layer:c,input:l})=>[c.id,l.value]):[]),e=n&&!O("controls").hidden;J=r,O("title").textContent=r.name,O("title").title=r.name,wo.title=r.file;let o=O("preview");o.src=`data:image/png;base64,${r.png}`,o.alt=`${r.name}, ${r.side}`,o.hidden=!1,O("empty").hidden=!0,O("preview-kind").hidden=r.product==="sticker",O("faces").hidden=r.product==="sticker",O("front").setAttribute("aria-pressed",String(r.side==="front")),O("back").setAttribute("aria-pressed",String(r.side==="back")),O("finish-label").hidden=r.product!=="sticker",O("finish").value=r.design.sticker?.finish??"vinyl";let a=O("texts");a.replaceChildren(),He=[];for(let c of r.design[r.side].layers){if(c.kind!=="text"||c.binding!=="none")continue;let l=document.createElement("label"),h=document.createElement("span");h.textContent=c.name??c.id;let f=document.createElement("textarea");f.value=i.get(c.id)??c.text,f.rows=Math.min(4,Math.max(1,f.value.split(`
177
+ `).length)),f.maxLength=160,f.addEventListener("input",()=>{Ac(),Je()}),l.append(h,f),a.append(l),He.push({layer:c,input:f})}O("edit-toggle").hidden=!He.length,gm(e&&He.length>0),Ac(),Je()}async function Io(t,r){if(!Fe){Fe=!0,Je(),xe(t==="makeables_export"?"Exporting\u2026":t==="makeables_edit"?"Saving\u2026":"Refreshing\u2026");try{let n=await Te.callServerTool({name:t,arguments:r});return hm(n),n}catch(n){J&&(O("finish").value=J.design.sticker?.finish??"vinyl"),xe(`${n instanceof Error?n.message:"Connection lost."} Refresh before retrying.`,!0)}finally{Fe=!1,Je()}}}function Cc(t=J?.side??"front"){J&&Io("makeables_preview",{file:J.file,side:t})}O("refresh").addEventListener("click",()=>Cc());O("front").addEventListener("click",()=>Cc("front"));O("back").addEventListener("click",()=>Cc("back"));O("edit-toggle").addEventListener("click",()=>gm(O("controls").hidden));O("reset").addEventListener("click",()=>{for(let{layer:t,input:r}of He)r.value=t.text;Ac(),Je()});O("finish").addEventListener("change",()=>{if(!J||Fe)return;let t=O("finish").value;t!==J.design.sticker?.finish&&Io("makeables_edit",{file:J.file,expectedRevision:J.revision,side:J.side,edits:{sticker:{finish:t}}})});O("apply").addEventListener("click",()=>{if(!J||Fe)return;let t=kr().map(({layer:r,input:n})=>({...r,text:n.value}));t.length&&Io("makeables_edit",{file:J.file,expectedRevision:J.revision,side:J.side,edits:{[J.side]:{upsert:t}}})});O("export").addEventListener("click",()=>Sr(O("export-options").hidden));O("export").addEventListener("keydown",t=>{t.key==="ArrowDown"&&(t.preventDefault(),Sr(!0,!0))});document.addEventListener("click",t=>{O("export").parentElement?.contains(t.target)||Sr(!1)});document.addEventListener("keydown",t=>{t.key==="Escape"&&!O("export-options").hidden&&(t.preventDefault(),Sr(!1,!0))});for(let t of["png","json","package"])O(t).addEventListener("click",async()=>{if(!J||Fe||!zr||kr().length)return;Sr(!1,!0);let n=(await Io("makeables_export",{file:J.file,expectedRevision:J.revision,side:J.side,format:t}))?._meta?.download;if(n)try{let i=await Te.downloadFile({contents:[{type:"resource",resource:{uri:`file:///${encodeURIComponent(n.name)}`,mimeType:n.mimeType,blob:n.blob}}]});wo.title=n.name,xe(i.isError?"Download was not completed.":"Downloaded",!!i.isError)}catch{xe("Download failed. Your file is saved locally; export it with the CLI.",!0)}});function vm(t){t.theme&&mm(t.theme),t.styles?.variables&&pm(t.styles.variables)}Te.ontoolresult=t=>{try{hm(t)}catch(r){xe(String(r),!0)}};Te.ontoolcancelled=()=>xe("Cancelled. Refresh before making another edit.",!0);Te.onhostcontextchanged=vm;try{await Te.connect(),fm=!0;let t=Te.getHostContext();t&&vm(t),zr=!!Te.getHostCapabilities()?.downloadFile,O("export-note").hidden=zr,J||xe("Ready"),Je()}catch{xe("Preview unavailable. Continue with the same file in the built-in browser or CLI.",!0),Je()}
178
+ </script>
179
+ </body>
180
+ </html>