@vpxa/aikit 0.1.311 → 0.1.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/blocks-core/dist/index.mjs +429 -138
- package/packages/present/dist/index.html +466 -215
- package/packages/server/dist/bin.js +1 -1
- package/packages/server/dist/index.js +1 -1
- package/packages/server/dist/{server-uxrUzJ0L.js → server-CPTH7EEq.js} +2 -2
- package/packages/server/dist/{server-CUEJEod-.js → server-D9Y42imA.js} +2 -2
- package/packages/server/dist/{server-http-DLqbe1NN.js → server-http-D34e6iap.js} +1 -1
- package/packages/server/dist/{server-http-C2Vv-0lq.js → server-http-GaLD7IIy.js} +1 -1
- package/packages/server/dist/{server-stdio-RjYFfC_c.js → server-stdio-BCpG8h95.js} +1 -1
- package/packages/server/dist/{server-stdio-h8m_nhNo.js → server-stdio-fTUlwk5u.js} +1 -1
- package/packages/server/viewers/c4-viewer.html +27 -27
- package/packages/server/viewers/canvas.html +287 -153
- package/packages/server/viewers/report-template.html +254 -120
- package/packages/server/viewers/task-plan-static.html +7 -7
- package/packages/server/viewers/tour-viewer.html +212 -78
- package/scaffold/dist/definitions/skills/c4-architecture.mjs +1 -1
- package/scaffold/dist/definitions/skills/docs.mjs +1 -1
|
@@ -411,27 +411,29 @@
|
|
|
411
411
|
display: flex;
|
|
412
412
|
flex-wrap: wrap;
|
|
413
413
|
gap: var(--dt-space-3);
|
|
414
|
+
align-items: center;
|
|
414
415
|
}
|
|
415
416
|
|
|
416
417
|
.bk-action,
|
|
417
418
|
.bk-select {
|
|
418
|
-
min-height: 2.
|
|
419
|
+
min-height: 2.25rem;
|
|
419
420
|
border: 1px solid var(--dt-border-default);
|
|
420
421
|
border-radius: var(--dt-radius-md);
|
|
421
422
|
background: var(--dt-bg-secondary);
|
|
422
423
|
color: var(--dt-text-primary);
|
|
423
424
|
font: inherit;
|
|
425
|
+
font-size: var(--dt-font-size-sm);
|
|
424
426
|
}
|
|
425
427
|
|
|
426
428
|
.bk-action {
|
|
427
429
|
padding: 0 var(--dt-space-4);
|
|
428
430
|
cursor: pointer;
|
|
429
|
-
transition:
|
|
431
|
+
transition: background var(--dt-transition-fast), border-color var(--dt-transition-fast), box-shadow var(--dt-transition-fast);
|
|
430
432
|
}
|
|
431
433
|
|
|
432
434
|
.bk-action:hover {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
+
background: var(--dt-bg-tertiary);
|
|
436
|
+
border-color: var(--dt-accent-muted);
|
|
435
437
|
}
|
|
436
438
|
|
|
437
439
|
.bk-action--primary {
|
|
@@ -440,24 +442,37 @@
|
|
|
440
442
|
color: #ffffff;
|
|
441
443
|
}
|
|
442
444
|
|
|
445
|
+
.bk-action--primary:hover {
|
|
446
|
+
background: color-mix(in srgb, var(--dt-accent-emphasis) 85%, #000000);
|
|
447
|
+
border-color: var(--dt-accent-emphasis);
|
|
448
|
+
}
|
|
449
|
+
|
|
443
450
|
.bk-action--danger {
|
|
444
451
|
background: var(--dt-danger-emphasis);
|
|
445
452
|
border-color: var(--dt-danger-emphasis);
|
|
446
453
|
color: #ffffff;
|
|
447
454
|
}
|
|
448
455
|
|
|
456
|
+
.bk-action--danger:hover {
|
|
457
|
+
background: color-mix(in srgb, var(--dt-danger-emphasis) 85%, #000000);
|
|
458
|
+
border-color: var(--dt-danger-emphasis);
|
|
459
|
+
}
|
|
460
|
+
|
|
449
461
|
.bk-select {
|
|
450
462
|
padding: 0 var(--dt-space-3);
|
|
463
|
+
cursor: pointer;
|
|
451
464
|
}
|
|
465
|
+
|
|
452
466
|
.bk-text-submit { display: flex; gap: var(--dt-space-2); align-items: center; }
|
|
453
|
-
.bk-input { min-height: 2.
|
|
454
|
-
.bk-input:focus { outline:
|
|
467
|
+
.bk-input { min-height: 2.25rem; padding: 0 var(--dt-space-3); border: 1px solid var(--dt-border-default); border-radius: var(--dt-radius-md); background: var(--dt-bg-primary); color: var(--dt-text-primary); font: inherit; font-size: var(--dt-font-size-sm); flex: 1; min-width: 200px; transition: border-color var(--dt-transition-fast); }
|
|
468
|
+
.bk-input:focus { outline: none; border-color: var(--dt-accent-emphasis); box-shadow: 0 0 0 2px var(--dt-accent-subtle); }
|
|
469
|
+
.bk-input::placeholder { color: var(--dt-text-tertiary); }
|
|
455
470
|
.bk-form { display: flex; flex-direction: column; gap: var(--dt-space-3); }
|
|
456
471
|
.bk-form fieldset { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--dt-space-3); }
|
|
457
472
|
.bk-form-field { display: flex; flex-direction: column; gap: var(--dt-space-1); }
|
|
458
|
-
.bk-form-label { font-size:
|
|
459
|
-
.bk-action-feedback { font-size:
|
|
460
|
-
.bk-action-feedback[data-feedback-state="sent"] { color: var(--dt-success-fg
|
|
473
|
+
.bk-form-label { font-size: var(--dt-font-size-sm); font-weight: 500; color: var(--dt-text-secondary); }
|
|
474
|
+
.bk-action-feedback { font-size: var(--dt-font-size-sm); color: var(--dt-text-secondary); padding: var(--dt-space-2) 0; }
|
|
475
|
+
.bk-action-feedback[data-feedback-state="sent"] { color: var(--dt-success-fg); }
|
|
461
476
|
`;function re(e,t){return`<div class="bk-actions">${te(e.value).map(e=>{let t=o(e.id);if(e.type===`select`){let n=(e.options??[]).map(e=>{let t=typeof e==`string`?e:e.value,n=typeof e==`string`?e:e.label;return`<option value="${i(t)}">${i(n)}</option>`}).join(``);return`<label class="bk-select-wrap"><span class="bk-visually-hidden">${i(e.label)}</span><select class="bk-select" data-action-id="${t}"><option value="" selected disabled>${i(e.label)}</option>${n}</select></label>`}if(e.type===`text-submit`)return`<div class="bk-text-submit" data-action-id="${t}"><input type="text" class="bk-input" placeholder="${i(e.label)}" data-action-id="${t}" /><button type="button" class="bk-action bk-action--primary" data-action-id="${t}">Send</button></div>`;if(e.type===`form-submit`&&e.schema){let n=e.schema;return`<form class="bk-form" data-action-id="${t}"><fieldset>${Object.entries(n).map(([e,t])=>{let n=t.description??e,r=t.type===`number`?`number`:`text`;return`<label class="bk-form-field"><span class="bk-form-label">${i(n)}</span><input type="${r}" class="bk-input" name="${i(e)}" placeholder="${i(n)}" /></label>`}).join(``)}<button type="submit" class="bk-action bk-action--primary">${i(e.label)}</button></fieldset></form>`}return`<button type="button" class="bk-action bk-action--${i(e.variant??`default`)}" data-action-id="${t}">${i(e.label)}</button>`}).join(``)}<div class="bk-action-feedback" style="display:none;font-size:0.875rem;color:var(--dt-text-secondary);padding:var(--dt-space-2) 0;" data-feedback-state="pending">💬 Feedback sent</div></div>`}var ie=`
|
|
462
477
|
.bk-cards {
|
|
463
478
|
display: grid;
|
|
@@ -468,17 +483,18 @@
|
|
|
468
483
|
.bk-card {
|
|
469
484
|
display: grid;
|
|
470
485
|
gap: var(--dt-space-3);
|
|
471
|
-
padding: var(--dt-space-
|
|
486
|
+
padding: var(--dt-space-5);
|
|
472
487
|
border: 1px solid var(--dt-border-default);
|
|
473
488
|
border-radius: var(--dt-radius-xl);
|
|
474
|
-
background:
|
|
489
|
+
background: var(--dt-bg-secondary);
|
|
475
490
|
box-shadow: var(--dt-shadow-sm);
|
|
476
|
-
transition: transform var(--dt-transition-
|
|
491
|
+
transition: transform var(--dt-transition-normal), box-shadow var(--dt-transition-normal), border-color var(--dt-transition-normal);
|
|
477
492
|
}
|
|
478
493
|
|
|
479
494
|
.bk-card:hover {
|
|
480
|
-
transform: translateY(-
|
|
481
|
-
|
|
495
|
+
transform: translateY(-2px);
|
|
496
|
+
border-color: var(--dt-accent-muted);
|
|
497
|
+
box-shadow: 0 0 0 1px var(--dt-accent-subtle), var(--dt-shadow-md);
|
|
482
498
|
}
|
|
483
499
|
|
|
484
500
|
.bk-card-header {
|
|
@@ -492,21 +508,25 @@
|
|
|
492
508
|
color: var(--dt-text-primary);
|
|
493
509
|
font-size: var(--dt-font-size-lg);
|
|
494
510
|
font-weight: 600;
|
|
511
|
+
letter-spacing: -0.01em;
|
|
495
512
|
}
|
|
496
513
|
|
|
497
514
|
.bk-card-body,
|
|
498
515
|
.bk-card-description {
|
|
499
516
|
color: var(--dt-text-secondary);
|
|
500
517
|
line-height: 1.6;
|
|
518
|
+
font-size: var(--dt-font-size-sm);
|
|
501
519
|
}
|
|
502
520
|
|
|
503
521
|
.bk-card-badge {
|
|
504
|
-
padding:
|
|
505
|
-
border-radius:
|
|
522
|
+
padding: 2px var(--dt-space-2);
|
|
523
|
+
border-radius: var(--dt-radius-pill);
|
|
506
524
|
background: var(--dt-accent-subtle);
|
|
507
525
|
color: var(--dt-accent-fg);
|
|
508
526
|
font-size: var(--dt-font-size-xs);
|
|
509
527
|
font-weight: 600;
|
|
528
|
+
letter-spacing: 0.02em;
|
|
529
|
+
white-space: nowrap;
|
|
510
530
|
}
|
|
511
531
|
`;function ae(e,t){return`<div class="bk-cards">${ee(e).map(e=>{let t=e.badge?`<span class="bk-card-badge">${i(e.badge)}</span>`:``,n=e.body?`<div class="bk-card-body">${i(e.body)}</div>`:``,r=e.description?`<div class="bk-card-description">${i(e.description)}</div>`:``;return`<article class="bk-card" data-tone="${f(e.status)}"><div class="bk-card-header"><div class="bk-card-title">${i(e.title)}</div>${t}</div>${n}${r}</article>`}).join(``)}</div>`}var oe=[`#3b82f6`,`#10b981`,`#f59e0b`,`#ef4444`,`#8b5cf6`,`#ec4899`,`#06b6d4`,`#84cc16`],se=new Set([`line`,`area`,`bar`,`horizontal-bar`,`pie`,`donut`,`sparkline`,`heatmap`]),ce=500,le=300,ue=300,de=100,fe=30,pe=`
|
|
512
532
|
.bk-chart {
|
|
@@ -635,18 +655,26 @@
|
|
|
635
655
|
border: 1px solid var(--dt-border-default);
|
|
636
656
|
border-radius: var(--dt-radius-lg);
|
|
637
657
|
background: var(--dt-bg-secondary);
|
|
658
|
+
transition: border-color var(--dt-transition-fast), background var(--dt-transition-fast);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.bk-checklist-item:hover {
|
|
662
|
+
border-color: var(--dt-accent-muted);
|
|
663
|
+
background: var(--dt-bg-tertiary);
|
|
638
664
|
}
|
|
639
665
|
|
|
640
666
|
.bk-checklist-icon {
|
|
641
667
|
display: inline-flex;
|
|
642
668
|
align-items: center;
|
|
643
669
|
justify-content: center;
|
|
644
|
-
width:
|
|
645
|
-
height:
|
|
646
|
-
|
|
670
|
+
width: 1.5rem;
|
|
671
|
+
height: 1.5rem;
|
|
672
|
+
flex-shrink: 0;
|
|
673
|
+
margin-top: 1px;
|
|
674
|
+
border-radius: var(--dt-radius-sm);
|
|
647
675
|
background: var(--dt-danger-subtle);
|
|
648
676
|
color: var(--dt-danger-fg);
|
|
649
|
-
font-size: var(--dt-font-size-
|
|
677
|
+
font-size: var(--dt-font-size-xs);
|
|
650
678
|
font-weight: 700;
|
|
651
679
|
}
|
|
652
680
|
|
|
@@ -657,23 +685,27 @@
|
|
|
657
685
|
|
|
658
686
|
.bk-checklist-label {
|
|
659
687
|
color: var(--dt-text-primary);
|
|
688
|
+
font-size: var(--dt-font-size-sm);
|
|
689
|
+
line-height: 1.5;
|
|
690
|
+
padding-top: 1px;
|
|
660
691
|
}
|
|
661
692
|
`;function qe(e,t){return`<ul class="bk-checklist">${ee(e).map(e=>{let t=!!e.checked;return`<li class="bk-checklist-item" data-checked="${String(t)}"><span class="bk-checklist-icon">${t?`✓`:`×`}</span><span class="bk-checklist-label">${i(e.label)}</span></li>`}).join(``)}</ul>`}var Je=`
|
|
662
693
|
.bk-code {
|
|
663
694
|
margin: 0;
|
|
664
|
-
padding: var(--dt-space-
|
|
695
|
+
padding: var(--dt-space-5);
|
|
665
696
|
overflow-x: auto;
|
|
666
697
|
border: 1px solid var(--dt-border-default);
|
|
667
698
|
border-radius: var(--dt-radius-lg);
|
|
668
|
-
background: var(--dt-bg-secondary);
|
|
699
|
+
background: linear-gradient(180deg, var(--dt-bg-secondary), var(--dt-bg-primary));
|
|
669
700
|
color: var(--dt-text-primary);
|
|
701
|
+
box-shadow: inset 0 0 0 1px var(--dt-border-subtle);
|
|
702
|
+
tab-size: 2;
|
|
670
703
|
}
|
|
671
704
|
|
|
672
705
|
.bk-code code {
|
|
673
706
|
font-family: var(--dt-font-mono);
|
|
674
707
|
font-size: var(--dt-font-size-sm);
|
|
675
|
-
line-height: 1.
|
|
676
|
-
tab-size: 2;
|
|
708
|
+
line-height: 1.7;
|
|
677
709
|
}
|
|
678
710
|
`;function Ye(e,t){let n=e.language?` language-${o(String(e.language))}`:``,r=e.value??``,a=typeof r==`object`&&r?JSON.stringify(r,null,2):String(r);return`<pre class="bk-code"><code class="${n.trim()}">${i(a)}</code></pre>`}function Xe(e){let t=c(e);return Array.isArray(t)?t:t&&typeof t==`object`&&Array.isArray(t.columns)?t.columns:[]}var Ze=`
|
|
679
711
|
.bk-comparison {
|
|
@@ -685,24 +717,35 @@
|
|
|
685
717
|
.bk-comparison-column {
|
|
686
718
|
display: grid;
|
|
687
719
|
gap: var(--dt-space-3);
|
|
688
|
-
padding: var(--dt-space-
|
|
720
|
+
padding: var(--dt-space-5);
|
|
689
721
|
border: 1px solid var(--dt-border-default);
|
|
690
722
|
border-radius: var(--dt-radius-lg);
|
|
691
723
|
background: var(--dt-bg-secondary);
|
|
724
|
+
box-shadow: var(--dt-shadow-sm);
|
|
692
725
|
}
|
|
693
726
|
|
|
694
727
|
.bk-comparison-title {
|
|
695
728
|
color: var(--dt-text-primary);
|
|
696
729
|
font-size: var(--dt-font-size-lg);
|
|
697
730
|
font-weight: 600;
|
|
731
|
+
letter-spacing: -0.01em;
|
|
732
|
+
padding-bottom: var(--dt-space-2);
|
|
733
|
+
border-bottom: 1px solid var(--dt-border-muted);
|
|
698
734
|
}
|
|
699
735
|
|
|
700
736
|
.bk-comparison-items {
|
|
701
737
|
display: grid;
|
|
702
738
|
gap: var(--dt-space-2);
|
|
703
739
|
margin: 0;
|
|
740
|
+
padding: 0;
|
|
704
741
|
padding-left: var(--dt-space-4);
|
|
705
742
|
color: var(--dt-text-secondary);
|
|
743
|
+
font-size: var(--dt-font-size-sm);
|
|
744
|
+
line-height: 1.6;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
.bk-comparison-items li {
|
|
748
|
+
padding-left: var(--dt-space-1);
|
|
706
749
|
}
|
|
707
750
|
`;function Qe(e,t){return`<div class="bk-comparison">${Xe(e.value).map(e=>{let t=e.items.map(e=>`<li>${i(e)}</li>`).join(``);return`<section class="bk-comparison-column"><div class="bk-comparison-title">${i(e.title)}</div><ul class="bk-comparison-items">${t}</ul></section>`}).join(``)}</div>`}function $e(e){let t=c(e);if(t&&typeof t==`object`){let e=t;return{name:typeof e.name==`string`?e.name:`Untitled component`,description:typeof e.description==`string`?e.description:void 0,type:typeof e.type==`string`?e.type:void 0,technology:typeof e.technology==`string`?e.technology:void 0,responsibilities:Array.isArray(e.responsibilities)?e.responsibilities.map(String).filter(Boolean):[],interfaces:Array.isArray(e.interfaces)?e.interfaces:[],dependencies:Array.isArray(e.dependencies)?e.dependencies:[],metrics:e.metrics&&typeof e.metrics==`object`?e.metrics:void 0,codeLinks:Array.isArray(e.codeLinks)?e.codeLinks:[]}}return{name:`Untitled component`}}function et(e){return e.length===0?``:`<details class="bk-component-detail-section" open><summary class="bk-component-detail-summary">Responsibilities</summary><ul class="bk-component-detail-list">${e.map(e=>`<li>${i(e)}</li>`).join(``)}</ul></details>`}function tt(e){return e.length===0?``:`<details class="bk-component-detail-section" open><summary class="bk-component-detail-summary">Interfaces</summary><div class="bk-component-detail-table-wrap"><table class="bk-component-detail-table"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody>${e.map(e=>`<tr><td class="bk-component-detail-code">${i(e.name)}</td><td class="bk-component-detail-code">${i(e.type)}</td><td>${i(e.description??``)}</td></tr>`).join(``)}</tbody></table></div></details>`}function nt(e){return e.length===0?``:`<details class="bk-component-detail-section" open><summary class="bk-component-detail-summary">Dependencies</summary><ul class="bk-component-detail-dependencies">${e.map(e=>`<li class="bk-component-detail-dependency"><span class="bk-component-detail-dependency-name">${i(e.name)}</span>${e.relationship?`<span class="bk-component-detail-dependency-relationship">${i(e.relationship)}</span>`:``}</li>`).join(``)}</ul></details>`}function rt(e){let t=Object.entries(e??{});return t.length===0?``:`<details class="bk-component-detail-section" open><summary class="bk-component-detail-summary">Metrics</summary><div class="bk-component-detail-metrics">${t.map(([e,t])=>`<div class="bk-component-detail-metric"><span class="bk-component-detail-metric-label">${i(e)}</span><strong class="bk-component-detail-metric-value">${i(String(t))}</strong></div>`).join(``)}</div></details>`}function it(e){let t=Array.isArray(e.codeLinks)?e.codeLinks:[];return t.length===0?``:`<details class="bk-component-detail-section" open><summary class="bk-component-detail-summary">Code Links</summary><div class="bk-component-detail-links">${t.map(e=>`<a class="bk-component-detail-link" href="${a(e.href)}">${i(e.label)}</a>`).join(``)}</div></details>`}var at=`
|
|
708
751
|
.bk-component-detail {
|
|
@@ -1229,11 +1272,17 @@
|
|
|
1229
1272
|
.bk-finding {
|
|
1230
1273
|
display: grid;
|
|
1231
1274
|
gap: var(--dt-space-3);
|
|
1232
|
-
padding: var(--dt-space-4);
|
|
1275
|
+
padding: var(--dt-space-4) var(--dt-space-5);
|
|
1233
1276
|
border: 1px solid var(--dt-border-default);
|
|
1234
1277
|
border-radius: var(--dt-radius-xl);
|
|
1235
|
-
background:
|
|
1278
|
+
background: var(--dt-bg-secondary);
|
|
1236
1279
|
box-shadow: var(--dt-shadow-sm);
|
|
1280
|
+
transition: border-color var(--dt-transition-fast), box-shadow var(--dt-transition-fast);
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
.bk-finding:hover {
|
|
1284
|
+
border-color: var(--dt-accent-muted);
|
|
1285
|
+
box-shadow: var(--dt-shadow-md);
|
|
1237
1286
|
}
|
|
1238
1287
|
|
|
1239
1288
|
.bk-finding-header {
|
|
@@ -1246,20 +1295,25 @@
|
|
|
1246
1295
|
.bk-finding-title {
|
|
1247
1296
|
color: var(--dt-text-primary);
|
|
1248
1297
|
font-size: var(--dt-font-size-lg);
|
|
1249
|
-
font-weight:
|
|
1298
|
+
font-weight: 600;
|
|
1299
|
+
letter-spacing: -0.01em;
|
|
1250
1300
|
}
|
|
1251
1301
|
|
|
1252
1302
|
.bk-finding-severity {
|
|
1253
|
-
padding:
|
|
1254
|
-
border-radius:
|
|
1303
|
+
padding: 2px var(--dt-space-2);
|
|
1304
|
+
border-radius: var(--dt-radius-pill);
|
|
1255
1305
|
font-size: var(--dt-font-size-xs);
|
|
1256
1306
|
font-weight: 700;
|
|
1257
1307
|
text-transform: uppercase;
|
|
1308
|
+
letter-spacing: 0.04em;
|
|
1309
|
+
white-space: nowrap;
|
|
1310
|
+
flex-shrink: 0;
|
|
1258
1311
|
}
|
|
1259
1312
|
|
|
1260
1313
|
.bk-finding-detail {
|
|
1261
1314
|
color: var(--dt-text-secondary);
|
|
1262
1315
|
line-height: 1.7;
|
|
1316
|
+
font-size: var(--dt-font-size-sm);
|
|
1263
1317
|
}
|
|
1264
1318
|
`;function Dt(e,t){let n=Tt(e),r=f(n.severity),a=n.detail===void 0?``:l(String(n.detail)).replace(/\n/g,`<br>`);return`<article class="bk-finding" data-tone="${r}"><div class="bk-finding-header"><div class="bk-finding-title">${i(n.title)}</div><span class="bk-finding-severity" style="background:var(--dt-${r}-subtle);color:var(--dt-${r}-fg);">${i(n.severity??`info`)}</span></div><div class="bk-finding-detail">${a}</div></article>`}function Ot(e){return String(e??``).replace(/"/g,`\\"`)}var kt=`
|
|
1265
1319
|
.bk-graph {
|
|
@@ -1281,19 +1335,20 @@
|
|
|
1281
1335
|
color: var(--dt-text-primary);
|
|
1282
1336
|
font-family: var(--dt-font-sans);
|
|
1283
1337
|
font-weight: 700;
|
|
1284
|
-
line-height: 1.
|
|
1338
|
+
line-height: 1.2;
|
|
1339
|
+
letter-spacing: -0.02em;
|
|
1285
1340
|
}
|
|
1286
|
-
.bk-heading--1 { font-size: var(--dt-font-size-
|
|
1287
|
-
.bk-heading--2 { font-size: var(--dt-font-size-
|
|
1288
|
-
.bk-heading--3 { font-size: var(--dt-font-size-
|
|
1289
|
-
.bk-heading--4 { font-size: var(--dt-font-size-
|
|
1341
|
+
.bk-heading--1 { font-size: var(--dt-font-size-4xl); letter-spacing: -0.03em; }
|
|
1342
|
+
.bk-heading--2 { font-size: var(--dt-font-size-3xl); }
|
|
1343
|
+
.bk-heading--3 { font-size: var(--dt-font-size-2xl); }
|
|
1344
|
+
.bk-heading--4 { font-size: var(--dt-font-size-xl); }
|
|
1290
1345
|
.bk-heading--5,
|
|
1291
|
-
.bk-heading--6 { font-size: var(--dt-font-size-base); }
|
|
1346
|
+
.bk-heading--6 { font-size: var(--dt-font-size-base); letter-spacing: normal; }
|
|
1292
1347
|
`;function Mt(e,t){let n=Number(e.level??2),r=Number.isFinite(n)?Math.max(1,Math.min(n,6)):2;return`<h${r} class="bk-heading bk-heading--${r}">${i(String(e.value??e.title??``))}</h${r}>`}function Nt(e){return Array.isArray(e)?e.flatMap(e=>{if(!e||typeof e!=`object`)return[];let t=e;return[{key:s(t.key),value:s(t.value)}]}):e&&typeof e==`object`?Object.entries(e).map(([e,t])=>({key:e,value:s(t)})):[]}var Pt=`
|
|
1293
1348
|
.bk-kv {
|
|
1294
1349
|
display: grid;
|
|
1350
|
+
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
|
1295
1351
|
gap: var(--dt-space-3);
|
|
1296
|
-
margin: 0;
|
|
1297
1352
|
}
|
|
1298
1353
|
|
|
1299
1354
|
.bk-kv-entry {
|
|
@@ -1303,13 +1358,13 @@
|
|
|
1303
1358
|
padding: var(--dt-space-3) var(--dt-space-4);
|
|
1304
1359
|
border: 1px solid var(--dt-border-default);
|
|
1305
1360
|
border-radius: var(--dt-radius-lg);
|
|
1306
|
-
background:
|
|
1361
|
+
background: var(--dt-bg-secondary);
|
|
1307
1362
|
}
|
|
1308
1363
|
|
|
1309
1364
|
.bk-kv-key {
|
|
1310
1365
|
margin: 0;
|
|
1311
|
-
color: var(--dt-text-
|
|
1312
|
-
font-size: var(--dt-font-size-
|
|
1366
|
+
color: var(--dt-text-tertiary);
|
|
1367
|
+
font-size: var(--dt-font-size-xs);
|
|
1313
1368
|
font-weight: 600;
|
|
1314
1369
|
letter-spacing: 0.04em;
|
|
1315
1370
|
text-transform: uppercase;
|
|
@@ -1318,7 +1373,8 @@
|
|
|
1318
1373
|
.bk-kv-value {
|
|
1319
1374
|
margin: 0;
|
|
1320
1375
|
color: var(--dt-text-primary);
|
|
1321
|
-
|
|
1376
|
+
font-size: var(--dt-font-size-sm);
|
|
1377
|
+
line-height: 1.5;
|
|
1322
1378
|
}
|
|
1323
1379
|
`;function Ft(e,t){return`<dl class="bk-kv">${Nt(e.value).map(e=>`<div class="bk-kv-entry"><dt class="bk-kv-key">${l(e.key)}</dt><dd class="bk-kv-value">${l(e.value)}</dd></div>`).join(``)}</dl>`}var It=164,Lt=84,Rt=44,zt=32,Bt=28;function Vt(e){let t=c(e);if(t&&typeof t==`object`){let e=t;return{title:typeof e.title==`string`?e.title:void 0,steps:Array.isArray(e.steps)?e.steps:[],edges:Array.isArray(e.edges)?e.edges:[]}}return{steps:[],edges:[]}}function Ht(e){switch(e){case`completed`:return`success`;case`error`:return`danger`;case`pending`:return`slate`;default:return`accent`}}function Ut(e,t){let n=e.trim().split(/\s+/).filter(Boolean);if(n.length===0)return[``];let r=[],i=``;for(let e of n){let n=i?`${i} ${e}`:e;if(n.length<=t||i.length===0){i=n;continue}if(r.push(i),i=e,r.length===1)break}return i&&r.push(i),r.length>2?r.slice(0,2):(r.length===2&&n.join(` `).length>r[0].length+r[1].length&&(r[1]=`${r[1].slice(0,Math.max(0,t-1))}…`),r)}function Wt(e){return e.type===`decision`?{width:112,height:112}:{width:It,height:Lt}}function Gt(e){let t=zt;return e.map(e=>{let{width:n,height:r}=Wt(e),i={step:e,x:t,y:Bt,width:n,height:r,centerX:t+n/2,centerY:Bt+r/2};return t+=n+Rt,i})}function Kt(e){let t=Ut(e.step.label,e.step.type===`decision`?12:16),n=e.step.description?Ut(e.step.description,e.step.type===`decision`?12:18).slice(0,1):[],r=e.centerY-(t.length+n.length-1)*18/2,a=[...t.map((t,n)=>`<text class="bk-lifecycle-flow-label" x="${e.centerX}" y="${r+n*18}">${i(t)}</text>`),...n.map((n,a)=>`<text class="bk-lifecycle-flow-description" x="${e.centerX}" y="${r+(t.length+a)*18}">${i(n)}</text>`)].join(``),s=`<rect class="bk-lifecycle-flow-shape" x="${e.x}" y="${e.y}" width="${e.width}" height="${e.height}" rx="18" ry="18" />`;e.step.type===`start`||e.step.type===`end`?s=`<rect class="bk-lifecycle-flow-shape" x="${e.x}" y="${e.y}" width="${e.width}" height="${e.height}" rx="40" ry="40" />`:e.step.type===`decision`&&(s=`<polygon class="bk-lifecycle-flow-shape" points="${`${e.centerX},${e.y}`} ${`${e.x+e.width},${e.centerY}`} ${`${e.centerX},${e.y+e.height}`} ${`${e.x},${e.centerY}`}" />`);let c=e.step.type===`parallel`?`<g class="bk-lifecycle-flow-parallel-mark"><line x1="${e.x+18}" y1="${e.y+18}" x2="${e.x+18}" y2="${e.y+e.height-18}" /><line x1="${e.x+e.width-18}" y1="${e.y+18}" x2="${e.x+e.width-18}" y2="${e.y+e.height-18}" /></g>`:``;return`<g class="bk-lifecycle-flow-node bk-lifecycle-flow-node--${e.step.type??`step`} bk-lifecycle-flow-node--${Ht(e.step.status)}" id="${o(e.step.id)}">${s}${c}${a}</g>`}function qt(e,t){let n=t.get(e.from),r=t.get(e.to);if(!n||!r)return``;let a=n.x+n.width,o=n.centerY,s=r.x,c=r.centerY,l=Math.round((a+s)/2);return`${`<path class="bk-lifecycle-flow-edge" d="M ${a} ${o} C ${l} ${o} ${l} ${c} ${s} ${c}" marker-end="url(#bk-lifecycle-flow-arrow)" />`}${e.label?`<text class="bk-lifecycle-flow-edge-label" x="${l}" y="${Math.min(o,c)-12}">${i(e.label)}</text>`:``}`}function Jt(e,t){return Array.isArray(t)&&t.length>0?t:e.slice(1).map((t,n)=>({from:e[n].id,to:t.id}))}var Yt=`
|
|
1324
1380
|
.bk-lifecycle-flow {
|
|
@@ -1427,6 +1483,7 @@
|
|
|
1427
1483
|
position: relative;
|
|
1428
1484
|
padding-left: var(--dt-space-5);
|
|
1429
1485
|
color: var(--dt-text-primary);
|
|
1486
|
+
font-size: var(--dt-font-size-sm);
|
|
1430
1487
|
line-height: 1.7;
|
|
1431
1488
|
}
|
|
1432
1489
|
|
|
@@ -1435,8 +1492,8 @@
|
|
|
1435
1492
|
position: absolute;
|
|
1436
1493
|
top: 0.85em;
|
|
1437
1494
|
left: var(--dt-space-1);
|
|
1438
|
-
width: 0.
|
|
1439
|
-
height: 0.
|
|
1495
|
+
width: 0.375rem;
|
|
1496
|
+
height: 0.375rem;
|
|
1440
1497
|
border-radius: 999px;
|
|
1441
1498
|
background: var(--dt-accent-fg);
|
|
1442
1499
|
box-shadow: 0 0 0 3px var(--dt-accent-subtle);
|
|
@@ -1490,29 +1547,38 @@ ${jt}
|
|
|
1490
1547
|
.bk-metric {
|
|
1491
1548
|
display: grid;
|
|
1492
1549
|
gap: var(--dt-space-2);
|
|
1493
|
-
padding: var(--dt-space-
|
|
1550
|
+
padding: var(--dt-space-5);
|
|
1494
1551
|
border: 1px solid var(--dt-border-default);
|
|
1495
|
-
border-radius: var(--dt-radius-
|
|
1496
|
-
background:
|
|
1497
|
-
box-shadow:
|
|
1498
|
-
transition: transform var(--dt-transition-
|
|
1552
|
+
border-radius: var(--dt-radius-xl);
|
|
1553
|
+
background: var(--dt-bg-secondary);
|
|
1554
|
+
box-shadow: var(--dt-shadow-sm);
|
|
1555
|
+
transition: transform var(--dt-transition-normal), box-shadow var(--dt-transition-normal), border-color var(--dt-transition-normal);
|
|
1499
1556
|
}
|
|
1500
1557
|
|
|
1501
1558
|
.bk-metric:hover {
|
|
1502
|
-
transform: translateY(-
|
|
1503
|
-
|
|
1559
|
+
transform: translateY(-2px);
|
|
1560
|
+
border-color: var(--dt-accent-muted);
|
|
1561
|
+
box-shadow: 0 0 0 1px var(--dt-accent-subtle), var(--dt-shadow-md);
|
|
1504
1562
|
}
|
|
1505
1563
|
|
|
1506
1564
|
.bk-metric-value {
|
|
1507
1565
|
color: var(--dt-text-primary);
|
|
1508
|
-
font-size: var(--dt-font-size-
|
|
1566
|
+
font-size: var(--dt-font-size-3xl);
|
|
1509
1567
|
font-weight: 700;
|
|
1568
|
+
letter-spacing: -0.02em;
|
|
1569
|
+
line-height: 1.1;
|
|
1510
1570
|
}
|
|
1511
1571
|
|
|
1512
|
-
.bk-metric-label
|
|
1513
|
-
.bk-metric-trend {
|
|
1572
|
+
.bk-metric-label {
|
|
1514
1573
|
color: var(--dt-text-secondary);
|
|
1515
1574
|
font-size: var(--dt-font-size-sm);
|
|
1575
|
+
font-weight: 500;
|
|
1576
|
+
letter-spacing: 0.02em;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
.bk-metric-trend {
|
|
1580
|
+
color: var(--dt-text-tertiary);
|
|
1581
|
+
font-size: var(--dt-font-size-sm);
|
|
1516
1582
|
}
|
|
1517
1583
|
`;function ln(e,t){return`<div class="bk-metrics">${ee(e).map(e=>`<article class="bk-metric" data-tone="${f(e.status)}"><div class="bk-metric-label">${i(e.label)}</div><div class="bk-metric-value">${i(s(e.value))}</div>${sn(e.trend)}</article>`).join(``)}</div>`}var un=`
|
|
1518
1584
|
.bk-paragraph {
|
|
@@ -1524,7 +1590,7 @@ ${jt}
|
|
|
1524
1590
|
`;function dn(e,t){return`<p class="bk-paragraph">${i(String(e.value??e.text??``))}</p>`}function fn(e){let t=c(e);if(Array.isArray(t))return t;if(t&&typeof t==`object`){if(Array.isArray(t.items))return t.items;if(`value`in t)return[t]}return[]}var pn=`
|
|
1525
1591
|
.bk-progress {
|
|
1526
1592
|
display: grid;
|
|
1527
|
-
gap: var(--dt-space-
|
|
1593
|
+
gap: var(--dt-space-4);
|
|
1528
1594
|
}
|
|
1529
1595
|
|
|
1530
1596
|
.bk-progress-item {
|
|
@@ -1538,14 +1604,15 @@ ${jt}
|
|
|
1538
1604
|
gap: var(--dt-space-3);
|
|
1539
1605
|
color: var(--dt-text-primary);
|
|
1540
1606
|
font-size: var(--dt-font-size-sm);
|
|
1607
|
+
font-weight: 500;
|
|
1541
1608
|
}
|
|
1542
1609
|
|
|
1543
1610
|
.bk-progress-track {
|
|
1544
1611
|
overflow: hidden;
|
|
1545
|
-
height: 0.
|
|
1546
|
-
border-radius:
|
|
1612
|
+
height: 0.625rem;
|
|
1613
|
+
border-radius: var(--dt-radius-pill);
|
|
1547
1614
|
background: var(--dt-bg-tertiary);
|
|
1548
|
-
box-shadow: inset 0 0 0
|
|
1615
|
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
|
|
1549
1616
|
}
|
|
1550
1617
|
|
|
1551
1618
|
.bk-progress-bar {
|
|
@@ -1554,7 +1621,8 @@ ${jt}
|
|
|
1554
1621
|
min-width: 0;
|
|
1555
1622
|
border-radius: inherit;
|
|
1556
1623
|
background: var(--dt-accent-emphasis);
|
|
1557
|
-
box-shadow: 0 0
|
|
1624
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
|
|
1625
|
+
transition: width var(--dt-transition-slow);
|
|
1558
1626
|
}
|
|
1559
1627
|
`;function mn(e,t){return`<div class="bk-progress">${fn(e.value).map(e=>{let t=Math.max(1,Number(e.max)||100),n=Math.max(0,Number(e.value)||0),r=Math.round(Math.min(n/t*100,100)),a=f(e.color);return`<div class="bk-progress-item"><div class="bk-progress-meta"><span>${i(e.label)}</span><span>${r}%</span></div><div class="bk-progress-track"><span class="bk-progress-bar" style="width:${r}%;background:var(--dt-${a}-emphasis);box-shadow:0 0 16px var(--dt-glow-${a});"></span></div></div>`}).join(``)}</div>`}function hn(e){if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)}catch{return String(e??``)}}var gn=`
|
|
1560
1628
|
.bk-prompt {
|
|
@@ -1563,6 +1631,7 @@ ${jt}
|
|
|
1563
1631
|
border: 1px solid var(--dt-border-default);
|
|
1564
1632
|
border-radius: var(--dt-radius-lg);
|
|
1565
1633
|
background: linear-gradient(180deg, var(--dt-bg-secondary), var(--dt-bg-primary));
|
|
1634
|
+
box-shadow: var(--dt-shadow-sm);
|
|
1566
1635
|
color: var(--dt-text-primary);
|
|
1567
1636
|
font-family: var(--dt-font-mono);
|
|
1568
1637
|
font-size: var(--dt-font-size-sm);
|
|
@@ -1654,6 +1723,8 @@ ${jt}
|
|
|
1654
1723
|
z-index: 1;
|
|
1655
1724
|
background: var(--dt-bg-tertiary);
|
|
1656
1725
|
color: var(--dt-text-primary);
|
|
1726
|
+
font-weight: 600;
|
|
1727
|
+
white-space: nowrap;
|
|
1657
1728
|
}
|
|
1658
1729
|
|
|
1659
1730
|
.bk-table th,
|
|
@@ -1664,8 +1735,31 @@ ${jt}
|
|
|
1664
1735
|
vertical-align: top;
|
|
1665
1736
|
}
|
|
1666
1737
|
|
|
1738
|
+
.bk-table th {
|
|
1739
|
+
letter-spacing: 0.02em;
|
|
1740
|
+
text-transform: uppercase;
|
|
1741
|
+
font-size: var(--dt-font-size-xs);
|
|
1742
|
+
color: var(--dt-text-secondary);
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
.bk-table tbody tr {
|
|
1746
|
+
transition: background var(--dt-transition-fast);
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
.bk-table tbody tr:hover {
|
|
1750
|
+
background: color-mix(in srgb, var(--dt-accent-subtle) 60%, transparent);
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1667
1753
|
.bk-table tbody tr:nth-child(even) {
|
|
1668
|
-
background: color-mix(in srgb, var(--dt-bg-
|
|
1754
|
+
background: color-mix(in srgb, var(--dt-bg-tertiary) 40%, transparent);
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
.bk-table tbody tr:nth-child(even):hover {
|
|
1758
|
+
background: color-mix(in srgb, var(--dt-accent-subtle) 60%, var(--dt-bg-tertiary));
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
.bk-table tbody tr:last-child td {
|
|
1762
|
+
border-bottom: none;
|
|
1669
1763
|
}
|
|
1670
1764
|
`;function Dn(e,t){let{headers:n,keys:r,rows:a}=Tn(e);return n.length===0?`<div class="bk-table-wrap"><table class="bk-table"><tbody></tbody></table></div>`:`<div class="bk-table-wrap"><table class="bk-table">${`<thead><tr>${n.map(e=>`<th>${i(e)}</th>`).join(``)}</tr></thead>`}<tbody>${a.map(e=>`<tr>${r.map(t=>`<td>${i(s(e[t]))}</td>`).join(``)}</tr>`).join(``)}</tbody></table></div>`}function On(e){let t=c(e);return Array.isArray(t)?t:t&&typeof t==`object`&&Array.isArray(t.items)?t.items:[]}var kn=`
|
|
1671
1765
|
.bk-tags {
|
|
@@ -1677,12 +1771,13 @@ ${jt}
|
|
|
1677
1771
|
.bk-tag {
|
|
1678
1772
|
display: inline-flex;
|
|
1679
1773
|
align-items: center;
|
|
1680
|
-
padding:
|
|
1681
|
-
border-radius:
|
|
1774
|
+
padding: 2px var(--dt-space-3);
|
|
1775
|
+
border-radius: var(--dt-radius-pill);
|
|
1682
1776
|
background: var(--dt-accent-subtle);
|
|
1683
1777
|
color: var(--dt-accent-fg);
|
|
1684
1778
|
font-size: var(--dt-font-size-xs);
|
|
1685
|
-
font-weight:
|
|
1779
|
+
font-weight: 600;
|
|
1780
|
+
letter-spacing: 0.02em;
|
|
1686
1781
|
}
|
|
1687
1782
|
`;function An(e,t){return`<div class="bk-tags">${On(e.value).map(e=>{let t=typeof e==`string`?e:String(e.text??e.label??``),n=f(typeof e==`string`?void 0:e.status??e.tone??e.color);return`<span class="bk-tag" style="background:var(--dt-${n}-subtle);color:var(--dt-${n}-fg);">${i(t)}</span>`}).join(``)}</div>`}var jn=`
|
|
1688
1783
|
.bk-text {
|
|
@@ -1699,7 +1794,7 @@ ${jt}
|
|
|
1699
1794
|
.bk-timeline-item {
|
|
1700
1795
|
position: relative;
|
|
1701
1796
|
display: grid;
|
|
1702
|
-
gap: var(--dt-space-
|
|
1797
|
+
gap: var(--dt-space-1);
|
|
1703
1798
|
padding-left: calc(var(--dt-space-6) + var(--dt-space-2));
|
|
1704
1799
|
}
|
|
1705
1800
|
|
|
@@ -1708,29 +1803,37 @@ ${jt}
|
|
|
1708
1803
|
position: absolute;
|
|
1709
1804
|
inset: 0 auto 0 var(--dt-space-3);
|
|
1710
1805
|
width: 1px;
|
|
1711
|
-
background: var(--dt-border-
|
|
1806
|
+
background: var(--dt-border-muted);
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
.bk-timeline-item:last-child::before {
|
|
1810
|
+
display: none;
|
|
1712
1811
|
}
|
|
1713
1812
|
|
|
1714
1813
|
.bk-timeline-dot {
|
|
1715
1814
|
position: absolute;
|
|
1716
1815
|
top: var(--dt-space-1);
|
|
1717
1816
|
left: 0;
|
|
1718
|
-
width:
|
|
1719
|
-
height:
|
|
1720
|
-
border:
|
|
1817
|
+
width: 0.625rem;
|
|
1818
|
+
height: 0.625rem;
|
|
1819
|
+
border: 2px solid var(--dt-bg-primary);
|
|
1721
1820
|
border-radius: 999px;
|
|
1722
1821
|
background: var(--dt-accent-emphasis);
|
|
1723
|
-
box-shadow: 0 0 0
|
|
1822
|
+
box-shadow: 0 0 0 3px var(--dt-glow-accent);
|
|
1823
|
+
z-index: 1;
|
|
1724
1824
|
}
|
|
1725
1825
|
|
|
1726
1826
|
.bk-timeline-title {
|
|
1727
1827
|
color: var(--dt-text-primary);
|
|
1728
1828
|
font-weight: 600;
|
|
1829
|
+
font-size: var(--dt-font-size-sm);
|
|
1729
1830
|
}
|
|
1730
1831
|
|
|
1731
1832
|
.bk-timeline-description,
|
|
1732
1833
|
.bk-timeline-timestamp {
|
|
1733
1834
|
color: var(--dt-text-secondary);
|
|
1835
|
+
font-size: var(--dt-font-size-xs);
|
|
1836
|
+
line-height: 1.5;
|
|
1734
1837
|
}
|
|
1735
1838
|
`;function Pn(e,t){return`<div class="bk-timeline">${ee(e).map(e=>{let t=f(e.status),n=e.description?`<div class="bk-timeline-description">${i(e.description)}</div>`:``,r=e.timestamp?`<div class="bk-timeline-timestamp">${i(e.timestamp)}</div>`:``;return`<article class="bk-timeline-item" data-tone="${t}"><span class="bk-timeline-dot" style="background:${`var(--dt-${t}-emphasis)`};box-shadow:0 0 0 6px var(--dt-glow-${t});"></span><div class="bk-timeline-title">${i(e.title)}</div>${n}${r}</article>`}).join(``)}</div>`}function Fn(e,t){if(Array.isArray(e)){let n=e.map(e=>Fn(e)).join(``);return t?`<details class="bk-tree-node" open><summary>${i(t)}</summary><div class="bk-tree-children">${n}</div></details>`:`<div class="bk-tree-children">${n}</div>`}if(e&&typeof e==`object`){let n=e,r=typeof n.name==`string`?n.name:typeof n.label==`string`?n.label:typeof n.title==`string`?n.title:void 0;if(r!==void 0)return Fn(n.children??[],r);let a=Object.entries(n).map(([e,t])=>Fn(t,e)).join(``);return t?`<details class="bk-tree-node" open><summary>${i(t)}</summary><div class="bk-tree-children">${a}</div></details>`:`<div class="bk-tree-children">${a}</div>`}let n=i(s(e));return t?`<div class="bk-tree-leaf"><span class="bk-tree-key">${i(t)}</span><span class="bk-tree-value">${n}</span></div>`:`<div class="bk-tree-leaf">${n}</div>`}var In=`
|
|
1736
1839
|
.bk-tree {
|
|
@@ -1769,14 +1872,17 @@ ${jt}
|
|
|
1769
1872
|
display: grid;
|
|
1770
1873
|
gap: var(--dt-space-3);
|
|
1771
1874
|
margin: 0 0 var(--dt-space-6);
|
|
1875
|
+
padding: 0;
|
|
1772
1876
|
}
|
|
1773
1877
|
|
|
1774
1878
|
.bk-section-title {
|
|
1775
|
-
margin: 0;
|
|
1879
|
+
margin: 0 0 var(--dt-space-2);
|
|
1776
1880
|
color: var(--dt-text-primary);
|
|
1777
1881
|
font-family: var(--dt-font-sans);
|
|
1778
|
-
font-size: var(--dt-font-size-
|
|
1779
|
-
font-weight:
|
|
1882
|
+
font-size: var(--dt-font-size-xl);
|
|
1883
|
+
font-weight: 600;
|
|
1884
|
+
letter-spacing: -0.01em;
|
|
1885
|
+
line-height: 1.3;
|
|
1780
1886
|
}
|
|
1781
1887
|
|
|
1782
1888
|
.bk-text,
|
|
@@ -1818,6 +1924,17 @@ ${jt}
|
|
|
1818
1924
|
.bk-finding a {
|
|
1819
1925
|
color: var(--dt-accent-fg);
|
|
1820
1926
|
text-decoration: none;
|
|
1927
|
+
transition: color var(--dt-transition-fast);
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
.bk-text a:hover,
|
|
1931
|
+
.bk-kv a:hover,
|
|
1932
|
+
.bk-list a:hover,
|
|
1933
|
+
.bk-markdown a:hover,
|
|
1934
|
+
.bk-finding a:hover {
|
|
1935
|
+
color: var(--dt-accent-emphasis);
|
|
1936
|
+
text-decoration: underline;
|
|
1937
|
+
text-underline-offset: 2px;
|
|
1821
1938
|
}
|
|
1822
1939
|
|
|
1823
1940
|
.bk-text code,
|
|
@@ -1825,12 +1942,13 @@ ${jt}
|
|
|
1825
1942
|
.bk-list code,
|
|
1826
1943
|
.bk-markdown code,
|
|
1827
1944
|
.bk-finding code {
|
|
1828
|
-
padding:
|
|
1829
|
-
border-radius: var(--dt-radius-
|
|
1945
|
+
padding: 1px var(--dt-space-1);
|
|
1946
|
+
border-radius: var(--dt-radius-xs);
|
|
1830
1947
|
background: var(--dt-bg-tertiary);
|
|
1831
|
-
color: var(--dt-
|
|
1948
|
+
color: var(--dt-accent-fg);
|
|
1832
1949
|
font-family: var(--dt-font-mono);
|
|
1833
|
-
font-size: 0.
|
|
1950
|
+
font-size: 0.9em;
|
|
1951
|
+
border: 1px solid var(--dt-border-default);
|
|
1834
1952
|
}
|
|
1835
1953
|
|
|
1836
1954
|
.bk-fallback {
|
|
@@ -1856,6 +1974,22 @@ ${jt}
|
|
|
1856
1974
|
white-space: nowrap;
|
|
1857
1975
|
border: 0;
|
|
1858
1976
|
}
|
|
1977
|
+
|
|
1978
|
+
hr {
|
|
1979
|
+
border: none;
|
|
1980
|
+
height: 1px;
|
|
1981
|
+
background: var(--dt-border-default);
|
|
1982
|
+
margin: var(--dt-space-6) 0;
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
blockquote {
|
|
1986
|
+
margin: var(--dt-space-3) 0;
|
|
1987
|
+
padding: var(--dt-space-3) var(--dt-space-4);
|
|
1988
|
+
border-left: 3px solid var(--dt-accent-fg);
|
|
1989
|
+
background: var(--dt-accent-subtle);
|
|
1990
|
+
border-radius: 0 var(--dt-radius-sm) var(--dt-radius-sm) 0;
|
|
1991
|
+
color: var(--dt-text-secondary);
|
|
1992
|
+
}
|
|
1859
1993
|
`;function Bn(e){let t=[zn],n=new Set;for(let r of e)!n.has(r)&&Rn[r]&&(n.add(r),t.push(Rn[r]));return t.join(`
|
|
1860
1994
|
`)}var m={header:`aikit-header`,brand:`aikit-header-brand`,title:`aikit-header-title`,titleText:`aikit-header-title-text`,subtitle:`aikit-header-subtitle`,actions:`aikit-header-actions`,themeToggle:`aikit-theme-toggle`,themeToggleIcon:`aikit-theme-toggle-icon`,themeToggleIconSun:`aikit-theme-toggle-icon--sun`,themeToggleIconMoon:`aikit-theme-toggle-icon--moon`,toolbox:`aikit-toolbox`,toolboxToggle:`aikit-toolbox-toggle`,toolboxMenu:`aikit-toolbox-menu`,toolboxItem:`aikit-toolbox-item`,footer:`aikit-footer`,footerMeta:`aikit-footer-meta`,footerText:`aikit-footer-text`,footerBrand:`aikit-footer-brand`,footerTimestamp:`aikit-footer-timestamp`,footerSlot:`aikit-footer-slot`,footerBadge:`aikit-footer-badge`},Vn=`
|
|
1861
1995
|
.aikit-header,
|
|
@@ -1882,10 +2016,11 @@ ${jt}
|
|
|
1882
2016
|
justify-content: space-between;
|
|
1883
2017
|
gap: var(--dt-space-4);
|
|
1884
2018
|
min-height: 3.5rem;
|
|
1885
|
-
padding: var(--dt-space-2) var(--dt-space-
|
|
2019
|
+
padding: var(--dt-space-2) var(--dt-space-6);
|
|
1886
2020
|
border-bottom: 1px solid var(--aikit-border);
|
|
1887
|
-
background: color-mix(in srgb, var(--aikit-background)
|
|
1888
|
-
backdrop-filter: blur(
|
|
2021
|
+
background: color-mix(in srgb, var(--aikit-background) 85%, transparent);
|
|
2022
|
+
backdrop-filter: blur(12px);
|
|
2023
|
+
-webkit-backdrop-filter: blur(12px);
|
|
1889
2024
|
}
|
|
1890
2025
|
|
|
1891
2026
|
.aikit-header-brand,
|
|
@@ -1899,10 +2034,11 @@ ${jt}
|
|
|
1899
2034
|
align-items: center;
|
|
1900
2035
|
color: var(--aikit-muted-foreground);
|
|
1901
2036
|
font-family: var(--dt-font-mono);
|
|
1902
|
-
font-size: var(--dt-font-size-
|
|
2037
|
+
font-size: var(--dt-font-size-xs);
|
|
1903
2038
|
font-weight: 600;
|
|
1904
|
-
letter-spacing: 0.
|
|
2039
|
+
letter-spacing: 0.14em;
|
|
1905
2040
|
text-transform: uppercase;
|
|
2041
|
+
opacity: 0.8;
|
|
1906
2042
|
}
|
|
1907
2043
|
|
|
1908
2044
|
.aikit-header-title {
|
|
@@ -1960,25 +2096,26 @@ ${jt}
|
|
|
1960
2096
|
align-items: center;
|
|
1961
2097
|
justify-content: center;
|
|
1962
2098
|
position: relative;
|
|
1963
|
-
min-width: 2.
|
|
1964
|
-
height: 2.
|
|
2099
|
+
min-width: 2.25rem;
|
|
2100
|
+
height: 2.25rem;
|
|
1965
2101
|
padding: 0;
|
|
1966
2102
|
border: 1px solid var(--aikit-border);
|
|
1967
|
-
border-radius:
|
|
1968
|
-
background:
|
|
1969
|
-
color: var(--aikit-
|
|
2103
|
+
border-radius: var(--dt-radius-md);
|
|
2104
|
+
background: transparent;
|
|
2105
|
+
color: var(--aikit-muted-foreground);
|
|
1970
2106
|
cursor: pointer;
|
|
1971
2107
|
font: inherit;
|
|
1972
2108
|
transition:
|
|
1973
2109
|
background var(--dt-transition-fast),
|
|
1974
2110
|
border-color var(--dt-transition-fast),
|
|
1975
|
-
color var(--dt-transition-fast)
|
|
1976
|
-
transform var(--dt-transition-fast);
|
|
2111
|
+
color var(--dt-transition-fast);
|
|
1977
2112
|
}
|
|
1978
2113
|
|
|
1979
2114
|
.aikit-theme-toggle:hover,
|
|
1980
2115
|
.aikit-toolbox-toggle:hover {
|
|
1981
2116
|
background: var(--aikit-muted);
|
|
2117
|
+
color: var(--aikit-foreground);
|
|
2118
|
+
border-color: var(--aikit-border);
|
|
1982
2119
|
}
|
|
1983
2120
|
|
|
1984
2121
|
.aikit-theme-toggle:focus-visible,
|
|
@@ -2030,12 +2167,28 @@ html[data-theme='dark'] .aikit-theme-toggle-icon--moon {
|
|
|
2030
2167
|
border: 1px solid var(--aikit-border);
|
|
2031
2168
|
border-radius: var(--dt-radius-lg);
|
|
2032
2169
|
background: var(--aikit-background);
|
|
2170
|
+
background: color-mix(in srgb, var(--aikit-background) 98%, transparent);
|
|
2171
|
+
backdrop-filter: blur(16px);
|
|
2033
2172
|
box-shadow: var(--dt-shadow-lg);
|
|
2034
2173
|
z-index: 120;
|
|
2174
|
+
animation: aikit-menu-enter 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2175
|
+
transform-origin: top right;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
@keyframes aikit-menu-enter {
|
|
2179
|
+
from {
|
|
2180
|
+
opacity: 0;
|
|
2181
|
+
transform: scale(0.95) translateY(-4px);
|
|
2182
|
+
}
|
|
2183
|
+
to {
|
|
2184
|
+
opacity: 1;
|
|
2185
|
+
transform: scale(1) translateY(0);
|
|
2186
|
+
}
|
|
2035
2187
|
}
|
|
2036
2188
|
|
|
2037
2189
|
.aikit-toolbox-menu[hidden] {
|
|
2038
2190
|
display: none;
|
|
2191
|
+
animation: none;
|
|
2039
2192
|
}
|
|
2040
2193
|
|
|
2041
2194
|
.aikit-toolbox-item {
|
|
@@ -2043,7 +2196,7 @@ html[data-theme='dark'] .aikit-theme-toggle-icon--moon {
|
|
|
2043
2196
|
align-items: center;
|
|
2044
2197
|
gap: var(--dt-space-2);
|
|
2045
2198
|
width: 100%;
|
|
2046
|
-
min-height: 2.
|
|
2199
|
+
min-height: 2.25rem;
|
|
2047
2200
|
padding: 0 var(--dt-space-3);
|
|
2048
2201
|
border: 1px solid transparent;
|
|
2049
2202
|
border-radius: var(--dt-radius-sm);
|
|
@@ -2052,6 +2205,7 @@ html[data-theme='dark'] .aikit-theme-toggle-icon--moon {
|
|
|
2052
2205
|
cursor: pointer;
|
|
2053
2206
|
font: inherit;
|
|
2054
2207
|
text-align: left;
|
|
2208
|
+
transition: background var(--dt-transition-fast), border-color var(--dt-transition-fast);
|
|
2055
2209
|
}
|
|
2056
2210
|
|
|
2057
2211
|
.aikit-toolbox-item:hover {
|
|
@@ -2061,6 +2215,7 @@ html[data-theme='dark'] .aikit-theme-toggle-icon--moon {
|
|
|
2061
2215
|
|
|
2062
2216
|
.aikit-toolbox-item svg {
|
|
2063
2217
|
flex: 0 0 auto;
|
|
2218
|
+
opacity: 0.7;
|
|
2064
2219
|
}
|
|
2065
2220
|
|
|
2066
2221
|
.aikit-copy-status {
|
|
@@ -2073,6 +2228,8 @@ html[data-theme='dark'] .aikit-theme-toggle-icon--moon {
|
|
|
2073
2228
|
border: 1px solid var(--aikit-border);
|
|
2074
2229
|
border-radius: var(--dt-radius-md);
|
|
2075
2230
|
background: var(--aikit-background);
|
|
2231
|
+
background: color-mix(in srgb, var(--aikit-background) 98%, transparent);
|
|
2232
|
+
backdrop-filter: blur(8px);
|
|
2076
2233
|
color: var(--aikit-foreground);
|
|
2077
2234
|
box-shadow: var(--dt-shadow-lg);
|
|
2078
2235
|
font-size: var(--dt-font-size-sm);
|
|
@@ -2086,10 +2243,12 @@ html[data-theme='dark'] .aikit-theme-toggle-icon--moon {
|
|
|
2086
2243
|
|
|
2087
2244
|
.aikit-footer {
|
|
2088
2245
|
margin-top: auto;
|
|
2246
|
+
position: relative;
|
|
2247
|
+
z-index: 1;
|
|
2089
2248
|
display: flex;
|
|
2090
2249
|
align-items: center;
|
|
2091
2250
|
justify-content: center;
|
|
2092
|
-
padding: var(--dt-space-
|
|
2251
|
+
padding: var(--dt-space-6) var(--dt-space-6) var(--dt-space-8);
|
|
2093
2252
|
border-top: 1px solid var(--aikit-border);
|
|
2094
2253
|
color: var(--aikit-muted-foreground);
|
|
2095
2254
|
font-size: var(--dt-font-size-xs);
|
|
@@ -2116,8 +2275,9 @@ html[data-theme='dark'] .aikit-theme-toggle-icon--moon {
|
|
|
2116
2275
|
color: var(--aikit-foreground);
|
|
2117
2276
|
font-family: var(--dt-font-mono);
|
|
2118
2277
|
font-weight: 600;
|
|
2119
|
-
letter-spacing: 0.
|
|
2278
|
+
letter-spacing: 0.1em;
|
|
2120
2279
|
text-transform: uppercase;
|
|
2280
|
+
opacity: 0.8;
|
|
2121
2281
|
}
|
|
2122
2282
|
|
|
2123
2283
|
.aikit-footer-timestamp,
|
|
@@ -2135,6 +2295,12 @@ html[data-theme='dark'] .aikit-theme-toggle-icon--moon {
|
|
|
2135
2295
|
.aikit-header {
|
|
2136
2296
|
background: var(--aikit-background);
|
|
2137
2297
|
}
|
|
2298
|
+
.aikit-toolbox-menu {
|
|
2299
|
+
background: var(--aikit-background);
|
|
2300
|
+
}
|
|
2301
|
+
.aikit-copy-status {
|
|
2302
|
+
background: var(--aikit-background);
|
|
2303
|
+
}
|
|
2138
2304
|
}
|
|
2139
2305
|
|
|
2140
2306
|
@media (max-width: 640px) {
|
|
@@ -2144,8 +2310,9 @@ html[data-theme='dark'] .aikit-theme-toggle-icon--moon {
|
|
|
2144
2310
|
|
|
2145
2311
|
.aikit-header {
|
|
2146
2312
|
gap: var(--dt-space-2);
|
|
2147
|
-
padding-left: var(--dt-space-
|
|
2148
|
-
padding-right: var(--dt-space-
|
|
2313
|
+
padding-left: var(--dt-space-4);
|
|
2314
|
+
padding-right: var(--dt-space-4);
|
|
2315
|
+
min-height: 3rem;
|
|
2149
2316
|
}
|
|
2150
2317
|
|
|
2151
2318
|
.aikit-toolbox-menu {
|
|
@@ -2154,6 +2321,10 @@ html[data-theme='dark'] .aikit-theme-toggle-icon--moon {
|
|
|
2154
2321
|
min-width: auto;
|
|
2155
2322
|
max-width: calc(100vw - 2rem);
|
|
2156
2323
|
}
|
|
2324
|
+
|
|
2325
|
+
.aikit-footer {
|
|
2326
|
+
padding: var(--dt-space-4) var(--dt-space-4) var(--dt-space-6);
|
|
2327
|
+
}
|
|
2157
2328
|
}
|
|
2158
2329
|
|
|
2159
2330
|
@media (max-width: 400px) {
|
|
@@ -2174,8 +2345,8 @@ html[data-theme='dark'] .aikit-theme-toggle-icon--moon {
|
|
|
2174
2345
|
right: 0;
|
|
2175
2346
|
min-width: auto;
|
|
2176
2347
|
max-width: 100%;
|
|
2177
|
-
border-radius:
|
|
2178
|
-
box-shadow: 0 -4px
|
|
2348
|
+
border-radius: var(--dt-radius-xl) var(--dt-radius-xl) 0 0;
|
|
2349
|
+
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
|
|
2179
2350
|
}
|
|
2180
2351
|
}
|
|
2181
2352
|
`;function Hn(e){let t={COMMENT:[],DELETION:[],GLOBAL_COMMENT:[]};for(let n of e)t[n.type in t?n.type:`COMMENT`].push(n);return t}function Un(e){let t=o(e.id),n=[];return e.author&&n.push(`<span class="bk-annotation-author">${i(e.author)}</span>`),e.createdAt&&n.push(`<time class="bk-annotation-time">${i(e.createdAt)}</time>`),`<li class="bk-annotation-item" data-block-id="${t}" data-annotation-type="${e.type}">
|
|
@@ -2197,10 +2368,10 @@ ${a}
|
|
|
2197
2368
|
${c}
|
|
2198
2369
|
</div>`}var Jn={actions:re,annotation:Gn,approval:qn,cards:ae,chart:me,checklist:qe,code:Ye,comparison:Qe,diff:gt,"component-detail":ot,"data-table-schema":ft,"docs-browser":yt,"docs-hub":wt,finding:Dt,graph:At,heading:Mt,kv:Ft,"lifecycle-flow":Xt,list:Qt,markdown:rn,mermaid:on,metrics:ln,paragraph:dn,progress:mn,prompt:_n,separator:yn,"status-board":Sn,table:Dn,tags:An,text:Mn,timeline:Pn,tree:Ln};function Yn(e,t,n){let r={...e,value:c(e.value)},a=Jn[r.type],s=a?a(r,t):Zn(r);return r.title&&![`heading`,`finding`].includes(r.type)&&(s=`<section class="bk-section bk-section--${i(r.type)}"><h3 class="bk-section-title">${i(r.title)}</h3>${s}</section>`),`<div data-block-id="${o(r.blockId??`block-${n??0}`)}">${s}</div>`}function Xn(e,t){return e.map((e,n)=>Yn(e,t,n)).join(`
|
|
2199
2370
|
`)}function Zn(e){if(e.value===void 0||e.value===null)return``;if(typeof e.value==`string`)return`<p class="bk-paragraph">${i(e.value)}</p>`;try{return`<pre class="bk-fallback">${i(JSON.stringify(e.value,null,2))}</pre>`}catch{return`<pre class="bk-fallback">${i(String(e.value))}</pre>`}}var Qn=class{templates=new Map;register(e){this.templates.set(e.id,e)}get(e){let t=this.templates.get(e);if(t)return t;let n=e.includes(`@`)?e:`${e}@`,r,i=-1;for(let[e,t]of this.templates){if(!e.startsWith(n))continue;let a=Number.parseInt(e.split(`@`)[1]??`0`,10);a>i&&(i=a,r=t)}return r}has(e){return this.get(e)!==void 0}list(){return[...this.templates.values()]}},$n=[`mcp-app`,`browser`];function er(e){return typeof e==`object`&&!!e}function tr(e){return Array.isArray(e)?e.flatMap(e=>!er(e)||typeof e.label!=`string`?[]:[{label:e.label,checked:!!e.checked}]):[]}var nr={id:`checklist@1`,label:`Checklist`,description:`Checklist with optional title and checklist hydration metadata.`,inputSchema:{type:`object`,properties:{title:{type:`string`},items:{type:`array`,items:{type:`object`,required:[`label`,`checked`],properties:{label:{type:`string`},checked:{type:`boolean`}},additionalProperties:!1}}},required:[`items`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t=[],n=er(e)&&typeof e.title==`string`?e.title:void 0,r=er(e)?tr(e.items):[];return n&&t.push({type:`heading`,value:n}),t.push({type:`checklist`,value:r}),t},hydration:[`checklist`],supportedTransports:$n},rr=[`mcp-app`,`browser`,`export`];function ir(e){return typeof e==`object`&&!!e}function ar(e){return ir(e)&&typeof e.label==`string`&&(typeof e.value==`string`||typeof e.value==`number`)}function or(e){return ir(e)&&typeof e.key==`string`&&typeof e.label==`string`}function sr(e){return Array.isArray(e)?e.filter(ir):[]}function cr(e,t){if(Array.isArray(e)){let t=e.filter(or);if(t.length>0)return t}return Object.keys(t[0]??{}).map(e=>({key:e,label:e}))}var lr={id:`data-table@1`,label:`Data Table`,description:`Static data table with optional metrics and sortable table hydration.`,inputSchema:{type:`object`,properties:{columns:{type:`array`,items:{type:`object`,required:[`key`,`label`],properties:{key:{type:`string`},label:{type:`string`}},additionalProperties:!1}},rows:{type:`array`,items:{type:`object`}},stats:{type:`array`,items:{type:`object`,required:[`label`,`value`],properties:{label:{type:`string`},value:{type:[`string`,`number`]},trend:{type:[`string`,`number`]},status:{type:`string`}},additionalProperties:!1}}},required:[`rows`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t=ir(e)?sr(e.rows):[],n=ir(e)?cr(e.columns,t):[],r=n.map(e=>e.label),i=t.map(e=>n.map(t=>e[t.key])),a=[];if(ir(e)&&Array.isArray(e.stats)){let t=e.stats.filter(ar);t.length>0&&a.push({type:`metrics`,value:t})}return a.push({type:`table`,columns:n,headers:r,rows:i,value:{headers:r,rows:i}}),a},hydration:[`table`],supportedTransports:rr},ur=[`mcp-app`,`browser`,`export`];function dr(e){return typeof e==`object`&&!!e}function fr(e){return Array.isArray(e)?e.flatMap(e=>!dr(e)||typeof e.type!=`string`||typeof e.content!=`string`?[]:[{type:e.type,content:e.content}]):[]}function pr(e){return Array.isArray(e)?e.flatMap(e=>!dr(e)||typeof e.header!=`string`?[]:[{header:e.header,changes:fr(e.changes)}]):[]}function mr(e){return!dr(e)||!Array.isArray(e.files)?[]:e.files.flatMap(e=>!dr(e)||typeof e.path!=`string`||typeof e.status!=`string`?[]:[{path:e.path,status:e.status,additions:typeof e.additions==`number`?e.additions:0,deletions:typeof e.deletions==`number`?e.deletions:0,hunks:pr(e.hunks)}])}function hr(e){return e===`add`?`+`:e===`delete`?`-`:` `}function gr(e){let t=e.hunks.flatMap(e=>[e.header,...e.changes.map(e=>`${hr(e.type)}${e.content}`)]).join(`
|
|
2200
|
-
`);return[{type:`heading`,value:e.path},{type:`paragraph`,value:`${e.status} | +${e.additions} / -${e.deletions}`},{type:`code`,language:`diff`,value:t}]}var _r={id:`diff-view@1`,label:`Diff View`,description:`Static diff summary rendered as per-file diff code blocks.`,inputSchema:{type:`object`,properties:{files:{type:`array`,items:{type:`object`,required:[`path`,`status`,`additions`,`deletions`,`hunks`],properties:{path:{type:`string`},status:{type:`string`},additions:{type:`number`},deletions:{type:`number`},hunks:{type:`array`,items:{type:`object`,required:[`header`,`changes`],properties:{header:{type:`string`},changes:{type:`array`,items:{type:`object`,required:[`type`,`content`],properties:{type:{type:`string`},content:{type:`string`}},additionalProperties:!1}}},additionalProperties:!1}}},additionalProperties:!1}}},required:[`files`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>mr(e).flatMap(gr),hydration:[],supportedTransports:ur},vr=[`mcp-app`,`browser`,`export`];function yr(e){return typeof e==`object`&&!!e}function br(e){return yr(e)&&typeof e.type==`string`}function xr(e){return Array.isArray(e)&&e.every(br)}function Sr(e){if(!yr(e))return{sections:[]};let t=Array.isArray(e.sections)?e.sections.flatMap(e=>{if(!yr(e)||typeof e.heading!=`string`)return[];let t=typeof e.content==`string`||xr(e.content)?e.content:``;return[{heading:e.heading,content:t}]}):[];return{title:typeof e.title==`string`?e.title:void 0,sections:t}}function Cr(e){let t=[{type:`heading`,value:e.heading}];return typeof e.content==`string`?(t.push({type:`paragraph`,value:e.content}),t):(t.push(...e.content),t)}var wr={id:`document@1`,label:`Document`,description:`Structured document with optional title and section content blocks.`,inputSchema:{type:`object`,properties:{title:{type:`string`},sections:{type:`array`,items:{type:`object`,additionalProperties:!1,required:[`heading`,`content`],properties:{heading:{type:`string`},content:{oneOf:[{type:`string`},{type:`array`,items:{type:`object`}}]}}}}},required:[`sections`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t=Sr(e),n=[];t.title&&n.push({type:`heading`,value:t.title});for(let e of t.sections)n.push(...Cr(e));return n},hydration:[],supportedTransports:vr},Tr=[`mcp-app`,`browser`,`export`];function Er(e){return typeof e==`object`&&!!e}function Dr(e){return Er(e)?{code:typeof e.code==`string`?e.code:`ERROR`,message:typeof e.message==`string`?e.message:`Unknown error`,details:typeof e.details==`string`?e.details:void 0,stack:typeof e.stack==`string`?e.stack:void 0}:{code:`ERROR`,message:`Unknown error`}}var Or={id:`error@1`,label:`Error`,description:`Static error view with message and optional stack trace.`,inputSchema:{type:`object`,properties:{code:{type:`string`},message:{type:`string`},details:{type:`string`},stack:{type:`string`}},required:[`code`,`message`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t=Dr(e),n=[{type:`heading`,value:`Error`},{type:`code`,title:t.code,language:`text`,value:t.details?`${t.message}\n\n${t.details}`:t.message}];return t.stack&&n.push({type:`code`,title:`Stack Trace`,language:`text`,value:t.stack}),n},hydration:[],supportedTransports:Tr};function kr(e){return typeof e==`object`&&!!e}function Ar(e){return Array.isArray(e)?e.flatMap(e=>!kr(e)||typeof e.name!=`string`||typeof e.label!=`string`?[]:[{name:e.name,label:e.label,type:typeof e.type==`string`?e.type:void 0,required:typeof e.required==`boolean`?e.required:void 0,placeholder:typeof e.placeholder==`string`?e.placeholder:void 0,default:typeof e.default==`string`?e.default:void 0,options:Array.isArray(e.options)?e.options.filter(e=>typeof e==`string`||kr(e)&&typeof e.label==`string`&&typeof e.value==`string`):void 0,value:typeof e.value==`string`||typeof e.value==`boolean`?e.value:void 0}]):[]}var jr={id:`form@1`,label:`Form`,description:`Browser-only form template rendered as a heading and table of field metadata.`,inputSchema:{type:`object`,properties:{title:{type:`string`},fields:{type:`array`,items:{type:`object`,required:[`name`,`label`],properties:{name:{type:`string`},label:{type:`string`},type:{type:`string`},required:{type:`boolean`},placeholder:{type:`string`},default:{type:`string`},options:{type:`array`,items:{anyOf:[{type:`string`},{type:`object`,required:[`label`,`value`],properties:{label:{type:`string`},value:{type:`string`}},additionalProperties:!1}]}},value:{type:[`string`,`boolean`]}},additionalProperties:!1}}},required:[`fields`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t={title:kr(e)&&typeof e.title==`string`?e.title:`Form`,fields:kr(e)?Ar(e.fields):[]};return[{type:`heading`,value:t.title},{type:`table`,value:{headers:[`Label`,`Name`,`Type`,`Required`,`Default/Placeholder`],rows:t.fields.map(e=>[e.label||e.name,e.name,e.type||`text`,e.required?`Yes`:`No`,e.placeholder||e.default||``])}}]},hydration:[`form`],supportedTransports:[`browser`]},Mr=[`mcp-app`,`browser`];function Nr(e){return typeof e==`object`&&!!e}function Pr(e){if(!Array.isArray(e))return;let t=e.flatMap(e=>!Nr(e)||typeof e.id!=`string`||typeof e.label!=`string`?[]:[{id:e.id,label:e.label}]);return t.length>0?t:void 0}function Fr(e){return Array.isArray(e)?e.flatMap(e=>!Nr(e)||typeof e.id!=`string`||typeof e.label!=`string`?[]:[{id:e.id,label:e.label,category:typeof e.category==`string`?e.category:void 0,tags:Array.isArray(e.tags)?e.tags.filter(e=>typeof e==`string`):void 0}]):[]}function Ir(e){return Nr(e)?{categories:Pr(e.categories),items:Fr(e.items)}:{items:[]}}function Lr(e){return{title:e.label,body:e.id,description:e.tags&&e.tags.length>0?e.tags.join(`, `):void 0}}function Rr(e,t){return t.length===0?[]:[{type:`heading`,value:e},{type:`cards`,value:t.map(Lr)}]}var zr={id:`picker@1`,label:`Picker`,description:`Grouped item picker rendered as cards with picker hydration metadata.`,inputSchema:{type:`object`,properties:{categories:{type:`array`,items:{type:`object`,required:[`id`,`label`],properties:{id:{type:`string`},label:{type:`string`}},additionalProperties:!1}},items:{type:`array`,items:{type:`object`,required:[`id`,`label`],properties:{id:{type:`string`},label:{type:`string`},category:{type:`string`},tags:{type:`array`,items:{type:`string`}}},additionalProperties:!1}}},required:[`items`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t=Ir(e),n=[];if(t.categories&&t.categories.length>0){let e=new Set(t.categories.map(e=>e.id)),r=[];for(let e of t.categories){let n=Rr(e.label,t.items.filter(t=>t.category===e.id));n.length>0&&r.push(n)}let i=Rr(`Other`,t.items.filter(t=>!t.category||!e.has(t.category)));return i.length>0&&r.push(i),n.push(...r.flatMap((e,t)=>t>0?[{type:`separator`},...e]:e)),n}return t.items.length>0&&n.push({type:`cards`,value:t.items.map(Lr)}),n},hydration:[`picker`],supportedTransports:Mr},Br=[`mcp-app`,`browser`,`export`];function Vr(e){return typeof e==`object`&&!!e}function Hr(e){return Vr(e)&&typeof e.type==`string`}function Ur(e){return Array.isArray(e)&&e.every(Hr)}function Wr(e){return Vr(e)&&typeof e.label==`string`&&(typeof e.value==`string`||typeof e.value==`number`)}function Gr(e){return Array.isArray(e)?e.flatMap(e=>{if(!Vr(e)||typeof e.heading!=`string`)return[];let t=typeof e.content==`string`||Ur(e.content)?e.content:``;return[{heading:e.heading,content:t}]}):[]}function Kr(e){return Array.isArray(e)?e.flatMap(e=>Vr(e)?[{title:typeof e.title==`string`?e.title:void 0,value:e.value,headers:Array.isArray(e.headers)?e.headers.filter(e=>typeof e==`string`):void 0,rows:Array.isArray(e.rows)?e.rows.filter(e=>Array.isArray(e)):void 0}]:[]):[]}function qr(e){let t=[{type:`heading`,value:e.heading}];return typeof e.content==`string`?(t.push({type:`paragraph`,value:e.content}),t):(t.push(...e.content),t)}function Jr(e){let t={type:`table`};return e.title&&(t.title=e.title),e.value!==void 0&&(t.value=e.value),e.headers&&(t.headers=e.headers),e.rows&&(t.rows=e.rows),t}var Yr={id:`report@1`,label:`Report`,description:`Static report with title, optional metrics, narrative sections, and tables.`,inputSchema:{type:`object`,properties:{title:{type:`string`},metrics:{type:`array`,items:{type:`object`,required:[`label`,`value`],properties:{label:{type:`string`},value:{type:[`string`,`number`]},trend:{type:[`string`,`number`]},status:{type:`string`}},additionalProperties:!1}},sections:{type:`array`,items:{type:`object`,required:[`heading`,`content`],properties:{heading:{type:`string`},content:{oneOf:[{type:`string`},{type:`array`,items:{type:`object`}}]}},additionalProperties:!1}},tables:{type:`array`,items:{type:`object`,properties:{title:{type:`string`},value:{},headers:{type:`array`,items:{type:`string`}},rows:{type:`array`,items:{type:`array`,items:{}}}},additionalProperties:!1}}},required:[`title`,`sections`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t={title:Vr(e)&&typeof e.title==`string`?e.title:`Report`,metrics:Vr(e)&&Array.isArray(e.metrics)?e.metrics.filter(Wr):void 0,sections:Vr(e)?Gr(e.sections):[],tables:Vr(e)?Kr(e.tables):void 0},n=[{type:`heading`,value:t.title}];t.metrics&&t.metrics.length>0&&n.push({type:`metrics`,value:t.metrics});for(let e of t.sections)n.push(...qr(e));for(let e of t.tables??[])n.push(Jr(e));return n},hydration:[],supportedTransports:Br},Xr=[`mcp-app`,`browser`];function Zr(e){return typeof e==`object`&&!!e}function Qr(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function $r(e){return Array.isArray(e)?e.flatMap(e=>{if(!Zr(e)||typeof e.id!=`string`||typeof e.body!=`string`)return[];let t=e.type;if(t!==`COMMENT`&&t!==`DELETION`&&t!==`GLOBAL_COMMENT`)return[];let n=Zr(e.anchor)?e.anchor:{};return[{id:e.id,type:t,body:e.body,anchor:{blockId:n.blockId},author:typeof e.author==`string`?e.author:void 0,createdAt:typeof e.createdAt==`string`?e.createdAt:void 0}]}):[]}function ei(e){return Array.isArray(e)?e.flatMap(e=>{if(!Zr(e)||typeof e.id!=`string`||typeof e.label!=`string`)return[];let t=e.outcome;return t!==`approved`&&t!==`rejected`&&t!==`changes-requested`&&t!==`deferred`?[]:[{id:e.id,label:e.label,outcome:t,description:typeof e.description==`string`?e.description:void 0}]}):[]}var ti={id:`review@1`,label:`Review`,description:`Review surface with criteria checklist, annotation items, and approval controls.`,inputSchema:{type:`object`,properties:{title:{type:`string`},criteria:{type:`array`,items:{type:`string`}},annotations:{type:`array`,items:{type:`object`,required:[`id`,`body`,`type`,`anchor`],properties:{id:{type:`string`},type:{type:`string`,enum:[`COMMENT`,`DELETION`,`GLOBAL_COMMENT`]},body:{type:`string`},anchor:{type:`object`,properties:{blockId:{type:`string`},contextHash:{type:`string`}}},author:{type:`string`},createdAt:{type:`string`}},additionalProperties:!1}},approval:{type:`object`,properties:{prompt:{type:`string`},options:{type:`array`,items:{type:`object`,required:[`id`,`label`,`outcome`],properties:{id:{type:`string`},label:{type:`string`},outcome:{type:`string`,enum:[`approved`,`rejected`,`changes-requested`,`deferred`]},description:{type:`string`}},additionalProperties:!1}},requireComment:{type:`boolean`}},required:[`prompt`,`options`]},comment:{type:`string`}},required:[`title`,`criteria`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t=[];if(!Zr(e))return t;let n=typeof e.title==`string`?e.title:`Review`;t.push({type:`heading`,value:n});let r=Qr(e.criteria);r.length>0&&t.push({type:`checklist`,value:r.map(e=>({label:e,checked:!1}))});let i=$r(e.annotations);i.length>0&&t.push({type:`annotation`,value:i});let a=e.approval;if(Zr(a)){let e=ei(a.options);e.length>0&&t.push({type:`approval`,value:{prompt:typeof a.prompt==`string`?a.prompt:``,options:e,requireComment:typeof a.requireComment==`boolean`?a.requireComment:!1}})}let o=typeof e.comment==`string`?e.comment:void 0;return o&&t.push({type:`markdown`,value:o}),t},hydration:[`checklist`],supportedTransports:Xr},ni=[`mcp-app`,`browser`,`export`];function ri(e){return typeof e==`object`&&!!e}function ii(e){return Array.isArray(e)?e.flatMap(e=>{if(!ri(e)||typeof e.category!=`string`||!Array.isArray(e.items))return[];let t=e.items.flatMap(e=>!ri(e)||typeof e.label!=`string`||typeof e.status!=`string`?[]:[{label:e.label,status:e.status,badge:typeof e.badge==`string`?e.badge:void 0}]);return[{category:e.category,items:t}]}):[]}function ai(e){return e.map(e=>({title:e.label,status:e.status,badge:e.badge}))}var oi={id:`status-board@1`,label:`Status Board`,description:`Static status board grouped into category headings and card collections.`,inputSchema:{type:`object`,properties:{categories:{type:`array`,items:{type:`object`,required:[`category`,`items`],properties:{category:{type:`string`},items:{type:`array`,items:{type:`object`,required:[`label`,`status`],properties:{label:{type:`string`},status:{type:`string`},badge:{type:`string`}},additionalProperties:!1}}},additionalProperties:!1}}},required:[`categories`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t=ri(e)?ii(e.categories):[],n=[];for(let e of t)n.push({type:`heading`,value:e.category}),n.push({type:`cards`,value:ai(e.items)});return n},hydration:[],supportedTransports:ni},si=[`mcp-app`,`browser`,`export`];function ci(e){return typeof e==`object`&&!!e}function li(e){return Array.isArray(e)?e.flatMap(e=>!ci(e)||typeof e.title!=`string`?[]:[{title:e.title,description:typeof e.description==`string`?e.description:void 0,timestamp:typeof e.timestamp==`string`?e.timestamp:void 0,status:typeof e.status==`string`?e.status:void 0}]):[]}function ui(e){return Array.isArray(e)?{entries:li(e)}:ci(e)?{entries:li(e.entries??e.events??e.items),title:typeof e.title==`string`?e.title:void 0}:{entries:[]}}var di={type:`array`,items:{type:`object`,required:[`title`],properties:{title:{type:`string`},description:{type:`string`},timestamp:{type:`string`},status:{type:`string`}},additionalProperties:!1}},fi={id:`timeline@1`,label:`Timeline`,description:`Static timeline events rendered as a timeline block.`,inputSchema:{oneOf:[di,{type:`object`,properties:{title:{type:`string`},entries:di,events:di,items:di},anyOf:[{required:[`entries`]},{required:[`events`]},{required:[`items`]}],additionalProperties:!1}]},defaultLayout:{},blocksFromData:e=>{let{entries:t,title:n}=ui(e),r=[];return n&&r.push({type:`heading`,value:n}),r.push({type:`timeline`,value:t}),r},hydration:[],supportedTransports:si},pi=[`mcp-app`,`browser`,`export`];function mi(e){return typeof e==`object`&&!!e}function hi(e){return mi(e)&&typeof e.label==`string`}function gi(e){return{name:e.label,children:Array.isArray(e.children)?e.children.filter(hi).map(gi):[]}}function _i(e){if(!mi(e))return{};let t=e.root;return hi(t)?gi(t):mi(t)?t:e}var vi={id:`tree@1`,label:`Tree`,description:`Static tree view data with optional tree hydration metadata.`,inputSchema:{oneOf:[{type:`object`,properties:{root:{type:`object`}},required:[`root`],additionalProperties:!0},{type:`object`,additionalProperties:!0}]},defaultLayout:{},blocksFromData:e=>[{type:`tree`,value:_i(e)}],hydration:[`tree`],supportedTransports:pi},yi=new Qn;yi.register(ti),yi.register(nr),yi.register(_r),yi.register(wr),yi.register(zr),yi.register(Yr),yi.register(fi),yi.register(vi),yi.register(lr),yi.register(Or),yi.register(jr),yi.register(oi);var bi=0;function xi(){return bi=(bi+1)%(2**53-1),`${Date.now().toString(16).padStart(12,`0`).slice(-12)}${bi.toString(16).padStart(4,`0`).slice(-4)}${Array.from({length:8},()=>Math.floor(Math.random()*256).toString(16).padStart(2,`0`)).join(``)}`}function Si(e){return{id:e,version:1,entry:`@aikit/blocks-interactive/dist/islands/${e}.mjs`,selector:`[data-island="${e}"]`,needsData:!0}}function Ci(e,t){let n=new TextEncoder;return n.encode(e).byteLength+t.reduce((e,t)=>e+n.encode(t).byteLength,0)}function wi(e,t){let n=[],r=t.registry??yi,i={colorScheme:e.colorScheme??t.colorScheme??`auto`,transport:t.transport,lang:e.lang,dir:e.dir},a=[...e.blocks??[]],o=[...a],s=[],c=[...e.actions??[]];if(e.template){let t=r.get(e.template);if(t)try{o=t.blocksFromData(e.data,i),o.length===0&&e.data!==void 0&&(n.push({level:`warn`,message:`Template "${e.template}" produced no blocks from provided data`}),o=[{type:`markdown`,value:`> ⚠️ Template \`${e.template}\` received data but produced no content. Verify the data structure matches the template schema.`}]),t.actionsFromData&&(c=[...c,...t.actionsFromData(e.data)]),s=t.hydration.map(e=>Si(e))}catch(t){let r=t instanceof Error?t.message:String(t);n.push({level:`error`,message:`Template ${e.template} failed: ${r}`}),o=a.length===0?Or.blocksFromData({code:`TEMPLATE_RENDER_ERROR`,message:`Failed to render template ${e.template}`,details:r},i):[...a]}else n.push({level:`warn`,message:`Template not found: ${e.template}`})}let l=Xn(o,i),u=[Bn(o.map(e=>e.type))],d=t.nonce??xi(),f=e.metadata?.surfaceId??`surface-${d}`,ee=s.length>0?JSON.stringify({data:e.data,blocks:o}):void 0,te=t.blockVendorScripts?[...new Set(o.flatMap(e=>t.blockVendorScripts?.[e.type]??[]))]:void 0;return{surfaceId:f,nonce:d,html:l,css:u,vendorScripts:te&&te.length>0?te:void 0,islands:s,actions:c,payload:ee,estimatedBytes:Ci(l,u),exportPolicy:s.length>0?`local-interactive`:`static-only`,diagnostics:n.length>0?n:void 0}}var Ti={blockedClipboardMessage:`Image clipboard is blocked by this host or browser. Open in a browser that allows clipboard-write, then try again.`,clipboardSuccessMessage:`Copied image to clipboard.`,fallbackToServerCaptureMessage:`Client Copy as Image capture failed`};function Ei(){return Ti}function h(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function g(e){return e&&Object.assign(Mi,e),Mi}var Di,Oi,ki,Ai,ji,Mi,Ni=t((()=>{Oi=Object.freeze({status:`aborted`}),ki=Symbol(`zod_brand`),Ai=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ji=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(Di=globalThis).__zod_globalConfig??(Di.__zod_globalConfig={}),Mi=globalThis.__zod_globalConfig})),Pi=n({BIGINT_FORMAT_RANGES:()=>Ra,Class:()=>za,NUMBER_FORMAT_RANGES:()=>La,aborted:()=>ga,allowsEval:()=>Na,assert:()=>zi,assertEqual:()=>Fi,assertIs:()=>Li,assertNever:()=>Ri,assertNotEqual:()=>Ii,assignProp:()=>qi,base64ToUint8Array:()=>Ta,base64urlToUint8Array:()=>Da,cached:()=>Hi,captureStackTrace:()=>Ma,cleanEnum:()=>wa,cleanRegex:()=>Wi,clone:()=>oa,cloneDef:()=>Yi,createTransparentProxy:()=>sa,defineLazy:()=>v,esc:()=>$i,escapeRegex:()=>aa,explicitlyAborted:()=>_a,extend:()=>da,finalizeIssue:()=>ba,floatSafeRemainder:()=>Gi,getElementAtPath:()=>Xi,getEnumValues:()=>Bi,getLengthableOrigin:()=>Sa,getParsedType:()=>Pa,getSizableOrigin:()=>xa,hexToUint8Array:()=>ka,isObject:()=>ta,isPlainObject:()=>na,issue:()=>Ca,joinValues:()=>_,jsonStringifyReplacer:()=>Vi,merge:()=>pa,mergeDefs:()=>Ji,normalizeParams:()=>y,nullish:()=>Ui,numKeys:()=>ia,objectClone:()=>Ki,omit:()=>ua,optionalKeys:()=>ca,parsedType:()=>x,partial:()=>ma,pick:()=>la,prefixIssues:()=>va,primitiveTypes:()=>Ia,promiseAllObject:()=>Zi,propertyKeyTypes:()=>Fa,randomString:()=>Qi,required:()=>ha,safeExtend:()=>fa,shallowClone:()=>ra,slugify:()=>ea,stringifyPrimitive:()=>b,uint8ArrayToBase64:()=>Ea,uint8ArrayToBase64url:()=>Oa,uint8ArrayToHex:()=>Aa,unwrapMessage:()=>ya});function Fi(e){return e}function Ii(e){return e}function Li(e){}function Ri(e){throw Error(`Unexpected value in exhaustive check`)}function zi(e){}function Bi(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function _(e,t=`|`){return e.map(e=>b(e)).join(t)}function Vi(e,t){return typeof t==`bigint`?t.toString():t}function Hi(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function Ui(e){return e==null}function Wi(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Gi(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function v(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==ja)return r===void 0&&(r=ja,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Ki(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function qi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ji(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function Yi(e){return Ji(e._zod.def)}function Xi(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function Zi(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function Qi(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function $i(e){return JSON.stringify(e)}function ea(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function ta(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function na(e){if(ta(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ta(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function ra(e){return na(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function ia(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function aa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function oa(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function y(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function sa(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function b(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function ca(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function la(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return oa(e,Ji(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return qi(this,`shape`,e),e},checks:[]}))}function ua(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return oa(e,Ji(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return qi(this,`shape`,r),r},checks:[]}))}function da(e,t){if(!na(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return oa(e,Ji(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return qi(this,`shape`,n),n}}))}function fa(e,t){if(!na(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return oa(e,Ji(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return qi(this,`shape`,n),n}}))}function pa(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return oa(e,Ji(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return qi(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function ma(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return oa(t,Ji(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return qi(this,`shape`,i),i},checks:[]}))}function ha(e,t,n){return oa(t,Ji(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return qi(this,`shape`,i),i}}))}function ga(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function _a(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function va(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function ya(e){return typeof e==`string`?e:e?.message}function ba(e,t,n){let r=e.message?e.message:ya(e.inst?._zod.def?.error?.(e))??ya(t?.error?.(e))??ya(n.customError?.(e))??ya(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function xa(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function Sa(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function x(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Ca(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function wa(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Ta(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Ea(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Da(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return Ta(t+`=`.repeat((4-t.length%4)%4))}function Oa(e){return Ea(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function ka(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function Aa(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,S=t((()=>{Ni(),ja=Symbol(`evaluating`),Ma=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Na=Hi(()=>{if(Mi.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Pa=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Fa=new Set([`string`,`number`,`symbol`]),Ia=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),La={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ra={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},za=class{constructor(...e){}}}));function Ba(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Va(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}function Ha(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??={},(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??=[],(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function Ua(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function Wa(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${Ua(e.path)}`);return t.join(`
|
|
2201
|
-
`)}var Ga,Ka,qa,Ja=t((()=>{Ni(),S(),Ga=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Vi,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ka=h(`$ZodError`,Ga),qa=h(`$ZodError`,Ga,{Parent:Error})})),Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo=t((()=>{Ni(),Ja(),S(),Ya=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Ai;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>ba(e,a,g())));throw Ma(t,i?.callee),t}return o.value},Xa=Ya(qa),Za=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>ba(e,a,g())));throw Ma(t,i?.callee),t}return o.value},Qa=Za(qa),$a=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Ai;return a.issues.length?{success:!1,error:new(e??Ka)(a.issues.map(e=>ba(e,i,g())))}:{success:!0,data:a.value}},eo=$a(qa),to=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>ba(e,i,g())))}:{success:!0,data:a.value}},no=to(qa),ro=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Ya(e)(t,n,i)},io=ro(qa),ao=e=>(t,n,r)=>Ya(e)(t,n,r),oo=ao(qa),so=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Za(e)(t,n,i)},co=so(qa),lo=e=>async(t,n,r)=>Za(e)(t,n,r),uo=lo(qa),fo=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return $a(e)(t,n,i)},po=fo(qa),mo=e=>(t,n,r)=>$a(e)(t,n,r),ho=mo(qa),go=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return to(e)(t,n,i)},_o=go(qa),vo=e=>async(t,n,r)=>to(e)(t,n,r),yo=vo(qa)})),xo=n({base64:()=>$o,base64url:()=>es,bigint:()=>cs,boolean:()=>ds,browserEmail:()=>Ko,cidrv4:()=>Zo,cidrv6:()=>Qo,cuid:()=>Oo,cuid2:()=>ko,date:()=>os,datetime:()=>To,domain:()=>ns,duration:()=>Po,e164:()=>is,email:()=>Vo,emoji:()=>So,extendedDuration:()=>Fo,guid:()=>Io,hex:()=>gs,hostname:()=>ts,html5Email:()=>Ho,httpProtocol:()=>rs,idnEmail:()=>Go,integer:()=>ls,ipv4:()=>Jo,ipv6:()=>Yo,ksuid:()=>Mo,lowercase:()=>ms,mac:()=>Xo,md5_base64:()=>vs,md5_base64url:()=>ys,md5_hex:()=>_s,nanoid:()=>No,null:()=>fs,number:()=>us,rfc5322Email:()=>Uo,sha1_base64:()=>xs,sha1_base64url:()=>Ss,sha1_hex:()=>bs,sha256_base64:()=>ws,sha256_base64url:()=>Ts,sha256_hex:()=>Cs,sha384_base64:()=>Ds,sha384_base64url:()=>Os,sha384_hex:()=>Es,sha512_base64:()=>As,sha512_base64url:()=>js,sha512_hex:()=>ks,string:()=>ss,time:()=>wo,ulid:()=>Ao,undefined:()=>ps,unicodeEmail:()=>Wo,uppercase:()=>hs,uuid:()=>Lo,uuid4:()=>Ro,uuid6:()=>zo,uuid7:()=>Bo,xid:()=>jo});function So(){return new RegExp(qo,`u`)}function Co(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function wo(e){return RegExp(`^${Co(e)}$`)}function To(e){let t=Co({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${as}T(?:${r})$`)}function Eo(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Do(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms=t((()=>{S(),Oo=/^[cC][0-9a-z]{6,}$/,ko=/^[0-9a-z]+$/,Ao=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,jo=/^[0-9a-vA-V]{20}$/,Mo=/^[A-Za-z0-9]{27}$/,No=/^[a-zA-Z0-9_-]{21}$/,Po=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Fo=/^[-+]?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)?)??$/,Io=/^([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})$/,Lo=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ro=Lo(4),zo=Lo(6),Bo=Lo(7),Vo=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ho=/^[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])?)*$/,Uo=/^(([^<>()\[\]\\.,;:\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,}))$/,Wo=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Go=Wo,Ko=/^[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])?)*$/,qo=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,Jo=/^(?:(?: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])$/,Yo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Xo=e=>{let t=aa(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Zo=/^((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])$/,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})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$o=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,es=/^[A-Za-z0-9_-]*$/,ts=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ns=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,rs=/^https?$/,is=/^\+[1-9]\d{6,14}$/,as=`(?:(?:\\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])))`,os=RegExp(`^${as}$`),ss=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},cs=/^-?\d+n?$/,ls=/^-?\d+$/,us=/^-?\d+(?:\.\d+)?$/,ds=/^(?:true|false)$/i,fs=/^null$/i,ps=/^undefined$/i,ms=/^[^A-Z]*$/,hs=/^[^a-z]*$/,gs=/^[0-9a-fA-F]*$/,_s=/^[0-9a-fA-F]{32}$/,vs=Eo(22,`==`),ys=Do(22),bs=/^[0-9a-fA-F]{40}$/,xs=Eo(27,`=`),Ss=Do(27),Cs=/^[0-9a-fA-F]{64}$/,ws=Eo(43,`=`),Ts=Do(43),Es=/^[0-9a-fA-F]{96}$/,Ds=Eo(64,``),Os=Do(64),ks=/^[0-9a-fA-F]{128}$/,As=Eo(86,`==`),js=Do(86)}));function Ns(e,t,n){e.issues.length&&t.issues.push(...va(n,e.issues))}var C,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc=t((()=>{Ni(),Ms(),S(),C=h(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ps={number:`number`,bigint:`bigint`,object:`date`},Fs=h(`$ZodCheckLessThan`,(e,t)=>{C.init(e,t);let n=Ps[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Is=h(`$ZodCheckGreaterThan`,(e,t)=>{C.init(e,t);let n=Ps[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ls=h(`$ZodCheckMultipleOf`,(e,t)=>{C.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Gi(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Rs=h(`$ZodCheckNumberFormat`,(e,t)=>{C.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=La[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=ls)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),zs=h(`$ZodCheckBigIntFormat`,(e,t)=>{C.init(e,t);let[n,r]=Ra[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),Bs=h(`$ZodCheckMaxSize`,(e,t)=>{var n;C.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ui(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:xa(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Vs=h(`$ZodCheckMinSize`,(e,t)=>{var n;C.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ui(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:xa(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Hs=h(`$ZodCheckSizeEquals`,(e,t)=>{var n;C.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ui(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:xa(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Us=h(`$ZodCheckMaxLength`,(e,t)=>{var n;C.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ui(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Sa(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ws=h(`$ZodCheckMinLength`,(e,t)=>{var n;C.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ui(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Sa(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Gs=h(`$ZodCheckLengthEquals`,(e,t)=>{var n;C.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ui(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Sa(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Ks=h(`$ZodCheckStringFormat`,(e,t)=>{var n,r;C.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),qs=h(`$ZodCheckRegex`,(e,t)=>{Ks.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Js=h(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=ms,Ks.init(e,t)}),Ys=h(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=hs,Ks.init(e,t)}),Xs=h(`$ZodCheckIncludes`,(e,t)=>{C.init(e,t);let n=aa(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Zs=h(`$ZodCheckStartsWith`,(e,t)=>{C.init(e,t);let n=RegExp(`^${aa(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Qs=h(`$ZodCheckEndsWith`,(e,t)=>{C.init(e,t);let n=RegExp(`.*${aa(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),$s=h(`$ZodCheckProperty`,(e,t)=>{C.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>Ns(n,e,t.property));Ns(n,e,t.property)}}),ec=h(`$ZodCheckMimeType`,(e,t)=>{C.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),tc=h(`$ZodCheckOverwrite`,(e,t)=>{C.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),rc,ic=t((()=>{rc=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
2371
|
+
`);return[{type:`heading`,value:e.path},{type:`paragraph`,value:`${e.status} | +${e.additions} / -${e.deletions}`},{type:`code`,language:`diff`,value:t}]}var _r={id:`diff-view@1`,label:`Diff View`,description:`Static diff summary rendered as per-file diff code blocks.`,inputSchema:{type:`object`,properties:{files:{type:`array`,items:{type:`object`,required:[`path`,`status`,`additions`,`deletions`,`hunks`],properties:{path:{type:`string`},status:{type:`string`},additions:{type:`number`},deletions:{type:`number`},hunks:{type:`array`,items:{type:`object`,required:[`header`,`changes`],properties:{header:{type:`string`},changes:{type:`array`,items:{type:`object`,required:[`type`,`content`],properties:{type:{type:`string`},content:{type:`string`}},additionalProperties:!1}}},additionalProperties:!1}}},additionalProperties:!1}}},required:[`files`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>mr(e).flatMap(gr),hydration:[],supportedTransports:ur},vr=[`mcp-app`,`browser`,`export`];function yr(e){return typeof e==`object`&&!!e}function br(e){return yr(e)&&typeof e.type==`string`}function xr(e){return Array.isArray(e)&&e.every(br)}function Sr(e){if(!yr(e))return{sections:[]};let t=Array.isArray(e.sections)?e.sections.flatMap(e=>{if(!yr(e)||typeof e.heading!=`string`)return[];let t=typeof e.content==`string`||xr(e.content)?e.content:``;return[{heading:e.heading,content:t}]}):[];return{title:typeof e.title==`string`?e.title:void 0,sections:t}}function Cr(e){let t=[{type:`heading`,value:e.heading}];return typeof e.content==`string`?(t.push({type:`paragraph`,value:e.content}),t):(t.push(...e.content),t)}var wr={id:`document@1`,label:`Document`,description:`Structured document with optional title and section content blocks.`,inputSchema:{type:`object`,properties:{title:{type:`string`},sections:{type:`array`,items:{type:`object`,additionalProperties:!1,required:[`heading`,`content`],properties:{heading:{type:`string`},content:{oneOf:[{type:`string`},{type:`array`,items:{type:`object`}}]}}}}},required:[`sections`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t=Sr(e),n=[];t.title&&n.push({type:`heading`,value:t.title});for(let e of t.sections)n.push(...Cr(e));return n},hydration:[],supportedTransports:vr},Tr=[`mcp-app`,`browser`,`export`];function Er(e){return typeof e==`object`&&!!e}function Dr(e){return Er(e)?{code:typeof e.code==`string`?e.code:`ERROR`,message:typeof e.message==`string`?e.message:`Unknown error`,details:typeof e.details==`string`?e.details:void 0,stack:typeof e.stack==`string`?e.stack:void 0}:{code:`ERROR`,message:`Unknown error`}}var Or={id:`error@1`,label:`Error`,description:`Static error view with message and optional stack trace.`,inputSchema:{type:`object`,properties:{code:{type:`string`},message:{type:`string`},details:{type:`string`},stack:{type:`string`}},required:[`code`,`message`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t=Dr(e),n=[{type:`heading`,value:`Error`},{type:`code`,title:t.code,language:`text`,value:t.details?`${t.message}\n\n${t.details}`:t.message}];return t.stack&&n.push({type:`code`,title:`Stack Trace`,language:`text`,value:t.stack}),n},hydration:[],supportedTransports:Tr};function kr(e){return typeof e==`object`&&!!e}function Ar(e){return Array.isArray(e)?e.flatMap(e=>!kr(e)||typeof e.name!=`string`||typeof e.label!=`string`?[]:[{name:e.name,label:e.label,type:typeof e.type==`string`?e.type:void 0,required:typeof e.required==`boolean`?e.required:void 0,placeholder:typeof e.placeholder==`string`?e.placeholder:void 0,default:typeof e.default==`string`?e.default:void 0,options:Array.isArray(e.options)?e.options.filter(e=>typeof e==`string`||kr(e)&&typeof e.label==`string`&&typeof e.value==`string`):void 0,value:typeof e.value==`string`||typeof e.value==`boolean`?e.value:void 0}]):[]}var jr={id:`form@1`,label:`Form`,description:`Browser-only form template rendered as a heading and table of field metadata.`,inputSchema:{type:`object`,properties:{title:{type:`string`},fields:{type:`array`,items:{type:`object`,required:[`name`,`label`],properties:{name:{type:`string`},label:{type:`string`},type:{type:`string`},required:{type:`boolean`},placeholder:{type:`string`},default:{type:`string`},options:{type:`array`,items:{anyOf:[{type:`string`},{type:`object`,required:[`label`,`value`],properties:{label:{type:`string`},value:{type:`string`}},additionalProperties:!1}]}},value:{type:[`string`,`boolean`]}},additionalProperties:!1}}},required:[`fields`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t={title:kr(e)&&typeof e.title==`string`?e.title:`Form`,fields:kr(e)?Ar(e.fields):[]};return[{type:`heading`,value:t.title},{type:`table`,value:{headers:[`Label`,`Name`,`Type`,`Required`,`Default/Placeholder`],rows:t.fields.map(e=>[e.label||e.name,e.name,e.type||`text`,e.required?`Yes`:`No`,e.placeholder||e.default||``])}}]},hydration:[`form`],supportedTransports:[`browser`]},Mr=[`mcp-app`,`browser`];function Nr(e){return typeof e==`object`&&!!e}function Pr(e){if(!Array.isArray(e))return;let t=e.flatMap(e=>!Nr(e)||typeof e.id!=`string`||typeof e.label!=`string`?[]:[{id:e.id,label:e.label}]);return t.length>0?t:void 0}function Fr(e){return Array.isArray(e)?e.flatMap(e=>!Nr(e)||typeof e.id!=`string`||typeof e.label!=`string`?[]:[{id:e.id,label:e.label,category:typeof e.category==`string`?e.category:void 0,tags:Array.isArray(e.tags)?e.tags.filter(e=>typeof e==`string`):void 0}]):[]}function Ir(e){return Nr(e)?{categories:Pr(e.categories),items:Fr(e.items)}:{items:[]}}function Lr(e){return{title:e.label,body:e.id,description:e.tags&&e.tags.length>0?e.tags.join(`, `):void 0}}function Rr(e,t){return t.length===0?[]:[{type:`heading`,value:e},{type:`cards`,value:t.map(Lr)}]}var zr={id:`picker@1`,label:`Picker`,description:`Grouped item picker rendered as cards with picker hydration metadata.`,inputSchema:{type:`object`,properties:{categories:{type:`array`,items:{type:`object`,required:[`id`,`label`],properties:{id:{type:`string`},label:{type:`string`}},additionalProperties:!1}},items:{type:`array`,items:{type:`object`,required:[`id`,`label`],properties:{id:{type:`string`},label:{type:`string`},category:{type:`string`},tags:{type:`array`,items:{type:`string`}}},additionalProperties:!1}}},required:[`items`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t=Ir(e),n=[];if(t.categories&&t.categories.length>0){let e=new Set(t.categories.map(e=>e.id)),r=[];for(let e of t.categories){let n=Rr(e.label,t.items.filter(t=>t.category===e.id));n.length>0&&r.push(n)}let i=Rr(`Other`,t.items.filter(t=>!t.category||!e.has(t.category)));return i.length>0&&r.push(i),n.push(...r.flatMap((e,t)=>t>0?[{type:`separator`},...e]:e)),n}return t.items.length>0&&n.push({type:`cards`,value:t.items.map(Lr)}),n},hydration:[`picker`],supportedTransports:Mr},Br=[`mcp-app`,`browser`,`export`];function Vr(e){return typeof e==`object`&&!!e}function Hr(e){return Vr(e)&&typeof e.type==`string`}function Ur(e){return Array.isArray(e)&&e.every(Hr)}function Wr(e){return Vr(e)&&typeof e.label==`string`&&(typeof e.value==`string`||typeof e.value==`number`)}function Gr(e){return Array.isArray(e)?e.flatMap(e=>{if(!Vr(e)||typeof e.heading!=`string`)return[];let t=typeof e.content==`string`||Ur(e.content)?e.content:``;return[{heading:e.heading,content:t}]}):[]}function Kr(e){return Array.isArray(e)?e.flatMap(e=>Vr(e)?[{title:typeof e.title==`string`?e.title:void 0,value:e.value,headers:Array.isArray(e.headers)?e.headers.filter(e=>typeof e==`string`):void 0,rows:Array.isArray(e.rows)?e.rows.filter(e=>Array.isArray(e)):void 0}]:[]):[]}function qr(e){let t=[{type:`heading`,value:e.heading}];return typeof e.content==`string`?(t.push({type:`paragraph`,value:e.content}),t):(t.push(...e.content),t)}function Jr(e){let t={type:`table`};return e.title&&(t.title=e.title),e.value!==void 0&&(t.value=e.value),e.headers&&(t.headers=e.headers),e.rows&&(t.rows=e.rows),t}var Yr={id:`report@1`,label:`Report`,description:`Static report with title, optional metrics, narrative sections, and tables.`,inputSchema:{type:`object`,properties:{title:{type:`string`},metrics:{type:`array`,items:{type:`object`,required:[`label`,`value`],properties:{label:{type:`string`},value:{type:[`string`,`number`]},trend:{type:[`string`,`number`]},status:{type:`string`}},additionalProperties:!1}},sections:{type:`array`,items:{type:`object`,required:[`heading`,`content`],properties:{heading:{type:`string`},content:{oneOf:[{type:`string`},{type:`array`,items:{type:`object`}}]}},additionalProperties:!1}},tables:{type:`array`,items:{type:`object`,properties:{title:{type:`string`},value:{},headers:{type:`array`,items:{type:`string`}},rows:{type:`array`,items:{type:`array`,items:{}}}},additionalProperties:!1}}},required:[`title`,`sections`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t={title:Vr(e)&&typeof e.title==`string`?e.title:`Report`,metrics:Vr(e)&&Array.isArray(e.metrics)?e.metrics.filter(Wr):void 0,sections:Vr(e)?Gr(e.sections):[],tables:Vr(e)?Kr(e.tables):void 0},n=[{type:`heading`,value:t.title}];t.metrics&&t.metrics.length>0&&n.push({type:`metrics`,value:t.metrics});for(let e of t.sections)n.push(...qr(e));for(let e of t.tables??[])n.push(Jr(e));return n},hydration:[],supportedTransports:Br},Xr=[`mcp-app`,`browser`];function Zr(e){return typeof e==`object`&&!!e}function Qr(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function $r(e){return Array.isArray(e)?e.flatMap(e=>{if(!Zr(e)||typeof e.id!=`string`||typeof e.body!=`string`)return[];let t=e.type;if(t!==`COMMENT`&&t!==`DELETION`&&t!==`GLOBAL_COMMENT`)return[];let n=Zr(e.anchor)?e.anchor:{};return[{id:e.id,type:t,body:e.body,anchor:{blockId:n.blockId},author:typeof e.author==`string`?e.author:void 0,createdAt:typeof e.createdAt==`string`?e.createdAt:void 0}]}):[]}function ei(e){return Array.isArray(e)?e.flatMap(e=>{if(!Zr(e)||typeof e.id!=`string`||typeof e.label!=`string`)return[];let t=e.outcome;return t!==`approved`&&t!==`rejected`&&t!==`changes-requested`&&t!==`deferred`?[]:[{id:e.id,label:e.label,outcome:t,description:typeof e.description==`string`?e.description:void 0}]}):[]}var ti={id:`review@1`,label:`Review`,description:`Review surface with criteria checklist, annotation items, and approval controls.`,inputSchema:{type:`object`,properties:{title:{type:`string`},criteria:{type:`array`,items:{type:`string`}},annotations:{type:`array`,items:{type:`object`,required:[`id`,`body`,`type`,`anchor`],properties:{id:{type:`string`},type:{type:`string`,enum:[`COMMENT`,`DELETION`,`GLOBAL_COMMENT`]},body:{type:`string`},anchor:{type:`object`,properties:{blockId:{type:`string`},contextHash:{type:`string`}}},author:{type:`string`},createdAt:{type:`string`}},additionalProperties:!1}},approval:{type:`object`,properties:{prompt:{type:`string`},options:{type:`array`,items:{type:`object`,required:[`id`,`label`,`outcome`],properties:{id:{type:`string`},label:{type:`string`},outcome:{type:`string`,enum:[`approved`,`rejected`,`changes-requested`,`deferred`]},description:{type:`string`}},additionalProperties:!1}},requireComment:{type:`boolean`}},required:[`prompt`,`options`]},comment:{type:`string`}},required:[`title`,`criteria`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t=[];if(!Zr(e))return t;let n=typeof e.title==`string`?e.title:`Review`;t.push({type:`heading`,value:n});let r=Qr(e.criteria);r.length>0&&t.push({type:`checklist`,value:r.map(e=>({label:e,checked:!1}))});let i=$r(e.annotations);i.length>0&&t.push({type:`annotation`,value:i});let a=e.approval;if(Zr(a)){let e=ei(a.options);e.length>0&&t.push({type:`approval`,value:{prompt:typeof a.prompt==`string`?a.prompt:``,options:e,requireComment:typeof a.requireComment==`boolean`?a.requireComment:!1}})}let o=typeof e.comment==`string`?e.comment:void 0;return o&&t.push({type:`markdown`,value:o}),t},hydration:[`checklist`],supportedTransports:Xr},ni=[`mcp-app`,`browser`,`export`];function ri(e){return typeof e==`object`&&!!e}function ii(e){return Array.isArray(e)?e.flatMap(e=>{if(!ri(e)||typeof e.category!=`string`||!Array.isArray(e.items))return[];let t=e.items.flatMap(e=>!ri(e)||typeof e.label!=`string`||typeof e.status!=`string`?[]:[{label:e.label,status:e.status,badge:typeof e.badge==`string`?e.badge:void 0}]);return[{category:e.category,items:t}]}):[]}function ai(e){return e.map(e=>({title:e.label,status:e.status,badge:e.badge}))}var oi={id:`status-board@1`,label:`Status Board`,description:`Static status board grouped into category headings and card collections.`,inputSchema:{type:`object`,properties:{categories:{type:`array`,items:{type:`object`,required:[`category`,`items`],properties:{category:{type:`string`},items:{type:`array`,items:{type:`object`,required:[`label`,`status`],properties:{label:{type:`string`},status:{type:`string`},badge:{type:`string`}},additionalProperties:!1}}},additionalProperties:!1}}},required:[`categories`],additionalProperties:!1},defaultLayout:{},blocksFromData:e=>{let t=ri(e)?ii(e.categories):[],n=[];for(let e of t)n.push({type:`heading`,value:e.category}),n.push({type:`cards`,value:ai(e.items)});return n},hydration:[],supportedTransports:ni},si=[`mcp-app`,`browser`,`export`];function ci(e){return typeof e==`object`&&!!e}function li(e){return Array.isArray(e)?e.flatMap(e=>!ci(e)||typeof e.title!=`string`?[]:[{title:e.title,description:typeof e.description==`string`?e.description:void 0,timestamp:typeof e.timestamp==`string`?e.timestamp:void 0,status:typeof e.status==`string`?e.status:void 0}]):[]}function ui(e){return Array.isArray(e)?{entries:li(e)}:ci(e)?{entries:li(e.entries??e.events??e.items),title:typeof e.title==`string`?e.title:void 0}:{entries:[]}}var di={type:`array`,items:{type:`object`,required:[`title`],properties:{title:{type:`string`},description:{type:`string`},timestamp:{type:`string`},status:{type:`string`}},additionalProperties:!1}},fi={id:`timeline@1`,label:`Timeline`,description:`Static timeline events rendered as a timeline block.`,inputSchema:{oneOf:[di,{type:`object`,properties:{title:{type:`string`},entries:di,events:di,items:di},anyOf:[{required:[`entries`]},{required:[`events`]},{required:[`items`]}],additionalProperties:!1}]},defaultLayout:{},blocksFromData:e=>{let{entries:t,title:n}=ui(e),r=[];return n&&r.push({type:`heading`,value:n}),r.push({type:`timeline`,value:t}),r},hydration:[],supportedTransports:si},pi=[`mcp-app`,`browser`,`export`];function mi(e){return typeof e==`object`&&!!e}function hi(e){return mi(e)&&typeof e.label==`string`}function gi(e){return{name:e.label,children:Array.isArray(e.children)?e.children.filter(hi).map(gi):[]}}function _i(e){if(!mi(e))return{};let t=e.root;return hi(t)?gi(t):mi(t)?t:e}var vi={id:`tree@1`,label:`Tree`,description:`Static tree view data with optional tree hydration metadata.`,inputSchema:{oneOf:[{type:`object`,properties:{root:{type:`object`}},required:[`root`],additionalProperties:!0},{type:`object`,additionalProperties:!0}]},defaultLayout:{},blocksFromData:e=>[{type:`tree`,value:_i(e)}],hydration:[`tree`],supportedTransports:pi},h=new Qn;h.register(ti),h.register(nr),h.register(_r),h.register(wr),h.register(zr),h.register(Yr),h.register(fi),h.register(vi),h.register(lr),h.register(Or),h.register(jr),h.register(oi);var yi=0;function bi(){return yi=(yi+1)%(2**53-1),`${Date.now().toString(16).padStart(12,`0`).slice(-12)}${yi.toString(16).padStart(4,`0`).slice(-4)}${Array.from({length:8},()=>Math.floor(Math.random()*256).toString(16).padStart(2,`0`)).join(``)}`}function xi(e){return{id:e,version:1,entry:`@aikit/blocks-interactive/dist/islands/${e}.mjs`,selector:`[data-island="${e}"]`,needsData:!0}}function Si(e,t){let n=new TextEncoder;return n.encode(e).byteLength+t.reduce((e,t)=>e+n.encode(t).byteLength,0)}function Ci(e,t){let n=[],r=t.registry??h,i={colorScheme:e.colorScheme??t.colorScheme??`auto`,transport:t.transport,lang:e.lang,dir:e.dir},a=[...e.blocks??[]],o=[...a],s=[],c=[...e.actions??[]];if(e.template){let t=r.get(e.template);if(t)try{o=t.blocksFromData(e.data,i),o.length===0&&e.data!==void 0&&(n.push({level:`warn`,message:`Template "${e.template}" produced no blocks from provided data`}),o=[{type:`markdown`,value:`> ⚠️ Template \`${e.template}\` received data but produced no content. Verify the data structure matches the template schema.`}]),t.actionsFromData&&(c=[...c,...t.actionsFromData(e.data)]),s=t.hydration.map(e=>xi(e))}catch(t){let r=t instanceof Error?t.message:String(t);n.push({level:`error`,message:`Template ${e.template} failed: ${r}`}),o=a.length===0?Or.blocksFromData({code:`TEMPLATE_RENDER_ERROR`,message:`Failed to render template ${e.template}`,details:r},i):[...a]}else n.push({level:`warn`,message:`Template not found: ${e.template}`})}let l=Xn(o,i),u=[Bn(o.map(e=>e.type))],d=t.nonce??bi(),f=e.metadata?.surfaceId??`surface-${d}`,ee=s.length>0?JSON.stringify({data:e.data,blocks:o}):void 0,te=t.blockVendorScripts?[...new Set(o.flatMap(e=>t.blockVendorScripts?.[e.type]??[]))]:void 0;return{surfaceId:f,nonce:d,html:l,css:u,vendorScripts:te&&te.length>0?te:void 0,islands:s,actions:c,payload:ee,estimatedBytes:Si(l,u),exportPolicy:s.length>0?`local-interactive`:`static-only`,diagnostics:n.length>0?n:void 0}}var wi={blockedClipboardMessage:`Image clipboard is blocked by this host or browser. Open in a browser that allows clipboard-write, then try again.`,clipboardSuccessMessage:`Copied image to clipboard.`,fallbackToServerCaptureMessage:`Client Copy as Image capture failed`};function Ti(){return wi}function g(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function _(e){return e&&Object.assign(ji,e),ji}var Ei,Di,Oi,ki,Ai,ji,Mi=t((()=>{Di=Object.freeze({status:`aborted`}),Oi=Symbol(`zod_brand`),ki=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Ai=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(Ei=globalThis).__zod_globalConfig??(Ei.__zod_globalConfig={}),ji=globalThis.__zod_globalConfig})),Ni=n({BIGINT_FORMAT_RANGES:()=>La,Class:()=>Ra,NUMBER_FORMAT_RANGES:()=>Ia,aborted:()=>ha,allowsEval:()=>Ma,assert:()=>Ri,assertEqual:()=>Pi,assertIs:()=>Ii,assertNever:()=>Li,assertNotEqual:()=>Fi,assignProp:()=>Ki,base64ToUint8Array:()=>wa,base64urlToUint8Array:()=>Ea,cached:()=>Vi,captureStackTrace:()=>ja,cleanEnum:()=>Ca,cleanRegex:()=>Ui,clone:()=>aa,cloneDef:()=>Ji,createTransparentProxy:()=>oa,defineLazy:()=>y,esc:()=>Qi,escapeRegex:()=>ia,explicitlyAborted:()=>ga,extend:()=>ua,finalizeIssue:()=>ya,floatSafeRemainder:()=>Wi,getElementAtPath:()=>Yi,getEnumValues:()=>zi,getLengthableOrigin:()=>xa,getParsedType:()=>Na,getSizableOrigin:()=>ba,hexToUint8Array:()=>Oa,isObject:()=>ea,isPlainObject:()=>ta,issue:()=>Sa,joinValues:()=>v,jsonStringifyReplacer:()=>Bi,merge:()=>fa,mergeDefs:()=>qi,normalizeParams:()=>b,nullish:()=>Hi,numKeys:()=>ra,objectClone:()=>Gi,omit:()=>la,optionalKeys:()=>sa,parsedType:()=>S,partial:()=>pa,pick:()=>ca,prefixIssues:()=>_a,primitiveTypes:()=>Fa,promiseAllObject:()=>Xi,propertyKeyTypes:()=>Pa,randomString:()=>Zi,required:()=>ma,safeExtend:()=>da,shallowClone:()=>na,slugify:()=>$i,stringifyPrimitive:()=>x,uint8ArrayToBase64:()=>Ta,uint8ArrayToBase64url:()=>Da,uint8ArrayToHex:()=>ka,unwrapMessage:()=>va});function Pi(e){return e}function Fi(e){return e}function Ii(e){}function Li(e){throw Error(`Unexpected value in exhaustive check`)}function Ri(e){}function zi(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function v(e,t=`|`){return e.map(e=>x(e)).join(t)}function Bi(e,t){return typeof t==`bigint`?t.toString():t}function Vi(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function Hi(e){return e==null}function Ui(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Wi(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function y(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Aa)return r===void 0&&(r=Aa,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Gi(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ki(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function qi(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function Ji(e){return qi(e._zod.def)}function Yi(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function Xi(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function Zi(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function Qi(e){return JSON.stringify(e)}function $i(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function ea(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ta(e){if(ea(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ea(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function na(e){return ta(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function ra(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function ia(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function aa(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function b(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function oa(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function x(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function sa(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function ca(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return aa(e,qi(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Ki(this,`shape`,e),e},checks:[]}))}function la(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return aa(e,qi(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Ki(this,`shape`,r),r},checks:[]}))}function ua(e,t){if(!ta(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return aa(e,qi(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Ki(this,`shape`,n),n}}))}function da(e,t){if(!ta(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return aa(e,qi(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Ki(this,`shape`,n),n}}))}function fa(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return aa(e,qi(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Ki(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function pa(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return aa(t,qi(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Ki(this,`shape`,i),i},checks:[]}))}function ma(e,t,n){return aa(t,qi(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Ki(this,`shape`,i),i}}))}function ha(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ga(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function _a(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function va(e){return typeof e==`string`?e:e?.message}function ya(e,t,n){let r=e.message?e.message:va(e.inst?._zod.def?.error?.(e))??va(t?.error?.(e))??va(n.customError?.(e))??va(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function ba(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function xa(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function S(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Sa(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Ca(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function wa(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Ta(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Ea(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return wa(t+`=`.repeat((4-t.length%4)%4))}function Da(e){return Ta(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function Oa(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function ka(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,C=t((()=>{Mi(),Aa=Symbol(`evaluating`),ja=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Ma=Vi(()=>{if(ji.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Na=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Pa=new Set([`string`,`number`,`symbol`]),Fa=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),Ia={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},La={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},Ra=class{constructor(...e){}}}));function za(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Ba(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}function Va(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??={},(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??=[],(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function Ha(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function Ua(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${Ha(e.path)}`);return t.join(`
|
|
2372
|
+
`)}var Wa,Ga,Ka,qa=t((()=>{Mi(),C(),Wa=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Bi,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ga=g(`$ZodError`,Wa),Ka=g(`$ZodError`,Wa,{Parent:Error})})),Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo=t((()=>{Mi(),qa(),C(),Ja=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new ki;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>ya(e,a,_())));throw ja(t,i?.callee),t}return o.value},Ya=Ja(Ka),Xa=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>ya(e,a,_())));throw ja(t,i?.callee),t}return o.value},Za=Xa(Ka),Qa=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ki;return a.issues.length?{success:!1,error:new(e??Ga)(a.issues.map(e=>ya(e,i,_())))}:{success:!0,data:a.value}},$a=Qa(Ka),eo=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>ya(e,i,_())))}:{success:!0,data:a.value}},to=eo(Ka),no=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Ja(e)(t,n,i)},ro=no(Ka),io=e=>(t,n,r)=>Ja(e)(t,n,r),ao=io(Ka),oo=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Xa(e)(t,n,i)},so=oo(Ka),co=e=>async(t,n,r)=>Xa(e)(t,n,r),lo=co(Ka),uo=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Qa(e)(t,n,i)},fo=uo(Ka),po=e=>(t,n,r)=>Qa(e)(t,n,r),mo=po(Ka),ho=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return eo(e)(t,n,i)},go=ho(Ka),_o=e=>async(t,n,r)=>eo(e)(t,n,r),vo=_o(Ka)})),bo=n({base64:()=>Qo,base64url:()=>$o,bigint:()=>ss,boolean:()=>us,browserEmail:()=>Go,cidrv4:()=>Xo,cidrv6:()=>Zo,cuid:()=>Do,cuid2:()=>Oo,date:()=>as,datetime:()=>wo,domain:()=>ts,duration:()=>No,e164:()=>rs,email:()=>Bo,emoji:()=>xo,extendedDuration:()=>Po,guid:()=>Fo,hex:()=>hs,hostname:()=>es,html5Email:()=>Vo,httpProtocol:()=>ns,idnEmail:()=>Wo,integer:()=>cs,ipv4:()=>qo,ipv6:()=>Jo,ksuid:()=>jo,lowercase:()=>ps,mac:()=>Yo,md5_base64:()=>_s,md5_base64url:()=>vs,md5_hex:()=>gs,nanoid:()=>Mo,null:()=>ds,number:()=>ls,rfc5322Email:()=>Ho,sha1_base64:()=>bs,sha1_base64url:()=>xs,sha1_hex:()=>ys,sha256_base64:()=>Cs,sha256_base64url:()=>ws,sha256_hex:()=>Ss,sha384_base64:()=>Es,sha384_base64url:()=>Ds,sha384_hex:()=>Ts,sha512_base64:()=>ks,sha512_base64url:()=>As,sha512_hex:()=>Os,string:()=>os,time:()=>Co,ulid:()=>ko,undefined:()=>fs,unicodeEmail:()=>Uo,uppercase:()=>ms,uuid:()=>Io,uuid4:()=>Lo,uuid6:()=>Ro,uuid7:()=>zo,xid:()=>Ao});function xo(){return new RegExp(Ko,`u`)}function So(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Co(e){return RegExp(`^${So(e)}$`)}function wo(e){let t=So({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${is}T(?:${r})$`)}function To(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Eo(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js=t((()=>{C(),Do=/^[cC][0-9a-z]{6,}$/,Oo=/^[0-9a-z]+$/,ko=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ao=/^[0-9a-vA-V]{20}$/,jo=/^[A-Za-z0-9]{27}$/,Mo=/^[a-zA-Z0-9_-]{21}$/,No=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Po=/^[-+]?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)?)??$/,Fo=/^([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})$/,Io=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Lo=Io(4),Ro=Io(6),zo=Io(7),Bo=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Vo=/^[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])?)*$/,Ho=/^(([^<>()\[\]\\.,;:\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,}))$/,Uo=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Wo=Uo,Go=/^[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])?)*$/,Ko=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,qo=/^(?:(?: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])$/,Jo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Yo=e=>{let t=ia(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Xo=/^((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])$/,Zo=/^(([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])$/,Qo=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,$o=/^[A-Za-z0-9_-]*$/,es=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ts=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ns=/^https?$/,rs=/^\+[1-9]\d{6,14}$/,is=`(?:(?:\\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])))`,as=RegExp(`^${is}$`),os=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},ss=/^-?\d+n?$/,cs=/^-?\d+$/,ls=/^-?\d+(?:\.\d+)?$/,us=/^(?:true|false)$/i,ds=/^null$/i,fs=/^undefined$/i,ps=/^[^A-Z]*$/,ms=/^[^a-z]*$/,hs=/^[0-9a-fA-F]*$/,gs=/^[0-9a-fA-F]{32}$/,_s=To(22,`==`),vs=Eo(22),ys=/^[0-9a-fA-F]{40}$/,bs=To(27,`=`),xs=Eo(27),Ss=/^[0-9a-fA-F]{64}$/,Cs=To(43,`=`),ws=Eo(43),Ts=/^[0-9a-fA-F]{96}$/,Es=To(64,``),Ds=Eo(64),Os=/^[0-9a-fA-F]{128}$/,ks=To(86,`==`),As=Eo(86)}));function Ms(e,t,n){e.issues.length&&t.issues.push(..._a(n,e.issues))}var w,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc=t((()=>{Mi(),js(),C(),w=g(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ns={number:`number`,bigint:`bigint`,object:`date`},Ps=g(`$ZodCheckLessThan`,(e,t)=>{w.init(e,t);let n=Ns[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Fs=g(`$ZodCheckGreaterThan`,(e,t)=>{w.init(e,t);let n=Ns[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Is=g(`$ZodCheckMultipleOf`,(e,t)=>{w.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Wi(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ls=g(`$ZodCheckNumberFormat`,(e,t)=>{w.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Ia[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=cs)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Rs=g(`$ZodCheckBigIntFormat`,(e,t)=>{w.init(e,t);let[n,r]=La[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),zs=g(`$ZodCheckMaxSize`,(e,t)=>{var n;w.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Hi(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:ba(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Bs=g(`$ZodCheckMinSize`,(e,t)=>{var n;w.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Hi(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:ba(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Vs=g(`$ZodCheckSizeEquals`,(e,t)=>{var n;w.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Hi(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:ba(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Hs=g(`$ZodCheckMaxLength`,(e,t)=>{var n;w.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Hi(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=xa(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Us=g(`$ZodCheckMinLength`,(e,t)=>{var n;w.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Hi(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=xa(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ws=g(`$ZodCheckLengthEquals`,(e,t)=>{var n;w.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Hi(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=xa(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Gs=g(`$ZodCheckStringFormat`,(e,t)=>{var n,r;w.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Ks=g(`$ZodCheckRegex`,(e,t)=>{Gs.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),qs=g(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=ps,Gs.init(e,t)}),Js=g(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=ms,Gs.init(e,t)}),Ys=g(`$ZodCheckIncludes`,(e,t)=>{w.init(e,t);let n=ia(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Xs=g(`$ZodCheckStartsWith`,(e,t)=>{w.init(e,t);let n=RegExp(`^${ia(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Zs=g(`$ZodCheckEndsWith`,(e,t)=>{w.init(e,t);let n=RegExp(`.*${ia(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Qs=g(`$ZodCheckProperty`,(e,t)=>{w.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>Ms(n,e,t.property));Ms(n,e,t.property)}}),$s=g(`$ZodCheckMimeType`,(e,t)=>{w.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),ec=g(`$ZodCheckOverwrite`,(e,t)=>{w.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),nc,rc=t((()=>{nc=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
2202
2373
|
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
2203
|
-
`))}}})),ac,oc=t((()=>{ac={major:4,minor:4,patch:3}}));function sc(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function cc(e){if(!es.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return sc(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function lc(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function uc(e,t,n){e.issues.length&&t.issues.push(...va(n,e.issues)),t.value[n]=e.value}function dc(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...va(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function fc(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=ca(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function pc(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>dc(e,n,i,t,u,d))):dc(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function mc(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!ga(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>ba(e,r,g())))}),t)}function hc(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>ba(e,r,g())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function gc(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(na(e)&&na(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=gc(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=gc(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function _c(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),ga(e))return e;let o=gc(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function vc(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function yc(e,t,n){e.issues.length&&t.issues.push(...va(n,e.issues)),t.value[n]=e.value}function bc(e,t,n,r,i){for(let a=0;a<n.length;a++){let n=e[a],o=a<r.length;if(n.issues.length){if(!o&&a>=i){t.value.length=a;break}t.issues.push(...va(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function xc(e,t,n,r,i,a,o){e.issues.length&&(Fa.has(typeof r)?n.issues.push(...va(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>ba(e,o,g()))})),t.issues.length&&(Fa.has(typeof r)?n.issues.push(...va(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>ba(e,o,g()))})),n.value.set(e.value,t.value)}function Sc(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function Cc(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function wc(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function Tc(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Ec(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function Dc(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>Oc(e,r,t.out,n)):Oc(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>Oc(e,r,t.in,n)):Oc(e,r,t.in,n)}}function Oc(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function kc(e){return e.value=Object.freeze(e.value),e}function Ac(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ca(e))}}var w,jc,T,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl=t((()=>{nc(),Ni(),ic(),bo(),Ms(),S(),oc(),w=h(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ac;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=ga(e),i;for(let a of t){if(a._zod.def.when){if(_a(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new Ai;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=ga(e,t))});else{if(e.issues.length===t)continue;r||=ga(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(ga(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new Ai;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new Ai;return o.then(e=>t(e,r,a))}return t(o,r,a)}}v(e,`~standard`,()=>({validate:t=>{try{let n=eo(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return no(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),jc=h(`$ZodString`,(e,t)=>{w.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ss(e._zod.bag),e._zod.parse=(n,r)=>{if(t.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:e}),n}}),T=h(`$ZodStringFormat`,(e,t)=>{Ks.init(e,t),jc.init(e,t)}),Mc=h(`$ZodGUID`,(e,t)=>{t.pattern??=Io,T.init(e,t)}),Nc=h(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Lo(e)}else t.pattern??=Lo();T.init(e,t)}),Pc=h(`$ZodEmail`,(e,t)=>{t.pattern??=Vo,T.init(e,t)}),Fc=h(`$ZodURL`,(e,t)=>{T.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===rs.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Ic=h(`$ZodEmoji`,(e,t)=>{t.pattern??=So(),T.init(e,t)}),Lc=h(`$ZodNanoID`,(e,t)=>{t.pattern??=No,T.init(e,t)}),Rc=h(`$ZodCUID`,(e,t)=>{t.pattern??=Oo,T.init(e,t)}),zc=h(`$ZodCUID2`,(e,t)=>{t.pattern??=ko,T.init(e,t)}),Bc=h(`$ZodULID`,(e,t)=>{t.pattern??=Ao,T.init(e,t)}),Vc=h(`$ZodXID`,(e,t)=>{t.pattern??=jo,T.init(e,t)}),Hc=h(`$ZodKSUID`,(e,t)=>{t.pattern??=Mo,T.init(e,t)}),Uc=h(`$ZodISODateTime`,(e,t)=>{t.pattern??=To(t),T.init(e,t)}),Wc=h(`$ZodISODate`,(e,t)=>{t.pattern??=os,T.init(e,t)}),Gc=h(`$ZodISOTime`,(e,t)=>{t.pattern??=wo(t),T.init(e,t)}),Kc=h(`$ZodISODuration`,(e,t)=>{t.pattern??=Po,T.init(e,t)}),qc=h(`$ZodIPv4`,(e,t)=>{t.pattern??=Jo,T.init(e,t),e._zod.bag.format=`ipv4`}),Jc=h(`$ZodIPv6`,(e,t)=>{t.pattern??=Yo,T.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Yc=h(`$ZodMAC`,(e,t)=>{t.pattern??=Xo(t.delimiter),T.init(e,t),e._zod.bag.format=`mac`}),Xc=h(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Zo,T.init(e,t)}),Zc=h(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Qo,T.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),Qc=h(`$ZodBase64`,(e,t)=>{t.pattern??=$o,T.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{sc(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),$c=h(`$ZodBase64URL`,(e,t)=>{t.pattern??=es,T.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{cc(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),el=h(`$ZodE164`,(e,t)=>{t.pattern??=is,T.init(e,t)}),tl=h(`$ZodJWT`,(e,t)=>{T.init(e,t),e._zod.check=n=>{lc(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),nl=h(`$ZodCustomStringFormat`,(e,t)=>{T.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),rl=h(`$ZodNumber`,(e,t)=>{w.init(e,t),e._zod.pattern=e._zod.bag.pattern??us,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),il=h(`$ZodNumberFormat`,(e,t)=>{Rs.init(e,t),rl.init(e,t)}),al=h(`$ZodBoolean`,(e,t)=>{w.init(e,t),e._zod.pattern=ds,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),ol=h(`$ZodBigInt`,(e,t)=>{w.init(e,t),e._zod.pattern=cs,e._zod.parse=(n,r)=>{if(t.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:e}),n}}),sl=h(`$ZodBigIntFormat`,(e,t)=>{zs.init(e,t),ol.init(e,t)}),cl=h(`$ZodSymbol`,(e,t)=>{w.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),ll=h(`$ZodUndefined`,(e,t)=>{w.init(e,t),e._zod.pattern=ps,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),ul=h(`$ZodNull`,(e,t)=>{w.init(e,t),e._zod.pattern=fs,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),dl=h(`$ZodAny`,(e,t)=>{w.init(e,t),e._zod.parse=e=>e}),fl=h(`$ZodUnknown`,(e,t)=>{w.init(e,t),e._zod.parse=e=>e}),pl=h(`$ZodNever`,(e,t)=>{w.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),ml=h(`$ZodVoid`,(e,t)=>{w.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),hl=h(`$ZodDate`,(e,t)=>{w.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),gl=h(`$ZodArray`,(e,t)=>{w.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>uc(t,n,e))):uc(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),_l=h(`$ZodObject`,(e,t)=>{if(w.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=Hi(()=>fc(t));v(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ta,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>dc(n,t,e,s,r,i))):dc(a,t,e,s,r,i)}return i?pc(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),vl=h(`$ZodObjectJIT`,(e,t)=>{_l.init(e,t);let n=e._zod.parse,r=Hi(()=>fc(t)),i=e=>{let t=new rc([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=$i(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=$i(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
|
|
2374
|
+
`))}}})),ic,ac=t((()=>{ic={major:4,minor:4,patch:3}}));function oc(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function sc(e){if(!$o.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return oc(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function cc(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function lc(e,t,n){e.issues.length&&t.issues.push(..._a(n,e.issues)),t.value[n]=e.value}function uc(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(..._a(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function dc(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=sa(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function fc(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>uc(e,n,i,t,u,d))):uc(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function pc(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!ha(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>ya(e,r,_())))}),t)}function mc(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>ya(e,r,_())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function hc(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ta(e)&&ta(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=hc(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=hc(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function gc(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),ha(e))return e;let o=hc(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function _c(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function vc(e,t,n){e.issues.length&&t.issues.push(..._a(n,e.issues)),t.value[n]=e.value}function yc(e,t,n,r,i){for(let a=0;a<n.length;a++){let n=e[a],o=a<r.length;if(n.issues.length){if(!o&&a>=i){t.value.length=a;break}t.issues.push(..._a(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function bc(e,t,n,r,i,a,o){e.issues.length&&(Pa.has(typeof r)?n.issues.push(..._a(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>ya(e,o,_()))})),t.issues.length&&(Pa.has(typeof r)?n.issues.push(..._a(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>ya(e,o,_()))})),n.value.set(e.value,t.value)}function xc(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function Sc(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function Cc(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function wc(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Tc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function Ec(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>Dc(e,r,t.out,n)):Dc(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>Dc(e,r,t.in,n)):Dc(e,r,t.in,n)}}function Dc(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function Oc(e){return e.value=Object.freeze(e.value),e}function kc(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Sa(e))}}var T,Ac,E,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl=t((()=>{tc(),Mi(),rc(),yo(),js(),C(),ac(),T=g(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ic;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=ha(e),i;for(let a of t){if(a._zod.def.when){if(ga(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new ki;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=ha(e,t))});else{if(e.issues.length===t)continue;r||=ha(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(ha(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new ki;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new ki;return o.then(e=>t(e,r,a))}return t(o,r,a)}}y(e,`~standard`,()=>({validate:t=>{try{let n=$a(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return to(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Ac=g(`$ZodString`,(e,t)=>{T.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??os(e._zod.bag),e._zod.parse=(n,r)=>{if(t.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:e}),n}}),E=g(`$ZodStringFormat`,(e,t)=>{Gs.init(e,t),Ac.init(e,t)}),jc=g(`$ZodGUID`,(e,t)=>{t.pattern??=Fo,E.init(e,t)}),Mc=g(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Io(e)}else t.pattern??=Io();E.init(e,t)}),Nc=g(`$ZodEmail`,(e,t)=>{t.pattern??=Bo,E.init(e,t)}),Pc=g(`$ZodURL`,(e,t)=>{E.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===ns.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Fc=g(`$ZodEmoji`,(e,t)=>{t.pattern??=xo(),E.init(e,t)}),Ic=g(`$ZodNanoID`,(e,t)=>{t.pattern??=Mo,E.init(e,t)}),Lc=g(`$ZodCUID`,(e,t)=>{t.pattern??=Do,E.init(e,t)}),Rc=g(`$ZodCUID2`,(e,t)=>{t.pattern??=Oo,E.init(e,t)}),zc=g(`$ZodULID`,(e,t)=>{t.pattern??=ko,E.init(e,t)}),Bc=g(`$ZodXID`,(e,t)=>{t.pattern??=Ao,E.init(e,t)}),Vc=g(`$ZodKSUID`,(e,t)=>{t.pattern??=jo,E.init(e,t)}),Hc=g(`$ZodISODateTime`,(e,t)=>{t.pattern??=wo(t),E.init(e,t)}),Uc=g(`$ZodISODate`,(e,t)=>{t.pattern??=as,E.init(e,t)}),Wc=g(`$ZodISOTime`,(e,t)=>{t.pattern??=Co(t),E.init(e,t)}),Gc=g(`$ZodISODuration`,(e,t)=>{t.pattern??=No,E.init(e,t)}),Kc=g(`$ZodIPv4`,(e,t)=>{t.pattern??=qo,E.init(e,t),e._zod.bag.format=`ipv4`}),qc=g(`$ZodIPv6`,(e,t)=>{t.pattern??=Jo,E.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Jc=g(`$ZodMAC`,(e,t)=>{t.pattern??=Yo(t.delimiter),E.init(e,t),e._zod.bag.format=`mac`}),Yc=g(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Xo,E.init(e,t)}),Xc=g(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Zo,E.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),Zc=g(`$ZodBase64`,(e,t)=>{t.pattern??=Qo,E.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{oc(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),Qc=g(`$ZodBase64URL`,(e,t)=>{t.pattern??=$o,E.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{sc(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),$c=g(`$ZodE164`,(e,t)=>{t.pattern??=rs,E.init(e,t)}),el=g(`$ZodJWT`,(e,t)=>{E.init(e,t),e._zod.check=n=>{cc(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),tl=g(`$ZodCustomStringFormat`,(e,t)=>{E.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),nl=g(`$ZodNumber`,(e,t)=>{T.init(e,t),e._zod.pattern=e._zod.bag.pattern??ls,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),rl=g(`$ZodNumberFormat`,(e,t)=>{Ls.init(e,t),nl.init(e,t)}),il=g(`$ZodBoolean`,(e,t)=>{T.init(e,t),e._zod.pattern=us,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),al=g(`$ZodBigInt`,(e,t)=>{T.init(e,t),e._zod.pattern=ss,e._zod.parse=(n,r)=>{if(t.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:e}),n}}),ol=g(`$ZodBigIntFormat`,(e,t)=>{Rs.init(e,t),al.init(e,t)}),sl=g(`$ZodSymbol`,(e,t)=>{T.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),cl=g(`$ZodUndefined`,(e,t)=>{T.init(e,t),e._zod.pattern=fs,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),ll=g(`$ZodNull`,(e,t)=>{T.init(e,t),e._zod.pattern=ds,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),ul=g(`$ZodAny`,(e,t)=>{T.init(e,t),e._zod.parse=e=>e}),dl=g(`$ZodUnknown`,(e,t)=>{T.init(e,t),e._zod.parse=e=>e}),fl=g(`$ZodNever`,(e,t)=>{T.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),pl=g(`$ZodVoid`,(e,t)=>{T.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),ml=g(`$ZodDate`,(e,t)=>{T.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),hl=g(`$ZodArray`,(e,t)=>{T.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>lc(t,n,e))):lc(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),gl=g(`$ZodObject`,(e,t)=>{if(T.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=Vi(()=>dc(t));y(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ea,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>uc(n,t,e,s,r,i))):uc(a,t,e,s,r,i)}return i?fc(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),_l=g(`$ZodObjectJIT`,(e,t)=>{gl.init(e,t);let n=e._zod.parse,r=Vi(()=>dc(t)),i=e=>{let t=new nc([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Qi(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Qi(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
|
|
2204
2375
|
if (${n}.issues.length) {
|
|
2205
2376
|
if (${o} in input) {
|
|
2206
2377
|
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
@@ -2259,9 +2430,9 @@ ${c}
|
|
|
2259
2430
|
}
|
|
2260
2431
|
}
|
|
2261
2432
|
|
|
2262
|
-
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ta,s=!Mi.jitless,c=s&&Na.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let ee=d.value;return o(ee)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?pc([],ee,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:ee,inst:e}),d)}}),yl=h(`$ZodUnion`,(e,t)=>{w.init(e,t),v(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),v(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),v(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),v(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Wi(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>mc(t,r,e,i)):mc(o,r,e,i)}}),bl=h(`$ZodXor`,(e,t)=>{yl.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>hc(t,r,e,i)):hc(o,r,e,i)}}),xl=h(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,yl.init(e,t);let n=e._zod.parse;v(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=Hi(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ta(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Sl=h(`$ZodIntersection`,(e,t)=>{w.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>_c(e,t,n)):_c(e,i,a)}}),Cl=h(`$ZodTuple`,(e,t)=>{w.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=vc(n,`optin`),c=vc(n,`optout`);if(!t.rest){if(a.length<s)return r.issues.push({code:`too_small`,minimum:s,inclusive:!0,input:a,inst:e,origin:`array`}),r;a.length>n.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:a[e],issues:[]},i);t instanceof Promise?o.push(t.then(t=>{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>yc(t,r,e))):yc(a,r,e)}}return o.length?Promise.all(o).then(()=>bc(l,r,n,a,c)):bc(l,r,n,a,c)}}),wl=h(`$ZodRecord`,(e,t)=>{w.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!na(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>ba(e,r,g())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...va(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...va(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&us.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>ba(e,r,g())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...va(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...va(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Tl=h(`$ZodMap`,(e,t)=>{w.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{xc(t,a,n,o,i,e,r)})):xc(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),El=h(`$ZodSet`,(e,t)=>{w.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>Sc(e,n))):Sc(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),Dl=h(`$ZodEnum`,(e,t)=>{w.init(e,t);let n=Bi(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Fa.has(typeof e)).map(e=>typeof e==`string`?aa(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Ol=h(`$ZodLiteral`,(e,t)=>{if(w.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?aa(e):e?aa(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),kl=h(`$ZodFile`,(e,t)=>{w.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),Al=h(`$ZodTransform`,(e,t)=>{w.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ji(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new Ai;return n.value=i,n.fallback=!0,n}}),jl=h(`$ZodOptional`,(e,t)=>{w.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,v(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),v(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Wi(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Cc(e,r)):Cc(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Ml=h(`$ZodExactOptional`,(e,t)=>{jl.init(e,t),v(e._zod,`values`,()=>t.innerType._zod.values),v(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Nl=h(`$ZodNullable`,(e,t)=>{w.init(e,t),v(e._zod,`optin`,()=>t.innerType._zod.optin),v(e._zod,`optout`,()=>t.innerType._zod.optout),v(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Wi(e.source)}|null)$`):void 0}),v(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Pl=h(`$ZodDefault`,(e,t)=>{w.init(e,t),e._zod.optin=`optional`,v(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>wc(e,t)):wc(r,t)}}),Fl=h(`$ZodPrefault`,(e,t)=>{w.init(e,t),e._zod.optin=`optional`,v(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Il=h(`$ZodNonOptional`,(e,t)=>{w.init(e,t),v(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Tc(t,e)):Tc(i,e)}}),Ll=h(`$ZodSuccess`,(e,t)=>{w.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new ji(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),Rl=h(`$ZodCatch`,(e,t)=>{w.init(e,t),e._zod.optin=`optional`,v(e._zod,`optout`,()=>t.innerType._zod.optout),v(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>ba(e,n,g()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>ba(e,n,g()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),zl=h(`$ZodNaN`,(e,t)=>{w.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),Bl=h(`$ZodPipe`,(e,t)=>{w.init(e,t),v(e._zod,`values`,()=>t.in._zod.values),v(e._zod,`optin`,()=>t.in._zod.optin),v(e._zod,`optout`,()=>t.out._zod.optout),v(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Ec(e,t.in,n)):Ec(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ec(e,t.out,n)):Ec(r,t.out,n)}}),Vl=h(`$ZodCodec`,(e,t)=>{w.init(e,t),v(e._zod,`values`,()=>t.in._zod.values),v(e._zod,`optin`,()=>t.in._zod.optin),v(e._zod,`optout`,()=>t.out._zod.optout),v(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Dc(e,t,n)):Dc(r,t,n)}else{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Dc(e,t,n)):Dc(r,t,n)}}}),Hl=h(`$ZodPreprocess`,(e,t)=>{Bl.init(e,t)}),Ul=h(`$ZodReadonly`,(e,t)=>{w.init(e,t),v(e._zod,`propValues`,()=>t.innerType._zod.propValues),v(e._zod,`values`,()=>t.innerType._zod.values),v(e._zod,`optin`,()=>t.innerType?._zod?.optin),v(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(kc):kc(r)}}),Wl=h(`$ZodTemplateLiteral`,(e,t)=>{w.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||Ia.has(typeof e))n.push(aa(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),Gl=h(`$ZodFunction`,(e,t)=>(w.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?Xa(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?Xa(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await Qa(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await Qa(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(e._def.output&&e._def.output._zod.def.type===`promise`?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Cl({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),Kl=h(`$ZodPromise`,(e,t)=>{w.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),ql=h(`$ZodLazy`,(e,t)=>{w.init(e,t),v(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),v(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),v(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),v(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),v(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Jl=h(`$ZodCustom`,(e,t)=>{C.init(e,t),w.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Ac(t,n,r,e));Ac(i,n,r,e)}})}));function Xl(){return{localeError:Zl()}}var Zl,Ql=t((()=>{S(),Zl=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${b(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${_(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function $l(){return{localeError:eu()}}var eu,tu=t((()=>{S(),eu=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${b(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function nu(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function ru(){return{localeError:iu()}}var iu,au=t((()=>{S(),iu=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${b(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=nu(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=nu(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function ou(){return{localeError:su()}}var su,cu=t((()=>{S(),su=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${b(e.values[0])}`:`Невалидна опция: очаквано едно от ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function lu(){return{localeError:uu()}}var uu,du=t((()=>{S(),uu=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,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ça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${b(e.values[0])}`:`Opció invàlida: s'esperava una de ${_(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function fu(){return{localeError:pu()}}var pu,mu=t((()=>{S(),pu=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${b(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${_(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function hu(){return{localeError:gu()}}var gu,_u=t((()=>{S(),gu=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${b(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function vu(){return{localeError:yu()}}var yu,bu=t((()=>{S(),yu=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${b(e.values[0])}`:`Ungültige Option: erwartet eine von ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function xu(){return{localeError:Su()}}var Su,Cu=t((()=>{S(),Su=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${b(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function wu(){return{localeError:Tu()}}var Tu,Eu=t((()=>{S(),Tu=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${b(e.values[0])}`:`Invalid option: expected one of ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function Du(){return{localeError:Ou()}}var Ou,ku=t((()=>{S(),Ou=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${b(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function Au(){return{localeError:ju()}}var ju,Mu=t((()=>{S(),ju=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,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ón ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${b(e.values[0])}`:`Opción inválida: se esperaba una de ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function Nu(){return{localeError:Pu()}}var Pu,Fu=t((()=>{S(),Pu=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: میبایست instanceof ${e.expected} میبود، ${i} دریافت شد`:`ورودی نامعتبر: میبایست ${t} میبود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: میبایست ${b(e.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${_(e.values,`|`)} میبود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${_(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function Iu(){return{localeError:Lu()}}var Lu,Ru=t((()=>{S(),Lu=()=>{let e={string:{unit:`merkkiä`,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äivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,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äivämäärä`,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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${b(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${_(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öte`}}}}));function zu(){return{localeError:Bu()}}var Bu,Vu=t((()=>{S(),Bu=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${b(e.values[0])} attendu`:`Option invalide : une valeur parmi ${_(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${_(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function Hu(){return{localeError:Uu()}}var Uu,Wu=t((()=>{S(),Uu=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${b(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${_(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function Gu(){return{localeError:Ku()}}var Ku,qu=t((()=>{S(),Ku=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=x(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${b(t.values[0])}`;let e=t.values.map(e=>b(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${_(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function Ju(){return{localeError:Yu()}}var Yu,Xu=t((()=>{S(),Yu=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${b(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function Zu(){return{localeError:Qu()}}var Qu,$u=t((()=>{S(),Qu=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${b(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function ed(e,t,n){return Math.abs(e)===1?t:n}function td(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function nd(){return{localeError:rd()}}var rd,id=t((()=>{S(),rd=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${b(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=ed(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${td(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${td(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=ed(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${td(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${td(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${_(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${td(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${td(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function ad(){return{localeError:od()}}var od,sd=t((()=>{S(),od=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${b(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.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`:``}: ${_(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 cd(){return{localeError:ld()}}var ld,ud=t((()=>{S(),ld=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${b(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function dd(){return{localeError:fd()}}var fd,pd=t((()=>{S(),fd=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${b(e.values[0])}`:`Opzione non valida: atteso uno tra ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.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`}: ${_(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 md(){return{localeError:hd()}}var hd,gd=t((()=>{S(),hd=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${b(e.values[0])}が期待されました`:`無効な選択: ${_(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${_(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function _d(){return{localeError:vd()}}var vd,yd=t((()=>{S(),vd=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${b(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${_(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function bd(){return{localeError:xd()}}var xd,Sd=t((()=>{S(),xd=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${b(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${_(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function Cd(){return bd()}var wd=t((()=>{Sd()}));function Td(){return{localeError:Ed()}}var Ed,Dd=t((()=>{S(),Ed=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${b(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${_(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${_(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function Od(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function kd(){return{localeError:jd()}}var Ad,jd,Md=t((()=>{S(),Ad=e=>e.charAt(0).toUpperCase()+e.slice(1),jd=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${b(e.values[0])}`:`Privalo būti vienas iš ${_(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,Od(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${Ad(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${Ad(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,Od(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${Ad(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${Ad(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:return`${Ad(r[e.origin]??e.origin??e.origin??`reikšmė`)} turi klaidingą įvestį`;default:return`Klaidinga įvestis`}}}}));function Nd(){return{localeError:Pd()}}var Pd,Fd=t((()=>{S(),Pd=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${b(e.values[0])}`:`Грешана опција: се очекува една ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function Id(){return{localeError:Ld()}}var Ld,Rd=t((()=>{S(),Ld=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${b(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${_(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 zd(){return{localeError:Bd()}}var Bd,Vd=t((()=>{S(),Bd=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${b(e.values[0])}`:`Ongeldige optie: verwacht één van ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.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`:``}: ${_(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 Hd(){return{localeError:Ud()}}var Ud,Wd=t((()=>{S(),Ud=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,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`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${b(e.values[0])}`:`Ugyldig valg: forventet en av ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function Gd(){return{localeError:Kd()}}var Kd,qd=t((()=>{S(),Kd=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,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âmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${b(e.values[0])}`:`Fâsit tercih: mûteberler ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function Jd(){return{localeError:Yd()}}var Yd,Xd=t((()=>{S(),Yd=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${b(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${_(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function Zd(){return{localeError:Qd()}}var Qd,$d=t((()=>{S(),Qd=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${b(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function ef(){return{localeError:tf()}}var tf,nf=t((()=>{S(),tf=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço 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ção ISO`,ipv4:`endereço IPv4`,ipv6:`endereço 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úmero E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${b(e.values[0])}`:`Opção inválida: esperada uma das ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function rf(){return{localeError:af()}}var af,of=t((()=>{S(),af=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${b(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${_(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function sf(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function cf(){return{localeError:lf()}}var lf,uf=t((()=>{S(),lf=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${b(e.values[0])}`:`Неверный вариант: ожидалось одно из ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=sf(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=sf(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function df(){return{localeError:ff()}}var ff,pf=t((()=>{S(),ff=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${b(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function mf(){return{localeError:hf()}}var hf,gf=t((()=>{S(),hf=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt 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äng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${b(e.values[0])}`:`Ogiltigt val: förväntade en av ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function _f(){return{localeError:vf()}}var vf,yf=t((()=>{S(),vf=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${b(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${_(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function bf(){return{localeError:xf()}}var xf,Sf=t((()=>{S(),xf=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${b(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${_(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function Cf(){return{localeError:wf()}}var wf,Tf=t((()=>{S(),wf=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??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üre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${b(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function Ef(){return{localeError:Df()}}var Df,Of=t((()=>{S(),Df=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${b(e.values[0])}`:`Неправильна опція: очікується одне з ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function kf(){return Ef()}var Af=t((()=>{Of()}));function jf(){return{localeError:Mf()}}var Mf,Nf=t((()=>{S(),Mf=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${b(e.values[0])} متوقع تھا`:`غلط آپشن: ${_(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${_(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function Pf(){return{localeError:Ff()}}var Ff,If=t((()=>{S(),Ff=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${b(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${_(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function Lf(){return{localeError:Rf()}}var Rf,zf=t((()=>{S(),Rf=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${b(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${_(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function Bf(){return{localeError:Vf()}}var Vf,Hf=t((()=>{S(),Vf=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${b(e.values[0])}`:`无效选项:期望以下之一 ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${_(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function Uf(){return{localeError:Wf()}}var Wf,Gf=t((()=>{S(),Wf=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${b(e.values[0])}`:`無效的選項:預期為以下其中之一 ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${_(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function Kf(){return{localeError:qf()}}var qf,Jf=t((()=>{S(),qf=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,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:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=x(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${b(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${_(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${_(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),Yf=n({ar:()=>Xl,az:()=>$l,be:()=>ru,bg:()=>ou,ca:()=>lu,cs:()=>fu,da:()=>hu,de:()=>vu,el:()=>xu,en:()=>wu,eo:()=>Du,es:()=>Au,fa:()=>Nu,fi:()=>Iu,fr:()=>zu,frCA:()=>Hu,he:()=>Gu,hr:()=>Ju,hu:()=>Zu,hy:()=>nd,id:()=>ad,is:()=>cd,it:()=>dd,ja:()=>md,ka:()=>_d,kh:()=>Cd,km:()=>bd,ko:()=>Td,lt:()=>kd,mk:()=>Nd,ms:()=>Id,nl:()=>zd,no:()=>Hd,ota:()=>Gd,pl:()=>Zd,ps:()=>Jd,pt:()=>ef,ro:()=>rf,ru:()=>cf,sl:()=>df,sv:()=>mf,ta:()=>_f,th:()=>bf,tr:()=>Cf,ua:()=>kf,uk:()=>Ef,ur:()=>jf,uz:()=>Pf,vi:()=>Lf,yo:()=>Kf,zhCN:()=>Bf,zhTW:()=>Uf}),Xf=t((()=>{Ql(),tu(),au(),cu(),du(),mu(),_u(),bu(),Cu(),Eu(),ku(),Mu(),Fu(),Ru(),Vu(),Wu(),qu(),Xu(),$u(),id(),sd(),ud(),pd(),gd(),yd(),wd(),Sd(),Dd(),Md(),Fd(),Rd(),Vd(),Wd(),qd(),Xd(),$d(),nf(),of(),uf(),pf(),gf(),yf(),Sf(),Tf(),Af(),Of(),Nf(),If(),zf(),Hf(),Gf(),Jf()}));function Zf(){return new tp}var Qf,$f,ep,tp,E,np=t((()=>{$f=Symbol(`ZodOutput`),ep=Symbol(`ZodInput`),tp=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(Qf=globalThis).__zod_globalRegistry??(Qf.__zod_globalRegistry=Zf()),E=globalThis.__zod_globalRegistry}));function rp(e,t){return new e({type:`string`,...y(t)})}function ip(e,t){return new e({type:`string`,coerce:!0,...y(t)})}function ap(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...y(t)})}function op(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...y(t)})}function sp(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...y(t)})}function cp(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...y(t)})}function lp(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...y(t)})}function up(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...y(t)})}function dp(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...y(t)})}function fp(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...y(t)})}function pp(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...y(t)})}function mp(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...y(t)})}function hp(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...y(t)})}function gp(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...y(t)})}function _p(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...y(t)})}function vp(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...y(t)})}function yp(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...y(t)})}function bp(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...y(t)})}function xp(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...y(t)})}function Sp(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...y(t)})}function Cp(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...y(t)})}function wp(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...y(t)})}function Tp(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...y(t)})}function Ep(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...y(t)})}function Dp(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...y(t)})}function Op(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...y(t)})}function kp(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...y(t)})}function Ap(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...y(t)})}function jp(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...y(t)})}function Mp(e,t){return new e({type:`number`,checks:[],...y(t)})}function Np(e,t){return new e({type:`number`,coerce:!0,checks:[],...y(t)})}function Pp(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...y(t)})}function Fp(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...y(t)})}function Ip(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...y(t)})}function Lp(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...y(t)})}function Rp(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...y(t)})}function zp(e,t){return new e({type:`boolean`,...y(t)})}function Bp(e,t){return new e({type:`boolean`,coerce:!0,...y(t)})}function Vp(e,t){return new e({type:`bigint`,...y(t)})}function Hp(e,t){return new e({type:`bigint`,coerce:!0,...y(t)})}function Up(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...y(t)})}function Wp(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...y(t)})}function Gp(e,t){return new e({type:`symbol`,...y(t)})}function Kp(e,t){return new e({type:`undefined`,...y(t)})}function qp(e,t){return new e({type:`null`,...y(t)})}function Jp(e){return new e({type:`any`})}function Yp(e){return new e({type:`unknown`})}function Xp(e,t){return new e({type:`never`,...y(t)})}function Zp(e,t){return new e({type:`void`,...y(t)})}function Qp(e,t){return new e({type:`date`,...y(t)})}function $p(e,t){return new e({type:`date`,coerce:!0,...y(t)})}function em(e,t){return new e({type:`nan`,...y(t)})}function tm(e,t){return new Fs({check:`less_than`,...y(t),value:e,inclusive:!1})}function nm(e,t){return new Fs({check:`less_than`,...y(t),value:e,inclusive:!0})}function rm(e,t){return new Is({check:`greater_than`,...y(t),value:e,inclusive:!1})}function D(e,t){return new Is({check:`greater_than`,...y(t),value:e,inclusive:!0})}function im(e){return rm(0,e)}function am(e){return tm(0,e)}function om(e){return nm(0,e)}function sm(e){return D(0,e)}function cm(e,t){return new Ls({check:`multiple_of`,...y(t),value:e})}function lm(e,t){return new Bs({check:`max_size`,...y(t),maximum:e})}function um(e,t){return new Vs({check:`min_size`,...y(t),minimum:e})}function dm(e,t){return new Hs({check:`size_equals`,...y(t),size:e})}function fm(e,t){return new Us({check:`max_length`,...y(t),maximum:e})}function pm(e,t){return new Ws({check:`min_length`,...y(t),minimum:e})}function mm(e,t){return new Gs({check:`length_equals`,...y(t),length:e})}function hm(e,t){return new qs({check:`string_format`,format:`regex`,...y(t),pattern:e})}function gm(e){return new Js({check:`string_format`,format:`lowercase`,...y(e)})}function _m(e){return new Ys({check:`string_format`,format:`uppercase`,...y(e)})}function vm(e,t){return new Xs({check:`string_format`,format:`includes`,...y(t),includes:e})}function ym(e,t){return new Zs({check:`string_format`,format:`starts_with`,...y(t),prefix:e})}function bm(e,t){return new Qs({check:`string_format`,format:`ends_with`,...y(t),suffix:e})}function xm(e,t,n){return new $s({check:`property`,property:e,schema:t,...y(n)})}function Sm(e,t){return new ec({check:`mime_type`,mime:e,...y(t)})}function Cm(e){return new tc({check:`overwrite`,tx:e})}function wm(e){return Cm(t=>t.normalize(e))}function Tm(){return Cm(e=>e.trim())}function Em(){return Cm(e=>e.toLowerCase())}function Dm(){return Cm(e=>e.toUpperCase())}function Om(){return Cm(e=>ea(e))}function km(e,t,n){return new e({type:`array`,element:t,...y(n)})}function Am(e,t,n){return new e({type:`union`,options:t,...y(n)})}function jm(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...y(n)})}function Mm(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...y(r)})}function Nm(e,t,n){return new e({type:`intersection`,left:t,right:n})}function Pm(e,t,n,r){let i=n instanceof w;return new e({type:`tuple`,items:t,rest:i?n:null,...y(i?r:n)})}function Fm(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...y(r)})}function Im(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...y(r)})}function Lm(e,t,n){return new e({type:`set`,valueType:t,...y(n)})}function Rm(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...y(n)})}function zm(e,t,n){return new e({type:`enum`,entries:t,...y(n)})}function Bm(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...y(n)})}function Vm(e,t){return new e({type:`file`,...y(t)})}function Hm(e,t){return new e({type:`transform`,transform:t})}function Um(e,t){return new e({type:`optional`,innerType:t})}function Wm(e,t){return new e({type:`nullable`,innerType:t})}function Gm(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():ra(n)}})}function Km(e,t,n){return new e({type:`nonoptional`,innerType:t,...y(n)})}function qm(e,t){return new e({type:`success`,innerType:t})}function Jm(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function Ym(e,t,n){return new e({type:`pipe`,in:t,out:n})}function Xm(e,t){return new e({type:`readonly`,innerType:t})}function Zm(e,t,n){return new e({type:`template_literal`,parts:t,...y(n)})}function Qm(e,t){return new e({type:`lazy`,getter:t})}function $m(e,t){return new e({type:`promise`,innerType:t})}function eh(e,t,n){let r=y(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function th(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...y(n)})}function nh(e,t){let n=rh(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Ca(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Ca(r))}},e(t.value,t)),t);return n}function rh(e,t){let n=new C({check:`custom`,...y(t)});return n._zod.check=e,n}function ih(e){let t=new C({check:`describe`});return t._zod.onattach=[t=>{let n=E.get(t)??{};E.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function ah(e){let t=new C({check:`meta`});return t._zod.onattach=[t=>{let n=E.get(t)??{};E.add(t,{...n,...e})}],t._zod.check=()=>{},t}function oh(e,t){let n=y(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??Vl,c=e.Boolean??al,l=new s({type:`pipe`,in:new(e.String??jc)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:o.has(r)?!1:(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function sh(e,t,n,r={}){let i=y(r),a={...y(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var ch,lh=t((()=>{nc(),np(),Yl(),S(),ch={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function uh(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??E,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function O(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,O(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&k(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function dh(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
2433
|
+
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ea,s=!ji.jitless,c=s&&Ma.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let ee=d.value;return o(ee)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?fc([],ee,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:ee,inst:e}),d)}}),vl=g(`$ZodUnion`,(e,t)=>{T.init(e,t),y(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),y(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),y(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),y(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Ui(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>pc(t,r,e,i)):pc(o,r,e,i)}}),yl=g(`$ZodXor`,(e,t)=>{vl.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>mc(t,r,e,i)):mc(o,r,e,i)}}),bl=g(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,vl.init(e,t);let n=e._zod.parse;y(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=Vi(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ea(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),xl=g(`$ZodIntersection`,(e,t)=>{T.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>gc(e,t,n)):gc(e,i,a)}}),Sl=g(`$ZodTuple`,(e,t)=>{T.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=_c(n,`optin`),c=_c(n,`optout`);if(!t.rest){if(a.length<s)return r.issues.push({code:`too_small`,minimum:s,inclusive:!0,input:a,inst:e,origin:`array`}),r;a.length>n.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:a[e],issues:[]},i);t instanceof Promise?o.push(t.then(t=>{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>vc(t,r,e))):vc(a,r,e)}}return o.length?Promise.all(o).then(()=>yc(l,r,n,a,c)):yc(l,r,n,a,c)}}),Cl=g(`$ZodRecord`,(e,t)=>{T.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!ta(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>ya(e,r,_())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(..._a(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(..._a(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&ls.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>ya(e,r,_())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(..._a(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(..._a(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),wl=g(`$ZodMap`,(e,t)=>{T.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{bc(t,a,n,o,i,e,r)})):bc(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),Tl=g(`$ZodSet`,(e,t)=>{T.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>xc(e,n))):xc(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),El=g(`$ZodEnum`,(e,t)=>{T.init(e,t);let n=zi(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Pa.has(typeof e)).map(e=>typeof e==`string`?ia(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Dl=g(`$ZodLiteral`,(e,t)=>{if(T.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?ia(e):e?ia(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Ol=g(`$ZodFile`,(e,t)=>{T.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),kl=g(`$ZodTransform`,(e,t)=>{T.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ai(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new ki;return n.value=i,n.fallback=!0,n}}),Al=g(`$ZodOptional`,(e,t)=>{T.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,y(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),y(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Ui(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Sc(e,r)):Sc(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),jl=g(`$ZodExactOptional`,(e,t)=>{Al.init(e,t),y(e._zod,`values`,()=>t.innerType._zod.values),y(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Ml=g(`$ZodNullable`,(e,t)=>{T.init(e,t),y(e._zod,`optin`,()=>t.innerType._zod.optin),y(e._zod,`optout`,()=>t.innerType._zod.optout),y(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Ui(e.source)}|null)$`):void 0}),y(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Nl=g(`$ZodDefault`,(e,t)=>{T.init(e,t),e._zod.optin=`optional`,y(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Cc(e,t)):Cc(r,t)}}),Pl=g(`$ZodPrefault`,(e,t)=>{T.init(e,t),e._zod.optin=`optional`,y(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Fl=g(`$ZodNonOptional`,(e,t)=>{T.init(e,t),y(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>wc(t,e)):wc(i,e)}}),Il=g(`$ZodSuccess`,(e,t)=>{T.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new Ai(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),Ll=g(`$ZodCatch`,(e,t)=>{T.init(e,t),e._zod.optin=`optional`,y(e._zod,`optout`,()=>t.innerType._zod.optout),y(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>ya(e,n,_()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>ya(e,n,_()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),Rl=g(`$ZodNaN`,(e,t)=>{T.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),zl=g(`$ZodPipe`,(e,t)=>{T.init(e,t),y(e._zod,`values`,()=>t.in._zod.values),y(e._zod,`optin`,()=>t.in._zod.optin),y(e._zod,`optout`,()=>t.out._zod.optout),y(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Tc(e,t.in,n)):Tc(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Tc(e,t.out,n)):Tc(r,t.out,n)}}),Bl=g(`$ZodCodec`,(e,t)=>{T.init(e,t),y(e._zod,`values`,()=>t.in._zod.values),y(e._zod,`optin`,()=>t.in._zod.optin),y(e._zod,`optout`,()=>t.out._zod.optout),y(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ec(e,t,n)):Ec(r,t,n)}else{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Ec(e,t,n)):Ec(r,t,n)}}}),Vl=g(`$ZodPreprocess`,(e,t)=>{zl.init(e,t)}),Hl=g(`$ZodReadonly`,(e,t)=>{T.init(e,t),y(e._zod,`propValues`,()=>t.innerType._zod.propValues),y(e._zod,`values`,()=>t.innerType._zod.values),y(e._zod,`optin`,()=>t.innerType?._zod?.optin),y(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Oc):Oc(r)}}),Ul=g(`$ZodTemplateLiteral`,(e,t)=>{T.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||Fa.has(typeof e))n.push(ia(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),Wl=g(`$ZodFunction`,(e,t)=>(T.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?Ya(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?Ya(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await Za(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await Za(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(e._def.output&&e._def.output._zod.def.type===`promise`?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Sl({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),Gl=g(`$ZodPromise`,(e,t)=>{T.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),Kl=g(`$ZodLazy`,(e,t)=>{T.init(e,t),y(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),y(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),y(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),y(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),y(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),ql=g(`$ZodCustom`,(e,t)=>{w.init(e,t),T.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>kc(t,n,r,e));kc(i,n,r,e)}})}));function Yl(){return{localeError:Xl()}}var Xl,Zl=t((()=>{C(),Xl=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${x(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${v(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function Ql(){return{localeError:$l()}}var $l,eu=t((()=>{C(),$l=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${x(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function tu(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function nu(){return{localeError:ru()}}var ru,iu=t((()=>{C(),ru=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${x(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=tu(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=tu(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function au(){return{localeError:ou()}}var ou,su=t((()=>{C(),ou=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${x(e.values[0])}`:`Невалидна опция: очаквано едно от ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function cu(){return{localeError:lu()}}var lu,uu=t((()=>{C(),lu=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,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ça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${x(e.values[0])}`:`Opció invàlida: s'esperava una de ${v(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function du(){return{localeError:fu()}}var fu,pu=t((()=>{C(),fu=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${x(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${v(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function mu(){return{localeError:hu()}}var hu,gu=t((()=>{C(),hu=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${x(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function _u(){return{localeError:vu()}}var vu,yu=t((()=>{C(),vu=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${x(e.values[0])}`:`Ungültige Option: erwartet eine von ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function bu(){return{localeError:xu()}}var xu,Su=t((()=>{C(),xu=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${x(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function Cu(){return{localeError:wu()}}var wu,Tu=t((()=>{C(),wu=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${x(e.values[0])}`:`Invalid option: expected one of ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function Eu(){return{localeError:Du()}}var Du,Ou=t((()=>{C(),Du=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${x(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function ku(){return{localeError:Au()}}var Au,ju=t((()=>{C(),Au=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,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ón ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${x(e.values[0])}`:`Opción inválida: se esperaba una de ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function Mu(){return{localeError:Nu()}}var Nu,Pu=t((()=>{C(),Nu=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: میبایست instanceof ${e.expected} میبود، ${i} دریافت شد`:`ورودی نامعتبر: میبایست ${t} میبود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: میبایست ${x(e.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${v(e.values,`|`)} میبود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${v(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function Fu(){return{localeError:Iu()}}var Iu,Lu=t((()=>{C(),Iu=()=>{let e={string:{unit:`merkkiä`,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äivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,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äivämäärä`,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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${x(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${v(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öte`}}}}));function Ru(){return{localeError:zu()}}var zu,Bu=t((()=>{C(),zu=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${x(e.values[0])} attendu`:`Option invalide : une valeur parmi ${v(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${v(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function Vu(){return{localeError:Hu()}}var Hu,Uu=t((()=>{C(),Hu=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${x(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${v(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function Wu(){return{localeError:Gu()}}var Gu,Ku=t((()=>{C(),Gu=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=S(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${x(t.values[0])}`;let e=t.values.map(e=>x(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${v(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function qu(){return{localeError:Ju()}}var Ju,Yu=t((()=>{C(),Ju=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${x(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function Xu(){return{localeError:Zu()}}var Zu,Qu=t((()=>{C(),Zu=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${x(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function $u(e,t,n){return Math.abs(e)===1?t:n}function ed(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function td(){return{localeError:nd()}}var nd,rd=t((()=>{C(),nd=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${x(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=$u(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ed(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ed(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=$u(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ed(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ed(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${v(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${ed(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${ed(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function id(){return{localeError:ad()}}var ad,od=t((()=>{C(),ad=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${x(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.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`:``}: ${v(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 sd(){return{localeError:cd()}}var cd,ld=t((()=>{C(),cd=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${x(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function ud(){return{localeError:dd()}}var dd,fd=t((()=>{C(),dd=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${x(e.values[0])}`:`Opzione non valida: atteso uno tra ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.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`}: ${v(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 pd(){return{localeError:md()}}var md,hd=t((()=>{C(),md=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${x(e.values[0])}が期待されました`:`無効な選択: ${v(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${v(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function gd(){return{localeError:_d()}}var _d,vd=t((()=>{C(),_d=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${x(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${v(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function yd(){return{localeError:bd()}}var bd,xd=t((()=>{C(),bd=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${x(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${v(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function Sd(){return yd()}var Cd=t((()=>{xd()}));function wd(){return{localeError:Td()}}var Td,Ed=t((()=>{C(),Td=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${x(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${v(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${v(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function Dd(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function Od(){return{localeError:Ad()}}var kd,Ad,jd=t((()=>{C(),kd=e=>e.charAt(0).toUpperCase()+e.slice(1),Ad=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${x(e.values[0])}`:`Privalo būti vienas iš ${v(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,Dd(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${kd(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${kd(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,Dd(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${kd(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${kd(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:return`${kd(r[e.origin]??e.origin??e.origin??`reikšmė`)} turi klaidingą įvestį`;default:return`Klaidinga įvestis`}}}}));function Md(){return{localeError:Nd()}}var Nd,Pd=t((()=>{C(),Nd=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${x(e.values[0])}`:`Грешана опција: се очекува една ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function Fd(){return{localeError:Id()}}var Id,Ld=t((()=>{C(),Id=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${x(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${v(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 Rd(){return{localeError:zd()}}var zd,Bd=t((()=>{C(),zd=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${x(e.values[0])}`:`Ongeldige optie: verwacht één van ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.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`:``}: ${v(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 Vd(){return{localeError:Hd()}}var Hd,Ud=t((()=>{C(),Hd=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,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`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${x(e.values[0])}`:`Ugyldig valg: forventet en av ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function Wd(){return{localeError:Gd()}}var Gd,Kd=t((()=>{C(),Gd=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,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âmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${x(e.values[0])}`:`Fâsit tercih: mûteberler ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function qd(){return{localeError:Jd()}}var Jd,Yd=t((()=>{C(),Jd=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${x(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${v(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function Xd(){return{localeError:Zd()}}var Zd,Qd=t((()=>{C(),Zd=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${x(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function $d(){return{localeError:ef()}}var ef,tf=t((()=>{C(),ef=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço 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ção ISO`,ipv4:`endereço IPv4`,ipv6:`endereço 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úmero E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${x(e.values[0])}`:`Opção inválida: esperada uma das ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function nf(){return{localeError:rf()}}var rf,af=t((()=>{C(),rf=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${x(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${v(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function of(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function sf(){return{localeError:cf()}}var cf,lf=t((()=>{C(),cf=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${x(e.values[0])}`:`Неверный вариант: ожидалось одно из ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=of(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=of(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function uf(){return{localeError:df()}}var df,ff=t((()=>{C(),df=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${x(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function pf(){return{localeError:mf()}}var mf,hf=t((()=>{C(),mf=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt 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äng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${x(e.values[0])}`:`Ogiltigt val: förväntade en av ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function gf(){return{localeError:_f()}}var _f,vf=t((()=>{C(),_f=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${x(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${v(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function yf(){return{localeError:bf()}}var bf,xf=t((()=>{C(),bf=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${x(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${v(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function Sf(){return{localeError:Cf()}}var Cf,wf=t((()=>{C(),Cf=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??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üre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${x(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function Tf(){return{localeError:Ef()}}var Ef,Df=t((()=>{C(),Ef=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${x(e.values[0])}`:`Неправильна опція: очікується одне з ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function Of(){return Tf()}var kf=t((()=>{Df()}));function Af(){return{localeError:jf()}}var jf,Mf=t((()=>{C(),jf=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${x(e.values[0])} متوقع تھا`:`غلط آپشن: ${v(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${v(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function Nf(){return{localeError:Pf()}}var Pf,Ff=t((()=>{C(),Pf=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${x(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${v(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function If(){return{localeError:Lf()}}var Lf,Rf=t((()=>{C(),Lf=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${x(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${v(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function zf(){return{localeError:Bf()}}var Bf,Vf=t((()=>{C(),Bf=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${x(e.values[0])}`:`无效选项:期望以下之一 ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${v(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function Hf(){return{localeError:Uf()}}var Uf,Wf=t((()=>{C(),Uf=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${x(e.values[0])}`:`無效的選項:預期為以下其中之一 ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${v(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function Gf(){return{localeError:Kf()}}var Kf,qf=t((()=>{C(),Kf=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,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:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=S(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${x(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${v(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${v(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),Jf=n({ar:()=>Yl,az:()=>Ql,be:()=>nu,bg:()=>au,ca:()=>cu,cs:()=>du,da:()=>mu,de:()=>_u,el:()=>bu,en:()=>Cu,eo:()=>Eu,es:()=>ku,fa:()=>Mu,fi:()=>Fu,fr:()=>Ru,frCA:()=>Vu,he:()=>Wu,hr:()=>qu,hu:()=>Xu,hy:()=>td,id:()=>id,is:()=>sd,it:()=>ud,ja:()=>pd,ka:()=>gd,kh:()=>Sd,km:()=>yd,ko:()=>wd,lt:()=>Od,mk:()=>Md,ms:()=>Fd,nl:()=>Rd,no:()=>Vd,ota:()=>Wd,pl:()=>Xd,ps:()=>qd,pt:()=>$d,ro:()=>nf,ru:()=>sf,sl:()=>uf,sv:()=>pf,ta:()=>gf,th:()=>yf,tr:()=>Sf,ua:()=>Of,uk:()=>Tf,ur:()=>Af,uz:()=>Nf,vi:()=>If,yo:()=>Gf,zhCN:()=>zf,zhTW:()=>Hf}),Yf=t((()=>{Zl(),eu(),iu(),su(),uu(),pu(),gu(),yu(),Su(),Tu(),Ou(),ju(),Pu(),Lu(),Bu(),Uu(),Ku(),Yu(),Qu(),rd(),od(),ld(),fd(),hd(),vd(),Cd(),xd(),Ed(),jd(),Pd(),Ld(),Bd(),Ud(),Kd(),Yd(),Qd(),tf(),af(),lf(),ff(),hf(),vf(),xf(),wf(),kf(),Df(),Mf(),Ff(),Rf(),Vf(),Wf(),qf()}));function Xf(){return new ep}var Zf,Qf,$f,ep,tp,np=t((()=>{Qf=Symbol(`ZodOutput`),$f=Symbol(`ZodInput`),ep=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(Zf=globalThis).__zod_globalRegistry??(Zf.__zod_globalRegistry=Xf()),tp=globalThis.__zod_globalRegistry}));function rp(e,t){return new e({type:`string`,...b(t)})}function ip(e,t){return new e({type:`string`,coerce:!0,...b(t)})}function ap(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...b(t)})}function op(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...b(t)})}function sp(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...b(t)})}function cp(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...b(t)})}function lp(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...b(t)})}function up(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...b(t)})}function dp(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...b(t)})}function fp(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...b(t)})}function pp(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...b(t)})}function mp(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...b(t)})}function hp(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...b(t)})}function gp(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...b(t)})}function _p(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...b(t)})}function vp(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...b(t)})}function yp(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...b(t)})}function bp(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...b(t)})}function xp(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...b(t)})}function Sp(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...b(t)})}function Cp(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...b(t)})}function wp(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...b(t)})}function Tp(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...b(t)})}function Ep(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...b(t)})}function Dp(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...b(t)})}function Op(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...b(t)})}function kp(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...b(t)})}function Ap(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...b(t)})}function jp(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...b(t)})}function Mp(e,t){return new e({type:`number`,checks:[],...b(t)})}function Np(e,t){return new e({type:`number`,coerce:!0,checks:[],...b(t)})}function Pp(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...b(t)})}function Fp(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...b(t)})}function Ip(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...b(t)})}function Lp(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...b(t)})}function Rp(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...b(t)})}function zp(e,t){return new e({type:`boolean`,...b(t)})}function Bp(e,t){return new e({type:`boolean`,coerce:!0,...b(t)})}function Vp(e,t){return new e({type:`bigint`,...b(t)})}function Hp(e,t){return new e({type:`bigint`,coerce:!0,...b(t)})}function Up(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...b(t)})}function Wp(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...b(t)})}function Gp(e,t){return new e({type:`symbol`,...b(t)})}function Kp(e,t){return new e({type:`undefined`,...b(t)})}function qp(e,t){return new e({type:`null`,...b(t)})}function Jp(e){return new e({type:`any`})}function Yp(e){return new e({type:`unknown`})}function Xp(e,t){return new e({type:`never`,...b(t)})}function Zp(e,t){return new e({type:`void`,...b(t)})}function Qp(e,t){return new e({type:`date`,...b(t)})}function $p(e,t){return new e({type:`date`,coerce:!0,...b(t)})}function em(e,t){return new e({type:`nan`,...b(t)})}function tm(e,t){return new Ps({check:`less_than`,...b(t),value:e,inclusive:!1})}function nm(e,t){return new Ps({check:`less_than`,...b(t),value:e,inclusive:!0})}function rm(e,t){return new Fs({check:`greater_than`,...b(t),value:e,inclusive:!1})}function D(e,t){return new Fs({check:`greater_than`,...b(t),value:e,inclusive:!0})}function im(e){return rm(0,e)}function am(e){return tm(0,e)}function om(e){return nm(0,e)}function sm(e){return D(0,e)}function cm(e,t){return new Is({check:`multiple_of`,...b(t),value:e})}function lm(e,t){return new zs({check:`max_size`,...b(t),maximum:e})}function um(e,t){return new Bs({check:`min_size`,...b(t),minimum:e})}function dm(e,t){return new Vs({check:`size_equals`,...b(t),size:e})}function fm(e,t){return new Hs({check:`max_length`,...b(t),maximum:e})}function pm(e,t){return new Us({check:`min_length`,...b(t),minimum:e})}function mm(e,t){return new Ws({check:`length_equals`,...b(t),length:e})}function hm(e,t){return new Ks({check:`string_format`,format:`regex`,...b(t),pattern:e})}function gm(e){return new qs({check:`string_format`,format:`lowercase`,...b(e)})}function _m(e){return new Js({check:`string_format`,format:`uppercase`,...b(e)})}function vm(e,t){return new Ys({check:`string_format`,format:`includes`,...b(t),includes:e})}function ym(e,t){return new Xs({check:`string_format`,format:`starts_with`,...b(t),prefix:e})}function bm(e,t){return new Zs({check:`string_format`,format:`ends_with`,...b(t),suffix:e})}function xm(e,t,n){return new Qs({check:`property`,property:e,schema:t,...b(n)})}function Sm(e,t){return new $s({check:`mime_type`,mime:e,...b(t)})}function Cm(e){return new ec({check:`overwrite`,tx:e})}function wm(e){return Cm(t=>t.normalize(e))}function Tm(){return Cm(e=>e.trim())}function Em(){return Cm(e=>e.toLowerCase())}function Dm(){return Cm(e=>e.toUpperCase())}function Om(){return Cm(e=>$i(e))}function km(e,t,n){return new e({type:`array`,element:t,...b(n)})}function Am(e,t,n){return new e({type:`union`,options:t,...b(n)})}function jm(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...b(n)})}function Mm(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...b(r)})}function Nm(e,t,n){return new e({type:`intersection`,left:t,right:n})}function Pm(e,t,n,r){let i=n instanceof T;return new e({type:`tuple`,items:t,rest:i?n:null,...b(i?r:n)})}function Fm(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...b(r)})}function Im(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...b(r)})}function Lm(e,t,n){return new e({type:`set`,valueType:t,...b(n)})}function Rm(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...b(n)})}function zm(e,t,n){return new e({type:`enum`,entries:t,...b(n)})}function Bm(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...b(n)})}function Vm(e,t){return new e({type:`file`,...b(t)})}function Hm(e,t){return new e({type:`transform`,transform:t})}function Um(e,t){return new e({type:`optional`,innerType:t})}function Wm(e,t){return new e({type:`nullable`,innerType:t})}function Gm(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():na(n)}})}function Km(e,t,n){return new e({type:`nonoptional`,innerType:t,...b(n)})}function qm(e,t){return new e({type:`success`,innerType:t})}function Jm(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function Ym(e,t,n){return new e({type:`pipe`,in:t,out:n})}function Xm(e,t){return new e({type:`readonly`,innerType:t})}function Zm(e,t,n){return new e({type:`template_literal`,parts:t,...b(n)})}function Qm(e,t){return new e({type:`lazy`,getter:t})}function $m(e,t){return new e({type:`promise`,innerType:t})}function eh(e,t,n){let r=b(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function th(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...b(n)})}function nh(e,t){let n=rh(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Sa(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Sa(r))}},e(t.value,t)),t);return n}function rh(e,t){let n=new w({check:`custom`,...b(t)});return n._zod.check=e,n}function ih(e){let t=new w({check:`describe`});return t._zod.onattach=[t=>{let n=tp.get(t)??{};tp.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function ah(e){let t=new w({check:`meta`});return t._zod.onattach=[t=>{let n=tp.get(t)??{};tp.add(t,{...n,...e})}],t._zod.check=()=>{},t}function oh(e,t){let n=b(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??Bl,c=e.Boolean??il,l=new s({type:`pipe`,in:new(e.String??Ac)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:o.has(r)?!1:(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function sh(e,t,n,r={}){let i=b(r),a={...b(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var ch,lh=t((()=>{tc(),np(),Jl(),C(),ch={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function uh(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??tp,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function O(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,O(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&k(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function dh(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
2263
2434
|
|
|
2264
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function fh(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:mh(t,`input`,e.processors),output:mh(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function k(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return k(r.element,n);if(r.type===`set`)return k(r.valueType,n);if(r.type===`lazy`)return k(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return k(r.innerType,n);if(r.type===`intersection`)return k(r.left,n)||k(r.right,n);if(r.type===`record`||r.type===`map`)return k(r.keyType,n)||k(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:k(r.in,n)||k(r.out,n);if(r.type===`object`){for(let e in r.shape)if(k(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(k(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(k(e,n))return!0;return!!(r.rest&&k(r.rest,n))}return!1}var ph,mh,hh=t((()=>{np(),ph=(e,t={})=>n=>{let r=uh({...n,processors:t});return O(e,r),dh(r,e),fh(r,e)},mh=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=uh({...i??{},target:a,io:t,processors:n});return O(e,o),dh(o,e),fh(o,e)}}));function gh(e,t){if(`_idmap`in e){let n=e,r=uh({...t,processors:rg}),i={};for(let e of n._idmap.entries()){let[t,n]=e;O(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;dh(r,n),a[t]=fh(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=uh({...t,processors:rg});return O(e,n),dh(n,e),fh(n,e)}var _h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh,Qh,$h,eg,tg,ng,rg,ig=t((()=>{hh(),S(),_h={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},vh=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=_h[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},yh=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),ee=t.target===`draft-04`||t.target===`openapi-3.0`;d?ee?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?ee?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},bh=(e,t,n,r)=>{n.type=`boolean`},xh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},Sh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},Ch=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},wh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},Th=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},Eh=(e,t,n,r)=>{n.not={}},Dh=(e,t,n,r)=>{},Oh=(e,t,n,r)=>{},kh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},Ah=(e,t,n,r)=>{let i=e._zod.def,a=Bi(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},jh=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Mh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},Nh=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},Ph=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},Fh=(e,t,n,r)=>{n.type=`boolean`},Ih=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Lh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},Rh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},zh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},Bh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},Vh=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=O(a.element,t,{...r,path:[...r.path,`items`]})},Hh=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=O(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=O(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Uh=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>O(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Wh=(e,t,n,r)=>{let i=e._zod.def,a=O(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=O(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Gh=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>O(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?O(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},Kh=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=O(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=O(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=O(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},qh=(e,t,n,r)=>{let i=e._zod.def,a=O(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Jh=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Yh=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Xh=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Zh=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Qh=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;O(o,t,r);let s=t.seen.get(e);s.ref=o},$h=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},eg=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},tg=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ng=(e,t,n,r)=>{let i=e._zod.innerType;O(i,t,r);let a=t.seen.get(e);a.ref=i},rg={string:vh,number:yh,boolean:bh,bigint:xh,symbol:Sh,null:Ch,undefined:wh,void:Th,never:Eh,any:Dh,unknown:Oh,date:kh,enum:Ah,literal:jh,nan:Mh,template_literal:Nh,file:Ph,success:Fh,custom:Ih,function:Lh,transform:Rh,map:zh,set:Bh,array:Vh,object:Hh,union:Uh,intersection:Wh,tuple:Gh,record:Kh,nullable:qh,nonoptional:Jh,default:Yh,prefault:Xh,catch:Zh,pipe:Qh,readonly:$h,promise:eg,optional:tg,lazy:ng}})),ag,og=t((()=>{ig(),hh(),ag=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=uh({processors:rg,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return O(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),dh(this.ctx,e);let{"~standard":n,...r}=fh(this.ctx,e);return r}}})),sg=n({}),cg=t((()=>{})),lg=n({$ZodAny:()=>dl,$ZodArray:()=>gl,$ZodAsyncError:()=>Ai,$ZodBase64:()=>Qc,$ZodBase64URL:()=>$c,$ZodBigInt:()=>ol,$ZodBigIntFormat:()=>sl,$ZodBoolean:()=>al,$ZodCIDRv4:()=>Xc,$ZodCIDRv6:()=>Zc,$ZodCUID:()=>Rc,$ZodCUID2:()=>zc,$ZodCatch:()=>Rl,$ZodCheck:()=>C,$ZodCheckBigIntFormat:()=>zs,$ZodCheckEndsWith:()=>Qs,$ZodCheckGreaterThan:()=>Is,$ZodCheckIncludes:()=>Xs,$ZodCheckLengthEquals:()=>Gs,$ZodCheckLessThan:()=>Fs,$ZodCheckLowerCase:()=>Js,$ZodCheckMaxLength:()=>Us,$ZodCheckMaxSize:()=>Bs,$ZodCheckMimeType:()=>ec,$ZodCheckMinLength:()=>Ws,$ZodCheckMinSize:()=>Vs,$ZodCheckMultipleOf:()=>Ls,$ZodCheckNumberFormat:()=>Rs,$ZodCheckOverwrite:()=>tc,$ZodCheckProperty:()=>$s,$ZodCheckRegex:()=>qs,$ZodCheckSizeEquals:()=>Hs,$ZodCheckStartsWith:()=>Zs,$ZodCheckStringFormat:()=>Ks,$ZodCheckUpperCase:()=>Ys,$ZodCodec:()=>Vl,$ZodCustom:()=>Jl,$ZodCustomStringFormat:()=>nl,$ZodDate:()=>hl,$ZodDefault:()=>Pl,$ZodDiscriminatedUnion:()=>xl,$ZodE164:()=>el,$ZodEmail:()=>Pc,$ZodEmoji:()=>Ic,$ZodEncodeError:()=>ji,$ZodEnum:()=>Dl,$ZodError:()=>Ka,$ZodExactOptional:()=>Ml,$ZodFile:()=>kl,$ZodFunction:()=>Gl,$ZodGUID:()=>Mc,$ZodIPv4:()=>qc,$ZodIPv6:()=>Jc,$ZodISODate:()=>Wc,$ZodISODateTime:()=>Uc,$ZodISODuration:()=>Kc,$ZodISOTime:()=>Gc,$ZodIntersection:()=>Sl,$ZodJWT:()=>tl,$ZodKSUID:()=>Hc,$ZodLazy:()=>ql,$ZodLiteral:()=>Ol,$ZodMAC:()=>Yc,$ZodMap:()=>Tl,$ZodNaN:()=>zl,$ZodNanoID:()=>Lc,$ZodNever:()=>pl,$ZodNonOptional:()=>Il,$ZodNull:()=>ul,$ZodNullable:()=>Nl,$ZodNumber:()=>rl,$ZodNumberFormat:()=>il,$ZodObject:()=>_l,$ZodObjectJIT:()=>vl,$ZodOptional:()=>jl,$ZodPipe:()=>Bl,$ZodPrefault:()=>Fl,$ZodPreprocess:()=>Hl,$ZodPromise:()=>Kl,$ZodReadonly:()=>Ul,$ZodRealError:()=>qa,$ZodRecord:()=>wl,$ZodRegistry:()=>tp,$ZodSet:()=>El,$ZodString:()=>jc,$ZodStringFormat:()=>T,$ZodSuccess:()=>Ll,$ZodSymbol:()=>cl,$ZodTemplateLiteral:()=>Wl,$ZodTransform:()=>Al,$ZodTuple:()=>Cl,$ZodType:()=>w,$ZodULID:()=>Bc,$ZodURL:()=>Fc,$ZodUUID:()=>Nc,$ZodUndefined:()=>ll,$ZodUnion:()=>yl,$ZodUnknown:()=>fl,$ZodVoid:()=>ml,$ZodXID:()=>Vc,$ZodXor:()=>bl,$brand:()=>ki,$constructor:()=>h,$input:()=>ep,$output:()=>$f,Doc:()=>rc,JSONSchema:()=>sg,JSONSchemaGenerator:()=>ag,NEVER:()=>Oi,TimePrecision:()=>ch,_any:()=>Jp,_array:()=>km,_base64:()=>wp,_base64url:()=>Tp,_bigint:()=>Vp,_boolean:()=>zp,_catch:()=>Jm,_check:()=>rh,_cidrv4:()=>Sp,_cidrv6:()=>Cp,_coercedBigint:()=>Hp,_coercedBoolean:()=>Bp,_coercedDate:()=>$p,_coercedNumber:()=>Np,_coercedString:()=>ip,_cuid:()=>mp,_cuid2:()=>hp,_custom:()=>eh,_date:()=>Qp,_decode:()=>ao,_decodeAsync:()=>lo,_default:()=>Gm,_discriminatedUnion:()=>Mm,_e164:()=>Ep,_email:()=>ap,_emoji:()=>fp,_encode:()=>ro,_encodeAsync:()=>so,_endsWith:()=>bm,_enum:()=>Rm,_file:()=>Vm,_float32:()=>Fp,_float64:()=>Ip,_gt:()=>rm,_gte:()=>D,_guid:()=>op,_includes:()=>vm,_int:()=>Pp,_int32:()=>Lp,_int64:()=>Up,_intersection:()=>Nm,_ipv4:()=>yp,_ipv6:()=>bp,_isoDate:()=>kp,_isoDateTime:()=>Op,_isoDuration:()=>jp,_isoTime:()=>Ap,_jwt:()=>Dp,_ksuid:()=>vp,_lazy:()=>Qm,_length:()=>mm,_literal:()=>Bm,_lowercase:()=>gm,_lt:()=>tm,_lte:()=>nm,_mac:()=>xp,_map:()=>Im,_max:()=>nm,_maxLength:()=>fm,_maxSize:()=>lm,_mime:()=>Sm,_min:()=>D,_minLength:()=>pm,_minSize:()=>um,_multipleOf:()=>cm,_nan:()=>em,_nanoid:()=>pp,_nativeEnum:()=>zm,_negative:()=>am,_never:()=>Xp,_nonnegative:()=>sm,_nonoptional:()=>Km,_nonpositive:()=>om,_normalize:()=>wm,_null:()=>qp,_nullable:()=>Wm,_number:()=>Mp,_optional:()=>Um,_overwrite:()=>Cm,_parse:()=>Ya,_parseAsync:()=>Za,_pipe:()=>Ym,_positive:()=>im,_promise:()=>$m,_property:()=>xm,_readonly:()=>Xm,_record:()=>Fm,_refine:()=>th,_regex:()=>hm,_safeDecode:()=>mo,_safeDecodeAsync:()=>vo,_safeEncode:()=>fo,_safeEncodeAsync:()=>go,_safeParse:()=>$a,_safeParseAsync:()=>to,_set:()=>Lm,_size:()=>dm,_slugify:()=>Om,_startsWith:()=>ym,_string:()=>rp,_stringFormat:()=>sh,_stringbool:()=>oh,_success:()=>qm,_superRefine:()=>nh,_symbol:()=>Gp,_templateLiteral:()=>Zm,_toLowerCase:()=>Em,_toUpperCase:()=>Dm,_transform:()=>Hm,_trim:()=>Tm,_tuple:()=>Pm,_uint32:()=>Rp,_uint64:()=>Wp,_ulid:()=>gp,_undefined:()=>Kp,_union:()=>Am,_unknown:()=>Yp,_uppercase:()=>_m,_url:()=>dp,_uuid:()=>sp,_uuidv4:()=>cp,_uuidv6:()=>lp,_uuidv7:()=>up,_void:()=>Zp,_xid:()=>_p,_xor:()=>jm,clone:()=>oa,config:()=>g,createStandardJSONSchemaMethod:()=>mh,createToJSONSchemaMethod:()=>ph,decode:()=>oo,decodeAsync:()=>uo,describe:()=>ih,encode:()=>io,encodeAsync:()=>co,extractDefs:()=>dh,finalize:()=>fh,flattenError:()=>Ba,formatError:()=>Va,globalConfig:()=>Mi,globalRegistry:()=>E,initializeContext:()=>uh,isValidBase64:()=>sc,isValidBase64URL:()=>cc,isValidJWT:()=>lc,locales:()=>Yf,meta:()=>ah,parse:()=>Xa,parseAsync:()=>Qa,prettifyError:()=>Wa,process:()=>O,regexes:()=>xo,registry:()=>Zf,safeDecode:()=>ho,safeDecodeAsync:()=>yo,safeEncode:()=>po,safeEncodeAsync:()=>_o,safeParse:()=>eo,safeParseAsync:()=>no,toDotPath:()=>Ua,toJSONSchema:()=>gh,treeifyError:()=>Ha,util:()=>Pi,version:()=>ac}),ug=t((()=>{Ni(),bo(),Ja(),Yl(),nc(),oc(),S(),Ms(),Xf(),np(),ic(),lh(),hh(),ig(),og(),cg()}));lh(),S(),Ms(),Ni(),bo(),ig(),Ja(),Xf(),ug(),np();function dg(e){return!!e._zod}function fg(e,t){return dg(e)?eo(e,t):e.safeParse(t)}function pg(e){if(!e)return;let t;if(t=dg(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function mg(e){if(dg(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var hg=n({endsWith:()=>bm,gt:()=>rm,gte:()=>D,includes:()=>vm,length:()=>mm,lowercase:()=>gm,lt:()=>tm,lte:()=>nm,maxLength:()=>fm,maxSize:()=>lm,mime:()=>Sm,minLength:()=>pm,minSize:()=>um,multipleOf:()=>cm,negative:()=>am,nonnegative:()=>sm,nonpositive:()=>om,normalize:()=>wm,overwrite:()=>Cm,positive:()=>im,property:()=>xm,regex:()=>hm,size:()=>dm,slugify:()=>Om,startsWith:()=>ym,toLowerCase:()=>Em,toUpperCase:()=>Dm,trim:()=>Tm,uppercase:()=>_m}),gg=t((()=>{ug()})),_g=n({ZodISODate:()=>Cg,ZodISODateTime:()=>Sg,ZodISODuration:()=>Tg,ZodISOTime:()=>wg,date:()=>yg,datetime:()=>vg,duration:()=>xg,time:()=>bg});function vg(e){return Op(Sg,e)}function yg(e){return kp(Cg,e)}function bg(e){return Ap(wg,e)}function xg(e){return jp(Tg,e)}var Sg,Cg,wg,Tg,Eg=t((()=>{ug(),Fy(),Sg=h(`ZodISODateTime`,(e,t)=>{Uc.init(e,t),W.init(e,t)}),Cg=h(`ZodISODate`,(e,t)=>{Wc.init(e,t),W.init(e,t)}),wg=h(`ZodISOTime`,(e,t)=>{Gc.init(e,t),W.init(e,t)}),Tg=h(`ZodISODuration`,(e,t)=>{Kc.init(e,t),W.init(e,t)})})),Dg,Og,A,kg=t((()=>{ug(),S(),Dg=(e,t)=>{Ka.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Va(e,t)},flatten:{value:t=>Ba(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Vi,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Vi,2)}},isEmpty:{get(){return e.issues.length===0}}})},Og=h(`ZodError`,Dg),A=h(`ZodError`,Dg,{Parent:Error})})),Ag,jg,Mg,Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg=t((()=>{ug(),kg(),Ag=Ya(A),jg=Za(A),Mg=$a(A),Ng=to(A),Pg=ro(A),Fg=ao(A),Ig=so(A),Lg=lo(A),Rg=fo(A),zg=mo(A),Bg=go(A),Vg=vo(A)})),Ug=n({ZodAny:()=>Yv,ZodArray:()=>ey,ZodBase64:()=>Iv,ZodBase64URL:()=>Lv,ZodBigInt:()=>Wv,ZodBigIntFormat:()=>Gv,ZodBoolean:()=>Uv,ZodCIDRv4:()=>Pv,ZodCIDRv6:()=>Fv,ZodCUID:()=>Ev,ZodCUID2:()=>Dv,ZodCatch:()=>xy,ZodCodec:()=>wy,ZodCustom:()=>jy,ZodCustomStringFormat:()=>Bv,ZodDate:()=>$v,ZodDefault:()=>_y,ZodDiscriminatedUnion:()=>iy,ZodE164:()=>Rv,ZodEmail:()=>bv,ZodEmoji:()=>wv,ZodEnum:()=>uy,ZodExactOptional:()=>hy,ZodFile:()=>fy,ZodFunction:()=>Ay,ZodGUID:()=>xv,ZodIPv4:()=>jv,ZodIPv6:()=>Nv,ZodIntersection:()=>ay,ZodJWT:()=>zv,ZodKSUID:()=>Av,ZodLazy:()=>Oy,ZodLiteral:()=>dy,ZodMAC:()=>Mv,ZodMap:()=>cy,ZodNaN:()=>Sy,ZodNanoID:()=>Tv,ZodNever:()=>Zv,ZodNonOptional:()=>yy,ZodNull:()=>Jv,ZodNullable:()=>gy,ZodNumber:()=>Vv,ZodNumberFormat:()=>Hv,ZodObject:()=>ty,ZodOptional:()=>my,ZodPipe:()=>Cy,ZodPrefault:()=>vy,ZodPreprocess:()=>Ty,ZodPromise:()=>ky,ZodReadonly:()=>Ey,ZodRecord:()=>sy,ZodSet:()=>ly,ZodString:()=>yv,ZodStringFormat:()=>W,ZodSuccess:()=>by,ZodSymbol:()=>Kv,ZodTemplateLiteral:()=>Dy,ZodTransform:()=>py,ZodTuple:()=>oy,ZodType:()=>U,ZodULID:()=>Ov,ZodURL:()=>Cv,ZodUUID:()=>Sv,ZodUndefined:()=>qv,ZodUnion:()=>ny,ZodUnknown:()=>Xv,ZodVoid:()=>Qv,ZodXID:()=>kv,ZodXor:()=>ry,_ZodString:()=>vv,_default:()=>X_,_function:()=>lv,any:()=>A_,array:()=>F,base64:()=>d_,base64url:()=>f_,bigint:()=>w_,boolean:()=>N,catch:()=>ev,check:()=>uv,cidrv4:()=>l_,cidrv6:()=>u_,codec:()=>rv,cuid:()=>t_,cuid2:()=>n_,custom:()=>dv,date:()=>N_,describe:()=>My,discriminatedUnion:()=>L_,e164:()=>p_,email:()=>Gg,emoji:()=>$g,enum:()=>B,exactOptional:()=>q_,file:()=>G_,float32:()=>b_,float64:()=>x_,function:()=>lv,guid:()=>Kg,hash:()=>v_,hex:()=>__,hostname:()=>g_,httpUrl:()=>Qg,instanceof:()=>mv,int:()=>y_,int32:()=>S_,int64:()=>T_,intersection:()=>R_,invertCodec:()=>iv,ipv4:()=>o_,ipv6:()=>c_,json:()=>hv,jwt:()=>m_,keyof:()=>P_,ksuid:()=>a_,lazy:()=>sv,literal:()=>V,looseObject:()=>L,looseRecord:()=>V_,mac:()=>s_,map:()=>H_,meta:()=>Ny,nan:()=>tv,nanoid:()=>e_,nativeEnum:()=>W_,never:()=>j_,nonoptional:()=>Q_,null:()=>k_,nullable:()=>J_,nullish:()=>Y_,number:()=>M,object:()=>I,optional:()=>H,partialRecord:()=>B_,pipe:()=>nv,prefault:()=>Z_,preprocess:()=>gv,promise:()=>cv,readonly:()=>av,record:()=>z,refine:()=>fv,set:()=>U_,strictObject:()=>F_,string:()=>j,stringFormat:()=>h_,stringbool:()=>Py,success:()=>$_,superRefine:()=>pv,symbol:()=>D_,templateLiteral:()=>ov,transform:()=>K_,tuple:()=>z_,uint32:()=>C_,uint64:()=>E_,ulid:()=>r_,undefined:()=>O_,union:()=>R,unknown:()=>P,url:()=>Zg,uuid:()=>qg,uuidv4:()=>Jg,uuidv6:()=>Yg,uuidv7:()=>Xg,void:()=>M_,xid:()=>i_,xor:()=>I_});function Wg(e,t,n){let r=Object.getPrototypeOf(e),i=_v.get(r);if(i||(i=new Set,_v.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function j(e){return rp(yv,e)}function Gg(e){return ap(bv,e)}function Kg(e){return op(xv,e)}function qg(e){return sp(Sv,e)}function Jg(e){return cp(Sv,e)}function Yg(e){return lp(Sv,e)}function Xg(e){return up(Sv,e)}function Zg(e){return dp(Cv,e)}function Qg(e){return dp(Cv,{protocol:rs,hostname:ns,...y(e)})}function $g(e){return fp(wv,e)}function e_(e){return pp(Tv,e)}function t_(e){return mp(Ev,e)}function n_(e){return hp(Dv,e)}function r_(e){return gp(Ov,e)}function i_(e){return _p(kv,e)}function a_(e){return vp(Av,e)}function o_(e){return yp(jv,e)}function s_(e){return xp(Mv,e)}function c_(e){return bp(Nv,e)}function l_(e){return Sp(Pv,e)}function u_(e){return Cp(Fv,e)}function d_(e){return wp(Iv,e)}function f_(e){return Tp(Lv,e)}function p_(e){return Ep(Rv,e)}function m_(e){return Dp(zv,e)}function h_(e,t,n={}){return sh(Bv,e,t,n)}function g_(e){return sh(Bv,`hostname`,ts,e)}function __(e){return sh(Bv,`hex`,gs,e)}function v_(e,t){let n=`${e}_${t?.enc??`hex`}`,r=xo[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return sh(Bv,n,r,t)}function M(e){return Mp(Vv,e)}function y_(e){return Pp(Hv,e)}function b_(e){return Fp(Hv,e)}function x_(e){return Ip(Hv,e)}function S_(e){return Lp(Hv,e)}function C_(e){return Rp(Hv,e)}function N(e){return zp(Uv,e)}function w_(e){return Vp(Wv,e)}function T_(e){return Up(Gv,e)}function E_(e){return Wp(Gv,e)}function D_(e){return Gp(Kv,e)}function O_(e){return Kp(qv,e)}function k_(e){return qp(Jv,e)}function A_(){return Jp(Yv)}function P(){return Yp(Xv)}function j_(e){return Xp(Zv,e)}function M_(e){return Zp(Qv,e)}function N_(e){return Qp($v,e)}function F(e,t){return km(ey,e,t)}function P_(e){let t=e._zod.def.shape;return B(Object.keys(t))}function I(e,t){return new ty({type:`object`,shape:e??{},...y(t)})}function F_(e,t){return new ty({type:`object`,shape:e,catchall:j_(),...y(t)})}function L(e,t){return new ty({type:`object`,shape:e,catchall:P(),...y(t)})}function R(e,t){return new ny({type:`union`,options:e,...y(t)})}function I_(e,t){return new ry({type:`union`,options:e,inclusive:!1,...y(t)})}function L_(e,t,n){return new iy({type:`union`,options:t,discriminator:e,...y(n)})}function R_(e,t){return new ay({type:`intersection`,left:e,right:t})}function z_(e,t,n){let r=t instanceof w;return new oy({type:`tuple`,items:e,rest:r?t:null,...y(r?n:t)})}function z(e,t,n){return!t||!t._zod?new sy({type:`record`,keyType:j(),valueType:e,...y(t)}):new sy({type:`record`,keyType:e,valueType:t,...y(n)})}function B_(e,t,n){let r=oa(e);return r._zod.values=void 0,new sy({type:`record`,keyType:r,valueType:t,...y(n)})}function V_(e,t,n){return new sy({type:`record`,keyType:e,valueType:t,mode:`loose`,...y(n)})}function H_(e,t,n){return new cy({type:`map`,keyType:e,valueType:t,...y(n)})}function U_(e,t){return new ly({type:`set`,valueType:e,...y(t)})}function B(e,t){return new uy({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...y(t)})}function W_(e,t){return new uy({type:`enum`,entries:e,...y(t)})}function V(e,t){return new dy({type:`literal`,values:Array.isArray(e)?e:[e],...y(t)})}function G_(e){return Vm(fy,e)}function K_(e){return new py({type:`transform`,transform:e})}function H(e){return new my({type:`optional`,innerType:e})}function q_(e){return new hy({type:`optional`,innerType:e})}function J_(e){return new gy({type:`nullable`,innerType:e})}function Y_(e){return H(J_(e))}function X_(e,t){return new _y({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ra(t)}})}function Z_(e,t){return new vy({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ra(t)}})}function Q_(e,t){return new yy({type:`nonoptional`,innerType:e,...y(t)})}function $_(e){return new by({type:`success`,innerType:e})}function ev(e,t){return new xy({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function tv(e){return em(Sy,e)}function nv(e,t){return new Cy({type:`pipe`,in:e,out:t})}function rv(e,t,n){return new wy({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function iv(e){let t=e._zod.def;return new wy({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function av(e){return new Ey({type:`readonly`,innerType:e})}function ov(e,t){return new Dy({type:`template_literal`,parts:e,...y(t)})}function sv(e){return new Oy({type:`lazy`,getter:e})}function cv(e){return new ky({type:`promise`,innerType:e})}function lv(e){return new Ay({type:`function`,input:Array.isArray(e?.input)?z_(e?.input):e?.input??F(P()),output:e?.output??P()})}function uv(e){let t=new C({check:`custom`});return t._zod.check=e,t}function dv(e,t){return eh(jy,e??(()=>!0),t)}function fv(e,t={}){return th(jy,e,t)}function pv(e,t){return nh(e,t)}function mv(e,t={}){let n=new jy({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...y(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function hv(e){let t=sv(()=>R([j(e),M(),N(),k_(),F(t),z(j(),t)]));return t}function gv(e,t){return new Ty({type:`pipe`,in:K_(e),out:t})}var _v,U,vv,yv,W,bv,xv,Sv,Cv,wv,Tv,Ev,Dv,Ov,kv,Av,jv,Mv,Nv,Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv,Gv,Kv,qv,Jv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy,yy,by,xy,Sy,Cy,wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My,Ny,Py,Fy=t((()=>{ug(),ig(),hh(),gg(),Eg(),Hg(),_v=new WeakMap,U=h(`ZodType`,(e,t)=>(w.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:mh(e,`input`),output:mh(e,`output`)}}),e.toJSONSchema=ph(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>Ag(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Mg(e,t,n),e.parseAsync=async(t,n)=>jg(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Ng(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Pg(e,t,n),e.decode=(t,n)=>Fg(e,t,n),e.encodeAsync=async(t,n)=>Ig(e,t,n),e.decodeAsync=async(t,n)=>Lg(e,t,n),e.safeEncode=(t,n)=>Rg(e,t,n),e.safeDecode=(t,n)=>zg(e,t,n),e.safeEncodeAsync=async(t,n)=>Bg(e,t,n),e.safeDecodeAsync=async(t,n)=>Vg(e,t,n),Wg(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Ji(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return oa(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(fv(e,t))},superRefine(e,t){return this.check(pv(e,t))},overwrite(e){return this.check(Cm(e))},optional(){return H(this)},exactOptional(){return q_(this)},nullable(){return J_(this)},nullish(){return H(J_(this))},nonoptional(e){return Q_(this,e)},array(){return F(this)},or(e){return R([this,e])},and(e){return R_(this,e)},transform(e){return nv(this,K_(e))},default(e){return X_(this,e)},prefault(e){return Z_(this,e)},catch(e){return ev(this,e)},pipe(e){return nv(this,e)},readonly(){return av(this)},describe(e){let t=this.clone();return E.add(t,{description:e}),t},meta(...e){if(e.length===0)return E.get(this);let t=this.clone();return E.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return E.get(e)?.description},configurable:!0}),e)),vv=h(`_ZodString`,(e,t)=>{jc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vh(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Wg(e,`_ZodString`,{regex(...e){return this.check(hm(...e))},includes(...e){return this.check(vm(...e))},startsWith(...e){return this.check(ym(...e))},endsWith(...e){return this.check(bm(...e))},min(...e){return this.check(pm(...e))},max(...e){return this.check(fm(...e))},length(...e){return this.check(mm(...e))},nonempty(...e){return this.check(pm(1,...e))},lowercase(e){return this.check(gm(e))},uppercase(e){return this.check(_m(e))},trim(){return this.check(Tm())},normalize(...e){return this.check(wm(...e))},toLowerCase(){return this.check(Em())},toUpperCase(){return this.check(Dm())},slugify(){return this.check(Om())}})}),yv=h(`ZodString`,(e,t)=>{jc.init(e,t),vv.init(e,t),e.email=t=>e.check(ap(bv,t)),e.url=t=>e.check(dp(Cv,t)),e.jwt=t=>e.check(Dp(zv,t)),e.emoji=t=>e.check(fp(wv,t)),e.guid=t=>e.check(op(xv,t)),e.uuid=t=>e.check(sp(Sv,t)),e.uuidv4=t=>e.check(cp(Sv,t)),e.uuidv6=t=>e.check(lp(Sv,t)),e.uuidv7=t=>e.check(up(Sv,t)),e.nanoid=t=>e.check(pp(Tv,t)),e.guid=t=>e.check(op(xv,t)),e.cuid=t=>e.check(mp(Ev,t)),e.cuid2=t=>e.check(hp(Dv,t)),e.ulid=t=>e.check(gp(Ov,t)),e.base64=t=>e.check(wp(Iv,t)),e.base64url=t=>e.check(Tp(Lv,t)),e.xid=t=>e.check(_p(kv,t)),e.ksuid=t=>e.check(vp(Av,t)),e.ipv4=t=>e.check(yp(jv,t)),e.ipv6=t=>e.check(bp(Nv,t)),e.cidrv4=t=>e.check(Sp(Pv,t)),e.cidrv6=t=>e.check(Cp(Fv,t)),e.e164=t=>e.check(Ep(Rv,t)),e.datetime=t=>e.check(vg(t)),e.date=t=>e.check(yg(t)),e.time=t=>e.check(bg(t)),e.duration=t=>e.check(xg(t))}),W=h(`ZodStringFormat`,(e,t)=>{T.init(e,t),vv.init(e,t)}),bv=h(`ZodEmail`,(e,t)=>{Pc.init(e,t),W.init(e,t)}),xv=h(`ZodGUID`,(e,t)=>{Mc.init(e,t),W.init(e,t)}),Sv=h(`ZodUUID`,(e,t)=>{Nc.init(e,t),W.init(e,t)}),Cv=h(`ZodURL`,(e,t)=>{Fc.init(e,t),W.init(e,t)}),wv=h(`ZodEmoji`,(e,t)=>{Ic.init(e,t),W.init(e,t)}),Tv=h(`ZodNanoID`,(e,t)=>{Lc.init(e,t),W.init(e,t)}),Ev=h(`ZodCUID`,(e,t)=>{Rc.init(e,t),W.init(e,t)}),Dv=h(`ZodCUID2`,(e,t)=>{zc.init(e,t),W.init(e,t)}),Ov=h(`ZodULID`,(e,t)=>{Bc.init(e,t),W.init(e,t)}),kv=h(`ZodXID`,(e,t)=>{Vc.init(e,t),W.init(e,t)}),Av=h(`ZodKSUID`,(e,t)=>{Hc.init(e,t),W.init(e,t)}),jv=h(`ZodIPv4`,(e,t)=>{qc.init(e,t),W.init(e,t)}),Mv=h(`ZodMAC`,(e,t)=>{Yc.init(e,t),W.init(e,t)}),Nv=h(`ZodIPv6`,(e,t)=>{Jc.init(e,t),W.init(e,t)}),Pv=h(`ZodCIDRv4`,(e,t)=>{Xc.init(e,t),W.init(e,t)}),Fv=h(`ZodCIDRv6`,(e,t)=>{Zc.init(e,t),W.init(e,t)}),Iv=h(`ZodBase64`,(e,t)=>{Qc.init(e,t),W.init(e,t)}),Lv=h(`ZodBase64URL`,(e,t)=>{$c.init(e,t),W.init(e,t)}),Rv=h(`ZodE164`,(e,t)=>{el.init(e,t),W.init(e,t)}),zv=h(`ZodJWT`,(e,t)=>{tl.init(e,t),W.init(e,t)}),Bv=h(`ZodCustomStringFormat`,(e,t)=>{nl.init(e,t),W.init(e,t)}),Vv=h(`ZodNumber`,(e,t)=>{rl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yh(e,t,n,r),Wg(e,`ZodNumber`,{gt(e,t){return this.check(rm(e,t))},gte(e,t){return this.check(D(e,t))},min(e,t){return this.check(D(e,t))},lt(e,t){return this.check(tm(e,t))},lte(e,t){return this.check(nm(e,t))},max(e,t){return this.check(nm(e,t))},int(e){return this.check(y_(e))},safe(e){return this.check(y_(e))},positive(e){return this.check(rm(0,e))},nonnegative(e){return this.check(D(0,e))},negative(e){return this.check(tm(0,e))},nonpositive(e){return this.check(nm(0,e))},multipleOf(e,t){return this.check(cm(e,t))},step(e,t){return this.check(cm(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),Hv=h(`ZodNumberFormat`,(e,t)=>{il.init(e,t),Vv.init(e,t)}),Uv=h(`ZodBoolean`,(e,t)=>{al.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bh(e,t,n,r)}),Wv=h(`ZodBigInt`,(e,t)=>{ol.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xh(e,t,n,r),e.gte=(t,n)=>e.check(D(t,n)),e.min=(t,n)=>e.check(D(t,n)),e.gt=(t,n)=>e.check(rm(t,n)),e.gte=(t,n)=>e.check(D(t,n)),e.min=(t,n)=>e.check(D(t,n)),e.lt=(t,n)=>e.check(tm(t,n)),e.lte=(t,n)=>e.check(nm(t,n)),e.max=(t,n)=>e.check(nm(t,n)),e.positive=t=>e.check(rm(BigInt(0),t)),e.negative=t=>e.check(tm(BigInt(0),t)),e.nonpositive=t=>e.check(nm(BigInt(0),t)),e.nonnegative=t=>e.check(D(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(cm(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),Gv=h(`ZodBigIntFormat`,(e,t)=>{sl.init(e,t),Wv.init(e,t)}),Kv=h(`ZodSymbol`,(e,t)=>{cl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sh(e,t,n,r)}),qv=h(`ZodUndefined`,(e,t)=>{ll.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wh(e,t,n,r)}),Jv=h(`ZodNull`,(e,t)=>{ul.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ch(e,t,n,r)}),Yv=h(`ZodAny`,(e,t)=>{dl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dh(e,t,n,r)}),Xv=h(`ZodUnknown`,(e,t)=>{fl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oh(e,t,n,r)}),Zv=h(`ZodNever`,(e,t)=>{pl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Eh(e,t,n,r)}),Qv=h(`ZodVoid`,(e,t)=>{ml.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Th(e,t,n,r)}),$v=h(`ZodDate`,(e,t)=>{hl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kh(e,t,n,r),e.min=(t,n)=>e.check(D(t,n)),e.max=(t,n)=>e.check(nm(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),ey=h(`ZodArray`,(e,t)=>{gl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vh(e,t,n,r),e.element=t.element,Wg(e,`ZodArray`,{min(e,t){return this.check(pm(e,t))},nonempty(e){return this.check(pm(1,e))},max(e,t){return this.check(fm(e,t))},length(e,t){return this.check(mm(e,t))},unwrap(){return this.element}})}),ty=h(`ZodObject`,(e,t)=>{vl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hh(e,t,n,r),v(e,`shape`,()=>t.shape),Wg(e,`ZodObject`,{keyof(){return B(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:P()})},loose(){return this.clone({...this._zod.def,catchall:P()})},strict(){return this.clone({...this._zod.def,catchall:j_()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return da(this,e)},safeExtend(e){return fa(this,e)},merge(e){return pa(this,e)},pick(e){return la(this,e)},omit(e){return ua(this,e)},partial(...e){return ma(my,this,e[0])},required(...e){return ha(yy,this,e[0])}})}),ny=h(`ZodUnion`,(e,t)=>{yl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uh(e,t,n,r),e.options=t.options}),ry=h(`ZodXor`,(e,t)=>{ny.init(e,t),bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uh(e,t,n,r),e.options=t.options}),iy=h(`ZodDiscriminatedUnion`,(e,t)=>{ny.init(e,t),xl.init(e,t)}),ay=h(`ZodIntersection`,(e,t)=>{Sl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wh(e,t,n,r)}),oy=h(`ZodTuple`,(e,t)=>{Cl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gh(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),sy=h(`ZodRecord`,(e,t)=>{wl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kh(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),cy=h(`ZodMap`,(e,t)=>{Tl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zh(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(um(...t)),e.nonempty=t=>e.check(um(1,t)),e.max=(...t)=>e.check(lm(...t)),e.size=(...t)=>e.check(dm(...t))}),ly=h(`ZodSet`,(e,t)=>{El.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bh(e,t,n,r),e.min=(...t)=>e.check(um(...t)),e.nonempty=t=>e.check(um(1,t)),e.max=(...t)=>e.check(lm(...t)),e.size=(...t)=>e.check(dm(...t))}),uy=h(`ZodEnum`,(e,t)=>{Dl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ah(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new uy({...t,checks:[],...y(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new uy({...t,checks:[],...y(r),entries:i})}}),dy=h(`ZodLiteral`,(e,t)=>{Ol.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jh(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),fy=h(`ZodFile`,(e,t)=>{kl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ph(e,t,n,r),e.min=(t,n)=>e.check(um(t,n)),e.max=(t,n)=>e.check(lm(t,n)),e.mime=(t,n)=>e.check(Sm(Array.isArray(t)?t:[t],n))}),py=h(`ZodTransform`,(e,t)=>{Al.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rh(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ji(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ca(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Ca(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),my=h(`ZodOptional`,(e,t)=>{jl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tg(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),hy=h(`ZodExactOptional`,(e,t)=>{Ml.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tg(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),gy=h(`ZodNullable`,(e,t)=>{Nl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),_y=h(`ZodDefault`,(e,t)=>{Pl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),vy=h(`ZodPrefault`,(e,t)=>{Fl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),yy=h(`ZodNonOptional`,(e,t)=>{Il.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),by=h(`ZodSuccess`,(e,t)=>{Ll.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),xy=h(`ZodCatch`,(e,t)=>{Rl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Sy=h(`ZodNaN`,(e,t)=>{zl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mh(e,t,n,r)}),Cy=h(`ZodPipe`,(e,t)=>{Bl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qh(e,t,n,r),e.in=t.in,e.out=t.out}),wy=h(`ZodCodec`,(e,t)=>{Cy.init(e,t),Vl.init(e,t)}),Ty=h(`ZodPreprocess`,(e,t)=>{Cy.init(e,t),Hl.init(e,t)}),Ey=h(`ZodReadonly`,(e,t)=>{Ul.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$h(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Dy=h(`ZodTemplateLiteral`,(e,t)=>{Wl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nh(e,t,n,r)}),Oy=h(`ZodLazy`,(e,t)=>{ql.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ng(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),ky=h(`ZodPromise`,(e,t)=>{Kl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eg(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Ay=h(`ZodFunction`,(e,t)=>{Gl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lh(e,t,n,r)}),jy=h(`ZodCustom`,(e,t)=>{Jl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ih(e,t,n,r)}),My=ih,Ny=ah,Py=(...e)=>oh({Codec:wy,Boolean:Uv,String:yv},...e)}));function Iy(e){g({customError:e})}function Ly(){return g().customError}var Ry,zy,By=t((()=>{ug(),Ry={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`},zy||={}}));function Vy(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function Hy(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function Uy(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return K.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return K.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=G(Hy(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return K.null();if(n.length===0)return K.never();if(n.length===1)return K.literal(n[0]);if(n.every(e=>typeof e==`string`))return K.enum(n);let r=n.map(e=>K.literal(e));return r.length<2?r[0]:K.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return K.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>Uy({...e,type:n},t));return r.length===0?K.never():r.length===1?r[0]:K.union(r)}if(!n)return K.any();let r;switch(n){case`string`:{let t=K.string();if(e.format){let n=e.format;n===`email`?t=t.check(K.email()):n===`uri`||n===`uri-reference`?t=t.check(K.url()):n===`uuid`||n===`guid`?t=t.check(K.uuid()):n===`date-time`?t=t.check(K.iso.datetime()):n===`date`?t=t.check(K.iso.date()):n===`time`?t=t.check(K.iso.time()):n===`duration`?t=t.check(K.iso.duration()):n===`ipv4`?t=t.check(K.ipv4()):n===`ipv6`?t=t.check(K.ipv6()):n===`mac`?t=t.check(K.mac()):n===`cidr`?t=t.check(K.cidrv4()):n===`cidr-v6`?t=t.check(K.cidrv6()):n===`base64`?t=t.check(K.base64()):n===`base64url`?t=t.check(K.base64url()):n===`e164`?t=t.check(K.e164()):n===`jwt`?t=t.check(K.jwt()):n===`emoji`?t=t.check(K.emoji()):n===`nanoid`?t=t.check(K.nanoid()):n===`cuid`?t=t.check(K.cuid()):n===`cuid2`?t=t.check(K.cuid2()):n===`ulid`?t=t.check(K.ulid()):n===`xid`?t=t.check(K.xid()):n===`ksuid`&&(t=t.check(K.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?K.number().int():K.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=K.boolean();break;case`null`:r=K.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=G(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=G(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?G(e.additionalProperties,t):K.any();if(Object.keys(n).length===0){r=K.record(i,a);break}let o=K.object(n).passthrough(),s=K.looseRecord(i,a);r=K.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=G(i[e],t),r=K.string().regex(new RegExp(e));o.push(K.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(K.object(n).passthrough()),s.push(...o),s.length===0)r=K.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=K.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=K.intersection(e,s[t]);r=e}break}let o=K.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(G(e.additionalProperties,t)):o.passthrough();break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(e=>G(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?G(i,t):void 0;r=o?K.tuple(a).rest(o):K.tuple(a),typeof e.minItems==`number`&&(r=r.check(K.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(K.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>G(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?G(e.additionalItems,t):void 0;r=a?K.tuple(n).rest(a):K.tuple(n),typeof e.minItems==`number`&&(r=r.check(K.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(K.maxLength(e.maxItems)))}else if(i!==void 0){let n=G(i,t),a=K.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=K.array(K.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function G(e,t){if(typeof e==`boolean`)return e?K.any():K.never();let n=Uy(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>G(e,t)),a=K.union(i);n=r?K.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>G(e,t)),a=K.xor(i);n=r?K.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:K.any();else{let i=r?n:G(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=K.intersection(i,G(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=K.nullable(n)),e.readOnly===!0&&(n=K.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);for(let t of Object.keys(e))Gy.has(t)||(i[t]=e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function Wy(e,t){if(typeof e==`boolean`)return e?K.any():K.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:Vy(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??E};return G(n,r)}var K,Gy,Ky=t((()=>{np(),gg(),Eg(),Fy(),K={...Ug,...hg,iso:_g},Gy=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),qy=n({bigint:()=>Zy,boolean:()=>Xy,date:()=>Qy,number:()=>Yy,string:()=>Jy});function Jy(e){return ip(yv,e)}function Yy(e){return Np(Vv,e)}function Xy(e){return Bp(Uv,e)}function Zy(e){return Hp(Wv,e)}function Qy(e){return $p($v,e)}var $y=t((()=>{ug(),Fy()})),eb=n({$brand:()=>ki,$input:()=>ep,$output:()=>$f,NEVER:()=>Oi,TimePrecision:()=>ch,ZodAny:()=>Yv,ZodArray:()=>ey,ZodBase64:()=>Iv,ZodBase64URL:()=>Lv,ZodBigInt:()=>Wv,ZodBigIntFormat:()=>Gv,ZodBoolean:()=>Uv,ZodCIDRv4:()=>Pv,ZodCIDRv6:()=>Fv,ZodCUID:()=>Ev,ZodCUID2:()=>Dv,ZodCatch:()=>xy,ZodCodec:()=>wy,ZodCustom:()=>jy,ZodCustomStringFormat:()=>Bv,ZodDate:()=>$v,ZodDefault:()=>_y,ZodDiscriminatedUnion:()=>iy,ZodE164:()=>Rv,ZodEmail:()=>bv,ZodEmoji:()=>wv,ZodEnum:()=>uy,ZodError:()=>Og,ZodExactOptional:()=>hy,ZodFile:()=>fy,ZodFirstPartyTypeKind:()=>zy,ZodFunction:()=>Ay,ZodGUID:()=>xv,ZodIPv4:()=>jv,ZodIPv6:()=>Nv,ZodISODate:()=>Cg,ZodISODateTime:()=>Sg,ZodISODuration:()=>Tg,ZodISOTime:()=>wg,ZodIntersection:()=>ay,ZodIssueCode:()=>Ry,ZodJWT:()=>zv,ZodKSUID:()=>Av,ZodLazy:()=>Oy,ZodLiteral:()=>dy,ZodMAC:()=>Mv,ZodMap:()=>cy,ZodNaN:()=>Sy,ZodNanoID:()=>Tv,ZodNever:()=>Zv,ZodNonOptional:()=>yy,ZodNull:()=>Jv,ZodNullable:()=>gy,ZodNumber:()=>Vv,ZodNumberFormat:()=>Hv,ZodObject:()=>ty,ZodOptional:()=>my,ZodPipe:()=>Cy,ZodPrefault:()=>vy,ZodPreprocess:()=>Ty,ZodPromise:()=>ky,ZodReadonly:()=>Ey,ZodRealError:()=>A,ZodRecord:()=>sy,ZodSet:()=>ly,ZodString:()=>yv,ZodStringFormat:()=>W,ZodSuccess:()=>by,ZodSymbol:()=>Kv,ZodTemplateLiteral:()=>Dy,ZodTransform:()=>py,ZodTuple:()=>oy,ZodType:()=>U,ZodULID:()=>Ov,ZodURL:()=>Cv,ZodUUID:()=>Sv,ZodUndefined:()=>qv,ZodUnion:()=>ny,ZodUnknown:()=>Xv,ZodVoid:()=>Qv,ZodXID:()=>kv,ZodXor:()=>ry,_ZodString:()=>vv,_default:()=>X_,_function:()=>lv,any:()=>A_,array:()=>F,base64:()=>d_,base64url:()=>f_,bigint:()=>w_,boolean:()=>N,catch:()=>ev,check:()=>uv,cidrv4:()=>l_,cidrv6:()=>u_,clone:()=>oa,codec:()=>rv,coerce:()=>qy,config:()=>g,core:()=>lg,cuid:()=>t_,cuid2:()=>n_,custom:()=>dv,date:()=>N_,decode:()=>Fg,decodeAsync:()=>Lg,describe:()=>My,discriminatedUnion:()=>L_,e164:()=>p_,email:()=>Gg,emoji:()=>$g,encode:()=>Pg,encodeAsync:()=>Ig,endsWith:()=>bm,enum:()=>B,exactOptional:()=>q_,file:()=>G_,flattenError:()=>Ba,float32:()=>b_,float64:()=>x_,formatError:()=>Va,fromJSONSchema:()=>Wy,function:()=>lv,getErrorMap:()=>Ly,globalRegistry:()=>E,gt:()=>rm,gte:()=>D,guid:()=>Kg,hash:()=>v_,hex:()=>__,hostname:()=>g_,httpUrl:()=>Qg,includes:()=>vm,instanceof:()=>mv,int:()=>y_,int32:()=>S_,int64:()=>T_,intersection:()=>R_,invertCodec:()=>iv,ipv4:()=>o_,ipv6:()=>c_,iso:()=>_g,json:()=>hv,jwt:()=>m_,keyof:()=>P_,ksuid:()=>a_,lazy:()=>sv,length:()=>mm,literal:()=>V,locales:()=>Yf,looseObject:()=>L,looseRecord:()=>V_,lowercase:()=>gm,lt:()=>tm,lte:()=>nm,mac:()=>s_,map:()=>H_,maxLength:()=>fm,maxSize:()=>lm,meta:()=>Ny,mime:()=>Sm,minLength:()=>pm,minSize:()=>um,multipleOf:()=>cm,nan:()=>tv,nanoid:()=>e_,nativeEnum:()=>W_,negative:()=>am,never:()=>j_,nonnegative:()=>sm,nonoptional:()=>Q_,nonpositive:()=>om,normalize:()=>wm,null:()=>k_,nullable:()=>J_,nullish:()=>Y_,number:()=>M,object:()=>I,optional:()=>H,overwrite:()=>Cm,parse:()=>Ag,parseAsync:()=>jg,partialRecord:()=>B_,pipe:()=>nv,positive:()=>im,prefault:()=>Z_,preprocess:()=>gv,prettifyError:()=>Wa,promise:()=>cv,property:()=>xm,readonly:()=>av,record:()=>z,refine:()=>fv,regex:()=>hm,regexes:()=>xo,registry:()=>Zf,safeDecode:()=>zg,safeDecodeAsync:()=>Vg,safeEncode:()=>Rg,safeEncodeAsync:()=>Bg,safeParse:()=>Mg,safeParseAsync:()=>Ng,set:()=>U_,setErrorMap:()=>Iy,size:()=>dm,slugify:()=>Om,startsWith:()=>ym,strictObject:()=>F_,string:()=>j,stringFormat:()=>h_,stringbool:()=>Py,success:()=>$_,superRefine:()=>pv,symbol:()=>D_,templateLiteral:()=>ov,toJSONSchema:()=>gh,toLowerCase:()=>Em,toUpperCase:()=>Dm,transform:()=>K_,treeifyError:()=>Ha,trim:()=>Tm,tuple:()=>z_,uint32:()=>C_,uint64:()=>E_,ulid:()=>r_,undefined:()=>O_,union:()=>R,unknown:()=>P,uppercase:()=>_m,url:()=>Zg,util:()=>Pi,uuid:()=>qg,uuidv4:()=>Jg,uuidv6:()=>Yg,uuidv7:()=>Xg,void:()=>M_,xid:()=>i_,xor:()=>I_}),tb=t((()=>{ug(),Fy(),gg(),kg(),Hg(),By(),Eu(),ig(),Ky(),Xf(),Eg(),$y(),g(wu())})),nb,rb=t((()=>{tb(),tb(),nb=eb})),ib=n({$brand:()=>ki,$input:()=>ep,$output:()=>$f,NEVER:()=>Oi,TimePrecision:()=>ch,ZodAny:()=>Yv,ZodArray:()=>ey,ZodBase64:()=>Iv,ZodBase64URL:()=>Lv,ZodBigInt:()=>Wv,ZodBigIntFormat:()=>Gv,ZodBoolean:()=>Uv,ZodCIDRv4:()=>Pv,ZodCIDRv6:()=>Fv,ZodCUID:()=>Ev,ZodCUID2:()=>Dv,ZodCatch:()=>xy,ZodCodec:()=>wy,ZodCustom:()=>jy,ZodCustomStringFormat:()=>Bv,ZodDate:()=>$v,ZodDefault:()=>_y,ZodDiscriminatedUnion:()=>iy,ZodE164:()=>Rv,ZodEmail:()=>bv,ZodEmoji:()=>wv,ZodEnum:()=>uy,ZodError:()=>Og,ZodExactOptional:()=>hy,ZodFile:()=>fy,ZodFirstPartyTypeKind:()=>zy,ZodFunction:()=>Ay,ZodGUID:()=>xv,ZodIPv4:()=>jv,ZodIPv6:()=>Nv,ZodISODate:()=>Cg,ZodISODateTime:()=>Sg,ZodISODuration:()=>Tg,ZodISOTime:()=>wg,ZodIntersection:()=>ay,ZodIssueCode:()=>Ry,ZodJWT:()=>zv,ZodKSUID:()=>Av,ZodLazy:()=>Oy,ZodLiteral:()=>dy,ZodMAC:()=>Mv,ZodMap:()=>cy,ZodNaN:()=>Sy,ZodNanoID:()=>Tv,ZodNever:()=>Zv,ZodNonOptional:()=>yy,ZodNull:()=>Jv,ZodNullable:()=>gy,ZodNumber:()=>Vv,ZodNumberFormat:()=>Hv,ZodObject:()=>ty,ZodOptional:()=>my,ZodPipe:()=>Cy,ZodPrefault:()=>vy,ZodPreprocess:()=>Ty,ZodPromise:()=>ky,ZodReadonly:()=>Ey,ZodRealError:()=>A,ZodRecord:()=>sy,ZodSet:()=>ly,ZodString:()=>yv,ZodStringFormat:()=>W,ZodSuccess:()=>by,ZodSymbol:()=>Kv,ZodTemplateLiteral:()=>Dy,ZodTransform:()=>py,ZodTuple:()=>oy,ZodType:()=>U,ZodULID:()=>Ov,ZodURL:()=>Cv,ZodUUID:()=>Sv,ZodUndefined:()=>qv,ZodUnion:()=>ny,ZodUnknown:()=>Xv,ZodVoid:()=>Qv,ZodXID:()=>kv,ZodXor:()=>ry,_ZodString:()=>vv,_default:()=>X_,_function:()=>lv,any:()=>A_,array:()=>F,base64:()=>d_,base64url:()=>f_,bigint:()=>w_,boolean:()=>N,catch:()=>ev,check:()=>uv,cidrv4:()=>l_,cidrv6:()=>u_,clone:()=>oa,codec:()=>rv,coerce:()=>qy,config:()=>g,core:()=>lg,cuid:()=>t_,cuid2:()=>n_,custom:()=>dv,date:()=>N_,decode:()=>Fg,decodeAsync:()=>Lg,default:()=>ab,describe:()=>My,discriminatedUnion:()=>L_,e164:()=>p_,email:()=>Gg,emoji:()=>$g,encode:()=>Pg,encodeAsync:()=>Ig,endsWith:()=>bm,enum:()=>B,exactOptional:()=>q_,file:()=>G_,flattenError:()=>Ba,float32:()=>b_,float64:()=>x_,formatError:()=>Va,fromJSONSchema:()=>Wy,function:()=>lv,getErrorMap:()=>Ly,globalRegistry:()=>E,gt:()=>rm,gte:()=>D,guid:()=>Kg,hash:()=>v_,hex:()=>__,hostname:()=>g_,httpUrl:()=>Qg,includes:()=>vm,instanceof:()=>mv,int:()=>y_,int32:()=>S_,int64:()=>T_,intersection:()=>R_,invertCodec:()=>iv,ipv4:()=>o_,ipv6:()=>c_,iso:()=>_g,json:()=>hv,jwt:()=>m_,keyof:()=>P_,ksuid:()=>a_,lazy:()=>sv,length:()=>mm,literal:()=>V,locales:()=>Yf,looseObject:()=>L,looseRecord:()=>V_,lowercase:()=>gm,lt:()=>tm,lte:()=>nm,mac:()=>s_,map:()=>H_,maxLength:()=>fm,maxSize:()=>lm,meta:()=>Ny,mime:()=>Sm,minLength:()=>pm,minSize:()=>um,multipleOf:()=>cm,nan:()=>tv,nanoid:()=>e_,nativeEnum:()=>W_,negative:()=>am,never:()=>j_,nonnegative:()=>sm,nonoptional:()=>Q_,nonpositive:()=>om,normalize:()=>wm,null:()=>k_,nullable:()=>J_,nullish:()=>Y_,number:()=>M,object:()=>I,optional:()=>H,overwrite:()=>Cm,parse:()=>Ag,parseAsync:()=>jg,partialRecord:()=>B_,pipe:()=>nv,positive:()=>im,prefault:()=>Z_,preprocess:()=>gv,prettifyError:()=>Wa,promise:()=>cv,property:()=>xm,readonly:()=>av,record:()=>z,refine:()=>fv,regex:()=>hm,regexes:()=>xo,registry:()=>Zf,safeDecode:()=>zg,safeDecodeAsync:()=>Vg,safeEncode:()=>Rg,safeEncodeAsync:()=>Bg,safeParse:()=>Mg,safeParseAsync:()=>Ng,set:()=>U_,setErrorMap:()=>Iy,size:()=>dm,slugify:()=>Om,startsWith:()=>ym,strictObject:()=>F_,string:()=>j,stringFormat:()=>h_,stringbool:()=>Py,success:()=>$_,superRefine:()=>pv,symbol:()=>D_,templateLiteral:()=>ov,toJSONSchema:()=>gh,toLowerCase:()=>Em,toUpperCase:()=>Dm,transform:()=>K_,treeifyError:()=>Ha,trim:()=>Tm,tuple:()=>z_,uint32:()=>C_,uint64:()=>E_,ulid:()=>r_,undefined:()=>O_,union:()=>R,unknown:()=>P,uppercase:()=>_m,url:()=>Zg,util:()=>Pi,uuid:()=>qg,uuidv4:()=>Jg,uuidv6:()=>Yg,uuidv7:()=>Xg,void:()=>M_,xid:()=>i_,xor:()=>I_,z:()=>eb}),ab,ob=t((()=>{rb(),rb(),ab=nb}));ob();var sb=`io.modelcontextprotocol/related-task`,q=dv(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),cb=R([j(),M().int()]),lb=j();L({ttl:M().optional(),pollInterval:M().optional()});var ub=I({ttl:M().optional()}),db=I({taskId:j()}),fb=L({progressToken:cb.optional(),[sb]:db.optional()}),pb=I({_meta:fb.optional()}),mb=pb.extend({task:ub.optional()}),hb=e=>mb.safeParse(e).success,J=I({method:j(),params:pb.loose().optional()}),gb=I({_meta:fb.optional()}),_b=I({method:j(),params:gb.loose().optional()}),Y=L({_meta:fb.optional()}),vb=R([j(),M().int()]),yb=I({jsonrpc:V(`2.0`),id:vb,...J.shape}).strict(),bb=e=>yb.safeParse(e).success,xb=I({jsonrpc:V(`2.0`),..._b.shape}).strict(),Sb=e=>xb.safeParse(e).success,Cb=I({jsonrpc:V(`2.0`),id:vb,result:Y}).strict(),wb=e=>Cb.safeParse(e).success,X;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(X||={});var Tb=I({jsonrpc:V(`2.0`),id:vb.optional(),error:I({code:M().int(),message:j(),data:P().optional()})}).strict(),Eb=e=>Tb.safeParse(e).success,Db=R([yb,xb,Cb,Tb]);R([Cb,Tb]);var Ob=Y.strict(),kb=gb.extend({requestId:vb.optional(),reason:j().optional()}),Ab=_b.extend({method:V(`notifications/cancelled`),params:kb}),jb=I({icons:F(I({src:j(),mimeType:j().optional(),sizes:F(j()).optional(),theme:B([`light`,`dark`]).optional()})).optional()}),Mb=I({name:j(),title:j().optional()}),Nb=Mb.extend({...Mb.shape,...jb.shape,version:j(),websiteUrl:j().optional(),description:j().optional()}),Pb=gv(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,R_(I({form:R_(I({applyDefaults:N().optional()}),z(j(),P())).optional(),url:q.optional()}),z(j(),P()).optional())),Fb=L({list:q.optional(),cancel:q.optional(),requests:L({sampling:L({createMessage:q.optional()}).optional(),elicitation:L({create:q.optional()}).optional()}).optional()}),Ib=L({list:q.optional(),cancel:q.optional(),requests:L({tools:L({call:q.optional()}).optional()}).optional()}),Lb=I({experimental:z(j(),q).optional(),sampling:I({context:q.optional(),tools:q.optional()}).optional(),elicitation:Pb.optional(),roots:I({listChanged:N().optional()}).optional(),tasks:Fb.optional(),extensions:z(j(),q).optional()}),Rb=pb.extend({protocolVersion:j(),capabilities:Lb,clientInfo:Nb}),zb=J.extend({method:V(`initialize`),params:Rb}),Bb=I({experimental:z(j(),q).optional(),logging:q.optional(),completions:q.optional(),prompts:I({listChanged:N().optional()}).optional(),resources:I({subscribe:N().optional(),listChanged:N().optional()}).optional(),tools:I({listChanged:N().optional()}).optional(),tasks:Ib.optional(),extensions:z(j(),q).optional()}),Vb=Y.extend({protocolVersion:j(),capabilities:Bb,serverInfo:Nb,instructions:j().optional()}),Hb=_b.extend({method:V(`notifications/initialized`),params:gb.optional()}),Ub=J.extend({method:V(`ping`),params:pb.optional()}),Wb=I({progress:M(),total:H(M()),message:H(j())}),Gb=I({...gb.shape,...Wb.shape,progressToken:cb}),Kb=_b.extend({method:V(`notifications/progress`),params:Gb}),qb=pb.extend({cursor:lb.optional()}),Jb=J.extend({params:qb.optional()}),Yb=Y.extend({nextCursor:lb.optional()}),Xb=B([`working`,`input_required`,`completed`,`failed`,`cancelled`]),Zb=I({taskId:j(),status:Xb,ttl:R([M(),k_()]),createdAt:j(),lastUpdatedAt:j(),pollInterval:H(M()),statusMessage:H(j())}),Qb=Y.extend({task:Zb}),$b=gb.merge(Zb),ex=_b.extend({method:V(`notifications/tasks/status`),params:$b}),tx=J.extend({method:V(`tasks/get`),params:pb.extend({taskId:j()})}),nx=Y.merge(Zb),rx=J.extend({method:V(`tasks/result`),params:pb.extend({taskId:j()})});Y.loose();var ix=Jb.extend({method:V(`tasks/list`)}),ax=Yb.extend({tasks:F(Zb)}),ox=J.extend({method:V(`tasks/cancel`),params:pb.extend({taskId:j()})}),sx=Y.merge(Zb),cx=I({uri:j(),mimeType:H(j()),_meta:z(j(),P()).optional()}),lx=cx.extend({text:j()}),ux=j().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),dx=cx.extend({blob:ux}),fx=B([`user`,`assistant`]),px=I({audience:F(fx).optional(),priority:M().min(0).max(1).optional(),lastModified:vg({offset:!0}).optional()}),mx=I({...Mb.shape,...jb.shape,uri:j(),description:H(j()),mimeType:H(j()),size:H(M()),annotations:px.optional(),_meta:H(L({}))}),hx=I({...Mb.shape,...jb.shape,uriTemplate:j(),description:H(j()),mimeType:H(j()),annotations:px.optional(),_meta:H(L({}))}),gx=Jb.extend({method:V(`resources/list`)}),_x=Yb.extend({resources:F(mx)}),vx=Jb.extend({method:V(`resources/templates/list`)}),yx=Yb.extend({resourceTemplates:F(hx)}),bx=pb.extend({uri:j()}),xx=bx,Sx=J.extend({method:V(`resources/read`),params:xx}),Cx=Y.extend({contents:F(R([lx,dx]))}),wx=_b.extend({method:V(`notifications/resources/list_changed`),params:gb.optional()}),Tx=bx,Ex=J.extend({method:V(`resources/subscribe`),params:Tx}),Dx=bx,Ox=J.extend({method:V(`resources/unsubscribe`),params:Dx}),kx=gb.extend({uri:j()}),Ax=_b.extend({method:V(`notifications/resources/updated`),params:kx}),jx=I({name:j(),description:H(j()),required:H(N())}),Mx=I({...Mb.shape,...jb.shape,description:H(j()),arguments:H(F(jx)),_meta:H(L({}))}),Nx=Jb.extend({method:V(`prompts/list`)}),Px=Yb.extend({prompts:F(Mx)}),Fx=pb.extend({name:j(),arguments:z(j(),j()).optional()}),Ix=J.extend({method:V(`prompts/get`),params:Fx}),Lx=I({type:V(`text`),text:j(),annotations:px.optional(),_meta:z(j(),P()).optional()}),Rx=I({type:V(`image`),data:ux,mimeType:j(),annotations:px.optional(),_meta:z(j(),P()).optional()}),zx=I({type:V(`audio`),data:ux,mimeType:j(),annotations:px.optional(),_meta:z(j(),P()).optional()}),Bx=I({type:V(`tool_use`),name:j(),id:j(),input:z(j(),P()),_meta:z(j(),P()).optional()}),Vx=I({type:V(`resource`),resource:R([lx,dx]),annotations:px.optional(),_meta:z(j(),P()).optional()}),Hx=mx.extend({type:V(`resource_link`)}),Ux=R([Lx,Rx,zx,Hx,Vx]),Wx=I({role:fx,content:Ux}),Gx=Y.extend({description:j().optional(),messages:F(Wx)}),Kx=_b.extend({method:V(`notifications/prompts/list_changed`),params:gb.optional()}),qx=I({title:j().optional(),readOnlyHint:N().optional(),destructiveHint:N().optional(),idempotentHint:N().optional(),openWorldHint:N().optional()}),Jx=I({taskSupport:B([`required`,`optional`,`forbidden`]).optional()}),Yx=I({...Mb.shape,...jb.shape,description:j().optional(),inputSchema:I({type:V(`object`),properties:z(j(),q).optional(),required:F(j()).optional()}).catchall(P()),outputSchema:I({type:V(`object`),properties:z(j(),q).optional(),required:F(j()).optional()}).catchall(P()).optional(),annotations:qx.optional(),execution:Jx.optional(),_meta:z(j(),P()).optional()}),Xx=Jb.extend({method:V(`tools/list`)}),Zx=Yb.extend({tools:F(Yx)}),Qx=Y.extend({content:F(Ux).default([]),structuredContent:z(j(),P()).optional(),isError:N().optional()});Qx.or(Y.extend({toolResult:P()}));var $x=mb.extend({name:j(),arguments:z(j(),P()).optional()}),eS=J.extend({method:V(`tools/call`),params:$x}),tS=_b.extend({method:V(`notifications/tools/list_changed`),params:gb.optional()});I({autoRefresh:N().default(!0),debounceMs:M().int().nonnegative().default(300)});var nS=B([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),rS=pb.extend({level:nS}),iS=J.extend({method:V(`logging/setLevel`),params:rS}),aS=gb.extend({level:nS,logger:j().optional(),data:P()}),oS=_b.extend({method:V(`notifications/message`),params:aS}),sS=I({hints:F(I({name:j().optional()})).optional(),costPriority:M().min(0).max(1).optional(),speedPriority:M().min(0).max(1).optional(),intelligencePriority:M().min(0).max(1).optional()}),cS=I({mode:B([`auto`,`required`,`none`]).optional()}),lS=I({type:V(`tool_result`),toolUseId:j().describe(`The unique identifier for the corresponding tool call.`),content:F(Ux).default([]),structuredContent:I({}).loose().optional(),isError:N().optional(),_meta:z(j(),P()).optional()}),uS=L_(`type`,[Lx,Rx,zx]),dS=L_(`type`,[Lx,Rx,zx,Bx,lS]),fS=I({role:fx,content:R([dS,F(dS)]),_meta:z(j(),P()).optional()}),pS=mb.extend({messages:F(fS),modelPreferences:sS.optional(),systemPrompt:j().optional(),includeContext:B([`none`,`thisServer`,`allServers`]).optional(),temperature:M().optional(),maxTokens:M().int(),stopSequences:F(j()).optional(),metadata:q.optional(),tools:F(Yx).optional(),toolChoice:cS.optional()}),mS=J.extend({method:V(`sampling/createMessage`),params:pS}),hS=Y.extend({model:j(),stopReason:H(B([`endTurn`,`stopSequence`,`maxTokens`]).or(j())),role:fx,content:uS}),gS=Y.extend({model:j(),stopReason:H(B([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(j())),role:fx,content:R([dS,F(dS)])}),_S=I({type:V(`boolean`),title:j().optional(),description:j().optional(),default:N().optional()}),vS=I({type:V(`string`),title:j().optional(),description:j().optional(),minLength:M().optional(),maxLength:M().optional(),format:B([`email`,`uri`,`date`,`date-time`]).optional(),default:j().optional()}),yS=I({type:B([`number`,`integer`]),title:j().optional(),description:j().optional(),minimum:M().optional(),maximum:M().optional(),default:M().optional()}),bS=I({type:V(`string`),title:j().optional(),description:j().optional(),enum:F(j()),default:j().optional()}),xS=I({type:V(`string`),title:j().optional(),description:j().optional(),oneOf:F(I({const:j(),title:j()})),default:j().optional()}),SS=R([R([I({type:V(`string`),title:j().optional(),description:j().optional(),enum:F(j()),enumNames:F(j()).optional(),default:j().optional()}),R([bS,xS]),R([I({type:V(`array`),title:j().optional(),description:j().optional(),minItems:M().optional(),maxItems:M().optional(),items:I({type:V(`string`),enum:F(j())}),default:F(j()).optional()}),I({type:V(`array`),title:j().optional(),description:j().optional(),minItems:M().optional(),maxItems:M().optional(),items:I({anyOf:F(I({const:j(),title:j()}))}),default:F(j()).optional()})])]),_S,vS,yS]),CS=R([mb.extend({mode:V(`form`).optional(),message:j(),requestedSchema:I({type:V(`object`),properties:z(j(),SS),required:F(j()).optional()})}),mb.extend({mode:V(`url`),message:j(),elicitationId:j(),url:j().url()})]),wS=J.extend({method:V(`elicitation/create`),params:CS}),TS=gb.extend({elicitationId:j()}),ES=_b.extend({method:V(`notifications/elicitation/complete`),params:TS}),DS=Y.extend({action:B([`accept`,`decline`,`cancel`]),content:gv(e=>e===null?void 0:e,z(j(),R([j(),M(),N(),F(j())])).optional())}),OS=I({type:V(`ref/resource`),uri:j()}),kS=I({type:V(`ref/prompt`),name:j()}),AS=pb.extend({ref:R([kS,OS]),argument:I({name:j(),value:j()}),context:I({arguments:z(j(),j()).optional()}).optional()}),jS=J.extend({method:V(`completion/complete`),params:AS}),MS=Y.extend({completion:L({values:F(j()).max(100),total:H(M().int()),hasMore:H(N())})}),NS=I({uri:j().startsWith(`file://`),name:j().optional(),_meta:z(j(),P()).optional()}),PS=J.extend({method:V(`roots/list`),params:pb.optional()}),FS=Y.extend({roots:F(NS)}),IS=_b.extend({method:V(`notifications/roots/list_changed`),params:gb.optional()});R([Ub,zb,jS,iS,Ix,Nx,gx,vx,Sx,Ex,Ox,eS,Xx,tx,rx,ix,ox]),R([Ab,Kb,Hb,IS,ex]),R([Ob,hS,gS,DS,FS,nx,ax,Qb]),R([Ub,mS,wS,PS,tx,rx,ix,ox]),R([Ab,Kb,oS,Ax,wx,tS,Kx,ex,ES]),R([Ob,Vb,MS,Gx,Px,_x,yx,Cx,Qx,Zx,nx,ax,Qb]);var Z=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===X.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new LS(e.elicitations,n)}return new e(t,n,r)}},LS=class extends Z{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(X.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function RS(e){return e===`completed`||e===`failed`||e===`cancelled`}function zS(e){let t=pg(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=mg(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function BS(e,t){let n=fg(e,t);if(!n.success)throw n.error;return n.data}var VS=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Ab,e=>{this._oncancel(e)}),this.setNotificationHandler(Kb,e=>{this._onprogress(e)}),this.setRequestHandler(Ub,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(tx,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Z(X.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(rx,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new Z(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new Z(X.InvalidParams,`Task not found: ${r}`);if(!RS(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(RS(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[sb]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(ix,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new Z(X.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(ox,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Z(X.InvalidParams,`Task not found: ${e.params.taskId}`);if(RS(n.status))throw new Z(X.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new Z(X.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof Z?e:new Z(X.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),Z.fromError(X.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),wb(e)||Eb(e)?this._onresponse(e):bb(e)?this._onrequest(e,t):Sb(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=Z.fromError(X.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[sb]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:X.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=hb(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new Z(X.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:X.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),wb(e)?n(e):n(new Z(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(wb(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),wb(e)?r(e):r(Z.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof Z?e:new Z(X.InternalError,String(e))}}return}let i;try{let r=await this.request(e,Qb,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new Z(X.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},RS(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new Z(X.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new Z(X.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof Z?e:new Z(X.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[sb]:s}});let ee=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof Z?e:new Z(X.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=fg(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{ee(n?.signal?.reason)});let te=n?.timeout??6e4;this._setupTimeout(d,te,n?.maxTotalTimeout,()=>ee(Z.fromError(X.RequestTimeout,`Request timed out`,{timeout:te})),n?.resetTimeoutOnProgress??!1);let ne=s?.taskId;ne?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(ne,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},nx,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},ax,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},sx,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[sb]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[sb]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[sb]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=zS(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=BS(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=zS(e);this._notificationHandlers.set(n,n=>{let r=BS(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&bb(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new Z(X.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new Z(X.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new Z(X.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new Z(X.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=ex.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),RS(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new Z(X.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(RS(a.status))throw new Z(X.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=ex.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),RS(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function HS(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function US(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];HS(a)&&HS(i)?n[r]={...a,...i}:n[r]=i}return n}var WS=`modulepreload`,GS=function(e,t){return new URL(e,t).href},KS={},qS=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=GS(t,n),t in KS)return;KS[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:WS,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};ob(),(e=>typeof r<`u`?r:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof r<`u`?r:e)[t]}):e)(function(e){if(typeof r<`u`)return r.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var JS=class extends VS{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},YS=`2026-01-26`,XS=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=Db.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},ZS=R([V(`light`),V(`dark`)]).describe(`Color theme preference for the host environment.`),QS=R([V(`inline`),V(`fullscreen`),V(`pip`)]).describe(`Display mode for UI presentation.`),$S=z(R([V(`--color-background-primary`),V(`--color-background-secondary`),V(`--color-background-tertiary`),V(`--color-background-inverse`),V(`--color-background-ghost`),V(`--color-background-info`),V(`--color-background-danger`),V(`--color-background-success`),V(`--color-background-warning`),V(`--color-background-disabled`),V(`--color-text-primary`),V(`--color-text-secondary`),V(`--color-text-tertiary`),V(`--color-text-inverse`),V(`--color-text-ghost`),V(`--color-text-info`),V(`--color-text-danger`),V(`--color-text-success`),V(`--color-text-warning`),V(`--color-text-disabled`),V(`--color-border-primary`),V(`--color-border-secondary`),V(`--color-border-tertiary`),V(`--color-border-inverse`),V(`--color-border-ghost`),V(`--color-border-info`),V(`--color-border-danger`),V(`--color-border-success`),V(`--color-border-warning`),V(`--color-border-disabled`),V(`--color-ring-primary`),V(`--color-ring-secondary`),V(`--color-ring-inverse`),V(`--color-ring-info`),V(`--color-ring-danger`),V(`--color-ring-success`),V(`--color-ring-warning`),V(`--font-sans`),V(`--font-mono`),V(`--font-weight-normal`),V(`--font-weight-medium`),V(`--font-weight-semibold`),V(`--font-weight-bold`),V(`--font-text-xs-size`),V(`--font-text-sm-size`),V(`--font-text-md-size`),V(`--font-text-lg-size`),V(`--font-heading-xs-size`),V(`--font-heading-sm-size`),V(`--font-heading-md-size`),V(`--font-heading-lg-size`),V(`--font-heading-xl-size`),V(`--font-heading-2xl-size`),V(`--font-heading-3xl-size`),V(`--font-text-xs-line-height`),V(`--font-text-sm-line-height`),V(`--font-text-md-line-height`),V(`--font-text-lg-line-height`),V(`--font-heading-xs-line-height`),V(`--font-heading-sm-line-height`),V(`--font-heading-md-line-height`),V(`--font-heading-lg-line-height`),V(`--font-heading-xl-line-height`),V(`--font-heading-2xl-line-height`),V(`--font-heading-3xl-line-height`),V(`--border-radius-xs`),V(`--border-radius-sm`),V(`--border-radius-md`),V(`--border-radius-lg`),V(`--border-radius-xl`),V(`--border-radius-full`),V(`--border-width-regular`),V(`--shadow-hairline`),V(`--shadow-sm`),V(`--shadow-md`),V(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps.
|
|
2435
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function fh(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:mh(t,`input`,e.processors),output:mh(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function k(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return k(r.element,n);if(r.type===`set`)return k(r.valueType,n);if(r.type===`lazy`)return k(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return k(r.innerType,n);if(r.type===`intersection`)return k(r.left,n)||k(r.right,n);if(r.type===`record`||r.type===`map`)return k(r.keyType,n)||k(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:k(r.in,n)||k(r.out,n);if(r.type===`object`){for(let e in r.shape)if(k(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(k(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(k(e,n))return!0;return!!(r.rest&&k(r.rest,n))}return!1}var ph,mh,hh=t((()=>{np(),ph=(e,t={})=>n=>{let r=uh({...n,processors:t});return O(e,r),dh(r,e),fh(r,e)},mh=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=uh({...i??{},target:a,io:t,processors:n});return O(e,o),dh(o,e),fh(o,e)}}));function gh(e,t){if(`_idmap`in e){let n=e,r=uh({...t,processors:rg}),i={};for(let e of n._idmap.entries()){let[t,n]=e;O(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;dh(r,n),a[t]=fh(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=uh({...t,processors:rg});return O(e,n),dh(n,e),fh(n,e)}var _h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh,Qh,$h,eg,tg,ng,rg,ig=t((()=>{hh(),C(),_h={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},vh=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=_h[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},yh=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),ee=t.target===`draft-04`||t.target===`openapi-3.0`;d?ee?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?ee?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},bh=(e,t,n,r)=>{n.type=`boolean`},xh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},Sh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},Ch=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},wh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},Th=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},Eh=(e,t,n,r)=>{n.not={}},Dh=(e,t,n,r)=>{},Oh=(e,t,n,r)=>{},kh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},Ah=(e,t,n,r)=>{let i=e._zod.def,a=zi(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},jh=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Mh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},Nh=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},Ph=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},Fh=(e,t,n,r)=>{n.type=`boolean`},Ih=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Lh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},Rh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},zh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},Bh=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},Vh=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=O(a.element,t,{...r,path:[...r.path,`items`]})},Hh=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=O(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=O(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Uh=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>O(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Wh=(e,t,n,r)=>{let i=e._zod.def,a=O(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=O(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Gh=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>O(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?O(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},Kh=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=O(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=O(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=O(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},qh=(e,t,n,r)=>{let i=e._zod.def,a=O(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Jh=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Yh=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Xh=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Zh=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Qh=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;O(o,t,r);let s=t.seen.get(e);s.ref=o},$h=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},eg=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},tg=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ng=(e,t,n,r)=>{let i=e._zod.innerType;O(i,t,r);let a=t.seen.get(e);a.ref=i},rg={string:vh,number:yh,boolean:bh,bigint:xh,symbol:Sh,null:Ch,undefined:wh,void:Th,never:Eh,any:Dh,unknown:Oh,date:kh,enum:Ah,literal:jh,nan:Mh,template_literal:Nh,file:Ph,success:Fh,custom:Ih,function:Lh,transform:Rh,map:zh,set:Bh,array:Vh,object:Hh,union:Uh,intersection:Wh,tuple:Gh,record:Kh,nullable:qh,nonoptional:Jh,default:Yh,prefault:Xh,catch:Zh,pipe:Qh,readonly:$h,promise:eg,optional:tg,lazy:ng}})),ag,og=t((()=>{ig(),hh(),ag=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=uh({processors:rg,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return O(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),dh(this.ctx,e);let{"~standard":n,...r}=fh(this.ctx,e);return r}}})),sg=n({}),cg=t((()=>{})),lg=n({$ZodAny:()=>ul,$ZodArray:()=>hl,$ZodAsyncError:()=>ki,$ZodBase64:()=>Zc,$ZodBase64URL:()=>Qc,$ZodBigInt:()=>al,$ZodBigIntFormat:()=>ol,$ZodBoolean:()=>il,$ZodCIDRv4:()=>Yc,$ZodCIDRv6:()=>Xc,$ZodCUID:()=>Lc,$ZodCUID2:()=>Rc,$ZodCatch:()=>Ll,$ZodCheck:()=>w,$ZodCheckBigIntFormat:()=>Rs,$ZodCheckEndsWith:()=>Zs,$ZodCheckGreaterThan:()=>Fs,$ZodCheckIncludes:()=>Ys,$ZodCheckLengthEquals:()=>Ws,$ZodCheckLessThan:()=>Ps,$ZodCheckLowerCase:()=>qs,$ZodCheckMaxLength:()=>Hs,$ZodCheckMaxSize:()=>zs,$ZodCheckMimeType:()=>$s,$ZodCheckMinLength:()=>Us,$ZodCheckMinSize:()=>Bs,$ZodCheckMultipleOf:()=>Is,$ZodCheckNumberFormat:()=>Ls,$ZodCheckOverwrite:()=>ec,$ZodCheckProperty:()=>Qs,$ZodCheckRegex:()=>Ks,$ZodCheckSizeEquals:()=>Vs,$ZodCheckStartsWith:()=>Xs,$ZodCheckStringFormat:()=>Gs,$ZodCheckUpperCase:()=>Js,$ZodCodec:()=>Bl,$ZodCustom:()=>ql,$ZodCustomStringFormat:()=>tl,$ZodDate:()=>ml,$ZodDefault:()=>Nl,$ZodDiscriminatedUnion:()=>bl,$ZodE164:()=>$c,$ZodEmail:()=>Nc,$ZodEmoji:()=>Fc,$ZodEncodeError:()=>Ai,$ZodEnum:()=>El,$ZodError:()=>Ga,$ZodExactOptional:()=>jl,$ZodFile:()=>Ol,$ZodFunction:()=>Wl,$ZodGUID:()=>jc,$ZodIPv4:()=>Kc,$ZodIPv6:()=>qc,$ZodISODate:()=>Uc,$ZodISODateTime:()=>Hc,$ZodISODuration:()=>Gc,$ZodISOTime:()=>Wc,$ZodIntersection:()=>xl,$ZodJWT:()=>el,$ZodKSUID:()=>Vc,$ZodLazy:()=>Kl,$ZodLiteral:()=>Dl,$ZodMAC:()=>Jc,$ZodMap:()=>wl,$ZodNaN:()=>Rl,$ZodNanoID:()=>Ic,$ZodNever:()=>fl,$ZodNonOptional:()=>Fl,$ZodNull:()=>ll,$ZodNullable:()=>Ml,$ZodNumber:()=>nl,$ZodNumberFormat:()=>rl,$ZodObject:()=>gl,$ZodObjectJIT:()=>_l,$ZodOptional:()=>Al,$ZodPipe:()=>zl,$ZodPrefault:()=>Pl,$ZodPreprocess:()=>Vl,$ZodPromise:()=>Gl,$ZodReadonly:()=>Hl,$ZodRealError:()=>Ka,$ZodRecord:()=>Cl,$ZodRegistry:()=>ep,$ZodSet:()=>Tl,$ZodString:()=>Ac,$ZodStringFormat:()=>E,$ZodSuccess:()=>Il,$ZodSymbol:()=>sl,$ZodTemplateLiteral:()=>Ul,$ZodTransform:()=>kl,$ZodTuple:()=>Sl,$ZodType:()=>T,$ZodULID:()=>zc,$ZodURL:()=>Pc,$ZodUUID:()=>Mc,$ZodUndefined:()=>cl,$ZodUnion:()=>vl,$ZodUnknown:()=>dl,$ZodVoid:()=>pl,$ZodXID:()=>Bc,$ZodXor:()=>yl,$brand:()=>Oi,$constructor:()=>g,$input:()=>$f,$output:()=>Qf,Doc:()=>nc,JSONSchema:()=>sg,JSONSchemaGenerator:()=>ag,NEVER:()=>Di,TimePrecision:()=>ch,_any:()=>Jp,_array:()=>km,_base64:()=>wp,_base64url:()=>Tp,_bigint:()=>Vp,_boolean:()=>zp,_catch:()=>Jm,_check:()=>rh,_cidrv4:()=>Sp,_cidrv6:()=>Cp,_coercedBigint:()=>Hp,_coercedBoolean:()=>Bp,_coercedDate:()=>$p,_coercedNumber:()=>Np,_coercedString:()=>ip,_cuid:()=>mp,_cuid2:()=>hp,_custom:()=>eh,_date:()=>Qp,_decode:()=>io,_decodeAsync:()=>co,_default:()=>Gm,_discriminatedUnion:()=>Mm,_e164:()=>Ep,_email:()=>ap,_emoji:()=>fp,_encode:()=>no,_encodeAsync:()=>oo,_endsWith:()=>bm,_enum:()=>Rm,_file:()=>Vm,_float32:()=>Fp,_float64:()=>Ip,_gt:()=>rm,_gte:()=>D,_guid:()=>op,_includes:()=>vm,_int:()=>Pp,_int32:()=>Lp,_int64:()=>Up,_intersection:()=>Nm,_ipv4:()=>yp,_ipv6:()=>bp,_isoDate:()=>kp,_isoDateTime:()=>Op,_isoDuration:()=>jp,_isoTime:()=>Ap,_jwt:()=>Dp,_ksuid:()=>vp,_lazy:()=>Qm,_length:()=>mm,_literal:()=>Bm,_lowercase:()=>gm,_lt:()=>tm,_lte:()=>nm,_mac:()=>xp,_map:()=>Im,_max:()=>nm,_maxLength:()=>fm,_maxSize:()=>lm,_mime:()=>Sm,_min:()=>D,_minLength:()=>pm,_minSize:()=>um,_multipleOf:()=>cm,_nan:()=>em,_nanoid:()=>pp,_nativeEnum:()=>zm,_negative:()=>am,_never:()=>Xp,_nonnegative:()=>sm,_nonoptional:()=>Km,_nonpositive:()=>om,_normalize:()=>wm,_null:()=>qp,_nullable:()=>Wm,_number:()=>Mp,_optional:()=>Um,_overwrite:()=>Cm,_parse:()=>Ja,_parseAsync:()=>Xa,_pipe:()=>Ym,_positive:()=>im,_promise:()=>$m,_property:()=>xm,_readonly:()=>Xm,_record:()=>Fm,_refine:()=>th,_regex:()=>hm,_safeDecode:()=>po,_safeDecodeAsync:()=>_o,_safeEncode:()=>uo,_safeEncodeAsync:()=>ho,_safeParse:()=>Qa,_safeParseAsync:()=>eo,_set:()=>Lm,_size:()=>dm,_slugify:()=>Om,_startsWith:()=>ym,_string:()=>rp,_stringFormat:()=>sh,_stringbool:()=>oh,_success:()=>qm,_superRefine:()=>nh,_symbol:()=>Gp,_templateLiteral:()=>Zm,_toLowerCase:()=>Em,_toUpperCase:()=>Dm,_transform:()=>Hm,_trim:()=>Tm,_tuple:()=>Pm,_uint32:()=>Rp,_uint64:()=>Wp,_ulid:()=>gp,_undefined:()=>Kp,_union:()=>Am,_unknown:()=>Yp,_uppercase:()=>_m,_url:()=>dp,_uuid:()=>sp,_uuidv4:()=>cp,_uuidv6:()=>lp,_uuidv7:()=>up,_void:()=>Zp,_xid:()=>_p,_xor:()=>jm,clone:()=>aa,config:()=>_,createStandardJSONSchemaMethod:()=>mh,createToJSONSchemaMethod:()=>ph,decode:()=>ao,decodeAsync:()=>lo,describe:()=>ih,encode:()=>ro,encodeAsync:()=>so,extractDefs:()=>dh,finalize:()=>fh,flattenError:()=>za,formatError:()=>Ba,globalConfig:()=>ji,globalRegistry:()=>tp,initializeContext:()=>uh,isValidBase64:()=>oc,isValidBase64URL:()=>sc,isValidJWT:()=>cc,locales:()=>Jf,meta:()=>ah,parse:()=>Ya,parseAsync:()=>Za,prettifyError:()=>Ua,process:()=>O,regexes:()=>bo,registry:()=>Xf,safeDecode:()=>mo,safeDecodeAsync:()=>vo,safeEncode:()=>fo,safeEncodeAsync:()=>go,safeParse:()=>$a,safeParseAsync:()=>to,toDotPath:()=>Ha,toJSONSchema:()=>gh,treeifyError:()=>Va,util:()=>Ni,version:()=>ic}),ug=t((()=>{Mi(),yo(),qa(),Jl(),tc(),ac(),C(),js(),Yf(),np(),rc(),lh(),hh(),ig(),og(),cg()}));lh(),C(),js(),Mi(),yo(),ig(),qa(),Yf(),ug(),np();function dg(e){return!!e._zod}function fg(e,t){return dg(e)?$a(e,t):e.safeParse(t)}function pg(e){if(!e)return;let t;if(t=dg(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function mg(e){if(dg(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var hg=n({endsWith:()=>bm,gt:()=>rm,gte:()=>D,includes:()=>vm,length:()=>mm,lowercase:()=>gm,lt:()=>tm,lte:()=>nm,maxLength:()=>fm,maxSize:()=>lm,mime:()=>Sm,minLength:()=>pm,minSize:()=>um,multipleOf:()=>cm,negative:()=>am,nonnegative:()=>sm,nonpositive:()=>om,normalize:()=>wm,overwrite:()=>Cm,positive:()=>im,property:()=>xm,regex:()=>hm,size:()=>dm,slugify:()=>Om,startsWith:()=>ym,toLowerCase:()=>Em,toUpperCase:()=>Dm,trim:()=>Tm,uppercase:()=>_m}),gg=t((()=>{ug()})),_g=n({ZodISODate:()=>Cg,ZodISODateTime:()=>Sg,ZodISODuration:()=>Tg,ZodISOTime:()=>wg,date:()=>yg,datetime:()=>vg,duration:()=>xg,time:()=>bg});function vg(e){return Op(Sg,e)}function yg(e){return kp(Cg,e)}function bg(e){return Ap(wg,e)}function xg(e){return jp(Tg,e)}var Sg,Cg,wg,Tg,Eg=t((()=>{ug(),Fy(),Sg=g(`ZodISODateTime`,(e,t)=>{Hc.init(e,t),W.init(e,t)}),Cg=g(`ZodISODate`,(e,t)=>{Uc.init(e,t),W.init(e,t)}),wg=g(`ZodISOTime`,(e,t)=>{Wc.init(e,t),W.init(e,t)}),Tg=g(`ZodISODuration`,(e,t)=>{Gc.init(e,t),W.init(e,t)})})),Dg,Og,A,kg=t((()=>{ug(),C(),Dg=(e,t)=>{Ga.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Ba(e,t)},flatten:{value:t=>za(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Bi,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Bi,2)}},isEmpty:{get(){return e.issues.length===0}}})},Og=g(`ZodError`,Dg),A=g(`ZodError`,Dg,{Parent:Error})})),Ag,jg,Mg,Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg=t((()=>{ug(),kg(),Ag=Ja(A),jg=Xa(A),Mg=Qa(A),Ng=eo(A),Pg=no(A),Fg=io(A),Ig=oo(A),Lg=co(A),Rg=uo(A),zg=po(A),Bg=ho(A),Vg=_o(A)})),Ug=n({ZodAny:()=>Yv,ZodArray:()=>ey,ZodBase64:()=>Iv,ZodBase64URL:()=>Lv,ZodBigInt:()=>Wv,ZodBigIntFormat:()=>Gv,ZodBoolean:()=>Uv,ZodCIDRv4:()=>Pv,ZodCIDRv6:()=>Fv,ZodCUID:()=>Ev,ZodCUID2:()=>Dv,ZodCatch:()=>xy,ZodCodec:()=>wy,ZodCustom:()=>jy,ZodCustomStringFormat:()=>Bv,ZodDate:()=>$v,ZodDefault:()=>_y,ZodDiscriminatedUnion:()=>iy,ZodE164:()=>Rv,ZodEmail:()=>bv,ZodEmoji:()=>wv,ZodEnum:()=>uy,ZodExactOptional:()=>hy,ZodFile:()=>fy,ZodFunction:()=>Ay,ZodGUID:()=>xv,ZodIPv4:()=>jv,ZodIPv6:()=>Nv,ZodIntersection:()=>ay,ZodJWT:()=>zv,ZodKSUID:()=>Av,ZodLazy:()=>Oy,ZodLiteral:()=>dy,ZodMAC:()=>Mv,ZodMap:()=>cy,ZodNaN:()=>Sy,ZodNanoID:()=>Tv,ZodNever:()=>Zv,ZodNonOptional:()=>yy,ZodNull:()=>Jv,ZodNullable:()=>gy,ZodNumber:()=>Vv,ZodNumberFormat:()=>Hv,ZodObject:()=>ty,ZodOptional:()=>my,ZodPipe:()=>Cy,ZodPrefault:()=>vy,ZodPreprocess:()=>Ty,ZodPromise:()=>ky,ZodReadonly:()=>Ey,ZodRecord:()=>sy,ZodSet:()=>ly,ZodString:()=>yv,ZodStringFormat:()=>W,ZodSuccess:()=>by,ZodSymbol:()=>Kv,ZodTemplateLiteral:()=>Dy,ZodTransform:()=>py,ZodTuple:()=>oy,ZodType:()=>U,ZodULID:()=>Ov,ZodURL:()=>Cv,ZodUUID:()=>Sv,ZodUndefined:()=>qv,ZodUnion:()=>ny,ZodUnknown:()=>Xv,ZodVoid:()=>Qv,ZodXID:()=>kv,ZodXor:()=>ry,_ZodString:()=>vv,_default:()=>X_,_function:()=>lv,any:()=>A_,array:()=>F,base64:()=>d_,base64url:()=>f_,bigint:()=>w_,boolean:()=>N,catch:()=>ev,check:()=>uv,cidrv4:()=>l_,cidrv6:()=>u_,codec:()=>rv,cuid:()=>t_,cuid2:()=>n_,custom:()=>dv,date:()=>N_,describe:()=>My,discriminatedUnion:()=>L_,e164:()=>p_,email:()=>Gg,emoji:()=>$g,enum:()=>B,exactOptional:()=>q_,file:()=>G_,float32:()=>b_,float64:()=>x_,function:()=>lv,guid:()=>Kg,hash:()=>v_,hex:()=>__,hostname:()=>g_,httpUrl:()=>Qg,instanceof:()=>mv,int:()=>y_,int32:()=>S_,int64:()=>T_,intersection:()=>R_,invertCodec:()=>iv,ipv4:()=>o_,ipv6:()=>c_,json:()=>hv,jwt:()=>m_,keyof:()=>P_,ksuid:()=>a_,lazy:()=>sv,literal:()=>V,looseObject:()=>L,looseRecord:()=>V_,mac:()=>s_,map:()=>H_,meta:()=>Ny,nan:()=>tv,nanoid:()=>e_,nativeEnum:()=>W_,never:()=>j_,nonoptional:()=>Q_,null:()=>k_,nullable:()=>J_,nullish:()=>Y_,number:()=>M,object:()=>I,optional:()=>H,partialRecord:()=>B_,pipe:()=>nv,prefault:()=>Z_,preprocess:()=>gv,promise:()=>cv,readonly:()=>av,record:()=>z,refine:()=>fv,set:()=>U_,strictObject:()=>F_,string:()=>j,stringFormat:()=>h_,stringbool:()=>Py,success:()=>$_,superRefine:()=>pv,symbol:()=>D_,templateLiteral:()=>ov,transform:()=>K_,tuple:()=>z_,uint32:()=>C_,uint64:()=>E_,ulid:()=>r_,undefined:()=>O_,union:()=>R,unknown:()=>P,url:()=>Zg,uuid:()=>qg,uuidv4:()=>Jg,uuidv6:()=>Yg,uuidv7:()=>Xg,void:()=>M_,xid:()=>i_,xor:()=>I_});function Wg(e,t,n){let r=Object.getPrototypeOf(e),i=_v.get(r);if(i||(i=new Set,_v.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function j(e){return rp(yv,e)}function Gg(e){return ap(bv,e)}function Kg(e){return op(xv,e)}function qg(e){return sp(Sv,e)}function Jg(e){return cp(Sv,e)}function Yg(e){return lp(Sv,e)}function Xg(e){return up(Sv,e)}function Zg(e){return dp(Cv,e)}function Qg(e){return dp(Cv,{protocol:ns,hostname:ts,...b(e)})}function $g(e){return fp(wv,e)}function e_(e){return pp(Tv,e)}function t_(e){return mp(Ev,e)}function n_(e){return hp(Dv,e)}function r_(e){return gp(Ov,e)}function i_(e){return _p(kv,e)}function a_(e){return vp(Av,e)}function o_(e){return yp(jv,e)}function s_(e){return xp(Mv,e)}function c_(e){return bp(Nv,e)}function l_(e){return Sp(Pv,e)}function u_(e){return Cp(Fv,e)}function d_(e){return wp(Iv,e)}function f_(e){return Tp(Lv,e)}function p_(e){return Ep(Rv,e)}function m_(e){return Dp(zv,e)}function h_(e,t,n={}){return sh(Bv,e,t,n)}function g_(e){return sh(Bv,`hostname`,es,e)}function __(e){return sh(Bv,`hex`,hs,e)}function v_(e,t){let n=`${e}_${t?.enc??`hex`}`,r=bo[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return sh(Bv,n,r,t)}function M(e){return Mp(Vv,e)}function y_(e){return Pp(Hv,e)}function b_(e){return Fp(Hv,e)}function x_(e){return Ip(Hv,e)}function S_(e){return Lp(Hv,e)}function C_(e){return Rp(Hv,e)}function N(e){return zp(Uv,e)}function w_(e){return Vp(Wv,e)}function T_(e){return Up(Gv,e)}function E_(e){return Wp(Gv,e)}function D_(e){return Gp(Kv,e)}function O_(e){return Kp(qv,e)}function k_(e){return qp(Jv,e)}function A_(){return Jp(Yv)}function P(){return Yp(Xv)}function j_(e){return Xp(Zv,e)}function M_(e){return Zp(Qv,e)}function N_(e){return Qp($v,e)}function F(e,t){return km(ey,e,t)}function P_(e){let t=e._zod.def.shape;return B(Object.keys(t))}function I(e,t){return new ty({type:`object`,shape:e??{},...b(t)})}function F_(e,t){return new ty({type:`object`,shape:e,catchall:j_(),...b(t)})}function L(e,t){return new ty({type:`object`,shape:e,catchall:P(),...b(t)})}function R(e,t){return new ny({type:`union`,options:e,...b(t)})}function I_(e,t){return new ry({type:`union`,options:e,inclusive:!1,...b(t)})}function L_(e,t,n){return new iy({type:`union`,options:t,discriminator:e,...b(n)})}function R_(e,t){return new ay({type:`intersection`,left:e,right:t})}function z_(e,t,n){let r=t instanceof T;return new oy({type:`tuple`,items:e,rest:r?t:null,...b(r?n:t)})}function z(e,t,n){return!t||!t._zod?new sy({type:`record`,keyType:j(),valueType:e,...b(t)}):new sy({type:`record`,keyType:e,valueType:t,...b(n)})}function B_(e,t,n){let r=aa(e);return r._zod.values=void 0,new sy({type:`record`,keyType:r,valueType:t,...b(n)})}function V_(e,t,n){return new sy({type:`record`,keyType:e,valueType:t,mode:`loose`,...b(n)})}function H_(e,t,n){return new cy({type:`map`,keyType:e,valueType:t,...b(n)})}function U_(e,t){return new ly({type:`set`,valueType:e,...b(t)})}function B(e,t){return new uy({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...b(t)})}function W_(e,t){return new uy({type:`enum`,entries:e,...b(t)})}function V(e,t){return new dy({type:`literal`,values:Array.isArray(e)?e:[e],...b(t)})}function G_(e){return Vm(fy,e)}function K_(e){return new py({type:`transform`,transform:e})}function H(e){return new my({type:`optional`,innerType:e})}function q_(e){return new hy({type:`optional`,innerType:e})}function J_(e){return new gy({type:`nullable`,innerType:e})}function Y_(e){return H(J_(e))}function X_(e,t){return new _y({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():na(t)}})}function Z_(e,t){return new vy({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():na(t)}})}function Q_(e,t){return new yy({type:`nonoptional`,innerType:e,...b(t)})}function $_(e){return new by({type:`success`,innerType:e})}function ev(e,t){return new xy({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function tv(e){return em(Sy,e)}function nv(e,t){return new Cy({type:`pipe`,in:e,out:t})}function rv(e,t,n){return new wy({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function iv(e){let t=e._zod.def;return new wy({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function av(e){return new Ey({type:`readonly`,innerType:e})}function ov(e,t){return new Dy({type:`template_literal`,parts:e,...b(t)})}function sv(e){return new Oy({type:`lazy`,getter:e})}function cv(e){return new ky({type:`promise`,innerType:e})}function lv(e){return new Ay({type:`function`,input:Array.isArray(e?.input)?z_(e?.input):e?.input??F(P()),output:e?.output??P()})}function uv(e){let t=new w({check:`custom`});return t._zod.check=e,t}function dv(e,t){return eh(jy,e??(()=>!0),t)}function fv(e,t={}){return th(jy,e,t)}function pv(e,t){return nh(e,t)}function mv(e,t={}){let n=new jy({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...b(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function hv(e){let t=sv(()=>R([j(e),M(),N(),k_(),F(t),z(j(),t)]));return t}function gv(e,t){return new Ty({type:`pipe`,in:K_(e),out:t})}var _v,U,vv,yv,W,bv,xv,Sv,Cv,wv,Tv,Ev,Dv,Ov,kv,Av,jv,Mv,Nv,Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv,Gv,Kv,qv,Jv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy,yy,by,xy,Sy,Cy,wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My,Ny,Py,Fy=t((()=>{ug(),ig(),hh(),gg(),Eg(),Hg(),_v=new WeakMap,U=g(`ZodType`,(e,t)=>(T.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:mh(e,`input`),output:mh(e,`output`)}}),e.toJSONSchema=ph(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>Ag(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Mg(e,t,n),e.parseAsync=async(t,n)=>jg(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Ng(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Pg(e,t,n),e.decode=(t,n)=>Fg(e,t,n),e.encodeAsync=async(t,n)=>Ig(e,t,n),e.decodeAsync=async(t,n)=>Lg(e,t,n),e.safeEncode=(t,n)=>Rg(e,t,n),e.safeDecode=(t,n)=>zg(e,t,n),e.safeEncodeAsync=async(t,n)=>Bg(e,t,n),e.safeDecodeAsync=async(t,n)=>Vg(e,t,n),Wg(e,`ZodType`,{check(...e){let t=this.def;return this.clone(qi(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return aa(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(fv(e,t))},superRefine(e,t){return this.check(pv(e,t))},overwrite(e){return this.check(Cm(e))},optional(){return H(this)},exactOptional(){return q_(this)},nullable(){return J_(this)},nullish(){return H(J_(this))},nonoptional(e){return Q_(this,e)},array(){return F(this)},or(e){return R([this,e])},and(e){return R_(this,e)},transform(e){return nv(this,K_(e))},default(e){return X_(this,e)},prefault(e){return Z_(this,e)},catch(e){return ev(this,e)},pipe(e){return nv(this,e)},readonly(){return av(this)},describe(e){let t=this.clone();return tp.add(t,{description:e}),t},meta(...e){if(e.length===0)return tp.get(this);let t=this.clone();return tp.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return tp.get(e)?.description},configurable:!0}),e)),vv=g(`_ZodString`,(e,t)=>{Ac.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vh(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Wg(e,`_ZodString`,{regex(...e){return this.check(hm(...e))},includes(...e){return this.check(vm(...e))},startsWith(...e){return this.check(ym(...e))},endsWith(...e){return this.check(bm(...e))},min(...e){return this.check(pm(...e))},max(...e){return this.check(fm(...e))},length(...e){return this.check(mm(...e))},nonempty(...e){return this.check(pm(1,...e))},lowercase(e){return this.check(gm(e))},uppercase(e){return this.check(_m(e))},trim(){return this.check(Tm())},normalize(...e){return this.check(wm(...e))},toLowerCase(){return this.check(Em())},toUpperCase(){return this.check(Dm())},slugify(){return this.check(Om())}})}),yv=g(`ZodString`,(e,t)=>{Ac.init(e,t),vv.init(e,t),e.email=t=>e.check(ap(bv,t)),e.url=t=>e.check(dp(Cv,t)),e.jwt=t=>e.check(Dp(zv,t)),e.emoji=t=>e.check(fp(wv,t)),e.guid=t=>e.check(op(xv,t)),e.uuid=t=>e.check(sp(Sv,t)),e.uuidv4=t=>e.check(cp(Sv,t)),e.uuidv6=t=>e.check(lp(Sv,t)),e.uuidv7=t=>e.check(up(Sv,t)),e.nanoid=t=>e.check(pp(Tv,t)),e.guid=t=>e.check(op(xv,t)),e.cuid=t=>e.check(mp(Ev,t)),e.cuid2=t=>e.check(hp(Dv,t)),e.ulid=t=>e.check(gp(Ov,t)),e.base64=t=>e.check(wp(Iv,t)),e.base64url=t=>e.check(Tp(Lv,t)),e.xid=t=>e.check(_p(kv,t)),e.ksuid=t=>e.check(vp(Av,t)),e.ipv4=t=>e.check(yp(jv,t)),e.ipv6=t=>e.check(bp(Nv,t)),e.cidrv4=t=>e.check(Sp(Pv,t)),e.cidrv6=t=>e.check(Cp(Fv,t)),e.e164=t=>e.check(Ep(Rv,t)),e.datetime=t=>e.check(vg(t)),e.date=t=>e.check(yg(t)),e.time=t=>e.check(bg(t)),e.duration=t=>e.check(xg(t))}),W=g(`ZodStringFormat`,(e,t)=>{E.init(e,t),vv.init(e,t)}),bv=g(`ZodEmail`,(e,t)=>{Nc.init(e,t),W.init(e,t)}),xv=g(`ZodGUID`,(e,t)=>{jc.init(e,t),W.init(e,t)}),Sv=g(`ZodUUID`,(e,t)=>{Mc.init(e,t),W.init(e,t)}),Cv=g(`ZodURL`,(e,t)=>{Pc.init(e,t),W.init(e,t)}),wv=g(`ZodEmoji`,(e,t)=>{Fc.init(e,t),W.init(e,t)}),Tv=g(`ZodNanoID`,(e,t)=>{Ic.init(e,t),W.init(e,t)}),Ev=g(`ZodCUID`,(e,t)=>{Lc.init(e,t),W.init(e,t)}),Dv=g(`ZodCUID2`,(e,t)=>{Rc.init(e,t),W.init(e,t)}),Ov=g(`ZodULID`,(e,t)=>{zc.init(e,t),W.init(e,t)}),kv=g(`ZodXID`,(e,t)=>{Bc.init(e,t),W.init(e,t)}),Av=g(`ZodKSUID`,(e,t)=>{Vc.init(e,t),W.init(e,t)}),jv=g(`ZodIPv4`,(e,t)=>{Kc.init(e,t),W.init(e,t)}),Mv=g(`ZodMAC`,(e,t)=>{Jc.init(e,t),W.init(e,t)}),Nv=g(`ZodIPv6`,(e,t)=>{qc.init(e,t),W.init(e,t)}),Pv=g(`ZodCIDRv4`,(e,t)=>{Yc.init(e,t),W.init(e,t)}),Fv=g(`ZodCIDRv6`,(e,t)=>{Xc.init(e,t),W.init(e,t)}),Iv=g(`ZodBase64`,(e,t)=>{Zc.init(e,t),W.init(e,t)}),Lv=g(`ZodBase64URL`,(e,t)=>{Qc.init(e,t),W.init(e,t)}),Rv=g(`ZodE164`,(e,t)=>{$c.init(e,t),W.init(e,t)}),zv=g(`ZodJWT`,(e,t)=>{el.init(e,t),W.init(e,t)}),Bv=g(`ZodCustomStringFormat`,(e,t)=>{tl.init(e,t),W.init(e,t)}),Vv=g(`ZodNumber`,(e,t)=>{nl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yh(e,t,n,r),Wg(e,`ZodNumber`,{gt(e,t){return this.check(rm(e,t))},gte(e,t){return this.check(D(e,t))},min(e,t){return this.check(D(e,t))},lt(e,t){return this.check(tm(e,t))},lte(e,t){return this.check(nm(e,t))},max(e,t){return this.check(nm(e,t))},int(e){return this.check(y_(e))},safe(e){return this.check(y_(e))},positive(e){return this.check(rm(0,e))},nonnegative(e){return this.check(D(0,e))},negative(e){return this.check(tm(0,e))},nonpositive(e){return this.check(nm(0,e))},multipleOf(e,t){return this.check(cm(e,t))},step(e,t){return this.check(cm(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),Hv=g(`ZodNumberFormat`,(e,t)=>{rl.init(e,t),Vv.init(e,t)}),Uv=g(`ZodBoolean`,(e,t)=>{il.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bh(e,t,n,r)}),Wv=g(`ZodBigInt`,(e,t)=>{al.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xh(e,t,n,r),e.gte=(t,n)=>e.check(D(t,n)),e.min=(t,n)=>e.check(D(t,n)),e.gt=(t,n)=>e.check(rm(t,n)),e.gte=(t,n)=>e.check(D(t,n)),e.min=(t,n)=>e.check(D(t,n)),e.lt=(t,n)=>e.check(tm(t,n)),e.lte=(t,n)=>e.check(nm(t,n)),e.max=(t,n)=>e.check(nm(t,n)),e.positive=t=>e.check(rm(BigInt(0),t)),e.negative=t=>e.check(tm(BigInt(0),t)),e.nonpositive=t=>e.check(nm(BigInt(0),t)),e.nonnegative=t=>e.check(D(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(cm(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),Gv=g(`ZodBigIntFormat`,(e,t)=>{ol.init(e,t),Wv.init(e,t)}),Kv=g(`ZodSymbol`,(e,t)=>{sl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sh(e,t,n,r)}),qv=g(`ZodUndefined`,(e,t)=>{cl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wh(e,t,n,r)}),Jv=g(`ZodNull`,(e,t)=>{ll.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ch(e,t,n,r)}),Yv=g(`ZodAny`,(e,t)=>{ul.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dh(e,t,n,r)}),Xv=g(`ZodUnknown`,(e,t)=>{dl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oh(e,t,n,r)}),Zv=g(`ZodNever`,(e,t)=>{fl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Eh(e,t,n,r)}),Qv=g(`ZodVoid`,(e,t)=>{pl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Th(e,t,n,r)}),$v=g(`ZodDate`,(e,t)=>{ml.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kh(e,t,n,r),e.min=(t,n)=>e.check(D(t,n)),e.max=(t,n)=>e.check(nm(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),ey=g(`ZodArray`,(e,t)=>{hl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vh(e,t,n,r),e.element=t.element,Wg(e,`ZodArray`,{min(e,t){return this.check(pm(e,t))},nonempty(e){return this.check(pm(1,e))},max(e,t){return this.check(fm(e,t))},length(e,t){return this.check(mm(e,t))},unwrap(){return this.element}})}),ty=g(`ZodObject`,(e,t)=>{_l.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hh(e,t,n,r),y(e,`shape`,()=>t.shape),Wg(e,`ZodObject`,{keyof(){return B(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:P()})},loose(){return this.clone({...this._zod.def,catchall:P()})},strict(){return this.clone({...this._zod.def,catchall:j_()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return ua(this,e)},safeExtend(e){return da(this,e)},merge(e){return fa(this,e)},pick(e){return ca(this,e)},omit(e){return la(this,e)},partial(...e){return pa(my,this,e[0])},required(...e){return ma(yy,this,e[0])}})}),ny=g(`ZodUnion`,(e,t)=>{vl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uh(e,t,n,r),e.options=t.options}),ry=g(`ZodXor`,(e,t)=>{ny.init(e,t),yl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uh(e,t,n,r),e.options=t.options}),iy=g(`ZodDiscriminatedUnion`,(e,t)=>{ny.init(e,t),bl.init(e,t)}),ay=g(`ZodIntersection`,(e,t)=>{xl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wh(e,t,n,r)}),oy=g(`ZodTuple`,(e,t)=>{Sl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gh(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),sy=g(`ZodRecord`,(e,t)=>{Cl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kh(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),cy=g(`ZodMap`,(e,t)=>{wl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zh(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(um(...t)),e.nonempty=t=>e.check(um(1,t)),e.max=(...t)=>e.check(lm(...t)),e.size=(...t)=>e.check(dm(...t))}),ly=g(`ZodSet`,(e,t)=>{Tl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bh(e,t,n,r),e.min=(...t)=>e.check(um(...t)),e.nonempty=t=>e.check(um(1,t)),e.max=(...t)=>e.check(lm(...t)),e.size=(...t)=>e.check(dm(...t))}),uy=g(`ZodEnum`,(e,t)=>{El.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ah(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new uy({...t,checks:[],...b(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new uy({...t,checks:[],...b(r),entries:i})}}),dy=g(`ZodLiteral`,(e,t)=>{Dl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jh(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),fy=g(`ZodFile`,(e,t)=>{Ol.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ph(e,t,n,r),e.min=(t,n)=>e.check(um(t,n)),e.max=(t,n)=>e.check(lm(t,n)),e.mime=(t,n)=>e.check(Sm(Array.isArray(t)?t:[t],n))}),py=g(`ZodTransform`,(e,t)=>{kl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rh(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ai(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Sa(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Sa(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),my=g(`ZodOptional`,(e,t)=>{Al.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tg(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),hy=g(`ZodExactOptional`,(e,t)=>{jl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tg(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),gy=g(`ZodNullable`,(e,t)=>{Ml.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),_y=g(`ZodDefault`,(e,t)=>{Nl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),vy=g(`ZodPrefault`,(e,t)=>{Pl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),yy=g(`ZodNonOptional`,(e,t)=>{Fl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),by=g(`ZodSuccess`,(e,t)=>{Il.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),xy=g(`ZodCatch`,(e,t)=>{Ll.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Sy=g(`ZodNaN`,(e,t)=>{Rl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mh(e,t,n,r)}),Cy=g(`ZodPipe`,(e,t)=>{zl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qh(e,t,n,r),e.in=t.in,e.out=t.out}),wy=g(`ZodCodec`,(e,t)=>{Cy.init(e,t),Bl.init(e,t)}),Ty=g(`ZodPreprocess`,(e,t)=>{Cy.init(e,t),Vl.init(e,t)}),Ey=g(`ZodReadonly`,(e,t)=>{Hl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$h(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Dy=g(`ZodTemplateLiteral`,(e,t)=>{Ul.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nh(e,t,n,r)}),Oy=g(`ZodLazy`,(e,t)=>{Kl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ng(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),ky=g(`ZodPromise`,(e,t)=>{Gl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eg(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Ay=g(`ZodFunction`,(e,t)=>{Wl.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lh(e,t,n,r)}),jy=g(`ZodCustom`,(e,t)=>{ql.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ih(e,t,n,r)}),My=ih,Ny=ah,Py=(...e)=>oh({Codec:wy,Boolean:Uv,String:yv},...e)}));function Iy(e){_({customError:e})}function Ly(){return _().customError}var Ry,zy,By=t((()=>{ug(),Ry={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`},zy||={}}));function Vy(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function Hy(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function Uy(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return K.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return K.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=G(Hy(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return K.null();if(n.length===0)return K.never();if(n.length===1)return K.literal(n[0]);if(n.every(e=>typeof e==`string`))return K.enum(n);let r=n.map(e=>K.literal(e));return r.length<2?r[0]:K.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return K.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>Uy({...e,type:n},t));return r.length===0?K.never():r.length===1?r[0]:K.union(r)}if(!n)return K.any();let r;switch(n){case`string`:{let t=K.string();if(e.format){let n=e.format;n===`email`?t=t.check(K.email()):n===`uri`||n===`uri-reference`?t=t.check(K.url()):n===`uuid`||n===`guid`?t=t.check(K.uuid()):n===`date-time`?t=t.check(K.iso.datetime()):n===`date`?t=t.check(K.iso.date()):n===`time`?t=t.check(K.iso.time()):n===`duration`?t=t.check(K.iso.duration()):n===`ipv4`?t=t.check(K.ipv4()):n===`ipv6`?t=t.check(K.ipv6()):n===`mac`?t=t.check(K.mac()):n===`cidr`?t=t.check(K.cidrv4()):n===`cidr-v6`?t=t.check(K.cidrv6()):n===`base64`?t=t.check(K.base64()):n===`base64url`?t=t.check(K.base64url()):n===`e164`?t=t.check(K.e164()):n===`jwt`?t=t.check(K.jwt()):n===`emoji`?t=t.check(K.emoji()):n===`nanoid`?t=t.check(K.nanoid()):n===`cuid`?t=t.check(K.cuid()):n===`cuid2`?t=t.check(K.cuid2()):n===`ulid`?t=t.check(K.ulid()):n===`xid`?t=t.check(K.xid()):n===`ksuid`&&(t=t.check(K.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?K.number().int():K.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=K.boolean();break;case`null`:r=K.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=G(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=G(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?G(e.additionalProperties,t):K.any();if(Object.keys(n).length===0){r=K.record(i,a);break}let o=K.object(n).passthrough(),s=K.looseRecord(i,a);r=K.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=G(i[e],t),r=K.string().regex(new RegExp(e));o.push(K.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(K.object(n).passthrough()),s.push(...o),s.length===0)r=K.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=K.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=K.intersection(e,s[t]);r=e}break}let o=K.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(G(e.additionalProperties,t)):o.passthrough();break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(e=>G(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?G(i,t):void 0;r=o?K.tuple(a).rest(o):K.tuple(a),typeof e.minItems==`number`&&(r=r.check(K.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(K.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>G(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?G(e.additionalItems,t):void 0;r=a?K.tuple(n).rest(a):K.tuple(n),typeof e.minItems==`number`&&(r=r.check(K.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(K.maxLength(e.maxItems)))}else if(i!==void 0){let n=G(i,t),a=K.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=K.array(K.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function G(e,t){if(typeof e==`boolean`)return e?K.any():K.never();let n=Uy(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>G(e,t)),a=K.union(i);n=r?K.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>G(e,t)),a=K.xor(i);n=r?K.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:K.any();else{let i=r?n:G(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=K.intersection(i,G(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=K.nullable(n)),e.readOnly===!0&&(n=K.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);for(let t of Object.keys(e))Gy.has(t)||(i[t]=e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function Wy(e,t){if(typeof e==`boolean`)return e?K.any():K.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:Vy(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??tp};return G(n,r)}var K,Gy,Ky=t((()=>{np(),gg(),Eg(),Fy(),K={...Ug,...hg,iso:_g},Gy=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),qy=n({bigint:()=>Zy,boolean:()=>Xy,date:()=>Qy,number:()=>Yy,string:()=>Jy});function Jy(e){return ip(yv,e)}function Yy(e){return Np(Vv,e)}function Xy(e){return Bp(Uv,e)}function Zy(e){return Hp(Wv,e)}function Qy(e){return $p($v,e)}var $y=t((()=>{ug(),Fy()})),eb=n({$brand:()=>Oi,$input:()=>$f,$output:()=>Qf,NEVER:()=>Di,TimePrecision:()=>ch,ZodAny:()=>Yv,ZodArray:()=>ey,ZodBase64:()=>Iv,ZodBase64URL:()=>Lv,ZodBigInt:()=>Wv,ZodBigIntFormat:()=>Gv,ZodBoolean:()=>Uv,ZodCIDRv4:()=>Pv,ZodCIDRv6:()=>Fv,ZodCUID:()=>Ev,ZodCUID2:()=>Dv,ZodCatch:()=>xy,ZodCodec:()=>wy,ZodCustom:()=>jy,ZodCustomStringFormat:()=>Bv,ZodDate:()=>$v,ZodDefault:()=>_y,ZodDiscriminatedUnion:()=>iy,ZodE164:()=>Rv,ZodEmail:()=>bv,ZodEmoji:()=>wv,ZodEnum:()=>uy,ZodError:()=>Og,ZodExactOptional:()=>hy,ZodFile:()=>fy,ZodFirstPartyTypeKind:()=>zy,ZodFunction:()=>Ay,ZodGUID:()=>xv,ZodIPv4:()=>jv,ZodIPv6:()=>Nv,ZodISODate:()=>Cg,ZodISODateTime:()=>Sg,ZodISODuration:()=>Tg,ZodISOTime:()=>wg,ZodIntersection:()=>ay,ZodIssueCode:()=>Ry,ZodJWT:()=>zv,ZodKSUID:()=>Av,ZodLazy:()=>Oy,ZodLiteral:()=>dy,ZodMAC:()=>Mv,ZodMap:()=>cy,ZodNaN:()=>Sy,ZodNanoID:()=>Tv,ZodNever:()=>Zv,ZodNonOptional:()=>yy,ZodNull:()=>Jv,ZodNullable:()=>gy,ZodNumber:()=>Vv,ZodNumberFormat:()=>Hv,ZodObject:()=>ty,ZodOptional:()=>my,ZodPipe:()=>Cy,ZodPrefault:()=>vy,ZodPreprocess:()=>Ty,ZodPromise:()=>ky,ZodReadonly:()=>Ey,ZodRealError:()=>A,ZodRecord:()=>sy,ZodSet:()=>ly,ZodString:()=>yv,ZodStringFormat:()=>W,ZodSuccess:()=>by,ZodSymbol:()=>Kv,ZodTemplateLiteral:()=>Dy,ZodTransform:()=>py,ZodTuple:()=>oy,ZodType:()=>U,ZodULID:()=>Ov,ZodURL:()=>Cv,ZodUUID:()=>Sv,ZodUndefined:()=>qv,ZodUnion:()=>ny,ZodUnknown:()=>Xv,ZodVoid:()=>Qv,ZodXID:()=>kv,ZodXor:()=>ry,_ZodString:()=>vv,_default:()=>X_,_function:()=>lv,any:()=>A_,array:()=>F,base64:()=>d_,base64url:()=>f_,bigint:()=>w_,boolean:()=>N,catch:()=>ev,check:()=>uv,cidrv4:()=>l_,cidrv6:()=>u_,clone:()=>aa,codec:()=>rv,coerce:()=>qy,config:()=>_,core:()=>lg,cuid:()=>t_,cuid2:()=>n_,custom:()=>dv,date:()=>N_,decode:()=>Fg,decodeAsync:()=>Lg,describe:()=>My,discriminatedUnion:()=>L_,e164:()=>p_,email:()=>Gg,emoji:()=>$g,encode:()=>Pg,encodeAsync:()=>Ig,endsWith:()=>bm,enum:()=>B,exactOptional:()=>q_,file:()=>G_,flattenError:()=>za,float32:()=>b_,float64:()=>x_,formatError:()=>Ba,fromJSONSchema:()=>Wy,function:()=>lv,getErrorMap:()=>Ly,globalRegistry:()=>tp,gt:()=>rm,gte:()=>D,guid:()=>Kg,hash:()=>v_,hex:()=>__,hostname:()=>g_,httpUrl:()=>Qg,includes:()=>vm,instanceof:()=>mv,int:()=>y_,int32:()=>S_,int64:()=>T_,intersection:()=>R_,invertCodec:()=>iv,ipv4:()=>o_,ipv6:()=>c_,iso:()=>_g,json:()=>hv,jwt:()=>m_,keyof:()=>P_,ksuid:()=>a_,lazy:()=>sv,length:()=>mm,literal:()=>V,locales:()=>Jf,looseObject:()=>L,looseRecord:()=>V_,lowercase:()=>gm,lt:()=>tm,lte:()=>nm,mac:()=>s_,map:()=>H_,maxLength:()=>fm,maxSize:()=>lm,meta:()=>Ny,mime:()=>Sm,minLength:()=>pm,minSize:()=>um,multipleOf:()=>cm,nan:()=>tv,nanoid:()=>e_,nativeEnum:()=>W_,negative:()=>am,never:()=>j_,nonnegative:()=>sm,nonoptional:()=>Q_,nonpositive:()=>om,normalize:()=>wm,null:()=>k_,nullable:()=>J_,nullish:()=>Y_,number:()=>M,object:()=>I,optional:()=>H,overwrite:()=>Cm,parse:()=>Ag,parseAsync:()=>jg,partialRecord:()=>B_,pipe:()=>nv,positive:()=>im,prefault:()=>Z_,preprocess:()=>gv,prettifyError:()=>Ua,promise:()=>cv,property:()=>xm,readonly:()=>av,record:()=>z,refine:()=>fv,regex:()=>hm,regexes:()=>bo,registry:()=>Xf,safeDecode:()=>zg,safeDecodeAsync:()=>Vg,safeEncode:()=>Rg,safeEncodeAsync:()=>Bg,safeParse:()=>Mg,safeParseAsync:()=>Ng,set:()=>U_,setErrorMap:()=>Iy,size:()=>dm,slugify:()=>Om,startsWith:()=>ym,strictObject:()=>F_,string:()=>j,stringFormat:()=>h_,stringbool:()=>Py,success:()=>$_,superRefine:()=>pv,symbol:()=>D_,templateLiteral:()=>ov,toJSONSchema:()=>gh,toLowerCase:()=>Em,toUpperCase:()=>Dm,transform:()=>K_,treeifyError:()=>Va,trim:()=>Tm,tuple:()=>z_,uint32:()=>C_,uint64:()=>E_,ulid:()=>r_,undefined:()=>O_,union:()=>R,unknown:()=>P,uppercase:()=>_m,url:()=>Zg,util:()=>Ni,uuid:()=>qg,uuidv4:()=>Jg,uuidv6:()=>Yg,uuidv7:()=>Xg,void:()=>M_,xid:()=>i_,xor:()=>I_}),tb=t((()=>{ug(),Fy(),gg(),kg(),Hg(),By(),Tu(),ig(),Ky(),Yf(),Eg(),$y(),_(Cu())})),nb,rb=t((()=>{tb(),tb(),nb=eb})),ib=n({$brand:()=>Oi,$input:()=>$f,$output:()=>Qf,NEVER:()=>Di,TimePrecision:()=>ch,ZodAny:()=>Yv,ZodArray:()=>ey,ZodBase64:()=>Iv,ZodBase64URL:()=>Lv,ZodBigInt:()=>Wv,ZodBigIntFormat:()=>Gv,ZodBoolean:()=>Uv,ZodCIDRv4:()=>Pv,ZodCIDRv6:()=>Fv,ZodCUID:()=>Ev,ZodCUID2:()=>Dv,ZodCatch:()=>xy,ZodCodec:()=>wy,ZodCustom:()=>jy,ZodCustomStringFormat:()=>Bv,ZodDate:()=>$v,ZodDefault:()=>_y,ZodDiscriminatedUnion:()=>iy,ZodE164:()=>Rv,ZodEmail:()=>bv,ZodEmoji:()=>wv,ZodEnum:()=>uy,ZodError:()=>Og,ZodExactOptional:()=>hy,ZodFile:()=>fy,ZodFirstPartyTypeKind:()=>zy,ZodFunction:()=>Ay,ZodGUID:()=>xv,ZodIPv4:()=>jv,ZodIPv6:()=>Nv,ZodISODate:()=>Cg,ZodISODateTime:()=>Sg,ZodISODuration:()=>Tg,ZodISOTime:()=>wg,ZodIntersection:()=>ay,ZodIssueCode:()=>Ry,ZodJWT:()=>zv,ZodKSUID:()=>Av,ZodLazy:()=>Oy,ZodLiteral:()=>dy,ZodMAC:()=>Mv,ZodMap:()=>cy,ZodNaN:()=>Sy,ZodNanoID:()=>Tv,ZodNever:()=>Zv,ZodNonOptional:()=>yy,ZodNull:()=>Jv,ZodNullable:()=>gy,ZodNumber:()=>Vv,ZodNumberFormat:()=>Hv,ZodObject:()=>ty,ZodOptional:()=>my,ZodPipe:()=>Cy,ZodPrefault:()=>vy,ZodPreprocess:()=>Ty,ZodPromise:()=>ky,ZodReadonly:()=>Ey,ZodRealError:()=>A,ZodRecord:()=>sy,ZodSet:()=>ly,ZodString:()=>yv,ZodStringFormat:()=>W,ZodSuccess:()=>by,ZodSymbol:()=>Kv,ZodTemplateLiteral:()=>Dy,ZodTransform:()=>py,ZodTuple:()=>oy,ZodType:()=>U,ZodULID:()=>Ov,ZodURL:()=>Cv,ZodUUID:()=>Sv,ZodUndefined:()=>qv,ZodUnion:()=>ny,ZodUnknown:()=>Xv,ZodVoid:()=>Qv,ZodXID:()=>kv,ZodXor:()=>ry,_ZodString:()=>vv,_default:()=>X_,_function:()=>lv,any:()=>A_,array:()=>F,base64:()=>d_,base64url:()=>f_,bigint:()=>w_,boolean:()=>N,catch:()=>ev,check:()=>uv,cidrv4:()=>l_,cidrv6:()=>u_,clone:()=>aa,codec:()=>rv,coerce:()=>qy,config:()=>_,core:()=>lg,cuid:()=>t_,cuid2:()=>n_,custom:()=>dv,date:()=>N_,decode:()=>Fg,decodeAsync:()=>Lg,default:()=>ab,describe:()=>My,discriminatedUnion:()=>L_,e164:()=>p_,email:()=>Gg,emoji:()=>$g,encode:()=>Pg,encodeAsync:()=>Ig,endsWith:()=>bm,enum:()=>B,exactOptional:()=>q_,file:()=>G_,flattenError:()=>za,float32:()=>b_,float64:()=>x_,formatError:()=>Ba,fromJSONSchema:()=>Wy,function:()=>lv,getErrorMap:()=>Ly,globalRegistry:()=>tp,gt:()=>rm,gte:()=>D,guid:()=>Kg,hash:()=>v_,hex:()=>__,hostname:()=>g_,httpUrl:()=>Qg,includes:()=>vm,instanceof:()=>mv,int:()=>y_,int32:()=>S_,int64:()=>T_,intersection:()=>R_,invertCodec:()=>iv,ipv4:()=>o_,ipv6:()=>c_,iso:()=>_g,json:()=>hv,jwt:()=>m_,keyof:()=>P_,ksuid:()=>a_,lazy:()=>sv,length:()=>mm,literal:()=>V,locales:()=>Jf,looseObject:()=>L,looseRecord:()=>V_,lowercase:()=>gm,lt:()=>tm,lte:()=>nm,mac:()=>s_,map:()=>H_,maxLength:()=>fm,maxSize:()=>lm,meta:()=>Ny,mime:()=>Sm,minLength:()=>pm,minSize:()=>um,multipleOf:()=>cm,nan:()=>tv,nanoid:()=>e_,nativeEnum:()=>W_,negative:()=>am,never:()=>j_,nonnegative:()=>sm,nonoptional:()=>Q_,nonpositive:()=>om,normalize:()=>wm,null:()=>k_,nullable:()=>J_,nullish:()=>Y_,number:()=>M,object:()=>I,optional:()=>H,overwrite:()=>Cm,parse:()=>Ag,parseAsync:()=>jg,partialRecord:()=>B_,pipe:()=>nv,positive:()=>im,prefault:()=>Z_,preprocess:()=>gv,prettifyError:()=>Ua,promise:()=>cv,property:()=>xm,readonly:()=>av,record:()=>z,refine:()=>fv,regex:()=>hm,regexes:()=>bo,registry:()=>Xf,safeDecode:()=>zg,safeDecodeAsync:()=>Vg,safeEncode:()=>Rg,safeEncodeAsync:()=>Bg,safeParse:()=>Mg,safeParseAsync:()=>Ng,set:()=>U_,setErrorMap:()=>Iy,size:()=>dm,slugify:()=>Om,startsWith:()=>ym,strictObject:()=>F_,string:()=>j,stringFormat:()=>h_,stringbool:()=>Py,success:()=>$_,superRefine:()=>pv,symbol:()=>D_,templateLiteral:()=>ov,toJSONSchema:()=>gh,toLowerCase:()=>Em,toUpperCase:()=>Dm,transform:()=>K_,treeifyError:()=>Va,trim:()=>Tm,tuple:()=>z_,uint32:()=>C_,uint64:()=>E_,ulid:()=>r_,undefined:()=>O_,union:()=>R,unknown:()=>P,uppercase:()=>_m,url:()=>Zg,util:()=>Ni,uuid:()=>qg,uuidv4:()=>Jg,uuidv6:()=>Yg,uuidv7:()=>Xg,void:()=>M_,xid:()=>i_,xor:()=>I_,z:()=>eb}),ab,ob=t((()=>{rb(),rb(),ab=nb}));ob();var sb=`io.modelcontextprotocol/related-task`,q=dv(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),cb=R([j(),M().int()]),lb=j();L({ttl:M().optional(),pollInterval:M().optional()});var ub=I({ttl:M().optional()}),db=I({taskId:j()}),fb=L({progressToken:cb.optional(),[sb]:db.optional()}),pb=I({_meta:fb.optional()}),mb=pb.extend({task:ub.optional()}),hb=e=>mb.safeParse(e).success,J=I({method:j(),params:pb.loose().optional()}),gb=I({_meta:fb.optional()}),_b=I({method:j(),params:gb.loose().optional()}),Y=L({_meta:fb.optional()}),vb=R([j(),M().int()]),yb=I({jsonrpc:V(`2.0`),id:vb,...J.shape}).strict(),bb=e=>yb.safeParse(e).success,xb=I({jsonrpc:V(`2.0`),..._b.shape}).strict(),Sb=e=>xb.safeParse(e).success,Cb=I({jsonrpc:V(`2.0`),id:vb,result:Y}).strict(),wb=e=>Cb.safeParse(e).success,X;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(X||={});var Tb=I({jsonrpc:V(`2.0`),id:vb.optional(),error:I({code:M().int(),message:j(),data:P().optional()})}).strict(),Eb=e=>Tb.safeParse(e).success,Db=R([yb,xb,Cb,Tb]);R([Cb,Tb]);var Ob=Y.strict(),kb=gb.extend({requestId:vb.optional(),reason:j().optional()}),Ab=_b.extend({method:V(`notifications/cancelled`),params:kb}),jb=I({icons:F(I({src:j(),mimeType:j().optional(),sizes:F(j()).optional(),theme:B([`light`,`dark`]).optional()})).optional()}),Mb=I({name:j(),title:j().optional()}),Nb=Mb.extend({...Mb.shape,...jb.shape,version:j(),websiteUrl:j().optional(),description:j().optional()}),Pb=gv(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,R_(I({form:R_(I({applyDefaults:N().optional()}),z(j(),P())).optional(),url:q.optional()}),z(j(),P()).optional())),Fb=L({list:q.optional(),cancel:q.optional(),requests:L({sampling:L({createMessage:q.optional()}).optional(),elicitation:L({create:q.optional()}).optional()}).optional()}),Ib=L({list:q.optional(),cancel:q.optional(),requests:L({tools:L({call:q.optional()}).optional()}).optional()}),Lb=I({experimental:z(j(),q).optional(),sampling:I({context:q.optional(),tools:q.optional()}).optional(),elicitation:Pb.optional(),roots:I({listChanged:N().optional()}).optional(),tasks:Fb.optional(),extensions:z(j(),q).optional()}),Rb=pb.extend({protocolVersion:j(),capabilities:Lb,clientInfo:Nb}),zb=J.extend({method:V(`initialize`),params:Rb}),Bb=I({experimental:z(j(),q).optional(),logging:q.optional(),completions:q.optional(),prompts:I({listChanged:N().optional()}).optional(),resources:I({subscribe:N().optional(),listChanged:N().optional()}).optional(),tools:I({listChanged:N().optional()}).optional(),tasks:Ib.optional(),extensions:z(j(),q).optional()}),Vb=Y.extend({protocolVersion:j(),capabilities:Bb,serverInfo:Nb,instructions:j().optional()}),Hb=_b.extend({method:V(`notifications/initialized`),params:gb.optional()}),Ub=J.extend({method:V(`ping`),params:pb.optional()}),Wb=I({progress:M(),total:H(M()),message:H(j())}),Gb=I({...gb.shape,...Wb.shape,progressToken:cb}),Kb=_b.extend({method:V(`notifications/progress`),params:Gb}),qb=pb.extend({cursor:lb.optional()}),Jb=J.extend({params:qb.optional()}),Yb=Y.extend({nextCursor:lb.optional()}),Xb=B([`working`,`input_required`,`completed`,`failed`,`cancelled`]),Zb=I({taskId:j(),status:Xb,ttl:R([M(),k_()]),createdAt:j(),lastUpdatedAt:j(),pollInterval:H(M()),statusMessage:H(j())}),Qb=Y.extend({task:Zb}),$b=gb.merge(Zb),ex=_b.extend({method:V(`notifications/tasks/status`),params:$b}),tx=J.extend({method:V(`tasks/get`),params:pb.extend({taskId:j()})}),nx=Y.merge(Zb),rx=J.extend({method:V(`tasks/result`),params:pb.extend({taskId:j()})});Y.loose();var ix=Jb.extend({method:V(`tasks/list`)}),ax=Yb.extend({tasks:F(Zb)}),ox=J.extend({method:V(`tasks/cancel`),params:pb.extend({taskId:j()})}),sx=Y.merge(Zb),cx=I({uri:j(),mimeType:H(j()),_meta:z(j(),P()).optional()}),lx=cx.extend({text:j()}),ux=j().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),dx=cx.extend({blob:ux}),fx=B([`user`,`assistant`]),px=I({audience:F(fx).optional(),priority:M().min(0).max(1).optional(),lastModified:vg({offset:!0}).optional()}),mx=I({...Mb.shape,...jb.shape,uri:j(),description:H(j()),mimeType:H(j()),size:H(M()),annotations:px.optional(),_meta:H(L({}))}),hx=I({...Mb.shape,...jb.shape,uriTemplate:j(),description:H(j()),mimeType:H(j()),annotations:px.optional(),_meta:H(L({}))}),gx=Jb.extend({method:V(`resources/list`)}),_x=Yb.extend({resources:F(mx)}),vx=Jb.extend({method:V(`resources/templates/list`)}),yx=Yb.extend({resourceTemplates:F(hx)}),bx=pb.extend({uri:j()}),xx=bx,Sx=J.extend({method:V(`resources/read`),params:xx}),Cx=Y.extend({contents:F(R([lx,dx]))}),wx=_b.extend({method:V(`notifications/resources/list_changed`),params:gb.optional()}),Tx=bx,Ex=J.extend({method:V(`resources/subscribe`),params:Tx}),Dx=bx,Ox=J.extend({method:V(`resources/unsubscribe`),params:Dx}),kx=gb.extend({uri:j()}),Ax=_b.extend({method:V(`notifications/resources/updated`),params:kx}),jx=I({name:j(),description:H(j()),required:H(N())}),Mx=I({...Mb.shape,...jb.shape,description:H(j()),arguments:H(F(jx)),_meta:H(L({}))}),Nx=Jb.extend({method:V(`prompts/list`)}),Px=Yb.extend({prompts:F(Mx)}),Fx=pb.extend({name:j(),arguments:z(j(),j()).optional()}),Ix=J.extend({method:V(`prompts/get`),params:Fx}),Lx=I({type:V(`text`),text:j(),annotations:px.optional(),_meta:z(j(),P()).optional()}),Rx=I({type:V(`image`),data:ux,mimeType:j(),annotations:px.optional(),_meta:z(j(),P()).optional()}),zx=I({type:V(`audio`),data:ux,mimeType:j(),annotations:px.optional(),_meta:z(j(),P()).optional()}),Bx=I({type:V(`tool_use`),name:j(),id:j(),input:z(j(),P()),_meta:z(j(),P()).optional()}),Vx=I({type:V(`resource`),resource:R([lx,dx]),annotations:px.optional(),_meta:z(j(),P()).optional()}),Hx=mx.extend({type:V(`resource_link`)}),Ux=R([Lx,Rx,zx,Hx,Vx]),Wx=I({role:fx,content:Ux}),Gx=Y.extend({description:j().optional(),messages:F(Wx)}),Kx=_b.extend({method:V(`notifications/prompts/list_changed`),params:gb.optional()}),qx=I({title:j().optional(),readOnlyHint:N().optional(),destructiveHint:N().optional(),idempotentHint:N().optional(),openWorldHint:N().optional()}),Jx=I({taskSupport:B([`required`,`optional`,`forbidden`]).optional()}),Yx=I({...Mb.shape,...jb.shape,description:j().optional(),inputSchema:I({type:V(`object`),properties:z(j(),q).optional(),required:F(j()).optional()}).catchall(P()),outputSchema:I({type:V(`object`),properties:z(j(),q).optional(),required:F(j()).optional()}).catchall(P()).optional(),annotations:qx.optional(),execution:Jx.optional(),_meta:z(j(),P()).optional()}),Xx=Jb.extend({method:V(`tools/list`)}),Zx=Yb.extend({tools:F(Yx)}),Qx=Y.extend({content:F(Ux).default([]),structuredContent:z(j(),P()).optional(),isError:N().optional()});Qx.or(Y.extend({toolResult:P()}));var $x=mb.extend({name:j(),arguments:z(j(),P()).optional()}),eS=J.extend({method:V(`tools/call`),params:$x}),tS=_b.extend({method:V(`notifications/tools/list_changed`),params:gb.optional()});I({autoRefresh:N().default(!0),debounceMs:M().int().nonnegative().default(300)});var nS=B([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),rS=pb.extend({level:nS}),iS=J.extend({method:V(`logging/setLevel`),params:rS}),aS=gb.extend({level:nS,logger:j().optional(),data:P()}),oS=_b.extend({method:V(`notifications/message`),params:aS}),sS=I({hints:F(I({name:j().optional()})).optional(),costPriority:M().min(0).max(1).optional(),speedPriority:M().min(0).max(1).optional(),intelligencePriority:M().min(0).max(1).optional()}),cS=I({mode:B([`auto`,`required`,`none`]).optional()}),lS=I({type:V(`tool_result`),toolUseId:j().describe(`The unique identifier for the corresponding tool call.`),content:F(Ux).default([]),structuredContent:I({}).loose().optional(),isError:N().optional(),_meta:z(j(),P()).optional()}),uS=L_(`type`,[Lx,Rx,zx]),dS=L_(`type`,[Lx,Rx,zx,Bx,lS]),fS=I({role:fx,content:R([dS,F(dS)]),_meta:z(j(),P()).optional()}),pS=mb.extend({messages:F(fS),modelPreferences:sS.optional(),systemPrompt:j().optional(),includeContext:B([`none`,`thisServer`,`allServers`]).optional(),temperature:M().optional(),maxTokens:M().int(),stopSequences:F(j()).optional(),metadata:q.optional(),tools:F(Yx).optional(),toolChoice:cS.optional()}),mS=J.extend({method:V(`sampling/createMessage`),params:pS}),hS=Y.extend({model:j(),stopReason:H(B([`endTurn`,`stopSequence`,`maxTokens`]).or(j())),role:fx,content:uS}),gS=Y.extend({model:j(),stopReason:H(B([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(j())),role:fx,content:R([dS,F(dS)])}),_S=I({type:V(`boolean`),title:j().optional(),description:j().optional(),default:N().optional()}),vS=I({type:V(`string`),title:j().optional(),description:j().optional(),minLength:M().optional(),maxLength:M().optional(),format:B([`email`,`uri`,`date`,`date-time`]).optional(),default:j().optional()}),yS=I({type:B([`number`,`integer`]),title:j().optional(),description:j().optional(),minimum:M().optional(),maximum:M().optional(),default:M().optional()}),bS=I({type:V(`string`),title:j().optional(),description:j().optional(),enum:F(j()),default:j().optional()}),xS=I({type:V(`string`),title:j().optional(),description:j().optional(),oneOf:F(I({const:j(),title:j()})),default:j().optional()}),SS=R([R([I({type:V(`string`),title:j().optional(),description:j().optional(),enum:F(j()),enumNames:F(j()).optional(),default:j().optional()}),R([bS,xS]),R([I({type:V(`array`),title:j().optional(),description:j().optional(),minItems:M().optional(),maxItems:M().optional(),items:I({type:V(`string`),enum:F(j())}),default:F(j()).optional()}),I({type:V(`array`),title:j().optional(),description:j().optional(),minItems:M().optional(),maxItems:M().optional(),items:I({anyOf:F(I({const:j(),title:j()}))}),default:F(j()).optional()})])]),_S,vS,yS]),CS=R([mb.extend({mode:V(`form`).optional(),message:j(),requestedSchema:I({type:V(`object`),properties:z(j(),SS),required:F(j()).optional()})}),mb.extend({mode:V(`url`),message:j(),elicitationId:j(),url:j().url()})]),wS=J.extend({method:V(`elicitation/create`),params:CS}),TS=gb.extend({elicitationId:j()}),ES=_b.extend({method:V(`notifications/elicitation/complete`),params:TS}),DS=Y.extend({action:B([`accept`,`decline`,`cancel`]),content:gv(e=>e===null?void 0:e,z(j(),R([j(),M(),N(),F(j())])).optional())}),OS=I({type:V(`ref/resource`),uri:j()}),kS=I({type:V(`ref/prompt`),name:j()}),AS=pb.extend({ref:R([kS,OS]),argument:I({name:j(),value:j()}),context:I({arguments:z(j(),j()).optional()}).optional()}),jS=J.extend({method:V(`completion/complete`),params:AS}),MS=Y.extend({completion:L({values:F(j()).max(100),total:H(M().int()),hasMore:H(N())})}),NS=I({uri:j().startsWith(`file://`),name:j().optional(),_meta:z(j(),P()).optional()}),PS=J.extend({method:V(`roots/list`),params:pb.optional()}),FS=Y.extend({roots:F(NS)}),IS=_b.extend({method:V(`notifications/roots/list_changed`),params:gb.optional()});R([Ub,zb,jS,iS,Ix,Nx,gx,vx,Sx,Ex,Ox,eS,Xx,tx,rx,ix,ox]),R([Ab,Kb,Hb,IS,ex]),R([Ob,hS,gS,DS,FS,nx,ax,Qb]),R([Ub,mS,wS,PS,tx,rx,ix,ox]),R([Ab,Kb,oS,Ax,wx,tS,Kx,ex,ES]),R([Ob,Vb,MS,Gx,Px,_x,yx,Cx,Qx,Zx,nx,ax,Qb]);var Z=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===X.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new LS(e.elicitations,n)}return new e(t,n,r)}},LS=class extends Z{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(X.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function RS(e){return e===`completed`||e===`failed`||e===`cancelled`}function zS(e){let t=pg(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=mg(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function BS(e,t){let n=fg(e,t);if(!n.success)throw n.error;return n.data}var VS=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Ab,e=>{this._oncancel(e)}),this.setNotificationHandler(Kb,e=>{this._onprogress(e)}),this.setRequestHandler(Ub,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(tx,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Z(X.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(rx,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new Z(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new Z(X.InvalidParams,`Task not found: ${r}`);if(!RS(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(RS(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[sb]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(ix,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new Z(X.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(ox,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Z(X.InvalidParams,`Task not found: ${e.params.taskId}`);if(RS(n.status))throw new Z(X.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new Z(X.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof Z?e:new Z(X.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),Z.fromError(X.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),wb(e)||Eb(e)?this._onresponse(e):bb(e)?this._onrequest(e,t):Sb(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=Z.fromError(X.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[sb]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:X.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=hb(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new Z(X.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:X.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),wb(e)?n(e):n(new Z(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(wb(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),wb(e)?r(e):r(Z.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof Z?e:new Z(X.InternalError,String(e))}}return}let i;try{let r=await this.request(e,Qb,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new Z(X.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},RS(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new Z(X.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new Z(X.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof Z?e:new Z(X.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[sb]:s}});let ee=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof Z?e:new Z(X.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=fg(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{ee(n?.signal?.reason)});let te=n?.timeout??6e4;this._setupTimeout(d,te,n?.maxTotalTimeout,()=>ee(Z.fromError(X.RequestTimeout,`Request timed out`,{timeout:te})),n?.resetTimeoutOnProgress??!1);let ne=s?.taskId;ne?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(ne,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},nx,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},ax,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},sx,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[sb]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[sb]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[sb]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=zS(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=BS(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=zS(e);this._notificationHandlers.set(n,n=>{let r=BS(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&bb(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new Z(X.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new Z(X.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new Z(X.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new Z(X.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=ex.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),RS(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new Z(X.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(RS(a.status))throw new Z(X.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=ex.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),RS(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function HS(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function US(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];HS(a)&&HS(i)?n[r]={...a,...i}:n[r]=i}return n}var WS=`modulepreload`,GS=function(e,t){return new URL(e,t).href},KS={},qS=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=GS(t,n),t in KS)return;KS[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:WS,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};ob(),(e=>typeof r<`u`?r:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof r<`u`?r:e)[t]}):e)(function(e){if(typeof r<`u`)return r.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var JS=class extends VS{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},YS=`2026-01-26`,XS=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=Db.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},ZS=R([V(`light`),V(`dark`)]).describe(`Color theme preference for the host environment.`),QS=R([V(`inline`),V(`fullscreen`),V(`pip`)]).describe(`Display mode for UI presentation.`),$S=z(R([V(`--color-background-primary`),V(`--color-background-secondary`),V(`--color-background-tertiary`),V(`--color-background-inverse`),V(`--color-background-ghost`),V(`--color-background-info`),V(`--color-background-danger`),V(`--color-background-success`),V(`--color-background-warning`),V(`--color-background-disabled`),V(`--color-text-primary`),V(`--color-text-secondary`),V(`--color-text-tertiary`),V(`--color-text-inverse`),V(`--color-text-ghost`),V(`--color-text-info`),V(`--color-text-danger`),V(`--color-text-success`),V(`--color-text-warning`),V(`--color-text-disabled`),V(`--color-border-primary`),V(`--color-border-secondary`),V(`--color-border-tertiary`),V(`--color-border-inverse`),V(`--color-border-ghost`),V(`--color-border-info`),V(`--color-border-danger`),V(`--color-border-success`),V(`--color-border-warning`),V(`--color-border-disabled`),V(`--color-ring-primary`),V(`--color-ring-secondary`),V(`--color-ring-inverse`),V(`--color-ring-info`),V(`--color-ring-danger`),V(`--color-ring-success`),V(`--color-ring-warning`),V(`--font-sans`),V(`--font-mono`),V(`--font-weight-normal`),V(`--font-weight-medium`),V(`--font-weight-semibold`),V(`--font-weight-bold`),V(`--font-text-xs-size`),V(`--font-text-sm-size`),V(`--font-text-md-size`),V(`--font-text-lg-size`),V(`--font-heading-xs-size`),V(`--font-heading-sm-size`),V(`--font-heading-md-size`),V(`--font-heading-lg-size`),V(`--font-heading-xl-size`),V(`--font-heading-2xl-size`),V(`--font-heading-3xl-size`),V(`--font-text-xs-line-height`),V(`--font-text-sm-line-height`),V(`--font-text-md-line-height`),V(`--font-text-lg-line-height`),V(`--font-heading-xs-line-height`),V(`--font-heading-sm-line-height`),V(`--font-heading-md-line-height`),V(`--font-heading-lg-line-height`),V(`--font-heading-xl-line-height`),V(`--font-heading-2xl-line-height`),V(`--font-heading-3xl-line-height`),V(`--border-radius-xs`),V(`--border-radius-sm`),V(`--border-radius-md`),V(`--border-radius-lg`),V(`--border-radius-xl`),V(`--border-radius-full`),V(`--border-width-regular`),V(`--shadow-hairline`),V(`--shadow-sm`),V(`--shadow-md`),V(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps.
|
|
2265
2436
|
|
|
2266
2437
|
Individual style keys are optional - hosts may provide any subset of these values.
|
|
2267
2438
|
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
@@ -2307,7 +2478,7 @@ Boolean requesting whether a visible border and background is provided by the ho
|
|
|
2307
2478
|
- omitted: host decides border`)}),I({method:V(`ui/request-display-mode`),params:I({mode:QS.describe(`The display mode being requested.`)})});var mC=I({mode:QS.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),hC=R([V(`model`),V(`app`)]).describe(`Tool visibility scope - who can access the tool.`);I({resourceUri:j().optional(),visibility:F(hC).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
2308
2479
|
- "model": Tool visible to and callable by the agent
|
|
2309
2480
|
- "app": Tool callable by the app from this server only`),csp:j_().optional(),permissions:j_().optional()}),I({mimeTypes:F(j()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),I({method:V(`ui/download-file`),params:I({contents:F(R([Vx,Hx])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),I({method:V(`ui/message`),params:I({role:V(`user`).describe(`Message role, currently only "user" is supported.`),content:F(Ux).describe(`Message content blocks (text, image, etc.).`)})}),I({method:V(`ui/notifications/sandbox-resource-ready`),params:I({html:j().describe(`HTML content to load into the inner iframe.`),sandbox:j().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:rC.optional().describe(`CSP configuration from resource metadata.`),permissions:iC.optional().describe(`Sandbox permissions from resource metadata.`)})});var gC=I({method:V(`ui/notifications/tool-result`),params:Qx.describe(`Standard MCP tool execution result.`)}),_C=I({toolInfo:I({id:vb.optional().describe(`JSON-RPC id of the tools/call request.`),tool:Yx.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:ZS.optional().describe(`Current color theme preference.`),styles:lC.optional().describe(`Style configuration for theming the app.`),displayMode:QS.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:F(QS).optional().describe(`Display modes the host supports.`),containerDimensions:R([I({height:M().describe(`Fixed container height in pixels.`)}),I({maxHeight:R([M(),O_()]).optional().describe(`Maximum container height in pixels.`)})]).and(R([I({width:M().describe(`Fixed container width in pixels.`)}),I({maxWidth:R([M(),O_()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
2310
|
-
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:j().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:j().optional().describe(`User's timezone in IANA format.`),userAgent:j().optional().describe(`Host application identifier.`),platform:R([V(`web`),V(`desktop`),V(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:I({touch:N().optional().describe(`Whether the device supports touch input.`),hover:N().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:I({top:M().describe(`Top safe area inset in pixels.`),right:M().describe(`Right safe area inset in pixels.`),bottom:M().describe(`Bottom safe area inset in pixels.`),left:M().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),vC=I({method:V(`ui/notifications/host-context-changed`),params:_C.describe(`Partial context update containing only changed fields.`)});I({method:V(`ui/update-model-context`),params:I({content:F(Ux).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:z(j(),P().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),I({method:V(`ui/initialize`),params:I({appInfo:Nb.describe(`App identification (name and version).`),appCapabilities:pC.describe(`Features and capabilities this app provides.`),protocolVersion:j().describe(`Protocol version this app supports.`)})});var yC=I({protocolVersion:j().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:Nb.describe(`Host application identification and version.`),hostCapabilities:fC.describe(`Features and capabilities provided by the host.`),hostContext:_C.describe(`Rich context about the host environment.`)}).passthrough(),bC={target:`draft-2020-12`};async function xC(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](bC);if(n.vendor===`zod`){let{z:n}=await qS(async()=>{let{z:e}=await Promise.resolve().then(()=>(ob(),ib));return{z:e}},void 0,import.meta.url);return n.toJSONSchema(e,{io:t})}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 SC(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}function CC(){let e=document.documentElement.getAttribute(`data-theme`);return e===`dark`||e===`light`?e:document.documentElement.classList.contains(`dark`)?`dark`:`light`}function wC(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function TC(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}var EC=class e extends JS{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() 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(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:aC,toolinputpartial:oC,toolresult:gC,toolcancelled:sC,hostcontextchanged:vC};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" 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(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||g({jitless:!0}),this.setRequestHandler(Ub,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=US(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await SC(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await SC(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await xC(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await xC(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(uC,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(eS,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(Xx,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){switch(e){case`sampling/createMessage`:if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`);break}}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},Qx,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},Cx,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},_x,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?gS:hS;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},nC,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},Ob,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},eC,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},tC,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},mC,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new XS(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:YS}},yC,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function DC(e,t){if(document.getElementById(e))return;let n=document.createElement(`style`);n.id=e,n.textContent=t,document.head.appendChild(n)}var OC=document.createElement(`div`);function kC(e){return OC.textContent=e,OC.innerHTML}var AC=`aikit-annotation-popover`,jC=`
|
|
2481
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:j().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:j().optional().describe(`User's timezone in IANA format.`),userAgent:j().optional().describe(`Host application identifier.`),platform:R([V(`web`),V(`desktop`),V(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:I({touch:N().optional().describe(`Whether the device supports touch input.`),hover:N().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:I({top:M().describe(`Top safe area inset in pixels.`),right:M().describe(`Right safe area inset in pixels.`),bottom:M().describe(`Bottom safe area inset in pixels.`),left:M().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),vC=I({method:V(`ui/notifications/host-context-changed`),params:_C.describe(`Partial context update containing only changed fields.`)});I({method:V(`ui/update-model-context`),params:I({content:F(Ux).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:z(j(),P().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),I({method:V(`ui/initialize`),params:I({appInfo:Nb.describe(`App identification (name and version).`),appCapabilities:pC.describe(`Features and capabilities this app provides.`),protocolVersion:j().describe(`Protocol version this app supports.`)})});var yC=I({protocolVersion:j().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:Nb.describe(`Host application identification and version.`),hostCapabilities:fC.describe(`Features and capabilities provided by the host.`),hostContext:_C.describe(`Rich context about the host environment.`)}).passthrough(),bC={target:`draft-2020-12`};async function xC(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](bC);if(n.vendor===`zod`){let{z:n}=await qS(async()=>{let{z:e}=await Promise.resolve().then(()=>(ob(),ib));return{z:e}},void 0,import.meta.url);return n.toJSONSchema(e,{io:t})}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 SC(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}function CC(){let e=document.documentElement.getAttribute(`data-theme`);return e===`dark`||e===`light`?e:document.documentElement.classList.contains(`dark`)?`dark`:`light`}function wC(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function TC(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}var EC=class e extends JS{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() 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(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:aC,toolinputpartial:oC,toolresult:gC,toolcancelled:sC,hostcontextchanged:vC};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" 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(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||_({jitless:!0}),this.setRequestHandler(Ub,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=US(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await SC(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await SC(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await xC(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await xC(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(uC,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(eS,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(Xx,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){switch(e){case`sampling/createMessage`:if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`);break}}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},Qx,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},Cx,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},_x,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?gS:hS;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},nC,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},Ob,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},eC,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},tC,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},mC,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new XS(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:YS}},yC,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function DC(e,t){if(document.getElementById(e))return;let n=document.createElement(`style`);n.id=e,n.textContent=t,document.head.appendChild(n)}var OC=document.createElement(`div`);function kC(e){return OC.textContent=e,OC.innerHTML}var AC=`aikit-annotation-popover`,jC=`
|
|
2311
2482
|
.cp-backdrop {
|
|
2312
2483
|
position: fixed;
|
|
2313
2484
|
top: 0;
|
|
@@ -2338,6 +2509,19 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2338
2509
|
font-weight: 600;
|
|
2339
2510
|
color: var(--dt-text-primary);
|
|
2340
2511
|
}
|
|
2512
|
+
.cp-excerpt {
|
|
2513
|
+
font-size: var(--dt-font-size-xs);
|
|
2514
|
+
color: var(--dt-text-secondary);
|
|
2515
|
+
margin-bottom: 8px;
|
|
2516
|
+
padding: var(--dt-space-2);
|
|
2517
|
+
border: 1px solid var(--dt-border-muted);
|
|
2518
|
+
border-radius: var(--dt-radius-sm);
|
|
2519
|
+
background: var(--dt-bg-primary);
|
|
2520
|
+
font-family: var(--dt-font-mono);
|
|
2521
|
+
word-break: break-all;
|
|
2522
|
+
max-height: 60px;
|
|
2523
|
+
overflow-y: auto;
|
|
2524
|
+
}
|
|
2341
2525
|
.cp-textarea {
|
|
2342
2526
|
width: 100%;
|
|
2343
2527
|
min-height: 60px;
|
|
@@ -2353,7 +2537,7 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2353
2537
|
}
|
|
2354
2538
|
.cp-textarea:focus {
|
|
2355
2539
|
outline: none;
|
|
2356
|
-
border-color: var(--
|
|
2540
|
+
border-color: var(--dt-accent-fg);
|
|
2357
2541
|
}
|
|
2358
2542
|
.cp-actions {
|
|
2359
2543
|
display: flex;
|
|
@@ -2366,14 +2550,7 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2366
2550
|
padding: 6px 12px;
|
|
2367
2551
|
border-radius: var(--dt-radius-md);
|
|
2368
2552
|
cursor: pointer;
|
|
2369
|
-
|
|
2370
|
-
.cp-btn--submit {
|
|
2371
|
-
background: var(--aikit-accent);
|
|
2372
|
-
color: white;
|
|
2373
|
-
border: none;
|
|
2374
|
-
}
|
|
2375
|
-
.cp-btn--submit:hover {
|
|
2376
|
-
opacity: 0.9;
|
|
2553
|
+
transition: background var(--dt-transition-fast), border-color var(--dt-transition-fast);
|
|
2377
2554
|
}
|
|
2378
2555
|
.cp-btn--cancel {
|
|
2379
2556
|
background: transparent;
|
|
@@ -2383,19 +2560,37 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2383
2560
|
.cp-btn--cancel:hover {
|
|
2384
2561
|
background: var(--dt-annotation-hover);
|
|
2385
2562
|
}
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2563
|
+
.cp-btn--comment {
|
|
2564
|
+
background: var(--dt-accent-emphasis);
|
|
2565
|
+
color: var(--dt-accent-foreground, #ffffff);
|
|
2566
|
+
border: none;
|
|
2567
|
+
}
|
|
2568
|
+
.cp-btn--comment:hover {
|
|
2569
|
+
filter: brightness(1.1);
|
|
2570
|
+
}
|
|
2571
|
+
.cp-btn--remove {
|
|
2572
|
+
background: transparent;
|
|
2573
|
+
border: 1px solid var(--dt-annotation-deletion);
|
|
2574
|
+
color: var(--dt-annotation-deletion);
|
|
2575
|
+
}
|
|
2576
|
+
.cp-btn--remove:hover {
|
|
2577
|
+
background: var(--dt-annotation-deletion-bg);
|
|
2578
|
+
}
|
|
2579
|
+
`,MC=class{el;textarea;result;backdrop;options;constructor(e,t){this.result=e,this.options=t,DC(AC,jC),this.backdrop=document.createElement(`div`),this.backdrop.className=`cp-backdrop`,this.el=document.createElement(`div`),this.el.className=`cp-popover`,this.el.setAttribute(`role`,`dialog`),this.el.setAttribute(`aria-label`,`Feedback on selection`),this.el.innerHTML=`
|
|
2580
|
+
<div class="cp-header">Feedback</div>
|
|
2581
|
+
<div class="cp-excerpt">${this.escapeText(e.text)}</div>
|
|
2582
|
+
<textarea class="cp-textarea" placeholder="Add a comment (optional)..." aria-label="Comment text"></textarea>
|
|
2389
2583
|
<div class="cp-actions">
|
|
2390
2584
|
<button class="cp-btn cp-btn--cancel" aria-label="Cancel">Cancel</button>
|
|
2391
|
-
<button class="cp-btn cp-btn--
|
|
2585
|
+
<button class="cp-btn cp-btn--remove" aria-label="Remove selection without comment">Remove</button>
|
|
2586
|
+
<button class="cp-btn cp-btn--comment" aria-label="Submit comment">Comment</button>
|
|
2392
2587
|
</div>
|
|
2393
|
-
`,this.textarea=this.el.querySelector(`.cp-textarea`);let n=this.el.querySelector(`.cp-btn--
|
|
2394
|
-
`).trimEnd()}exportJSON(){let e=[...this.store.getState().annotations].sort((e,t)=>e.createdAt-t.createdAt);return JSON.stringify(e,null,2)}submitFeedback(e){let t=this.exportMarkdown(),n=this.exportJSON();e(`annotations`,t===`No feedback provided.`?t:`${t}\n\n\`\`\`json\n${n}\n\`\`\``)}getTotalCount(){let e=this.store.getState()
|
|
2395
|
-
`)}extractContext(e,t){if(!e||!t)return null;let n=e.lastIndexOf(t);if(n===-1)return null;let r=Math.max(0,n-NC),i=Math.min(e.length,n+t.length+NC);return{prefix:(r>0?`…`:``)+e.slice(r,n).trim(),suffix:e.slice(n+t.length,i).trim()+(i<e.length?`…`:``)}}},FC=`aikit-annotation-highlight`;function IC(){if(document.getElementById(FC))return;let e=document.createElement(`style`);e.id=FC,e.textContent=`
|
|
2588
|
+
`,this.textarea=this.el.querySelector(`.cp-textarea`);let n=this.el.querySelector(`.cp-btn--comment`),r=this.el.querySelector(`.cp-btn--remove`),i=this.el.querySelector(`.cp-btn--cancel`);this.backdrop.addEventListener(`click`,()=>this.handleCancel()),n.addEventListener(`click`,()=>this.handleComment()),r.addEventListener(`click`,()=>this.handleRemove()),i.addEventListener(`click`,()=>this.handleCancel()),this.textarea.addEventListener(`keydown`,e=>this.handleKeyDown(e)),document.body.appendChild(this.backdrop),document.body.appendChild(this.el),this.positionNearSelection(),this.textarea.focus(),this.el.addEventListener(`keydown`,e=>{if(e.key!==`Tab`)return;let t=this.el.querySelectorAll(`button, textarea, [tabindex]:not([tabindex="-1"])`);if(t.length===0)return;let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())})}destroy(){this.backdrop.remove(),this.el.remove()}escapeText(e){let t=document.createElement(`div`);return t.textContent=e,t.innerHTML}positionNearSelection(){let e=this.result.range.getBoundingClientRect(),t=window.scrollX,n=window.scrollY,r=this.el.offsetWidth||320,i=this.el.offsetHeight||260,a=e.left+t+e.width/2-r/2;a=Math.max(8,a),a=Math.min(a,window.innerWidth+t-r-8);let o=window.innerHeight+n,s=e.bottom+n+8,c;s+i<=o?c=s:(c=e.top+n-i-8,c=Math.max(8,c)),this.el.style.left=`${a}px`,this.el.style.top=`${c}px`}handleComment(){let e=this.textarea.value.trim();this.options.onSubmit(this.result,e)}handleRemove(){let e=this.textarea.value.trim();this.options.onRemove(this.result,e)}handleCancel(){this.options.onDismiss()}handleKeyDown(e){e.key===`Escape`?(e.preventDefault(),this.handleCancel()):(e.ctrlKey||e.metaKey)&&e.key===`Enter`&&(e.preventDefault(),this.handleComment())}},NC=class{store;constructor(e){this.store=e}exportMarkdown(){let e=[...this.store.getState().annotations].sort((e,t)=>e.createdAt-t.createdAt);if(e.length===0)return`No feedback provided.`;let t=e.filter(e=>e.type===`COMMENT`),n=e.filter(e=>e.type===`DELETION`),r=[`## Reviewer Feedback`,``];if(t.length>0){r.push(`### Comments`,``);for(let e of t){let t=e.originalText.length>80?`${e.originalText.slice(0,80)}\u2026`:e.originalText;r.push(`- **${e.comment}**`),r.push(` > "${t}"`),r.push(``)}}if(n.length>0){r.push(`### Deletions`,``);for(let e of n){let t=e.originalText.length>80?`${e.originalText.slice(0,80)}\u2026`:e.originalText;r.push(`- Remove this`),r.push(` > "${t}"`),r.push(``)}}return r.join(`
|
|
2589
|
+
`).trimEnd()}exportJSON(){let e=[...this.store.getState().annotations].sort((e,t)=>e.createdAt-t.createdAt);return JSON.stringify(e,null,2)}submitFeedback(e){let t=this.exportMarkdown(),n=this.exportJSON();e(`annotations`,t===`No feedback provided.`?t:`${t}\n\n\`\`\`json\n${n}\n\`\`\``)}getTotalCount(){let e=this.store.getState();return{comments:e.annotations.filter(e=>e.type===`COMMENT`).length,deletions:e.annotations.filter(e=>e.type===`DELETION`).length,total:e.annotations.length}}},PC=`aikit-annotation-highlight`;function FC(){if(document.getElementById(PC))return;let e=document.createElement(`style`);e.id=PC,e.textContent=`
|
|
2396
2590
|
mark.hl-COMMENT {
|
|
2397
2591
|
background: var(--dt-annotation-comment-bg, rgba(88, 166, 255, 0.15));
|
|
2398
2592
|
border-bottom: 2px solid var(--dt-annotation-comment, #58a6ff);
|
|
2593
|
+
color: var(--dt-annotation-comment, #58a6ff);
|
|
2399
2594
|
border-radius: 2px;
|
|
2400
2595
|
cursor: pointer;
|
|
2401
2596
|
transition: opacity 0.2s ease;
|
|
@@ -2404,6 +2599,7 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2404
2599
|
background: var(--dt-annotation-deletion-bg, rgba(248, 81, 73, 0.15));
|
|
2405
2600
|
text-decoration: line-through;
|
|
2406
2601
|
text-decoration-color: var(--dt-annotation-deletion, #f85149);
|
|
2602
|
+
color: var(--dt-annotation-deletion, #f85149);
|
|
2407
2603
|
border-radius: 2px;
|
|
2408
2604
|
cursor: pointer;
|
|
2409
2605
|
transition: opacity 0.2s ease;
|
|
@@ -2411,6 +2607,18 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2411
2607
|
mark.hl-COMMENT:hover, mark.hl-DELETION:hover {
|
|
2412
2608
|
opacity: 0.8;
|
|
2413
2609
|
}
|
|
2610
|
+
mark.hl-COMMENT.hl-selected {
|
|
2611
|
+
opacity: 1 !important;
|
|
2612
|
+
outline: 2px solid var(--dt-annotation-comment, #58a6ff);
|
|
2613
|
+
outline-offset: 1px;
|
|
2614
|
+
border-radius: 3px;
|
|
2615
|
+
}
|
|
2616
|
+
mark.hl-DELETION.hl-selected {
|
|
2617
|
+
opacity: 1 !important;
|
|
2618
|
+
outline: 2px solid var(--dt-annotation-deletion, #f85149);
|
|
2619
|
+
outline-offset: 1px;
|
|
2620
|
+
border-radius: 3px;
|
|
2621
|
+
}
|
|
2414
2622
|
mark.annotation-pulse {
|
|
2415
2623
|
animation: annotation-pulse 0.6s ease;
|
|
2416
2624
|
}
|
|
@@ -2419,19 +2627,15 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2419
2627
|
50% { transform: scale(1.05); }
|
|
2420
2628
|
100% { transform: scale(1); }
|
|
2421
2629
|
}
|
|
2422
|
-
`,document.head.appendChild(e)}var
|
|
2630
|
+
`,document.head.appendChild(e)}var IC=class{container;store;unsubscribe=null;constructor(e,t){this.container=e,this.store=t}start(){FC(),this.unsubscribe=this.store.subscribe(e=>{switch(e.type){case`annotation-added`:this.createHighlight(e.annotation);break;case`annotation-removed`:this.removeHighlight(e.id);break;case`selection-changed`:this.updateSelection(e.id),e.id!==null&&this.scrollToAnnotation(e.id);break}})}stop(){this.unsubscribe?.(),this.unsubscribe=null,this.clearAll()}findTextNodeRange(e,t,n){let r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=0,a=null,o=0,s=null,c=0,l=r.nextNode();for(;l;){let e=(l.textContent||``).length,u=i+e;if(a===null&&u>t&&(a=l,o=t-i),u>=n){s=l,c=n-i;break}i=u,l=r.nextNode()}if(!a||!s)return null;let u=document.createRange();return u.setStart(a,Math.min(o,(a.textContent||``).length)),u.setEnd(s,Math.min(c,(s.textContent||``).length)),u}createHighlight(e){let t=this.container.querySelector(`[data-block-id="${e.blockId}"]`);if(!t){console.warn(`[HighlightManager] Block not found for annotation ${e.id}: ${e.blockId}`);return}let n=this.findTextNodeRange(t,e.startOffset,e.endOffset);if(!n){console.warn(`[HighlightManager] Could not resolve text range for annotation ${e.id}`);return}let r=document.createElement(`mark`);r.className=`hl-${e.type}`,r.dataset.annotationId=e.id,r.addEventListener(`click`,()=>{this.store.select(e.id)});try{n.surroundContents(r)}catch{try{if(n.endContainer.nodeType===Node.TEXT_NODE&&n.endContainer.splitText(n.endOffset),n.startContainer.nodeType===Node.TEXT_NODE){let e=n.startContainer;n.startOffset>0&&e.splitText(n.startOffset);let t=document.createRange();t.setStart(e.nextSibling||e,0),t.setEnd(n.endContainer.nodeType===Node.TEXT_NODE&&n.endContainer.previousSibling||n.endContainer,n.endOffset),t.surroundContents(r)}else throw Error(`Non-text range`)}catch{let e=n.extractContents();r.append(e),n.insertNode(r)}}}removeHighlight(e){let t=this.container.querySelector(`mark[data-annotation-id="${e}"]`);if(!t)return;let n=t.parentNode;if(n){for(;t.firstChild;)n.insertBefore(t.firstChild,t);n.removeChild(t),n.nodeType===Node.ELEMENT_NODE&&n.normalize()}}updateSelection(e){let t=this.container.querySelectorAll(`mark[data-annotation-id]`);for(let n of t)n.classList.toggle(`hl-selected`,n.dataset.annotationId===e)}scrollToAnnotation(e){let t=this.container.querySelector(`mark[data-annotation-id="${e}"]`);t&&(t.scrollIntoView({behavior:`smooth`,block:`center`}),t.classList.add(`annotation-pulse`),setTimeout(()=>{t.classList.remove(`annotation-pulse`)},600))}clearAll(){let e=this.container.querySelectorAll(`mark[data-annotation-id]`);for(let t of e){let e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t),e.nodeType===Node.ELEMENT_NODE&&e.normalize()}}}},LC=new Set([`button`,`input`,`textarea`,`select`]),RC=class{options;boundHandleMouseUp;constructor(e){this.options=e,this.boundHandleMouseUp=this.handleMouseUp.bind(this),this.options.container.addEventListener(`mouseup`,this.boundHandleMouseUp,{passive:!0})}destroy(){this.options.container.removeEventListener(`mouseup`,this.boundHandleMouseUp)}handleMouseUp(e){if(this.options.mode()===`selection`)return;let t=e.target;if(!t||this.isExcludedElement(t))return;let n=this.getSelectionRange();if(!n)return;let r=this.findBlockId(n.startContainer);if(!r||this.findBlockContainer(n.startContainer)!==this.findBlockContainer(n.endContainer))return;let i=this.computeBlockOffset(n.startContainer,n.startOffset),a=this.computeBlockOffset(n.endContainer,n.endOffset);if(i===null||a===null)return;let o={blockId:r,startOffset:i,endOffset:a,text:n.toString(),range:n};this.options.onSelection(o),this.clearSelection()}getSelectionRange(){let e=window.getSelection();return!e||e.isCollapsed||e.rangeCount===0?null:e.getRangeAt(0)}findBlockId(e){let t=e;for(;t;){if(t instanceof HTMLElement&&t.hasAttribute(`data-block-id`))return t.getAttribute(`data-block-id`);t=t.parentNode}return null}computeBlockOffset(e,t){let n=this.findBlockContainer(e);if(!n)return null;let r=document.createTreeWalker(n,NodeFilter.SHOW_TEXT,null),i=0,a=r.nextNode();for(;a;){if(a===e)return i+t;i+=(a.textContent||``).length,a=r.nextNode()}return null}findBlockContainer(e){let t=e;for(;t;){if(t instanceof HTMLElement&&t.hasAttribute(`data-block-id`))return t;t=t.parentNode}return null}clearSelection(){let e=window.getSelection();e&&e.removeAllRanges()}isExcludedElement(e){let t=e;for(;t&&!(t instanceof HTMLElement);)t=t.parentNode;return t?LC.has(t.tagName.toLowerCase()):!1}},zC=`aikit-annotation-sidebar`,BC=`
|
|
2423
2631
|
.as-sidebar {
|
|
2424
|
-
position: fixed;
|
|
2425
|
-
right: 0;
|
|
2426
|
-
top: 0;
|
|
2427
2632
|
width: var(--dt-annotation-sidebar-width, 300px);
|
|
2428
|
-
height: 100vh;
|
|
2429
2633
|
background: var(--dt-bg-secondary);
|
|
2430
2634
|
border-left: 1px solid var(--dt-border-default);
|
|
2431
|
-
z-index: 500;
|
|
2432
2635
|
display: flex;
|
|
2433
2636
|
flex-direction: column;
|
|
2434
2637
|
box-sizing: border-box;
|
|
2638
|
+
flex-shrink: 0;
|
|
2435
2639
|
}
|
|
2436
2640
|
|
|
2437
2641
|
.as-header {
|
|
@@ -2464,6 +2668,30 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2464
2668
|
flex: 1;
|
|
2465
2669
|
}
|
|
2466
2670
|
|
|
2671
|
+
/* ── Feedback toggle in header ── */
|
|
2672
|
+
.as-mode-toggle {
|
|
2673
|
+
display: inline-flex;
|
|
2674
|
+
align-items: center;
|
|
2675
|
+
gap: 4px;
|
|
2676
|
+
padding: 4px 8px;
|
|
2677
|
+
border-radius: var(--dt-radius-sm);
|
|
2678
|
+
border: 1px solid var(--dt-border-default);
|
|
2679
|
+
background: transparent;
|
|
2680
|
+
color: var(--dt-text-secondary);
|
|
2681
|
+
font-size: var(--dt-font-size-xs);
|
|
2682
|
+
cursor: pointer;
|
|
2683
|
+
transition: background var(--dt-transition-fast), border-color var(--dt-transition-fast), color var(--dt-transition-fast);
|
|
2684
|
+
}
|
|
2685
|
+
.as-mode-toggle:hover {
|
|
2686
|
+
background: var(--dt-annotation-hover);
|
|
2687
|
+
color: var(--dt-text-primary);
|
|
2688
|
+
}
|
|
2689
|
+
.as-mode-toggle--active {
|
|
2690
|
+
border-color: var(--dt-accent-fg);
|
|
2691
|
+
color: var(--dt-accent-fg);
|
|
2692
|
+
background: var(--dt-accent-subtle);
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2467
2695
|
.as-close-btn {
|
|
2468
2696
|
background: none;
|
|
2469
2697
|
border: none;
|
|
@@ -2479,20 +2707,13 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2479
2707
|
background: var(--dt-annotation-hover);
|
|
2480
2708
|
}
|
|
2481
2709
|
|
|
2710
|
+
/* ── Scrollable annotation list ── */
|
|
2482
2711
|
.as-list {
|
|
2483
2712
|
flex: 1;
|
|
2484
2713
|
overflow-y: auto;
|
|
2485
2714
|
padding: var(--dt-space-2);
|
|
2486
2715
|
}
|
|
2487
2716
|
|
|
2488
|
-
.as-group-header {
|
|
2489
|
-
font-size: var(--dt-font-size-sm);
|
|
2490
|
-
font-weight: 600;
|
|
2491
|
-
color: var(--dt-text-secondary);
|
|
2492
|
-
padding: var(--dt-space-2) var(--dt-space-2) var(--dt-space-1);
|
|
2493
|
-
text-transform: uppercase;
|
|
2494
|
-
}
|
|
2495
|
-
|
|
2496
2717
|
.as-card {
|
|
2497
2718
|
padding: var(--dt-space-2);
|
|
2498
2719
|
margin-bottom: var(--dt-space-2);
|
|
@@ -2502,23 +2723,25 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2502
2723
|
cursor: pointer;
|
|
2503
2724
|
transition: background 0.15s;
|
|
2504
2725
|
position: relative;
|
|
2505
|
-
border-left: 2px solid transparent;
|
|
2506
2726
|
}
|
|
2507
2727
|
|
|
2508
|
-
.as-card--
|
|
2509
|
-
border-left
|
|
2728
|
+
.as-card--COMMENT {
|
|
2729
|
+
border-left: 2px solid var(--dt-annotation-comment, #58a6ff);
|
|
2510
2730
|
}
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
border-left-color: var(--dt-annotation-deletion);
|
|
2731
|
+
.as-card--DELETION {
|
|
2732
|
+
border-left: 2px solid var(--dt-annotation-deletion, #f85149);
|
|
2514
2733
|
}
|
|
2515
2734
|
|
|
2516
2735
|
.as-card:hover {
|
|
2517
2736
|
background: var(--dt-annotation-hover);
|
|
2518
2737
|
}
|
|
2519
2738
|
|
|
2520
|
-
.as-card--selected {
|
|
2521
|
-
outline: 2px solid var(--
|
|
2739
|
+
.as-card--COMMENT.as-card--selected {
|
|
2740
|
+
outline: 2px solid var(--dt-annotation-comment, #58a6ff);
|
|
2741
|
+
outline-offset: -2px;
|
|
2742
|
+
}
|
|
2743
|
+
.as-card--DELETION.as-card--selected {
|
|
2744
|
+
outline: 2px solid var(--dt-annotation-deletion, #f85149);
|
|
2522
2745
|
outline-offset: -2px;
|
|
2523
2746
|
}
|
|
2524
2747
|
|
|
@@ -2542,6 +2765,26 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2542
2765
|
max-width: 100%;
|
|
2543
2766
|
}
|
|
2544
2767
|
|
|
2768
|
+
/* Expanded comment detail — shown when card is clicked */
|
|
2769
|
+
.as-card-comment-detail {
|
|
2770
|
+
display: none;
|
|
2771
|
+
margin-top: 6px;
|
|
2772
|
+
padding: var(--dt-space-2);
|
|
2773
|
+
border: 1px solid var(--dt-border-muted);
|
|
2774
|
+
border-radius: var(--dt-radius-sm);
|
|
2775
|
+
background: var(--dt-bg-secondary);
|
|
2776
|
+
font-size: var(--dt-font-size-sm);
|
|
2777
|
+
color: var(--dt-text-primary);
|
|
2778
|
+
line-height: 1.5;
|
|
2779
|
+
word-break: break-word;
|
|
2780
|
+
white-space: pre-wrap;
|
|
2781
|
+
max-height: 200px;
|
|
2782
|
+
overflow-y: auto;
|
|
2783
|
+
}
|
|
2784
|
+
.as-card-comment-detail--open {
|
|
2785
|
+
display: block;
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2545
2788
|
.as-delete-btn {
|
|
2546
2789
|
position: absolute;
|
|
2547
2790
|
top: 4px;
|
|
@@ -2566,81 +2809,38 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2566
2809
|
font-size: var(--dt-font-size-sm);
|
|
2567
2810
|
padding: var(--dt-space-6) var(--dt-space-2);
|
|
2568
2811
|
}
|
|
2569
|
-
|
|
2570
|
-
.as-footer {
|
|
2571
|
-
padding: var(--dt-space-3);
|
|
2572
|
-
border-top: 1px solid var(--dt-border-default);
|
|
2573
|
-
flex-shrink: 0;
|
|
2574
|
-
}
|
|
2575
|
-
|
|
2576
|
-
.as-submit-btn {
|
|
2577
|
-
width: 100%;
|
|
2578
|
-
padding: var(--dt-space-2);
|
|
2579
|
-
background: var(--aikit-accent);
|
|
2580
|
-
color: white;
|
|
2581
|
-
border: none;
|
|
2582
|
-
border-radius: var(--dt-radius-md);
|
|
2583
|
-
cursor: pointer;
|
|
2584
|
-
font-size: var(--dt-font-size-sm);
|
|
2585
|
-
}
|
|
2586
|
-
.as-submit-btn:hover {
|
|
2587
|
-
opacity: 0.9;
|
|
2588
|
-
}
|
|
2589
|
-
`,HC=class{el;store;exporter;emitAction;onClose;unsubscribe=null;listEl;constructor(e){this.store=e.store,this.exporter=e.exporter,this.emitAction=e.emitAction,this.onClose=e.onClose,this.el=this.render(),this.listEl=this.el.querySelector(`.as-list`),this.unsubscribe=this.store.subscribe(e=>{switch(e.type){case`annotation-added`:case`annotation-removed`:case`annotation-updated`:this.renderList(),this.updateHeader();break;case`selection-changed`:this.updateCardSelection(e.id);break;case`sidebar-toggled`:this.updateVisibility();break}}),(e.mountTarget??document.body).appendChild(this.el),this.updateVisibility()}destroy(){this.unsubscribe?.(),this.el.remove()}render(){DC(BC,VC);let e=document.createElement(`div`);return e.className=`as-sidebar`,e.setAttribute(`role`,`complementary`),e.setAttribute(`aria-label`,`Annotations`),e.innerHTML=`
|
|
2812
|
+
`,VC=`<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"/></svg>`,HC=class{el;store;exporter;unsubscribe=null;listEl;modeToggleBtn;constructor(e){this.store=e.store,this.exporter=e.exporter,this.el=this.render(),this.listEl=this.el.querySelector(`.as-list`),this.modeToggleBtn=this.el.querySelector(`.as-mode-toggle`),this.unsubscribe=this.store.subscribe(e=>{switch(e.type){case`annotation-added`:case`annotation-removed`:case`annotation-updated`:this.renderList(),this.updateHeader();break;case`selection-changed`:this.updateCardSelection(e.id);break;case`sidebar-toggled`:this.updateVisibility();break;case`mode-changed`:this.updateModeToggle();break}}),(e.mountTarget??document.body).appendChild(this.el),this.updateVisibility(),this.updateModeToggle()}destroy(){this.unsubscribe?.(),this.el.remove()}render(){DC(zC,BC);let e=document.createElement(`div`);return e.className=`as-sidebar`,e.setAttribute(`role`,`complementary`),e.setAttribute(`aria-label`,`Annotations`),e.innerHTML=`
|
|
2590
2813
|
<div class="as-header">
|
|
2591
2814
|
<span class="as-header-title">Annotations</span>
|
|
2592
2815
|
<span class="as-count-badge" aria-live="polite">${this.exporter.getTotalCount().total}</span>
|
|
2593
2816
|
<span class="as-header-spacer"></span>
|
|
2817
|
+
<button class="as-mode-toggle" aria-label="Toggle annotation mode">${VC} Feedback</button>
|
|
2594
2818
|
<button class="as-close-btn" aria-label="Close sidebar">×</button>
|
|
2595
2819
|
</div>
|
|
2596
2820
|
<div class="as-list" role="list" aria-label="Annotation list"></div>
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
</div>
|
|
2600
|
-
`,e.querySelector(`.as-close-btn`).addEventListener(`click`,e=>{e.stopPropagation(),this.store.toggleSidebar(!1),this.onClose?.()}),e.querySelector(`.as-submit-btn`).addEventListener(`click`,()=>this.handleSubmit()),e}renderList(){let e=this.store.getState().annotations;if(this.listEl.innerHTML=``,e.length===0){let e=document.createElement(`div`);e.className=`as-empty`,e.textContent=`No annotations yet`,this.listEl.appendChild(e);return}let t=e.filter(e=>e.type===`COMMENT`),n=e.filter(e=>e.type===`DELETION`);if(t.length>0){let e=document.createElement(`div`);e.className=`as-group-header`,e.textContent=`Comments (${t.length})`,this.listEl.appendChild(e);for(let e of t)this.listEl.appendChild(this.renderAnnotationItem(e))}if(n.length>0){let e=document.createElement(`div`);e.className=`as-group-header`,e.textContent=`Deletions (${n.length})`,this.listEl.appendChild(e);for(let e of n)this.listEl.appendChild(this.renderAnnotationItem(e))}}renderAnnotationItem(e){let t=document.createElement(`div`);t.className=`as-card as-card--${e.type===`COMMENT`?`comment`:`deletion`}`,t.dataset.annotationId=e.id,this.store.getState().selectedId===e.id&&t.classList.add(`as-card--selected`);let n=e.originalText.length>60?`${e.originalText.slice(0,60)}\u2026`:e.originalText;return t.innerHTML=`
|
|
2601
|
-
<div class="as-card-excerpt">${kC(e.type===`COMMENT`?`💬`:`✂️`)} ${kC(n)}</div>
|
|
2821
|
+
`,e.querySelector(`.as-close-btn`).addEventListener(`click`,e=>{e.stopPropagation(),this.store.toggleSidebar(!1)}),e.querySelector(`.as-mode-toggle`).addEventListener(`click`,e=>{e.stopPropagation();let t=this.store.getState().mode===`feedback`?`selection`:`feedback`;this.store.setMode(t)}),e}renderList(){let e=this.store.getState().annotations;if(this.listEl.innerHTML=``,e.length===0){let e=document.createElement(`div`);e.className=`as-empty`,e.textContent=`No annotations yet. Select text in Feedback mode.`,this.listEl.appendChild(e);return}let t=[...e].sort((e,t)=>t.createdAt-e.createdAt);for(let e of t)this.listEl.appendChild(this.renderAnnotationItem(e))}renderAnnotationItem(e){let t=document.createElement(`div`);return t.className=`as-card as-card--${e.type}`,t.dataset.annotationId=e.id,this.store.getState().selectedId===e.id&&t.classList.add(`as-card--selected`),t.innerHTML=`
|
|
2822
|
+
<div class="as-card-excerpt">${kC(e.originalText.length>60?`${e.originalText.slice(0,60)}\u2026`:e.originalText)}</div>
|
|
2602
2823
|
${e.comment?`<div class="as-card-comment">${kC(e.comment)}</div>`:``}
|
|
2824
|
+
<div class="as-card-comment-detail">${e.comment?kC(e.comment):`<em style="color:var(--dt-text-tertiary)">No comment — marked text only</em>`}</div>
|
|
2603
2825
|
<button class="as-delete-btn" aria-label="Delete annotation">×</button>
|
|
2604
|
-
`,t.addEventListener(`click`,()=>{this.store.select(e.id)
|
|
2605
|
-
.
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
gap: var(--dt-space-2);
|
|
2609
|
-
padding: var(--dt-space-2);
|
|
2610
|
-
}
|
|
2611
|
-
|
|
2612
|
-
.at-btn {
|
|
2613
|
-
display: inline-flex;
|
|
2614
|
-
align-items: center;
|
|
2615
|
-
gap: 6px;
|
|
2616
|
-
padding: 6px 12px;
|
|
2617
|
-
border-radius: var(--dt-radius-md);
|
|
2826
|
+
`,t.addEventListener(`click`,()=>{this.store.select(e.id);let n=t.querySelector(`.as-card-comment-detail`);if(n){n.classList.toggle(`as-card-comment-detail--open`);let e=this.listEl.querySelectorAll(`.as-card-comment-detail--open`);for(let t of e)t!==n&&t.classList.remove(`as-card-comment-detail--open`)}}),t.querySelector(`.as-delete-btn`).addEventListener(`click`,t=>{t.stopPropagation(),this.handleDelete(e.id)}),t}handleDelete(e){this.store.remove(e)}updateVisibility(){let e=this.store.getState();this.el.style.display=e.isSidebarOpen?`flex`:`none`}updateHeader(){let e=this.el.querySelector(`.as-count-badge`);if(e){let t=this.exporter.getTotalCount();e.textContent=String(t.total)}}updateModeToggle(){let e=this.store.getState().mode===`feedback`;this.modeToggleBtn.classList.toggle(`as-mode-toggle--active`,e),this.modeToggleBtn.setAttribute(`aria-pressed`,String(e)),this.modeToggleBtn.setAttribute(`aria-label`,e?`Disable annotation mode`:`Enable annotation mode`)}updateCardSelection(e){let t=this.el.querySelectorAll(`.as-card`);for(let n of t){let t=n.dataset.annotationId;n.classList.toggle(`as-card--selected`,t!==void 0&&t===e)}}},UC=class{annotations=[];selectedId=null;mode=`selection`;isSidebarOpen=!1;subscribers=new Set;idCounter=0;subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}notify(e){for(let t of this.subscribers)t(e)}generateId(){return this.idCounter+=1,`ann-${this.idCounter}`}openSidebar(){this.isSidebarOpen=!0,this.notify({type:`sidebar-toggled`,open:!0})}add(e,t,n,r,i,a,o,s,c){let l={id:this.generateId(),type:e,blockId:t,startOffset:n,endOffset:r,originalText:i,comment:a,section:o,contextBefore:s,contextAfter:c,createdAt:Date.now()};return this.annotations.push(l),this.annotations.length===1&&(this.isSidebarOpen=!0,this.notify({type:`sidebar-toggled`,open:!0})),this.notify({type:`annotation-added`,annotation:l}),l}update(e,t){let n=this.annotations.find(t=>t.id===e);n&&(Object.assign(n,t),this.notify({type:`annotation-updated`,id:e,changes:t}))}remove(e){let t=this.annotations.findIndex(t=>t.id===e);t!==-1&&(this.annotations.splice(t,1),this.notify({type:`annotation-removed`,id:e}))}select(e){this.selectedId=e,this.notify({type:`selection-changed`,id:e})}setMode(e){e!==this.mode&&(this.mode=e,this.notify({type:`mode-changed`,mode:e}))}toggleSidebar(e){this.isSidebarOpen=e===void 0?!this.isSidebarOpen:e,this.notify({type:`sidebar-toggled`,open:this.isSidebarOpen})}getState(){return{annotations:[...this.annotations],selectedId:this.selectedId,mode:this.mode,isSidebarOpen:this.isSidebarOpen}}destroy(){this.subscribers.clear(),this.annotations=[],this.selectedId=null,this.mode=`selection`,this.isSidebarOpen=!1,this.idCounter=0}},WC=25,GC=`aikit-annotation-guide`,KC=`
|
|
2827
|
+
.as-guide {
|
|
2828
|
+
margin: 0 0 var(--dt-space-3) 0;
|
|
2829
|
+
padding: var(--dt-space-2) var(--dt-space-3);
|
|
2618
2830
|
border: 1px solid var(--dt-border-default);
|
|
2831
|
+
border-radius: var(--dt-radius-md);
|
|
2619
2832
|
background: var(--dt-bg-secondary);
|
|
2833
|
+
font-family: var(--dt-font-mono);
|
|
2834
|
+
font-size: var(--dt-font-size-xs);
|
|
2620
2835
|
color: var(--dt-text-secondary);
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
.at-btn:hover {
|
|
2626
|
-
background: var(--dt-annotation-hover);
|
|
2627
|
-
}
|
|
2628
|
-
|
|
2629
|
-
.at-btn--active[data-mode="selection"] {
|
|
2630
|
-
border-color: var(--aikit-accent);
|
|
2631
|
-
background: var(--aikit-hover-bg);
|
|
2632
|
-
}
|
|
2633
|
-
|
|
2634
|
-
.at-btn--active[data-mode="comment"] {
|
|
2635
|
-
border-color: var(--dt-annotation-comment);
|
|
2636
|
-
background: var(--dt-annotation-comment-bg);
|
|
2836
|
+
line-height: 1.5;
|
|
2837
|
+
display: none;
|
|
2838
|
+
flex-shrink: 0;
|
|
2637
2839
|
}
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
border-color: var(--dt-annotation-deletion);
|
|
2641
|
-
background: var(--dt-annotation-deletion-bg);
|
|
2840
|
+
.as-guide--visible {
|
|
2841
|
+
display: block;
|
|
2642
2842
|
}
|
|
2643
|
-
|
|
2843
|
+
`;function qC(e){let{range:t}=e,n,r=t.startContainer;for(;r;){if(r instanceof HTMLElement&&r.tagName.toLowerCase().match(/^h[1-6]$/)){n=r.textContent?.trim()||void 0;break}r=r.parentNode}let i,a;try{if(t.startContainer.nodeType===Node.TEXT_NODE&&t.startOffset>0){let e=t.startContainer.textContent||``,n=Math.max(0,t.startOffset-WC);i=e.slice(n,t.startOffset)}if(t.endContainer.nodeType===Node.TEXT_NODE&&t.endOffset<(t.endContainer.textContent?.length||0)){let e=t.endContainer.textContent||``,n=Math.min(e.length,t.endOffset+WC);a=e.slice(t.endOffset,n)}}catch{}return{section:n,contextBefore:i,contextAfter:a}}function JC(e){let{container:t,mountTarget:n}=e,r=null,i=new UC;i.setMode(`feedback`);let a=new NC(i);DC(GC,KC);let o=document.createElement(`div`);o.className=`as-guide`,o.textContent=`➳ Ready. Select text to annotate or disable Feedback in the sidebar.`,t.prepend(o);let s=()=>{let e=i.getState();o.classList.toggle(`as-guide--visible`,e.mode===`feedback`&&e.annotations.length===0)};s(),i.subscribe(()=>s());let c=new IC(t,i);c.start();let l=new RC({container:t,mode:()=>i.getState().mode,onSelection:e=>{let t=qC(e);r?.destroy();let n=new MC(e,{onSubmit:(e,a)=>{i.add(`COMMENT`,e.blockId,e.startOffset,e.endOffset,e.text,a||void 0,t.section,t.contextBefore,t.contextAfter),n.destroy(),r===n&&(r=null)},onRemove:(e,a)=>{i.add(`DELETION`,e.blockId,e.startOffset,e.endOffset,e.text,a||void 0,t.section,t.contextBefore,t.contextAfter),n.destroy(),r===n&&(r=null)},onDismiss:()=>{n.destroy(),r===n&&(r=null)}});r=n}}),u=new HC({store:i,exporter:a,mountTarget:n});return i.openSidebar(),{destroy(){r?.destroy(),r=null,o.remove(),l.destroy(),c.stop(),u.destroy(),i.destroy()},getStore(){return i},getExporter(){return a}}}var YC=3e3,XC=2e3;function ZC(e){let t=e.querySelector(`.bk-action-feedback`);t&&(t.style.display=`block`,t.setAttribute(`data-feedback-state`,`sent`),setTimeout(()=>{t.style.display=`none`},YC));let n=e.querySelectorAll(`button.bk-action`);for(let e of n)e.disabled=!0;setTimeout(()=>{for(let e of n)e.disabled=!1},XC)}function QC(e,t){let n=[],r=new WeakSet;for(let i of Array.from(e.querySelectorAll(`.bk-text-submit`))){let a=i.getAttribute(`data-action-id`);if(!a)continue;r.add(i);let o=i.querySelector(`.bk-input`),s=i.querySelector(`.bk-action--primary`);if(!o||!s)continue;r.add(o),r.add(s);let c=()=>{t(a,o.value),ZC(e)};s.addEventListener(`click`,c),n.push(()=>s.removeEventListener(`click`,c))}for(let i of Array.from(e.querySelectorAll(`.bk-form`))){let a=i.getAttribute(`data-action-id`);if(!a)continue;r.add(i);for(let e of i.querySelectorAll(`[data-action-id]`))r.add(e);let o=n=>{n.preventDefault();let r=new FormData(i),o={};r.forEach((e,t)=>{o[t]=String(e)}),t(a,JSON.stringify(o)),ZC(e)};i.addEventListener(`submit`,o),n.push(()=>i.removeEventListener(`submit`,o))}for(let i of Array.from(e.querySelectorAll(`[data-action-id]`))){if(r.has(i))continue;let a=i.getAttribute(`data-action-id`);if(!a)continue;if(i.tagName===`SELECT`){let r=i,o=()=>{t(a,r.value),ZC(e)};r.addEventListener(`change`,o),n.push(()=>r.removeEventListener(`change`,o));continue}let o=()=>{t(a),ZC(e)};i.addEventListener(`click`,o),n.push(()=>i.removeEventListener(`click`,o))}return()=>{for(let e of n)e()}}var $C=`
|
|
2644
2844
|
.bk-checklist-progress {
|
|
2645
2845
|
margin-bottom: var(--dt-space-3);
|
|
2646
2846
|
color: var(--dt-text-secondary);
|
|
@@ -2654,9 +2854,9 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2654
2854
|
margin: 0;
|
|
2655
2855
|
accent-color: var(--dt-accent-fg);
|
|
2656
2856
|
}
|
|
2657
|
-
`;function
|
|
2658
|
-
`)}function
|
|
2659
|
-
`)}];if(typeof e==`string`)return[{type:`markdown`,value:e}];if(typeof e==`object`&&e){let t=e;return Array.isArray(t.nodes)&&Array.isArray(t.edges)?[{type:`graph`,value:t}]:Array.isArray(t.metrics)?[{type:`metrics`,value:t.metrics}]:[{type:`json`,value:t}]}return[{type:`text`,value:String(e??``)}]}function
|
|
2857
|
+
`;function ew(e){let t=e.createElement(`style`);return t.textContent=$C,t}function tw(e,t){let n=t.filter(e=>e.getAttribute(`data-checked`)===`true`).length,r=t.length;return e.textContent=`${n}/${r} complete`,{complete:n,total:r}}function nw(e,t={}){let n=Array.from(e.querySelectorAll(`.bk-checklist-item`));if(n.length===0)return()=>{};let r=e.ownerDocument,i=ew(r),a=r.createElement(`div`);a.className=`bk-checklist-progress`,e.parentElement?.insertBefore(a,e),r.head?.appendChild(i);let o=[];for(let[e,i]of n.entries()){let s=i.querySelector(`.bk-checklist-icon`),c=i.querySelector(`.bk-checklist-label`)?.textContent?.trim()??``,l=r.createElement(`input`);l.type=`checkbox`,l.className=`bk-checklist-box`,l.checked=i.getAttribute(`data-checked`)===`true`;let u=()=>{i.setAttribute(`data-checked`,String(l.checked));let r=tw(a,n);t.onAction?.(`checklist`,JSON.stringify({index:e,label:c,checked:l.checked,complete:r.complete,total:r.total}))};l.addEventListener(`change`,u),o.push(()=>{l.removeEventListener(`change`,u)}),s?s.replaceWith(l):i.insertBefore(l,i.firstChild)}return tw(a,n),()=>{for(let e of o)e();a.remove(),i.remove();for(let e of n){let t=e.querySelector(`.bk-checklist-box`);if(!t)continue;let n=r.createElement(`span`);n.className=`bk-checklist-icon`,n.textContent=e.getAttribute(`data-checked`)===`true`?`✓`:`×`,t.replaceWith(n)}}}var rw=`data-sort-label`,iw=`data-sort-dir`,aw=new Intl.Collator(void 0,{numeric:!0,sensitivity:`base`});function ow(e){let t=e.getAttribute(rw);if(t!==null)return t;let n=e.textContent?.trim()??``;return e.setAttribute(rw,n),n}function sw(e,t,n){for(let[r,i]of e.entries())i.textContent=ow(i),r===t?(i.setAttribute(iw,n),i.append(` ${n===`asc`?`▲`:`▼`}`)):i.removeAttribute(iw)}function cw(e,t){return e.querySelectorAll(`td`)[t]?.textContent?.trim()??``}function lw(e){let t=Array.from(e.querySelectorAll(`thead th`)),n=e.querySelector(`tbody`);if(!n||t.length===0)return()=>{};let r=Array.from(n.querySelectorAll(`tr`)),i=e.parentElement,a=null,o=`asc`,s=``,c=null,l=[],u=()=>{let e=[...r];if(a!==null){let t=a;e.sort((e,n)=>{let r=aw.compare(cw(e,t),cw(n,t));return o===`asc`?r:-r})}for(let t of e){n.appendChild(t);let e=t.textContent?.toLowerCase()??``;t.hidden=s.length>0&&!e.includes(s)}sw(t,a,o)};for(let[e,n]of t.entries()){ow(n);let t=()=>{a===e?o=o===`asc`?`desc`:`asc`:(a=e,o=`asc`),u()};n.style.cursor=`pointer`,n.addEventListener(`click`,t),l.push(()=>{n.removeEventListener(`click`,t)})}if(r.length>5&&i){c=i.ownerDocument.createElement(`input`),c.className=`bk-table-filter`,c.placeholder=`Filter...`;let t=()=>{s=c?.value.toLowerCase().trim()??``,u()};i.insertBefore(c,e),c.addEventListener(`input`,t),l.push(()=>{c?.removeEventListener(`input`,t),c?.remove(),c=null})}return u(),()=>{for(let e of l)e();for(let e of t)e.textContent=ow(e),e.removeAttribute(iw),e.removeAttribute(rw),e.style.removeProperty(`cursor`);for(let e of r)e.hidden=!1}}function uw(e){for(let t of Array.from(e.children))if(t.tagName===`SUMMARY`)return t;return null}function dw(e){let t=e.closest(`details`);if(!t)return null;let n=t.parentElement;for(;n;){if(n.tagName===`DETAILS`)return uw(n);n=n.parentElement}return null}function fw(e){return Array.from(e.querySelectorAll(`summary`))}function pw(e){return e.open||e.hasAttribute(`open`)}function mw(e,t){e.open=t,t?e.setAttribute(`open`,``):e.removeAttribute(`open`)}function hw(e,t){e.textContent=t.every(e=>pw(e))?`Collapse all`:`Expand all`}function gw(e){let t=Array.from(e.querySelectorAll(`details`));if(t.length===0)return()=>{};let n=e.ownerDocument.createElement(`button`);n.type=`button`,n.className=`bk-tree-toggle-all`,e.insertBefore(n,e.firstChild);let r=()=>{let e=t.some(e=>!pw(e));for(let n of t)mw(n,e);hw(n,t)},i=()=>{r()};n.addEventListener(`click`,i);let a=t.map(e=>{let r=()=>{hw(n,t)};return e.addEventListener(`toggle`,r),()=>{e.removeEventListener(`toggle`,r)}}),o=fw(e).map(t=>{t.tabIndex=0;let n=n=>{let r=fw(e),i=r.indexOf(t);if(i===-1)return;let a=t.closest(`details`);if(n.key===`ArrowDown`){r[i+1]?.focus(),n.preventDefault();return}if(n.key===`ArrowUp`){r[i-1]?.focus(),n.preventDefault();return}if(n.key===`ArrowRight`){if(a&&!pw(a))mw(a,!0);else{let e=r[i+1];e&&a?.contains(e)&&e.focus()}n.preventDefault();return}n.key===`ArrowLeft`&&(a&&pw(a)?mw(a,!1):dw(t)?.focus(),n.preventDefault())};return t.addEventListener(`keydown`,n),()=>{t.removeEventListener(`keydown`,n)}});return hw(n,t),()=>{n.removeEventListener(`click`,i);for(let e of a)e();for(let e of o)e();n.remove()}}var _w=`data-hydrated`;function vw(e,t){let n=[];return e.matches(t)&&n.push(e),n.push(...Array.from(e.querySelectorAll(t))),n}function yw(e,t,n){e.push(()=>{n(),t.removeAttribute(_w)})}function bw(e={}){let t=e.container??document.body,n=[];for(let e of vw(t,`.bk-table`))e.hasAttribute(_w)||(e.setAttribute(_w,``),yw(n,e,lw(e)));for(let e of vw(t,`.bk-tree`))e.hasAttribute(_w)||(e.setAttribute(_w,``),yw(n,e,gw(e)));for(let r of vw(t,`.bk-checklist`))r.hasAttribute(_w)||(r.setAttribute(_w,``),yw(n,r,nw(r,e)));for(let r of vw(t,`.bk-actions`))if(!r.hasAttribute(_w)){if(r.setAttribute(_w,``),e.onAction){yw(n,r,QC(r,e.onAction));continue}n.push(()=>{r.removeAttribute(_w)})}return()=>{for(let e of n)e();n.length=0}}var xw=`bk-styles`,Sw=new Set;function Cw(e){for(let t of e.css)t.trim().length>0&&Sw.add(t);return[...Sw].join(`
|
|
2858
|
+
`)}function ww(e){return Ci(e,{transport:`browser`})}function Tw(e,t=document){let n=Cw(e),r=t.getElementById(xw);r||(r=t.createElement(`style`),r.id=xw,t.head.appendChild(r)),r.textContent=n}function Ew(e,t){let n=ww(t);return Tw(n,e.ownerDocument),e.innerHTML=n.html,n}function Dw(e,t,n){return Ew(e,{schemaVersion:1,title:`AI Kit Present`,blocks:t}),bw({container:e,onAction:n})}function Ow(e){return function(t,n){let r=n??t.label;if(!e){fetch(`/callback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({actionId:t.id,value:r})});return}e.updateModelContext({content:[{type:`text`,text:`Latest UI action: ${t.label}${n?` → ${n}`:``}`}],structuredContent:{actionId:t.id,actionType:t.type,label:t.label,value:r,timestamp:new Date().toISOString()}}),e.sendMessage({role:`user`,content:[{type:`text`,text:`User selected: ${t.label}${n?` → ${n}`:``}`}]})}}function kw(e){return typeof e==`object`&&!!e}function Aw(e,t){let n=e.id.split(`@`)[0];return n===`timeline`&&kw(t)&&Array.isArray(t.events)?t.events:n===`tree`&&Array.isArray(t)?{root:{label:`Root`,children:t}}:t}function jw(e,t,n){let r=h.get(e);if(!r?.supportedTransports.includes(`browser`))return null;let i=Aw(r,t);return{blocks:r.blocksFromData(i,{colorScheme:n.colorScheme,transport:`browser`,lang:n.lang,dir:n.dir}),actions:r.actionsFromData?.(i)??[]}}var Mw=`present-data`;function Nw(e=document,t=Mw){let n=e.getElementById(t);return n?.textContent?JSON.parse(n.textContent):null}function Pw(e){return e?{callTool:(t,n)=>e.callServerTool({name:t,arguments:n}),sendMessage:async t=>{await e.sendMessage({role:`user`,content:[{type:`text`,text:t}]})},updateContext:async t=>{await e.updateModelContext({content:[{type:`text`,text:t}]})}}:{callTool:async()=>{throw Error(`callTool is not available in browser mode`)},sendMessage:async()=>{},updateContext:async()=>{}}}var Fw=class{app;currentMode=`inline`;availableModes=[];toolbar=null;constructor(e){this.app=e}apply(e){e.displayMode&&(this.currentMode=e.displayMode),e.availableDisplayModes&&(this.availableModes=e.availableDisplayModes),this.updateToolbar()}async requestMode(e){try{let t=await this.app.requestDisplayMode({mode:e});return this.currentMode=t.mode,document.documentElement.dataset.display=t.mode,this.updateToolbar(),t.mode}catch{return this.currentMode}}updateToolbar(){if(this.availableModes.length<=1){this.toolbar?.remove(),this.toolbar=null;return}this.toolbar||=this.createToolbar(),this.renderButtons()}createToolbar(){let e=document.createElement(`div`);return e.className=`display-mode-toolbar`,document.body.appendChild(e),e}renderButtons(){if(!this.toolbar)return;this.toolbar.innerHTML=``;let e={inline:`▣`,fullscreen:`⛶`,pip:`◱`};for(let t of this.availableModes){let n=document.createElement(`button`);n.className=`dm-btn${t===this.currentMode?` dm-active`:``}`,n.textContent=e[t]??t,n.title=t,n.addEventListener(`click`,()=>this.requestMode(t)),this.toolbar.appendChild(n)}}},Iw=new Set;function Lw(e,t){if(Iw.has(e))return;Iw.add(e);let n=document.createElement(`style`);n.textContent=t,document.head.appendChild(n)}function Q(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n&&(r.textContent=n),r}function Rw(e){return e==null?`null`:Array.isArray(e)?`[${e.map(Rw).join(`, `)}]`:String(e)}function zw(e){return typeof e==`object`&&!!e&&`type`in e}var Bw=[[400,`compact`],[800,`comfortable`]],Vw=class{root;displayMode=`inline`;sizeClass=`comfortable`;constructor(e){this.root=e??document.documentElement}apply(e){this.applyDisplayMode(e),this.applyContainerDimensions(e),this.applySafeArea(e),this.applyPlatform(e),this.applyDeviceCapabilities(e)}getDisplayMode(){return this.displayMode}getSize(){return this.sizeClass}applyDisplayMode(e){e.displayMode&&(this.displayMode=e.displayMode,this.root.dataset.display=e.displayMode)}applyContainerDimensions(e){let t=e.containerDimensions;if(!t)return;let n=this.root.style,r=`width`in t?t.width:`maxWidth`in t?t.maxWidth:void 0,i=`height`in t?t.height:`maxHeight`in t?t.maxHeight:void 0;r!==void 0&&(n.setProperty(`--aikit-container-w`,`${r}px`),this.sizeClass=this.deriveSizeClass(r),this.root.dataset.size=this.sizeClass,n.setProperty(`--aikit-content-max-width`,this.deriveMaxWidth(r)),n.setProperty(`--aikit-body-pad-x`,this.derivePadX()),n.setProperty(`--aikit-grid-cols`,this.deriveGridCols()),n.setProperty(`--aikit-card-min`,this.deriveCardMin()),n.setProperty(`--aikit-metric-min`,this.deriveMetricMin())),i!==void 0&&(n.setProperty(`--aikit-container-h`,`${i}px`),n.setProperty(`--aikit-body-pad-y`,this.derivePadY()))}applySafeArea(e){let t=e.safeAreaInsets;if(!t)return;let n=this.root.style;n.setProperty(`--aikit-safe-top`,`${t.top}px`),n.setProperty(`--aikit-safe-right`,`${t.right}px`),n.setProperty(`--aikit-safe-bottom`,`${t.bottom}px`),n.setProperty(`--aikit-safe-left`,`${t.left}px`)}applyPlatform(e){e.platform&&(this.root.dataset.platform=e.platform)}applyDeviceCapabilities(e){let t=e.deviceCapabilities;t&&(t.touch!==void 0&&(this.root.dataset.touch=String(t.touch)),t.hover!==void 0&&(this.root.dataset.hover=String(t.hover)))}deriveSizeClass(e){for(let[t,n]of Bw)if(e<t)return n;return`full`}deriveMaxWidth(e){return this.displayMode===`pip`?`100%`:this.displayMode===`fullscreen`?`none`:e<960?`100%`:`900px`}derivePadX(){return this.sizeClass===`compact`?`8px`:`16px`}derivePadY(){return this.sizeClass===`compact`?`8px`:`16px`}deriveGridCols(){switch(this.sizeClass){case`compact`:return`1`;case`comfortable`:return`2`;case`full`:return`3`}}deriveCardMin(){return this.sizeClass===`compact`?`100%`:`250px`}deriveMetricMin(){return this.sizeClass===`compact`?`100px`:`150px`}},Hw=`AI Kit Present`;function Uw(e){return e.schemaVersion===1}function Ww(e){if(!Array.isArray(e)&&typeof e==`object`&&e){let t=e;if(Array.isArray(t.blocks)&&t.blocks.length>0)return t.blocks}return e}function Gw(e){if(Array.isArray(e))return e.length===0?[{type:`markdown`,value:`*Empty array*`}]:zw(e[0])?e.filter(zw):typeof e[0]==`object`&&e[0]!==null?[{type:`table`,value:e}]:[{type:`markdown`,value:e.map(e=>`- ${String(e)}`).join(`
|
|
2859
|
+
`)}];if(typeof e==`string`)return[{type:`markdown`,value:e}];if(typeof e==`object`&&e){let t=e;return Array.isArray(t.nodes)&&Array.isArray(t.edges)?[{type:`graph`,value:t}]:Array.isArray(t.metrics)?[{type:`metrics`,value:t.metrics}]:[{type:`json`,value:t}]}return[{type:`text`,value:String(e??``)}]}function Kw(e){return{...e,options:e.options?.map(e=>typeof e==`string`?{label:e,value:e}:e)}}function qw(e){if(Uw(e)){let t=e.data??e.content??e.blocks;return{schemaVersion:1,title:e.title??Hw,description:e.description,template:e.template,data:t,blocks:e.blocks??Gw(t),actions:e.actions?.map(Kw),colorScheme:e.colorScheme,lang:e.lang,dir:e.dir}}let t=Ww(e.content);return{schemaVersion:1,title:e.title??Hw,template:e.template,data:t,blocks:Gw(t),actions:e.actions?.map(Kw)}}var Jw=class{templates=new Map;register(e){this.templates.set(e.name,e)}get(e){return this.templates.get(e)}detect(e){let t,n=0;for(let r of this.templates.values()){let i=r.detect(e);i>n&&(n=i,t=r)}return n>0?t:void 0}getAll(){return[...this.templates.values()]}},Yw={"--color-background-primary":`--aikit-bg`,"--color-background-secondary":`--aikit-surface`,"--color-background-tertiary":`--aikit-surface2`,"--color-text-primary":`--aikit-text`,"--color-text-secondary":`--aikit-muted`,"--color-border-primary":`--aikit-border`,"--color-ring-primary":`--aikit-accent`,"--color-text-success":`--aikit-success`,"--color-text-danger":`--aikit-error`,"--color-text-warning":`--aikit-warning`,"--color-text-info":`--aikit-info`,"--font-sans":`--aikit-font-sans`,"--font-mono":`--aikit-font-mono`,"--border-radius-md":`--aikit-radius`,"--shadow-sm":`--aikit-shadow`},Xw={"--aikit-bg":`--bg`,"--aikit-text":`--fg`,"--aikit-surface":`--surface`,"--aikit-border":`--border`,"--aikit-accent":`--accent`,"--aikit-success":`--success`,"--aikit-warning":`--warning`,"--aikit-error":`--error`,"--aikit-font-sans":`--font-sans`,"--aikit-font-mono":`--font-mono`,"--aikit-radius":`--radius`,"--aikit-shadow":`--shadow`},Zw=`aikit-design-token-bridge`,Qw={light:{"--bg":`#f8f9fa`,"--fg":`#111111`,"--surface":`#f1f3f5`,"--border":`#e5e7eb`,"--accent":`#147d74`,"--accent-light":`#49a897`,"--success":`#10b981`,"--warning":`#f59e0b`,"--error":`#ef4444`,"--code-bg":`#f1f3f5`,"--code-fg":`#111111`,"--radius":`8px`,"--shadow":`0 1px 2px rgba(0,0,0,0.06)`,"--font-sans":`'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif`,"--font-mono":`'JetBrains Mono', 'Geist Mono', 'Fira Code', 'SF Mono', Consolas, monospace`,"--aikit-bg":`#f8f9fa`,"--aikit-surface":`#f1f3f5`,"--aikit-surface2":`#ffffff`,"--aikit-text":`#111111`,"--aikit-muted":`#4b5563`,"--aikit-border":`#e5e7eb`,"--aikit-accent":`#147d74`,"--aikit-accent-light":`#49a897`,"--aikit-success":`#10b981`,"--aikit-warning":`#f59e0b`,"--aikit-error":`#ef4444`,"--aikit-info":`#3b82f6`,"--aikit-code-bg":`#f1f3f5`,"--aikit-code-fg":`#111111`,"--aikit-font-sans":`'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif`,"--aikit-font-mono":`'JetBrains Mono', 'Geist Mono', 'Fira Code', 'SF Mono', Consolas, monospace`,"--aikit-radius":`8px`,"--aikit-shadow":`0 1px 3px rgba(0,0,0,0.06)`,"--aikit-hover-bg":`color-mix(in srgb, #147d74 10%, transparent)`},dark:{"--bg":`#0c0c0c`,"--fg":`#ffffff`,"--surface":`#161616`,"--border":`#24282d`,"--accent":`#5db8a6`,"--accent-light":`#8bdbc9`,"--success":`#10b981`,"--warning":`#f59e0b`,"--error":`#ef4444`,"--code-bg":`#101010`,"--code-fg":`#f3f4f6`,"--radius":`8px`,"--shadow":`0 1px 3px rgba(0,0,0,0.35)`,"--font-sans":`'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif`,"--font-mono":`'JetBrains Mono', 'Geist Mono', 'Fira Code', 'SF Mono', Consolas, monospace`,"--aikit-bg":`#0c0c0c`,"--aikit-surface":`#161616`,"--aikit-surface2":`#232323`,"--aikit-text":`#ffffff`,"--aikit-muted":`#a0a4ab`,"--aikit-border":`#24282d`,"--aikit-accent":`#5db8a6`,"--aikit-accent-light":`#8bdbc9`,"--aikit-success":`#10b981`,"--aikit-warning":`#f59e0b`,"--aikit-error":`#ef4444`,"--aikit-info":`#60a5fa`,"--aikit-code-bg":`#101010`,"--aikit-code-fg":`#f3f4f6`,"--aikit-font-sans":`'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif`,"--aikit-font-mono":`'JetBrains Mono', 'Geist Mono', 'Fira Code', 'SF Mono', Consolas, monospace`,"--aikit-radius":`8px`,"--aikit-shadow":`0 1px 3px rgba(0,0,0,0.35)`,"--aikit-hover-bg":`color-mix(in srgb, #5db8a6 10%, transparent)`}},$w={"--chart-1":`#79c0ff`,"--chart-2":`#38bdf8`,"--chart-3":`#34d399`,"--chart-4":`#fbbf24`,"--chart-5":`#f87171`,"--chart-6":`#a78bfa`,"--chart-7":`#f472b6`,"--chart-8":`#2dd4bf`,"--chart-9":`#fb923c`,"--chart-10":`#22d3ee`,"--chart-11":`#c084fc`,"--chart-12":`#a3e635`,"--chart-others":`#a8a29e`},eT=`
|
|
2660
2860
|
:root {
|
|
2661
2861
|
--dt-bg-primary: var(--aikit-bg, #0c0c0c);
|
|
2662
2862
|
--dt-bg-secondary: var(--aikit-surface, #161616);
|
|
@@ -2737,7 +2937,7 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2737
2937
|
[data-theme='light'] {
|
|
2738
2938
|
color-scheme: light;
|
|
2739
2939
|
}
|
|
2740
|
-
`,
|
|
2940
|
+
`,tT=class{root;constructor(e){this.root=e??document.documentElement,this.applyFallbackVariables(),this.ensureDesignTokenBridge()}apply(e){e.theme&&wC(e.theme),this.applyFallbackVariables(e.theme),e.styles?.variables&&(TC(e.styles.variables),this.mapTokens(e.styles.variables)),e.styles?.css?.fonts&&this.injectFonts(e.styles.css.fonts)}getTheme(){return CC()}resolveFallbackTheme(e){if(e)return e;let t=this.root.dataset.theme;return t===`light`||t===`dark`?t:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}applyFallbackVariables(e){let t=this.resolveFallbackTheme(e),n=this.root.style;for(let[e,r]of Object.entries(Qw[t]))n.setProperty(e,r);for(let[e,t]of Object.entries($w))n.setProperty(e,t);n.colorScheme=t}mapTokens(e){let t=this.root.style;for(let[n,r]of Object.entries(Yw)){let i=e[n];if(i){t.setProperty(r,i);let e=Xw[r];e&&t.setProperty(e,i)}}this.getTheme()===`dark`?(t.setProperty(`--code-bg`,e[`--color-background-tertiary`]??`#0f0f1a`),t.setProperty(`--code-fg`,`#cdd6f4`)):(t.setProperty(`--code-bg`,`#f0f0f5`),t.setProperty(`--code-fg`,`#1a1a2e`)),t.setProperty(`--aikit-code-bg`,t.getPropertyValue(`--code-bg`)),t.setProperty(`--aikit-code-fg`,t.getPropertyValue(`--code-fg`));let n=e[`--color-ring-primary`];n&&(t.setProperty(`--aikit-accent-light`,n),t.setProperty(`--accent-light`,n),t.setProperty(`--aikit-hover-bg`,`color-mix(in srgb, ${n} 10%, transparent)`))}injectFonts(e){let t=`aikit-host-fonts`;if(document.getElementById(t))return;let n=document.createElement(`style`);n.id=t,n.textContent=e,document.head.appendChild(n)}ensureDesignTokenBridge(){if(document.getElementById(Zw))return;let e=document.createElement(`style`);e.id=Zw,e.textContent=eT,document.head.appendChild(e)}},nT=`
|
|
2741
2941
|
.tpl-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
|
|
2742
2942
|
.db-card { min-height: 136px; padding: 14px; border: 1px solid var(--aikit-border, #3c3c3c);
|
|
2743
2943
|
border-left-width: 4px; border-radius: var(--aikit-radius, 10px); background: var(--aikit-surface, #252526);
|
|
@@ -2763,7 +2963,7 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2763
2963
|
.db-list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--aikit-text, #e5e7eb);
|
|
2764
2964
|
font: 500 13px var(--aikit-font-sans, Inter, sans-serif); }
|
|
2765
2965
|
.db-list-item span:last-child { color: var(--aikit-muted, #9ca3af); font-family: var(--aikit-font-mono, Consolas, monospace); }
|
|
2766
|
-
`,
|
|
2966
|
+
`,rT={name:`dashboard`,label:`Dashboard`,detect(e){if(typeof e!=`object`||!e||Array.isArray(e))return 0;let t=e,n=Array.isArray(t.metrics)?t.metrics[0]:void 0;return n&&typeof n.label==`string`&&`value`in n?.85:0},render(e,t,n){Lw(`tpl-dashboard`,nT);let r=t,i=Q(`div`,`block tpl-dashboard`);for(let e of r.metrics){let t=Q(`article`,`db-card status-${e.status??`info`}`),n=Q(`div`,`db-header`);if(n.appendChild(Q(`div`,`db-label`,e.label)),e.trend){let t=e.trend.direction===`up`?`▲`:e.trend.direction===`down`?`▼`:`—`;n.appendChild(Q(`div`,`db-trend ${e.trend.direction}`,`${t} ${e.trend.value}`))}if(t.appendChild(n),t.appendChild(Q(`div`,`db-value`,Rw(e.value))),e.type===`progress`){let n=Q(`div`,`db-progress-track`),r=Q(`div`,`db-progress-fill`);r.style.width=`${Math.max(0,Math.min(100,e.progress??0))}%`,n.appendChild(r),t.appendChild(n),t.appendChild(Q(`div`,`db-progress-meta`,`${Math.max(0,Math.min(100,e.progress??0))}% complete`))}if(e.type===`list`&&e.items?.length){let n=Q(`ul`,`db-list`);for(let t of e.items){let e=Q(`li`,`db-list-item`);e.appendChild(Q(`span`,``,t.label)),e.appendChild(Q(`span`,``,t.value)),n.appendChild(e)}t.appendChild(n)}i.appendChild(t)}e.appendChild(i)},styles(){return nT}},iT=`
|
|
2767
2967
|
.fg-breadcrumb { display: flex; align-items: center; gap: 4px; padding: 8px 0; flex-wrap: wrap; }
|
|
2768
2968
|
.fg-crumb { background: var(--aikit-surface, #252526); border: 1px solid var(--aikit-border, #3c3c3c);
|
|
2769
2969
|
color: var(--aikit-text, #ccc); padding: 3px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; }
|
|
@@ -2778,7 +2978,7 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2778
2978
|
text-overflow: ellipsis; font-weight: 500; }
|
|
2779
2979
|
.fg-info { font-size: 12px; color: var(--aikit-muted, #858585); padding: 8px 0;
|
|
2780
2980
|
border-top: 1px solid var(--aikit-border, #3c3c3c); margin-top: 8px; }
|
|
2781
|
-
`;function
|
|
2981
|
+
`;function aT(e){return{name:String(e.name??``),total:typeof e.total==`number`?e.total:typeof e.value==`number`?e.value:0,self:typeof e.self==`number`?e.self:void 0,children:Array.isArray(e.children)?e.children.map(e=>aT(e)):void 0}}var oT={name:`flame-graph`,label:`Flame Graph`,detect(e){if(typeof e!=`object`||!e||Array.isArray(e))return 0;let t=e.profile;return t&&typeof t==`object`&&t.children?.9:0},render(e,t,n){let r=t,i=Q(`div`,`block tpl-flame-graph`),a=aT(r.profile),o=a,s=[a],c=Q(`div`,`fg-breadcrumb`);i.appendChild(c);let l=Q(`div`,`fg-canvas`);i.appendChild(l);let u=Q(`div`,`fg-info`);i.appendChild(u);function d(){c.innerHTML=``;for(let e=0;e<s.length;e++){let t=s[e],n=document.createElement(`button`);n.className=`fg-crumb`,n.textContent=t.name,n.addEventListener(`click`,()=>{s.splice(e+1),o=t,d()}),c.appendChild(n),e<s.length-1&&c.appendChild(Q(`span`,`fg-sep`,`›`))}l.innerHTML=``,f(l,o,0,o.total),u.textContent=`${o.name} — total: ${o.total}${o.self==null?``:`, self: ${o.self}`}`}function f(e,t,r,i){let a=Q(`div`,`fg-row`);a.style.paddingLeft=`${r*2}px`;let c=Q(`div`,`fg-bar`),l=Math.max(2,t.total/i*100);c.style.width=`${l}%`,c.style.background=ee(r),c.title=`${t.name}: ${t.total}${t.self==null?``:` (self: ${t.self})`}`;let te=Q(`span`,`fg-bar-label`,`${t.name} (${t.total})`);if(c.appendChild(te),t.children?.length&&(c.style.cursor=`pointer`,c.addEventListener(`click`,()=>{o=t,s.push(t),d(),n.emitAction({type:`button`,id:`zoom`,label:`Zoom`},JSON.stringify({name:t.name,total:t.total}))})),c.addEventListener(`mouseenter`,()=>{u.textContent=`${t.name} — total: ${t.total}${t.self==null?``:`, self: ${t.self}`}`}),a.appendChild(c),e.appendChild(a),t.children)for(let n of t.children)f(e,n,r+1,i)}function ee(e){let t=getComputedStyle(document.documentElement),n=[t.getPropertyValue(`--chart-5`).trim()||`#e24d28`,t.getPropertyValue(`--chart-9`).trim()||`#e8602a`,t.getPropertyValue(`--chart-4`).trim()||`#edad2a`,t.getPropertyValue(`--chart-1`).trim()||`#f5c842`,t.getPropertyValue(`--chart-3`).trim()||`#fce94f`,t.getPropertyValue(`--chart-6`).trim()||`#c4a000`,t.getPropertyValue(`--chart-7`).trim()||`#e07028`,t.getPropertyValue(`--chart-8`).trim()||`#d45500`];return n[e%n.length]}d(),Lw(`tpl-flame-graph`,iT),e.appendChild(i)},styles(){return iT}},sT=`
|
|
2782
2982
|
.tpl-kanban { overflow-x: auto; }
|
|
2783
2983
|
.kbn-board { display: flex; gap: 14px; align-items: flex-start; min-width: min-content; padding-bottom: 4px; }
|
|
2784
2984
|
.kbn-column { width: 280px; flex: 0 0 280px; border: 1px solid var(--aikit-border, #3c3c3c); border-radius: var(--aikit-radius, 10px);
|
|
@@ -2804,7 +3004,7 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2804
3004
|
.kbn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
|
|
2805
3005
|
.kbn-tag { padding: 2px 8px; border-radius: 999px; background: var(--aikit-surface, #252526); color: var(--aikit-muted, #9ca3af);
|
|
2806
3006
|
font: 500 11px var(--aikit-font-sans, Inter, sans-serif); }
|
|
2807
|
-
`,
|
|
3007
|
+
`,cT={name:`kanban`,label:`Kanban`,detect(e){if(typeof e!=`object`||!e||Array.isArray(e))return 0;let t=e,n=Array.isArray(t.cards)?t.cards[0]:void 0;return Array.isArray(t.columns)&&Array.isArray(t.cards)&&typeof n?.column==`string`?.85:0},render(e,t,n){Lw(`tpl-kanban`,sT);let r=t,i=r.cards.map(e=>({...e,tags:e.tags?[...e.tags]:void 0})),a=new Set,o=``,s=Q(`div`,`block tpl-kanban`),c=Q(`div`,`kbn-board`);s.appendChild(c);let l=()=>{c.innerHTML=``;for(let e of r.columns){let t=Q(`section`,`kbn-column`),r=Q(`div`,`kbn-column-header`),s=Q(`div`,`kbn-column-title`),u=Q(`span`,`kbn-column-swatch`);e.color&&(u.style.background=e.color),s.appendChild(u),s.appendChild(Q(`span`,``,e.label)),r.appendChild(s);let d=i.filter(t=>t.column===e.id);r.appendChild(Q(`span`,`kbn-column-count`,String(d.length))),t.appendChild(r);let f=Q(`div`,`kbn-cards`);t.addEventListener(`dragover`,e=>{e.preventDefault(),t.classList.add(`drop-target`)}),t.addEventListener(`dragleave`,()=>{t.classList.remove(`drop-target`)}),t.addEventListener(`drop`,r=>{if(r.preventDefault(),t.classList.remove(`drop-target`),!o)return;let a=i.find(e=>e.id===o);!a||a.column===e.id||(a.column=e.id,l(),n.emitAction({type:`button`,id:`move-card`,label:`Move Card`},JSON.stringify({id:a.id,column:e.id})))});for(let e of d){let t=Q(`article`,`kbn-card priority-${e.priority??`low`}`);if(t.draggable=!0,t.appendChild(Q(`div`,`kbn-card-title`,e.title)),e.description){let n=Q(`div`,`kbn-card-description`,e.description);n.hidden=!a.has(e.id),t.appendChild(n),t.addEventListener(`click`,()=>{a.has(e.id)?a.delete(e.id):a.add(e.id),n.hidden=!a.has(e.id)})}else t.addEventListener(`click`,()=>{a.has(e.id)?a.delete(e.id):a.add(e.id)});if(e.tags?.length){let n=Q(`div`,`kbn-tags`);for(let t of e.tags)n.appendChild(Q(`span`,`kbn-tag`,t));t.appendChild(n)}t.addEventListener(`dragstart`,()=>{o=e.id,t.classList.add(`dragging`)}),t.addEventListener(`dragend`,()=>{t.classList.remove(`dragging`),o=``}),f.appendChild(t)}t.appendChild(f),c.appendChild(t)}};l(),e.appendChild(s)},styles(){return sT}},lT=`
|
|
2808
3008
|
.sort-list { list-style: none; padding: 0; margin: 0; }
|
|
2809
3009
|
.sort-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 4px 0;
|
|
2810
3010
|
background: var(--aikit-surface, #252526); border: 1px solid var(--aikit-border, #3c3c3c);
|
|
@@ -2815,7 +3015,7 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
2815
3015
|
.drag-handle { font-size: 18px; color: var(--aikit-muted, #858585); cursor: grab; user-select: none; }
|
|
2816
3016
|
.sort-label { flex: 1; color: var(--aikit-text, #ccc); }
|
|
2817
3017
|
.sort-pos { font-size: 12px; color: var(--aikit-muted, #858585); font-variant-numeric: tabular-nums; }
|
|
2818
|
-
`,
|
|
3018
|
+
`,uT={name:`list-sort`,label:`Sortable List`,detect(e){if(typeof e!=`object`||!e||Array.isArray(e))return 0;let t=e;return t.items&&Array.isArray(t.items)&&!t.categories?.8:0},render(e,t,n){let r=t,i=Q(`div`,`block tpl-list-sort`);Lw(`tpl-list-sort`,lT);function a(e){i.innerHTML=``;let t=Q(`ul`,`sort-list`),r=-1;for(let i=0;i<e.length;i++){let o=e[i],s=document.createElement(`li`);s.className=`sort-item`,s.draggable=!0,s.dataset.idx=String(i);let c=Q(`span`,`drag-handle`,`⠿`),l=Q(`span`,`sort-label`,o.label),u=Q(`span`,`sort-pos`,`#${i+1}`);s.appendChild(c),s.appendChild(l),s.appendChild(u),s.addEventListener(`dragstart`,()=>{r=Number(s.dataset.idx),s.classList.add(`dragging`)}),s.addEventListener(`dragend`,()=>{s.classList.remove(`dragging`)}),s.addEventListener(`dragenter`,e=>{e.preventDefault()}),s.addEventListener(`dragover`,e=>{e.preventDefault(),s.classList.add(`drag-over`)}),s.addEventListener(`dragleave`,()=>{s.classList.remove(`drag-over`)}),s.addEventListener(`drop`,t=>{t.preventDefault(),s.classList.remove(`drag-over`);let i=Number(s.dataset.idx);if(r>=0&&r!==i){let t=[...e],[o]=t.splice(r,1);t.splice(i,0,o),a(t),n.emitAction({type:`button`,id:`reorder`,label:`Reorder`},JSON.stringify(t.map(e=>e.id)))}}),t.appendChild(s)}i.appendChild(t)}a([...r.items??[]]),e.appendChild(i)},styles(){return lT}},dT=document.getElementById(`app`);if(!dT)throw Error(`Missing #app element`);var $=dT,fT=Nw(),pT=fT?void 0:new EC({name:`AI Kit Present`,version:`1.0.0`}),mT=new Jw;mT.register(uT),mT.register(oT),mT.register(rT),mT.register(cT);var hT=Ow(pT),gT={app:pT,data:Pw(pT),emitAction:hT},_T=new tT,vT=new Vw,yT=pT?new Fw(pT):void 0,bT=null,xT=!!fT,ST,CT=null;Lw(`aikit-shared-header`,Vn),Lw(`aikit-spa-shell`,`
|
|
2819
3019
|
body {
|
|
2820
3020
|
margin: 0;
|
|
2821
3021
|
display: flex;
|
|
@@ -2833,25 +3033,76 @@ body {
|
|
|
2833
3033
|
max-width: var(--aikit-content-max-width, 100%);
|
|
2834
3034
|
margin: 0 auto;
|
|
2835
3035
|
}
|
|
2836
|
-
.
|
|
3036
|
+
.main-layout {
|
|
2837
3037
|
flex: 1;
|
|
3038
|
+
display: flex;
|
|
3039
|
+
flex-direction: row;
|
|
2838
3040
|
width: 100%;
|
|
2839
|
-
|
|
3041
|
+
min-height: 0;
|
|
3042
|
+
}
|
|
3043
|
+
.content-column {
|
|
3044
|
+
flex: 1;
|
|
3045
|
+
display: flex;
|
|
3046
|
+
flex-direction: column;
|
|
3047
|
+
min-width: 0;
|
|
3048
|
+
min-height: 0;
|
|
3049
|
+
}
|
|
3050
|
+
.main-content {
|
|
3051
|
+
flex: 1;
|
|
3052
|
+
min-width: 0;
|
|
3053
|
+
min-height: 0;
|
|
3054
|
+
overflow-y: auto;
|
|
3055
|
+
max-width: var(--aikit-content-max-width, 100%);
|
|
2840
3056
|
padding: var(--dt-space-4);
|
|
2841
3057
|
display: flex;
|
|
2842
3058
|
flex-direction: column;
|
|
2843
3059
|
gap: var(--dt-space-4);
|
|
2844
3060
|
}
|
|
2845
|
-
.content > * {
|
|
3061
|
+
.main-content > * {
|
|
2846
3062
|
flex-shrink: 0;
|
|
2847
3063
|
}
|
|
2848
|
-
.
|
|
2849
|
-
|
|
3064
|
+
.main-content::-webkit-scrollbar {
|
|
3065
|
+
width: 6px;
|
|
3066
|
+
}
|
|
3067
|
+
.main-content::-webkit-scrollbar-track {
|
|
3068
|
+
background: transparent;
|
|
3069
|
+
}
|
|
3070
|
+
.main-content::-webkit-scrollbar-thumb {
|
|
3071
|
+
background: var(--dt-border-default);
|
|
3072
|
+
border-radius: 3px;
|
|
3073
|
+
}
|
|
3074
|
+
.main-content::-webkit-scrollbar-thumb:hover {
|
|
3075
|
+
background: var(--dt-border-muted);
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
.action-bar {
|
|
3079
|
+
flex-shrink: 0;
|
|
3080
|
+
position: sticky;
|
|
3081
|
+
bottom: 0;
|
|
2850
3082
|
display: flex;
|
|
2851
|
-
flex-
|
|
2852
|
-
|
|
3083
|
+
flex-wrap: wrap;
|
|
3084
|
+
align-items: center;
|
|
3085
|
+
gap: var(--dt-space-2);
|
|
3086
|
+
padding: var(--dt-space-3) var(--dt-space-4);
|
|
3087
|
+
border-top: 1px solid var(--dt-border-default);
|
|
3088
|
+
background: color-mix(in srgb, var(--dt-bg-primary) 92%, transparent);
|
|
3089
|
+
backdrop-filter: blur(12px);
|
|
3090
|
+
}
|
|
3091
|
+
.action-bar:empty {
|
|
3092
|
+
display: none;
|
|
2853
3093
|
}
|
|
2854
|
-
`);var ET=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>`,DT=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>`,OT=Ei(),kT={kind:`shared-chrome-action`,id:`copy-image`,label:`Copy as Image`,icon:ET,onclick:`screenshotPage()`};function AT(){return typeof navigator<`u`&&typeof document<`u`&&!!navigator.clipboard?.write&&typeof window<`u`&&`ClipboardItem`in window}function jT(){return AT()?[kT]:[]}var MT=null,NT=!1;function PT(e,t={}){if(!MT)return;let{button:n,menu:r}=MT;r.hidden=!e,n.setAttribute(`aria-expanded`,String(e)),e&&t.focusItem?r.querySelector(`.${m.toolboxItem}`)?.focus():!e&&t.restoreFocus&&n.focus()}function FT(){NT||(NT=!0,document.addEventListener(`click`,e=>{if(!MT)return;let t=e.target;t instanceof Node&&MT.container.contains(t)||PT(!1)}),document.addEventListener(`keydown`,e=>{if(MT){if(e.key===`Escape`){PT(!1,{restoreFocus:!0});return}(e.key===`ArrowDown`||e.key===`Enter`||e.key===` `)&&e.target===MT.button&&(e.preventDefault(),PT(!0,{focusItem:!0}))}}))}function IT(e){if(FT(),e.length===0)return null;let t=Q(`div`,m.toolbox),n=Q(`button`,m.toolboxToggle),r=Q(`div`,m.toolboxMenu);n.type=`button`,n.setAttribute(`aria-label`,`Open tools menu`),n.setAttribute(`aria-haspopup`,`menu`),n.setAttribute(`aria-expanded`,`false`),n.setAttribute(`aria-controls`,`aikit-toolbox-menu`),n.innerHTML=DT,n.addEventListener(`click`,()=>{PT(!!r.hidden,{focusItem:!!r.hidden})}),r.id=`aikit-toolbox-menu`,r.setAttribute(`role`,`menu`),r.hidden=!0;for(let t of e){if(t.id!==`copy-image`)continue;let e=Q(`button`,m.toolboxItem);e.type=`button`,e.setAttribute(`role`,`menuitem`),e.setAttribute(`aria-label`,t.label),e.dataset.sharedChromeAction=t.id,e.innerHTML=`<span aria-hidden="true">${t.icon}</span><span>${t.label}</span>`,e.addEventListener(`click`,()=>{PT(!1),WT()}),r.appendChild(e)}return r.childElementCount===0?null:(t.appendChild(n),t.appendChild(r),MT={button:n,container:t,menu:r},t)}function LT(e,t){let n=Q(`header`,m.header);n.appendChild(Q(`div`,m.brand,`AI KIT`));let r=Q(`div`,m.title);r.appendChild(Q(`span`,m.titleText,e)),t&&r.appendChild(Q(`span`,m.subtitle,t));let i=Q(`div`,m.actions),a=IT(jT());a&&i.appendChild(a),n.appendChild(r),n.appendChild(i),$.appendChild(n)}function RT(){if(TT){let e=TT.getStore().getState().annotations.length;e>0&&console.warn(`[Annotation] ${e} annotation(s) discarded on view reset. Submit feedback before the view refreshes to preserve your work.`),TT.destroy()}TT=null,ST?.(),ST=null,tE?.destroy&&tE.destroy(),tE=null}function zT(e,t){let n=new Map,r=e=>{n.set(o(e.id),e)};for(let e of t??[])r(e);for(let t of e)if(!(t.type!==`actions`||!Array.isArray(t.value)))for(let e of t.value)e&&typeof e==`object`&&`id`in e&&r(e);return n}function BT(e,t,n){let r=zT(t,n);ST=kw(e,t,(e,t)=>{_T(r.get(e)??{type:t===void 0?`button`:`select`,id:e,label:e},t)})}function VT(e,t,n){let r=document.documentElement.dir,i=Nw(e,t,{colorScheme:yT.getTheme(),lang:document.documentElement.lang||void 0,dir:r===`ltr`||r===`rtl`||r===`auto`?r:void 0});return i?{blocks:i.blocks,actions:n.actions}:null}var HT;function UT(e){RT(),$.innerHTML=``;let t=Yw(e);e.title&<(e.title,`Streaming`);let n=Q(`div`,`content`);BT(n,t.blocks??[]),$.appendChild(n)}async function WT(){let e;try{e=await ZT()}catch(e){console.warn(OT.fallbackToServerCaptureMessage,e),$T(OT.blockedClipboardMessage,`error`);return}try{await qT(e),$T(OT.clipboardSuccessMessage)}catch(t){console.warn(`Async Clipboard image write failed`,t);try{await KT(e),$T(`Async clipboard write blocked. Copied via legacy clipboard path.`)}catch(t){console.warn(`Legacy clipboard image write failed`,t);try{await JT(e),$T(`${OT.blockedClipboardMessage} Downloading PNG instead.`)}catch(e){console.warn(`Copy as Image download fallback failed`,e),$T(OT.blockedClipboardMessage,`error`)}}}}function GT(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result)),r.onerror=()=>n(r.error||Error(`Image conversion failed`)),r.readAsDataURL(e)})}async function KT(e){let t=await GT(e),n=!1,r=r=>{let i=r.clipboardData;if(i){r.preventDefault();try{i.items&&typeof File<`u`&&(i.items.add(new File([e],`aikit-present.png`,{type:`image/png`})),n=!0)}catch{}i.setData(`text/html`,`<img alt="AI Kit Present" src="${t}">`),i.setData(`text/plain`,`AI Kit Present image`),n=!0}};document.addEventListener(`copy`,r,{once:!0});try{n=document.execCommand(`copy`)||n}finally{document.removeEventListener(`copy`,r)}if(!n)throw Error(`Legacy clipboard copy unavailable`)}async function qT(e){if(!navigator.clipboard?.write||!(`ClipboardItem`in window))throw Error(`Async image clipboard is unavailable in this host.`);await navigator.clipboard.write([new ClipboardItem({"image/png":e})])}async function JT(e){let t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`aikit-present.png`,n.rel=`noopener`,document.body.appendChild(n);try{n.click()}finally{n.remove(),URL.revokeObjectURL(t)}}async function YT(){let e=Math.max(document.documentElement.scrollWidth,document.documentElement.clientWidth,document.body?document.body.scrollWidth:0),t=Math.max(document.documentElement.scrollHeight,document.documentElement.clientHeight,document.body?document.body.scrollHeight:0),n=window.devicePixelRatio||1,r=document.createElement(`canvas`);r.width=Math.max(1,Math.ceil(e*n)),r.height=Math.max(1,Math.ceil(t*n));let i=r.getContext(`2d`);if(!i)throw Error(`Canvas context unavailable`);i.scale(n,n);let a=document.documentElement.cloneNode(!0);if(!(a instanceof Element))throw Error(`Document clone failed`);a.setAttribute(`xmlns`,`http://www.w3.org/1999/xhtml`),a.querySelectorAll(`script`).forEach(e=>{e.remove()}),QT(document.documentElement,a);let o=[`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${t}" viewBox="0 0 ${e} ${t}">`,`<foreignObject width="100%" height="100%">${new XMLSerializer().serializeToString(a)}</foreignObject>`,`</svg>`].join(``),s=new Blob([o],{type:`image/svg+xml;charset=utf-8`}),c=URL.createObjectURL(s);try{await new Promise((n,r)=>{let a=new Image;a.onload=()=>{i.drawImage(a,0,0,e,t),n(void 0)},a.onerror=()=>r(Error(`ForeignObject render failed`)),a.src=c})}finally{URL.revokeObjectURL(c)}let l=await new Promise(e=>r.toBlob(e,`image/png`));if(l?.type!==`image/png`)throw Error(`PNG export failed`);return l}async function XT(){let e=await fetch(`/__aikit_screenshot.png`,{cache:`no-store`});if(!e.ok)throw Error(`Server PNG capture unavailable`);let t=await e.blob();if(t?.type!==`image/png`)throw Error(`Server PNG capture failed`);return t}async function ZT(){try{return await XT()}catch{return YT()}}function QT(e,t){let n=window.getComputedStyle(e),r=Array.from(n).map(e=>`${e}:${n.getPropertyValue(e)}${n.getPropertyPriority(e)?` !important`:``};`).join(``);t.setAttribute(`style`,r);for(let n=0;n<e.children.length;n+=1){let r=e.children[n],i=t.children[n];r&&i&&QT(r,i)}}function $T(e,t=`info`){let n=$.querySelector(`.host-message`);n||(n=Q(`div`,`host-message`),$.prepend(n)),n.dataset.tone=t,n.replaceChildren(),n.appendChild(Q(`span`,``,e)),clearTimeout(wT),wT=setTimeout(()=>{n?.remove()},4e3)}function eE(){if(!CT)return;let e=window;e.toggleToolbox=()=>{if(MT){PT(!!MT.menu.hidden);return}let e=document.getElementById(`aikit-toolbox-menu`);e&&(e.hidden=!e.hidden)},e.screenshotPage||=WT}var tE=null;function nE(e,t){$.innerHTML=``;let n=Q(`div`,`error-panel`);n.appendChild(Q(`h3`,``,`⚠ ${e}`)),n.appendChild(Q(`pre`,``,t instanceof Error?t.message:String(t))),$.appendChild(n)}function rE(e){RT(),$.innerHTML=``;let t=Yw(e),n=t.data;if(n==null){$.innerHTML=`<p class="no-data">No content data received.</p>`;return}e.title&&!CT&<(e.title);let r=t.template?gT.get(t.template):gT.detect(n),i=Q(`div`,`content`);if(r)tE=r,r.render(i,n,vT);else if(t.template){let r=VT(t.template,n,e);r?BT(i,r.blocks,r.actions):BT(i,t.blocks??[],e.actions)}else BT(i,t.blocks??[],e.actions);if($.appendChild(i),e.actions?.length){let t=Q(`div`,`actions-shell`),n=kw(t,[{type:`actions`,value:e.actions}],(t,n)=>{_T(e.actions?.find(e=>o(e.id)===t)??{type:n===void 0?`button`:`select`,id:t,label:t},n)}),r=ST;ST=()=>{r?.(),n()},$.appendChild(t)}TT=XC({container:i,emitAction:(e,t)=>{_T({type:`button`,id:e,label:`Annotations`},t??``)}});let a=document.createElement(`footer`);a.className=m.footer,a.innerHTML=`<div class="${m.footerMeta}"><span class="${m.footerText}">Generated by <span class="${m.footerBrand}">AI KIT</span></span></div>`,$.appendChild(a)}hT?(hT.connect().then(()=>{let e=hT.getHostContext();e&&(yT.apply(e),bT.apply(e),xT?.apply(e))}),hT.onhostcontextchanged=e=>{yT.apply(e),bT.apply(e),xT?.apply(e),tE?.onThemeChange&&tE.onThemeChange(yT.getTheme())},hT.ontoolinputpartial=e=>{let t=e.arguments;t&&($.dataset.streaming=`true`,clearTimeout(HT),HT=setTimeout(()=>{try{let e=t.content??t.data??t.blocks;if(e==null)return;UT({schemaVersion:t.schemaVersion===1?1:void 0,title:t.title,template:t.template,content:e,data:t.data,blocks:Array.isArray(t.blocks)?t.blocks:void 0})}catch{}},80))},hT.ontoolinput=()=>{clearTimeout(HT),delete $.dataset.streaming},hT.ontoolresult=e=>{if(clearTimeout(HT),delete $.dataset.streaming,e.structuredContent)try{rE(e.structuredContent);return}catch(e){nE(`Render error`,e);return}let t=e.content?.find(e=>e.type===`text`)?.text;if(!t){$.innerHTML=`<p>No data received.</p>`;return}try{rE(JSON.parse(t))}catch{rE({content:t})}}):mT&&(document.documentElement.dataset.theme=`dark`,eE(),rE(mT));</script>
|
|
3094
|
+
.action-bar .bk-actions {
|
|
3095
|
+
display: flex;
|
|
3096
|
+
flex-wrap: wrap;
|
|
3097
|
+
align-items: center;
|
|
3098
|
+
gap: var(--dt-space-2);
|
|
3099
|
+
margin: 0;
|
|
3100
|
+
padding: 0;
|
|
3101
|
+
border: none;
|
|
3102
|
+
background: none;
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
`);var wT=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>`,TT=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>`,ET=Ti(),DT={kind:`shared-chrome-action`,id:`copy-image`,label:`Copy as Image`,icon:wT,onclick:`screenshotPage()`};function OT(){return typeof navigator<`u`&&typeof document<`u`&&!!navigator.clipboard?.write&&typeof window<`u`&&`ClipboardItem`in window}function kT(){return OT()?[DT]:[]}var AT=null,jT=!1;function MT(e,t={}){if(!AT)return;let{button:n,menu:r}=AT;r.hidden=!e,n.setAttribute(`aria-expanded`,String(e)),e&&t.focusItem?r.querySelector(`.${m.toolboxItem}`)?.focus():!e&&t.restoreFocus&&n.focus()}function NT(){jT||(jT=!0,document.addEventListener(`click`,e=>{if(!AT)return;let t=e.target;t instanceof Node&&AT.container.contains(t)||MT(!1)}),document.addEventListener(`keydown`,e=>{if(AT){if(e.key===`Escape`){MT(!1,{restoreFocus:!0});return}(e.key===`ArrowDown`||e.key===`Enter`||e.key===` `)&&e.target===AT.button&&(e.preventDefault(),MT(!0,{focusItem:!0}))}}))}function PT(e){if(NT(),e.length===0)return null;let t=Q(`div`,m.toolbox),n=Q(`button`,m.toolboxToggle),r=Q(`div`,m.toolboxMenu);n.type=`button`,n.setAttribute(`aria-label`,`Open tools menu`),n.setAttribute(`aria-haspopup`,`menu`),n.setAttribute(`aria-expanded`,`false`),n.setAttribute(`aria-controls`,`aikit-toolbox-menu`),n.innerHTML=TT,n.addEventListener(`click`,()=>{MT(!!r.hidden,{focusItem:!!r.hidden})}),r.id=`aikit-toolbox-menu`,r.setAttribute(`role`,`menu`),r.hidden=!0;for(let t of e){if(t.id!==`copy-image`)continue;let e=Q(`button`,m.toolboxItem);e.type=`button`,e.setAttribute(`role`,`menuitem`),e.setAttribute(`aria-label`,t.label),e.dataset.sharedChromeAction=t.id,e.innerHTML=`<span aria-hidden="true">${t.icon}</span><span>${t.label}</span>`,e.addEventListener(`click`,()=>{MT(!1),HT()}),r.appendChild(e)}return r.childElementCount===0?null:(t.appendChild(n),t.appendChild(r),AT={button:n,container:t,menu:r},t)}function FT(e,t){let n=Q(`header`,m.header);n.appendChild(Q(`div`,m.brand,`AI KIT`));let r=Q(`div`,m.title);r.appendChild(Q(`span`,m.titleText,e)),t&&r.appendChild(Q(`span`,m.subtitle,t));let i=Q(`div`,m.actions),a=PT(kT());a&&i.appendChild(a),n.appendChild(r),n.appendChild(i),$.appendChild(n)}function IT(){if(CT){let e=CT.getStore().getState().annotations.length;e>0&&console.warn(`[Annotation] ${e} annotation(s) discarded on view reset. Submit feedback before the view refreshes to preserve your work.`),CT.destroy()}CT=null,bT?.(),bT=null,$T?.destroy&&$T.destroy(),$T=null}function LT(e,t){let n=new Map,r=e=>{n.set(o(e.id),e)};for(let e of t??[])r(e);for(let t of e)if(!(t.type!==`actions`||!Array.isArray(t.value)))for(let e of t.value)e&&typeof e==`object`&&`id`in e&&r(e);return n}function RT(e,t,n){let r=LT(t,n);bT=Dw(e,t,(e,t)=>{let n=r.get(e)??{type:t===void 0?`button`:`select`,id:e,label:e};if(CT){let e=CT.getExporter().exportJSON(),r=JSON.parse(e);if(r.length>0){hT(n,t===void 0?e:JSON.stringify({value:t,annotations:r}));return}}hT(n,t)})}function zT(e,t,n){let r=document.documentElement.dir,i=jw(e,t,{colorScheme:_T.getTheme(),lang:document.documentElement.lang||void 0,dir:r===`ltr`||r===`rtl`||r===`auto`?r:void 0});return i?{blocks:i.blocks,actions:n.actions}:null}var BT;function VT(e){IT(),$.innerHTML=``;let t=qw(e);e.title&&FT(e.title,`Streaming`);let n=Q(`div`,`content`);RT(n,t.blocks??[]),$.appendChild(n)}async function HT(){let e;try{e=await YT()}catch(t){console.warn(`Copy as Image capture failed`,t);try{e=await qT()}catch(e){console.warn(`Document capture also failed`,e),ZT(`Screenshot capture failed. Try using your browser's screenshot tool.`,`error`);return}}try{await GT(e),ZT(ET.clipboardSuccessMessage)}catch(t){console.warn(`Async Clipboard image write failed`,t);try{await WT(e),ZT(`Async clipboard write blocked. Copied via legacy clipboard path.`)}catch(t){console.warn(`Legacy clipboard image write failed`,t);try{await KT(e),ZT(`Clipboard blocked — downloading PNG instead.`)}catch(e){console.warn(`Copy as Image download fallback failed`,e),ZT(ET.blockedClipboardMessage,`error`)}}}}function UT(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result)),r.onerror=()=>n(r.error||Error(`Image conversion failed`)),r.readAsDataURL(e)})}async function WT(e){let t=await UT(e),n=!1,r=r=>{let i=r.clipboardData;if(i){r.preventDefault();try{i.items&&typeof File<`u`&&(i.items.add(new File([e],`aikit-present.png`,{type:`image/png`})),n=!0)}catch{}i.setData(`text/html`,`<img alt="AI Kit Present" src="${t}">`),i.setData(`text/plain`,`AI Kit Present image`),n=!0}};document.addEventListener(`copy`,r,{once:!0});try{n=document.execCommand(`copy`)||n}finally{document.removeEventListener(`copy`,r)}if(!n)throw Error(`Legacy clipboard copy unavailable`)}async function GT(e){if(!navigator.clipboard?.write||!(`ClipboardItem`in window))throw Error(`Async image clipboard is unavailable in this host.`);await navigator.clipboard.write([new ClipboardItem({"image/png":e})])}async function KT(e){let t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`aikit-present.png`,n.rel=`noopener`,document.body.appendChild(n);try{n.click()}finally{n.remove(),URL.revokeObjectURL(t)}}async function qT(){let e=Math.max(document.documentElement.scrollWidth,document.documentElement.clientWidth,document.body?document.body.scrollWidth:0),t=Math.max(document.documentElement.scrollHeight,document.documentElement.clientHeight,document.body?document.body.scrollHeight:0),n=window.devicePixelRatio||1,r=document.createElement(`canvas`);r.width=Math.max(1,Math.ceil(e*n)),r.height=Math.max(1,Math.ceil(t*n));let i=r.getContext(`2d`);if(!i)throw Error(`Canvas context unavailable`);i.scale(n,n);let a=document.documentElement.cloneNode(!0);if(!(a instanceof Element))throw Error(`Document clone failed`);a.setAttribute(`xmlns`,`http://www.w3.org/1999/xhtml`),a.querySelectorAll(`script`).forEach(e=>{e.remove()}),XT(document.documentElement,a);let o=[`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${t}" viewBox="0 0 ${e} ${t}">`,`<foreignObject width="100%" height="100%">${new XMLSerializer().serializeToString(a)}</foreignObject>`,`</svg>`].join(``),s=new Blob([o],{type:`image/svg+xml;charset=utf-8`}),c=URL.createObjectURL(s);try{await new Promise((n,r)=>{let a=new Image;a.onload=()=>{i.drawImage(a,0,0,e,t),n(void 0)},a.onerror=()=>r(Error(`ForeignObject render failed`)),a.src=c})}finally{URL.revokeObjectURL(c)}let l=await new Promise(e=>r.toBlob(e,`image/png`));if(l?.type!==`image/png`)throw Error(`PNG export failed`);return l}async function JT(){let e=await fetch(`/__aikit_screenshot.png`,{cache:`no-store`});if(!e.ok)throw Error(`Server PNG capture unavailable`);let t=await e.blob();if(t?.type!==`image/png`)throw Error(`Server PNG capture failed`);return t}async function YT(){try{return await JT()}catch{return qT()}}function XT(e,t){let n=window.getComputedStyle(e),r=Array.from(n).map(e=>`${e}:${n.getPropertyValue(e)}${n.getPropertyPriority(e)?` !important`:``};`).join(``);t.setAttribute(`style`,r);for(let n=0;n<e.children.length;n+=1){let r=e.children[n],i=t.children[n];r&&i&&XT(r,i)}}function ZT(e,t=`info`){let n=$.querySelector(`.host-message`);n||(n=Q(`div`,`host-message`),$.prepend(n)),n.dataset.tone=t,n.replaceChildren(),n.appendChild(Q(`span`,``,e)),clearTimeout(ST),ST=setTimeout(()=>{n?.remove()},4e3)}function QT(){if(!xT)return;let e=window;e.toggleToolbox=()=>{if(AT){MT(!!AT.menu.hidden);return}let e=document.getElementById(`aikit-toolbox-menu`);e&&(e.hidden=!e.hidden)},e.screenshotPage||=HT}var $T=null;function eE(e,t){$.innerHTML=``;let n=Q(`div`,`error-panel`);n.appendChild(Q(`h3`,``,`⚠ ${e}`)),n.appendChild(Q(`pre`,``,t instanceof Error?t.message:String(t))),$.appendChild(n)}function tE(e){IT(),$.innerHTML=``;let t=qw(e),n=t.data;if(n==null){$.innerHTML=`<p class="no-data">No content data received.</p>`;return}e.title&&!xT&&FT(e.title);let r=t.template?mT.get(t.template):mT.detect(n),i=Q(`div`,`main-content`);if(r)$T=r,r.render(i,n,gT);else if(t.template){let r=zT(t.template,n,e);r?RT(i,r.blocks,r.actions):RT(i,t.blocks??[],e.actions)}else RT(i,t.blocks??[],e.actions);if(e.actions?.length&&!r&&!t.template){let t=i.querySelectorAll(`.bk-actions`),n=new Set;for(let e of t)for(let t of e.querySelectorAll(`[data-action-id]`))n.add(t.dataset.actionId??``);let r=e.actions.filter(e=>!n.has(o(e.id)));if(r.length>0){let t=Q(`div`,``),n=Dw(t,[{type:`actions`,value:r}],(t,n)=>{let r=e.actions?.find(e=>o(e.id)===t)??{type:n===void 0?`button`:`select`,id:t,label:t};if(CT){let e=CT.getExporter().exportJSON(),t=JSON.parse(e);if(t.length>0){hT(r,n===void 0?e:JSON.stringify({value:n,annotations:t}));return}}hT(r,n)}),a=bT;bT=()=>{a?.(),n()},i.appendChild(t)}}let a=Q(`div`,`main-layout`),s=Q(`div`,`content-column`);s.appendChild(i),a.appendChild(s),$.appendChild(a),CT=JC({container:i,mountTarget:a});{let e=CT.getStore();e.subscribe(e=>{e.type===`sidebar-toggled`&&(e.open?$.style.setProperty(`--aikit-content-max-width`,`none`):$.style.removeProperty(`--aikit-content-max-width`))}),e.getState().isSidebarOpen&&$.style.setProperty(`--aikit-content-max-width`,`none`)}{let e=i.querySelectorAll(`.bk-actions`);if(e.length>0){let t=Q(`div`,`action-bar`),n=!1;for(let r of e)if(!r.querySelector(`input[type="text"], input:not([type]), textarea`)){for(;r.firstChild;)t.appendChild(r.firstChild);r.remove(),n=!0}n&&(i.appendChild(t),i.style.paddingBottom=`0`)}}let c=document.createElement(`footer`);c.className=m.footer,c.innerHTML=`<div class="${m.footerMeta}"><span class="${m.footerText}">Generated by <span class="${m.footerBrand}">AI KIT</span></span></div>`,$.appendChild(c)}pT?(pT.connect().then(()=>{let e=pT.getHostContext();e&&(_T.apply(e),vT.apply(e),yT?.apply(e))}),pT.onhostcontextchanged=e=>{_T.apply(e),vT.apply(e),yT?.apply(e),$T?.onThemeChange&&$T.onThemeChange(_T.getTheme())},pT.ontoolinputpartial=e=>{let t=e.arguments;t&&($.dataset.streaming=`true`,clearTimeout(BT),BT=setTimeout(()=>{try{let e=t.content??t.data??t.blocks;if(e==null)return;VT({schemaVersion:t.schemaVersion===1?1:void 0,title:t.title,template:t.template,content:e,data:t.data,blocks:Array.isArray(t.blocks)?t.blocks:void 0})}catch{}},80))},pT.ontoolinput=()=>{clearTimeout(BT),delete $.dataset.streaming},pT.ontoolresult=e=>{if(clearTimeout(BT),delete $.dataset.streaming,e.structuredContent)try{tE(e.structuredContent);return}catch(e){eE(`Render error`,e);return}let t=e.content?.find(e=>e.type===`text`)?.text;if(!t){$.innerHTML=`<p>No data received.</p>`;return}try{tE(JSON.parse(t))}catch{tE({content:t})}}):fT&&(document.documentElement.dataset.theme=`dark`,QT(),tE(fT));</script>
|
|
2855
3106
|
</head>
|
|
2856
3107
|
<body>
|
|
2857
3108
|
<div id="app">
|