@openephemeris/mcp-server 4.18.0 → 4.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/dist/index.js +8 -110
- package/dist/server-sse.js +7 -114
- package/dist/tools/apps/bazi-app.d.ts +1 -1
- package/dist/tools/apps/bazi-app.js +3 -2
- package/dist/tools/apps/bi-wheel-app.d.ts +1 -1
- package/dist/tools/apps/bi-wheel-app.js +3 -2
- package/dist/tools/apps/bodygraph-app.d.ts +7 -4
- package/dist/tools/apps/bodygraph-app.js +13 -5
- package/dist/tools/apps/chart-wheel-app.d.ts +1 -1
- package/dist/tools/apps/chart-wheel-app.js +3 -2
- package/dist/tools/apps/moon-phase-app.d.ts +1 -1
- package/dist/tools/apps/moon-phase-app.js +3 -2
- package/dist/tools/apps/transit-timeline-app.d.ts +1 -1
- package/dist/tools/apps/transit-timeline-app.js +3 -2
- package/dist/tools/apps/ui-resource.d.ts +43 -0
- package/dist/tools/apps/ui-resource.js +66 -0
- package/dist/tools/apps/ui-resources.d.ts +22 -0
- package/dist/tools/apps/ui-resources.js +105 -0
- package/dist/tools/apps/vedic-chart-app.d.ts +1 -1
- package/dist/tools/apps/vedic-chart-app.js +3 -2
- package/dist/tools/specialized/comparative.js +25 -23
- package/dist/tools/specialized/hd_cycles.js +22 -23
- package/dist/tools/specialized/progressed.js +5 -2
- package/dist/tools/specialized/relocation.js +5 -2
- package/dist/tools/visual.d.ts +15 -0
- package/dist/tools/visual.js +22 -0
- package/dist/ui/bazi.html +893 -856
- package/dist/ui/bi-wheel.html +555 -518
- package/dist/ui/bodygraph.html +433 -337
- package/dist/ui/chart-wheel.html +632 -595
- package/dist/ui/moon-phase.html +190 -155
- package/dist/ui/transit-timeline.html +865 -830
- package/dist/ui/vedic-chart.html +252 -215
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data:; font-src data:; connect-src 'none'" />
|
|
4
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data:; font-src data: https:; connect-src 'none'" />
|
|
5
5
|
<meta charset="UTF-8" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<meta name="color-scheme" content="dark light" />
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
iframe render time. Styles fall back to the system font stack. -->
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
<style>*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg-primary:#090b0f;--bg-secondary:#12161d;--bg-tertiary:#1c222b;--bg-hover:#272e3b;--border:#282e38;--border-subtle:#1d2229;--text-primary:#e1e5eb;--text-secondary:#aab2be;--text-muted:#9399a2;--accent:#62b3ff;--accent-warm:#e6ac3d;--radius:8px;--radius-sm:4px;--radius-lg:12px;--planet-sun:#f0b135;--planet-moon:#aebedf;--planet-mercury:#47c58c;--planet-venus:#ec7fca;--planet-mars:#f05560;--planet-jupiter:#a492fb;--planet-saturn:#67acb0;--planet-uranus:#30c8cf;--planet-neptune:#3b9cf6;--planet-pluto:#b589d6;--font-display:"Space Grotesk", system-ui, sans-serif;--font-body:"Inter", system-ui, sans-serif;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@supports (color:color(display-p3 0 0 0)){:root{--bg-primary:color(display-p3 .036047 .0438664 .059078);--bg-secondary:color(display-p3 .0739679 .0866504 .111186);--bg-tertiary:color(display-p3 .114361 .13221 .166818);--bg-hover:color(display-p3 .15679 .180114 .225406);--border:color(display-p3 .161376 .180145 .216325);--border-subtle:color(display-p3 .118728 .13221 .158123);--text-primary:color(display-p3 .883958 .896627 .920543);--text-secondary:color(display-p3 .67138 .695402 .740982);--text-muted:color(display-p3 .580249 .597798 .631048);--accent:color(display-p3 .446063 .694439 1.01077);--accent-warm:color(display-p3 .866978 .684443 .324483);--planet-sun:color(display-p3 .903179 .705765 .311279);--planet-moon:color(display-p3 .694219 .742748 .862643);--planet-mercury:color(display-p3 .425739 .763831 .565642);--planet-venus:color(display-p3 .867795 .51996 .779002);--planet-mars:color(display-p3 .871142 .375628 .39222);--planet-jupiter:color(display-p3 .632215 .575747 .957982);--planet-saturn:color(display-p3 .466828 .667389 .683738);--planet-uranus:color(display-p3 .390298 .771661 .803762);--planet-neptune:color(display-p3 .341875 .605542 .938093);--planet-pluto:color(display-p3 .683949 .542579 .820326)}}@supports (color:lab(0% 0 0)){:root{--bg-primary:lab(3.02674% -.179462 -2.15476);--bg-secondary:lab(7.16596% -.441141 -5.41423);--bg-tertiary:lab(12.9118% -.603847 -7.27841);--bg-hover:lab(18.6882% -.727877 -9.08879);--border:lab(18.7165% -.689328 -7.3094);--border-subtle:lab(12.9391% -.548735 -5.49436);--text-primary:lab(90.6878% -.517368 -3.73452);--text-secondary:lab(72.0905% -.941157 -7.41935);--text-muted:lab(62.8289% -.725299 -5.57443);--accent:lab(70.4043% -7.21234 -50.7672);--accent-warm:lab(74.5248% 14.3487 62.5064);--planet-sun:lab(76.8315% 15.651 68.1009);--planet-moon:lab(76.5362% -.332385 -18.4986);--planet-mercury:lab(71.6908% -46.4717 18.2798);--planet-venus:lab(67.5807% 49.5621 -19.9184);--planet-mars:lab(58.5572% 60.8819 28.2409);--planet-jupiter:lab(65.5944% 24.778 -50.7219);--planet-saturn:lab(65.8857% -22.0269 -9.1112);--planet-uranus:lab(73.3218% -37.5825 -15.4423);--planet-neptune:lab(62.1411% -5.66679 -53.8683);--planet-pluto:lab(63.5145% 28.3498 -33.4164)}}:root[data-theme=light]{--bg-primary:#f3f5f9;--bg-secondary:#e7ebf2;--bg-tertiary:#d8dee8;--bg-hover:#d0d8e5;--border:#bdc5d1;--border-subtle:#d2d8e2;--text-primary:#0f1216;--text-secondary:#414853;--text-muted:#585e67;--accent:#0065b2;--accent-warm:#966800;--planet-sun:#ab6a00;--planet-moon:#5b6986;--planet-mercury:#00784a;--planet-venus:#a13b85;--planet-mars:#be222a;--planet-jupiter:#644fb1;--planet-saturn:#276779;--planet-uranus:#00717f;--planet-neptune:#005bb4;--planet-pluto:#7d4b92;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@supports (color:color(display-p3 0 0 0)){:root[data-theme=light]{--bg-primary:color(display-p3 .95471 .961142 .973263);--bg-secondary:color(display-p3 .909797 .922535 .946581);--bg-tertiary:color(display-p3 .852455 .871315 .906983);--bg-hover:color(display-p3 .821139 .84609 .893374);--border:color(display-p3 .745559 .770059 .816515);--border-subtle:color(display-p3 .826933 .845684 .881152);--text-primary:color(display-p3 .0608605 .0691527 .0850621);--text-secondary:color(display-p3 .261513 .281801 .32064);--text-muted:color(display-p3 .350602 .367691 .400197);--accent:color(display-p3 .143802 .388951 .683672);--accent-warm:color(display-p3 .596632 .396992 -.158844);--planet-sun:color(display-p3 .653347 .414453 -.0616416);--planet-moon:color(display-p3 .366623 .409257 .517223);--planet-mercury:color(display-p3 .110777 .470086 .292341);--planet-venus:color(display-p3 .585722 .257645 .510421);--planet-mars:color(display-p3 .684596 .198589 .19246);--planet-jupiter:color(display-p3 .380719 .312728 .671899);--planet-saturn:color(display-p3 .222977 .397358 .465979);--planet-uranus:color(display-p3 -.0568507 .446018 .525418);--planet-neptune:color(display-p3 .142171 .351944 .684339);--planet-pluto:color(display-p3 .461413 .304902 .555395)}}@supports (color:lab(0% 0 0)){:root[data-theme=light]{--bg-primary:lab(96.5044% -.267208 -1.87215);--bg-secondary:lab(93.0079% -.518054 -3.73492);--bg-tertiary:lab(88.3503% -.749856 -5.58736);--bg-hover:lab(86.0117% -.963032 -7.43047);--border:lab(79.0511% -.952899 -7.42528);--border-subtle:lab(86.0302% -.748128 -5.58643);--text-primary:lab(5.23796% -.285208 -3.0582);--text-secondary:lab(30.3224% -.794604 -7.35166);--text-muted:lab(39.6225% -.718504 -5.91863);--accent:lab(41.1205% -1.70796 -50.1423);--accent-warm:lab(47.6194% 20.1868 104.51);--planet-sun:lab(50.8649% 25.8853 84.6379);--planet-moon:lab(44.0253% .202179 -18.3088);--planet-mercury:lab(43.8263% -47.6118 18.596);--planet-venus:lab(42.0231% 49.078 -19.7923);--planet-mars:lab(42.3845% 60.2199 38.2468);--planet-jupiter:lab(39.7961% 27.9455 -50.2543);--planet-saturn:lab(40.042% -16.3361 -16.5904);--planet-uranus:lab(42.863% -32.0891 -21.9386);--planet-neptune:lab(38.3807% 4.98325 -54.8273);--planet-pluto:lab(40.2012% 30.8431 -30.6281)}}html,body{width:100%;height:100%;min-height:480px;font-family:var(--font-body);background:var(--bg-primary);color:var(--text-primary);font-size:13px;line-height:1.5;overflow-y:auto}body{flex-direction:column;display:flex}#app{flex-direction:column;flex:1;display:flex;overflow:hidden}#loading-state{color:var(--text-secondary);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;display:flex}#loading-state[hidden]{display:none}.oe-loader{width:48px;height:48px;animation:1.2s linear infinite spin}.oe-loader circle{fill:none;stroke:var(--accent);stroke-width:3px;stroke-dasharray:200;stroke-dashoffset:80px;stroke-linecap:round}@keyframes spin{to{transform:rotate(360deg)}}.chart-status{background:var(--bg-secondary);border-top:1px solid var(--border-subtle);color:var(--text-muted);opacity:0;z-index:50;padding:6px 14px;font-size:11px;transition:opacity .2s,transform .2s;position:fixed;bottom:0;left:0;right:0;transform:translateY(100%)}.chart-status.visible{opacity:1;transform:translateY(0)}.pan-zoom-controls{z-index:40;gap:4px;display:flex;position:fixed;top:8px;right:8px}.pan-zoom-controls[hidden]{display:none}.pan-btn{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius-sm);width:28px;height:28px;color:var(--text-secondary);cursor:pointer;justify-content:center;align-items:center;transition:background .15s,color .15s;display:flex}.pan-btn:hover{background:var(--bg-hover);color:var(--text-primary)}#timeline-container{flex-direction:column;flex:1;min-height:440px;padding:16px 16px 4px;display:flex;overflow:hidden}#timeline-container[hidden]{display:none}.tl-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px;display:flex}.tl-title{font-family:var(--font-display);letter-spacing:.01em;color:var(--text-primary);font-size:18px;font-weight:600}.tl-subtitle{color:var(--text-muted);margin-top:2px;font-size:12px}.tl-aspect-badge{background:color-mix(in oklab, var(--accent) 16%, transparent);border:1px solid color-mix(in oklab, var(--accent) 40%, transparent);color:var(--accent);white-space:nowrap;border-radius:999px;flex:none;padding:4px 10px;font-size:11px;font-weight:600}.tl-natal-bar{border-bottom:1px solid var(--border-subtle);flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:12px;padding-bottom:12px;display:flex}.tl-natal-bar-label{text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-right:2px;font-size:10.5px}.tl-chip{background:var(--bg-secondary);border:1px solid var(--border-subtle);color:var(--text-secondary);border-radius:999px;padding:3px 8px;font-size:11px}.tl-scroll{flex:1;padding-right:2px;overflow-y:auto}.tl-group{margin-bottom:14px}.tl-group-label{z-index:2;font-family:var(--font-display);letter-spacing:.04em;text-transform:uppercase;color:var(--accent-warm);background:linear-gradient(var(--bg-primary) 70%, transparent);padding:4px 0 6px;font-size:12px;font-weight:600;position:-webkit-sticky;position:sticky;top:0}.tl-events{list-style:none}.tl-event{border-radius:var(--radius);cursor:pointer;grid-template-columns:18px 34px 1fr;align-items:start;gap:10px;padding:9px 10px 9px 0;transition:background .15s;display:grid;position:relative}.tl-event:hover{background:var(--bg-secondary)}.tl-event.active{background:color-mix(in oklab, var(--accent) 12%, var(--bg-secondary));box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent)}.tl-event:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.tl-event-rail{justify-content:center;align-self:stretch;padding-top:6px;display:flex;position:relative}.tl-event-rail:before{content:"";background:var(--border);width:2px;position:absolute;top:0;bottom:-18px;left:50%;transform:translate(-50%)}.tl-event:last-child .tl-event-rail:before{bottom:50%}.tl-node{z-index:1;background:var(--planet-color,var(--accent));width:9px;height:9px;box-shadow:0 0 0 3px var(--bg-primary);border-radius:50%;position:relative}.tl-event-glyph{width:34px;height:34px;color:var(--planet-color,var(--accent));background:color-mix(in oklab, var(--planet-color,var(--accent)) 14%, transparent);border:1px solid color-mix(in oklab, var(--planet-color,var(--accent)) 35%, transparent);border-radius:50%;justify-content:center;align-items:center;font-size:18px;line-height:1;display:flex}.tl-event-body{min-width:0}.tl-event-line1{flex-wrap:wrap;align-items:baseline;gap:6px;font-size:13px;display:flex}.tl-planet-name{color:var(--text-primary);font-weight:600}.tl-retro{color:var(--accent-warm);font-size:12px;font-weight:600}.tl-natal{color:var(--text-secondary)}.tl-natal-glyph{color:var(--text-primary)}.tl-event-line2{color:var(--text-muted);align-items:center;gap:6px;margin-top:2px;font-size:11.5px;display:flex}.tl-dot{opacity:.5}.tl-pos{color:var(--text-secondary)}.tl-ask{border-radius:var(--radius-sm);border:1px solid color-mix(in oklab, var(--accent) 35%, transparent);background:color-mix(in oklab, var(--accent) 10%, transparent);color:var(--accent);font:inherit;cursor:pointer;margin-top:8px;padding:5px 10px;font-size:11px;font-weight:600;transition:background .15s;display:none}.tl-ask:hover{background:color-mix(in oklab, var(--accent) 20%, transparent)}.tl-event.active .tl-ask{display:inline-flex}.tl-actions{border-top:1px solid var(--border-subtle);gap:8px;margin-top:4px;padding:10px 0 6px;display:flex}.action-btn{border-radius:var(--radius);border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-secondary);cursor:pointer;align-items:center;gap:4px;padding:8px 14px;font-size:12px;font-weight:600;transition:background .15s,color .15s,box-shadow .15s;display:inline-flex}.action-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.action-btn--primary{background:color-mix(in oklab, var(--accent) 30%, var(--bg-secondary));border-color:color-mix(in oklab, var(--accent) 45%, transparent);color:var(--text-primary)}.action-btn--primary:hover{background:color-mix(in oklab, var(--accent) 40%, var(--bg-secondary));box-shadow:0 0 0 1px color-mix(in oklab, var(--accent) 50%, transparent)}.error-state,.empty-state{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;padding:32px;display:flex}.error-icon,.empty-icon{font-size:32px}.empty-title{color:var(--text-primary);font-weight:600}.empty-desc,.error-msg{color:var(--text-secondary);max-width:320px}.error-retry-btn{border:1px solid var(--border);color:var(--accent-warm);font:inherit;letter-spacing:.02em;cursor:pointer;background:0 0;border-radius:999px;margin-top:4px;padding:7px 20px;font-size:11px;font-weight:600;transition:background .18s,border-color .18s}.error-retry-btn:hover{background:var(--bg-hover)}.cancel-toast{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-primary);z-index:200;opacity:0;pointer-events:none;border-radius:999px;padding:8px 16px;font-size:12px;transition:opacity .3s,transform .3s;position:fixed;bottom:16px;left:50%;transform:translate(-50%)translateY(10px)}.cancel-toast.visible{opacity:1;transform:translate(-50%)translateY(0)}body.is-fullscreen #timeline-container{width:100%;max-width:720px;margin:0 auto}
|
|
17
|
+
<style>:root{--bg:#010102;--surface:#030408;--surface-2:#080b11;--border:#13161d;--border-strong:#242933;--text:#e2e4e9;--text-secondary:#a1a5ab;--muted:#84868b;--gold:#cc9c42;--gold-dim:#7b6540;--gold-glow:rgba(204,156,66,.2);--gold-subtle:rgba(204,156,66,.1);--success:#1da871;--error:#c53443;--radius:10px;--radius-sm:6px;--radius-pill:99px;--oe-shadow-md:0 8px 40px rgba(0,0,0,.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px rgba(204,156,66,.15), 0 0 0 1px rgba(204,156,66,.2);--font-ui:var(--font-sans,system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif);--font-code:var(--font-mono,ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace);--oe-page-bg:var(--color-background-primary,var(--bg));--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@supports (color:color(display-p3 0 0 0)){:root{--bg:color(display-p3 .00306656 .00431968 .00888397);--surface:color(display-p3 .013072 .016989 .0298495);--surface-2:color(display-p3 .0345774 .0431759 .0653236);--border:color(display-p3 .0763929 .0859556 .109705);--border-strong:color(display-p3 .144788 .159634 .196542);--text:color(display-p3 .889546 .895785 .910689);--text-secondary:color(display-p3 .635245 .644982 .668335);--muted:color(display-p3 .518127 .525635 .543633);--gold:color(display-p3 .76996 .617341 .321369);--gold-dim:color(display-p3 .469305 .400291 .270966);--gold-glow:color(display-p3 .76996 .617341 .321369/.2);--gold-subtle:color(display-p3 .76996 .617341 .321369/.1);--success:color(display-p3 .313719 .651039 .459895);--error:color(display-p3 .710345 .252818 .279408);--oe-shadow-md:0 8px 40px color(display-p3 0 0 0/.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px color(display-p3 .76996 .617341 .321369/.15), 0 0 0 1px color(display-p3 .76996 .617341 .321369/.2)}}@supports (color:lab(0% 0 0)){:root{--bg:lab(.302122% .0219196 -.522962);--surface:lab(1.18159% .0276566 -1.4848);--surface-2:lab(3.00584% .0228807 -3.15676);--border:lab(7.15581% -.0557452 -5.11242);--border-strong:lab(16.3712% -.0768155 -7.37782);--text:lab(90.6942% -.142366 -2.26941);--text-secondary:lab(67.4758% -.215352 -3.76978);--muted:lab(55.8848% -.174642 -3.01716);--gold:lab(67.5798% 11.9379 52.333);--gold-dim:lab(44.394% 5.21132 24.4453);--gold-glow:lab(67.5798% 11.9379 52.333/.2);--gold-subtle:lab(67.5798% 11.9379 52.333/.1);--success:lab(61.2436% -46.7762 18.3644);--error:lab(45.8893% 57.7361 27.393);--oe-shadow-md:0 8px 40px lab(0% 0 0/.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px lab(67.5798% 11.9379 52.333/.15), 0 0 0 1px lab(67.5798% 11.9379 52.333/.2)}}:root[data-theme=light]{--bg:#f4f5f8;--surface:#fbfcfe;--surface-2:#eceef3;--border:#d5d7dd;--border-strong:#babec6;--text:#181b1f;--text-secondary:#4a4d54;--muted:#606369;--gold:#8a6000;--gold-dim:#967c4f;--gold-glow:rgba(141,95,0,.25);--gold-subtle:rgba(141,95,0,.07);--success:#007145;--error:#b1002b;--oe-shadow-md:0 4px 24px rgba(0,0,0,.12), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 16px rgba(141,95,0,.18), 0 0 0 1px rgba(141,95,0,.22);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@supports (color:color(display-p3 0 0 0)){:root[data-theme=light]{--bg:color(display-p3 .956515 .960735 .970805);--surface:color(display-p3 .98376 .986943 .994535);--surface-2:color(display-p3 .928401 .934691 .949715);--border:color(display-p3 .836244 .844458 .864107);--border-strong:color(display-p3 .731542 .743532 .772301);--text:color(display-p3 .096883 .103987 .12134);--text-secondary:color(display-p3 .291758 .301882 .326359);--muted:color(display-p3 .379924 .388781 .410092);--gold:color(display-p3 .524671 .380491 .0387678);--gold-dim:color(display-p3 .572756 .489268 .332751);--gold-glow:color(display-p3 .542549 .371783 -.107551/.25);--gold-subtle:color(display-p3 .542549 .371783 -.107551/.07);--success:color(display-p3 -.0793084 .456092 .255685);--error:color(display-p3 .642198 .101724 .18242);--oe-shadow-md:0 4px 24px color(display-p3 0 0 0/.12), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 16px color(display-p3 .542549 .371783 -.107551/.18), 0 0 0 1px color(display-p3 .542549 .371783 -.107551/.22)}}@supports (color:lab(0% 0 0)){:root[data-theme=light]{--bg:lab(96.503% -.0977516 -1.51461);--surface:lab(98.8273% -.0742674 -1.13657);--surface-2:lab(94.1743% -.142753 -2.26963);--border:lab(86.0453% -.183702 -3.02233);--border-strong:lab(76.7468% -.254452 -4.52154);--text:lab(9.4703% -.119448 -3.722);--text-secondary:lab(32.6639% -.205323 -4.4957);--muted:lab(41.9548% -.197023 -3.7598);--gold:lab(44.2758% 13.6718 62.9124);--gold-dim:lab(53.685% 6.10271 28.558);--gold-glow:lab(44.1995% 17.0662 84.3373/.25);--gold-subtle:lab(44.1995% 17.0662 84.3373/.07);--success:lab(41.7514% -55.3249 21.5039);--error:lab(37.5238% 64.2774 32.6097);--oe-shadow-md:0 4px 24px lab(0% 0 0/.12), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 16px lab(44.1995% 17.0662 84.3373/.18), 0 0 0 1px lab(44.1995% 17.0662 84.3373/.22)}}:root{--safe-top:0px;--safe-right:0px;--safe-bottom:0px;--safe-left:0px;--oe-host-h:var(--host-height,var(--host-max-height,640px));--oe-chart-max:clamp(260px, calc(var(--oe-host-h) * .72), 560px);--oe-chart-max-lg:clamp(280px, calc(var(--oe-host-h) * .8), 720px);--oe-drawer-max:clamp(160px, calc(var(--oe-host-h) * .4), 360px);--oe-scroll-max:clamp(240px, calc(var(--oe-host-h) * .7), 560px)}html,body{font-family:var(--font-ui)}body{background-color:var(--oe-page-bg)}.oe-pannable{touch-action:pan-y}body.is-fullscreen .oe-pannable{touch-action:none}.pan-zoom-controls [hidden],.pan-btn[hidden]{display:none!important}.fs-hint-banner{top:calc(12px + var(--safe-top));z-index:9999;border-radius:var(--radius-pill);border:1px solid color-mix(in oklab, var(--gold) 35%, transparent);background:color-mix(in oklab, var(--surface-2) 92%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);max-width:calc(100% - 32px);color:var(--text);font:600 11px/1.4 var(--font-ui);letter-spacing:.04em;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;opacity:0;padding:6px 16px;transition:opacity .3s;position:fixed;left:50%;overflow:hidden;transform:translate(-50%)}.fs-hint-banner.visible{opacity:1}@media (prefers-reduced-motion:reduce){.fs-hint-banner{transition:none}}body.is-fullscreen{height:100vh;height:100dvh;overflow:hidden}body.is-fullscreen #app{width:100%;max-width:none;height:100%;min-height:0;padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);flex-direction:column;gap:0;margin:0;display:flex;overflow:hidden}body.is-fullscreen #app:has(>#fs-bottom-bar){padding-bottom:0}body.is-fullscreen #app .oe-stage{aspect-ratio:auto;width:100%;max-width:none;height:auto;min-height:0;max-height:none;box-shadow:none;background:0 0;border:0;border-radius:0;flex:auto;justify-content:center;align-items:center;margin:0;padding:16px 24px 8px;display:flex;overflow:hidden}body.is-fullscreen #app .oe-stage>svg{width:auto;max-width:100%;height:100%;max-height:100%}body.is-fullscreen #app .oe-stage--doc{width:100%;max-width:880px;padding:20px 24px calc(16px + var(--safe-bottom));flex-direction:column;justify-content:flex-start;align-items:stretch;margin:0 auto;display:flex;overflow-y:auto}body.is-fullscreen #app #loading-state{flex:1;height:auto;min-height:0}body.is-fullscreen #app .pan-zoom-controls{top:calc(54px + var(--safe-top));right:calc(12px + var(--safe-right));bottom:auto}body .oe-info-button{top:calc(12px + var(--safe-top));right:calc(12px + var(--safe-right))}#app #fs-bottom-bar{height:clamp(170px, calc(var(--oe-host-h) * .3), 280px);padding-bottom:var(--safe-bottom);border-top:1px solid var(--border);background:var(--surface);flex-shrink:0;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(200px,260px) minmax(0,1fr) minmax(200px,260px);display:grid}:root[data-safe-bottom] #app #fs-bottom-bar{height:calc(clamp(170px, calc(var(--oe-host-h) * .3), 280px) + var(--safe-bottom));grid-template-columns:minmax(0,1fr) minmax(0,1fr)}:root[data-safe-bottom] #fs-bottom-bar [data-column=center]{display:none}#fs-bottom-bar [data-column=left],#fs-bottom-bar [data-column=right]{scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;flex-direction:column;gap:4px;min-height:0;padding:10px 14px 12px;display:flex;overflow-x:hidden;overflow-y:auto}#fs-bottom-bar [data-column=left]{border-right:1px solid var(--border)}#fs-bottom-bar [data-column=right]{border-left:1px solid var(--border)}#fs-bottom-bar [data-column=center]{pointer-events:none}#fs-bottom-bar [data-column]>*+*{border-top:1px solid var(--border);margin-top:4px;padding-top:8px}#fs-bottom-bar [class$=-action-bar],#fs-bottom-bar [class*=-action-bar\ ]{flex-direction:column;padding:8px 0 0}#fs-bottom-bar .action-btn{justify-content:center;width:100%}@media (max-width:640px){#app #fs-bottom-bar,:root[data-safe-bottom] #app #fs-bottom-bar{height:auto;max-height:42%;display:block;overflow-y:auto}#fs-bottom-bar [data-column=center]{display:none}#fs-bottom-bar [data-column=left],#fs-bottom-bar [data-column=right]{border:0;min-height:auto;overflow:visible}#fs-bottom-bar [data-column=right]{border-top:1px solid var(--border)}body.is-fullscreen #app .oe-stage{padding:8px}}body.is-pip{overflow:hidden}body.is-pip #app{gap:6px;padding:6px 8px}body.is-pip .oe-pip-hide,body.is-pip #param-controls-container,body.is-pip #chart-status,body.is-pip .oe-info-button{display:none!important}*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg-primary:var(--bg);--bg-secondary:var(--surface);--bg-tertiary:var(--surface-2);--bg-hover:color-mix(in oklab, var(--surface-2) 70%, var(--border-strong));--border-subtle:var(--border);--text-primary:var(--text);--text-muted:var(--muted);--accent:var(--gold);--accent-warm:var(--gold);--radius-lg:14px;--planet-sun:#f0b135;--planet-moon:#aebedf;--planet-mercury:#47c58c;--planet-venus:#ec7fca;--planet-mars:#f05560;--planet-jupiter:#a492fb;--planet-saturn:#67acb0;--planet-uranus:#30c8cf;--planet-neptune:#3b9cf6;--planet-pluto:#b589d6;--font-display:var(--font-ui);--font-body:var(--font-ui)}@supports (color:color(display-p3 0 0 0)){:root{--planet-sun:color(display-p3 .903179 .705765 .311279);--planet-moon:color(display-p3 .694219 .742748 .862643);--planet-mercury:color(display-p3 .425739 .763831 .565642);--planet-venus:color(display-p3 .867795 .51996 .779002);--planet-mars:color(display-p3 .871142 .375628 .39222);--planet-jupiter:color(display-p3 .632215 .575747 .957982);--planet-saturn:color(display-p3 .466828 .667389 .683738);--planet-uranus:color(display-p3 .390298 .771661 .803762);--planet-neptune:color(display-p3 .341875 .605542 .938093);--planet-pluto:color(display-p3 .683949 .542579 .820326)}}@supports (color:lab(0% 0 0)){:root{--planet-sun:lab(76.8315% 15.651 68.1009);--planet-moon:lab(76.5362% -.332385 -18.4986);--planet-mercury:lab(71.6908% -46.4717 18.2798);--planet-venus:lab(67.5807% 49.5621 -19.9184);--planet-mars:lab(58.5572% 60.8819 28.2409);--planet-jupiter:lab(65.5944% 24.778 -50.7219);--planet-saturn:lab(65.8857% -22.0269 -9.1112);--planet-uranus:lab(73.3218% -37.5825 -15.4423);--planet-neptune:lab(62.1411% -5.66679 -53.8683);--planet-pluto:lab(63.5145% 28.3498 -33.4164)}}:root[data-theme=light]{--planet-sun:#ab6a00;--planet-moon:#5b6986;--planet-mercury:#00784a;--planet-venus:#a13b85;--planet-mars:#be222a;--planet-jupiter:#644fb1;--planet-saturn:#276779;--planet-uranus:#00717f;--planet-neptune:#005bb4;--planet-pluto:#7d4b92}@supports (color:color(display-p3 0 0 0)){:root[data-theme=light]{--planet-sun:color(display-p3 .653347 .414453 -.0616416);--planet-moon:color(display-p3 .366623 .409257 .517223);--planet-mercury:color(display-p3 .110777 .470086 .292341);--planet-venus:color(display-p3 .585722 .257645 .510421);--planet-mars:color(display-p3 .684596 .198589 .19246);--planet-jupiter:color(display-p3 .380719 .312728 .671899);--planet-saturn:color(display-p3 .222977 .397358 .465979);--planet-uranus:color(display-p3 -.0568507 .446018 .525418);--planet-neptune:color(display-p3 .142171 .351944 .684339);--planet-pluto:color(display-p3 .461413 .304902 .555395)}}@supports (color:lab(0% 0 0)){:root[data-theme=light]{--planet-sun:lab(50.8649% 25.8853 84.6379);--planet-moon:lab(44.0253% .202179 -18.3088);--planet-mercury:lab(43.8263% -47.6118 18.596);--planet-venus:lab(42.0231% 49.078 -19.7923);--planet-mars:lab(42.3845% 60.2199 38.2468);--planet-jupiter:lab(39.7961% 27.9455 -50.2543);--planet-saturn:lab(40.042% -16.3361 -16.5904);--planet-uranus:lab(42.863% -32.0891 -21.9386);--planet-neptune:lab(38.3807% 4.98325 -54.8273);--planet-pluto:lab(40.2012% 30.8431 -30.6281)}}html,body{width:100%;font-family:var(--font-body);background:var(--oe-page-bg);color:var(--text-primary);font-size:13px;line-height:1.5}body{flex-direction:column;display:flex}#app{flex-direction:column;flex:1;display:flex;overflow:hidden}#loading-state{color:var(--text-secondary);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;display:flex}#loading-state[hidden]{display:none}.oe-loader{width:48px;height:48px;animation:1.2s linear infinite spin}.oe-loader circle{fill:none;stroke:var(--accent);stroke-width:3px;stroke-dasharray:200;stroke-dashoffset:80px;stroke-linecap:round}@keyframes spin{to{transform:rotate(360deg)}}.chart-status{background:var(--bg-secondary);border-top:1px solid var(--border-subtle);color:var(--text-muted);opacity:0;z-index:50;padding:6px 14px;font-size:11px;transition:opacity .2s,transform .2s;position:fixed;bottom:0;left:0;right:0;transform:translateY(100%)}.chart-status.visible{opacity:1;transform:translateY(0)}.pan-zoom-controls{z-index:40;gap:4px;display:flex;position:fixed;top:12px;right:50px}.pan-zoom-controls[hidden]{display:none}.pan-btn{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius-sm);width:28px;height:28px;color:var(--text-secondary);cursor:pointer;justify-content:center;align-items:center;transition:background .15s,color .15s;display:flex}.pan-btn:hover{background:var(--bg-hover);color:var(--text-primary)}#timeline-container{flex-direction:column;flex:1;padding:16px 16px 4px;display:flex;overflow:hidden}#timeline-container[hidden]{display:none}.tl-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px;display:flex}.tl-title{font-family:var(--font-display);letter-spacing:.01em;color:var(--text-primary);font-size:18px;font-weight:600}.tl-subtitle{color:var(--text-muted);margin-top:2px;font-size:12px}.tl-aspect-badge{background:color-mix(in oklab, var(--accent) 16%, transparent);border:1px solid color-mix(in oklab, var(--accent) 40%, transparent);color:var(--accent);white-space:nowrap;border-radius:999px;flex:none;padding:4px 10px;font-size:11px;font-weight:600}.tl-natal-bar{border-bottom:1px solid var(--border-subtle);flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:12px;padding-bottom:12px;display:flex}.tl-natal-bar-label{text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-right:2px;font-size:10.5px}.tl-chip{background:var(--bg-secondary);border:1px solid var(--border-subtle);color:var(--text-secondary);border-radius:999px;padding:3px 8px;font-size:11px}.tl-scroll{max-height:var(--oe-scroll-max);overscroll-behavior:auto;flex:1;padding-right:2px;overflow-y:auto}.tl-group{margin-bottom:14px}.tl-group-label{z-index:2;font-family:var(--font-display);letter-spacing:.04em;text-transform:uppercase;color:var(--accent-warm);background:linear-gradient(var(--bg-primary) 70%, transparent);padding:4px 0 6px;font-size:12px;font-weight:600;position:-webkit-sticky;position:sticky;top:0}.tl-events{list-style:none}.tl-event{border-radius:var(--radius);cursor:pointer;grid-template-columns:18px 34px 1fr;align-items:start;gap:10px;padding:9px 10px 9px 0;transition:background .15s;display:grid;position:relative}.tl-event:hover{background:var(--bg-secondary)}.tl-event.active{background:color-mix(in oklab, var(--accent) 12%, var(--bg-secondary));box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent)}.tl-event:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.tl-event-rail{justify-content:center;align-self:stretch;padding-top:6px;display:flex;position:relative}.tl-event-rail:before{content:"";background:var(--border);width:2px;position:absolute;top:0;bottom:-18px;left:50%;transform:translate(-50%)}.tl-event:last-child .tl-event-rail:before{bottom:50%}.tl-node{z-index:1;background:var(--planet-color,var(--accent));width:9px;height:9px;box-shadow:0 0 0 3px var(--bg-primary);border-radius:50%;position:relative}.tl-event-glyph{width:34px;height:34px;color:var(--planet-color,var(--accent));background:color-mix(in oklab, var(--planet-color,var(--accent)) 14%, transparent);border:1px solid color-mix(in oklab, var(--planet-color,var(--accent)) 35%, transparent);border-radius:50%;justify-content:center;align-items:center;font-size:18px;line-height:1;display:flex}.tl-event-body{min-width:0}.tl-event-line1{flex-wrap:wrap;align-items:baseline;gap:6px;font-size:13px;display:flex}.tl-planet-name{color:var(--text-primary);font-weight:600}.tl-retro{color:var(--accent-warm);font-size:12px;font-weight:600}.tl-natal{color:var(--text-secondary)}.tl-natal-glyph{color:var(--text-primary)}.tl-event-line2{color:var(--text-muted);align-items:center;gap:6px;margin-top:2px;font-size:11.5px;display:flex}.tl-dot{opacity:.5}.tl-pos{color:var(--text-secondary)}.tl-ask{border-radius:var(--radius-sm);border:1px solid color-mix(in oklab, var(--accent) 35%, transparent);background:color-mix(in oklab, var(--accent) 10%, transparent);color:var(--accent);font:inherit;cursor:pointer;margin-top:8px;padding:5px 10px;font-size:11px;font-weight:600;transition:background .15s;display:none}.tl-ask:hover{background:color-mix(in oklab, var(--accent) 20%, transparent)}.tl-event.active .tl-ask{display:inline-flex}.tl-actions{border-top:1px solid var(--border-subtle);gap:8px;margin-top:4px;padding:10px 0 6px;display:flex}.action-btn{border-radius:var(--radius);border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-secondary);cursor:pointer;align-items:center;gap:4px;padding:8px 14px;font-size:12px;font-weight:600;transition:background .15s,color .15s,box-shadow .15s;display:inline-flex}.action-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.action-btn--primary{background:color-mix(in oklab, var(--accent) 30%, var(--bg-secondary));border-color:color-mix(in oklab, var(--accent) 45%, transparent);color:var(--text-primary)}.action-btn--primary:hover{background:color-mix(in oklab, var(--accent) 40%, var(--bg-secondary));box-shadow:0 0 0 1px color-mix(in oklab, var(--accent) 50%, transparent)}.error-state,.empty-state{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;padding:32px;display:flex}.error-icon,.empty-icon{font-size:32px}.empty-title{color:var(--text-primary);font-weight:600}.empty-desc,.error-msg{color:var(--text-secondary);max-width:320px}.error-retry-btn{border:1px solid var(--border);color:var(--accent-warm);font:inherit;letter-spacing:.02em;cursor:pointer;background:0 0;border-radius:999px;margin-top:4px;padding:7px 20px;font-size:11px;font-weight:600;transition:background .18s,border-color .18s}.error-retry-btn:hover{background:var(--bg-hover)}.cancel-toast{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-primary);z-index:200;opacity:0;pointer-events:none;border-radius:999px;padding:8px 16px;font-size:12px;transition:opacity .3s,transform .3s;position:fixed;bottom:16px;left:50%;transform:translate(-50%)translateY(10px)}.cancel-toast.visible{opacity:1;transform:translate(-50%)translateY(0)}body.is-fullscreen #app .pan-zoom-controls{top:calc(12px + var(--safe-top));right:calc(50px + var(--safe-right))}body.is-fullscreen .tl-scroll{max-height:none;overflow:visible}body.is-fullscreen #app #timeline-container{max-width:760px}body.is-pip #timeline-container{padding:6px 8px 4px}body.is-pip .tl-natal-bar,body.is-pip .tl-actions,body.is-pip .tl-subtitle,body.is-pip .tl-ask,body.is-pip .oe-info-button{display:none!important}body.is-pip .tl-header{margin-bottom:4px;padding-right:72px}body.is-pip .tl-title{font-size:13px}body.is-pip .tl-scroll{max-height:calc(var(--oe-host-h) - 56px)}body.is-pip .tl-event-line2{display:none}body.is-pip #app .pan-zoom-controls{top:6px;right:6px}
|
|
18
18
|
/*$vite$:1*/</style>
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<!-- Timeline scrolls vertically — no zoom. Container kept so
|
|
28
28
|
setupFullscreenToggle has a host to inject the fullscreen button into. -->
|
|
29
29
|
<div id="pan-zoom-controls" class="pan-zoom-controls" hidden></div>
|
|
30
|
-
<div id="timeline-container" hidden></div>
|
|
30
|
+
<div id="timeline-container" class="oe-stage oe-stage--doc" hidden></div>
|
|
31
31
|
</div>
|
|
32
32
|
|
|
33
33
|
<script type="module">var e = Object.defineProperty, t = (t2, n2) => {
|
|
@@ -4083,338 +4083,338 @@ function es() {
|
|
|
4083
4083
|
return new $o();
|
|
4084
4084
|
}
|
|
4085
4085
|
(Xo = globalThis).__zod_globalRegistry != null || (Xo.__zod_globalRegistry = es());
|
|
4086
|
-
var
|
|
4087
|
-
function
|
|
4086
|
+
var E = globalThis.__zod_globalRegistry;
|
|
4087
|
+
function ts(e4, t2) {
|
|
4088
4088
|
return new e4({ type: "string", ...y(t2) });
|
|
4089
4089
|
}
|
|
4090
|
-
function
|
|
4090
|
+
function ns(e4, t2) {
|
|
4091
4091
|
return new e4({ type: "string", coerce: true, ...y(t2) });
|
|
4092
4092
|
}
|
|
4093
|
-
function
|
|
4093
|
+
function rs(e4, t2) {
|
|
4094
4094
|
return new e4({ type: "string", format: "email", check: "string_format", abort: false, ...y(t2) });
|
|
4095
4095
|
}
|
|
4096
|
-
function
|
|
4096
|
+
function is(e4, t2) {
|
|
4097
4097
|
return new e4({ type: "string", format: "guid", check: "string_format", abort: false, ...y(t2) });
|
|
4098
4098
|
}
|
|
4099
|
-
function
|
|
4099
|
+
function as(e4, t2) {
|
|
4100
4100
|
return new e4({ type: "string", format: "uuid", check: "string_format", abort: false, ...y(t2) });
|
|
4101
4101
|
}
|
|
4102
|
-
function
|
|
4102
|
+
function os(e4, t2) {
|
|
4103
4103
|
return new e4({ type: "string", format: "uuid", check: "string_format", abort: false, version: "v4", ...y(t2) });
|
|
4104
4104
|
}
|
|
4105
|
-
function
|
|
4105
|
+
function ss(e4, t2) {
|
|
4106
4106
|
return new e4({ type: "string", format: "uuid", check: "string_format", abort: false, version: "v6", ...y(t2) });
|
|
4107
4107
|
}
|
|
4108
|
-
function
|
|
4108
|
+
function cs(e4, t2) {
|
|
4109
4109
|
return new e4({ type: "string", format: "uuid", check: "string_format", abort: false, version: "v7", ...y(t2) });
|
|
4110
4110
|
}
|
|
4111
|
-
function
|
|
4111
|
+
function ls(e4, t2) {
|
|
4112
4112
|
return new e4({ type: "string", format: "url", check: "string_format", abort: false, ...y(t2) });
|
|
4113
4113
|
}
|
|
4114
|
-
function
|
|
4114
|
+
function us(e4, t2) {
|
|
4115
4115
|
return new e4({ type: "string", format: "emoji", check: "string_format", abort: false, ...y(t2) });
|
|
4116
4116
|
}
|
|
4117
|
-
function
|
|
4117
|
+
function ds(e4, t2) {
|
|
4118
4118
|
return new e4({ type: "string", format: "nanoid", check: "string_format", abort: false, ...y(t2) });
|
|
4119
4119
|
}
|
|
4120
|
-
function
|
|
4120
|
+
function fs(e4, t2) {
|
|
4121
4121
|
return new e4({ type: "string", format: "cuid", check: "string_format", abort: false, ...y(t2) });
|
|
4122
4122
|
}
|
|
4123
|
-
function
|
|
4123
|
+
function ps(e4, t2) {
|
|
4124
4124
|
return new e4({ type: "string", format: "cuid2", check: "string_format", abort: false, ...y(t2) });
|
|
4125
4125
|
}
|
|
4126
|
-
function
|
|
4126
|
+
function ms(e4, t2) {
|
|
4127
4127
|
return new e4({ type: "string", format: "ulid", check: "string_format", abort: false, ...y(t2) });
|
|
4128
4128
|
}
|
|
4129
|
-
function
|
|
4129
|
+
function hs(e4, t2) {
|
|
4130
4130
|
return new e4({ type: "string", format: "xid", check: "string_format", abort: false, ...y(t2) });
|
|
4131
4131
|
}
|
|
4132
|
-
function
|
|
4132
|
+
function gs(e4, t2) {
|
|
4133
4133
|
return new e4({ type: "string", format: "ksuid", check: "string_format", abort: false, ...y(t2) });
|
|
4134
4134
|
}
|
|
4135
|
-
function
|
|
4135
|
+
function _s(e4, t2) {
|
|
4136
4136
|
return new e4({ type: "string", format: "ipv4", check: "string_format", abort: false, ...y(t2) });
|
|
4137
4137
|
}
|
|
4138
|
-
function
|
|
4138
|
+
function vs(e4, t2) {
|
|
4139
4139
|
return new e4({ type: "string", format: "ipv6", check: "string_format", abort: false, ...y(t2) });
|
|
4140
4140
|
}
|
|
4141
|
-
function
|
|
4141
|
+
function ys(e4, t2) {
|
|
4142
4142
|
return new e4({ type: "string", format: "mac", check: "string_format", abort: false, ...y(t2) });
|
|
4143
4143
|
}
|
|
4144
|
-
function
|
|
4144
|
+
function bs(e4, t2) {
|
|
4145
4145
|
return new e4({ type: "string", format: "cidrv4", check: "string_format", abort: false, ...y(t2) });
|
|
4146
4146
|
}
|
|
4147
|
-
function
|
|
4147
|
+
function xs(e4, t2) {
|
|
4148
4148
|
return new e4({ type: "string", format: "cidrv6", check: "string_format", abort: false, ...y(t2) });
|
|
4149
4149
|
}
|
|
4150
|
-
function
|
|
4150
|
+
function Ss(e4, t2) {
|
|
4151
4151
|
return new e4({ type: "string", format: "base64", check: "string_format", abort: false, ...y(t2) });
|
|
4152
4152
|
}
|
|
4153
|
-
function
|
|
4153
|
+
function Cs(e4, t2) {
|
|
4154
4154
|
return new e4({ type: "string", format: "base64url", check: "string_format", abort: false, ...y(t2) });
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4156
|
+
function ws(e4, t2) {
|
|
4157
4157
|
return new e4({ type: "string", format: "e164", check: "string_format", abort: false, ...y(t2) });
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4159
|
+
function Ts(e4, t2) {
|
|
4160
4160
|
return new e4({ type: "string", format: "jwt", check: "string_format", abort: false, ...y(t2) });
|
|
4161
4161
|
}
|
|
4162
|
-
var
|
|
4163
|
-
function
|
|
4162
|
+
var Es = { Any: null, Minute: -1, Second: 0, Millisecond: 3, Microsecond: 6 };
|
|
4163
|
+
function Ds(e4, t2) {
|
|
4164
4164
|
return new e4({ type: "string", format: "datetime", check: "string_format", offset: false, local: false, precision: null, ...y(t2) });
|
|
4165
4165
|
}
|
|
4166
|
-
function
|
|
4166
|
+
function Os(e4, t2) {
|
|
4167
4167
|
return new e4({ type: "string", format: "date", check: "string_format", ...y(t2) });
|
|
4168
4168
|
}
|
|
4169
|
-
function
|
|
4169
|
+
function ks(e4, t2) {
|
|
4170
4170
|
return new e4({ type: "string", format: "time", check: "string_format", precision: null, ...y(t2) });
|
|
4171
4171
|
}
|
|
4172
|
-
function
|
|
4172
|
+
function As(e4, t2) {
|
|
4173
4173
|
return new e4({ type: "string", format: "duration", check: "string_format", ...y(t2) });
|
|
4174
4174
|
}
|
|
4175
|
-
function
|
|
4175
|
+
function js(e4, t2) {
|
|
4176
4176
|
return new e4({ type: "number", checks: [], ...y(t2) });
|
|
4177
4177
|
}
|
|
4178
|
-
function
|
|
4178
|
+
function Ms(e4, t2) {
|
|
4179
4179
|
return new e4({ type: "number", coerce: true, checks: [], ...y(t2) });
|
|
4180
4180
|
}
|
|
4181
|
-
function
|
|
4181
|
+
function Ns(e4, t2) {
|
|
4182
4182
|
return new e4({ type: "number", check: "number_format", abort: false, format: "safeint", ...y(t2) });
|
|
4183
4183
|
}
|
|
4184
|
-
function
|
|
4184
|
+
function Ps(e4, t2) {
|
|
4185
4185
|
return new e4({ type: "number", check: "number_format", abort: false, format: "float32", ...y(t2) });
|
|
4186
4186
|
}
|
|
4187
|
-
function
|
|
4187
|
+
function Fs(e4, t2) {
|
|
4188
4188
|
return new e4({ type: "number", check: "number_format", abort: false, format: "float64", ...y(t2) });
|
|
4189
4189
|
}
|
|
4190
|
-
function
|
|
4190
|
+
function Is(e4, t2) {
|
|
4191
4191
|
return new e4({ type: "number", check: "number_format", abort: false, format: "int32", ...y(t2) });
|
|
4192
4192
|
}
|
|
4193
|
-
function
|
|
4193
|
+
function Ls(e4, t2) {
|
|
4194
4194
|
return new e4({ type: "number", check: "number_format", abort: false, format: "uint32", ...y(t2) });
|
|
4195
4195
|
}
|
|
4196
|
-
function
|
|
4196
|
+
function Rs(e4, t2) {
|
|
4197
4197
|
return new e4({ type: "boolean", ...y(t2) });
|
|
4198
4198
|
}
|
|
4199
|
-
function
|
|
4199
|
+
function zs(e4, t2) {
|
|
4200
4200
|
return new e4({ type: "boolean", coerce: true, ...y(t2) });
|
|
4201
4201
|
}
|
|
4202
|
-
function
|
|
4202
|
+
function Bs(e4, t2) {
|
|
4203
4203
|
return new e4({ type: "bigint", ...y(t2) });
|
|
4204
4204
|
}
|
|
4205
|
-
function
|
|
4205
|
+
function Vs(e4, t2) {
|
|
4206
4206
|
return new e4({ type: "bigint", coerce: true, ...y(t2) });
|
|
4207
4207
|
}
|
|
4208
|
-
function
|
|
4208
|
+
function Hs(e4, t2) {
|
|
4209
4209
|
return new e4({ type: "bigint", check: "bigint_format", abort: false, format: "int64", ...y(t2) });
|
|
4210
4210
|
}
|
|
4211
|
-
function
|
|
4211
|
+
function Us(e4, t2) {
|
|
4212
4212
|
return new e4({ type: "bigint", check: "bigint_format", abort: false, format: "uint64", ...y(t2) });
|
|
4213
4213
|
}
|
|
4214
|
-
function
|
|
4214
|
+
function Ws(e4, t2) {
|
|
4215
4215
|
return new e4({ type: "symbol", ...y(t2) });
|
|
4216
4216
|
}
|
|
4217
|
-
function
|
|
4217
|
+
function Gs(e4, t2) {
|
|
4218
4218
|
return new e4({ type: "undefined", ...y(t2) });
|
|
4219
4219
|
}
|
|
4220
|
-
function
|
|
4220
|
+
function Ks(e4, t2) {
|
|
4221
4221
|
return new e4({ type: "null", ...y(t2) });
|
|
4222
4222
|
}
|
|
4223
|
-
function
|
|
4223
|
+
function qs(e4) {
|
|
4224
4224
|
return new e4({ type: "any" });
|
|
4225
4225
|
}
|
|
4226
|
-
function
|
|
4226
|
+
function Js(e4) {
|
|
4227
4227
|
return new e4({ type: "unknown" });
|
|
4228
4228
|
}
|
|
4229
|
-
function
|
|
4229
|
+
function Ys(e4, t2) {
|
|
4230
4230
|
return new e4({ type: "never", ...y(t2) });
|
|
4231
4231
|
}
|
|
4232
|
-
function
|
|
4232
|
+
function Xs(e4, t2) {
|
|
4233
4233
|
return new e4({ type: "void", ...y(t2) });
|
|
4234
4234
|
}
|
|
4235
|
-
function
|
|
4235
|
+
function Zs(e4, t2) {
|
|
4236
4236
|
return new e4({ type: "date", ...y(t2) });
|
|
4237
4237
|
}
|
|
4238
|
-
function
|
|
4238
|
+
function Qs(e4, t2) {
|
|
4239
4239
|
return new e4({ type: "date", coerce: true, ...y(t2) });
|
|
4240
4240
|
}
|
|
4241
|
-
function
|
|
4241
|
+
function $s(e4, t2) {
|
|
4242
4242
|
return new e4({ type: "nan", ...y(t2) });
|
|
4243
4243
|
}
|
|
4244
|
-
function
|
|
4244
|
+
function ec(e4, t2) {
|
|
4245
4245
|
return new Gn({ check: "less_than", ...y(t2), value: e4, inclusive: false });
|
|
4246
4246
|
}
|
|
4247
|
-
function
|
|
4247
|
+
function D(e4, t2) {
|
|
4248
4248
|
return new Gn({ check: "less_than", ...y(t2), value: e4, inclusive: true });
|
|
4249
4249
|
}
|
|
4250
|
-
function
|
|
4250
|
+
function tc(e4, t2) {
|
|
4251
4251
|
return new Kn({ check: "greater_than", ...y(t2), value: e4, inclusive: false });
|
|
4252
4252
|
}
|
|
4253
|
-
function
|
|
4253
|
+
function O(e4, t2) {
|
|
4254
4254
|
return new Kn({ check: "greater_than", ...y(t2), value: e4, inclusive: true });
|
|
4255
4255
|
}
|
|
4256
|
+
function nc(e4) {
|
|
4257
|
+
return tc(0, e4);
|
|
4258
|
+
}
|
|
4256
4259
|
function rc(e4) {
|
|
4257
|
-
return
|
|
4260
|
+
return ec(0, e4);
|
|
4258
4261
|
}
|
|
4259
4262
|
function ic(e4) {
|
|
4260
|
-
return
|
|
4263
|
+
return D(0, e4);
|
|
4261
4264
|
}
|
|
4262
4265
|
function ac(e4) {
|
|
4263
|
-
return
|
|
4264
|
-
}
|
|
4265
|
-
function oc(e4) {
|
|
4266
|
-
return D(0, e4);
|
|
4266
|
+
return O(0, e4);
|
|
4267
4267
|
}
|
|
4268
|
-
function
|
|
4268
|
+
function oc(e4, t2) {
|
|
4269
4269
|
return new qn({ check: "multiple_of", ...y(t2), value: e4 });
|
|
4270
4270
|
}
|
|
4271
|
-
function
|
|
4271
|
+
function sc(e4, t2) {
|
|
4272
4272
|
return new Xn({ check: "max_size", ...y(t2), maximum: e4 });
|
|
4273
4273
|
}
|
|
4274
|
-
function
|
|
4274
|
+
function cc(e4, t2) {
|
|
4275
4275
|
return new Zn({ check: "min_size", ...y(t2), minimum: e4 });
|
|
4276
4276
|
}
|
|
4277
|
-
function
|
|
4277
|
+
function lc(e4, t2) {
|
|
4278
4278
|
return new Qn({ check: "size_equals", ...y(t2), size: e4 });
|
|
4279
4279
|
}
|
|
4280
|
-
function
|
|
4280
|
+
function uc(e4, t2) {
|
|
4281
4281
|
return new $n({ check: "max_length", ...y(t2), maximum: e4 });
|
|
4282
4282
|
}
|
|
4283
|
-
function
|
|
4283
|
+
function dc(e4, t2) {
|
|
4284
4284
|
return new er({ check: "min_length", ...y(t2), minimum: e4 });
|
|
4285
4285
|
}
|
|
4286
|
-
function
|
|
4286
|
+
function fc(e4, t2) {
|
|
4287
4287
|
return new tr({ check: "length_equals", ...y(t2), length: e4 });
|
|
4288
4288
|
}
|
|
4289
|
-
function
|
|
4289
|
+
function pc(e4, t2) {
|
|
4290
4290
|
return new rr({ check: "string_format", format: "regex", ...y(t2), pattern: e4 });
|
|
4291
4291
|
}
|
|
4292
|
-
function
|
|
4292
|
+
function mc(e4) {
|
|
4293
4293
|
return new ir({ check: "string_format", format: "lowercase", ...y(e4) });
|
|
4294
4294
|
}
|
|
4295
|
-
function
|
|
4295
|
+
function hc(e4) {
|
|
4296
4296
|
return new ar({ check: "string_format", format: "uppercase", ...y(e4) });
|
|
4297
4297
|
}
|
|
4298
|
-
function
|
|
4298
|
+
function gc(e4, t2) {
|
|
4299
4299
|
return new or({ check: "string_format", format: "includes", ...y(t2), includes: e4 });
|
|
4300
4300
|
}
|
|
4301
|
-
function
|
|
4301
|
+
function _c(e4, t2) {
|
|
4302
4302
|
return new sr({ check: "string_format", format: "starts_with", ...y(t2), prefix: e4 });
|
|
4303
4303
|
}
|
|
4304
|
-
function
|
|
4304
|
+
function vc(e4, t2) {
|
|
4305
4305
|
return new cr({ check: "string_format", format: "ends_with", ...y(t2), suffix: e4 });
|
|
4306
4306
|
}
|
|
4307
|
-
function
|
|
4307
|
+
function yc(e4, t2, n2) {
|
|
4308
4308
|
return new ur({ check: "property", property: e4, schema: t2, ...y(n2) });
|
|
4309
4309
|
}
|
|
4310
|
-
function
|
|
4310
|
+
function bc(e4, t2) {
|
|
4311
4311
|
return new dr({ check: "mime_type", mime: e4, ...y(t2) });
|
|
4312
4312
|
}
|
|
4313
|
-
function
|
|
4313
|
+
function xc(e4) {
|
|
4314
4314
|
return new fr({ check: "overwrite", tx: e4 });
|
|
4315
4315
|
}
|
|
4316
|
-
function
|
|
4317
|
-
return
|
|
4316
|
+
function Sc(e4) {
|
|
4317
|
+
return xc((t2) => t2.normalize(e4));
|
|
4318
|
+
}
|
|
4319
|
+
function Cc() {
|
|
4320
|
+
return xc((e4) => e4.trim());
|
|
4318
4321
|
}
|
|
4319
4322
|
function wc() {
|
|
4320
|
-
return
|
|
4323
|
+
return xc((e4) => e4.toLowerCase());
|
|
4321
4324
|
}
|
|
4322
4325
|
function Tc() {
|
|
4323
|
-
return
|
|
4326
|
+
return xc((e4) => e4.toUpperCase());
|
|
4324
4327
|
}
|
|
4325
4328
|
function Ec() {
|
|
4326
|
-
return
|
|
4327
|
-
}
|
|
4328
|
-
function Dc() {
|
|
4329
|
-
return Sc((e4) => ye(e4));
|
|
4329
|
+
return xc((e4) => ye(e4));
|
|
4330
4330
|
}
|
|
4331
|
-
function
|
|
4331
|
+
function Dc(e4, t2, n2) {
|
|
4332
4332
|
return new e4({ type: "array", element: t2, ...y(n2) });
|
|
4333
4333
|
}
|
|
4334
|
-
function
|
|
4334
|
+
function Oc(e4, t2, n2) {
|
|
4335
4335
|
return new e4({ type: "union", options: t2, ...y(n2) });
|
|
4336
4336
|
}
|
|
4337
|
-
function
|
|
4337
|
+
function kc(e4, t2, n2) {
|
|
4338
4338
|
return new e4({ type: "union", options: t2, inclusive: false, ...y(n2) });
|
|
4339
4339
|
}
|
|
4340
|
-
function
|
|
4340
|
+
function Ac(e4, t2, n2, r2) {
|
|
4341
4341
|
return new e4({ type: "union", options: n2, discriminator: t2, ...y(r2) });
|
|
4342
4342
|
}
|
|
4343
|
-
function
|
|
4343
|
+
function jc(e4, t2, n2) {
|
|
4344
4344
|
return new e4({ type: "intersection", left: t2, right: n2 });
|
|
4345
4345
|
}
|
|
4346
|
-
function
|
|
4346
|
+
function Mc(e4, t2, n2, r2) {
|
|
4347
4347
|
let i2 = n2 instanceof w;
|
|
4348
4348
|
return new e4({ type: "tuple", items: t2, rest: i2 ? n2 : null, ...y(i2 ? r2 : n2) });
|
|
4349
4349
|
}
|
|
4350
|
-
function
|
|
4350
|
+
function Nc(e4, t2, n2, r2) {
|
|
4351
4351
|
return new e4({ type: "record", keyType: t2, valueType: n2, ...y(r2) });
|
|
4352
4352
|
}
|
|
4353
|
-
function
|
|
4353
|
+
function Pc(e4, t2, n2, r2) {
|
|
4354
4354
|
return new e4({ type: "map", keyType: t2, valueType: n2, ...y(r2) });
|
|
4355
4355
|
}
|
|
4356
|
-
function
|
|
4356
|
+
function Fc(e4, t2, n2) {
|
|
4357
4357
|
return new e4({ type: "set", valueType: t2, ...y(n2) });
|
|
4358
4358
|
}
|
|
4359
|
-
function
|
|
4359
|
+
function Ic(e4, t2, n2) {
|
|
4360
4360
|
return new e4({ type: "enum", entries: Array.isArray(t2) ? Object.fromEntries(t2.map((e5) => [e5, e5])) : t2, ...y(n2) });
|
|
4361
4361
|
}
|
|
4362
|
-
function
|
|
4362
|
+
function Lc(e4, t2, n2) {
|
|
4363
4363
|
return new e4({ type: "enum", entries: t2, ...y(n2) });
|
|
4364
4364
|
}
|
|
4365
|
-
function
|
|
4365
|
+
function Rc(e4, t2, n2) {
|
|
4366
4366
|
return new e4({ type: "literal", values: Array.isArray(t2) ? t2 : [t2], ...y(n2) });
|
|
4367
4367
|
}
|
|
4368
|
-
function
|
|
4368
|
+
function zc(e4, t2) {
|
|
4369
4369
|
return new e4({ type: "file", ...y(t2) });
|
|
4370
4370
|
}
|
|
4371
|
-
function
|
|
4371
|
+
function Bc(e4, t2) {
|
|
4372
4372
|
return new e4({ type: "transform", transform: t2 });
|
|
4373
4373
|
}
|
|
4374
|
-
function
|
|
4374
|
+
function Vc(e4, t2) {
|
|
4375
4375
|
return new e4({ type: "optional", innerType: t2 });
|
|
4376
4376
|
}
|
|
4377
|
-
function
|
|
4377
|
+
function Hc(e4, t2) {
|
|
4378
4378
|
return new e4({ type: "nullable", innerType: t2 });
|
|
4379
4379
|
}
|
|
4380
|
-
function
|
|
4380
|
+
function Uc(e4, t2, n2) {
|
|
4381
4381
|
return new e4({ type: "default", innerType: t2, get defaultValue() {
|
|
4382
4382
|
return typeof n2 == "function" ? n2() : we(n2);
|
|
4383
4383
|
} });
|
|
4384
4384
|
}
|
|
4385
|
-
function
|
|
4385
|
+
function Wc(e4, t2, n2) {
|
|
4386
4386
|
return new e4({ type: "nonoptional", innerType: t2, ...y(n2) });
|
|
4387
4387
|
}
|
|
4388
|
-
function
|
|
4388
|
+
function Gc(e4, t2) {
|
|
4389
4389
|
return new e4({ type: "success", innerType: t2 });
|
|
4390
4390
|
}
|
|
4391
|
-
function
|
|
4391
|
+
function Kc(e4, t2, n2) {
|
|
4392
4392
|
return new e4({ type: "catch", innerType: t2, catchValue: typeof n2 == "function" ? n2 : () => n2 });
|
|
4393
4393
|
}
|
|
4394
|
-
function
|
|
4394
|
+
function qc(e4, t2, n2) {
|
|
4395
4395
|
return new e4({ type: "pipe", in: t2, out: n2 });
|
|
4396
4396
|
}
|
|
4397
|
-
function
|
|
4397
|
+
function Jc(e4, t2) {
|
|
4398
4398
|
return new e4({ type: "readonly", innerType: t2 });
|
|
4399
4399
|
}
|
|
4400
|
-
function
|
|
4400
|
+
function Yc(e4, t2, n2) {
|
|
4401
4401
|
return new e4({ type: "template_literal", parts: t2, ...y(n2) });
|
|
4402
4402
|
}
|
|
4403
|
-
function
|
|
4403
|
+
function Xc(e4, t2) {
|
|
4404
4404
|
return new e4({ type: "lazy", getter: t2 });
|
|
4405
4405
|
}
|
|
4406
|
-
function
|
|
4406
|
+
function Zc(e4, t2) {
|
|
4407
4407
|
return new e4({ type: "promise", innerType: t2 });
|
|
4408
4408
|
}
|
|
4409
|
-
function
|
|
4409
|
+
function Qc(e4, t2, n2) {
|
|
4410
4410
|
let r2 = y(n2);
|
|
4411
4411
|
return r2.abort != null || (r2.abort = true), new e4({ type: "custom", check: "custom", fn: t2, ...r2 });
|
|
4412
4412
|
}
|
|
4413
|
-
function
|
|
4413
|
+
function $c(e4, t2, n2) {
|
|
4414
4414
|
return new e4({ type: "custom", check: "custom", fn: t2, ...y(n2) });
|
|
4415
4415
|
}
|
|
4416
|
-
function
|
|
4417
|
-
let t2 =
|
|
4416
|
+
function el(e4) {
|
|
4417
|
+
let t2 = tl((n2) => (n2.addIssue = (e5) => {
|
|
4418
4418
|
if (typeof e5 == "string") n2.issues.push(qe(e5, n2.value, t2._zod.def));
|
|
4419
4419
|
else {
|
|
4420
4420
|
let r2 = e5;
|
|
@@ -4423,29 +4423,29 @@ function tl(e4) {
|
|
|
4423
4423
|
}, e4(n2.value, n2)));
|
|
4424
4424
|
return t2;
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4426
|
+
function tl(e4, t2) {
|
|
4427
4427
|
let n2 = new C({ check: "custom", ...y(t2) });
|
|
4428
4428
|
return n2._zod.check = e4, n2;
|
|
4429
4429
|
}
|
|
4430
|
-
function
|
|
4430
|
+
function nl(e4) {
|
|
4431
4431
|
let t2 = new C({ check: "describe" });
|
|
4432
4432
|
return t2._zod.onattach = [(t3) => {
|
|
4433
4433
|
var n2;
|
|
4434
|
-
let r2 = (n2 =
|
|
4435
|
-
|
|
4434
|
+
let r2 = (n2 = E.get(t3)) == null ? {} : n2;
|
|
4435
|
+
E.add(t3, { ...r2, description: e4 });
|
|
4436
4436
|
}], t2._zod.check = () => {
|
|
4437
4437
|
}, t2;
|
|
4438
4438
|
}
|
|
4439
|
-
function
|
|
4439
|
+
function rl(e4) {
|
|
4440
4440
|
let t2 = new C({ check: "meta" });
|
|
4441
4441
|
return t2._zod.onattach = [(t3) => {
|
|
4442
4442
|
var n2;
|
|
4443
|
-
let r2 = (n2 =
|
|
4444
|
-
|
|
4443
|
+
let r2 = (n2 = E.get(t3)) == null ? {} : n2;
|
|
4444
|
+
E.add(t3, { ...r2, ...e4 });
|
|
4445
4445
|
}], t2._zod.check = () => {
|
|
4446
4446
|
}, t2;
|
|
4447
4447
|
}
|
|
4448
|
-
function
|
|
4448
|
+
function il(e4, t2) {
|
|
4449
4449
|
var n2, r2, i2, a2, o2;
|
|
4450
4450
|
let s2 = y(t2), c2 = (n2 = s2.truthy) == null ? ["true", "1", "yes", "on", "y", "enabled"] : n2, l2 = (r2 = s2.falsy) == null ? ["false", "0", "no", "off", "n", "disabled"] : r2;
|
|
4451
4451
|
s2.case !== "sensitive" && (c2 = c2.map((e5) => typeof e5 == "string" ? e5.toLowerCase() : e5), l2 = l2.map((e5) => typeof e5 == "string" ? e5.toLowerCase() : e5));
|
|
@@ -4455,17 +4455,17 @@ function al(e4, t2) {
|
|
|
4455
4455
|
}), reverseTransform: ((e5, t3) => e5 === true ? c2[0] || "true" : l2[0] || "false"), error: s2.error });
|
|
4456
4456
|
return ee2;
|
|
4457
4457
|
}
|
|
4458
|
-
function
|
|
4458
|
+
function al(e4, t2, n2, r2 = {}) {
|
|
4459
4459
|
let i2 = y(r2), a2 = { ...y(r2), check: "string_format", type: "string", format: t2, fn: typeof n2 == "function" ? n2 : (e5) => n2.test(e5), ...i2 };
|
|
4460
4460
|
return n2 instanceof RegExp && (a2.pattern = n2), new e4(a2);
|
|
4461
4461
|
}
|
|
4462
|
-
function
|
|
4462
|
+
function ol(e4) {
|
|
4463
4463
|
var t2, n2, r2, i2, a2, o2, s2, c2, l2;
|
|
4464
4464
|
let u2 = (t2 = e4 == null ? void 0 : e4.target) == null ? "draft-2020-12" : t2;
|
|
4465
|
-
return u2 === "draft-4" && (u2 = "draft-04"), u2 === "draft-7" && (u2 = "draft-07"), { processors: (n2 = e4.processors) == null ? {} : n2, metadataRegistry: (r2 = e4 == null ? void 0 : e4.metadata) == null ?
|
|
4465
|
+
return u2 === "draft-4" && (u2 = "draft-04"), u2 === "draft-7" && (u2 = "draft-07"), { processors: (n2 = e4.processors) == null ? {} : n2, metadataRegistry: (r2 = e4 == null ? void 0 : e4.metadata) == null ? E : r2, target: u2, unrepresentable: (i2 = e4 == null ? void 0 : e4.unrepresentable) == null ? "throw" : i2, override: (a2 = e4 == null ? void 0 : e4.override) == null ? (() => {
|
|
4466
4466
|
}) : a2, io: (o2 = e4 == null ? void 0 : e4.io) == null ? "output" : o2, counter: 0, seen: /* @__PURE__ */ new Map(), cycles: (s2 = e4 == null ? void 0 : e4.cycles) == null ? "ref" : s2, reused: (c2 = e4 == null ? void 0 : e4.reused) == null ? "inline" : c2, external: (l2 = e4 == null ? void 0 : e4.external) == null ? void 0 : l2 };
|
|
4467
4467
|
}
|
|
4468
|
-
function
|
|
4468
|
+
function k(e4, t2, n2 = { path: [], schemaPath: [] }) {
|
|
4469
4469
|
var r2, i2, a2;
|
|
4470
4470
|
let o2 = e4._zod.def, s2 = t2.seen.get(e4);
|
|
4471
4471
|
if (s2) return s2.count++, n2.schemaPath.includes(e4) && (s2.cycle = n2.path), s2.schema;
|
|
@@ -4482,12 +4482,12 @@ function O(e4, t2, n2 = { path: [], schemaPath: [] }) {
|
|
|
4482
4482
|
i4(e4, t2, n3, r3);
|
|
4483
4483
|
}
|
|
4484
4484
|
let i3 = e4._zod.parent;
|
|
4485
|
-
i3 && (c2.ref || (c2.ref = i3),
|
|
4485
|
+
i3 && (c2.ref || (c2.ref = i3), k(i3, t2, r3), t2.seen.get(i3).isParent = true);
|
|
4486
4486
|
}
|
|
4487
4487
|
let u2 = t2.metadataRegistry.get(e4);
|
|
4488
|
-
return u2 && Object.assign(c2.schema, u2), t2.io === "input" &&
|
|
4488
|
+
return u2 && Object.assign(c2.schema, u2), t2.io === "input" && A(e4) && (delete c2.schema.examples, delete c2.schema.default), t2.io === "input" && c2.schema._prefault && ((a2 = c2.schema).default != null || (a2.default = c2.schema._prefault)), delete c2.schema._prefault, t2.seen.get(e4).schema;
|
|
4489
4489
|
}
|
|
4490
|
-
function
|
|
4490
|
+
function sl(e4, t2) {
|
|
4491
4491
|
let n2 = e4.seen.get(t2);
|
|
4492
4492
|
if (!n2) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
4493
4493
|
let r2 = /* @__PURE__ */ new Map();
|
|
@@ -4557,7 +4557,7 @@ function cl(e4, t2) {
|
|
|
4557
4557
|
}
|
|
4558
4558
|
}
|
|
4559
4559
|
}
|
|
4560
|
-
function
|
|
4560
|
+
function cl(e4, t2) {
|
|
4561
4561
|
var n2, r2, i2, a2;
|
|
4562
4562
|
let o2 = e4.seen.get(t2);
|
|
4563
4563
|
if (!o2) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
@@ -4601,81 +4601,81 @@ function ll(e4, t2) {
|
|
|
4601
4601
|
e4.external || Object.keys(u2).length > 0 && (e4.target === "draft-2020-12" ? c2.$defs = u2 : c2.definitions = u2);
|
|
4602
4602
|
try {
|
|
4603
4603
|
let n3 = JSON.parse(JSON.stringify(c2));
|
|
4604
|
-
return Object.defineProperty(n3, "~standard", { value: { ...t2["~standard"], jsonSchema: { input:
|
|
4604
|
+
return Object.defineProperty(n3, "~standard", { value: { ...t2["~standard"], jsonSchema: { input: ul(t2, "input", e4.processors), output: ul(t2, "output", e4.processors) } }, enumerable: false, writable: false }), n3;
|
|
4605
4605
|
} catch (e5) {
|
|
4606
4606
|
throw Error("Error converting schema to JSON.");
|
|
4607
4607
|
}
|
|
4608
4608
|
}
|
|
4609
|
-
function
|
|
4609
|
+
function A(e4, t2) {
|
|
4610
4610
|
let n2 = t2 == null ? { seen: /* @__PURE__ */ new Set() } : t2;
|
|
4611
4611
|
if (n2.seen.has(e4)) return false;
|
|
4612
4612
|
n2.seen.add(e4);
|
|
4613
4613
|
let r2 = e4._zod.def;
|
|
4614
4614
|
if (r2.type === "transform") return true;
|
|
4615
|
-
if (r2.type === "array") return
|
|
4616
|
-
if (r2.type === "set") return
|
|
4617
|
-
if (r2.type === "lazy") return
|
|
4618
|
-
if (r2.type === "promise" || r2.type === "optional" || r2.type === "nonoptional" || r2.type === "nullable" || r2.type === "readonly" || r2.type === "default" || r2.type === "prefault") return
|
|
4619
|
-
if (r2.type === "intersection") return
|
|
4620
|
-
if (r2.type === "record" || r2.type === "map") return
|
|
4621
|
-
if (r2.type === "pipe") return
|
|
4615
|
+
if (r2.type === "array") return A(r2.element, n2);
|
|
4616
|
+
if (r2.type === "set") return A(r2.valueType, n2);
|
|
4617
|
+
if (r2.type === "lazy") return A(r2.getter(), n2);
|
|
4618
|
+
if (r2.type === "promise" || r2.type === "optional" || r2.type === "nonoptional" || r2.type === "nullable" || r2.type === "readonly" || r2.type === "default" || r2.type === "prefault") return A(r2.innerType, n2);
|
|
4619
|
+
if (r2.type === "intersection") return A(r2.left, n2) || A(r2.right, n2);
|
|
4620
|
+
if (r2.type === "record" || r2.type === "map") return A(r2.keyType, n2) || A(r2.valueType, n2);
|
|
4621
|
+
if (r2.type === "pipe") return A(r2.in, n2) || A(r2.out, n2);
|
|
4622
4622
|
if (r2.type === "object") {
|
|
4623
|
-
for (let e5 in r2.shape) if (
|
|
4623
|
+
for (let e5 in r2.shape) if (A(r2.shape[e5], n2)) return true;
|
|
4624
4624
|
return false;
|
|
4625
4625
|
}
|
|
4626
4626
|
if (r2.type === "union") {
|
|
4627
|
-
for (let e5 of r2.options) if (
|
|
4627
|
+
for (let e5 of r2.options) if (A(e5, n2)) return true;
|
|
4628
4628
|
return false;
|
|
4629
4629
|
}
|
|
4630
4630
|
if (r2.type === "tuple") {
|
|
4631
|
-
for (let e5 of r2.items) if (
|
|
4632
|
-
return !!(r2.rest &&
|
|
4631
|
+
for (let e5 of r2.items) if (A(e5, n2)) return true;
|
|
4632
|
+
return !!(r2.rest && A(r2.rest, n2));
|
|
4633
4633
|
}
|
|
4634
4634
|
return false;
|
|
4635
4635
|
}
|
|
4636
|
-
var
|
|
4637
|
-
let r2 =
|
|
4638
|
-
return
|
|
4639
|
-
},
|
|
4640
|
-
let { libraryOptions: i2, target: a2 } = r2 == null ? {} : r2, o2 =
|
|
4641
|
-
return
|
|
4642
|
-
},
|
|
4636
|
+
var ll = (e4, t2 = {}) => (n2) => {
|
|
4637
|
+
let r2 = ol({ ...n2, processors: t2 });
|
|
4638
|
+
return k(e4, r2), sl(r2, e4), cl(r2, e4);
|
|
4639
|
+
}, ul = (e4, t2, n2 = {}) => (r2) => {
|
|
4640
|
+
let { libraryOptions: i2, target: a2 } = r2 == null ? {} : r2, o2 = ol({ ...i2 == null ? {} : i2, target: a2, io: t2, processors: n2 });
|
|
4641
|
+
return k(e4, o2), sl(o2, e4), cl(o2, e4);
|
|
4642
|
+
}, dl = { guid: "uuid", url: "uri", datetime: "date-time", json_string: "json-string", regex: "" }, fl = (e4, t2, n2, r2) => {
|
|
4643
4643
|
let i2 = n2;
|
|
4644
4644
|
i2.type = "string";
|
|
4645
4645
|
let { minimum: a2, maximum: o2, format: s2, patterns: c2, contentEncoding: l2 } = e4._zod.bag;
|
|
4646
4646
|
if (typeof a2 == "number" && (i2.minLength = a2), typeof o2 == "number" && (i2.maxLength = o2), s2) {
|
|
4647
4647
|
var u2;
|
|
4648
|
-
i2.format = (u2 =
|
|
4648
|
+
i2.format = (u2 = dl[s2]) == null ? s2 : u2, i2.format === "" && delete i2.format, s2 === "time" && delete i2.format;
|
|
4649
4649
|
}
|
|
4650
4650
|
if (l2 && (i2.contentEncoding = l2), c2 && c2.size > 0) {
|
|
4651
4651
|
let e5 = [...c2];
|
|
4652
4652
|
e5.length === 1 ? i2.pattern = e5[0].source : e5.length > 1 && (i2.allOf = [...e5.map((e6) => ({ ...t2.target === "draft-07" || t2.target === "draft-04" || t2.target === "openapi-3.0" ? { type: "string" } : {}, pattern: e6.source }))]);
|
|
4653
4653
|
}
|
|
4654
|
-
},
|
|
4654
|
+
}, pl = (e4, t2, n2, r2) => {
|
|
4655
4655
|
let i2 = n2, { minimum: a2, maximum: o2, format: s2, multipleOf: c2, exclusiveMaximum: l2, exclusiveMinimum: u2 } = e4._zod.bag;
|
|
4656
4656
|
typeof s2 == "string" && s2.includes("int") ? i2.type = "integer" : i2.type = "number", typeof u2 == "number" && (t2.target === "draft-04" || t2.target === "openapi-3.0" ? (i2.minimum = u2, i2.exclusiveMinimum = true) : i2.exclusiveMinimum = u2), typeof a2 == "number" && (i2.minimum = a2, typeof u2 == "number" && t2.target !== "draft-04" && (u2 >= a2 ? delete i2.minimum : delete i2.exclusiveMinimum)), typeof l2 == "number" && (t2.target === "draft-04" || t2.target === "openapi-3.0" ? (i2.maximum = l2, i2.exclusiveMaximum = true) : i2.exclusiveMaximum = l2), typeof o2 == "number" && (i2.maximum = o2, typeof l2 == "number" && t2.target !== "draft-04" && (l2 <= o2 ? delete i2.maximum : delete i2.exclusiveMaximum)), typeof c2 == "number" && (i2.multipleOf = c2);
|
|
4657
|
-
},
|
|
4657
|
+
}, ml = (e4, t2, n2, r2) => {
|
|
4658
4658
|
n2.type = "boolean";
|
|
4659
|
-
},
|
|
4659
|
+
}, hl = (e4, t2, n2, r2) => {
|
|
4660
4660
|
if (t2.unrepresentable === "throw") throw Error("BigInt cannot be represented in JSON Schema");
|
|
4661
|
-
},
|
|
4661
|
+
}, gl = (e4, t2, n2, r2) => {
|
|
4662
4662
|
if (t2.unrepresentable === "throw") throw Error("Symbols cannot be represented in JSON Schema");
|
|
4663
|
-
},
|
|
4663
|
+
}, _l = (e4, t2, n2, r2) => {
|
|
4664
4664
|
t2.target === "openapi-3.0" ? (n2.type = "string", n2.nullable = true, n2.enum = [null]) : n2.type = "null";
|
|
4665
|
-
},
|
|
4665
|
+
}, vl = (e4, t2, n2, r2) => {
|
|
4666
4666
|
if (t2.unrepresentable === "throw") throw Error("Undefined cannot be represented in JSON Schema");
|
|
4667
|
-
},
|
|
4667
|
+
}, yl = (e4, t2, n2, r2) => {
|
|
4668
4668
|
if (t2.unrepresentable === "throw") throw Error("Void cannot be represented in JSON Schema");
|
|
4669
|
-
},
|
|
4669
|
+
}, bl = (e4, t2, n2, r2) => {
|
|
4670
4670
|
n2.not = {};
|
|
4671
|
+
}, xl = (e4, t2, n2, r2) => {
|
|
4671
4672
|
}, Sl = (e4, t2, n2, r2) => {
|
|
4672
4673
|
}, Cl = (e4, t2, n2, r2) => {
|
|
4673
|
-
}, wl = (e4, t2, n2, r2) => {
|
|
4674
4674
|
if (t2.unrepresentable === "throw") throw Error("Date cannot be represented in JSON Schema");
|
|
4675
|
-
},
|
|
4675
|
+
}, wl = (e4, t2, n2, r2) => {
|
|
4676
4676
|
let i2 = e4._zod.def, a2 = ie(i2.entries);
|
|
4677
4677
|
a2.every((e5) => typeof e5 == "number") && (n2.type = "number"), a2.every((e5) => typeof e5 == "string") && (n2.type = "string"), n2.enum = a2;
|
|
4678
|
-
},
|
|
4678
|
+
}, Tl = (e4, t2, n2, r2) => {
|
|
4679
4679
|
let i2 = e4._zod.def, a2 = [];
|
|
4680
4680
|
for (let e5 of i2.values) if (e5 === void 0) {
|
|
4681
4681
|
if (t2.unrepresentable === "throw") throw Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
@@ -4687,89 +4687,89 @@ var ul = (e4, t2 = {}) => (n2) => {
|
|
|
4687
4687
|
let e5 = a2[0];
|
|
4688
4688
|
n2.type = e5 === null ? "null" : typeof e5, t2.target === "draft-04" || t2.target === "openapi-3.0" ? n2.enum = [e5] : n2.const = e5;
|
|
4689
4689
|
} else a2.every((e5) => typeof e5 == "number") && (n2.type = "number"), a2.every((e5) => typeof e5 == "string") && (n2.type = "string"), a2.every((e5) => typeof e5 == "boolean") && (n2.type = "boolean"), a2.every((e5) => e5 === null) && (n2.type = "null"), n2.enum = a2;
|
|
4690
|
-
},
|
|
4690
|
+
}, El = (e4, t2, n2, r2) => {
|
|
4691
4691
|
if (t2.unrepresentable === "throw") throw Error("NaN cannot be represented in JSON Schema");
|
|
4692
|
-
},
|
|
4692
|
+
}, Dl = (e4, t2, n2, r2) => {
|
|
4693
4693
|
let i2 = n2, a2 = e4._zod.pattern;
|
|
4694
4694
|
if (!a2) throw Error("Pattern not found in template literal");
|
|
4695
4695
|
i2.type = "string", i2.pattern = a2.source;
|
|
4696
|
-
},
|
|
4696
|
+
}, Ol = (e4, t2, n2, r2) => {
|
|
4697
4697
|
let i2 = n2, a2 = { type: "string", format: "binary", contentEncoding: "binary" }, { minimum: o2, maximum: s2, mime: c2 } = e4._zod.bag;
|
|
4698
4698
|
o2 !== void 0 && (a2.minLength = o2), s2 !== void 0 && (a2.maxLength = s2), c2 ? c2.length === 1 ? (a2.contentMediaType = c2[0], Object.assign(i2, a2)) : (Object.assign(i2, a2), i2.anyOf = c2.map((e5) => ({ contentMediaType: e5 }))) : Object.assign(i2, a2);
|
|
4699
|
-
},
|
|
4699
|
+
}, kl = (e4, t2, n2, r2) => {
|
|
4700
4700
|
n2.type = "boolean";
|
|
4701
|
-
},
|
|
4701
|
+
}, Al = (e4, t2, n2, r2) => {
|
|
4702
4702
|
if (t2.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
|
|
4703
|
-
},
|
|
4703
|
+
}, jl = (e4, t2, n2, r2) => {
|
|
4704
4704
|
if (t2.unrepresentable === "throw") throw Error("Function types cannot be represented in JSON Schema");
|
|
4705
|
-
},
|
|
4705
|
+
}, Ml = (e4, t2, n2, r2) => {
|
|
4706
4706
|
if (t2.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
|
|
4707
|
-
},
|
|
4707
|
+
}, Nl = (e4, t2, n2, r2) => {
|
|
4708
4708
|
if (t2.unrepresentable === "throw") throw Error("Map cannot be represented in JSON Schema");
|
|
4709
|
-
},
|
|
4709
|
+
}, Pl = (e4, t2, n2, r2) => {
|
|
4710
4710
|
if (t2.unrepresentable === "throw") throw Error("Set cannot be represented in JSON Schema");
|
|
4711
|
-
},
|
|
4711
|
+
}, Fl = (e4, t2, n2, r2) => {
|
|
4712
4712
|
let i2 = n2, a2 = e4._zod.def, { minimum: o2, maximum: s2 } = e4._zod.bag;
|
|
4713
|
-
typeof o2 == "number" && (i2.minItems = o2), typeof s2 == "number" && (i2.maxItems = s2), i2.type = "array", i2.items =
|
|
4714
|
-
},
|
|
4713
|
+
typeof o2 == "number" && (i2.minItems = o2), typeof s2 == "number" && (i2.maxItems = s2), i2.type = "array", i2.items = k(a2.element, t2, { ...r2, path: [...r2.path, "items"] });
|
|
4714
|
+
}, Il = (e4, t2, n2, r2) => {
|
|
4715
4715
|
var i2;
|
|
4716
4716
|
let a2 = n2, o2 = e4._zod.def;
|
|
4717
4717
|
a2.type = "object", a2.properties = {};
|
|
4718
4718
|
let s2 = o2.shape;
|
|
4719
|
-
for (let e5 in s2) a2.properties[e5] =
|
|
4719
|
+
for (let e5 in s2) a2.properties[e5] = k(s2[e5], t2, { ...r2, path: [...r2.path, "properties", e5] });
|
|
4720
4720
|
let c2 = new Set(Object.keys(s2)), l2 = new Set([...c2].filter((e5) => {
|
|
4721
4721
|
let n3 = o2.shape[e5]._zod;
|
|
4722
4722
|
return t2.io === "input" ? n3.optin === void 0 : n3.optout === void 0;
|
|
4723
4723
|
}));
|
|
4724
|
-
l2.size > 0 && (a2.required = Array.from(l2)), ((i2 = o2.catchall) == null ? void 0 : i2._zod.def.type) === "never" ? a2.additionalProperties = false : o2.catchall ? o2.catchall && (a2.additionalProperties =
|
|
4725
|
-
},
|
|
4726
|
-
let i2 = e4._zod.def, a2 = i2.inclusive === false, o2 = i2.options.map((e5, n3) =>
|
|
4724
|
+
l2.size > 0 && (a2.required = Array.from(l2)), ((i2 = o2.catchall) == null ? void 0 : i2._zod.def.type) === "never" ? a2.additionalProperties = false : o2.catchall ? o2.catchall && (a2.additionalProperties = k(o2.catchall, t2, { ...r2, path: [...r2.path, "additionalProperties"] })) : t2.io === "output" && (a2.additionalProperties = false);
|
|
4725
|
+
}, Ll = (e4, t2, n2, r2) => {
|
|
4726
|
+
let i2 = e4._zod.def, a2 = i2.inclusive === false, o2 = i2.options.map((e5, n3) => k(e5, t2, { ...r2, path: [...r2.path, a2 ? "oneOf" : "anyOf", n3] }));
|
|
4727
4727
|
a2 ? n2.oneOf = o2 : n2.anyOf = o2;
|
|
4728
|
-
},
|
|
4729
|
-
let i2 = e4._zod.def, a2 =
|
|
4728
|
+
}, Rl = (e4, t2, n2, r2) => {
|
|
4729
|
+
let i2 = e4._zod.def, a2 = k(i2.left, t2, { ...r2, path: [...r2.path, "allOf", 0] }), o2 = k(i2.right, t2, { ...r2, path: [...r2.path, "allOf", 1] }), s2 = (e5) => "allOf" in e5 && Object.keys(e5).length === 1;
|
|
4730
4730
|
n2.allOf = [...s2(a2) ? a2.allOf : [a2], ...s2(o2) ? o2.allOf : [o2]];
|
|
4731
|
-
},
|
|
4731
|
+
}, zl = (e4, t2, n2, r2) => {
|
|
4732
4732
|
let i2 = n2, a2 = e4._zod.def;
|
|
4733
4733
|
i2.type = "array";
|
|
4734
|
-
let o2 = t2.target === "draft-2020-12" ? "prefixItems" : "items", s2 = t2.target === "draft-2020-12" || t2.target === "openapi-3.0" ? "items" : "additionalItems", c2 = a2.items.map((e5, n3) =>
|
|
4734
|
+
let o2 = t2.target === "draft-2020-12" ? "prefixItems" : "items", s2 = t2.target === "draft-2020-12" || t2.target === "openapi-3.0" ? "items" : "additionalItems", c2 = a2.items.map((e5, n3) => k(e5, t2, { ...r2, path: [...r2.path, o2, n3] })), l2 = a2.rest ? k(a2.rest, t2, { ...r2, path: [...r2.path, s2, ...t2.target === "openapi-3.0" ? [a2.items.length] : []] }) : null;
|
|
4735
4735
|
t2.target === "draft-2020-12" ? (i2.prefixItems = c2, l2 && (i2.items = l2)) : t2.target === "openapi-3.0" ? (i2.items = { anyOf: c2 }, l2 && i2.items.anyOf.push(l2), i2.minItems = c2.length, l2 || (i2.maxItems = c2.length)) : (i2.items = c2, l2 && (i2.additionalItems = l2));
|
|
4736
4736
|
let { minimum: u2, maximum: d2 } = e4._zod.bag;
|
|
4737
4737
|
typeof u2 == "number" && (i2.minItems = u2), typeof d2 == "number" && (i2.maxItems = d2);
|
|
4738
|
-
},
|
|
4738
|
+
}, Bl = (e4, t2, n2, r2) => {
|
|
4739
4739
|
let i2 = n2, a2 = e4._zod.def;
|
|
4740
4740
|
i2.type = "object";
|
|
4741
4741
|
let o2 = a2.keyType, s2 = o2._zod.bag, c2 = s2 == null ? void 0 : s2.patterns;
|
|
4742
4742
|
if (a2.mode === "loose" && c2 && c2.size > 0) {
|
|
4743
|
-
let e5 =
|
|
4743
|
+
let e5 = k(a2.valueType, t2, { ...r2, path: [...r2.path, "patternProperties", "*"] });
|
|
4744
4744
|
i2.patternProperties = {};
|
|
4745
4745
|
for (let t3 of c2) i2.patternProperties[t3.source] = e5;
|
|
4746
|
-
} else (t2.target === "draft-07" || t2.target === "draft-2020-12") && (i2.propertyNames =
|
|
4746
|
+
} else (t2.target === "draft-07" || t2.target === "draft-2020-12") && (i2.propertyNames = k(a2.keyType, t2, { ...r2, path: [...r2.path, "propertyNames"] })), i2.additionalProperties = k(a2.valueType, t2, { ...r2, path: [...r2.path, "additionalProperties"] });
|
|
4747
4747
|
let l2 = o2._zod.values;
|
|
4748
4748
|
if (l2) {
|
|
4749
4749
|
let e5 = [...l2].filter((e6) => typeof e6 == "string" || typeof e6 == "number");
|
|
4750
4750
|
e5.length > 0 && (i2.required = e5);
|
|
4751
4751
|
}
|
|
4752
|
-
},
|
|
4753
|
-
let i2 = e4._zod.def, a2 =
|
|
4752
|
+
}, Vl = (e4, t2, n2, r2) => {
|
|
4753
|
+
let i2 = e4._zod.def, a2 = k(i2.innerType, t2, r2), o2 = t2.seen.get(e4);
|
|
4754
4754
|
t2.target === "openapi-3.0" ? (o2.ref = i2.innerType, n2.nullable = true) : n2.anyOf = [a2, { type: "null" }];
|
|
4755
|
-
},
|
|
4755
|
+
}, Hl = (e4, t2, n2, r2) => {
|
|
4756
4756
|
let i2 = e4._zod.def;
|
|
4757
|
-
|
|
4757
|
+
k(i2.innerType, t2, r2);
|
|
4758
4758
|
let a2 = t2.seen.get(e4);
|
|
4759
4759
|
a2.ref = i2.innerType;
|
|
4760
|
-
},
|
|
4760
|
+
}, Ul = (e4, t2, n2, r2) => {
|
|
4761
4761
|
let i2 = e4._zod.def;
|
|
4762
|
-
|
|
4762
|
+
k(i2.innerType, t2, r2);
|
|
4763
4763
|
let a2 = t2.seen.get(e4);
|
|
4764
4764
|
a2.ref = i2.innerType, n2.default = JSON.parse(JSON.stringify(i2.defaultValue));
|
|
4765
|
-
},
|
|
4765
|
+
}, Wl = (e4, t2, n2, r2) => {
|
|
4766
4766
|
let i2 = e4._zod.def;
|
|
4767
|
-
|
|
4767
|
+
k(i2.innerType, t2, r2);
|
|
4768
4768
|
let a2 = t2.seen.get(e4);
|
|
4769
4769
|
a2.ref = i2.innerType, t2.io === "input" && (n2._prefault = JSON.parse(JSON.stringify(i2.defaultValue)));
|
|
4770
|
-
},
|
|
4770
|
+
}, Gl = (e4, t2, n2, r2) => {
|
|
4771
4771
|
let i2 = e4._zod.def;
|
|
4772
|
-
|
|
4772
|
+
k(i2.innerType, t2, r2);
|
|
4773
4773
|
let a2 = t2.seen.get(e4);
|
|
4774
4774
|
a2.ref = i2.innerType;
|
|
4775
4775
|
let o2;
|
|
@@ -4779,51 +4779,51 @@ var ul = (e4, t2 = {}) => (n2) => {
|
|
|
4779
4779
|
throw Error("Dynamic catch values are not supported in JSON Schema");
|
|
4780
4780
|
}
|
|
4781
4781
|
n2.default = o2;
|
|
4782
|
-
},
|
|
4782
|
+
}, Kl = (e4, t2, n2, r2) => {
|
|
4783
4783
|
let i2 = e4._zod.def, a2 = t2.io === "input" ? i2.in._zod.def.type === "transform" ? i2.out : i2.in : i2.out;
|
|
4784
|
-
|
|
4784
|
+
k(a2, t2, r2);
|
|
4785
4785
|
let o2 = t2.seen.get(e4);
|
|
4786
4786
|
o2.ref = a2;
|
|
4787
|
-
},
|
|
4787
|
+
}, ql = (e4, t2, n2, r2) => {
|
|
4788
4788
|
let i2 = e4._zod.def;
|
|
4789
|
-
|
|
4789
|
+
k(i2.innerType, t2, r2);
|
|
4790
4790
|
let a2 = t2.seen.get(e4);
|
|
4791
4791
|
a2.ref = i2.innerType, n2.readOnly = true;
|
|
4792
|
-
},
|
|
4792
|
+
}, Jl = (e4, t2, n2, r2) => {
|
|
4793
4793
|
let i2 = e4._zod.def;
|
|
4794
|
-
|
|
4794
|
+
k(i2.innerType, t2, r2);
|
|
4795
4795
|
let a2 = t2.seen.get(e4);
|
|
4796
4796
|
a2.ref = i2.innerType;
|
|
4797
|
-
},
|
|
4797
|
+
}, Yl = (e4, t2, n2, r2) => {
|
|
4798
4798
|
let i2 = e4._zod.def;
|
|
4799
|
-
|
|
4799
|
+
k(i2.innerType, t2, r2);
|
|
4800
4800
|
let a2 = t2.seen.get(e4);
|
|
4801
4801
|
a2.ref = i2.innerType;
|
|
4802
|
-
},
|
|
4802
|
+
}, Xl = (e4, t2, n2, r2) => {
|
|
4803
4803
|
let i2 = e4._zod.innerType;
|
|
4804
|
-
|
|
4804
|
+
k(i2, t2, r2);
|
|
4805
4805
|
let a2 = t2.seen.get(e4);
|
|
4806
4806
|
a2.ref = i2;
|
|
4807
|
-
},
|
|
4808
|
-
function
|
|
4807
|
+
}, Zl = { string: fl, number: pl, boolean: ml, bigint: hl, symbol: gl, null: _l, undefined: vl, void: yl, never: bl, any: xl, unknown: Sl, date: Cl, enum: wl, literal: Tl, nan: El, template_literal: Dl, file: Ol, success: kl, custom: Al, function: jl, transform: Ml, map: Nl, set: Pl, array: Fl, object: Il, union: Ll, intersection: Rl, tuple: zl, record: Bl, nullable: Vl, nonoptional: Hl, default: Ul, prefault: Wl, catch: Gl, pipe: Kl, readonly: ql, promise: Jl, optional: Yl, lazy: Xl };
|
|
4808
|
+
function Ql(e4, t2) {
|
|
4809
4809
|
if ("_idmap" in e4) {
|
|
4810
|
-
let n3 = e4, r2 =
|
|
4810
|
+
let n3 = e4, r2 = ol({ ...t2, processors: Zl }), i2 = {};
|
|
4811
4811
|
for (let e5 of n3._idmap.entries()) {
|
|
4812
4812
|
let [t3, n4] = e5;
|
|
4813
|
-
|
|
4813
|
+
k(n4, r2);
|
|
4814
4814
|
}
|
|
4815
4815
|
let a2 = {};
|
|
4816
4816
|
r2.external = { registry: n3, uri: t2 == null ? void 0 : t2.uri, defs: i2 };
|
|
4817
4817
|
for (let e5 of n3._idmap.entries()) {
|
|
4818
4818
|
let [t3, n4] = e5;
|
|
4819
|
-
|
|
4819
|
+
sl(r2, n4), a2[t3] = cl(r2, n4);
|
|
4820
4820
|
}
|
|
4821
4821
|
return Object.keys(i2).length > 0 && (a2.__shared = { [r2.target === "draft-2020-12" ? "$defs" : "definitions"]: i2 }), { schemas: a2 };
|
|
4822
4822
|
}
|
|
4823
|
-
let n2 =
|
|
4824
|
-
return
|
|
4823
|
+
let n2 = ol({ ...t2, processors: Zl });
|
|
4824
|
+
return k(e4, n2), sl(n2, e4), cl(n2, e4);
|
|
4825
4825
|
}
|
|
4826
|
-
var
|
|
4826
|
+
var $l = class {
|
|
4827
4827
|
get metadataRegistry() {
|
|
4828
4828
|
return this.ctx.metadataRegistry;
|
|
4829
4829
|
}
|
|
@@ -4851,27 +4851,27 @@ var eu = class {
|
|
|
4851
4851
|
constructor(e4) {
|
|
4852
4852
|
var t2;
|
|
4853
4853
|
let n2 = (t2 = e4 == null ? void 0 : e4.target) == null ? "draft-2020-12" : t2;
|
|
4854
|
-
n2 === "draft-4" && (n2 = "draft-04"), n2 === "draft-7" && (n2 = "draft-07"), this.ctx =
|
|
4854
|
+
n2 === "draft-4" && (n2 = "draft-04"), n2 === "draft-7" && (n2 = "draft-07"), this.ctx = ol({ processors: Zl, target: n2, ...(e4 == null ? void 0 : e4.metadata) && { metadata: e4.metadata }, ...(e4 == null ? void 0 : e4.unrepresentable) && { unrepresentable: e4.unrepresentable }, ...(e4 == null ? void 0 : e4.override) && { override: e4.override }, ...(e4 == null ? void 0 : e4.io) && { io: e4.io } });
|
|
4855
4855
|
}
|
|
4856
4856
|
process(e4, t2 = { path: [], schemaPath: [] }) {
|
|
4857
|
-
return
|
|
4857
|
+
return k(e4, this.ctx, t2);
|
|
4858
4858
|
}
|
|
4859
4859
|
emit(e4, t2) {
|
|
4860
|
-
t2 && (t2.cycles && (this.ctx.cycles = t2.cycles), t2.reused && (this.ctx.reused = t2.reused), t2.external && (this.ctx.external = t2.external)),
|
|
4861
|
-
let { "~standard": n2, ...r2 } =
|
|
4860
|
+
t2 && (t2.cycles && (this.ctx.cycles = t2.cycles), t2.reused && (this.ctx.reused = t2.reused), t2.external && (this.ctx.external = t2.external)), sl(this.ctx, e4);
|
|
4861
|
+
let { "~standard": n2, ...r2 } = cl(this.ctx, e4);
|
|
4862
4862
|
return r2;
|
|
4863
4863
|
}
|
|
4864
|
-
},
|
|
4865
|
-
function
|
|
4864
|
+
}, eu = t({}), tu = t({ $ZodAny: () => Qr, $ZodArray: () => ii, $ZodAsyncError: () => u, $ZodBase64: () => Lr, $ZodBase64URL: () => zr, $ZodBigInt: () => qr, $ZodBigIntFormat: () => Jr, $ZodBoolean: () => Kr, $ZodCIDRv4: () => Pr, $ZodCIDRv6: () => Fr, $ZodCUID: () => Sr, $ZodCUID2: () => Cr, $ZodCatch: () => zi, $ZodCheck: () => C, $ZodCheckBigIntFormat: () => Yn, $ZodCheckEndsWith: () => cr, $ZodCheckGreaterThan: () => Kn, $ZodCheckIncludes: () => or, $ZodCheckLengthEquals: () => tr, $ZodCheckLessThan: () => Gn, $ZodCheckLowerCase: () => ir, $ZodCheckMaxLength: () => $n, $ZodCheckMaxSize: () => Xn, $ZodCheckMimeType: () => dr, $ZodCheckMinLength: () => er, $ZodCheckMinSize: () => Zn, $ZodCheckMultipleOf: () => qn, $ZodCheckNumberFormat: () => Jn, $ZodCheckOverwrite: () => fr, $ZodCheckProperty: () => ur, $ZodCheckRegex: () => rr, $ZodCheckSizeEquals: () => Qn, $ZodCheckStartsWith: () => sr, $ZodCheckStringFormat: () => nr, $ZodCheckUpperCase: () => ar, $ZodCodec: () => Ui, $ZodCustom: () => Qi, $ZodCustomStringFormat: () => Ur, $ZodDate: () => ni, $ZodDefault: () => Ni, $ZodDiscriminatedUnion: () => mi, $ZodE164: () => Br, $ZodEmail: () => vr, $ZodEmoji: () => br, $ZodEncodeError: () => d, $ZodEnum: () => Ti, $ZodError: () => rt, $ZodExactOptional: () => ji, $ZodFile: () => Di, $ZodFunction: () => Yi, $ZodGUID: () => gr, $ZodIPv4: () => jr, $ZodIPv6: () => Mr, $ZodISODate: () => Or, $ZodISODateTime: () => Dr, $ZodISODuration: () => Ar, $ZodISOTime: () => kr, $ZodIntersection: () => hi, $ZodJWT: () => Hr, $ZodKSUID: () => Er, $ZodLazy: () => Zi, $ZodLiteral: () => Ei, $ZodMAC: () => Nr, $ZodMap: () => xi, $ZodNaN: () => Bi, $ZodNanoID: () => xr, $ZodNever: () => ei, $ZodNonOptional: () => Ii, $ZodNull: () => Zr, $ZodNullable: () => Mi, $ZodNumber: () => Wr, $ZodNumberFormat: () => Gr, $ZodObject: () => ci, $ZodObjectJIT: () => li, $ZodOptional: () => Ai, $ZodPipe: () => Vi, $ZodPrefault: () => Fi, $ZodPromise: () => Xi, $ZodReadonly: () => Ki, $ZodRealError: () => S, $ZodRecord: () => bi, $ZodRegistry: () => $o, $ZodSet: () => Ci, $ZodString: () => hr, $ZodStringFormat: () => T, $ZodSuccess: () => Ri, $ZodSymbol: () => Yr, $ZodTemplateLiteral: () => Ji, $ZodTransform: () => Oi, $ZodTuple: () => vi, $ZodType: () => w, $ZodULID: () => wr, $ZodURL: () => yr, $ZodUUID: () => _r, $ZodUndefined: () => Xr, $ZodUnion: () => di, $ZodUnknown: () => $r, $ZodVoid: () => ti, $ZodXID: () => Tr, $ZodXor: () => pi, $brand: () => l, $constructor: () => c, $input: () => Qo, $output: () => Zo, Doc: () => pr, JSONSchema: () => eu, JSONSchemaGenerator: () => $l, NEVER: () => s, TimePrecision: () => Es, _any: () => qs, _array: () => Dc, _base64: () => Ss, _base64url: () => Cs, _bigint: () => Bs, _boolean: () => Rs, _catch: () => Kc, _check: () => tl, _cidrv4: () => bs, _cidrv6: () => xs, _coercedBigint: () => Vs, _coercedBoolean: () => zs, _coercedDate: () => Qs, _coercedNumber: () => Ms, _coercedString: () => ns, _cuid: () => fs, _cuid2: () => ps, _custom: () => Qc, _date: () => Zs, _decode: () => yt, _decodeAsync: () => Ct, _default: () => Uc, _discriminatedUnion: () => Ac, _e164: () => ws, _email: () => rs, _emoji: () => us, _encode: () => _t, _encodeAsync: () => xt, _endsWith: () => vc, _enum: () => Ic, _file: () => zc, _float32: () => Ps, _float64: () => Fs, _gt: () => tc, _gte: () => O, _guid: () => is, _includes: () => gc, _int: () => Ns, _int32: () => Is, _int64: () => Hs, _intersection: () => jc, _ipv4: () => _s, _ipv6: () => vs, _isoDate: () => Os, _isoDateTime: () => Ds, _isoDuration: () => As, _isoTime: () => ks, _jwt: () => Ts, _ksuid: () => gs, _lazy: () => Xc, _length: () => fc, _literal: () => Rc, _lowercase: () => mc, _lt: () => ec, _lte: () => D, _mac: () => ys, _map: () => Pc, _max: () => D, _maxLength: () => uc, _maxSize: () => sc, _mime: () => bc, _min: () => O, _minLength: () => dc, _minSize: () => cc, _multipleOf: () => oc, _nan: () => $s, _nanoid: () => ds, _nativeEnum: () => Lc, _negative: () => rc, _never: () => Ys, _nonnegative: () => ac, _nonoptional: () => Wc, _nonpositive: () => ic, _normalize: () => Sc, _null: () => Ks, _nullable: () => Hc, _number: () => js, _optional: () => Vc, _overwrite: () => xc, _parse: () => lt, _parseAsync: () => dt, _pipe: () => qc, _positive: () => nc, _promise: () => Zc, _property: () => yc, _readonly: () => Jc, _record: () => Nc, _refine: () => $c, _regex: () => pc, _safeDecode: () => Dt, _safeDecodeAsync: () => jt, _safeEncode: () => Tt, _safeEncodeAsync: () => kt, _safeParse: () => pt, _safeParseAsync: () => ht, _set: () => Fc, _size: () => lc, _slugify: () => Ec, _startsWith: () => _c, _string: () => ts, _stringFormat: () => al, _stringbool: () => il, _success: () => Gc, _superRefine: () => el, _symbol: () => Ws, _templateLiteral: () => Yc, _toLowerCase: () => wc, _toUpperCase: () => Tc, _transform: () => Bc, _trim: () => Cc, _tuple: () => Mc, _uint32: () => Ls, _uint64: () => Us, _ulid: () => ms, _undefined: () => Gs, _union: () => Oc, _unknown: () => Js, _uppercase: () => hc, _url: () => ls, _uuid: () => as, _uuidv4: () => os, _uuidv6: () => ss, _uuidv7: () => cs, _void: () => Xs, _xid: () => hs, _xor: () => kc, clone: () => v, config: () => p, createStandardJSONSchemaMethod: () => ul, createToJSONSchemaMethod: () => ll, decode: () => bt, decodeAsync: () => wt, describe: () => nl, encode: () => vt, encodeAsync: () => St, extractDefs: () => sl, finalize: () => cl, flattenError: () => it, formatError: () => at, globalConfig: () => f, globalRegistry: () => E, initializeContext: () => ol, isValidBase64: () => Ir, isValidBase64URL: () => Rr, isValidJWT: () => Vr, locales: () => Yo, meta: () => rl, parse: () => ut, parseAsync: () => ft, prettifyError: () => ct, process: () => k, regexes: () => Nt, registry: () => es, safeDecode: () => Ot, safeDecodeAsync: () => Mt, safeEncode: () => Et, safeEncodeAsync: () => At, safeParse: () => mt, safeParseAsync: () => gt, toDotPath: () => st, toJSONSchema: () => Ql, treeifyError: () => ot, util: () => ee, version: () => mr });
|
|
4865
|
+
function nu(e4) {
|
|
4866
4866
|
return !!e4._zod;
|
|
4867
4867
|
}
|
|
4868
|
-
function
|
|
4869
|
-
return
|
|
4868
|
+
function ru(e4, t2) {
|
|
4869
|
+
return nu(e4) ? mt(e4, t2) : e4.safeParse(t2);
|
|
4870
4870
|
}
|
|
4871
|
-
function
|
|
4871
|
+
function iu(e4) {
|
|
4872
4872
|
if (!e4) return;
|
|
4873
4873
|
let t2;
|
|
4874
|
-
if (
|
|
4874
|
+
if (nu(e4)) {
|
|
4875
4875
|
var n2;
|
|
4876
4876
|
t2 = (n2 = e4._zod) == null || (n2 = n2.def) == null ? void 0 : n2.shape;
|
|
4877
4877
|
} else t2 = e4.shape;
|
|
@@ -4884,8 +4884,8 @@ function au(e4) {
|
|
|
4884
4884
|
return t2;
|
|
4885
4885
|
}
|
|
4886
4886
|
}
|
|
4887
|
-
function
|
|
4888
|
-
if (
|
|
4887
|
+
function au(e4) {
|
|
4888
|
+
if (nu(e4)) {
|
|
4889
4889
|
var t2;
|
|
4890
4890
|
let n3 = (t2 = e4._zod) == null ? void 0 : t2.def;
|
|
4891
4891
|
if (n3) {
|
|
@@ -4901,31 +4901,31 @@ function ou(e4) {
|
|
|
4901
4901
|
let r2 = e4.value;
|
|
4902
4902
|
if (r2 !== void 0) return r2;
|
|
4903
4903
|
}
|
|
4904
|
-
var
|
|
4905
|
-
Dr.init(e4, t2),
|
|
4904
|
+
var ou = t({ endsWith: () => vc, gt: () => tc, gte: () => O, includes: () => gc, length: () => fc, lowercase: () => mc, lt: () => ec, lte: () => D, maxLength: () => uc, maxSize: () => sc, mime: () => bc, minLength: () => dc, minSize: () => cc, multipleOf: () => oc, negative: () => rc, nonnegative: () => ac, nonpositive: () => ic, normalize: () => Sc, overwrite: () => xc, positive: () => nc, property: () => yc, regex: () => pc, size: () => lc, slugify: () => Ec, startsWith: () => _c, toLowerCase: () => wc, toUpperCase: () => Tc, trim: () => Cc, uppercase: () => hc }), su = t({ ZodISODate: () => uu, ZodISODateTime: () => cu, ZodISODuration: () => mu, ZodISOTime: () => fu, date: () => du, datetime: () => lu, duration: () => hu, time: () => pu }), cu = c("ZodISODateTime", (e4, t2) => {
|
|
4905
|
+
Dr.init(e4, t2), P.init(e4, t2);
|
|
4906
4906
|
});
|
|
4907
|
-
function
|
|
4908
|
-
return
|
|
4907
|
+
function lu(e4) {
|
|
4908
|
+
return Ds(cu, e4);
|
|
4909
4909
|
}
|
|
4910
|
-
var
|
|
4911
|
-
Or.init(e4, t2),
|
|
4910
|
+
var uu = c("ZodISODate", (e4, t2) => {
|
|
4911
|
+
Or.init(e4, t2), P.init(e4, t2);
|
|
4912
4912
|
});
|
|
4913
|
-
function
|
|
4914
|
-
return
|
|
4913
|
+
function du(e4) {
|
|
4914
|
+
return Os(uu, e4);
|
|
4915
4915
|
}
|
|
4916
|
-
var
|
|
4917
|
-
kr.init(e4, t2),
|
|
4916
|
+
var fu = c("ZodISOTime", (e4, t2) => {
|
|
4917
|
+
kr.init(e4, t2), P.init(e4, t2);
|
|
4918
4918
|
});
|
|
4919
|
-
function
|
|
4920
|
-
return
|
|
4919
|
+
function pu(e4) {
|
|
4920
|
+
return ks(fu, e4);
|
|
4921
4921
|
}
|
|
4922
|
-
var
|
|
4923
|
-
Ar.init(e4, t2),
|
|
4922
|
+
var mu = c("ZodISODuration", (e4, t2) => {
|
|
4923
|
+
Ar.init(e4, t2), P.init(e4, t2);
|
|
4924
4924
|
});
|
|
4925
|
-
function
|
|
4926
|
-
return
|
|
4925
|
+
function hu(e4) {
|
|
4926
|
+
return As(mu, e4);
|
|
4927
4927
|
}
|
|
4928
|
-
var
|
|
4928
|
+
var gu = (e4, t2) => {
|
|
4929
4929
|
rt.init(e4, t2), e4.name = "ZodError", Object.defineProperties(e4, { format: { value: (t3) => at(e4, t3) }, flatten: { value: (t3) => it(e4, t3) }, addIssue: { value: (t3) => {
|
|
4930
4930
|
e4.issues.push(t3), e4.message = JSON.stringify(e4.issues, ae, 2);
|
|
4931
4931
|
} }, addIssues: { value: (t3) => {
|
|
@@ -4933,399 +4933,399 @@ var _u = (e4, t2) => {
|
|
|
4933
4933
|
} }, isEmpty: { get() {
|
|
4934
4934
|
return e4.issues.length === 0;
|
|
4935
4935
|
} } });
|
|
4936
|
-
},
|
|
4936
|
+
}, _u = c("ZodError", gu), j = c("ZodError", gu, { Parent: Error }), vu = lt(j), yu = dt(j), bu = pt(j), xu = ht(j), Su = _t(j), Cu = yt(j), wu = xt(j), Tu = Ct(j), Eu = Tt(j), Du = Dt(j), Ou = kt(j), ku = jt(j), Au = t({ ZodAny: () => qd, ZodArray: () => nf, ZodBase64: () => hd, ZodBase64URL: () => _d, ZodBigInt: () => Id, ZodBigIntFormat: () => Rd, ZodBoolean: () => Fd, ZodCIDRv4: () => dd, ZodCIDRv6: () => pd, ZodCUID: () => Yu, ZodCUID2: () => Zu, ZodCatch: () => Wf, ZodCodec: () => Xf, ZodCustom: () => cp, ZodCustomStringFormat: () => Cd, ZodDate: () => ef, ZodDefault: () => If, ZodDiscriminatedUnion: () => uf, ZodE164: () => yd, ZodEmail: () => Nu, ZodEmoji: () => Gu, ZodEnum: () => Cf, ZodExactOptional: () => jf, ZodFile: () => Ef, ZodFunction: () => op, ZodGUID: () => Fu, ZodIPv4: () => ad, ZodIPv6: () => ld, ZodIntersection: () => ff, ZodJWT: () => xd, ZodKSUID: () => rd, ZodLazy: () => np, ZodLiteral: () => Tf, ZodMAC: () => sd, ZodMap: () => yf, ZodNaN: () => Kf, ZodNanoID: () => qu, ZodNever: () => Xd, ZodNonOptional: () => Bf, ZodNull: () => Gd, ZodNullable: () => Nf, ZodNumber: () => Od, ZodNumberFormat: () => kd, ZodObject: () => af, ZodOptional: () => Af, ZodPipe: () => Jf, ZodPrefault: () => Rf, ZodPromise: () => ip, ZodReadonly: () => Qf, ZodRecord: () => gf, ZodSet: () => xf, ZodString: () => Mu, ZodStringFormat: () => P, ZodSuccess: () => Hf, ZodSymbol: () => Vd, ZodTemplateLiteral: () => ep, ZodTransform: () => Of, ZodTuple: () => mf, ZodType: () => M, ZodULID: () => $u, ZodURL: () => Hu, ZodUUID: () => Lu, ZodUndefined: () => Ud, ZodUnion: () => sf, ZodUnknown: () => Yd, ZodVoid: () => Qd, ZodXID: () => td, ZodXor: () => cf, _ZodString: () => ju, _default: () => Lf, _function: () => sp, any: () => Jd, array: () => R, base64: () => gd, base64url: () => vd, bigint: () => Ld, boolean: () => I, catch: () => Gf, check: () => lp, cidrv4: () => fd, cidrv6: () => md, codec: () => Zf, cuid: () => Xu, cuid2: () => Qu, custom: () => up, date: () => tf, describe: () => pp, discriminatedUnion: () => df, e164: () => bd, email: () => Pu, emoji: () => Ku, enum: () => U, exactOptional: () => Mf, file: () => Df, float32: () => jd, float64: () => Md, function: () => sp, guid: () => Iu, hash: () => Dd, hex: () => Ed, hostname: () => Td, httpUrl: () => Wu, instanceof: () => hp, int: () => Ad, int32: () => Nd, int64: () => zd, intersection: () => pf, ipv4: () => od, ipv6: () => ud, json: () => _p, jwt: () => Sd, keyof: () => rf, ksuid: () => id, lazy: () => rp, literal: () => W, looseObject: () => B, looseRecord: () => vf, mac: () => cd, map: () => bf, meta: () => mp, nan: () => qf, nanoid: () => Ju, nativeEnum: () => wf, never: () => Zd, nonoptional: () => Vf, null: () => Kd, nullable: () => Pf, nullish: () => Ff, number: () => F, object: () => z, optional: () => G, partialRecord: () => _f, pipe: () => Yf, prefault: () => zf, preprocess: () => vp, promise: () => ap, readonly: () => $f, record: () => H, refine: () => dp, set: () => Sf, strictObject: () => of, string: () => N, stringFormat: () => wd, stringbool: () => gp, success: () => Uf, superRefine: () => fp, symbol: () => Hd, templateLiteral: () => tp, transform: () => kf, tuple: () => hf, uint32: () => Pd, uint64: () => Bd, ulid: () => ed, undefined: () => Wd, union: () => V, unknown: () => L, url: () => Uu, uuid: () => Ru, uuidv4: () => zu, uuidv6: () => Bu, uuidv7: () => Vu, void: () => $d, xid: () => nd, xor: () => lf }), M = c("ZodType", (e4, t2) => (w.init(e4, t2), Object.assign(e4["~standard"], { jsonSchema: { input: ul(e4, "input"), output: ul(e4, "output") } }), e4.toJSONSchema = ll(e4, {}), e4.def = t2, e4.type = t2.type, Object.defineProperty(e4, "_def", { value: t2 }), e4.check = (...n2) => {
|
|
4937
4937
|
var r2;
|
|
4938
4938
|
return e4.clone(pe(t2, { checks: [...(r2 = t2.checks) == null ? [] : r2, ...n2.map((e5) => typeof e5 == "function" ? { _zod: { check: e5, def: { check: "custom" }, onattach: [] } } : e5)] }), { parent: true });
|
|
4939
|
-
}, e4.with = e4.check, e4.clone = (t3, n2) => v(e4, t3, n2), e4.brand = () => e4, e4.register = ((t3, n2) => (t3.add(e4, n2), e4)), e4.parse = (t3, n2) =>
|
|
4939
|
+
}, e4.with = e4.check, e4.clone = (t3, n2) => v(e4, t3, n2), e4.brand = () => e4, e4.register = ((t3, n2) => (t3.add(e4, n2), e4)), e4.parse = (t3, n2) => vu(e4, t3, n2, { callee: e4.parse }), e4.safeParse = (t3, n2) => bu(e4, t3, n2), e4.parseAsync = async (t3, n2) => yu(e4, t3, n2, { callee: e4.parseAsync }), e4.safeParseAsync = async (t3, n2) => xu(e4, t3, n2), e4.spa = e4.safeParseAsync, e4.encode = (t3, n2) => Su(e4, t3, n2), e4.decode = (t3, n2) => Cu(e4, t3, n2), e4.encodeAsync = async (t3, n2) => wu(e4, t3, n2), e4.decodeAsync = async (t3, n2) => Tu(e4, t3, n2), e4.safeEncode = (t3, n2) => Eu(e4, t3, n2), e4.safeDecode = (t3, n2) => Du(e4, t3, n2), e4.safeEncodeAsync = async (t3, n2) => Ou(e4, t3, n2), e4.safeDecodeAsync = async (t3, n2) => ku(e4, t3, n2), e4.refine = (t3, n2) => e4.check(dp(t3, n2)), e4.superRefine = (t3) => e4.check(fp(t3)), e4.overwrite = (t3) => e4.check(xc(t3)), e4.optional = () => G(e4), e4.exactOptional = () => Mf(e4), e4.nullable = () => Pf(e4), e4.nullish = () => G(Pf(e4)), e4.nonoptional = (t3) => Vf(e4, t3), e4.array = () => R(e4), e4.or = (t3) => V([e4, t3]), e4.and = (t3) => pf(e4, t3), e4.transform = (t3) => Yf(e4, kf(t3)), e4.default = (t3) => Lf(e4, t3), e4.prefault = (t3) => zf(e4, t3), e4.catch = (t3) => Gf(e4, t3), e4.pipe = (t3) => Yf(e4, t3), e4.readonly = () => $f(e4), e4.describe = (t3) => {
|
|
4940
4940
|
let n2 = e4.clone();
|
|
4941
|
-
return
|
|
4941
|
+
return E.add(n2, { description: t3 }), n2;
|
|
4942
4942
|
}, Object.defineProperty(e4, "description", { get() {
|
|
4943
4943
|
var t3;
|
|
4944
|
-
return (t3 =
|
|
4944
|
+
return (t3 = E.get(e4)) == null ? void 0 : t3.description;
|
|
4945
4945
|
}, configurable: true }), e4.meta = (...t3) => {
|
|
4946
|
-
if (t3.length === 0) return
|
|
4946
|
+
if (t3.length === 0) return E.get(e4);
|
|
4947
4947
|
let n2 = e4.clone();
|
|
4948
|
-
return
|
|
4949
|
-
}, e4.isOptional = () => e4.safeParse(void 0).success, e4.isNullable = () => e4.safeParse(null).success, e4.apply = (t3) => t3(e4), e4)),
|
|
4948
|
+
return E.add(n2, t3[0]), n2;
|
|
4949
|
+
}, e4.isOptional = () => e4.safeParse(void 0).success, e4.isNullable = () => e4.safeParse(null).success, e4.apply = (t3) => t3(e4), e4)), ju = c("_ZodString", (e4, t2) => {
|
|
4950
4950
|
var n2, r2, i2;
|
|
4951
|
-
hr.init(e4, t2),
|
|
4951
|
+
hr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => fl(e4, t3, n3, r3);
|
|
4952
4952
|
let a2 = e4._zod.bag;
|
|
4953
|
-
e4.format = (n2 = a2.format) == null ? null : n2, e4.minLength = (r2 = a2.minimum) == null ? null : r2, e4.maxLength = (i2 = a2.maximum) == null ? null : i2, e4.regex = (...t3) => e4.check(
|
|
4954
|
-
}),
|
|
4955
|
-
hr.init(e4, t2),
|
|
4953
|
+
e4.format = (n2 = a2.format) == null ? null : n2, e4.minLength = (r2 = a2.minimum) == null ? null : r2, e4.maxLength = (i2 = a2.maximum) == null ? null : i2, e4.regex = (...t3) => e4.check(pc(...t3)), e4.includes = (...t3) => e4.check(gc(...t3)), e4.startsWith = (...t3) => e4.check(_c(...t3)), e4.endsWith = (...t3) => e4.check(vc(...t3)), e4.min = (...t3) => e4.check(dc(...t3)), e4.max = (...t3) => e4.check(uc(...t3)), e4.length = (...t3) => e4.check(fc(...t3)), e4.nonempty = (...t3) => e4.check(dc(1, ...t3)), e4.lowercase = (t3) => e4.check(mc(t3)), e4.uppercase = (t3) => e4.check(hc(t3)), e4.trim = () => e4.check(Cc()), e4.normalize = (...t3) => e4.check(Sc(...t3)), e4.toLowerCase = () => e4.check(wc()), e4.toUpperCase = () => e4.check(Tc()), e4.slugify = () => e4.check(Ec());
|
|
4954
|
+
}), Mu = c("ZodString", (e4, t2) => {
|
|
4955
|
+
hr.init(e4, t2), ju.init(e4, t2), e4.email = (t3) => e4.check(rs(Nu, t3)), e4.url = (t3) => e4.check(ls(Hu, t3)), e4.jwt = (t3) => e4.check(Ts(xd, t3)), e4.emoji = (t3) => e4.check(us(Gu, t3)), e4.guid = (t3) => e4.check(is(Fu, t3)), e4.uuid = (t3) => e4.check(as(Lu, t3)), e4.uuidv4 = (t3) => e4.check(os(Lu, t3)), e4.uuidv6 = (t3) => e4.check(ss(Lu, t3)), e4.uuidv7 = (t3) => e4.check(cs(Lu, t3)), e4.nanoid = (t3) => e4.check(ds(qu, t3)), e4.guid = (t3) => e4.check(is(Fu, t3)), e4.cuid = (t3) => e4.check(fs(Yu, t3)), e4.cuid2 = (t3) => e4.check(ps(Zu, t3)), e4.ulid = (t3) => e4.check(ms($u, t3)), e4.base64 = (t3) => e4.check(Ss(hd, t3)), e4.base64url = (t3) => e4.check(Cs(_d, t3)), e4.xid = (t3) => e4.check(hs(td, t3)), e4.ksuid = (t3) => e4.check(gs(rd, t3)), e4.ipv4 = (t3) => e4.check(_s(ad, t3)), e4.ipv6 = (t3) => e4.check(vs(ld, t3)), e4.cidrv4 = (t3) => e4.check(bs(dd, t3)), e4.cidrv6 = (t3) => e4.check(xs(pd, t3)), e4.e164 = (t3) => e4.check(ws(yd, t3)), e4.datetime = (t3) => e4.check(lu(t3)), e4.date = (t3) => e4.check(du(t3)), e4.time = (t3) => e4.check(pu(t3)), e4.duration = (t3) => e4.check(hu(t3));
|
|
4956
4956
|
});
|
|
4957
|
-
function
|
|
4958
|
-
return
|
|
4957
|
+
function N(e4) {
|
|
4958
|
+
return ts(Mu, e4);
|
|
4959
4959
|
}
|
|
4960
|
-
var
|
|
4961
|
-
T.init(e4, t2),
|
|
4962
|
-
}),
|
|
4963
|
-
vr.init(e4, t2),
|
|
4960
|
+
var P = c("ZodStringFormat", (e4, t2) => {
|
|
4961
|
+
T.init(e4, t2), ju.init(e4, t2);
|
|
4962
|
+
}), Nu = c("ZodEmail", (e4, t2) => {
|
|
4963
|
+
vr.init(e4, t2), P.init(e4, t2);
|
|
4964
4964
|
});
|
|
4965
|
-
function
|
|
4966
|
-
return
|
|
4965
|
+
function Pu(e4) {
|
|
4966
|
+
return rs(Nu, e4);
|
|
4967
4967
|
}
|
|
4968
|
-
var
|
|
4969
|
-
gr.init(e4, t2),
|
|
4968
|
+
var Fu = c("ZodGUID", (e4, t2) => {
|
|
4969
|
+
gr.init(e4, t2), P.init(e4, t2);
|
|
4970
4970
|
});
|
|
4971
|
-
function
|
|
4972
|
-
return
|
|
4971
|
+
function Iu(e4) {
|
|
4972
|
+
return is(Fu, e4);
|
|
4973
4973
|
}
|
|
4974
|
-
var
|
|
4975
|
-
_r.init(e4, t2),
|
|
4974
|
+
var Lu = c("ZodUUID", (e4, t2) => {
|
|
4975
|
+
_r.init(e4, t2), P.init(e4, t2);
|
|
4976
4976
|
});
|
|
4977
|
+
function Ru(e4) {
|
|
4978
|
+
return as(Lu, e4);
|
|
4979
|
+
}
|
|
4977
4980
|
function zu(e4) {
|
|
4978
|
-
return os(
|
|
4981
|
+
return os(Lu, e4);
|
|
4979
4982
|
}
|
|
4980
4983
|
function Bu(e4) {
|
|
4981
|
-
return ss(
|
|
4984
|
+
return ss(Lu, e4);
|
|
4982
4985
|
}
|
|
4983
4986
|
function Vu(e4) {
|
|
4984
|
-
return cs(
|
|
4985
|
-
}
|
|
4986
|
-
function Hu(e4) {
|
|
4987
|
-
return ls(Ru, e4);
|
|
4987
|
+
return cs(Lu, e4);
|
|
4988
4988
|
}
|
|
4989
|
-
var
|
|
4990
|
-
yr.init(e4, t2),
|
|
4989
|
+
var Hu = c("ZodURL", (e4, t2) => {
|
|
4990
|
+
yr.init(e4, t2), P.init(e4, t2);
|
|
4991
4991
|
});
|
|
4992
|
-
function
|
|
4993
|
-
return
|
|
4992
|
+
function Uu(e4) {
|
|
4993
|
+
return ls(Hu, e4);
|
|
4994
4994
|
}
|
|
4995
|
-
function
|
|
4996
|
-
return
|
|
4995
|
+
function Wu(e4) {
|
|
4996
|
+
return ls(Hu, { protocol: /^https?$/, hostname: un, ...y(e4) });
|
|
4997
4997
|
}
|
|
4998
|
-
var
|
|
4999
|
-
br.init(e4, t2),
|
|
4998
|
+
var Gu = c("ZodEmoji", (e4, t2) => {
|
|
4999
|
+
br.init(e4, t2), P.init(e4, t2);
|
|
5000
5000
|
});
|
|
5001
|
-
function
|
|
5002
|
-
return
|
|
5001
|
+
function Ku(e4) {
|
|
5002
|
+
return us(Gu, e4);
|
|
5003
5003
|
}
|
|
5004
|
-
var
|
|
5005
|
-
xr.init(e4, t2),
|
|
5004
|
+
var qu = c("ZodNanoID", (e4, t2) => {
|
|
5005
|
+
xr.init(e4, t2), P.init(e4, t2);
|
|
5006
5006
|
});
|
|
5007
|
-
function
|
|
5008
|
-
return
|
|
5007
|
+
function Ju(e4) {
|
|
5008
|
+
return ds(qu, e4);
|
|
5009
5009
|
}
|
|
5010
|
-
var
|
|
5011
|
-
Sr.init(e4, t2),
|
|
5010
|
+
var Yu = c("ZodCUID", (e4, t2) => {
|
|
5011
|
+
Sr.init(e4, t2), P.init(e4, t2);
|
|
5012
5012
|
});
|
|
5013
|
-
function
|
|
5014
|
-
return
|
|
5013
|
+
function Xu(e4) {
|
|
5014
|
+
return fs(Yu, e4);
|
|
5015
5015
|
}
|
|
5016
|
-
var
|
|
5017
|
-
Cr.init(e4, t2),
|
|
5016
|
+
var Zu = c("ZodCUID2", (e4, t2) => {
|
|
5017
|
+
Cr.init(e4, t2), P.init(e4, t2);
|
|
5018
5018
|
});
|
|
5019
|
-
function
|
|
5020
|
-
return
|
|
5019
|
+
function Qu(e4) {
|
|
5020
|
+
return ps(Zu, e4);
|
|
5021
5021
|
}
|
|
5022
|
-
var
|
|
5023
|
-
wr.init(e4, t2),
|
|
5022
|
+
var $u = c("ZodULID", (e4, t2) => {
|
|
5023
|
+
wr.init(e4, t2), P.init(e4, t2);
|
|
5024
5024
|
});
|
|
5025
|
-
function
|
|
5026
|
-
return
|
|
5025
|
+
function ed(e4) {
|
|
5026
|
+
return ms($u, e4);
|
|
5027
5027
|
}
|
|
5028
|
-
var
|
|
5029
|
-
Tr.init(e4, t2),
|
|
5028
|
+
var td = c("ZodXID", (e4, t2) => {
|
|
5029
|
+
Tr.init(e4, t2), P.init(e4, t2);
|
|
5030
5030
|
});
|
|
5031
|
-
function
|
|
5032
|
-
return
|
|
5031
|
+
function nd(e4) {
|
|
5032
|
+
return hs(td, e4);
|
|
5033
5033
|
}
|
|
5034
|
-
var
|
|
5035
|
-
Er.init(e4, t2),
|
|
5034
|
+
var rd = c("ZodKSUID", (e4, t2) => {
|
|
5035
|
+
Er.init(e4, t2), P.init(e4, t2);
|
|
5036
5036
|
});
|
|
5037
|
-
function
|
|
5038
|
-
return
|
|
5037
|
+
function id(e4) {
|
|
5038
|
+
return gs(rd, e4);
|
|
5039
5039
|
}
|
|
5040
|
-
var
|
|
5041
|
-
jr.init(e4, t2),
|
|
5040
|
+
var ad = c("ZodIPv4", (e4, t2) => {
|
|
5041
|
+
jr.init(e4, t2), P.init(e4, t2);
|
|
5042
5042
|
});
|
|
5043
|
-
function
|
|
5044
|
-
return
|
|
5043
|
+
function od(e4) {
|
|
5044
|
+
return _s(ad, e4);
|
|
5045
5045
|
}
|
|
5046
|
-
var
|
|
5047
|
-
Nr.init(e4, t2),
|
|
5046
|
+
var sd = c("ZodMAC", (e4, t2) => {
|
|
5047
|
+
Nr.init(e4, t2), P.init(e4, t2);
|
|
5048
5048
|
});
|
|
5049
|
-
function
|
|
5050
|
-
return
|
|
5049
|
+
function cd(e4) {
|
|
5050
|
+
return ys(sd, e4);
|
|
5051
5051
|
}
|
|
5052
|
-
var
|
|
5053
|
-
Mr.init(e4, t2),
|
|
5052
|
+
var ld = c("ZodIPv6", (e4, t2) => {
|
|
5053
|
+
Mr.init(e4, t2), P.init(e4, t2);
|
|
5054
5054
|
});
|
|
5055
|
-
function
|
|
5056
|
-
return
|
|
5055
|
+
function ud(e4) {
|
|
5056
|
+
return vs(ld, e4);
|
|
5057
5057
|
}
|
|
5058
|
-
var
|
|
5059
|
-
Pr.init(e4, t2),
|
|
5058
|
+
var dd = c("ZodCIDRv4", (e4, t2) => {
|
|
5059
|
+
Pr.init(e4, t2), P.init(e4, t2);
|
|
5060
5060
|
});
|
|
5061
|
-
function
|
|
5062
|
-
return
|
|
5061
|
+
function fd(e4) {
|
|
5062
|
+
return bs(dd, e4);
|
|
5063
5063
|
}
|
|
5064
|
-
var
|
|
5065
|
-
Fr.init(e4, t2),
|
|
5064
|
+
var pd = c("ZodCIDRv6", (e4, t2) => {
|
|
5065
|
+
Fr.init(e4, t2), P.init(e4, t2);
|
|
5066
5066
|
});
|
|
5067
|
-
function
|
|
5068
|
-
return
|
|
5067
|
+
function md(e4) {
|
|
5068
|
+
return xs(pd, e4);
|
|
5069
5069
|
}
|
|
5070
|
-
var
|
|
5071
|
-
Lr.init(e4, t2),
|
|
5070
|
+
var hd = c("ZodBase64", (e4, t2) => {
|
|
5071
|
+
Lr.init(e4, t2), P.init(e4, t2);
|
|
5072
5072
|
});
|
|
5073
|
-
function
|
|
5074
|
-
return
|
|
5073
|
+
function gd(e4) {
|
|
5074
|
+
return Ss(hd, e4);
|
|
5075
5075
|
}
|
|
5076
|
-
var
|
|
5077
|
-
zr.init(e4, t2),
|
|
5076
|
+
var _d = c("ZodBase64URL", (e4, t2) => {
|
|
5077
|
+
zr.init(e4, t2), P.init(e4, t2);
|
|
5078
5078
|
});
|
|
5079
|
-
function
|
|
5080
|
-
return
|
|
5079
|
+
function vd(e4) {
|
|
5080
|
+
return Cs(_d, e4);
|
|
5081
5081
|
}
|
|
5082
|
-
var
|
|
5083
|
-
Br.init(e4, t2),
|
|
5082
|
+
var yd = c("ZodE164", (e4, t2) => {
|
|
5083
|
+
Br.init(e4, t2), P.init(e4, t2);
|
|
5084
5084
|
});
|
|
5085
|
-
function
|
|
5086
|
-
return
|
|
5085
|
+
function bd(e4) {
|
|
5086
|
+
return ws(yd, e4);
|
|
5087
5087
|
}
|
|
5088
|
-
var
|
|
5089
|
-
Hr.init(e4, t2),
|
|
5088
|
+
var xd = c("ZodJWT", (e4, t2) => {
|
|
5089
|
+
Hr.init(e4, t2), P.init(e4, t2);
|
|
5090
5090
|
});
|
|
5091
|
-
function
|
|
5092
|
-
return
|
|
5091
|
+
function Sd(e4) {
|
|
5092
|
+
return Ts(xd, e4);
|
|
5093
5093
|
}
|
|
5094
|
-
var
|
|
5095
|
-
Ur.init(e4, t2),
|
|
5094
|
+
var Cd = c("ZodCustomStringFormat", (e4, t2) => {
|
|
5095
|
+
Ur.init(e4, t2), P.init(e4, t2);
|
|
5096
5096
|
});
|
|
5097
|
-
function
|
|
5098
|
-
return
|
|
5097
|
+
function wd(e4, t2, n2 = {}) {
|
|
5098
|
+
return al(Cd, e4, t2, n2);
|
|
5099
5099
|
}
|
|
5100
|
-
function
|
|
5101
|
-
return
|
|
5100
|
+
function Td(e4) {
|
|
5101
|
+
return al(Cd, "hostname", ln, e4);
|
|
5102
5102
|
}
|
|
5103
|
-
function
|
|
5104
|
-
return
|
|
5103
|
+
function Ed(e4) {
|
|
5104
|
+
return al(Cd, "hex", En, e4);
|
|
5105
5105
|
}
|
|
5106
|
-
function
|
|
5106
|
+
function Dd(e4, t2) {
|
|
5107
5107
|
var n2;
|
|
5108
5108
|
let r2 = "".concat(e4, "_").concat((n2 = t2 == null ? void 0 : t2.enc) == null ? "hex" : n2), i2 = Nt[r2];
|
|
5109
5109
|
if (!i2) throw Error("Unrecognized hash format: ".concat(r2));
|
|
5110
|
-
return
|
|
5110
|
+
return al(Cd, r2, i2, t2);
|
|
5111
5111
|
}
|
|
5112
|
-
var
|
|
5112
|
+
var Od = c("ZodNumber", (e4, t2) => {
|
|
5113
5113
|
var n2, r2, i2, a2, o2, s2, c2, l2, u2;
|
|
5114
|
-
Wr.init(e4, t2),
|
|
5114
|
+
Wr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => pl(e4, t3, n3, r3), e4.gt = (t3, n3) => e4.check(tc(t3, n3)), e4.gte = (t3, n3) => e4.check(O(t3, n3)), e4.min = (t3, n3) => e4.check(O(t3, n3)), e4.lt = (t3, n3) => e4.check(ec(t3, n3)), e4.lte = (t3, n3) => e4.check(D(t3, n3)), e4.max = (t3, n3) => e4.check(D(t3, n3)), e4.int = (t3) => e4.check(Ad(t3)), e4.safe = (t3) => e4.check(Ad(t3)), e4.positive = (t3) => e4.check(tc(0, t3)), e4.nonnegative = (t3) => e4.check(O(0, t3)), e4.negative = (t3) => e4.check(ec(0, t3)), e4.nonpositive = (t3) => e4.check(D(0, t3)), e4.multipleOf = (t3, n3) => e4.check(oc(t3, n3)), e4.step = (t3, n3) => e4.check(oc(t3, n3)), e4.finite = () => e4;
|
|
5115
5115
|
let d2 = e4._zod.bag;
|
|
5116
5116
|
e4.minValue = (n2 = Math.max((r2 = d2.minimum) == null ? -1 / 0 : r2, (i2 = d2.exclusiveMinimum) == null ? -1 / 0 : i2)) == null ? null : n2, e4.maxValue = (a2 = Math.min((o2 = d2.maximum) == null ? 1 / 0 : o2, (s2 = d2.exclusiveMaximum) == null ? 1 / 0 : s2)) == null ? null : a2, e4.isInt = ((c2 = d2.format) == null ? "" : c2).includes("int") || Number.isSafeInteger((l2 = d2.multipleOf) == null ? 0.5 : l2), e4.isFinite = true, e4.format = (u2 = d2.format) == null ? null : u2;
|
|
5117
5117
|
});
|
|
5118
|
-
function
|
|
5119
|
-
return
|
|
5118
|
+
function F(e4) {
|
|
5119
|
+
return js(Od, e4);
|
|
5120
5120
|
}
|
|
5121
|
-
var
|
|
5122
|
-
Gr.init(e4, t2),
|
|
5121
|
+
var kd = c("ZodNumberFormat", (e4, t2) => {
|
|
5122
|
+
Gr.init(e4, t2), Od.init(e4, t2);
|
|
5123
5123
|
});
|
|
5124
|
+
function Ad(e4) {
|
|
5125
|
+
return Ns(kd, e4);
|
|
5126
|
+
}
|
|
5124
5127
|
function jd(e4) {
|
|
5125
|
-
return Ps(
|
|
5128
|
+
return Ps(kd, e4);
|
|
5126
5129
|
}
|
|
5127
5130
|
function Md(e4) {
|
|
5128
|
-
return Fs(
|
|
5131
|
+
return Fs(kd, e4);
|
|
5129
5132
|
}
|
|
5130
5133
|
function Nd(e4) {
|
|
5131
|
-
return Is(
|
|
5134
|
+
return Is(kd, e4);
|
|
5132
5135
|
}
|
|
5133
5136
|
function Pd(e4) {
|
|
5134
|
-
return Ls(
|
|
5137
|
+
return Ls(kd, e4);
|
|
5135
5138
|
}
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
}
|
|
5139
|
-
var Id = c("ZodBoolean", (e4, t2) => {
|
|
5140
|
-
Kr.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => hl(e4, t3, n2, r2);
|
|
5139
|
+
var Fd = c("ZodBoolean", (e4, t2) => {
|
|
5140
|
+
Kr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => ml(e4, t3, n2, r2);
|
|
5141
5141
|
});
|
|
5142
|
-
function
|
|
5143
|
-
return
|
|
5142
|
+
function I(e4) {
|
|
5143
|
+
return Rs(Fd, e4);
|
|
5144
5144
|
}
|
|
5145
|
-
var
|
|
5145
|
+
var Id = c("ZodBigInt", (e4, t2) => {
|
|
5146
5146
|
var n2, r2, i2;
|
|
5147
|
-
qr.init(e4, t2),
|
|
5147
|
+
qr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => hl(e4, t3, n3, r3), e4.gte = (t3, n3) => e4.check(O(t3, n3)), e4.min = (t3, n3) => e4.check(O(t3, n3)), e4.gt = (t3, n3) => e4.check(tc(t3, n3)), e4.gte = (t3, n3) => e4.check(O(t3, n3)), e4.min = (t3, n3) => e4.check(O(t3, n3)), e4.lt = (t3, n3) => e4.check(ec(t3, n3)), e4.lte = (t3, n3) => e4.check(D(t3, n3)), e4.max = (t3, n3) => e4.check(D(t3, n3)), e4.positive = (t3) => e4.check(tc(BigInt(0), t3)), e4.negative = (t3) => e4.check(ec(BigInt(0), t3)), e4.nonpositive = (t3) => e4.check(D(BigInt(0), t3)), e4.nonnegative = (t3) => e4.check(O(BigInt(0), t3)), e4.multipleOf = (t3, n3) => e4.check(oc(t3, n3));
|
|
5148
5148
|
let a2 = e4._zod.bag;
|
|
5149
5149
|
e4.minValue = (n2 = a2.minimum) == null ? null : n2, e4.maxValue = (r2 = a2.maximum) == null ? null : r2, e4.format = (i2 = a2.format) == null ? null : i2;
|
|
5150
5150
|
});
|
|
5151
|
-
function
|
|
5152
|
-
return
|
|
5151
|
+
function Ld(e4) {
|
|
5152
|
+
return Bs(Id, e4);
|
|
5153
5153
|
}
|
|
5154
|
-
var
|
|
5155
|
-
Jr.init(e4, t2),
|
|
5154
|
+
var Rd = c("ZodBigIntFormat", (e4, t2) => {
|
|
5155
|
+
Jr.init(e4, t2), Id.init(e4, t2);
|
|
5156
5156
|
});
|
|
5157
|
-
function
|
|
5158
|
-
return
|
|
5157
|
+
function zd(e4) {
|
|
5158
|
+
return Hs(Rd, e4);
|
|
5159
5159
|
}
|
|
5160
|
-
function
|
|
5161
|
-
return
|
|
5160
|
+
function Bd(e4) {
|
|
5161
|
+
return Us(Rd, e4);
|
|
5162
5162
|
}
|
|
5163
|
-
var
|
|
5164
|
-
Yr.init(e4, t2),
|
|
5163
|
+
var Vd = c("ZodSymbol", (e4, t2) => {
|
|
5164
|
+
Yr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => gl(e4, t3, n2, r2);
|
|
5165
5165
|
});
|
|
5166
|
-
function
|
|
5167
|
-
return
|
|
5166
|
+
function Hd(e4) {
|
|
5167
|
+
return Ws(Vd, e4);
|
|
5168
5168
|
}
|
|
5169
|
-
var
|
|
5170
|
-
Xr.init(e4, t2),
|
|
5169
|
+
var Ud = c("ZodUndefined", (e4, t2) => {
|
|
5170
|
+
Xr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => vl(e4, t3, n2, r2);
|
|
5171
5171
|
});
|
|
5172
|
-
function
|
|
5173
|
-
return
|
|
5172
|
+
function Wd(e4) {
|
|
5173
|
+
return Gs(Ud, e4);
|
|
5174
5174
|
}
|
|
5175
|
-
var
|
|
5176
|
-
Zr.init(e4, t2),
|
|
5175
|
+
var Gd = c("ZodNull", (e4, t2) => {
|
|
5176
|
+
Zr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => _l(e4, t3, n2, r2);
|
|
5177
5177
|
});
|
|
5178
|
-
function
|
|
5179
|
-
return
|
|
5178
|
+
function Kd(e4) {
|
|
5179
|
+
return Ks(Gd, e4);
|
|
5180
5180
|
}
|
|
5181
|
-
var
|
|
5182
|
-
Qr.init(e4, t2),
|
|
5181
|
+
var qd = c("ZodAny", (e4, t2) => {
|
|
5182
|
+
Qr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (e5, t3, n2) => void 0;
|
|
5183
5183
|
});
|
|
5184
|
-
function
|
|
5185
|
-
return
|
|
5184
|
+
function Jd() {
|
|
5185
|
+
return qs(qd);
|
|
5186
5186
|
}
|
|
5187
|
-
var
|
|
5188
|
-
$r.init(e4, t2),
|
|
5187
|
+
var Yd = c("ZodUnknown", (e4, t2) => {
|
|
5188
|
+
$r.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (e5, t3, n2) => void 0;
|
|
5189
5189
|
});
|
|
5190
|
-
function
|
|
5191
|
-
return
|
|
5190
|
+
function L() {
|
|
5191
|
+
return Js(Yd);
|
|
5192
5192
|
}
|
|
5193
|
-
var
|
|
5194
|
-
ei.init(e4, t2),
|
|
5193
|
+
var Xd = c("ZodNever", (e4, t2) => {
|
|
5194
|
+
ei.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => bl(e4, t3, n2, r2);
|
|
5195
5195
|
});
|
|
5196
|
-
function
|
|
5197
|
-
return
|
|
5196
|
+
function Zd(e4) {
|
|
5197
|
+
return Ys(Xd, e4);
|
|
5198
5198
|
}
|
|
5199
|
-
var
|
|
5200
|
-
ti.init(e4, t2),
|
|
5199
|
+
var Qd = c("ZodVoid", (e4, t2) => {
|
|
5200
|
+
ti.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => yl(e4, t3, n2, r2);
|
|
5201
5201
|
});
|
|
5202
|
-
function
|
|
5203
|
-
return
|
|
5202
|
+
function $d(e4) {
|
|
5203
|
+
return Xs(Qd, e4);
|
|
5204
5204
|
}
|
|
5205
|
-
var
|
|
5206
|
-
ni.init(e4, t2),
|
|
5205
|
+
var ef = c("ZodDate", (e4, t2) => {
|
|
5206
|
+
ni.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r2) => Cl(e4, t3, n3, r2), e4.min = (t3, n3) => e4.check(O(t3, n3)), e4.max = (t3, n3) => e4.check(D(t3, n3));
|
|
5207
5207
|
let n2 = e4._zod.bag;
|
|
5208
5208
|
e4.minDate = n2.minimum ? new Date(n2.minimum) : null, e4.maxDate = n2.maximum ? new Date(n2.maximum) : null;
|
|
5209
5209
|
});
|
|
5210
|
-
function
|
|
5211
|
-
return
|
|
5210
|
+
function tf(e4) {
|
|
5211
|
+
return Zs(ef, e4);
|
|
5212
5212
|
}
|
|
5213
|
-
var
|
|
5214
|
-
ii.init(e4, t2),
|
|
5213
|
+
var nf = c("ZodArray", (e4, t2) => {
|
|
5214
|
+
ii.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Fl(e4, t3, n2, r2), e4.element = t2.element, e4.min = (t3, n2) => e4.check(dc(t3, n2)), e4.nonempty = (t3) => e4.check(dc(1, t3)), e4.max = (t3, n2) => e4.check(uc(t3, n2)), e4.length = (t3, n2) => e4.check(fc(t3, n2)), e4.unwrap = () => e4.element;
|
|
5215
5215
|
});
|
|
5216
|
-
function
|
|
5217
|
-
return
|
|
5216
|
+
function R(e4, t2) {
|
|
5217
|
+
return Dc(nf, e4, t2);
|
|
5218
5218
|
}
|
|
5219
|
-
function
|
|
5219
|
+
function rf(e4) {
|
|
5220
5220
|
let t2 = e4._zod.def.shape;
|
|
5221
|
-
return
|
|
5221
|
+
return U(Object.keys(t2));
|
|
5222
5222
|
}
|
|
5223
|
-
var
|
|
5224
|
-
li.init(e4, t2),
|
|
5223
|
+
var af = c("ZodObject", (e4, t2) => {
|
|
5224
|
+
li.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Il(e4, t3, n2, r2), _(e4, "shape", () => t2.shape), e4.keyof = () => U(Object.keys(e4._zod.def.shape)), e4.catchall = (t3) => e4.clone({ ...e4._zod.def, catchall: t3 }), e4.passthrough = () => e4.clone({ ...e4._zod.def, catchall: L() }), e4.loose = () => e4.clone({ ...e4._zod.def, catchall: L() }), e4.strict = () => e4.clone({ ...e4._zod.def, catchall: Zd() }), e4.strip = () => e4.clone({ ...e4._zod.def, catchall: void 0 }), e4.extend = (t3) => Ie(e4, t3), e4.safeExtend = (t3) => Le(e4, t3), e4.merge = (t3) => Re(e4, t3), e4.pick = (t3) => Pe(e4, t3), e4.omit = (t3) => Fe(e4, t3), e4.partial = (...t3) => ze(Af, e4, t3[0]), e4.required = (...t3) => Be(Bf, e4, t3[0]);
|
|
5225
5225
|
});
|
|
5226
|
-
function
|
|
5227
|
-
return new
|
|
5226
|
+
function z(e4, t2) {
|
|
5227
|
+
return new af({ type: "object", shape: e4 == null ? {} : e4, ...y(t2) });
|
|
5228
5228
|
}
|
|
5229
|
-
function
|
|
5230
|
-
return new
|
|
5229
|
+
function of(e4, t2) {
|
|
5230
|
+
return new af({ type: "object", shape: e4, catchall: Zd(), ...y(t2) });
|
|
5231
5231
|
}
|
|
5232
|
-
function
|
|
5233
|
-
return new
|
|
5232
|
+
function B(e4, t2) {
|
|
5233
|
+
return new af({ type: "object", shape: e4, catchall: L(), ...y(t2) });
|
|
5234
5234
|
}
|
|
5235
|
-
var
|
|
5236
|
-
di.init(e4, t2),
|
|
5235
|
+
var sf = c("ZodUnion", (e4, t2) => {
|
|
5236
|
+
di.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ll(e4, t3, n2, r2), e4.options = t2.options;
|
|
5237
5237
|
});
|
|
5238
|
-
function
|
|
5239
|
-
return new
|
|
5238
|
+
function V(e4, t2) {
|
|
5239
|
+
return new sf({ type: "union", options: e4, ...y(t2) });
|
|
5240
5240
|
}
|
|
5241
|
-
var
|
|
5242
|
-
|
|
5241
|
+
var cf = c("ZodXor", (e4, t2) => {
|
|
5242
|
+
sf.init(e4, t2), pi.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ll(e4, t3, n2, r2), e4.options = t2.options;
|
|
5243
5243
|
});
|
|
5244
|
-
function
|
|
5245
|
-
return new
|
|
5244
|
+
function lf(e4, t2) {
|
|
5245
|
+
return new cf({ type: "union", options: e4, inclusive: false, ...y(t2) });
|
|
5246
5246
|
}
|
|
5247
|
-
var
|
|
5248
|
-
|
|
5247
|
+
var uf = c("ZodDiscriminatedUnion", (e4, t2) => {
|
|
5248
|
+
sf.init(e4, t2), mi.init(e4, t2);
|
|
5249
5249
|
});
|
|
5250
|
-
function
|
|
5251
|
-
return new
|
|
5250
|
+
function df(e4, t2, n2) {
|
|
5251
|
+
return new uf({ type: "union", options: t2, discriminator: e4, ...y(n2) });
|
|
5252
5252
|
}
|
|
5253
|
-
var
|
|
5254
|
-
hi.init(e4, t2),
|
|
5253
|
+
var ff = c("ZodIntersection", (e4, t2) => {
|
|
5254
|
+
hi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Rl(e4, t3, n2, r2);
|
|
5255
5255
|
});
|
|
5256
|
-
function
|
|
5257
|
-
return new
|
|
5256
|
+
function pf(e4, t2) {
|
|
5257
|
+
return new ff({ type: "intersection", left: e4, right: t2 });
|
|
5258
5258
|
}
|
|
5259
|
-
var
|
|
5260
|
-
vi.init(e4, t2),
|
|
5259
|
+
var mf = c("ZodTuple", (e4, t2) => {
|
|
5260
|
+
vi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => zl(e4, t3, n2, r2), e4.rest = (t3) => e4.clone({ ...e4._zod.def, rest: t3 });
|
|
5261
5261
|
});
|
|
5262
|
-
function
|
|
5262
|
+
function hf(e4, t2, n2) {
|
|
5263
5263
|
let r2 = t2 instanceof w;
|
|
5264
|
-
return new
|
|
5264
|
+
return new mf({ type: "tuple", items: e4, rest: r2 ? t2 : null, ...y(r2 ? n2 : t2) });
|
|
5265
5265
|
}
|
|
5266
|
-
var
|
|
5267
|
-
bi.init(e4, t2),
|
|
5266
|
+
var gf = c("ZodRecord", (e4, t2) => {
|
|
5267
|
+
bi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Bl(e4, t3, n2, r2), e4.keyType = t2.keyType, e4.valueType = t2.valueType;
|
|
5268
5268
|
});
|
|
5269
|
-
function
|
|
5270
|
-
return new
|
|
5269
|
+
function H(e4, t2, n2) {
|
|
5270
|
+
return new gf({ type: "record", keyType: e4, valueType: t2, ...y(n2) });
|
|
5271
5271
|
}
|
|
5272
|
-
function
|
|
5272
|
+
function _f(e4, t2, n2) {
|
|
5273
5273
|
let r2 = v(e4);
|
|
5274
|
-
return r2._zod.values = void 0, new
|
|
5274
|
+
return r2._zod.values = void 0, new gf({ type: "record", keyType: r2, valueType: t2, ...y(n2) });
|
|
5275
5275
|
}
|
|
5276
|
-
function
|
|
5277
|
-
return new
|
|
5276
|
+
function vf(e4, t2, n2) {
|
|
5277
|
+
return new gf({ type: "record", keyType: e4, valueType: t2, mode: "loose", ...y(n2) });
|
|
5278
5278
|
}
|
|
5279
|
-
var
|
|
5280
|
-
xi.init(e4, t2),
|
|
5279
|
+
var yf = c("ZodMap", (e4, t2) => {
|
|
5280
|
+
xi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Nl(e4, t3, n2, r2), e4.keyType = t2.keyType, e4.valueType = t2.valueType, e4.min = (...t3) => e4.check(cc(...t3)), e4.nonempty = (t3) => e4.check(cc(1, t3)), e4.max = (...t3) => e4.check(sc(...t3)), e4.size = (...t3) => e4.check(lc(...t3));
|
|
5281
5281
|
});
|
|
5282
|
-
function
|
|
5283
|
-
return new
|
|
5282
|
+
function bf(e4, t2, n2) {
|
|
5283
|
+
return new yf({ type: "map", keyType: e4, valueType: t2, ...y(n2) });
|
|
5284
5284
|
}
|
|
5285
|
-
var
|
|
5286
|
-
Ci.init(e4, t2),
|
|
5285
|
+
var xf = c("ZodSet", (e4, t2) => {
|
|
5286
|
+
Ci.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Pl(e4, t3, n2, r2), e4.min = (...t3) => e4.check(cc(...t3)), e4.nonempty = (t3) => e4.check(cc(1, t3)), e4.max = (...t3) => e4.check(sc(...t3)), e4.size = (...t3) => e4.check(lc(...t3));
|
|
5287
5287
|
});
|
|
5288
|
-
function
|
|
5289
|
-
return new
|
|
5288
|
+
function Sf(e4, t2) {
|
|
5289
|
+
return new xf({ type: "set", valueType: e4, ...y(t2) });
|
|
5290
5290
|
}
|
|
5291
|
-
var
|
|
5292
|
-
Ti.init(e4, t2),
|
|
5291
|
+
var Cf = c("ZodEnum", (e4, t2) => {
|
|
5292
|
+
Ti.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r2) => wl(e4, t3, n3, r2), e4.enum = t2.entries, e4.options = Object.values(t2.entries);
|
|
5293
5293
|
let n2 = new Set(Object.keys(t2.entries));
|
|
5294
5294
|
e4.extract = (e5, r2) => {
|
|
5295
5295
|
let i2 = {};
|
|
5296
5296
|
for (let r3 of e5) if (n2.has(r3)) i2[r3] = t2.entries[r3];
|
|
5297
5297
|
else throw Error("Key ".concat(r3, " not found in enum"));
|
|
5298
|
-
return new
|
|
5298
|
+
return new Cf({ ...t2, checks: [], ...y(r2), entries: i2 });
|
|
5299
5299
|
}, e4.exclude = (e5, r2) => {
|
|
5300
5300
|
let i2 = { ...t2.entries };
|
|
5301
5301
|
for (let t3 of e5) if (n2.has(t3)) delete i2[t3];
|
|
5302
5302
|
else throw Error("Key ".concat(t3, " not found in enum"));
|
|
5303
|
-
return new
|
|
5303
|
+
return new Cf({ ...t2, checks: [], ...y(r2), entries: i2 });
|
|
5304
5304
|
};
|
|
5305
5305
|
});
|
|
5306
|
-
function
|
|
5307
|
-
return new
|
|
5306
|
+
function U(e4, t2) {
|
|
5307
|
+
return new Cf({ type: "enum", entries: Array.isArray(e4) ? Object.fromEntries(e4.map((e5) => [e5, e5])) : e4, ...y(t2) });
|
|
5308
5308
|
}
|
|
5309
|
-
function
|
|
5310
|
-
return new
|
|
5309
|
+
function wf(e4, t2) {
|
|
5310
|
+
return new Cf({ type: "enum", entries: e4, ...y(t2) });
|
|
5311
5311
|
}
|
|
5312
|
-
var
|
|
5313
|
-
Ei.init(e4, t2),
|
|
5312
|
+
var Tf = c("ZodLiteral", (e4, t2) => {
|
|
5313
|
+
Ei.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Tl(e4, t3, n2, r2), e4.values = new Set(t2.values), Object.defineProperty(e4, "value", { get() {
|
|
5314
5314
|
if (t2.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
5315
5315
|
return t2.values[0];
|
|
5316
5316
|
} });
|
|
5317
5317
|
});
|
|
5318
|
-
function
|
|
5319
|
-
return new
|
|
5318
|
+
function W(e4, t2) {
|
|
5319
|
+
return new Tf({ type: "literal", values: Array.isArray(e4) ? e4 : [e4], ...y(t2) });
|
|
5320
5320
|
}
|
|
5321
|
-
var
|
|
5322
|
-
Di.init(e4, t2),
|
|
5321
|
+
var Ef = c("ZodFile", (e4, t2) => {
|
|
5322
|
+
Di.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ol(e4, t3, n2, r2), e4.min = (t3, n2) => e4.check(cc(t3, n2)), e4.max = (t3, n2) => e4.check(sc(t3, n2)), e4.mime = (t3, n2) => e4.check(bc(Array.isArray(t3) ? t3 : [t3], n2));
|
|
5323
5323
|
});
|
|
5324
|
-
function
|
|
5325
|
-
return
|
|
5324
|
+
function Df(e4) {
|
|
5325
|
+
return zc(Ef, e4);
|
|
5326
5326
|
}
|
|
5327
|
-
var
|
|
5328
|
-
Oi.init(e4, t2),
|
|
5327
|
+
var Of = c("ZodTransform", (e4, t2) => {
|
|
5328
|
+
Oi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ml(e4, t3, n2, r2), e4._zod.parse = (n2, r2) => {
|
|
5329
5329
|
if (r2.direction === "backward") throw new d(e4.constructor.name);
|
|
5330
5330
|
n2.addIssue = (r3) => {
|
|
5331
5331
|
if (typeof r3 == "string") n2.issues.push(qe(r3, n2.value, t2));
|
|
@@ -5338,132 +5338,132 @@ var kf = c("ZodTransform", (e4, t2) => {
|
|
|
5338
5338
|
return i2 instanceof Promise ? i2.then((e5) => (n2.value = e5, n2)) : (n2.value = i2, n2);
|
|
5339
5339
|
};
|
|
5340
5340
|
});
|
|
5341
|
-
function
|
|
5342
|
-
return new
|
|
5341
|
+
function kf(e4) {
|
|
5342
|
+
return new Of({ type: "transform", transform: e4 });
|
|
5343
5343
|
}
|
|
5344
|
-
var
|
|
5345
|
-
Ai.init(e4, t2),
|
|
5344
|
+
var Af = c("ZodOptional", (e4, t2) => {
|
|
5345
|
+
Ai.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Yl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
|
|
5346
5346
|
});
|
|
5347
|
-
function
|
|
5348
|
-
return new
|
|
5347
|
+
function G(e4) {
|
|
5348
|
+
return new Af({ type: "optional", innerType: e4 });
|
|
5349
5349
|
}
|
|
5350
|
-
var
|
|
5351
|
-
ji.init(e4, t2),
|
|
5350
|
+
var jf = c("ZodExactOptional", (e4, t2) => {
|
|
5351
|
+
ji.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Yl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
|
|
5352
5352
|
});
|
|
5353
|
-
function
|
|
5354
|
-
return new
|
|
5353
|
+
function Mf(e4) {
|
|
5354
|
+
return new jf({ type: "optional", innerType: e4 });
|
|
5355
5355
|
}
|
|
5356
|
-
var
|
|
5357
|
-
Mi.init(e4, t2),
|
|
5356
|
+
var Nf = c("ZodNullable", (e4, t2) => {
|
|
5357
|
+
Mi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Vl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
|
|
5358
5358
|
});
|
|
5359
|
-
function
|
|
5360
|
-
return new
|
|
5359
|
+
function Pf(e4) {
|
|
5360
|
+
return new Nf({ type: "nullable", innerType: e4 });
|
|
5361
5361
|
}
|
|
5362
|
-
function
|
|
5363
|
-
return
|
|
5362
|
+
function Ff(e4) {
|
|
5363
|
+
return G(Pf(e4));
|
|
5364
5364
|
}
|
|
5365
|
-
var
|
|
5366
|
-
Ni.init(e4, t2),
|
|
5365
|
+
var If = c("ZodDefault", (e4, t2) => {
|
|
5366
|
+
Ni.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ul(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType, e4.removeDefault = e4.unwrap;
|
|
5367
5367
|
});
|
|
5368
|
-
function
|
|
5369
|
-
return new
|
|
5368
|
+
function Lf(e4, t2) {
|
|
5369
|
+
return new If({ type: "default", innerType: e4, get defaultValue() {
|
|
5370
5370
|
return typeof t2 == "function" ? t2() : we(t2);
|
|
5371
5371
|
} });
|
|
5372
5372
|
}
|
|
5373
|
-
var
|
|
5374
|
-
Fi.init(e4, t2),
|
|
5373
|
+
var Rf = c("ZodPrefault", (e4, t2) => {
|
|
5374
|
+
Fi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Wl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
|
|
5375
5375
|
});
|
|
5376
|
-
function
|
|
5377
|
-
return new
|
|
5376
|
+
function zf(e4, t2) {
|
|
5377
|
+
return new Rf({ type: "prefault", innerType: e4, get defaultValue() {
|
|
5378
5378
|
return typeof t2 == "function" ? t2() : we(t2);
|
|
5379
5379
|
} });
|
|
5380
5380
|
}
|
|
5381
|
-
var
|
|
5382
|
-
Ii.init(e4, t2),
|
|
5381
|
+
var Bf = c("ZodNonOptional", (e4, t2) => {
|
|
5382
|
+
Ii.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Hl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
|
|
5383
5383
|
});
|
|
5384
|
-
function
|
|
5385
|
-
return new
|
|
5384
|
+
function Vf(e4, t2) {
|
|
5385
|
+
return new Bf({ type: "nonoptional", innerType: e4, ...y(t2) });
|
|
5386
5386
|
}
|
|
5387
|
-
var
|
|
5388
|
-
Ri.init(e4, t2),
|
|
5387
|
+
var Hf = c("ZodSuccess", (e4, t2) => {
|
|
5388
|
+
Ri.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => kl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
|
|
5389
5389
|
});
|
|
5390
|
-
function
|
|
5391
|
-
return new
|
|
5390
|
+
function Uf(e4) {
|
|
5391
|
+
return new Hf({ type: "success", innerType: e4 });
|
|
5392
5392
|
}
|
|
5393
|
-
var
|
|
5394
|
-
zi.init(e4, t2),
|
|
5393
|
+
var Wf = c("ZodCatch", (e4, t2) => {
|
|
5394
|
+
zi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Gl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType, e4.removeCatch = e4.unwrap;
|
|
5395
5395
|
});
|
|
5396
|
-
function
|
|
5397
|
-
return new
|
|
5396
|
+
function Gf(e4, t2) {
|
|
5397
|
+
return new Wf({ type: "catch", innerType: e4, catchValue: typeof t2 == "function" ? t2 : () => t2 });
|
|
5398
5398
|
}
|
|
5399
|
-
var
|
|
5400
|
-
Bi.init(e4, t2),
|
|
5399
|
+
var Kf = c("ZodNaN", (e4, t2) => {
|
|
5400
|
+
Bi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => El(e4, t3, n2, r2);
|
|
5401
5401
|
});
|
|
5402
|
-
function
|
|
5403
|
-
return
|
|
5402
|
+
function qf(e4) {
|
|
5403
|
+
return $s(Kf, e4);
|
|
5404
5404
|
}
|
|
5405
|
-
var
|
|
5406
|
-
Vi.init(e4, t2),
|
|
5405
|
+
var Jf = c("ZodPipe", (e4, t2) => {
|
|
5406
|
+
Vi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Kl(e4, t3, n2, r2), e4.in = t2.in, e4.out = t2.out;
|
|
5407
5407
|
});
|
|
5408
|
-
function
|
|
5409
|
-
return new
|
|
5408
|
+
function Yf(e4, t2) {
|
|
5409
|
+
return new Jf({ type: "pipe", in: e4, out: t2 });
|
|
5410
5410
|
}
|
|
5411
|
-
var
|
|
5412
|
-
|
|
5411
|
+
var Xf = c("ZodCodec", (e4, t2) => {
|
|
5412
|
+
Jf.init(e4, t2), Ui.init(e4, t2);
|
|
5413
5413
|
});
|
|
5414
|
-
function
|
|
5415
|
-
return new
|
|
5414
|
+
function Zf(e4, t2, n2) {
|
|
5415
|
+
return new Xf({ type: "pipe", in: e4, out: t2, transform: n2.decode, reverseTransform: n2.encode });
|
|
5416
5416
|
}
|
|
5417
|
-
var
|
|
5418
|
-
Ki.init(e4, t2),
|
|
5417
|
+
var Qf = c("ZodReadonly", (e4, t2) => {
|
|
5418
|
+
Ki.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => ql(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
|
|
5419
5419
|
});
|
|
5420
|
-
function
|
|
5421
|
-
return new
|
|
5420
|
+
function $f(e4) {
|
|
5421
|
+
return new Qf({ type: "readonly", innerType: e4 });
|
|
5422
5422
|
}
|
|
5423
|
-
var
|
|
5424
|
-
Ji.init(e4, t2),
|
|
5423
|
+
var ep = c("ZodTemplateLiteral", (e4, t2) => {
|
|
5424
|
+
Ji.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Dl(e4, t3, n2, r2);
|
|
5425
5425
|
});
|
|
5426
|
-
function
|
|
5427
|
-
return new
|
|
5426
|
+
function tp(e4, t2) {
|
|
5427
|
+
return new ep({ type: "template_literal", parts: e4, ...y(t2) });
|
|
5428
5428
|
}
|
|
5429
|
-
var
|
|
5430
|
-
Zi.init(e4, t2),
|
|
5429
|
+
var np = c("ZodLazy", (e4, t2) => {
|
|
5430
|
+
Zi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Xl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.getter();
|
|
5431
5431
|
});
|
|
5432
|
-
function
|
|
5433
|
-
return new
|
|
5432
|
+
function rp(e4) {
|
|
5433
|
+
return new np({ type: "lazy", getter: e4 });
|
|
5434
5434
|
}
|
|
5435
|
-
var
|
|
5436
|
-
Xi.init(e4, t2),
|
|
5435
|
+
var ip = c("ZodPromise", (e4, t2) => {
|
|
5436
|
+
Xi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Jl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
|
|
5437
5437
|
});
|
|
5438
|
-
function
|
|
5439
|
-
return new
|
|
5438
|
+
function ap(e4) {
|
|
5439
|
+
return new ip({ type: "promise", innerType: e4 });
|
|
5440
5440
|
}
|
|
5441
|
-
var
|
|
5442
|
-
Yi.init(e4, t2),
|
|
5441
|
+
var op = c("ZodFunction", (e4, t2) => {
|
|
5442
|
+
Yi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => jl(e4, t3, n2, r2);
|
|
5443
5443
|
});
|
|
5444
|
-
function
|
|
5444
|
+
function sp(e4) {
|
|
5445
5445
|
var t2, n2;
|
|
5446
|
-
return new
|
|
5446
|
+
return new op({ type: "function", input: Array.isArray(e4 == null ? void 0 : e4.input) ? hf(e4 == null ? void 0 : e4.input) : (t2 = e4 == null ? void 0 : e4.input) == null ? R(L()) : t2, output: (n2 = e4 == null ? void 0 : e4.output) == null ? L() : n2 });
|
|
5447
5447
|
}
|
|
5448
|
-
var
|
|
5449
|
-
Qi.init(e4, t2),
|
|
5448
|
+
var cp = c("ZodCustom", (e4, t2) => {
|
|
5449
|
+
Qi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Al(e4, t3, n2, r2);
|
|
5450
5450
|
});
|
|
5451
|
-
function
|
|
5451
|
+
function lp(e4) {
|
|
5452
5452
|
let t2 = new C({ check: "custom" });
|
|
5453
5453
|
return t2._zod.check = e4, t2;
|
|
5454
5454
|
}
|
|
5455
|
-
function
|
|
5456
|
-
return
|
|
5455
|
+
function up(e4, t2) {
|
|
5456
|
+
return Qc(cp, e4 == null ? (() => true) : e4, t2);
|
|
5457
5457
|
}
|
|
5458
|
-
function
|
|
5459
|
-
return
|
|
5458
|
+
function dp(e4, t2 = {}) {
|
|
5459
|
+
return $c(cp, e4, t2);
|
|
5460
5460
|
}
|
|
5461
|
-
function
|
|
5462
|
-
return
|
|
5461
|
+
function fp(e4) {
|
|
5462
|
+
return el(e4);
|
|
5463
5463
|
}
|
|
5464
|
-
var
|
|
5465
|
-
function
|
|
5466
|
-
let n2 = new
|
|
5464
|
+
var pp = nl, mp = rl;
|
|
5465
|
+
function hp(e4, t2 = {}) {
|
|
5466
|
+
let n2 = new cp({ type: "custom", check: "custom", fn: (t3) => t3 instanceof e4, abort: true, ...y(t2) });
|
|
5467
5467
|
return n2._zod.bag.Class = e4, n2._zod.check = (t3) => {
|
|
5468
5468
|
if (!(t3.value instanceof e4)) {
|
|
5469
5469
|
var r2;
|
|
@@ -5471,30 +5471,30 @@ function gp(e4, t2 = {}) {
|
|
|
5471
5471
|
}
|
|
5472
5472
|
}, n2;
|
|
5473
5473
|
}
|
|
5474
|
-
var
|
|
5475
|
-
function
|
|
5476
|
-
let t2 =
|
|
5474
|
+
var gp = (...e4) => il({ Codec: Xf, Boolean: Fd, String: Mu }, ...e4);
|
|
5475
|
+
function _p(e4) {
|
|
5476
|
+
let t2 = rp(() => V([N(e4), F(), I(), Kd(), R(t2), H(N(), t2)]));
|
|
5477
5477
|
return t2;
|
|
5478
5478
|
}
|
|
5479
|
-
function
|
|
5480
|
-
return
|
|
5479
|
+
function vp(e4, t2) {
|
|
5480
|
+
return Yf(kf(e4), t2);
|
|
5481
5481
|
}
|
|
5482
|
-
var
|
|
5483
|
-
function
|
|
5482
|
+
var yp = { 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" };
|
|
5483
|
+
function bp(e4) {
|
|
5484
5484
|
p({ customError: e4 });
|
|
5485
5485
|
}
|
|
5486
|
-
function
|
|
5486
|
+
function xp() {
|
|
5487
5487
|
return p().customError;
|
|
5488
5488
|
}
|
|
5489
|
-
var
|
|
5489
|
+
var Sp;
|
|
5490
5490
|
/* @__PURE__ */ (function(e4) {
|
|
5491
|
-
})(
|
|
5492
|
-
var
|
|
5493
|
-
function
|
|
5491
|
+
})(Sp || (Sp = {}));
|
|
5492
|
+
var K = { ...Au, ...ou, iso: su }, Cp = 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("."));
|
|
5493
|
+
function wp(e4, t2) {
|
|
5494
5494
|
let n2 = e4.$schema;
|
|
5495
5495
|
return n2 === "https://json-schema.org/draft/2020-12/schema" ? "draft-2020-12" : n2 === "http://json-schema.org/draft-07/schema#" ? "draft-7" : n2 === "http://json-schema.org/draft-04/schema#" ? "draft-4" : t2 == null ? "draft-2020-12" : t2;
|
|
5496
5496
|
}
|
|
5497
|
-
function
|
|
5497
|
+
function Tp(e4, t2) {
|
|
5498
5498
|
if (!e4.startsWith("#")) throw Error("External $ref is not supported, only local refs (#/...) are allowed");
|
|
5499
5499
|
let n2 = e4.slice(1).split("/").filter(Boolean);
|
|
5500
5500
|
if (n2.length === 0) return t2.rootSchema;
|
|
@@ -5506,9 +5506,9 @@ function Ep(e4, t2) {
|
|
|
5506
5506
|
}
|
|
5507
5507
|
throw Error("Reference not found: ".concat(e4));
|
|
5508
5508
|
}
|
|
5509
|
-
function
|
|
5509
|
+
function Ep(e4, t2) {
|
|
5510
5510
|
if (e4.not !== void 0) {
|
|
5511
|
-
if (typeof e4.not == "object" && Object.keys(e4.not).length === 0) return
|
|
5511
|
+
if (typeof e4.not == "object" && Object.keys(e4.not).length === 0) return K.never();
|
|
5512
5512
|
throw Error("not is not supported in Zod (except { not: {} } for never)");
|
|
5513
5513
|
}
|
|
5514
5514
|
if (e4.unevaluatedItems !== void 0) throw Error("unevaluatedItems is not supported");
|
|
@@ -5518,101 +5518,101 @@ function Dp(e4, t2) {
|
|
|
5518
5518
|
if (e4.$ref) {
|
|
5519
5519
|
let n3 = e4.$ref;
|
|
5520
5520
|
if (t2.refs.has(n3)) return t2.refs.get(n3);
|
|
5521
|
-
if (t2.processing.has(n3)) return
|
|
5521
|
+
if (t2.processing.has(n3)) return K.lazy(() => {
|
|
5522
5522
|
if (!t2.refs.has(n3)) throw Error("Circular reference not resolved: ".concat(n3));
|
|
5523
5523
|
return t2.refs.get(n3);
|
|
5524
5524
|
});
|
|
5525
5525
|
t2.processing.add(n3);
|
|
5526
|
-
let r3 =
|
|
5526
|
+
let r3 = q(Tp(n3, t2), t2);
|
|
5527
5527
|
return t2.refs.set(n3, r3), t2.processing.delete(n3), r3;
|
|
5528
5528
|
}
|
|
5529
5529
|
if (e4.enum !== void 0) {
|
|
5530
5530
|
let n3 = e4.enum;
|
|
5531
|
-
if (t2.version === "openapi-3.0" && e4.nullable === true && n3.length === 1 && n3[0] === null) return
|
|
5532
|
-
if (n3.length === 0) return
|
|
5533
|
-
if (n3.length === 1) return
|
|
5534
|
-
if (n3.every((e5) => typeof e5 == "string")) return
|
|
5535
|
-
let r3 = n3.map((e5) =>
|
|
5536
|
-
return r3.length < 2 ? r3[0] :
|
|
5537
|
-
}
|
|
5538
|
-
if (e4.const !== void 0) return
|
|
5531
|
+
if (t2.version === "openapi-3.0" && e4.nullable === true && n3.length === 1 && n3[0] === null) return K.null();
|
|
5532
|
+
if (n3.length === 0) return K.never();
|
|
5533
|
+
if (n3.length === 1) return K.literal(n3[0]);
|
|
5534
|
+
if (n3.every((e5) => typeof e5 == "string")) return K.enum(n3);
|
|
5535
|
+
let r3 = n3.map((e5) => K.literal(e5));
|
|
5536
|
+
return r3.length < 2 ? r3[0] : K.union([r3[0], r3[1], ...r3.slice(2)]);
|
|
5537
|
+
}
|
|
5538
|
+
if (e4.const !== void 0) return K.literal(e4.const);
|
|
5539
5539
|
let n2 = e4.type;
|
|
5540
5540
|
if (Array.isArray(n2)) {
|
|
5541
|
-
let r3 = n2.map((n3) =>
|
|
5542
|
-
return r3.length === 0 ?
|
|
5541
|
+
let r3 = n2.map((n3) => Ep({ ...e4, type: n3 }, t2));
|
|
5542
|
+
return r3.length === 0 ? K.never() : r3.length === 1 ? r3[0] : K.union(r3);
|
|
5543
5543
|
}
|
|
5544
|
-
if (!n2) return
|
|
5544
|
+
if (!n2) return K.any();
|
|
5545
5545
|
let r2;
|
|
5546
5546
|
switch (n2) {
|
|
5547
5547
|
case "string": {
|
|
5548
|
-
let t3 =
|
|
5548
|
+
let t3 = K.string();
|
|
5549
5549
|
if (e4.format) {
|
|
5550
5550
|
let n3 = e4.format;
|
|
5551
|
-
n3 === "email" ? t3 = t3.check(
|
|
5551
|
+
n3 === "email" ? t3 = t3.check(K.email()) : n3 === "uri" || n3 === "uri-reference" ? t3 = t3.check(K.url()) : n3 === "uuid" || n3 === "guid" ? t3 = t3.check(K.uuid()) : n3 === "date-time" ? t3 = t3.check(K.iso.datetime()) : n3 === "date" ? t3 = t3.check(K.iso.date()) : n3 === "time" ? t3 = t3.check(K.iso.time()) : n3 === "duration" ? t3 = t3.check(K.iso.duration()) : n3 === "ipv4" ? t3 = t3.check(K.ipv4()) : n3 === "ipv6" ? t3 = t3.check(K.ipv6()) : n3 === "mac" ? t3 = t3.check(K.mac()) : n3 === "cidr" ? t3 = t3.check(K.cidrv4()) : n3 === "cidr-v6" ? t3 = t3.check(K.cidrv6()) : n3 === "base64" ? t3 = t3.check(K.base64()) : n3 === "base64url" ? t3 = t3.check(K.base64url()) : n3 === "e164" ? t3 = t3.check(K.e164()) : n3 === "jwt" ? t3 = t3.check(K.jwt()) : n3 === "emoji" ? t3 = t3.check(K.emoji()) : n3 === "nanoid" ? t3 = t3.check(K.nanoid()) : n3 === "cuid" ? t3 = t3.check(K.cuid()) : n3 === "cuid2" ? t3 = t3.check(K.cuid2()) : n3 === "ulid" ? t3 = t3.check(K.ulid()) : n3 === "xid" ? t3 = t3.check(K.xid()) : n3 === "ksuid" && (t3 = t3.check(K.ksuid()));
|
|
5552
5552
|
}
|
|
5553
5553
|
typeof e4.minLength == "number" && (t3 = t3.min(e4.minLength)), typeof e4.maxLength == "number" && (t3 = t3.max(e4.maxLength)), e4.pattern && (t3 = t3.regex(new RegExp(e4.pattern))), r2 = t3;
|
|
5554
5554
|
break;
|
|
5555
5555
|
}
|
|
5556
5556
|
case "number":
|
|
5557
5557
|
case "integer": {
|
|
5558
|
-
let t3 = n2 === "integer" ?
|
|
5558
|
+
let t3 = n2 === "integer" ? K.number().int() : K.number();
|
|
5559
5559
|
typeof e4.minimum == "number" && (t3 = t3.min(e4.minimum)), typeof e4.maximum == "number" && (t3 = t3.max(e4.maximum)), typeof e4.exclusiveMinimum == "number" ? t3 = t3.gt(e4.exclusiveMinimum) : e4.exclusiveMinimum === true && typeof e4.minimum == "number" && (t3 = t3.gt(e4.minimum)), typeof e4.exclusiveMaximum == "number" ? t3 = t3.lt(e4.exclusiveMaximum) : e4.exclusiveMaximum === true && typeof e4.maximum == "number" && (t3 = t3.lt(e4.maximum)), typeof e4.multipleOf == "number" && (t3 = t3.multipleOf(e4.multipleOf)), r2 = t3;
|
|
5560
5560
|
break;
|
|
5561
5561
|
}
|
|
5562
5562
|
case "boolean":
|
|
5563
|
-
r2 =
|
|
5563
|
+
r2 = K.boolean();
|
|
5564
5564
|
break;
|
|
5565
5565
|
case "null":
|
|
5566
|
-
r2 =
|
|
5566
|
+
r2 = K.null();
|
|
5567
5567
|
break;
|
|
5568
5568
|
case "object": {
|
|
5569
5569
|
let n3 = {}, i2 = e4.properties || {}, a2 = new Set(e4.required || []);
|
|
5570
5570
|
for (let [e5, r3] of Object.entries(i2)) {
|
|
5571
|
-
let i3 =
|
|
5571
|
+
let i3 = q(r3, t2);
|
|
5572
5572
|
n3[e5] = a2.has(e5) ? i3 : i3.optional();
|
|
5573
5573
|
}
|
|
5574
5574
|
if (e4.propertyNames) {
|
|
5575
|
-
let i3 =
|
|
5575
|
+
let i3 = q(e4.propertyNames, t2), a3 = e4.additionalProperties && typeof e4.additionalProperties == "object" ? q(e4.additionalProperties, t2) : K.any();
|
|
5576
5576
|
if (Object.keys(n3).length === 0) {
|
|
5577
|
-
r2 =
|
|
5577
|
+
r2 = K.record(i3, a3);
|
|
5578
5578
|
break;
|
|
5579
5579
|
}
|
|
5580
|
-
let o3 =
|
|
5581
|
-
r2 =
|
|
5580
|
+
let o3 = K.object(n3).passthrough(), s2 = K.looseRecord(i3, a3);
|
|
5581
|
+
r2 = K.intersection(o3, s2);
|
|
5582
5582
|
break;
|
|
5583
5583
|
}
|
|
5584
5584
|
if (e4.patternProperties) {
|
|
5585
5585
|
let i3 = e4.patternProperties, a3 = Object.keys(i3), o3 = [];
|
|
5586
5586
|
for (let e5 of a3) {
|
|
5587
|
-
let n4 =
|
|
5588
|
-
o3.push(
|
|
5587
|
+
let n4 = q(i3[e5], t2), r3 = K.string().regex(new RegExp(e5));
|
|
5588
|
+
o3.push(K.looseRecord(r3, n4));
|
|
5589
5589
|
}
|
|
5590
5590
|
let s2 = [];
|
|
5591
|
-
if (Object.keys(n3).length > 0 && s2.push(
|
|
5591
|
+
if (Object.keys(n3).length > 0 && s2.push(K.object(n3).passthrough()), s2.push(...o3), s2.length === 0) r2 = K.object({}).passthrough();
|
|
5592
5592
|
else if (s2.length === 1) r2 = s2[0];
|
|
5593
5593
|
else {
|
|
5594
|
-
let e5 =
|
|
5595
|
-
for (let t3 = 2; t3 < s2.length; t3++) e5 =
|
|
5594
|
+
let e5 = K.intersection(s2[0], s2[1]);
|
|
5595
|
+
for (let t3 = 2; t3 < s2.length; t3++) e5 = K.intersection(e5, s2[t3]);
|
|
5596
5596
|
r2 = e5;
|
|
5597
5597
|
}
|
|
5598
5598
|
break;
|
|
5599
5599
|
}
|
|
5600
|
-
let o2 =
|
|
5601
|
-
r2 = e4.additionalProperties === false ? o2.strict() : typeof e4.additionalProperties == "object" ? o2.catchall(
|
|
5600
|
+
let o2 = K.object(n3);
|
|
5601
|
+
r2 = e4.additionalProperties === false ? o2.strict() : typeof e4.additionalProperties == "object" ? o2.catchall(q(e4.additionalProperties, t2)) : o2.passthrough();
|
|
5602
5602
|
break;
|
|
5603
5603
|
}
|
|
5604
5604
|
case "array": {
|
|
5605
5605
|
let n3 = e4.prefixItems, i2 = e4.items;
|
|
5606
5606
|
if (n3 && Array.isArray(n3)) {
|
|
5607
|
-
let a2 = n3.map((e5) =>
|
|
5608
|
-
r2 = o2 ?
|
|
5607
|
+
let a2 = n3.map((e5) => q(e5, t2)), o2 = i2 && typeof i2 == "object" && !Array.isArray(i2) ? q(i2, t2) : void 0;
|
|
5608
|
+
r2 = o2 ? K.tuple(a2).rest(o2) : K.tuple(a2), typeof e4.minItems == "number" && (r2 = r2.check(K.minLength(e4.minItems))), typeof e4.maxItems == "number" && (r2 = r2.check(K.maxLength(e4.maxItems)));
|
|
5609
5609
|
} else if (Array.isArray(i2)) {
|
|
5610
|
-
let n4 = i2.map((e5) =>
|
|
5611
|
-
r2 = a2 ?
|
|
5610
|
+
let n4 = i2.map((e5) => q(e5, t2)), a2 = e4.additionalItems && typeof e4.additionalItems == "object" ? q(e4.additionalItems, t2) : void 0;
|
|
5611
|
+
r2 = a2 ? K.tuple(n4).rest(a2) : K.tuple(n4), typeof e4.minItems == "number" && (r2 = r2.check(K.minLength(e4.minItems))), typeof e4.maxItems == "number" && (r2 = r2.check(K.maxLength(e4.maxItems)));
|
|
5612
5612
|
} else if (i2 !== void 0) {
|
|
5613
|
-
let n4 =
|
|
5613
|
+
let n4 = q(i2, t2), a2 = K.array(n4);
|
|
5614
5614
|
typeof e4.minItems == "number" && (a2 = a2.min(e4.minItems)), typeof e4.maxItems == "number" && (a2 = a2.max(e4.maxItems)), r2 = a2;
|
|
5615
|
-
} else r2 =
|
|
5615
|
+
} else r2 = K.array(K.any());
|
|
5616
5616
|
break;
|
|
5617
5617
|
}
|
|
5618
5618
|
default:
|
|
@@ -5620,74 +5620,74 @@ function Dp(e4, t2) {
|
|
|
5620
5620
|
}
|
|
5621
5621
|
return e4.description && (r2 = r2.describe(e4.description)), e4.default !== void 0 && (r2 = r2.default(e4.default)), r2;
|
|
5622
5622
|
}
|
|
5623
|
-
function
|
|
5624
|
-
if (typeof e4 == "boolean") return e4 ?
|
|
5625
|
-
let n2 =
|
|
5623
|
+
function q(e4, t2) {
|
|
5624
|
+
if (typeof e4 == "boolean") return e4 ? K.any() : K.never();
|
|
5625
|
+
let n2 = Ep(e4, t2), r2 = e4.type || e4.enum !== void 0 || e4.const !== void 0;
|
|
5626
5626
|
if (e4.anyOf && Array.isArray(e4.anyOf)) {
|
|
5627
|
-
let i3 = e4.anyOf.map((e5) =>
|
|
5628
|
-
n2 = r2 ?
|
|
5627
|
+
let i3 = e4.anyOf.map((e5) => q(e5, t2)), a2 = K.union(i3);
|
|
5628
|
+
n2 = r2 ? K.intersection(n2, a2) : a2;
|
|
5629
5629
|
}
|
|
5630
5630
|
if (e4.oneOf && Array.isArray(e4.oneOf)) {
|
|
5631
|
-
let i3 = e4.oneOf.map((e5) =>
|
|
5632
|
-
n2 = r2 ?
|
|
5631
|
+
let i3 = e4.oneOf.map((e5) => q(e5, t2)), a2 = K.xor(i3);
|
|
5632
|
+
n2 = r2 ? K.intersection(n2, a2) : a2;
|
|
5633
5633
|
}
|
|
5634
|
-
if (e4.allOf && Array.isArray(e4.allOf)) if (e4.allOf.length === 0) n2 = r2 ? n2 :
|
|
5634
|
+
if (e4.allOf && Array.isArray(e4.allOf)) if (e4.allOf.length === 0) n2 = r2 ? n2 : K.any();
|
|
5635
5635
|
else {
|
|
5636
|
-
let i3 = r2 ? n2 :
|
|
5637
|
-
for (let n3 = a2; n3 < e4.allOf.length; n3++) i3 =
|
|
5636
|
+
let i3 = r2 ? n2 : q(e4.allOf[0], t2), a2 = +!r2;
|
|
5637
|
+
for (let n3 = a2; n3 < e4.allOf.length; n3++) i3 = K.intersection(i3, q(e4.allOf[n3], t2));
|
|
5638
5638
|
n2 = i3;
|
|
5639
5639
|
}
|
|
5640
|
-
e4.nullable === true && t2.version === "openapi-3.0" && (n2 =
|
|
5640
|
+
e4.nullable === true && t2.version === "openapi-3.0" && (n2 = K.nullable(n2)), e4.readOnly === true && (n2 = K.readonly(n2));
|
|
5641
5641
|
let i2 = {};
|
|
5642
5642
|
for (let t3 of ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"]) t3 in e4 && (i2[t3] = e4[t3]);
|
|
5643
5643
|
for (let t3 of ["contentEncoding", "contentMediaType", "contentSchema"]) t3 in e4 && (i2[t3] = e4[t3]);
|
|
5644
|
-
for (let t3 of Object.keys(e4))
|
|
5644
|
+
for (let t3 of Object.keys(e4)) Cp.has(t3) || (i2[t3] = e4[t3]);
|
|
5645
5645
|
return Object.keys(i2).length > 0 && t2.registry.add(n2, i2), n2;
|
|
5646
5646
|
}
|
|
5647
|
-
function
|
|
5647
|
+
function Dp(e4, t2) {
|
|
5648
5648
|
var n2;
|
|
5649
|
-
return typeof e4 == "boolean" ? e4 ?
|
|
5649
|
+
return typeof e4 == "boolean" ? e4 ? K.any() : K.never() : q(e4, { version: wp(e4, t2 == null ? void 0 : t2.defaultTarget), defs: e4.$defs || e4.definitions || {}, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: e4, registry: (n2 = t2 == null ? void 0 : t2.registry) == null ? E : n2 });
|
|
5650
|
+
}
|
|
5651
|
+
var Op = t({ bigint: () => Mp, boolean: () => jp, date: () => Np, number: () => Ap, string: () => kp });
|
|
5652
|
+
function kp(e4) {
|
|
5653
|
+
return ns(Mu, e4);
|
|
5650
5654
|
}
|
|
5651
|
-
var kp = t({ bigint: () => Np, boolean: () => Mp, date: () => Pp, number: () => jp, string: () => Ap });
|
|
5652
5655
|
function Ap(e4) {
|
|
5653
|
-
return
|
|
5656
|
+
return Ms(Od, e4);
|
|
5654
5657
|
}
|
|
5655
5658
|
function jp(e4) {
|
|
5656
|
-
return
|
|
5659
|
+
return zs(Fd, e4);
|
|
5657
5660
|
}
|
|
5658
5661
|
function Mp(e4) {
|
|
5659
|
-
return
|
|
5662
|
+
return Vs(Id, e4);
|
|
5660
5663
|
}
|
|
5661
5664
|
function Np(e4) {
|
|
5662
|
-
return
|
|
5665
|
+
return Qs(ef, e4);
|
|
5663
5666
|
}
|
|
5664
|
-
|
|
5665
|
-
return $s(tf, e4);
|
|
5666
|
-
}
|
|
5667
|
-
var Fp = t({ $brand: () => l, $input: () => Qo, $output: () => Zo, NEVER: () => s, TimePrecision: () => Ds, ZodAny: () => Jd, ZodArray: () => rf, ZodBase64: () => gd, ZodBase64URL: () => vd, ZodBigInt: () => Ld, ZodBigIntFormat: () => zd, ZodBoolean: () => Id, ZodCIDRv4: () => fd, ZodCIDRv6: () => md, ZodCUID: () => Xu, ZodCUID2: () => Qu, ZodCatch: () => Gf, ZodCodec: () => Zf, ZodCustom: () => lp, ZodCustomStringFormat: () => wd, ZodDate: () => tf, ZodDefault: () => Lf, ZodDiscriminatedUnion: () => df, ZodE164: () => bd, ZodEmail: () => Pu, ZodEmoji: () => Ku, ZodEnum: () => wf, ZodError: () => vu, ZodExactOptional: () => Mf, ZodFile: () => Df, ZodFirstPartyTypeKind: () => Cp, ZodFunction: () => sp, ZodGUID: () => Iu, ZodIPv4: () => od, ZodIPv6: () => ud, ZodISODate: () => du, ZodISODateTime: () => lu, ZodISODuration: () => hu, ZodISOTime: () => pu, ZodIntersection: () => pf, ZodIssueCode: () => bp, ZodJWT: () => Sd, ZodKSUID: () => id, ZodLazy: () => rp, ZodLiteral: () => Ef, ZodMAC: () => cd, ZodMap: () => bf, ZodNaN: () => qf, ZodNanoID: () => Ju, ZodNever: () => Zd, ZodNonOptional: () => Vf, ZodNull: () => Kd, ZodNullable: () => Pf, ZodNumber: () => kd, ZodNumberFormat: () => Ad, ZodObject: () => of, ZodOptional: () => jf, ZodPipe: () => Yf, ZodPrefault: () => zf, ZodPromise: () => ap, ZodReadonly: () => $f, ZodRealError: () => A, ZodRecord: () => _f, ZodSet: () => Sf, ZodString: () => Nu, ZodStringFormat: () => N, ZodSuccess: () => Uf, ZodSymbol: () => Hd, ZodTemplateLiteral: () => tp, ZodTransform: () => kf, ZodTuple: () => hf, ZodType: () => j, ZodULID: () => ed, ZodURL: () => Uu, ZodUUID: () => Ru, ZodUndefined: () => Wd, ZodUnion: () => cf, ZodUnknown: () => Xd, ZodVoid: () => $d, ZodXID: () => nd, ZodXor: () => lf, _ZodString: () => Mu, _default: () => Rf, _function: () => cp, any: () => Yd, array: () => L, base64: () => _d, base64url: () => yd, bigint: () => Rd, boolean: () => F, catch: () => Kf, check: () => up, cidrv4: () => pd, cidrv6: () => hd, clone: () => v, codec: () => Qf, coerce: () => kp, config: () => p, core: () => nu, cuid: () => Zu, cuid2: () => $u, custom: () => dp, date: () => nf, decode: () => wu, decodeAsync: () => Eu, describe: () => mp, discriminatedUnion: () => ff, e164: () => xd, email: () => Fu, emoji: () => qu, encode: () => Cu, encodeAsync: () => Tu, endsWith: () => yc, enum: () => H, exactOptional: () => Nf, file: () => Of, flattenError: () => it, float32: () => Md, float64: () => Nd, formatError: () => at, fromJSONSchema: () => Op, function: () => cp, getErrorMap: () => Sp, globalRegistry: () => ts, gt: () => nc, gte: () => D, guid: () => Lu, hash: () => Od, hex: () => Dd, hostname: () => Ed, httpUrl: () => Gu, includes: () => _c, instanceof: () => gp, int: () => jd, int32: () => Pd, int64: () => Bd, intersection: () => mf, ipv4: () => sd, ipv6: () => dd, iso: () => cu, json: () => vp, jwt: () => Cd, keyof: () => af, ksuid: () => ad, lazy: () => ip, length: () => pc, literal: () => U, locales: () => Yo, looseObject: () => z, looseRecord: () => yf, lowercase: () => hc, lt: () => tc, lte: () => E, mac: () => ld, map: () => xf, maxLength: () => dc, maxSize: () => cc, meta: () => hp, mime: () => xc, minLength: () => fc, minSize: () => lc, multipleOf: () => sc, nan: () => Jf, nanoid: () => Yu, nativeEnum: () => Tf, negative: () => ic, never: () => Qd, nonnegative: () => oc, nonoptional: () => Hf, nonpositive: () => ac, normalize: () => Cc, null: () => qd, nullable: () => Ff, nullish: () => If, number: () => P, object: () => R, optional: () => W, overwrite: () => Sc, parse: () => yu, parseAsync: () => bu, partialRecord: () => vf, pipe: () => Xf, positive: () => rc, prefault: () => Bf, preprocess: () => yp, prettifyError: () => ct, promise: () => op, property: () => bc, readonly: () => ep, record: () => V, refine: () => fp, regex: () => mc, regexes: () => Nt, registry: () => es, safeDecode: () => Ou, safeDecodeAsync: () => Au, safeEncode: () => Du, safeEncodeAsync: () => ku, safeParse: () => xu, safeParseAsync: () => Su, set: () => Cf, setErrorMap: () => xp, size: () => uc, slugify: () => Dc, startsWith: () => vc, strictObject: () => sf, string: () => M, stringFormat: () => Td, stringbool: () => _p, success: () => Wf, superRefine: () => pp, symbol: () => Ud, templateLiteral: () => np, toJSONSchema: () => $l, toLowerCase: () => Tc, toUpperCase: () => Ec, transform: () => Af, treeifyError: () => ot, trim: () => wc, tuple: () => gf, uint32: () => Fd, uint64: () => Vd, ulid: () => td, undefined: () => Gd, union: () => B, unknown: () => I, uppercase: () => gc, url: () => Wu, util: () => ee, uuid: () => zu, uuidv4: () => Bu, uuidv6: () => Vu, uuidv7: () => Hu, void: () => ef, xid: () => rd, xor: () => uf });
|
|
5667
|
+
var Pp = t({ $brand: () => l, $input: () => Qo, $output: () => Zo, NEVER: () => s, TimePrecision: () => Es, ZodAny: () => qd, ZodArray: () => nf, ZodBase64: () => hd, ZodBase64URL: () => _d, ZodBigInt: () => Id, ZodBigIntFormat: () => Rd, ZodBoolean: () => Fd, ZodCIDRv4: () => dd, ZodCIDRv6: () => pd, ZodCUID: () => Yu, ZodCUID2: () => Zu, ZodCatch: () => Wf, ZodCodec: () => Xf, ZodCustom: () => cp, ZodCustomStringFormat: () => Cd, ZodDate: () => ef, ZodDefault: () => If, ZodDiscriminatedUnion: () => uf, ZodE164: () => yd, ZodEmail: () => Nu, ZodEmoji: () => Gu, ZodEnum: () => Cf, ZodError: () => _u, ZodExactOptional: () => jf, ZodFile: () => Ef, ZodFirstPartyTypeKind: () => Sp, ZodFunction: () => op, ZodGUID: () => Fu, ZodIPv4: () => ad, ZodIPv6: () => ld, ZodISODate: () => uu, ZodISODateTime: () => cu, ZodISODuration: () => mu, ZodISOTime: () => fu, ZodIntersection: () => ff, ZodIssueCode: () => yp, ZodJWT: () => xd, ZodKSUID: () => rd, ZodLazy: () => np, ZodLiteral: () => Tf, ZodMAC: () => sd, ZodMap: () => yf, ZodNaN: () => Kf, ZodNanoID: () => qu, ZodNever: () => Xd, ZodNonOptional: () => Bf, ZodNull: () => Gd, ZodNullable: () => Nf, ZodNumber: () => Od, ZodNumberFormat: () => kd, ZodObject: () => af, ZodOptional: () => Af, ZodPipe: () => Jf, ZodPrefault: () => Rf, ZodPromise: () => ip, ZodReadonly: () => Qf, ZodRealError: () => j, ZodRecord: () => gf, ZodSet: () => xf, ZodString: () => Mu, ZodStringFormat: () => P, ZodSuccess: () => Hf, ZodSymbol: () => Vd, ZodTemplateLiteral: () => ep, ZodTransform: () => Of, ZodTuple: () => mf, ZodType: () => M, ZodULID: () => $u, ZodURL: () => Hu, ZodUUID: () => Lu, ZodUndefined: () => Ud, ZodUnion: () => sf, ZodUnknown: () => Yd, ZodVoid: () => Qd, ZodXID: () => td, ZodXor: () => cf, _ZodString: () => ju, _default: () => Lf, _function: () => sp, any: () => Jd, array: () => R, base64: () => gd, base64url: () => vd, bigint: () => Ld, boolean: () => I, catch: () => Gf, check: () => lp, cidrv4: () => fd, cidrv6: () => md, clone: () => v, codec: () => Zf, coerce: () => Op, config: () => p, core: () => tu, cuid: () => Xu, cuid2: () => Qu, custom: () => up, date: () => tf, decode: () => Cu, decodeAsync: () => Tu, describe: () => pp, discriminatedUnion: () => df, e164: () => bd, email: () => Pu, emoji: () => Ku, encode: () => Su, encodeAsync: () => wu, endsWith: () => vc, enum: () => U, exactOptional: () => Mf, file: () => Df, flattenError: () => it, float32: () => jd, float64: () => Md, formatError: () => at, fromJSONSchema: () => Dp, function: () => sp, getErrorMap: () => xp, globalRegistry: () => E, gt: () => tc, gte: () => O, guid: () => Iu, hash: () => Dd, hex: () => Ed, hostname: () => Td, httpUrl: () => Wu, includes: () => gc, instanceof: () => hp, int: () => Ad, int32: () => Nd, int64: () => zd, intersection: () => pf, ipv4: () => od, ipv6: () => ud, iso: () => su, json: () => _p, jwt: () => Sd, keyof: () => rf, ksuid: () => id, lazy: () => rp, length: () => fc, literal: () => W, locales: () => Yo, looseObject: () => B, looseRecord: () => vf, lowercase: () => mc, lt: () => ec, lte: () => D, mac: () => cd, map: () => bf, maxLength: () => uc, maxSize: () => sc, meta: () => mp, mime: () => bc, minLength: () => dc, minSize: () => cc, multipleOf: () => oc, nan: () => qf, nanoid: () => Ju, nativeEnum: () => wf, negative: () => rc, never: () => Zd, nonnegative: () => ac, nonoptional: () => Vf, nonpositive: () => ic, normalize: () => Sc, null: () => Kd, nullable: () => Pf, nullish: () => Ff, number: () => F, object: () => z, optional: () => G, overwrite: () => xc, parse: () => vu, parseAsync: () => yu, partialRecord: () => _f, pipe: () => Yf, positive: () => nc, prefault: () => zf, preprocess: () => vp, prettifyError: () => ct, promise: () => ap, property: () => yc, readonly: () => $f, record: () => H, refine: () => dp, regex: () => pc, regexes: () => Nt, registry: () => es, safeDecode: () => Du, safeDecodeAsync: () => ku, safeEncode: () => Eu, safeEncodeAsync: () => Ou, safeParse: () => bu, safeParseAsync: () => xu, set: () => Sf, setErrorMap: () => bp, size: () => lc, slugify: () => Ec, startsWith: () => _c, strictObject: () => of, string: () => N, stringFormat: () => wd, stringbool: () => gp, success: () => Uf, superRefine: () => fp, symbol: () => Hd, templateLiteral: () => tp, toJSONSchema: () => Ql, toLowerCase: () => wc, toUpperCase: () => Tc, transform: () => kf, treeifyError: () => ot, trim: () => Cc, tuple: () => hf, uint32: () => Pd, uint64: () => Bd, ulid: () => ed, undefined: () => Wd, union: () => V, unknown: () => L, uppercase: () => hc, url: () => Uu, util: () => ee, uuid: () => Ru, uuidv4: () => zu, uuidv6: () => Bu, uuidv7: () => Vu, void: () => $d, xid: () => nd, xor: () => lf });
|
|
5668
5668
|
p(va());
|
|
5669
|
-
var
|
|
5670
|
-
|
|
5671
|
-
var
|
|
5669
|
+
var Fp = t({ $brand: () => l, $input: () => Qo, $output: () => Zo, NEVER: () => s, TimePrecision: () => Es, ZodAny: () => qd, ZodArray: () => nf, ZodBase64: () => hd, ZodBase64URL: () => _d, ZodBigInt: () => Id, ZodBigIntFormat: () => Rd, ZodBoolean: () => Fd, ZodCIDRv4: () => dd, ZodCIDRv6: () => pd, ZodCUID: () => Yu, ZodCUID2: () => Zu, ZodCatch: () => Wf, ZodCodec: () => Xf, ZodCustom: () => cp, ZodCustomStringFormat: () => Cd, ZodDate: () => ef, ZodDefault: () => If, ZodDiscriminatedUnion: () => uf, ZodE164: () => yd, ZodEmail: () => Nu, ZodEmoji: () => Gu, ZodEnum: () => Cf, ZodError: () => _u, ZodExactOptional: () => jf, ZodFile: () => Ef, ZodFirstPartyTypeKind: () => Sp, ZodFunction: () => op, ZodGUID: () => Fu, ZodIPv4: () => ad, ZodIPv6: () => ld, ZodISODate: () => uu, ZodISODateTime: () => cu, ZodISODuration: () => mu, ZodISOTime: () => fu, ZodIntersection: () => ff, ZodIssueCode: () => yp, ZodJWT: () => xd, ZodKSUID: () => rd, ZodLazy: () => np, ZodLiteral: () => Tf, ZodMAC: () => sd, ZodMap: () => yf, ZodNaN: () => Kf, ZodNanoID: () => qu, ZodNever: () => Xd, ZodNonOptional: () => Bf, ZodNull: () => Gd, ZodNullable: () => Nf, ZodNumber: () => Od, ZodNumberFormat: () => kd, ZodObject: () => af, ZodOptional: () => Af, ZodPipe: () => Jf, ZodPrefault: () => Rf, ZodPromise: () => ip, ZodReadonly: () => Qf, ZodRealError: () => j, ZodRecord: () => gf, ZodSet: () => xf, ZodString: () => Mu, ZodStringFormat: () => P, ZodSuccess: () => Hf, ZodSymbol: () => Vd, ZodTemplateLiteral: () => ep, ZodTransform: () => Of, ZodTuple: () => mf, ZodType: () => M, ZodULID: () => $u, ZodURL: () => Hu, ZodUUID: () => Lu, ZodUndefined: () => Ud, ZodUnion: () => sf, ZodUnknown: () => Yd, ZodVoid: () => Qd, ZodXID: () => td, ZodXor: () => cf, _ZodString: () => ju, _default: () => Lf, _function: () => sp, any: () => Jd, array: () => R, base64: () => gd, base64url: () => vd, bigint: () => Ld, boolean: () => I, catch: () => Gf, check: () => lp, cidrv4: () => fd, cidrv6: () => md, clone: () => v, codec: () => Zf, coerce: () => Op, config: () => p, core: () => tu, cuid: () => Xu, cuid2: () => Qu, custom: () => up, date: () => tf, decode: () => Cu, decodeAsync: () => Tu, describe: () => pp, discriminatedUnion: () => df, e164: () => bd, email: () => Pu, emoji: () => Ku, encode: () => Su, encodeAsync: () => wu, endsWith: () => vc, enum: () => U, exactOptional: () => Mf, file: () => Df, flattenError: () => it, float32: () => jd, float64: () => Md, formatError: () => at, fromJSONSchema: () => Dp, function: () => sp, getErrorMap: () => xp, globalRegistry: () => E, gt: () => tc, gte: () => O, guid: () => Iu, hash: () => Dd, hex: () => Ed, hostname: () => Td, httpUrl: () => Wu, includes: () => gc, instanceof: () => hp, int: () => Ad, int32: () => Nd, int64: () => zd, intersection: () => pf, ipv4: () => od, ipv6: () => ud, iso: () => su, json: () => _p, jwt: () => Sd, keyof: () => rf, ksuid: () => id, lazy: () => rp, length: () => fc, literal: () => W, locales: () => Yo, looseObject: () => B, looseRecord: () => vf, lowercase: () => mc, lt: () => ec, lte: () => D, mac: () => cd, map: () => bf, maxLength: () => uc, maxSize: () => sc, meta: () => mp, mime: () => bc, minLength: () => dc, minSize: () => cc, multipleOf: () => oc, nan: () => qf, nanoid: () => Ju, nativeEnum: () => wf, negative: () => rc, never: () => Zd, nonnegative: () => ac, nonoptional: () => Vf, nonpositive: () => ic, normalize: () => Sc, null: () => Kd, nullable: () => Pf, nullish: () => Ff, number: () => F, object: () => z, optional: () => G, overwrite: () => xc, parse: () => vu, parseAsync: () => yu, partialRecord: () => _f, pipe: () => Yf, positive: () => nc, prefault: () => zf, preprocess: () => vp, prettifyError: () => ct, promise: () => ap, property: () => yc, readonly: () => $f, record: () => H, refine: () => dp, regex: () => pc, regexes: () => Nt, registry: () => es, safeDecode: () => Du, safeDecodeAsync: () => ku, safeEncode: () => Eu, safeEncodeAsync: () => Ou, safeParse: () => bu, safeParseAsync: () => xu, set: () => Sf, setErrorMap: () => bp, size: () => lc, slugify: () => Ec, startsWith: () => _c, strictObject: () => of, string: () => N, stringFormat: () => wd, stringbool: () => gp, success: () => Uf, superRefine: () => fp, symbol: () => Hd, templateLiteral: () => tp, toJSONSchema: () => Ql, toLowerCase: () => wc, toUpperCase: () => Tc, transform: () => kf, treeifyError: () => ot, trim: () => Cc, tuple: () => hf, uint32: () => Pd, uint64: () => Bd, ulid: () => ed, undefined: () => Wd, union: () => V, unknown: () => L, uppercase: () => hc, url: () => Uu, util: () => ee, uuid: () => Ru, uuidv4: () => zu, uuidv6: () => Bu, uuidv7: () => Vu, void: () => $d, xid: () => nd, xor: () => lf, z: () => Pp }), Ip = "io.modelcontextprotocol/related-task", J = up((e4) => e4 !== null && (typeof e4 == "object" || typeof e4 == "function")), Lp = V([N(), F().int()]), Rp = N();
|
|
5670
|
+
B({ ttl: F().optional(), pollInterval: F().optional() });
|
|
5671
|
+
var zp = z({ ttl: F().optional() }), Bp = z({ taskId: N() }), Vp = B({ progressToken: Lp.optional(), [Ip]: Bp.optional() }), Hp = z({ _meta: Vp.optional() }), Up = Hp.extend({ task: zp.optional() }), Wp = (e4) => Up.safeParse(e4).success, Y = z({ method: N(), params: Hp.loose().optional() }), Gp = z({ _meta: Vp.optional() }), Kp = z({ method: N(), params: Gp.loose().optional() }), X = B({ _meta: Vp.optional() }), qp = V([N(), F().int()]), Jp = z({ jsonrpc: W("2.0"), id: qp, ...Y.shape }).strict(), Yp = (e4) => Jp.safeParse(e4).success, Xp = z({ jsonrpc: W("2.0"), ...Kp.shape }).strict(), Zp = (e4) => Xp.safeParse(e4).success, Qp = z({ jsonrpc: W("2.0"), id: qp, result: X }).strict(), $p = (e4) => Qp.safeParse(e4).success, Z;
|
|
5672
5672
|
(function(e4) {
|
|
5673
5673
|
e4[e4.ConnectionClosed = -32e3] = "ConnectionClosed", e4[e4.RequestTimeout = -32001] = "RequestTimeout", e4[e4.ParseError = -32700] = "ParseError", e4[e4.InvalidRequest = -32600] = "InvalidRequest", e4[e4.MethodNotFound = -32601] = "MethodNotFound", e4[e4.InvalidParams = -32602] = "InvalidParams", e4[e4.InternalError = -32603] = "InternalError", e4[e4.UrlElicitationRequired = -32042] = "UrlElicitationRequired";
|
|
5674
5674
|
})(Z || (Z = {}));
|
|
5675
|
-
var em =
|
|
5676
|
-
|
|
5677
|
-
var rm = X.strict(), im = Gp.extend({ requestId: qp.optional(), reason:
|
|
5675
|
+
var em = z({ jsonrpc: W("2.0"), id: qp.optional(), error: z({ code: F().int(), message: N(), data: L().optional() }) }).strict(), tm = (e4) => em.safeParse(e4).success, nm = V([Jp, Xp, Qp, em]);
|
|
5676
|
+
V([Qp, em]);
|
|
5677
|
+
var rm = X.strict(), im = Gp.extend({ requestId: qp.optional(), reason: N().optional() }), am = Kp.extend({ method: W("notifications/cancelled"), params: im }), om = z({ icons: R(z({ src: N(), mimeType: N().optional(), sizes: R(N()).optional(), theme: U(["light", "dark"]).optional() })).optional() }), sm = z({ name: N(), title: N().optional() }), cm = sm.extend({ ...sm.shape, ...om.shape, version: N(), websiteUrl: N().optional(), description: N().optional() }), lm = vp((e4) => e4 && typeof e4 == "object" && !Array.isArray(e4) && Object.keys(e4).length === 0 ? { form: {} } : e4, pf(z({ form: pf(z({ applyDefaults: I().optional() }), H(N(), L())).optional(), url: J.optional() }), H(N(), L()).optional())), um = B({ list: J.optional(), cancel: J.optional(), requests: B({ sampling: B({ createMessage: J.optional() }).optional(), elicitation: B({ create: J.optional() }).optional() }).optional() }), dm = B({ list: J.optional(), cancel: J.optional(), requests: B({ tools: B({ call: J.optional() }).optional() }).optional() }), fm = z({ experimental: H(N(), J).optional(), sampling: z({ context: J.optional(), tools: J.optional() }).optional(), elicitation: lm.optional(), roots: z({ listChanged: I().optional() }).optional(), tasks: um.optional(), extensions: H(N(), J).optional() }), pm = Hp.extend({ protocolVersion: N(), capabilities: fm, clientInfo: cm }), mm = Y.extend({ method: W("initialize"), params: pm }), hm = z({ experimental: H(N(), J).optional(), logging: J.optional(), completions: J.optional(), prompts: z({ listChanged: I().optional() }).optional(), resources: z({ subscribe: I().optional(), listChanged: I().optional() }).optional(), tools: z({ listChanged: I().optional() }).optional(), tasks: dm.optional(), extensions: H(N(), J).optional() }), gm = X.extend({ protocolVersion: N(), capabilities: hm, serverInfo: cm, instructions: N().optional() }), _m = Kp.extend({ method: W("notifications/initialized"), params: Gp.optional() }), vm = Y.extend({ method: W("ping"), params: Hp.optional() }), ym = z({ progress: F(), total: G(F()), message: G(N()) }), bm = z({ ...Gp.shape, ...ym.shape, progressToken: Lp }), xm = Kp.extend({ method: W("notifications/progress"), params: bm }), Sm = Hp.extend({ cursor: Rp.optional() }), Cm = Y.extend({ params: Sm.optional() }), wm = X.extend({ nextCursor: Rp.optional() }), Tm = U(["working", "input_required", "completed", "failed", "cancelled"]), Em = z({ taskId: N(), status: Tm, ttl: V([F(), Kd()]), createdAt: N(), lastUpdatedAt: N(), pollInterval: G(F()), statusMessage: G(N()) }), Dm = X.extend({ task: Em }), Om = Gp.merge(Em), km = Kp.extend({ method: W("notifications/tasks/status"), params: Om }), Am = Y.extend({ method: W("tasks/get"), params: Hp.extend({ taskId: N() }) }), jm = X.merge(Em), Mm = Y.extend({ method: W("tasks/result"), params: Hp.extend({ taskId: N() }) });
|
|
5678
5678
|
X.loose();
|
|
5679
|
-
var Nm = Cm.extend({ method:
|
|
5679
|
+
var Nm = Cm.extend({ method: W("tasks/list") }), Pm = wm.extend({ tasks: R(Em) }), Fm = Y.extend({ method: W("tasks/cancel"), params: Hp.extend({ taskId: N() }) }), Im = X.merge(Em), Lm = z({ uri: N(), mimeType: G(N()), _meta: H(N(), L()).optional() }), Rm = Lm.extend({ text: N() }), zm = N().refine((e4) => {
|
|
5680
5680
|
try {
|
|
5681
5681
|
return atob(e4), true;
|
|
5682
5682
|
} catch (e5) {
|
|
5683
5683
|
return false;
|
|
5684
5684
|
}
|
|
5685
|
-
}, { message: "Invalid Base64 string" }), Bm = Lm.extend({ blob: zm }), Vm =
|
|
5686
|
-
Dh.or(X.extend({ toolResult:
|
|
5687
|
-
var Oh = Up.extend({ name:
|
|
5688
|
-
|
|
5689
|
-
var jh =
|
|
5690
|
-
|
|
5685
|
+
}, { message: "Invalid Base64 string" }), Bm = Lm.extend({ blob: zm }), Vm = U(["user", "assistant"]), Hm = z({ audience: R(Vm).optional(), priority: F().min(0).max(1).optional(), lastModified: lu({ offset: true }).optional() }), Um = z({ ...sm.shape, ...om.shape, uri: N(), description: G(N()), mimeType: G(N()), size: G(F()), annotations: Hm.optional(), _meta: G(B({})) }), Wm = z({ ...sm.shape, ...om.shape, uriTemplate: N(), description: G(N()), mimeType: G(N()), annotations: Hm.optional(), _meta: G(B({})) }), Gm = Cm.extend({ method: W("resources/list") }), Km = wm.extend({ resources: R(Um) }), qm = Cm.extend({ method: W("resources/templates/list") }), Jm = wm.extend({ resourceTemplates: R(Wm) }), Ym = Hp.extend({ uri: N() }), Xm = Ym, Zm = Y.extend({ method: W("resources/read"), params: Xm }), Qm = X.extend({ contents: R(V([Rm, Bm])) }), $m = Kp.extend({ method: W("notifications/resources/list_changed"), params: Gp.optional() }), eh = Ym, th = Y.extend({ method: W("resources/subscribe"), params: eh }), nh = Ym, rh = Y.extend({ method: W("resources/unsubscribe"), params: nh }), ih = Gp.extend({ uri: N() }), ah = Kp.extend({ method: W("notifications/resources/updated"), params: ih }), oh = z({ name: N(), description: G(N()), required: G(I()) }), sh = z({ ...sm.shape, ...om.shape, description: G(N()), arguments: G(R(oh)), _meta: G(B({})) }), ch = Cm.extend({ method: W("prompts/list") }), lh = wm.extend({ prompts: R(sh) }), uh = Hp.extend({ name: N(), arguments: H(N(), N()).optional() }), dh = Y.extend({ method: W("prompts/get"), params: uh }), fh = z({ type: W("text"), text: N(), annotations: Hm.optional(), _meta: H(N(), L()).optional() }), ph = z({ type: W("image"), data: zm, mimeType: N(), annotations: Hm.optional(), _meta: H(N(), L()).optional() }), mh = z({ type: W("audio"), data: zm, mimeType: N(), annotations: Hm.optional(), _meta: H(N(), L()).optional() }), hh = z({ type: W("tool_use"), name: N(), id: N(), input: H(N(), L()), _meta: H(N(), L()).optional() }), gh = z({ type: W("resource"), resource: V([Rm, Bm]), annotations: Hm.optional(), _meta: H(N(), L()).optional() }), _h = Um.extend({ type: W("resource_link") }), vh = V([fh, ph, mh, _h, gh]), yh = z({ role: Vm, content: vh }), bh = X.extend({ description: N().optional(), messages: R(yh) }), xh = Kp.extend({ method: W("notifications/prompts/list_changed"), params: Gp.optional() }), Sh = z({ title: N().optional(), readOnlyHint: I().optional(), destructiveHint: I().optional(), idempotentHint: I().optional(), openWorldHint: I().optional() }), Ch = z({ taskSupport: U(["required", "optional", "forbidden"]).optional() }), wh = z({ ...sm.shape, ...om.shape, description: N().optional(), inputSchema: z({ type: W("object"), properties: H(N(), J).optional(), required: R(N()).optional() }).catchall(L()), outputSchema: z({ type: W("object"), properties: H(N(), J).optional(), required: R(N()).optional() }).catchall(L()).optional(), annotations: Sh.optional(), execution: Ch.optional(), _meta: H(N(), L()).optional() }), Th = Cm.extend({ method: W("tools/list") }), Eh = wm.extend({ tools: R(wh) }), Dh = X.extend({ content: R(vh).default([]), structuredContent: H(N(), L()).optional(), isError: I().optional() });
|
|
5686
|
+
Dh.or(X.extend({ toolResult: L() }));
|
|
5687
|
+
var Oh = Up.extend({ name: N(), arguments: H(N(), L()).optional() }), kh = Y.extend({ method: W("tools/call"), params: Oh }), Ah = Kp.extend({ method: W("notifications/tools/list_changed"), params: Gp.optional() });
|
|
5688
|
+
z({ autoRefresh: I().default(true), debounceMs: F().int().nonnegative().default(300) });
|
|
5689
|
+
var jh = U(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]), Mh = Hp.extend({ level: jh }), Nh = Y.extend({ method: W("logging/setLevel"), params: Mh }), Ph = Gp.extend({ level: jh, logger: N().optional(), data: L() }), Fh = Kp.extend({ method: W("notifications/message"), params: Ph }), Ih = z({ hints: R(z({ name: N().optional() })).optional(), costPriority: F().min(0).max(1).optional(), speedPriority: F().min(0).max(1).optional(), intelligencePriority: F().min(0).max(1).optional() }), Lh = z({ mode: U(["auto", "required", "none"]).optional() }), Rh = z({ type: W("tool_result"), toolUseId: N().describe("The unique identifier for the corresponding tool call."), content: R(vh).default([]), structuredContent: z({}).loose().optional(), isError: I().optional(), _meta: H(N(), L()).optional() }), zh = df("type", [fh, ph, mh]), Bh = df("type", [fh, ph, mh, hh, Rh]), Vh = z({ role: Vm, content: V([Bh, R(Bh)]), _meta: H(N(), L()).optional() }), Hh = Up.extend({ messages: R(Vh), modelPreferences: Ih.optional(), systemPrompt: N().optional(), includeContext: U(["none", "thisServer", "allServers"]).optional(), temperature: F().optional(), maxTokens: F().int(), stopSequences: R(N()).optional(), metadata: J.optional(), tools: R(wh).optional(), toolChoice: Lh.optional() }), Uh = Y.extend({ method: W("sampling/createMessage"), params: Hh }), Wh = X.extend({ model: N(), stopReason: G(U(["endTurn", "stopSequence", "maxTokens"]).or(N())), role: Vm, content: zh }), Gh = X.extend({ model: N(), stopReason: G(U(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(N())), role: Vm, content: V([Bh, R(Bh)]) }), Kh = z({ type: W("boolean"), title: N().optional(), description: N().optional(), default: I().optional() }), qh = z({ type: W("string"), title: N().optional(), description: N().optional(), minLength: F().optional(), maxLength: F().optional(), format: U(["email", "uri", "date", "date-time"]).optional(), default: N().optional() }), Jh = z({ type: U(["number", "integer"]), title: N().optional(), description: N().optional(), minimum: F().optional(), maximum: F().optional(), default: F().optional() }), Yh = z({ type: W("string"), title: N().optional(), description: N().optional(), enum: R(N()), default: N().optional() }), Xh = z({ type: W("string"), title: N().optional(), description: N().optional(), oneOf: R(z({ const: N(), title: N() })), default: N().optional() }), Zh = V([V([z({ type: W("string"), title: N().optional(), description: N().optional(), enum: R(N()), enumNames: R(N()).optional(), default: N().optional() }), V([Yh, Xh]), V([z({ type: W("array"), title: N().optional(), description: N().optional(), minItems: F().optional(), maxItems: F().optional(), items: z({ type: W("string"), enum: R(N()) }), default: R(N()).optional() }), z({ type: W("array"), title: N().optional(), description: N().optional(), minItems: F().optional(), maxItems: F().optional(), items: z({ anyOf: R(z({ const: N(), title: N() })) }), default: R(N()).optional() })])]), Kh, qh, Jh]), Qh = V([Up.extend({ mode: W("form").optional(), message: N(), requestedSchema: z({ type: W("object"), properties: H(N(), Zh), required: R(N()).optional() }) }), Up.extend({ mode: W("url"), message: N(), elicitationId: N(), url: N().url() })]), $h = Y.extend({ method: W("elicitation/create"), params: Qh }), eg = Gp.extend({ elicitationId: N() }), tg = Kp.extend({ method: W("notifications/elicitation/complete"), params: eg }), ng = X.extend({ action: U(["accept", "decline", "cancel"]), content: vp((e4) => e4 === null ? void 0 : e4, H(N(), V([N(), F(), I(), R(N())])).optional()) }), rg = z({ type: W("ref/resource"), uri: N() }), ig = z({ type: W("ref/prompt"), name: N() }), ag = Hp.extend({ ref: V([ig, rg]), argument: z({ name: N(), value: N() }), context: z({ arguments: H(N(), N()).optional() }).optional() }), og = Y.extend({ method: W("completion/complete"), params: ag }), sg = X.extend({ completion: B({ values: R(N()).max(100), total: G(F().int()), hasMore: G(I()) }) }), cg = z({ uri: N().startsWith("file://"), name: N().optional(), _meta: H(N(), L()).optional() }), lg = Y.extend({ method: W("roots/list"), params: Hp.optional() }), ug = X.extend({ roots: R(cg) }), dg = Kp.extend({ method: W("notifications/roots/list_changed"), params: Gp.optional() });
|
|
5690
|
+
V([vm, mm, og, Nh, dh, ch, Gm, qm, Zm, th, rh, kh, Th, Am, Mm, Nm, Fm]), V([am, xm, _m, dg, km]), V([rm, Wh, Gh, ng, ug, jm, Pm, Dm]), V([vm, Uh, $h, lg, Am, Mm, Nm, Fm]), V([am, xm, Fh, ah, $m, Ah, xh, km, tg]), V([rm, gm, sg, bh, lh, Km, Jm, Qm, Dh, Eh, jm, Pm, Dm]);
|
|
5691
5691
|
var Q = class e2 extends Error {
|
|
5692
5692
|
constructor(e4, t2, n2) {
|
|
5693
5693
|
super("MCP error ".concat(e4, ": ").concat(t2)), this.code = e4, this.data = n2, this.name = "McpError";
|
|
@@ -5712,14 +5712,14 @@ function pg(e4) {
|
|
|
5712
5712
|
return e4 === "completed" || e4 === "failed" || e4 === "cancelled";
|
|
5713
5713
|
}
|
|
5714
5714
|
function mg(e4) {
|
|
5715
|
-
let t2 =
|
|
5715
|
+
let t2 = iu(e4), n2 = t2 == null ? void 0 : t2.method;
|
|
5716
5716
|
if (!n2) throw Error("Schema is missing a method literal");
|
|
5717
|
-
let r2 =
|
|
5717
|
+
let r2 = au(n2);
|
|
5718
5718
|
if (typeof r2 != "string") throw Error("Schema method literal must be a string");
|
|
5719
5719
|
return r2;
|
|
5720
5720
|
}
|
|
5721
5721
|
function hg(e4, t2) {
|
|
5722
|
-
let n2 =
|
|
5722
|
+
let n2 = ru(e4, t2);
|
|
5723
5723
|
if (!n2.success) throw n2.error;
|
|
5724
5724
|
return n2.data;
|
|
5725
5725
|
}
|
|
@@ -5761,7 +5761,7 @@ var gg = 6e4, _g = class {
|
|
|
5761
5761
|
if (!pg(a2.status)) return await this._waitForTaskUpdate(r2, t2.signal), await n2();
|
|
5762
5762
|
if (pg(a2.status)) {
|
|
5763
5763
|
let e6 = await this._taskStore.getTaskResult(r2, t2.sessionId);
|
|
5764
|
-
return this._clearTaskQueue(r2), { ...e6, _meta: { ...e6._meta, [
|
|
5764
|
+
return this._clearTaskQueue(r2), { ...e6, _meta: { ...e6._meta, [Ip]: { taskId: r2 } } };
|
|
5765
5765
|
}
|
|
5766
5766
|
return await n2();
|
|
5767
5767
|
};
|
|
@@ -5984,7 +5984,7 @@ var gg = 6e4, _g = class {
|
|
|
5984
5984
|
}
|
|
5985
5985
|
if (o2 && (h2.params = { ...h2.params, task: o2 }), s2) {
|
|
5986
5986
|
var re2;
|
|
5987
|
-
h2.params = { ...h2.params, _meta: { ...((re2 = h2.params) == null ? void 0 : re2._meta) || {}, [
|
|
5987
|
+
h2.params = { ...h2.params, _meta: { ...((re2 = h2.params) == null ? void 0 : re2._meta) || {}, [Ip]: s2 } };
|
|
5988
5988
|
}
|
|
5989
5989
|
let ie2 = (e5) => {
|
|
5990
5990
|
var t3;
|
|
@@ -5995,7 +5995,7 @@ var gg = 6e4, _g = class {
|
|
|
5995
5995
|
if (!(!(n2 == null || (r3 = n2.signal) == null) && r3.aborted)) {
|
|
5996
5996
|
if (e5 instanceof Error) return l2(e5);
|
|
5997
5997
|
try {
|
|
5998
|
-
let n3 =
|
|
5998
|
+
let n3 = ru(t2, e5.result);
|
|
5999
5999
|
n3.success ? c2(n3.data) : l2(n3.error);
|
|
6000
6000
|
} catch (e6) {
|
|
6001
6001
|
l2(e6);
|
|
@@ -6037,7 +6037,7 @@ var gg = 6e4, _g = class {
|
|
|
6037
6037
|
let a2 = t2 == null || (n2 = t2.relatedTask) == null ? void 0 : n2.taskId;
|
|
6038
6038
|
if (a2) {
|
|
6039
6039
|
var o2;
|
|
6040
|
-
let n3 = { ...e4, jsonrpc: "2.0", params: { ...e4.params, _meta: { ...((o2 = e4.params) == null ? void 0 : o2._meta) || {}, [
|
|
6040
|
+
let n3 = { ...e4, jsonrpc: "2.0", params: { ...e4.params, _meta: { ...((o2 = e4.params) == null ? void 0 : o2._meta) || {}, [Ip]: t2.relatedTask } } };
|
|
6041
6041
|
await this._enqueueTaskMessage(a2, { type: "notification", message: n3, timestamp: Date.now() });
|
|
6042
6042
|
return;
|
|
6043
6043
|
}
|
|
@@ -6049,7 +6049,7 @@ var gg = 6e4, _g = class {
|
|
|
6049
6049
|
let r3 = { ...e4, jsonrpc: "2.0" };
|
|
6050
6050
|
if (t2 != null && t2.relatedTask) {
|
|
6051
6051
|
var i3;
|
|
6052
|
-
r3 = { ...r3, params: { ...r3.params, _meta: { ...((i3 = r3.params) == null ? void 0 : i3._meta) || {}, [
|
|
6052
|
+
r3 = { ...r3, params: { ...r3.params, _meta: { ...((i3 = r3.params) == null ? void 0 : i3._meta) || {}, [Ip]: t2.relatedTask } } };
|
|
6053
6053
|
}
|
|
6054
6054
|
(n3 = this._transport) == null || n3.send(r3, t2).catch((e5) => this._onerror(e5));
|
|
6055
6055
|
});
|
|
@@ -6058,7 +6058,7 @@ var gg = 6e4, _g = class {
|
|
|
6058
6058
|
let s2 = { ...e4, jsonrpc: "2.0" };
|
|
6059
6059
|
if (t2 != null && t2.relatedTask) {
|
|
6060
6060
|
var c2;
|
|
6061
|
-
s2 = { ...s2, params: { ...s2.params, _meta: { ...((c2 = s2.params) == null ? void 0 : c2._meta) || {}, [
|
|
6061
|
+
s2 = { ...s2, params: { ...s2.params, _meta: { ...((c2 = s2.params) == null ? void 0 : c2._meta) || {}, [Ip]: t2.relatedTask } } };
|
|
6062
6062
|
}
|
|
6063
6063
|
await this._transport.send(s2, t2);
|
|
6064
6064
|
}
|
|
@@ -6283,29 +6283,29 @@ var wg = class extends _g {
|
|
|
6283
6283
|
var e4;
|
|
6284
6284
|
window.removeEventListener("message", this.messageListener), (e4 = this.onclose) == null || e4.call(this);
|
|
6285
6285
|
}
|
|
6286
|
-
}, Dg =
|
|
6287
|
-
|
|
6288
|
-
var Ag =
|
|
6289
|
-
|
|
6290
|
-
var Ng =
|
|
6291
|
-
|
|
6292
|
-
var Fg =
|
|
6293
|
-
|
|
6294
|
-
var Vg =
|
|
6295
|
-
|
|
6296
|
-
var Hg =
|
|
6297
|
-
|
|
6298
|
-
var Wg =
|
|
6299
|
-
|
|
6300
|
-
var Kg =
|
|
6301
|
-
|
|
6302
|
-
var Yg =
|
|
6286
|
+
}, Dg = V([W("light"), W("dark")]).describe("Color theme preference for the host environment."), Og = V([W("inline"), W("fullscreen"), W("pip")]).describe("Display mode for UI presentation."), kg = H(V([W("--color-background-primary"), W("--color-background-secondary"), W("--color-background-tertiary"), W("--color-background-inverse"), W("--color-background-ghost"), W("--color-background-info"), W("--color-background-danger"), W("--color-background-success"), W("--color-background-warning"), W("--color-background-disabled"), W("--color-text-primary"), W("--color-text-secondary"), W("--color-text-tertiary"), W("--color-text-inverse"), W("--color-text-ghost"), W("--color-text-info"), W("--color-text-danger"), W("--color-text-success"), W("--color-text-warning"), W("--color-text-disabled"), W("--color-border-primary"), W("--color-border-secondary"), W("--color-border-tertiary"), W("--color-border-inverse"), W("--color-border-ghost"), W("--color-border-info"), W("--color-border-danger"), W("--color-border-success"), W("--color-border-warning"), W("--color-border-disabled"), W("--color-ring-primary"), W("--color-ring-secondary"), W("--color-ring-inverse"), W("--color-ring-info"), W("--color-ring-danger"), W("--color-ring-success"), W("--color-ring-warning"), W("--font-sans"), W("--font-mono"), W("--font-weight-normal"), W("--font-weight-medium"), W("--font-weight-semibold"), W("--font-weight-bold"), W("--font-text-xs-size"), W("--font-text-sm-size"), W("--font-text-md-size"), W("--font-text-lg-size"), W("--font-heading-xs-size"), W("--font-heading-sm-size"), W("--font-heading-md-size"), W("--font-heading-lg-size"), W("--font-heading-xl-size"), W("--font-heading-2xl-size"), W("--font-heading-3xl-size"), W("--font-text-xs-line-height"), W("--font-text-sm-line-height"), W("--font-text-md-line-height"), W("--font-text-lg-line-height"), W("--font-heading-xs-line-height"), W("--font-heading-sm-line-height"), W("--font-heading-md-line-height"), W("--font-heading-lg-line-height"), W("--font-heading-xl-line-height"), W("--font-heading-2xl-line-height"), W("--font-heading-3xl-line-height"), W("--border-radius-xs"), W("--border-radius-sm"), W("--border-radius-md"), W("--border-radius-lg"), W("--border-radius-xl"), W("--border-radius-full"), W("--border-width-regular"), W("--shadow-hairline"), W("--shadow-sm"), W("--shadow-md"), W("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming.").describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation."), V([N(), Wd()]).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.")).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.");
|
|
6287
|
+
z({ method: W("ui/open-link"), params: z({ url: N().describe("URL to open in the host's browser") }) });
|
|
6288
|
+
var Ag = z({ isError: I().optional().describe("True if the host failed to open the URL (e.g., due to security policy).") }).passthrough(), jg = z({ isError: I().optional().describe("True if the download failed (e.g., user cancelled or host denied).") }).passthrough(), Mg = z({ isError: I().optional().describe("True if the host rejected or failed to deliver the message.") }).passthrough();
|
|
6289
|
+
z({ method: W("ui/notifications/sandbox-proxy-ready"), params: z({}) });
|
|
6290
|
+
var Ng = z({ connectDomains: R(N()).optional().describe("Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP `connect-src` directive\n- Empty or omitted \u2192 no network connections (secure default)"), resourceDomains: R(N()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted \u2192 no network resources (secure default)"), frameDomains: R(N()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted \u2192 no nested iframes allowed (`frame-src 'none'`)"), baseUriDomains: R(N()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted \u2192 only same origin allowed (`base-uri 'self'`)") }), Pg = z({ camera: z({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."), microphone: z({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."), geolocation: z({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."), clipboardWrite: z({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.") });
|
|
6291
|
+
z({ method: W("ui/notifications/size-changed"), params: z({ width: F().optional().describe("New width in pixels."), height: F().optional().describe("New height in pixels.") }) });
|
|
6292
|
+
var Fg = z({ method: W("ui/notifications/tool-input"), params: z({ arguments: H(N(), L().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.") }) }), Ig = z({ method: W("ui/notifications/tool-input-partial"), params: z({ arguments: H(N(), L().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).") }) }), Lg = z({ method: W("ui/notifications/tool-cancelled"), params: z({ reason: N().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").') }) }), Rg = z({ fonts: N().optional() }), zg = z({ variables: kg.optional().describe("CSS variables for theming the app."), css: Rg.optional().describe("CSS blocks that apps can inject.") }), Bg = z({ method: W("ui/resource-teardown"), params: z({}) });
|
|
6293
|
+
H(N(), L());
|
|
6294
|
+
var Vg = z({ text: z({}).optional().describe("Host supports text content blocks."), image: z({}).optional().describe("Host supports image content blocks."), audio: z({}).optional().describe("Host supports audio content blocks."), resource: z({}).optional().describe("Host supports resource content blocks."), resourceLink: z({}).optional().describe("Host supports resource link content blocks."), structuredContent: z({}).optional().describe("Host supports structured content.") });
|
|
6295
|
+
z({ method: W("ui/notifications/request-teardown"), params: z({}).optional() });
|
|
6296
|
+
var Hg = z({ experimental: z({}).optional().describe("Experimental features (structure TBD)."), openLinks: z({}).optional().describe("Host supports opening external URLs."), downloadFile: z({}).optional().describe("Host supports file downloads via ui/download-file."), serverTools: z({ listChanged: I().optional().describe("Host supports tools/list_changed notifications.") }).optional().describe("Host can proxy tool calls to the MCP server."), serverResources: z({ listChanged: I().optional().describe("Host supports resources/list_changed notifications.") }).optional().describe("Host can proxy resource reads to the MCP server."), logging: z({}).optional().describe("Host accepts log messages."), sandbox: z({ permissions: Pg.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."), csp: Ng.optional().describe("CSP domains approved by the host.") }).optional().describe("Sandbox configuration applied by the host."), updateModelContext: Vg.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."), message: Vg.optional().describe("Host supports receiving content messages (ui/message) from the view."), sampling: z({ tools: z({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.") }).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.") }), Ug = z({ experimental: z({}).optional().describe("Experimental features (structure TBD)."), tools: z({ listChanged: I().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."), availableDisplayModes: R(Og).optional().describe("Display modes the app supports.") });
|
|
6297
|
+
z({ method: W("ui/notifications/initialized"), params: z({}).optional() }), z({ csp: Ng.optional().describe("Content Security Policy configuration for UI resources."), permissions: Pg.optional().describe("Sandbox permissions requested by the UI resource."), domain: N().optional().describe("Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., `{hash}.claudemcpcontent.com`)\n- URL-derived subdomains (e.g., `www-example-com.oaiusercontent.com`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation)."), prefersBorder: I().optional().describe("Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- `true`: request visible border + background\n- `false`: request no visible border + background\n- omitted: host decides border") }), z({ method: W("ui/request-display-mode"), params: z({ mode: Og.describe("The display mode being requested.") }) });
|
|
6298
|
+
var Wg = z({ mode: Og.describe("The display mode that was actually set. May differ from requested if not supported.") }).passthrough(), Gg = V([W("model"), W("app")]).describe("Tool visibility scope - who can access the tool.");
|
|
6299
|
+
z({ resourceUri: N().optional(), visibility: R(Gg).optional().describe('Who can access this tool. Default: ["model", "app"]\n- "model": Tool visible to and callable by the agent\n- "app": Tool callable by the app from this server only'), csp: Zd().optional(), permissions: Zd().optional() }), z({ mimeTypes: R(N()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.') }), z({ method: W("ui/download-file"), params: z({ contents: R(V([gh, _h])).describe("Resource contents to download \u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.") }) }), z({ method: W("ui/message"), params: z({ role: W("user").describe('Message role, currently only "user" is supported.'), content: R(vh).describe("Message content blocks (text, image, etc.).") }) }), z({ method: W("ui/notifications/sandbox-resource-ready"), params: z({ html: N().describe("HTML content to load into the inner iframe."), sandbox: N().optional().describe("Optional override for the inner iframe's sandbox attribute."), csp: Ng.optional().describe("CSP configuration from resource metadata."), permissions: Pg.optional().describe("Sandbox permissions from resource metadata.") }) });
|
|
6300
|
+
var Kg = z({ method: W("ui/notifications/tool-result"), params: Dh.describe("Standard MCP tool execution result.") }), qg = z({ toolInfo: z({ id: qp.optional().describe("JSON-RPC id of the tools/call request."), tool: wh.describe("Tool definition including name, inputSchema, etc.") }).optional().describe("Metadata of the tool call that instantiated this App."), theme: Dg.optional().describe("Current color theme preference."), styles: zg.optional().describe("Style configuration for theming the app."), displayMode: Og.optional().describe("How the UI is currently displayed."), availableDisplayModes: R(Og).optional().describe("Display modes the host supports."), containerDimensions: V([z({ height: F().describe("Fixed container height in pixels.") }), z({ maxHeight: V([F(), Wd()]).optional().describe("Maximum container height in pixels.") })]).and(V([z({ width: F().describe("Fixed container width in pixels.") }), z({ maxWidth: V([F(), Wd()]).optional().describe("Maximum container width in pixels.") })])).optional().describe("Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight."), locale: N().optional().describe("User's language and region preference in BCP 47 format."), timeZone: N().optional().describe("User's timezone in IANA format."), userAgent: N().optional().describe("Host application identifier."), platform: V([W("web"), W("desktop"), W("mobile")]).optional().describe("Platform type for responsive design decisions."), deviceCapabilities: z({ touch: I().optional().describe("Whether the device supports touch input."), hover: I().optional().describe("Whether the device supports hover interactions.") }).optional().describe("Device input capabilities."), safeAreaInsets: z({ top: F().describe("Top safe area inset in pixels."), right: F().describe("Right safe area inset in pixels."), bottom: F().describe("Bottom safe area inset in pixels."), left: F().describe("Left safe area inset in pixels.") }).optional().describe("Mobile safe area boundaries in pixels.") }).passthrough(), Jg = z({ method: W("ui/notifications/host-context-changed"), params: qg.describe("Partial context update containing only changed fields.") });
|
|
6301
|
+
z({ method: W("ui/update-model-context"), params: z({ content: R(vh).optional().describe("Context content blocks (text, image, etc.)."), structuredContent: H(N(), L().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.") }) }), z({ method: W("ui/initialize"), params: z({ appInfo: cm.describe("App identification (name and version)."), appCapabilities: Ug.describe("Features and capabilities this app provides."), protocolVersion: N().describe("Protocol version this app supports.") }) });
|
|
6302
|
+
var Yg = z({ protocolVersion: N().describe('Negotiated protocol version string (e.g., "2025-11-21").'), hostInfo: cm.describe("Host application identification and version."), hostCapabilities: Hg.describe("Features and capabilities provided by the host."), hostContext: qg.describe("Rich context about the host environment.") }).passthrough(), Xg = { target: "draft-2020-12" };
|
|
6303
6303
|
async function Zg(e4, t2) {
|
|
6304
6304
|
let n2 = e4["~standard"];
|
|
6305
6305
|
if (n2.jsonSchema) return n2.jsonSchema[t2](Xg);
|
|
6306
6306
|
if (n2.vendor === "zod") {
|
|
6307
6307
|
let { z: n3 } = await Cg(async () => {
|
|
6308
|
-
let { z: e5 } = await Promise.resolve().then(() =>
|
|
6308
|
+
let { z: e5 } = await Promise.resolve().then(() => Fp);
|
|
6309
6309
|
return { z: e5 };
|
|
6310
6310
|
}, __VITE_PRELOAD__);
|
|
6311
6311
|
return n3.toJSONSchema(e4, { io: t2 });
|
|
@@ -6324,7 +6324,15 @@ async function Qg(e4, t2, n2 = "") {
|
|
|
6324
6324
|
}
|
|
6325
6325
|
return r2.value;
|
|
6326
6326
|
}
|
|
6327
|
-
|
|
6327
|
+
function $g(e4, t2 = document.documentElement) {
|
|
6328
|
+
for (let [n2, r2] of Object.entries(e4)) r2 !== void 0 && t2.style.setProperty(n2, r2);
|
|
6329
|
+
}
|
|
6330
|
+
function e_(e4) {
|
|
6331
|
+
if (document.getElementById("__mcp-host-fonts")) return;
|
|
6332
|
+
let t2 = document.createElement("style");
|
|
6333
|
+
t2.id = "__mcp-host-fonts", t2.textContent = e4, document.head.appendChild(t2);
|
|
6334
|
+
}
|
|
6335
|
+
var t_ = class e3 extends wg {
|
|
6328
6336
|
_assertInitialized(e4) {
|
|
6329
6337
|
var t2;
|
|
6330
6338
|
if (this._initializedSent) return;
|
|
@@ -6556,59 +6564,59 @@ var $g = class e3 extends wg {
|
|
|
6556
6564
|
}
|
|
6557
6565
|
}
|
|
6558
6566
|
};
|
|
6559
|
-
o(
|
|
6560
|
-
var
|
|
6561
|
-
function
|
|
6562
|
-
let t2 =
|
|
6567
|
+
o(t_, "ONE_SHOT_EVENTS", /* @__PURE__ */ new Set(["toolinput", "toolinputpartial", "toolresult", "toolcancelled"]));
|
|
6568
|
+
var n_ = { sun: "\u2609", moon: "\u263D", mercury: "\u263F", venus: "\u2640", mars: "\u2642", jupiter: "\u2643", saturn: "\u2644", uranus: "\u2645", neptune: "\u2646", pluto: "\u2647", chiron: "\u26B7", meannode: "\u260A", north_node: "\u260A", true_node: "\u260A", south_node: "\u260B", truenode: "\u260A", north_node_mean: "\u260A", north_node_true: "\u260A", south_node_mean: "\u260B", south_node_true: "\u260B", asc: "Asc", mc: "MC", ascendant: "Asc", midheaven: "MC" }, r_ = { sun: "--planet-sun", moon: "--planet-moon", mercury: "--planet-mercury", venus: "--planet-venus", mars: "--planet-mars", jupiter: "--planet-jupiter", saturn: "--planet-saturn", uranus: "--planet-uranus", neptune: "--planet-neptune", pluto: "--planet-pluto" }, i_ = { conjunction: "\u260C", opposition: "\u260D", square: "\u25A1", trine: "\u25B3", sextile: "\u26B9" };
|
|
6569
|
+
function a_(e4) {
|
|
6570
|
+
let t2 = r_[e4];
|
|
6563
6571
|
return t2 ? "var(".concat(t2, ")") : "var(--accent, oklch(72% 0.10 250))";
|
|
6564
6572
|
}
|
|
6565
|
-
function
|
|
6573
|
+
function o_(e4) {
|
|
6566
6574
|
var t2;
|
|
6567
6575
|
let n2 = (e4 == null ? "" : e4).toLowerCase();
|
|
6568
|
-
return (t2 =
|
|
6576
|
+
return (t2 = n_[n2]) == null ? n2 ? n2.charAt(0).toUpperCase() : "\u2022" : t2;
|
|
6569
6577
|
}
|
|
6570
|
-
function
|
|
6578
|
+
function s_(e4) {
|
|
6571
6579
|
return e4 ? e4.charAt(0).toUpperCase() + e4.slice(1) : "";
|
|
6572
6580
|
}
|
|
6573
|
-
function
|
|
6581
|
+
function c_(e4) {
|
|
6574
6582
|
if (!e4) return null;
|
|
6575
6583
|
let t2 = new Date(e4).getTime();
|
|
6576
6584
|
return isNaN(t2) ? null : t2;
|
|
6577
6585
|
}
|
|
6578
|
-
function
|
|
6579
|
-
let t2 =
|
|
6586
|
+
function l_(e4) {
|
|
6587
|
+
let t2 = c_(e4);
|
|
6580
6588
|
return t2 == null ? e4 : new Date(t2).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
6581
6589
|
}
|
|
6582
|
-
function
|
|
6583
|
-
let t2 =
|
|
6590
|
+
function u_(e4) {
|
|
6591
|
+
let t2 = c_(e4);
|
|
6584
6592
|
return t2 == null ? e4 : new Date(t2).toLocaleDateString("en-US", { weekday: "short", month: "short", day: "numeric" });
|
|
6585
6593
|
}
|
|
6586
|
-
function
|
|
6587
|
-
let t2 =
|
|
6594
|
+
function d_(e4) {
|
|
6595
|
+
let t2 = c_(e4);
|
|
6588
6596
|
return t2 == null ? "\u2014" : new Date(t2).toLocaleDateString("en-US", { month: "long", year: "numeric" });
|
|
6589
6597
|
}
|
|
6590
6598
|
function $(e4) {
|
|
6591
6599
|
return String(e4 == null ? "" : e4).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
6592
6600
|
}
|
|
6593
|
-
function
|
|
6601
|
+
function f_(e4) {
|
|
6594
6602
|
var t2, n2;
|
|
6595
6603
|
if (e4.zodiac_sign == null) return e4.target_longitude == null ? "" : "".concat(Math.round(e4.target_longitude * 10) / 10, "\xB0");
|
|
6596
6604
|
let r2 = (t2 = e4.zodiac_degree) == null ? 0 : t2, i2 = (n2 = e4.zodiac_minute) == null ? 0 : n2;
|
|
6597
|
-
return "".concat(r2, "\xB0").concat(String(i2).padStart(2, "0"), "\u2032 ").concat(
|
|
6605
|
+
return "".concat(r2, "\xB0").concat(String(i2).padStart(2, "0"), "\u2032 ").concat(s_(e4.zodiac_sign));
|
|
6598
6606
|
}
|
|
6599
|
-
function
|
|
6607
|
+
function p_(e4, t2, n2, r2) {
|
|
6600
6608
|
var i2, a2, o2;
|
|
6601
6609
|
let s2 = ((i2 = t2.transits) == null ? [] : i2).slice().sort((e5, t3) => {
|
|
6602
6610
|
var n3, r3;
|
|
6603
|
-
return ((n3 =
|
|
6604
|
-
}), c2 = (a2 = t2.aspect_label) == null ? "conjunction" : a2, l2 = (o2 =
|
|
6611
|
+
return ((n3 = c_(e5.date)) == null ? 0 : n3) - ((r3 = c_(t3.date)) == null ? 0 : r3);
|
|
6612
|
+
}), c2 = (a2 = t2.aspect_label) == null ? "conjunction" : a2, l2 = (o2 = i_[c2]) == null ? "" : o2;
|
|
6605
6613
|
if (s2.length === 0) {
|
|
6606
6614
|
e4.innerHTML = '<div class="empty-state"><div class="empty-icon" aria-hidden="true">\u{1F52D}</div><p class="empty-title">No transits found</p><p class="empty-desc">No exact transit hits matched this search window and criteria.</p></div>';
|
|
6607
6615
|
return;
|
|
6608
6616
|
}
|
|
6609
|
-
let u2 = s2[0].date, d2 = s2[s2.length - 1].date, f2 = '<div class="tl-header"><div class="tl-header-main"><h1 class="tl-title">Transit Timeline</h1><p class="tl-subtitle">' + $(String(s2.length)) + (s2.length === 1 ? " event" : " events") + " \xB7 " + $(
|
|
6617
|
+
let u2 = s2[0].date, d2 = s2[s2.length - 1].date, f2 = '<div class="tl-header"><div class="tl-header-main"><h1 class="tl-title">Transit Timeline</h1><p class="tl-subtitle">' + $(String(s2.length)) + (s2.length === 1 ? " event" : " events") + " \xB7 " + $(l_(u2)) + " \u2014 " + $(l_(d2)) + "</p></div>" + (c2 && c2 !== "conjunction" ? '<span class="tl-aspect-badge">' + $(l2 ? l2 + " " : "") + $(s_(c2)) + "s</span>" : "") + "</div>", p2 = [], ee2 = 0, te2 = [];
|
|
6610
6618
|
for (let e5 of s2) {
|
|
6611
|
-
let t3 =
|
|
6619
|
+
let t3 = d_(e5.date), n3 = p2.length && p2[p2.length - 1].key === t3 ? p2[p2.length - 1] : null;
|
|
6612
6620
|
n3 || (n3 = { key: t3, events: [] }, p2.push(n3)), n3.events.push(e5);
|
|
6613
6621
|
}
|
|
6614
6622
|
let m2 = p2.map((e5) => {
|
|
@@ -6616,14 +6624,14 @@ function d_(e4, t2, n2, r2) {
|
|
|
6616
6624
|
var t4, n3, r3, i3, a3;
|
|
6617
6625
|
let o3 = ee2++;
|
|
6618
6626
|
te2[o3] = e6;
|
|
6619
|
-
let s3 = ((t4 = (n3 = e6.planet) == null ? e6.planet_name : n3) == null ? "" : t4).toLowerCase(), l3 =
|
|
6620
|
-
return '<div class="tl-event" data-idx="' + o3 + '" tabindex="0" role="button" aria-label="' + $(d3 + " " + p3 + (e6.natal_point ? " natal " + e6.natal_point : "") + " on " +
|
|
6627
|
+
let s3 = ((t4 = (n3 = e6.planet) == null ? e6.planet_name : n3) == null ? "" : t4).toLowerCase(), l3 = a_(s3), u3 = o_(s3), d3 = s_((r3 = e6.planet_name) == null ? s3 : r3), f3 = e6.is_retrograde ? '<span class="tl-retro" title="Retrograde at exact crossing">\u211E</span>' : "", p3 = (i3 = e6.aspect) == null ? c2 : i3, m3 = (a3 = i_[p3]) == null ? "" : a3, h3 = e6.natal_point ? '<span class="tl-natal">' + $(m3 ? m3 + " " : "") + $(p3) + ' natal <span class="tl-natal-glyph">' + $(o_(e6.natal_point)) + "</span> " + $(s_(e6.natal_point)) + "</span>" : '<span class="tl-natal">' + $(m3 ? m3 + " " : "") + $(s_(p3)) + "</span>", ne3 = f_(e6), re3 = e6.window_start === void 0 ? "" : "In orb " + (e6.window_start ? l_(e6.window_start) : "\u2026") + " \u2013 " + (e6.window_end ? l_(e6.window_end) : "\u2026") + (e6.pass_count && e6.pass_count > 1 ? " \xB7 pass " + e6.pass_index + " of " + e6.pass_count : "");
|
|
6628
|
+
return '<div class="tl-event" data-idx="' + o3 + '" tabindex="0" role="button" aria-label="' + $(d3 + " " + p3 + (e6.natal_point ? " natal " + e6.natal_point : "") + " on " + l_(e6.date)) + '"><div class="tl-event-rail" aria-hidden="true"><span class="tl-node" style="--planet-color:' + l3 + '"></span></div><div class="tl-event-glyph" style="--planet-color:' + l3 + '" aria-hidden="true">' + u3 + '</div><div class="tl-event-body"><div class="tl-event-line1"><span class="tl-planet-name">' + $(d3) + "</span>" + f3 + h3 + '</div><div class="tl-event-line2"><span class="tl-date">' + $(u_(e6.date)) + "</span>" + (ne3 ? '<span class="tl-dot">\xB7</span><span class="tl-pos">' + $(ne3) + "</span>" : "") + "</div>" + (re3 ? '<div class="tl-event-line2"><span class="tl-pos">' + $(re3) + "</span></div>" : "") + '<button class="tl-ask" type="button" data-ask="' + o3 + '">\u2728 Interpret this transit</button></div></div>';
|
|
6621
6629
|
}).join("");
|
|
6622
6630
|
return '<section class="tl-group"><h2 class="tl-group-label">' + $(e5.key) + '</h2><div class="tl-events">' + t3 + "</div></section>";
|
|
6623
6631
|
}).join(""), h2 = "";
|
|
6624
6632
|
t2.natal_positions && Object.keys(t2.natal_positions).length && (h2 = '<div class="tl-natal-bar"><span class="tl-natal-bar-label">Natal targets</span>' + Object.keys(t2.natal_positions).map((e5) => {
|
|
6625
6633
|
let n3 = t2.natal_positions[e5];
|
|
6626
|
-
return '<span class="tl-chip">' + $(
|
|
6634
|
+
return '<span class="tl-chip">' + $(o_(e5)) + " " + $(String(Math.round(n3 * 10) / 10)) + "\xB0</span>";
|
|
6627
6635
|
}).join("") + "</div>"), e4.innerHTML = f2 + h2 + '<div class="tl-scroll">' + m2 + '</div><div class="tl-actions"><button class="action-btn action-btn--primary" id="tl-interpret-btn" type="button">\u2728 Interpret this period</button></div>';
|
|
6628
6636
|
function ne2(t3, r3) {
|
|
6629
6637
|
e4.querySelectorAll(".tl-event.active").forEach((e5) => e5.classList.remove("active")), t3.classList.add("active"), n2(r3);
|
|
@@ -6647,12 +6655,25 @@ function d_(e4, t2, n2, r2) {
|
|
|
6647
6655
|
let re2 = document.getElementById("tl-interpret-btn");
|
|
6648
6656
|
re2 && re2.addEventListener("click", () => r2({ type: "full_timeline", data: {} }));
|
|
6649
6657
|
}
|
|
6650
|
-
|
|
6651
|
-
|
|
6658
|
+
var m_ = ["inline", "fullscreen", "pip"];
|
|
6659
|
+
function h_(e4) {
|
|
6660
|
+
var t2;
|
|
6661
|
+
return (t2 = e4.getHostContext) == null ? void 0 : t2.call(e4);
|
|
6662
|
+
}
|
|
6663
|
+
function g_(e4) {
|
|
6664
|
+
var t2;
|
|
6665
|
+
let n2 = (t2 = h_(e4)) == null ? void 0 : t2.availableDisplayModes;
|
|
6666
|
+
return Array.isArray(n2) ? n2 : [];
|
|
6667
|
+
}
|
|
6668
|
+
var __ = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">\n <polyline points="5,1 1,1 1,5"/>\n <polyline points="11,1 15,1 15,5"/>\n <polyline points="5,15 1,15 1,11"/>\n <polyline points="11,15 15,15 15,11"/>\n </svg>', v_ = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">\n <polyline points="1,5 5,5 5,1"/>\n <polyline points="15,5 11,5 11,1"/>\n <polyline points="1,11 5,11 5,15"/>\n <polyline points="15,11 11,11 11,15"/>\n </svg>', y_ = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" aria-hidden="true">\n <rect x="1" y="2.5" width="14" height="11" rx="1.5"/>\n <rect x="8" y="8" width="5.5" height="4" rx="0.8" fill="currentColor" stroke="none"/>\n </svg>', b_ = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">\n <rect x="1" y="2.5" width="14" height="11" rx="1.5"/>\n <polyline points="6,6 10,10"/>\n <polyline points="6,9.5 6,6 9.5,6"/>\n </svg>';
|
|
6669
|
+
function x_(e4, t2, n2 = [], r2 = {}) {
|
|
6670
|
+
var i2;
|
|
6652
6671
|
if (!t2 || t2.querySelector("#btn-fullscreen")) return;
|
|
6653
6672
|
let a2 = document.createElement("button");
|
|
6654
|
-
a2.id = "btn-fullscreen", a2.className = "pan-btn pan-btn--fullscreen", a2.
|
|
6655
|
-
let o2 =
|
|
6673
|
+
a2.id = "btn-fullscreen", a2.type = "button", a2.className = "pan-btn pan-btn--fullscreen", a2.innerHTML = __, a2.hidden = true;
|
|
6674
|
+
let o2 = null;
|
|
6675
|
+
r2.pip && (o2 = document.createElement("button"), o2.id = "btn-pip", o2.type = "button", o2.className = "pan-btn pan-btn--pip", o2.innerHTML = y_, o2.hidden = true);
|
|
6676
|
+
let s2 = ["param-controls", "aspect-filter", "controls-panel", "mode-badge"];
|
|
6656
6677
|
function c2() {
|
|
6657
6678
|
if (document.getElementById("fs-bottom-bar") || !n2.length) return;
|
|
6658
6679
|
let e5 = document.getElementById("app");
|
|
@@ -6685,59 +6706,59 @@ function f_(e4, t2, n2 = []) {
|
|
|
6685
6706
|
}
|
|
6686
6707
|
e5.remove();
|
|
6687
6708
|
}
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6709
|
+
let u2 = "inline";
|
|
6710
|
+
function d2(t3) {
|
|
6711
|
+
let n3 = u2 === "fullscreen", r3 = t3 === "fullscreen";
|
|
6712
|
+
u2 = t3, document.body.classList.toggle("is-fullscreen", r3), document.body.classList.toggle("is-pip", t3 === "pip"), document.documentElement.setAttribute("data-display-mode", t3), a2.innerHTML = r3 ? v_ : __;
|
|
6713
|
+
let i3 = r3 ? "Exit fullscreen" : "Enter fullscreen";
|
|
6714
|
+
if (a2.setAttribute("aria-label", i3), a2.title = r3 ? "Exit fullscreen (Esc)" : i3, o2) {
|
|
6715
|
+
let e5 = t3 === "pip";
|
|
6716
|
+
o2.innerHTML = e5 ? b_ : y_;
|
|
6717
|
+
let n4 = e5 ? "Return to the conversation" : "Pop out (picture-in-picture)";
|
|
6718
|
+
o2.setAttribute("aria-label", n4), o2.title = n4;
|
|
6719
|
+
}
|
|
6720
|
+
r3 && !n3 && (c2(), S_(e4)), !r3 && n3 && l2();
|
|
6691
6721
|
}
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6722
|
+
function f2() {
|
|
6723
|
+
var n3, r3;
|
|
6724
|
+
let i3 = g_(e4);
|
|
6725
|
+
a2.hidden = !i3.includes("fullscreen"), o2 && (o2.hidden = !i3.includes("pip")), (!a2.hidden || o2 && !o2.hidden) && (t2.hidden = false);
|
|
6726
|
+
let s3 = (n3 = (r3 = h_(e4)) == null ? void 0 : r3.displayMode) == null ? "inline" : n3;
|
|
6727
|
+
s3 !== u2 && d2(s3);
|
|
6728
|
+
}
|
|
6729
|
+
async function p2(t3) {
|
|
6730
|
+
if (!(t3 !== "inline" && !g_(e4).includes(t3))) try {
|
|
6731
|
+
var n3;
|
|
6732
|
+
let r3 = await e4.requestDisplayMode({ mode: t3 });
|
|
6733
|
+
d2((n3 = r3 == null ? void 0 : r3.mode) == null ? u2 : n3);
|
|
6702
6734
|
} catch (e5) {
|
|
6703
6735
|
console.warn("[AppChrome] requestDisplayMode failed:", e5);
|
|
6704
6736
|
}
|
|
6705
|
-
}), document.addEventListener("keydown", async (t3) => {
|
|
6706
|
-
if (t3.key === "Escape" && document.body.classList.contains("is-fullscreen")) {
|
|
6707
|
-
t3.preventDefault();
|
|
6708
|
-
try {
|
|
6709
|
-
var n3;
|
|
6710
|
-
let t4 = await e4.requestDisplayMode({ mode: "inline" });
|
|
6711
|
-
u2((n3 = t4 == null ? void 0 : t4.mode) == null ? "inline" : n3);
|
|
6712
|
-
} catch (e5) {
|
|
6713
|
-
console.warn("[AppChrome] Escape fullscreen failed:", e5);
|
|
6714
|
-
}
|
|
6715
|
-
}
|
|
6716
|
-
}), (r2 = e4.addEventListener) == null || r2.call(e4, "hostcontextchanged", (e5) => {
|
|
6717
|
-
var t3;
|
|
6718
|
-
u2((t3 = e5 == null ? void 0 : e5.displayMode) == null ? "inline" : t3);
|
|
6719
|
-
});
|
|
6720
|
-
let d2 = (i2 = e4.getHostContext) == null ? void 0 : i2.call(e4);
|
|
6721
|
-
d2 != null && d2.displayMode && u2(d2.displayMode), t2.insertBefore(a2, t2.firstChild), t2.removeAttribute("hidden");
|
|
6722
|
-
function f2() {
|
|
6723
|
-
let e5 = document.getElementById("fs-hint-banner");
|
|
6724
|
-
e5 && e5.remove();
|
|
6725
|
-
let t3 = document.createElement("div");
|
|
6726
|
-
t3.id = "fs-hint-banner", Object.assign(t3.style, { position: "fixed", top: "12px", left: "50%", transform: "translateX(-50%)", background: "oklch(14% 0.012 265 / 0.90)", backdropFilter: "blur(12px)", WebkitBackdropFilter: "blur(12px)", border: "1px solid oklch(72% 0.12 80 / 0.3)", borderRadius: "20px", padding: "6px 16px", fontSize: "11px", fontWeight: "600", color: "oklch(80% 0.08 80)", letterSpacing: "0.04em", zIndex: "9999", pointerEvents: "none", opacity: "0", transition: "opacity 300ms ease", whiteSpace: "nowrap" }), t3.textContent = "Esc \u2014 exit fullscreen & return to chat", document.body.appendChild(t3), requestAnimationFrame(() => {
|
|
6727
|
-
t3.style.opacity = "1";
|
|
6728
|
-
}), setTimeout(() => {
|
|
6729
|
-
t3.style.opacity = "0", setTimeout(() => t3.remove(), 350);
|
|
6730
|
-
}, 4e3);
|
|
6731
6737
|
}
|
|
6738
|
+
a2.addEventListener("click", () => {
|
|
6739
|
+
p2(u2 === "fullscreen" ? "inline" : "fullscreen");
|
|
6740
|
+
}), o2 == null || o2.addEventListener("click", () => {
|
|
6741
|
+
p2(u2 === "pip" ? "inline" : "pip");
|
|
6742
|
+
}), document.addEventListener("keydown", (e5) => {
|
|
6743
|
+
e5.key !== "Escape" || u2 !== "fullscreen" || (e5.preventDefault(), p2("inline"));
|
|
6744
|
+
}), (i2 = e4.addEventListener) == null || i2.call(e4, "hostcontextchanged", f2), o2 && t2.insertBefore(o2, t2.firstChild), t2.insertBefore(a2, t2.firstChild), d2("inline"), f2();
|
|
6745
|
+
}
|
|
6746
|
+
function S_(e4) {
|
|
6747
|
+
var t2, n2;
|
|
6748
|
+
(t2 = document.getElementById("fs-hint-banner")) == null || t2.remove();
|
|
6749
|
+
let r2 = (n2 = h_(e4)) == null ? void 0 : n2.deviceCapabilities, i2 = !!(r2 != null && r2.touch) && (r2 == null ? void 0 : r2.hover) === false, a2 = document.createElement("div");
|
|
6750
|
+
a2.id = "fs-hint-banner", a2.className = "fs-hint-banner", a2.setAttribute("role", "status"), a2.textContent = i2 ? "Tap the collapse button to return to the chat" : "Esc \u2014 exit fullscreen & return to chat", document.body.appendChild(a2), requestAnimationFrame(() => a2.classList.add("visible")), setTimeout(() => {
|
|
6751
|
+
a2.classList.remove("visible"), setTimeout(() => a2.remove(), 350);
|
|
6752
|
+
}, 4e3);
|
|
6732
6753
|
}
|
|
6733
|
-
function
|
|
6754
|
+
function C_(e4, t2) {
|
|
6734
6755
|
e4.ontoolcancelled = (e5) => {
|
|
6735
6756
|
var n2, r2, i2;
|
|
6736
6757
|
let a2 = (n2 = e5.reason) == null ? "Tool call was cancelled" : n2;
|
|
6737
|
-
console.warn("[AppChrome] Tool cancelled:", a2), (r2 = t2.statusFn) == null || r2.call(t2, null), !t2.loadingEl.hidden && t2.loadingEl.getAttribute("hidden") === null && (t2.loadingEl.setAttribute("hidden", ""), t2.contentEl.removeAttribute("hidden")), (i2 = t2.paramControls) == null || (i2 = i2.call(t2)) == null || i2.setBusy(false),
|
|
6758
|
+
console.warn("[AppChrome] Tool cancelled:", a2), (r2 = t2.statusFn) == null || r2.call(t2, null), !t2.loadingEl.hidden && t2.loadingEl.getAttribute("hidden") === null && (t2.loadingEl.setAttribute("hidden", ""), t2.contentEl.removeAttribute("hidden")), (i2 = t2.paramControls) == null || (i2 = i2.call(t2)) == null || i2.setBusy(false), w_(a2);
|
|
6738
6759
|
};
|
|
6739
6760
|
}
|
|
6740
|
-
function
|
|
6761
|
+
function w_(e4) {
|
|
6741
6762
|
var t2;
|
|
6742
6763
|
(t2 = document.getElementById("cancel-toast")) == null || t2.remove();
|
|
6743
6764
|
let n2 = document.createElement("div");
|
|
@@ -6745,20 +6766,34 @@ function m_(e4) {
|
|
|
6745
6766
|
n2.classList.remove("visible"), setTimeout(() => n2.remove(), 300);
|
|
6746
6767
|
}, 3e3);
|
|
6747
6768
|
}
|
|
6748
|
-
function
|
|
6769
|
+
function T_(e4) {
|
|
6749
6770
|
var t2;
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6771
|
+
let n2 = document.documentElement, r2 = (e5, t3) => {
|
|
6772
|
+
typeof t3 == "number" && Number.isFinite(t3) && t3 > 0 ? n2.style.setProperty(e5, "".concat(t3, "px")) : n2.style.removeProperty(e5);
|
|
6773
|
+
}, i2 = (e5, t3) => {
|
|
6774
|
+
t3 === void 0 ? n2.removeAttribute(e5) : n2.setAttribute(e5, t3 ? "true" : "false");
|
|
6775
|
+
};
|
|
6776
|
+
function a2() {
|
|
6777
|
+
var t3, a3, o2;
|
|
6778
|
+
let s2 = h_(e4);
|
|
6779
|
+
if (!s2) return;
|
|
6780
|
+
let c2 = (t3 = s2.containerDimensions) == null ? {} : t3;
|
|
6781
|
+
r2("--host-width", c2.width), r2("--host-max-width", c2.maxWidth), r2("--host-height", c2.height), r2("--host-max-height", c2.maxHeight);
|
|
6782
|
+
let l2 = (a3 = s2.safeAreaInsets) == null ? {} : a3;
|
|
6783
|
+
for (let e5 of ["top", "right", "bottom", "left"]) {
|
|
6784
|
+
let t4 = l2[e5];
|
|
6785
|
+
n2.style.setProperty("--safe-".concat(e5), typeof t4 == "number" && t4 > 0 ? "".concat(t4, "px") : "0px");
|
|
6786
|
+
}
|
|
6787
|
+
let u2 = l2.bottom;
|
|
6788
|
+
n2.toggleAttribute("data-safe-bottom", typeof u2 == "number" && u2 > 0), typeof s2.platform == "string" && n2.setAttribute("data-platform", s2.platform);
|
|
6789
|
+
let d2 = s2.deviceCapabilities;
|
|
6790
|
+
i2("data-touch", d2 == null ? void 0 : d2.touch), i2("data-hover", d2 == null ? void 0 : d2.hover);
|
|
6791
|
+
let f2 = s2.styles;
|
|
6792
|
+
f2 != null && f2.variables && $g(f2.variables, n2), !(f2 == null || (o2 = f2.css) == null) && o2.fonts && e_(f2.css.fonts);
|
|
6793
|
+
}
|
|
6794
|
+
a2(), (t2 = e4.addEventListener) == null || t2.call(e4, "hostcontextchanged", a2);
|
|
6760
6795
|
}
|
|
6761
|
-
function
|
|
6796
|
+
function E_(e4) {
|
|
6762
6797
|
var t2;
|
|
6763
6798
|
if (!e4) return null;
|
|
6764
6799
|
if (e4.structuredContent != null && typeof e4.structuredContent == "object") return e4.structuredContent;
|
|
@@ -6771,23 +6806,23 @@ function g_(e4) {
|
|
|
6771
6806
|
}
|
|
6772
6807
|
return null;
|
|
6773
6808
|
}
|
|
6774
|
-
function
|
|
6809
|
+
function D_(e4) {
|
|
6775
6810
|
return e4.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
6776
6811
|
}
|
|
6777
|
-
function
|
|
6778
|
-
let { container: t2, message: n2, onRetry: r2, retryLabel: i2 = "\u21BA Try again" } = e4, a2 = r2 ? '<button class="error-retry-btn" type="button">'.concat(
|
|
6779
|
-
if (t2.innerHTML = '<div class="error-state" role="alert"><div class="error-icon" aria-hidden="true">\u26A0\uFE0F</div><p class="error-msg">'.concat(
|
|
6812
|
+
function O_(e4) {
|
|
6813
|
+
let { container: t2, message: n2, onRetry: r2, retryLabel: i2 = "\u21BA Try again" } = e4, a2 = r2 ? '<button class="error-retry-btn" type="button">'.concat(D_(i2), "</button>") : "";
|
|
6814
|
+
if (t2.innerHTML = '<div class="error-state" role="alert"><div class="error-icon" aria-hidden="true">\u26A0\uFE0F</div><p class="error-msg">'.concat(D_(n2), "</p>") + a2 + "</div>", t2.removeAttribute("hidden"), r2) {
|
|
6780
6815
|
var o2;
|
|
6781
6816
|
(o2 = t2.querySelector(".error-retry-btn")) == null || o2.addEventListener("click", r2);
|
|
6782
6817
|
}
|
|
6783
6818
|
}
|
|
6784
|
-
var
|
|
6785
|
-
function
|
|
6819
|
+
var k_ = { "chart-wheel": { stripIcon: "\u2726", stripTitle: "About the Natal Chart", stripHints: ["Click any <strong>planet</strong> for a deep placement reading", "Click any <strong>aspect line</strong> for its dynamic interpretation", "Click any <strong>house cusp</strong> for house themes", "Use the <strong>date controls</strong> to move through time"], modalText: "This wheel is an exact celestial snapshot of the sky at a given moment and place \u2014 every planet, house, and aspect line is clickable." }, "bi-wheel": { stripIcon: "\u2295", stripTitle: "About the Bi-Wheel", stripHints: ["Click any <strong>inner planet</strong> for natal placement depth", "Click any <strong>outer planet</strong> for transit or synastry meaning", "Click a <strong>cross-aspect line</strong> for inter-chart dynamics", "Use the <strong>date controls</strong> to advance transits"], modalText: "Two charts are layered here \u2014 the inner wheel is the natal chart; the outer ring shows the second chart (transits or another person's planets)." }, bodygraph: { stripIcon: "\u25C8", stripTitle: "About the Bodygraph", stripHints: ["Click any <strong>center</strong> (defined or undefined) for its meaning", "Click any <strong>channel</strong> to explore its life theme", "Click any <strong>gate number</strong> for its I Ching hexagram reading", "Click a <strong>planet row</strong> in the sidebar for its HD role"], modalText: "The bodygraph is a living map of the energy centres, channels, and gates that define a Human Design chart." }, "vedic-chart": { stripIcon: "\u{1F549}", stripTitle: "About the Jyotish Chart", stripHints: ["Click any <strong>rashi cell</strong> for its themes and any planets placed there", "The <strong>diagonal mark</strong> shows the Lagna (Ascendant) rashi", "Use the <strong>action bar</strong> for a full chart interpretation", "Click <strong>Moon & Nakshatra</strong> for lunar mansion detail"], modalText: "This is a Vedic birth chart rendered as a South Indian Rashi grid \u2014 sidereal planetary placements by fixed sign." }, "transit-timeline": { stripIcon: "\u2604", stripTitle: "About the Transit Timeline", stripHints: ["Each entry is an <strong>exact transit hit</strong> \u2014 a transiting planet contacting a natal point", "Events are <strong>grouped by month</strong> in chronological order", "The <strong>\u211E marker</strong> flags a retrograde crossing", "Click any transit for a focused <strong>interpretation</strong>"], modalText: "This timeline lists upcoming transits to the natal chart \u2014 the exact dates outer-planet energies activate each placement." }, "moon-phase": { stripIcon: "\u263E", stripTitle: "About the Moon Phase Dial", stripHints: ["Click the <strong>Moon</strong> for its phase interpretation", "Click the <strong>Void-of-Course</strong> card when the Moon is VOC", "Use the <strong>date control</strong> to move the sky to any moment"], modalText: "The dial shows the Moon's live illumination, phase, sign, and void-of-course status for the selected moment." }, bazi: { stripIcon: "\u56DB", stripTitle: "About the BaZi Chart", stripHints: ["Click any <strong>pillar</strong> (Year, Month, Day, Hour) for its interpretation", "The <strong>Day Master</strong> is the core identity element", "The <strong>Wu Xing bar</strong> shows the Five Element balance"], modalText: "This BaZi (Four Pillars of Destiny) chart maps the Heavenly Stems and Earthly Branches present at a given moment of birth." } }, A_ = '\n .oe-welcome-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: oklch(0% 0 0 / 0.55);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n z-index: 9999;\n display: flex;\n align-items: center;\n justify-content: center;\n animation: oe-fade-in 0.4s ease both;\n font-family: system-ui, sans-serif;\n }\n\n .oe-welcome-modal {\n /* Themed, not hardcoded: the title/text/hints below all resolve through\n var(--text\u2026), so a fixed dark surface here meant that once the light\n palette became reachable the modal rendered near-black text on a\n near-black card \u2014 1.09:1, effectively invisible. The fallback is the\n previous literal, and every app\'s dark --surface is oklch(11-12%), so\n dark rendering is unchanged. */\n background: var(--surface, oklch(11% 0.010 265));\n border: 1px solid var(--gold-glow, oklch(72% 0.12 80 / 0.20));\n border-radius: 16px;\n padding: 32px;\n width: 90%;\n max-width: 440px;\n box-shadow: 0 20px 40px oklch(0% 0 0 / 0.55), inset 0 1px 0 oklch(100% 0 0 / 0.06);\n animation: oe-modal-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;\n display: flex;\n flex-direction: column;\n gap: 20px;\n }\n\n @keyframes oe-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n\n @keyframes oe-modal-in {\n from { opacity: 0; transform: scale(0.95) translateY(10px); }\n to { opacity: 1; transform: scale(1) translateY(0); }\n }\n\n .oe-welcome-header {\n display: flex;\n align-items: center;\n gap: 12px;\n margin-bottom: 4px;\n }\n\n .oe-welcome-icon {\n font-size: 28px;\n color: var(--gold, oklch(72% 0.12 80));\n line-height: 1;\n text-shadow: 0 0 10px var(--gold-glow, oklch(72% 0.12 80 / 0.30));\n }\n\n .oe-welcome-title {\n font-size: 20px;\n font-weight: 600;\n color: var(--text, oklch(92% 0.006 265));\n margin: 0;\n letter-spacing: 0.02em;\n }\n\n .oe-welcome-text {\n font-size: 14.5px;\n line-height: 1.5;\n color: var(--text-secondary, oklch(68% 0.008 265));\n margin: 0;\n }\n\n .oe-welcome-hints {\n display: flex;\n flex-direction: column;\n gap: 12px;\n margin: 8px 0 12px 0;\n padding: 0;\n list-style: none;\n }\n\n .oe-welcome-hints li {\n font-size: 13.5px;\n line-height: 1.4;\n color: var(--text-secondary, oklch(68% 0.008 265));\n display: flex;\n align-items: flex-start;\n gap: 10px;\n opacity: 0;\n animation: oe-fade-in 0.4s ease forwards;\n }\n\n /* Stagger the hints */\n .oe-welcome-hints li:nth-child(1) { animation-delay: 0.15s; }\n .oe-welcome-hints li:nth-child(2) { animation-delay: 0.25s; }\n .oe-welcome-hints li:nth-child(3) { animation-delay: 0.35s; }\n .oe-welcome-hints li:nth-child(4) { animation-delay: 0.45s; }\n\n .oe-welcome-hints li::before {\n content: "\u2726";\n color: var(--gold-dim, oklch(52% 0.06 80));\n font-size: 12px;\n padding-top: 2px;\n }\n\n .oe-welcome-hints strong {\n color: var(--text, oklch(92% 0.006 265));\n font-weight: 600;\n }\n\n .oe-welcome-button {\n align-self: flex-end;\n background: var(--gold-subtle, oklch(72% 0.12 80 / 0.10));\n color: var(--gold, oklch(72% 0.12 80));\n border: 1px solid var(--gold-glow, oklch(72% 0.12 80 / 0.20));\n padding: 10px 24px;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 600;\n cursor: pointer;\n transition: background 0.2s ease, border-color 0.2s ease;\n margin-top: 4px;\n }\n\n .oe-welcome-button:hover {\n background: oklch(72% 0.12 80 / 0.18);\n border-color: oklch(72% 0.12 80 / 0.40);\n }\n\n .oe-welcome-button:focus-visible {\n outline: 2px solid var(--gold, oklch(72% 0.12 80));\n outline-offset: 2px;\n }\n\n .oe-welcome-backdrop.is-dismissing {\n animation: oe-fade-out 0.3s ease forwards;\n }\n\n .oe-welcome-backdrop.is-dismissing .oe-welcome-modal {\n animation: oe-modal-out 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;\n }\n\n @keyframes oe-fade-out {\n to { opacity: 0; }\n }\n\n @keyframes oe-modal-out {\n to { opacity: 0; transform: scale(0.95) translateY(10px); }\n }\n';
|
|
6820
|
+
function j_() {
|
|
6786
6821
|
if (document.getElementById("oe-first-run-styles")) return;
|
|
6787
6822
|
let e4 = document.createElement("style");
|
|
6788
|
-
e4.id = "oe-first-run-styles", e4.textContent =
|
|
6823
|
+
e4.id = "oe-first-run-styles", e4.textContent = A_, document.head.appendChild(e4);
|
|
6789
6824
|
}
|
|
6790
|
-
function
|
|
6825
|
+
function M_(e4) {
|
|
6791
6826
|
let t2 = document.activeElement, n2 = document.createElement("div");
|
|
6792
6827
|
n2.className = "oe-welcome-backdrop";
|
|
6793
6828
|
let r2 = document.createElement("div");
|
|
@@ -6805,135 +6840,135 @@ function S_(e4) {
|
|
|
6805
6840
|
e5.key === "Escape" && (e5.preventDefault(), o2()), e5.key === "Tab" && (e5.preventDefault(), a2.focus());
|
|
6806
6841
|
}), requestAnimationFrame(() => a2.focus()), n2;
|
|
6807
6842
|
}
|
|
6808
|
-
function
|
|
6809
|
-
|
|
6810
|
-
let t2 =
|
|
6843
|
+
function N_(e4) {
|
|
6844
|
+
j_();
|
|
6845
|
+
let t2 = M_(k_[e4]);
|
|
6811
6846
|
document.body.appendChild(t2);
|
|
6812
6847
|
}
|
|
6813
|
-
var
|
|
6814
|
-
function
|
|
6848
|
+
var P_ = "\n .oe-info-button {\n position: fixed;\n top: 12px;\n right: 12px;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background: var(--surface-2, oklch(16% 0.010 265));\n border: 1px solid var(--border-strong, oklch(30% 0.010 265));\n color: var(--text-secondary, oklch(68% 0.008 265));\n font: 600 14px/1 Georgia, serif;\n font-style: italic;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n z-index: 9998;\n transition: all 150ms ease;\n }\n\n .oe-info-button:hover {\n background: var(--surface, oklch(11% 0.010 265));\n border-color: var(--gold-dim, oklch(52% 0.06 80));\n color: var(--gold, oklch(72% 0.12 80));\n }\n\n .oe-info-button:focus-visible {\n outline: 2px solid var(--gold, oklch(72% 0.12 80));\n outline-offset: 2px;\n }\n";
|
|
6849
|
+
function F_() {
|
|
6815
6850
|
if (document.getElementById("oe-info-button-styles")) return;
|
|
6816
6851
|
let e4 = document.createElement("style");
|
|
6817
|
-
e4.id = "oe-info-button-styles", e4.textContent =
|
|
6852
|
+
e4.id = "oe-info-button-styles", e4.textContent = P_, document.head.appendChild(e4);
|
|
6818
6853
|
}
|
|
6819
|
-
function
|
|
6854
|
+
function I_(e4) {
|
|
6820
6855
|
if (document.getElementById("oe-info-button")) return;
|
|
6821
|
-
|
|
6856
|
+
F_();
|
|
6822
6857
|
let t2 = document.createElement("button");
|
|
6823
|
-
t2.id = "oe-info-button", t2.className = "oe-info-button", t2.setAttribute("aria-label", "About this chart"), t2.title = "About this chart", t2.textContent = "i", t2.addEventListener("click", () =>
|
|
6858
|
+
t2.id = "oe-info-button", t2.className = "oe-info-button", t2.setAttribute("aria-label", "About this chart"), t2.title = "About this chart", t2.textContent = "i", t2.addEventListener("click", () => N_(e4)), document.body.appendChild(t2);
|
|
6824
6859
|
}
|
|
6825
|
-
var
|
|
6826
|
-
function
|
|
6827
|
-
return
|
|
6860
|
+
var L_;
|
|
6861
|
+
function R_() {
|
|
6862
|
+
return L_ ? L_ === "dark" : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
6828
6863
|
}
|
|
6829
|
-
function
|
|
6864
|
+
function z_(e4 = R_()) {
|
|
6830
6865
|
let t2 = e4 ? "dark" : "light";
|
|
6831
6866
|
return document.documentElement.setAttribute("data-theme", t2), t2;
|
|
6832
6867
|
}
|
|
6833
|
-
function
|
|
6834
|
-
|
|
6868
|
+
function B_(e4) {
|
|
6869
|
+
z_();
|
|
6835
6870
|
try {
|
|
6836
6871
|
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", (t2) => {
|
|
6837
|
-
|
|
6872
|
+
L_ || e4 == null || e4(z_(t2.matches));
|
|
6838
6873
|
});
|
|
6839
6874
|
} catch (e5) {
|
|
6840
6875
|
}
|
|
6841
6876
|
}
|
|
6842
|
-
function
|
|
6877
|
+
function V_(e4, t2) {
|
|
6843
6878
|
var n2, r2;
|
|
6844
6879
|
let i2 = (e5) => {
|
|
6845
6880
|
let n3 = e5 == null ? void 0 : e5.theme;
|
|
6846
6881
|
if (n3 !== "light" && n3 !== "dark") return;
|
|
6847
|
-
|
|
6848
|
-
let r3 = document.documentElement.getAttribute("data-theme"), i3 =
|
|
6882
|
+
L_ = n3;
|
|
6883
|
+
let r3 = document.documentElement.getAttribute("data-theme"), i3 = z_(n3 === "dark");
|
|
6849
6884
|
i3 !== r3 && (t2 == null || t2(i3));
|
|
6850
6885
|
};
|
|
6851
6886
|
(n2 = e4.addEventListener) == null || n2.call(e4, "hostcontextchanged", i2), i2((r2 = e4.getHostContext) == null ? void 0 : r2.call(e4));
|
|
6852
6887
|
}
|
|
6853
|
-
|
|
6854
|
-
var
|
|
6855
|
-
function
|
|
6856
|
-
if (
|
|
6888
|
+
B_();
|
|
6889
|
+
var H_ = document.getElementById("loading-state"), U_ = document.getElementById("timeline-container"), W_ = document.getElementById("chart-status"), G_ = document.getElementById("pan-zoom-controls"), K_ = new t_({ name: "Transit Timeline Explorer", version: "1.0.0" }, { availableDisplayModes: m_ }), q_ = null, J_ = false;
|
|
6890
|
+
function Y_(e4) {
|
|
6891
|
+
if (W_) {
|
|
6857
6892
|
if (!e4) {
|
|
6858
|
-
|
|
6893
|
+
W_.classList.remove("visible");
|
|
6859
6894
|
return;
|
|
6860
6895
|
}
|
|
6861
|
-
|
|
6896
|
+
W_.textContent = "\xB7 " + e4, W_.classList.add("visible");
|
|
6862
6897
|
}
|
|
6863
6898
|
}
|
|
6864
|
-
async function
|
|
6899
|
+
async function X_(e4) {
|
|
6865
6900
|
var t2, n2, r2;
|
|
6866
|
-
if (
|
|
6867
|
-
await
|
|
6901
|
+
if (Y_(Q_((t2 = (n2 = e4.planet_name) == null ? e4.planet : n2) == null ? "" : t2) + " " + ((r2 = e4.aspect) == null ? "" : r2) + (e4.natal_point ? " natal " + e4.natal_point : "") + " \xB7 " + $_(e4.date)), J_) try {
|
|
6902
|
+
await K_.updateModelContext({ content: [{ type: "text", text: "[Transit Timeline] Selected transit: " + JSON.stringify(e4) }] });
|
|
6868
6903
|
} catch (e5) {
|
|
6869
6904
|
}
|
|
6870
6905
|
}
|
|
6871
|
-
async function
|
|
6872
|
-
if (!
|
|
6906
|
+
async function Z_(e4) {
|
|
6907
|
+
if (!q_) return;
|
|
6873
6908
|
let t2 = "";
|
|
6874
6909
|
if (e4.type === "transit") {
|
|
6875
6910
|
var n2, r2, i2;
|
|
6876
6911
|
let a3 = e4.data;
|
|
6877
|
-
t2 = "Interpret this transit: " +
|
|
6912
|
+
t2 = "Interpret this transit: " + Q_((n2 = (r2 = a3.planet_name) == null ? a3.planet : r2) == null ? "" : n2) + " " + ((i2 = a3.aspect) == null ? "conjunct" : i2) + (a3.natal_point ? " natal " + a3.natal_point : "") + " on " + $_(a3.date) + (a3.zodiac_sign ? " (at " + ev(a3) + ")" : "") + ".\n\nWhat does this transit mean in practical terms? What themes and energies does it activate, how long does its influence typically last, and how can it be navigated consciously?";
|
|
6878
6913
|
} else if (e4.type === "full_timeline") {
|
|
6879
6914
|
var a2;
|
|
6880
|
-
let e5 = (a2 =
|
|
6915
|
+
let e5 = (a2 = q_.transits) == null ? [] : a2, n3 = [...new Set(e5.map((e6) => {
|
|
6881
6916
|
var t3, n4;
|
|
6882
|
-
return
|
|
6883
|
-
}).filter(Boolean))], r3 =
|
|
6917
|
+
return Q_((t3 = (n4 = e6.planet_name) == null ? e6.planet : n4) == null ? "" : t3);
|
|
6918
|
+
}).filter(Boolean))], r3 = q_.search_window;
|
|
6884
6919
|
t2 = "I have a transit timeline of " + e5.length + " upcoming transit" + (e5.length === 1 ? "" : "s") + (n3.length ? " involving " + n3.join(", ") : "") + (r3 != null && r3.start_date && r3 != null && r3.end_date ? " between " + r3.start_date + " and " + r3.end_date : "") + ".\n\nPlease give me an overview of the key themes for this period. Which transits are most significant and why, and what should I be most conscious of?";
|
|
6885
6920
|
}
|
|
6886
6921
|
if (t2) try {
|
|
6887
|
-
await
|
|
6922
|
+
await K_.sendMessage({ role: "user", content: [{ type: "text", text: t2 }] });
|
|
6888
6923
|
} catch (e5) {
|
|
6889
6924
|
console.error("[TransitTimeline] sendMessage failed:", e5);
|
|
6890
6925
|
}
|
|
6891
6926
|
}
|
|
6892
|
-
function
|
|
6927
|
+
function Q_(e4) {
|
|
6893
6928
|
return e4 ? e4.charAt(0).toUpperCase() + e4.slice(1) : "";
|
|
6894
6929
|
}
|
|
6895
|
-
function
|
|
6930
|
+
function $_(e4) {
|
|
6896
6931
|
let t2 = new Date(e4).getTime();
|
|
6897
6932
|
return isNaN(t2) ? e4 : new Date(t2).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
6898
6933
|
}
|
|
6899
|
-
function
|
|
6934
|
+
function ev(e4) {
|
|
6900
6935
|
var t2, n2;
|
|
6901
6936
|
if (e4.zodiac_sign == null) return "";
|
|
6902
6937
|
let r2 = String((t2 = e4.zodiac_minute) == null ? 0 : t2).padStart(2, "0");
|
|
6903
|
-
return ((n2 = e4.zodiac_degree) == null ? 0 : n2) + "\xB0" + r2 + "\u2032 " +
|
|
6938
|
+
return ((n2 = e4.zodiac_degree) == null ? 0 : n2) + "\xB0" + r2 + "\u2032 " + Q_(e4.zodiac_sign);
|
|
6904
6939
|
}
|
|
6905
|
-
var
|
|
6906
|
-
function
|
|
6907
|
-
|
|
6940
|
+
var tv;
|
|
6941
|
+
function nv() {
|
|
6942
|
+
tv && (clearTimeout(tv), tv = void 0);
|
|
6908
6943
|
}
|
|
6909
|
-
function
|
|
6910
|
-
|
|
6944
|
+
function rv(e4, t2) {
|
|
6945
|
+
nv(), H_.setAttribute("hidden", ""), U_.removeAttribute("hidden"), O_({ container: U_, message: e4, onRetry: t2 });
|
|
6911
6946
|
}
|
|
6912
|
-
function
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
}, 3e4),
|
|
6947
|
+
function iv() {
|
|
6948
|
+
nv(), U_.setAttribute("hidden", ""), H_.removeAttribute("hidden"), tv = setTimeout(() => {
|
|
6949
|
+
rv("The transit timeline didn't load. Tap to try again.", iv);
|
|
6950
|
+
}, 3e4), K_.sendMessage({ role: "user", content: [{ type: "text", text: "Please regenerate the transit timeline." }] }).catch(() => {
|
|
6916
6951
|
});
|
|
6917
6952
|
}
|
|
6918
|
-
|
|
6919
|
-
|
|
6953
|
+
K_.ontoolresult = function(e4) {
|
|
6954
|
+
nv();
|
|
6920
6955
|
try {
|
|
6921
|
-
let t2 =
|
|
6956
|
+
let t2 = E_(e4);
|
|
6922
6957
|
if (!t2 || !Array.isArray(t2.transits)) {
|
|
6923
|
-
|
|
6958
|
+
rv("Transit data could not be parsed from the server response.", iv);
|
|
6924
6959
|
return;
|
|
6925
6960
|
}
|
|
6926
|
-
|
|
6961
|
+
q_ = t2, H_.setAttribute("hidden", ""), U_.removeAttribute("hidden"), p_(U_, t2, X_, Z_), I_("transit-timeline");
|
|
6927
6962
|
} catch (e5) {
|
|
6928
|
-
|
|
6963
|
+
rv("An error occurred while rendering the transit timeline.", iv), console.error("[TransitTimeline] Render error:", e5);
|
|
6929
6964
|
}
|
|
6930
|
-
},
|
|
6931
|
-
|
|
6965
|
+
}, C_(K_, { loadingEl: H_, contentEl: U_, statusFn: Y_, paramControls: null }), tv = setTimeout(() => {
|
|
6966
|
+
rv("Transit data is taking longer than expected.", iv);
|
|
6932
6967
|
}, 3e4), (async function() {
|
|
6933
6968
|
try {
|
|
6934
|
-
await
|
|
6935
|
-
let e4 =
|
|
6936
|
-
|
|
6969
|
+
await K_.connect();
|
|
6970
|
+
let e4 = K_.getHostCapabilities();
|
|
6971
|
+
J_ = !!(e4 != null && e4.modelContext), x_(K_, G_, [], { pip: true }), T_(K_), V_(K_);
|
|
6937
6972
|
} catch (e4) {
|
|
6938
6973
|
console.error("[TransitTimeline] connect() failed:", e4);
|
|
6939
6974
|
}
|