@scalar/api-reference 1.22.56 → 1.23.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 +16 -0
- package/README.md +1 -0
- package/dist/browser/standalone.js +3 -3
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -0
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/{index-DeQVZoi9.cjs → index-5LEUeUWq.cjs} +2 -2
- package/dist/{index-DyGwshVv.js → index-6043OlDe.js} +4 -5
- package/dist/{index-B92KXWTy.js → index-C9hFgp4V.js} +4 -4
- package/dist/{index-D838EjpZ.cjs → index-CG0fxk_6.cjs} +3 -3
- package/dist/index.cjs +22 -1
- package/dist/index.js +22 -1
- package/dist/style.css +1 -0
- package/package.json +6 -10
- package/dist/index.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('./index.css');"use strict";var Pw=Object.defineProperty;var Iw=(r,e,t)=>e in r?Pw(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var fp=(r,e,t)=>(Iw(r,typeof e!="symbol"?e+"":e,t),t);const i=require("vue"),Le=require("@headlessui/vue"),Xe=require("@vueuse/core"),Mw=require("axios"),Bs=require("prismjs"),Dw=require("@vcarl/remark-headings"),Pi=require("github-slugger"),Qg=require("remark-parse"),Vw=require("remark-stringify"),Zg=require("unified"),pp=require("unhead"),e0=require("httpsnippet-lite"),Rw=require("rehype-external-links"),Lw=require("rehype-format"),jw=require("rehype-highlight"),Fw=require("rehype-raw"),la=require("rehype-sanitize"),qw=require("rehype-stringify"),zw=require("remark-gfm"),Hw=require("remark-rehype"),Uw=require("fuse.js"),Kw=":root{--scalar-text-decoration: underline;--scalar-text-decoration-hover: underline}.light-mode,.light-mode .dark-mode{--scalar-background-1: #f9f9f9;--scalar-background-2: #f1f1f1;--scalar-background-3: #e7e7e7;--scalar-background-card: #fff;--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: var(--scalar-color-1);--scalar-background-accent: var(--scalar-background-3);--scalar-border-color: rgba(0, 0, 0, .1)}.dark-mode{--scalar-background-1: #131313;--scalar-background-2: #1d1d1d;--scalar-background-3: #272727;--scalar-background-card: #1d1d1d;--scalar-color-1: rgba(255, 255, 255, .9);--scalar-color-2: rgba(255, 255, 255, .62);--scalar-color-3: rgba(255, 255, 255, .44);--scalar-color-accent: var(--scalar-color-1);--scalar-background-accent: var(--scalar-background-3);--scalar-border-color: rgba(255, 255, 255, .1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: transparent;--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-sidebar-search-border-color: var(--scalar-border-color);--scalar-sidebar-indent-border: var(--scalar-sidebar-border-color);--scalar-sidebar-indent-border-hover: var(--scalar-sidebar-border-color);--scalar-sidebar-indent-border-active: var(--scalar-sidebar-border-color)}.light-mode .dark-mode,.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #00b648;--scalar-color-red: #dd2f2c;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.scalar-api-client__item,.scalar-card,.dark-mode .dark-mode.scalar-card{--scalar-background-1: var(--scalar-background-card);--scalar-background-2: var(--scalar-background-1);--scalar-background-3: var(--scalar-background-1)}.dark-mode .dark-mode.scalar-card{--scalar-background-3: var(--scalar-background-3)}.t-doc__sidebar{--scalar-color-green: var(--scalar-color-1);--scalar-color-red: var(--scalar-color-1);--scalar-color-yellow: var(--scalar-color-1);--scalar-color-blue: var(--scalar-color-1);--scalar-color-orange: var(--scalar-color-1);--scalar-color-purple: var(--scalar-color-1)}",Ww=":root{--scalar-text-decoration: underline;--scalar-text-decoration-hover: underline}.light-mode{--scalar-background-1: #f0f2f5;--scalar-background-2: #eaecf0;--scalar-background-3: #e0e2e6;--scalar-border-color: rgb(228, 228, 231);--scalar-color-1: rgb(9, 9, 11);--scalar-color-2: rgb(113, 113, 122);--scalar-color-3: rgba(25, 25, 28, .5);--scalar-color-accent: var(--scalar-color-1);--scalar-background-accent: #8ab4f81f;--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .scalar-card.dark-mode,.dark-mode{--scalar-background-1: #000e23;--scalar-background-2: #01132e;--scalar-background-3: #03193b;--scalar-border-color: rgba(255, 255, 255, .12);--scalar-color-1: #fafafa;--scalar-color-2: rgb(161, 161, 170);--scalar-color-3: rgba(255, 255, 255, .533);--scalar-color-accent: var(--scalar-color-1);--scalar-background-accent: #8ab4f81f;--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-active-background: var(--scalar-background-3);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: rgba(255, 255, 255, .1);--scalar-sidebar-search-border-color: var(--scalar-border-color);--scalar-sidebar-search-color: var(--scalar-color-3);z-index:1}.light-mode .t-doc__sidebar{--scalar-sidebar-search-background: white}.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: rgba(69, 255, 165, .823);--scalar-color-red: #ff8589;--scalar-color-yellow: #ffcc4d;--scalar-color-blue: #6bc1fe;--scalar-color-orange: #f98943;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}@keyframes headerbackground{0%{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}to{background:var(--header-background-1);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.section-flare-item:nth-of-type(1){--c1: #ffffff;--c2: #babfd8;--c3: #2e8bb2;--c4: #1a8593;--c5: #0a143e;--c6: #0a0f52;--c7: #2341b8;--solid: var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7);--solid-wrap: var(--solid), var(--c1);--trans: var(--c1), transparent, var(--c2), transparent, var(--c3), transparent, var(--c4), transparent, var(--c5), transparent, var(--c6), transparent, var(--c7);--trans-wrap: var(--trans), transparent, var(--c1);background:radial-gradient(circle,var(--trans)),conic-gradient(from 180deg,var(--trans-wrap)),radial-gradient(circle,var(--trans)),conic-gradient(var(--solid-wrap));width:70vw;height:700px;border-radius:50%;filter:blur(100px);z-index:0;right:0;position:absolute;transform:rotate(-45deg);top:-300px;opacity:.3}.section-flare-item:nth-of-type(3){--star-color: #6b9acc;--star-color2: #446b8d;--star-color3: #3e5879;background-image:radial-gradient(2px 2px at 20px 30px,var(--star-color2),rgba(0,0,0,0)),radial-gradient(2px 2px at 40px 70px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 50px 160px,var(--star-color3),rgba(0,0,0,0)),radial-gradient(2px 2px at 90px 40px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 130px 80px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 160px 120px,var(--star-color3),rgba(0,0,0,0));background-repeat:repeat;background-size:200px 200px;width:100%;height:100%;-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%)}.section-flare{top:-150px!important;height:100vh;background:linear-gradient(#000,var(--scalar-background-1));width:100vw}.light-mode .section-flare{display:none}.light-mode .scalar-card{--scalar-background-1: #fff;--scalar-background-2: #fff;--scalar-background-3: #fff}",Gw=':root{--scalar-text-decoration: underline;--scalar-text-decoration-hover: underline}.light-mode{--scalar-color-1: rgb(9, 9, 11);--scalar-color-2: rgb(113, 113, 122);--scalar-color-3: rgba(25, 25, 28, .5);--scalar-color-accent: var(--scalar-color-1);--scalar-background-1: #fff;--scalar-background-2: #f4f4f5;--scalar-background-3: #e3e3e6;--scalar-background-accent: #8ab4f81f;--scalar-border-color: rgb(228, 228, 231);--scalar-code-language-color-supersede: var(--scalar-color-1)}.dark-mode{--scalar-color-1: #fafafa;--scalar-color-2: rgb(161, 161, 170);--scalar-color-3: rgba(255, 255, 255, .533);--scalar-color-accent: var(--scalar-color-1);--scalar-background-1: #09090b;--scalar-background-2: #18181b;--scalar-background-3: #2c2c30;--scalar-background-accent: #8ab4f81f;--scalar-border-color: rgba(255, 255, 255, .12);--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-3);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: transparent;--scalar-sidebar-search-border-color: var(--scalar-border-color);--scalar-sidebar-search-color: var(--scalar-color-3)}.light-mode .t-doc__sidebar{--scalar-sidebar-item-active-background: var(--scalar-background-2)}.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: rgba(69, 255, 165, .823);--scalar-color-red: #ff8589;--scalar-color-yellow: #ffcc4d;--scalar-color-blue: #6bc1fe;--scalar-color-orange: #f98943;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.examples .scalar-card-footer{--scalar-background-3: transparent;padding-top:0}.section-flare{width:100vw;height:550px;position:relative}.section-flare-item:nth-of-type(1){position:absolute;width:100vw;height:550px;--stripesDark: repeating-linear-gradient( 100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16% );--rainbow: repeating-linear-gradient( 100deg, #fff 10%, #fff 16%, #fff 22%, #fff 30% );background-image:var(--stripesDark),var(--rainbow);background-size:300%,200%;background-position:50% 50%,50% 50%;filter:invert(100%);-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);pointer-events:none;opacity:.07}.dark-mode .section-flare-item:nth-of-type(1){background-image:var(--stripesDark),var(--rainbow);filter:opacity(50%) saturate(200%);opacity:.25;height:350px}.section-flare-item:nth-of-type(1):after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-image:var(--stripesDark),var(--rainbow);background-size:200%,100%;background-attachment:fixed;mix-blend-mode:difference}.dark-mode .section-flare:after{background-image:var(--stripesDark),var(--rainbow)}.section-flare-item:nth-of-type(2){--star-color: #fff;--star-color2: #fff;--star-color3: #fff;width:100%;height:100%;position:absolute;background-image:radial-gradient(2px 2px at 20px 30px,var(--star-color2),rgba(0,0,0,0)),radial-gradient(2px 2px at 40px 70px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 50px 160px,var(--star-color3),rgba(0,0,0,0)),radial-gradient(2px 2px at 90px 40px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 130px 80px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 160px 120px,var(--star-color3),rgba(0,0,0,0));background-repeat:repeat;background-size:200px 200px;-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);opacity:.2}',t0=".light-mode{--scalar-background-1: #fff;--scalar-background-2: #f6f6f6;--scalar-background-3: #e7e7e7;--scalar-background-accent: #8ab4f81f;--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: #0099ff;--scalar-border-color: rgba(0, 0, 0, .1)}.dark-mode{--scalar-background-1: #0f0f0f;--scalar-background-2: #1a1a1a;--scalar-background-3: #272727;--scalar-color-1: rgba(255, 255, 255, .9);--scalar-color-2: rgba(255, 255, 255, .62);--scalar-color-3: rgba(255, 255, 255, .44);--scalar-color-accent: #3ea6ff;--scalar-background-accent: #3ea6ff1f;--scalar-border-color: rgba(255, 255, 255, .1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-active-background: var(--scalar-background-2);--scalar-sidebar-color-active: var(--scalar-color-1);--scalar-sidebar-search-background: transparent;--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-sidebar-search-border-color: var(--scalar-border-color)}.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #00b648;--scalar-color-red: #dc1b19;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}",Jw=".light-mode{--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: #7070ff;--scalar-background-1: #fff;--scalar-background-2: #f6f6f6;--scalar-background-3: #e7e7e7;--scalar-background-accent: #7070ff1f;--scalar-border-color: rgba(0, 0, 0, .1);--scalar-code-language-color-supersede: var(--scalar-color-3)}.dark-mode{--scalar-color-1: #f7f8f8;--scalar-color-2: rgb(180, 188, 208);--scalar-color-3: #b4bcd099;--scalar-color-accent: #828fff;--scalar-background-1: #000212;--scalar-background-2: rgba(255, 255, 255, .05);--scalar-background-3: rgba(255, 255, 255, .09);--scalar-background-accent: #8ab4f81f;--scalar-border-color: #242537;--scalar-code-language-color-supersede: var(--scalar-color-3)}.light-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: rgba(0, 0, 0, .05);--scalar-sidebar-search-border-color: 1px solid rgba(0, 0, 0, .05);--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-background-2: rgba(0, 0, 0, .03)}.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: rgba(255, 255, 255, .1);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: rgba(255, 255, 255, .1);--scalar-sidebar-search-border-color: 1px solid rgba(255, 255, 255, .05);--scalar-sidebar-search-color: var(--scalar-color-3)}.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #00b648;--scalar-color-red: #dc1b19;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.sidebar-search{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}@keyframes headerbackground{0%{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}to{background:var(--header-background-1);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}}.dark-mode .scalar-card{background:#ffffff0d!important}.dark-mode .scalar-card *{--scalar-background-2: transparent !important;--scalar-background-1: transparent !important}.light-mode .dark-mode.scalar-card *,.light-mode .dark-mode.scalar-card{--scalar-background-1: #0d0f1e !important;--scalar-background-2: #0d0f1e !important;--scalar-background-3: #191b29 !important}.light-mode .dark-mode.scalar-card{background:#191b29!important}.badge{box-shadow:0 0 0 1px var(--scalar-border-color);margin-right:6px}.table-row.required-parameter .table-row-item:nth-of-type(2):after{background:transparent;box-shadow:none}.section-flare{width:100vw;background:radial-gradient(ellipse 80% 50% at 50% -20%,rgba(120,119,198,.3),transparent);height:100vh}",Yw=":root{--scalar-text-decoration: underline;--scalar-text-decoration-hover: underline}.light-mode{--scalar-background-1: #f9f6f0;--scalar-background-2: #f2efe8;--scalar-background-3: #e9e7e2;--scalar-border-color: rgba(203, 165, 156, .6);--scalar-color-1: #c75549;--scalar-color-2: #c75549;--scalar-color-3: #c75549;--scalar-color-accent: #c75549;--scalar-background-accent: #dcbfa81f;--scalar-code-language-color-supersede: var(--scalar-color-1)}.dark-mode{--scalar-background-1: #140507;--scalar-background-2: #20090c;--scalar-background-3: #321116;--scalar-border-color: rgba(255, 255, 255, .1);--scalar-color-1: rgba(255, 255, 255, .9);--scalar-color-2: rgba(255, 255, 255, .62);--scalar-color-3: rgba(255, 255, 255, .44);--scalar-color-accent: rgba(255, 255, 255, .9);--scalar-background-accent: #441313;--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-3);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: rgba(255, 255, 255, .1);--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-sidebar-search-border-color: var(--scalar-border-color);z-index:1}.light-mode{--scalar-color-green: #09533a;--scalar-color-red: #aa181d;--scalar-color-yellow: #ab8d2b;--scalar-color-blue: #19689a;--scalar-color-orange: #b26c34;--scalar-color-purple: #4c2191;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: rgba(69, 255, 165, .823);--scalar-color-red: #ff8589;--scalar-color-yellow: #ffcc4d;--scalar-color-blue: #6bc1fe;--scalar-color-orange: #f98943;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.light-mode .t-doc__sidebar{--scalar-sidebar-search-background: white}.examples .scalar-card-footer{--scalar-background-3: transparent;padding-top:0}.section-flare-item:nth-of-type(1){background:#d25019;width:80vw;height:500px;margin-top:-150px;border-radius:50%;filter:blur(100px);z-index:0}.light-mode .section-flare{display:none}.section-flare{top:-150px!important;height:100vh;right:-400px!important;left:initial}",Xw=".light-mode{color-scheme:light;--scalar-color-1: #000000;--scalar-color-2: #000000;--scalar-color-3: #000000;--scalar-color-accent: #645b0f;--scalar-background-1: #ccc9b3;--scalar-background-2: #c2bfaa;--scalar-background-3: #b8b5a1;--scalar-background-accent: #000000;--scalar-border-color: rgba(0, 0, 0, .2);--scalar-scrollbar-color: rgba(0, 0, 0, .18);--scalar-scrollbar-color-active: rgba(0, 0, 0, .36);--scalar-lifted-brightness: 1;--scalar-backdrop-brightness: 1;--scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, .11);--scalar-shadow-2: rgba(0, 0, 0, .08) 0px 13px 20px 0px, rgba(0, 0, 0, .08) 0px 3px 8px 0px, var(--scalar-border-color) 0px 0 0 1px;--scalar-button-1: rgb(49 53 56);--scalar-button-1-color: #fff;--scalar-button-1-hover: rgb(28 31 33);--scalar-color-red: #b91c1c;--scalar-color-orange: #a16207;--scalar-color-green: #047857;--scalar-color-blue: #1d4ed8;--scalar-color-orange: #c2410c;--scalar-color-purple: #6d28d9}.dark-mode{color-scheme:dark;--scalar-color-1: #fffef3;--scalar-color-2: #fffef3;--scalar-color-3: #fffef3;--scalar-color-accent: #c3b531;--scalar-background-1: #313332;--scalar-background-2: #393b3a;--scalar-background-3: #414342;--scalar-background-accent: #fffef3;--scalar-border-color: rgba(255, 255, 255, .1);--scalar-scrollbar-color: rgba(255, 255, 255, .24);--scalar-scrollbar-color-active: rgba(255, 255, 255, .48);--scalar-lifted-brightness: 1.45;--scalar-backdrop-brightness: .5;--scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, .11);--scalar-shadow-2: rgba(15, 15, 15, .2) 0px 3px 6px, rgba(15, 15, 15, .4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, .1);--scalar-button-1: #f6f6f6;--scalar-button-1-color: #000;--scalar-button-1-hover: #e7e7e7;--scalar-color-green: #00b648;--scalar-color-red: #dc1b19;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9}.light-mode .t-doc__sidebar,.dark-mode .sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-sidebar-background-1);--scalar-sidebar-search-background: var(--scalar-background-3);--scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);--scalar-sidebar-search--color: var(--scalar-color-3)}",Qw=".light-mode{--scalar-background-1: #fff;--scalar-background-2: #f5f6f8;--scalar-background-3: #eceef1;--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: #5469d4;--scalar-background-accent: #5469d41f;--scalar-border-color: rgba(215, 215, 206, .5)}.dark-mode{--scalar-background-1: #15171c;--scalar-background-2: #1c1e24;--scalar-background-3: #22252b;--scalar-color-1: #fafafa;--scalar-color-2: #c9ced8;--scalar-color-3: #8c99ad;--scalar-color-accent: #5469d4;--scalar-background-accent: #5469d41f;--scalar-border-color: rgba(255, 255, 255, .12)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-3);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: var(--scalar-background-1);--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-sidebar-search-border-color: var(--scalar-border-color)}.light-mode{--scalar-color-green: #17803d;--scalar-color-red: #e10909;--scalar-color-yellow: #edbe20;--scalar-color-blue: #1763a6;--scalar-color-orange: #e25b09;--scalar-color-purple: #5c3993;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #30a159;--scalar-color-red: #dc1b19;--scalar-color-yellow: #eec644;--scalar-color-blue: #2b7abf;--scalar-color-orange: #f07528;--scalar-color-purple: #7a59b1;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}",Zw=".light-mode{--scalar-background-1: #f3f3ee;--scalar-background-2: #e8e8e3;--scalar-background-3: #e4e4df;--scalar-border-color: rgba(215, 215, 206, .5);--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: #1763a6;--scalar-background-accent: #1f648e1f}.dark-mode{--scalar-background-1: #09090b;--scalar-background-2: #18181b;--scalar-background-3: #2c2c30;--scalar-border-color: rgba(255, 255, 255, .12);--scalar-color-1: #fafafa;--scalar-color-2: rgb(161, 161, 170);--scalar-color-3: rgba(255, 255, 255, .533);--scalar-color-accent: #4eb3ec;--scalar-background-accent: #8ab4f81f}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-active-background: var(--scalar-background-3);--scalar-sidebar-color-active: var(--scalar-color-1);--scalar-sidebar-search-background: var(--scalar-background-1);--scalar-sidebar-search-border-color: var(--scalar-border-color);--scalar-sidebar-search-color: var(--scalar-color-3)}.light-mode{--scalar-color-green: #17803d;--scalar-color-red: #e10909;--scalar-color-yellow: #edbe20;--scalar-color-blue: #1763a6;--scalar-color-orange: #e25b09;--scalar-color-purple: #5c3993;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #30a159;--scalar-color-red: #dc1b19;--scalar-color-yellow: #eec644;--scalar-color-blue: #2b7abf;--scalar-color-orange: #f07528;--scalar-color-purple: #7a59b1;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}",ek=".light-mode{color-scheme:light;--scalar-color-1: #584c27;--scalar-color-2: #616161;--scalar-color-3: #a89f84;--scalar-color-accent: #b58900;--scalar-background-1: #fdf6e3;--scalar-background-2: #eee8d5;--scalar-background-3: #ddd6c1;--scalar-background-accent: #b589001f;--scalar-border-color: #ded8c8;--scalar-scrollbar-color: rgba(0, 0, 0, .18);--scalar-scrollbar-color-active: rgba(0, 0, 0, .36);--scalar-lifted-brightness: 1;--scalar-backdrop-brightness: 1;--scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, .11);--scalar-shadow-2: rgba(0, 0, 0, .08) 0px 13px 20px 0px, rgba(0, 0, 0, .08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;--scalar-button-1: rgb(49 53 56);--scalar-button-1-color: #fff;--scalar-button-1-hover: rgb(28 31 33);--scalar-color-red: #b91c1c;--scalar-color-orange: #a16207;--scalar-color-green: #047857;--scalar-color-blue: #1d4ed8;--scalar-color-orange: #c2410c;--scalar-color-purple: #6d28d9}.dark-mode{color-scheme:dark;--scalar-color-1: #fff;--scalar-color-2: #cccccc;--scalar-color-3: #6d8890;--scalar-color-accent: #007acc;--scalar-background-1: #00212b;--scalar-background-2: #012b36;--scalar-background-3: #004052;--scalar-background-accent: #015a6f;--scalar-border-color: rgba(255, 255, 255, .1);--scalar-scrollbar-color: rgba(255, 255, 255, .24);--scalar-scrollbar-color-active: rgba(255, 255, 255, .48);--scalar-lifted-brightness: 1.45;--scalar-backdrop-brightness: .5;--scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, .1);--scalar-shadow-2: rgba(15, 15, 15, .2) 0px 3px 6px, rgba(15, 15, 15, .4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, .1);--scalar-button-1: #f6f6f6;--scalar-button-1-color: #000;--scalar-button-1-hover: #e7e7e7;--scalar-color-green: #00b648;--scalar-color-red: #dc1b19;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9}.light-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: var(--scalar-background-2);--scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);--scalar-sidebar-search--color: var(--scalar-color-3)}.dark-mode .sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-sidebar-color-1);--scalar-sidebar-search-background: var(--scalar-background-2);--scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);--scalar-sidebar-search--color: var(--scalar-color-3)}",tk='@import"https://fonts.googleapis.com/css2?family=Inter:wght@100..900";@import"https://fonts.googleapis.com/css?family=JetBrains%20Mono";',rk=i.defineComponent({__name:"DefaultFonts",setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent("style"),{innerHTML:i.unref(tk)},null,8,["innerHTML"]))}}),r0=i.defineComponent({__name:"ThemeStyles",props:{id:{},withDefaultFonts:{type:Boolean,default:!0}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[e.withDefaultFonts?(i.openBlock(),i.createBlock(rk,{key:0})):i.createCommentVNode("",!0),e.id!=="none"?(i.openBlock(),i.createBlock(i.resolveDynamicComponent("style"),{key:1},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(mk)(e.id,{layer:"scalar-theme"})),1)]),_:1})):i.createCommentVNode("",!0)],64))}});function n0(r,e){i.onMounted(()=>{if(!document.body)return;const t=document.querySelector(r);t==null||t.classList.add(e)})}const nk=i.defineComponent({__name:"ResetStyles",setup(r){const{reset:e}=i.useCssModule();return n0("#headlessui-portal-root",e),(t,n)=>i.renderSlot(t.$slots,"default",{styles:i.unref(e)})}}),ok="_reset_1t7cn_3",sk={reset:ok},U=(r,e)=>{const t=r.__vccOpts||r;for(const[n,o]of e)t[n]=o;return t},ik={$style:sk},o0=U(nk,[["__cssModules",ik]]),ak=i.defineComponent({__name:"ScrollbarStyles",setup(r){const{scrollbars:e}=i.useCssModule();return n0("#headlessui-portal-root",e),(t,n)=>i.renderSlot(t.$slots,"default",{styles:i.unref(e)})}}),lk="_scrollbars_1mr8w_3",ck={scrollbars:lk},dk={$style:ck},uk=U(ak,[["__cssModules",dk]]),s0=[["--theme-","--scalar-"],["--sidebar-","--scalar-sidebar-"]],hk=s0.map(([r])=>r);function fk(r){return hk.some(t=>r.includes(t))?(console.warn("DEPRECATION WARNING: It looks like you're using legacy CSS variables in your custom CSS string. Please migrate them to use the updated prefixes. See https://github.com/scalar/scalar#theme-prefix-changes"),s0.reduce((t,[n,o])=>t.replaceAll(n,o),r)):r}const mp={default:"Default",alternate:"Alternate",moon:"Moon",purple:"Purple",solarized:"Solarized",bluePlanet:"Blue Planet",saturn:"Saturn",kepler:"Kepler-11e",mars:"Mars",deepSpace:"Deep Space",none:""},pk={alternate:Kw,default:t0,moon:Xw,purple:Qw,solarized:ek,bluePlanet:Ww,deepSpace:Gw,saturn:Zw,kepler:Jw,mars:Yw},mk=(r,e)=>{if(r==="none")return"";const t=pk[r||"default"]??t0;return e!=null&&e.layer?`@layer ${e.layer} {
|
|
1
|
+
"use strict";var Pw=Object.defineProperty;var Iw=(r,e,t)=>e in r?Pw(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var fp=(r,e,t)=>(Iw(r,typeof e!="symbol"?e+"":e,t),t);const i=require("vue"),Le=require("@headlessui/vue"),Xe=require("@vueuse/core"),Mw=require("axios"),Bs=require("prismjs"),Dw=require("@vcarl/remark-headings"),Pi=require("github-slugger"),Qg=require("remark-parse"),Vw=require("remark-stringify"),Zg=require("unified"),pp=require("unhead"),e0=require("httpsnippet-lite"),Rw=require("rehype-external-links"),Lw=require("rehype-format"),jw=require("rehype-highlight"),Fw=require("rehype-raw"),la=require("rehype-sanitize"),qw=require("rehype-stringify"),zw=require("remark-gfm"),Hw=require("remark-rehype"),Uw=require("fuse.js"),Kw=":root{--scalar-text-decoration: underline;--scalar-text-decoration-hover: underline}.light-mode,.light-mode .dark-mode{--scalar-background-1: #f9f9f9;--scalar-background-2: #f1f1f1;--scalar-background-3: #e7e7e7;--scalar-background-card: #fff;--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: var(--scalar-color-1);--scalar-background-accent: var(--scalar-background-3);--scalar-border-color: rgba(0, 0, 0, .1)}.dark-mode{--scalar-background-1: #131313;--scalar-background-2: #1d1d1d;--scalar-background-3: #272727;--scalar-background-card: #1d1d1d;--scalar-color-1: rgba(255, 255, 255, .9);--scalar-color-2: rgba(255, 255, 255, .62);--scalar-color-3: rgba(255, 255, 255, .44);--scalar-color-accent: var(--scalar-color-1);--scalar-background-accent: var(--scalar-background-3);--scalar-border-color: rgba(255, 255, 255, .1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: transparent;--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-sidebar-search-border-color: var(--scalar-border-color);--scalar-sidebar-indent-border: var(--scalar-sidebar-border-color);--scalar-sidebar-indent-border-hover: var(--scalar-sidebar-border-color);--scalar-sidebar-indent-border-active: var(--scalar-sidebar-border-color)}.light-mode .dark-mode,.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #00b648;--scalar-color-red: #dd2f2c;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.scalar-api-client__item,.scalar-card,.dark-mode .dark-mode.scalar-card{--scalar-background-1: var(--scalar-background-card);--scalar-background-2: var(--scalar-background-1);--scalar-background-3: var(--scalar-background-1)}.dark-mode .dark-mode.scalar-card{--scalar-background-3: var(--scalar-background-3)}.t-doc__sidebar{--scalar-color-green: var(--scalar-color-1);--scalar-color-red: var(--scalar-color-1);--scalar-color-yellow: var(--scalar-color-1);--scalar-color-blue: var(--scalar-color-1);--scalar-color-orange: var(--scalar-color-1);--scalar-color-purple: var(--scalar-color-1)}",Ww=":root{--scalar-text-decoration: underline;--scalar-text-decoration-hover: underline}.light-mode{--scalar-background-1: #f0f2f5;--scalar-background-2: #eaecf0;--scalar-background-3: #e0e2e6;--scalar-border-color: rgb(228, 228, 231);--scalar-color-1: rgb(9, 9, 11);--scalar-color-2: rgb(113, 113, 122);--scalar-color-3: rgba(25, 25, 28, .5);--scalar-color-accent: var(--scalar-color-1);--scalar-background-accent: #8ab4f81f;--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .scalar-card.dark-mode,.dark-mode{--scalar-background-1: #000e23;--scalar-background-2: #01132e;--scalar-background-3: #03193b;--scalar-border-color: rgba(255, 255, 255, .12);--scalar-color-1: #fafafa;--scalar-color-2: rgb(161, 161, 170);--scalar-color-3: rgba(255, 255, 255, .533);--scalar-color-accent: var(--scalar-color-1);--scalar-background-accent: #8ab4f81f;--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-active-background: var(--scalar-background-3);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: rgba(255, 255, 255, .1);--scalar-sidebar-search-border-color: var(--scalar-border-color);--scalar-sidebar-search-color: var(--scalar-color-3);z-index:1}.light-mode .t-doc__sidebar{--scalar-sidebar-search-background: white}.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: rgba(69, 255, 165, .823);--scalar-color-red: #ff8589;--scalar-color-yellow: #ffcc4d;--scalar-color-blue: #6bc1fe;--scalar-color-orange: #f98943;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}@keyframes headerbackground{0%{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}to{background:var(--header-background-1);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.section-flare-item:nth-of-type(1){--c1: #ffffff;--c2: #babfd8;--c3: #2e8bb2;--c4: #1a8593;--c5: #0a143e;--c6: #0a0f52;--c7: #2341b8;--solid: var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7);--solid-wrap: var(--solid), var(--c1);--trans: var(--c1), transparent, var(--c2), transparent, var(--c3), transparent, var(--c4), transparent, var(--c5), transparent, var(--c6), transparent, var(--c7);--trans-wrap: var(--trans), transparent, var(--c1);background:radial-gradient(circle,var(--trans)),conic-gradient(from 180deg,var(--trans-wrap)),radial-gradient(circle,var(--trans)),conic-gradient(var(--solid-wrap));width:70vw;height:700px;border-radius:50%;filter:blur(100px);z-index:0;right:0;position:absolute;transform:rotate(-45deg);top:-300px;opacity:.3}.section-flare-item:nth-of-type(3){--star-color: #6b9acc;--star-color2: #446b8d;--star-color3: #3e5879;background-image:radial-gradient(2px 2px at 20px 30px,var(--star-color2),rgba(0,0,0,0)),radial-gradient(2px 2px at 40px 70px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 50px 160px,var(--star-color3),rgba(0,0,0,0)),radial-gradient(2px 2px at 90px 40px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 130px 80px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 160px 120px,var(--star-color3),rgba(0,0,0,0));background-repeat:repeat;background-size:200px 200px;width:100%;height:100%;-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%)}.section-flare{top:-150px!important;height:100vh;background:linear-gradient(#000,var(--scalar-background-1));width:100vw}.light-mode .section-flare{display:none}.light-mode .scalar-card{--scalar-background-1: #fff;--scalar-background-2: #fff;--scalar-background-3: #fff}",Gw=':root{--scalar-text-decoration: underline;--scalar-text-decoration-hover: underline}.light-mode{--scalar-color-1: rgb(9, 9, 11);--scalar-color-2: rgb(113, 113, 122);--scalar-color-3: rgba(25, 25, 28, .5);--scalar-color-accent: var(--scalar-color-1);--scalar-background-1: #fff;--scalar-background-2: #f4f4f5;--scalar-background-3: #e3e3e6;--scalar-background-accent: #8ab4f81f;--scalar-border-color: rgb(228, 228, 231);--scalar-code-language-color-supersede: var(--scalar-color-1)}.dark-mode{--scalar-color-1: #fafafa;--scalar-color-2: rgb(161, 161, 170);--scalar-color-3: rgba(255, 255, 255, .533);--scalar-color-accent: var(--scalar-color-1);--scalar-background-1: #09090b;--scalar-background-2: #18181b;--scalar-background-3: #2c2c30;--scalar-background-accent: #8ab4f81f;--scalar-border-color: rgba(255, 255, 255, .12);--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-3);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: transparent;--scalar-sidebar-search-border-color: var(--scalar-border-color);--scalar-sidebar-search-color: var(--scalar-color-3)}.light-mode .t-doc__sidebar{--scalar-sidebar-item-active-background: var(--scalar-background-2)}.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: rgba(69, 255, 165, .823);--scalar-color-red: #ff8589;--scalar-color-yellow: #ffcc4d;--scalar-color-blue: #6bc1fe;--scalar-color-orange: #f98943;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.examples .scalar-card-footer{--scalar-background-3: transparent;padding-top:0}.section-flare{width:100vw;height:550px;position:relative}.section-flare-item:nth-of-type(1){position:absolute;width:100vw;height:550px;--stripesDark: repeating-linear-gradient( 100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16% );--rainbow: repeating-linear-gradient( 100deg, #fff 10%, #fff 16%, #fff 22%, #fff 30% );background-image:var(--stripesDark),var(--rainbow);background-size:300%,200%;background-position:50% 50%,50% 50%;filter:invert(100%);-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);pointer-events:none;opacity:.07}.dark-mode .section-flare-item:nth-of-type(1){background-image:var(--stripesDark),var(--rainbow);filter:opacity(50%) saturate(200%);opacity:.25;height:350px}.section-flare-item:nth-of-type(1):after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-image:var(--stripesDark),var(--rainbow);background-size:200%,100%;background-attachment:fixed;mix-blend-mode:difference}.dark-mode .section-flare:after{background-image:var(--stripesDark),var(--rainbow)}.section-flare-item:nth-of-type(2){--star-color: #fff;--star-color2: #fff;--star-color3: #fff;width:100%;height:100%;position:absolute;background-image:radial-gradient(2px 2px at 20px 30px,var(--star-color2),rgba(0,0,0,0)),radial-gradient(2px 2px at 40px 70px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 50px 160px,var(--star-color3),rgba(0,0,0,0)),radial-gradient(2px 2px at 90px 40px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 130px 80px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 160px 120px,var(--star-color3),rgba(0,0,0,0));background-repeat:repeat;background-size:200px 200px;-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);opacity:.2}',t0=".light-mode{--scalar-background-1: #fff;--scalar-background-2: #f6f6f6;--scalar-background-3: #e7e7e7;--scalar-background-accent: #8ab4f81f;--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: #0099ff;--scalar-border-color: rgba(0, 0, 0, .1)}.dark-mode{--scalar-background-1: #0f0f0f;--scalar-background-2: #1a1a1a;--scalar-background-3: #272727;--scalar-color-1: rgba(255, 255, 255, .9);--scalar-color-2: rgba(255, 255, 255, .62);--scalar-color-3: rgba(255, 255, 255, .44);--scalar-color-accent: #3ea6ff;--scalar-background-accent: #3ea6ff1f;--scalar-border-color: rgba(255, 255, 255, .1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-active-background: var(--scalar-background-2);--scalar-sidebar-color-active: var(--scalar-color-1);--scalar-sidebar-search-background: transparent;--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-sidebar-search-border-color: var(--scalar-border-color)}.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #00b648;--scalar-color-red: #dc1b19;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}",Jw=".light-mode{--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: #7070ff;--scalar-background-1: #fff;--scalar-background-2: #f6f6f6;--scalar-background-3: #e7e7e7;--scalar-background-accent: #7070ff1f;--scalar-border-color: rgba(0, 0, 0, .1);--scalar-code-language-color-supersede: var(--scalar-color-3)}.dark-mode{--scalar-color-1: #f7f8f8;--scalar-color-2: rgb(180, 188, 208);--scalar-color-3: #b4bcd099;--scalar-color-accent: #828fff;--scalar-background-1: #000212;--scalar-background-2: rgba(255, 255, 255, .05);--scalar-background-3: rgba(255, 255, 255, .09);--scalar-background-accent: #8ab4f81f;--scalar-border-color: #242537;--scalar-code-language-color-supersede: var(--scalar-color-3)}.light-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: rgba(0, 0, 0, .05);--scalar-sidebar-search-border-color: 1px solid rgba(0, 0, 0, .05);--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-background-2: rgba(0, 0, 0, .03)}.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: rgba(255, 255, 255, .1);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: rgba(255, 255, 255, .1);--scalar-sidebar-search-border-color: 1px solid rgba(255, 255, 255, .05);--scalar-sidebar-search-color: var(--scalar-color-3)}.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #00b648;--scalar-color-red: #dc1b19;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.sidebar-search{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}@keyframes headerbackground{0%{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}to{background:var(--header-background-1);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}}.dark-mode .scalar-card{background:#ffffff0d!important}.dark-mode .scalar-card *{--scalar-background-2: transparent !important;--scalar-background-1: transparent !important}.light-mode .dark-mode.scalar-card *,.light-mode .dark-mode.scalar-card{--scalar-background-1: #0d0f1e !important;--scalar-background-2: #0d0f1e !important;--scalar-background-3: #191b29 !important}.light-mode .dark-mode.scalar-card{background:#191b29!important}.badge{box-shadow:0 0 0 1px var(--scalar-border-color);margin-right:6px}.table-row.required-parameter .table-row-item:nth-of-type(2):after{background:transparent;box-shadow:none}.section-flare{width:100vw;background:radial-gradient(ellipse 80% 50% at 50% -20%,rgba(120,119,198,.3),transparent);height:100vh}",Yw=":root{--scalar-text-decoration: underline;--scalar-text-decoration-hover: underline}.light-mode{--scalar-background-1: #f9f6f0;--scalar-background-2: #f2efe8;--scalar-background-3: #e9e7e2;--scalar-border-color: rgba(203, 165, 156, .6);--scalar-color-1: #c75549;--scalar-color-2: #c75549;--scalar-color-3: #c75549;--scalar-color-accent: #c75549;--scalar-background-accent: #dcbfa81f;--scalar-code-language-color-supersede: var(--scalar-color-1)}.dark-mode{--scalar-background-1: #140507;--scalar-background-2: #20090c;--scalar-background-3: #321116;--scalar-border-color: rgba(255, 255, 255, .1);--scalar-color-1: rgba(255, 255, 255, .9);--scalar-color-2: rgba(255, 255, 255, .62);--scalar-color-3: rgba(255, 255, 255, .44);--scalar-color-accent: rgba(255, 255, 255, .9);--scalar-background-accent: #441313;--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-3);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: rgba(255, 255, 255, .1);--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-sidebar-search-border-color: var(--scalar-border-color);z-index:1}.light-mode{--scalar-color-green: #09533a;--scalar-color-red: #aa181d;--scalar-color-yellow: #ab8d2b;--scalar-color-blue: #19689a;--scalar-color-orange: #b26c34;--scalar-color-purple: #4c2191;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: rgba(69, 255, 165, .823);--scalar-color-red: #ff8589;--scalar-color-yellow: #ffcc4d;--scalar-color-blue: #6bc1fe;--scalar-color-orange: #f98943;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.light-mode .t-doc__sidebar{--scalar-sidebar-search-background: white}.examples .scalar-card-footer{--scalar-background-3: transparent;padding-top:0}.section-flare-item:nth-of-type(1){background:#d25019;width:80vw;height:500px;margin-top:-150px;border-radius:50%;filter:blur(100px);z-index:0}.light-mode .section-flare{display:none}.section-flare{top:-150px!important;height:100vh;right:-400px!important;left:initial}",Xw=".light-mode{color-scheme:light;--scalar-color-1: #000000;--scalar-color-2: #000000;--scalar-color-3: #000000;--scalar-color-accent: #645b0f;--scalar-background-1: #ccc9b3;--scalar-background-2: #c2bfaa;--scalar-background-3: #b8b5a1;--scalar-background-accent: #000000;--scalar-border-color: rgba(0, 0, 0, .2);--scalar-scrollbar-color: rgba(0, 0, 0, .18);--scalar-scrollbar-color-active: rgba(0, 0, 0, .36);--scalar-lifted-brightness: 1;--scalar-backdrop-brightness: 1;--scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, .11);--scalar-shadow-2: rgba(0, 0, 0, .08) 0px 13px 20px 0px, rgba(0, 0, 0, .08) 0px 3px 8px 0px, var(--scalar-border-color) 0px 0 0 1px;--scalar-button-1: rgb(49 53 56);--scalar-button-1-color: #fff;--scalar-button-1-hover: rgb(28 31 33);--scalar-color-red: #b91c1c;--scalar-color-orange: #a16207;--scalar-color-green: #047857;--scalar-color-blue: #1d4ed8;--scalar-color-orange: #c2410c;--scalar-color-purple: #6d28d9}.dark-mode{color-scheme:dark;--scalar-color-1: #fffef3;--scalar-color-2: #fffef3;--scalar-color-3: #fffef3;--scalar-color-accent: #c3b531;--scalar-background-1: #313332;--scalar-background-2: #393b3a;--scalar-background-3: #414342;--scalar-background-accent: #fffef3;--scalar-border-color: rgba(255, 255, 255, .1);--scalar-scrollbar-color: rgba(255, 255, 255, .24);--scalar-scrollbar-color-active: rgba(255, 255, 255, .48);--scalar-lifted-brightness: 1.45;--scalar-backdrop-brightness: .5;--scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, .11);--scalar-shadow-2: rgba(15, 15, 15, .2) 0px 3px 6px, rgba(15, 15, 15, .4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, .1);--scalar-button-1: #f6f6f6;--scalar-button-1-color: #000;--scalar-button-1-hover: #e7e7e7;--scalar-color-green: #00b648;--scalar-color-red: #dc1b19;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9}.light-mode .t-doc__sidebar,.dark-mode .sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-sidebar-background-1);--scalar-sidebar-search-background: var(--scalar-background-3);--scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);--scalar-sidebar-search--color: var(--scalar-color-3)}",Qw=".light-mode{--scalar-background-1: #fff;--scalar-background-2: #f5f6f8;--scalar-background-3: #eceef1;--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: #5469d4;--scalar-background-accent: #5469d41f;--scalar-border-color: rgba(215, 215, 206, .5)}.dark-mode{--scalar-background-1: #15171c;--scalar-background-2: #1c1e24;--scalar-background-3: #22252b;--scalar-color-1: #fafafa;--scalar-color-2: #c9ced8;--scalar-color-3: #8c99ad;--scalar-color-accent: #5469d4;--scalar-background-accent: #5469d41f;--scalar-border-color: rgba(255, 255, 255, .12)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-3);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: var(--scalar-background-1);--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-sidebar-search-border-color: var(--scalar-border-color)}.light-mode{--scalar-color-green: #17803d;--scalar-color-red: #e10909;--scalar-color-yellow: #edbe20;--scalar-color-blue: #1763a6;--scalar-color-orange: #e25b09;--scalar-color-purple: #5c3993;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #30a159;--scalar-color-red: #dc1b19;--scalar-color-yellow: #eec644;--scalar-color-blue: #2b7abf;--scalar-color-orange: #f07528;--scalar-color-purple: #7a59b1;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}",Zw=".light-mode{--scalar-background-1: #f3f3ee;--scalar-background-2: #e8e8e3;--scalar-background-3: #e4e4df;--scalar-border-color: rgba(215, 215, 206, .5);--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: #1763a6;--scalar-background-accent: #1f648e1f}.dark-mode{--scalar-background-1: #09090b;--scalar-background-2: #18181b;--scalar-background-3: #2c2c30;--scalar-border-color: rgba(255, 255, 255, .12);--scalar-color-1: #fafafa;--scalar-color-2: rgb(161, 161, 170);--scalar-color-3: rgba(255, 255, 255, .533);--scalar-color-accent: #4eb3ec;--scalar-background-accent: #8ab4f81f}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-active-background: var(--scalar-background-3);--scalar-sidebar-color-active: var(--scalar-color-1);--scalar-sidebar-search-background: var(--scalar-background-1);--scalar-sidebar-search-border-color: var(--scalar-border-color);--scalar-sidebar-search-color: var(--scalar-color-3)}.light-mode{--scalar-color-green: #17803d;--scalar-color-red: #e10909;--scalar-color-yellow: #edbe20;--scalar-color-blue: #1763a6;--scalar-color-orange: #e25b09;--scalar-color-purple: #5c3993;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #30a159;--scalar-color-red: #dc1b19;--scalar-color-yellow: #eec644;--scalar-color-blue: #2b7abf;--scalar-color-orange: #f07528;--scalar-color-purple: #7a59b1;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}",ek=".light-mode{color-scheme:light;--scalar-color-1: #584c27;--scalar-color-2: #616161;--scalar-color-3: #a89f84;--scalar-color-accent: #b58900;--scalar-background-1: #fdf6e3;--scalar-background-2: #eee8d5;--scalar-background-3: #ddd6c1;--scalar-background-accent: #b589001f;--scalar-border-color: #ded8c8;--scalar-scrollbar-color: rgba(0, 0, 0, .18);--scalar-scrollbar-color-active: rgba(0, 0, 0, .36);--scalar-lifted-brightness: 1;--scalar-backdrop-brightness: 1;--scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, .11);--scalar-shadow-2: rgba(0, 0, 0, .08) 0px 13px 20px 0px, rgba(0, 0, 0, .08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;--scalar-button-1: rgb(49 53 56);--scalar-button-1-color: #fff;--scalar-button-1-hover: rgb(28 31 33);--scalar-color-red: #b91c1c;--scalar-color-orange: #a16207;--scalar-color-green: #047857;--scalar-color-blue: #1d4ed8;--scalar-color-orange: #c2410c;--scalar-color-purple: #6d28d9}.dark-mode{color-scheme:dark;--scalar-color-1: #fff;--scalar-color-2: #cccccc;--scalar-color-3: #6d8890;--scalar-color-accent: #007acc;--scalar-background-1: #00212b;--scalar-background-2: #012b36;--scalar-background-3: #004052;--scalar-background-accent: #015a6f;--scalar-border-color: rgba(255, 255, 255, .1);--scalar-scrollbar-color: rgba(255, 255, 255, .24);--scalar-scrollbar-color-active: rgba(255, 255, 255, .48);--scalar-lifted-brightness: 1.45;--scalar-backdrop-brightness: .5;--scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, .1);--scalar-shadow-2: rgba(15, 15, 15, .2) 0px 3px 6px, rgba(15, 15, 15, .4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, .1);--scalar-button-1: #f6f6f6;--scalar-button-1-color: #000;--scalar-button-1-hover: #e7e7e7;--scalar-color-green: #00b648;--scalar-color-red: #dc1b19;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9}.light-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: var(--scalar-background-2);--scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);--scalar-sidebar-search--color: var(--scalar-color-3)}.dark-mode .sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-sidebar-color-1);--scalar-sidebar-search-background: var(--scalar-background-2);--scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);--scalar-sidebar-search--color: var(--scalar-color-3)}",tk='@import"https://fonts.googleapis.com/css2?family=Inter:wght@100..900";@import"https://fonts.googleapis.com/css?family=JetBrains%20Mono";',rk=i.defineComponent({__name:"DefaultFonts",setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent("style"),{innerHTML:i.unref(tk)},null,8,["innerHTML"]))}}),r0=i.defineComponent({__name:"ThemeStyles",props:{id:{},withDefaultFonts:{type:Boolean,default:!0}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[e.withDefaultFonts?(i.openBlock(),i.createBlock(rk,{key:0})):i.createCommentVNode("",!0),e.id!=="none"?(i.openBlock(),i.createBlock(i.resolveDynamicComponent("style"),{key:1},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(mk)(e.id,{layer:"scalar-theme"})),1)]),_:1})):i.createCommentVNode("",!0)],64))}});function n0(r,e){i.onMounted(()=>{if(!document.body)return;const t=document.querySelector(r);t==null||t.classList.add(e)})}const nk=i.defineComponent({__name:"ResetStyles",setup(r){const{reset:e}=i.useCssModule();return n0("#headlessui-portal-root",e),(t,n)=>i.renderSlot(t.$slots,"default",{styles:i.unref(e)})}}),ok="_reset_1w0av_3",sk={reset:ok},U=(r,e)=>{const t=r.__vccOpts||r;for(const[n,o]of e)t[n]=o;return t},ik={$style:sk},o0=U(nk,[["__cssModules",ik]]),ak=i.defineComponent({__name:"ScrollbarStyles",setup(r){const{scrollbars:e}=i.useCssModule();return n0("#headlessui-portal-root",e),(t,n)=>i.renderSlot(t.$slots,"default",{styles:i.unref(e)})}}),lk="_scrollbars_3tunk_3",ck={scrollbars:lk},dk={$style:ck},uk=U(ak,[["__cssModules",dk]]),s0=[["--theme-","--scalar-"],["--sidebar-","--scalar-sidebar-"]],hk=s0.map(([r])=>r);function fk(r){return hk.some(t=>r.includes(t))?(console.warn("DEPRECATION WARNING: It looks like you're using legacy CSS variables in your custom CSS string. Please migrate them to use the updated prefixes. See https://github.com/scalar/scalar#theme-prefix-changes"),s0.reduce((t,[n,o])=>t.replaceAll(n,o),r)):r}const mp={default:"Default",alternate:"Alternate",moon:"Moon",purple:"Purple",solarized:"Solarized",bluePlanet:"Blue Planet",saturn:"Saturn",kepler:"Kepler-11e",mars:"Mars",deepSpace:"Deep Space",none:""},pk={alternate:Kw,default:t0,moon:Xw,purple:Qw,solarized:ek,bluePlanet:Ww,deepSpace:Gw,saturn:Zw,kepler:Jw,mars:Yw},mk=(r,e)=>{if(r==="none")return"";const t=pk[r||"default"]??t0;return e!=null&&e.layer?`@layer ${e.layer} {
|
|
2
2
|
${t}}`:t};function gk(){return{showApiClient:!1,activeApiClientEndpointId:"",activeItem:{},snippetType:"javascript"}}const nn=i.reactive(gk());function yk(r,e=!1){e?nn.showApiClient=!0:nn.showApiClient=!nn.showApiClient,r&&(nn.activeItem=r)}function vk(){nn.showApiClient=!1}function bk(r){nn.activeApiClientEndpointId=r}function wk(r){nn.snippetType=r}const jl=()=>({state:i.readonly(nn),toggleApiClient:yk,setActiveApiClientEndpointId:bk,setSnippetType:wk,hideApiClient:vk}),Wu=r=>{let e=0,t=0,n=0;if(!(r!=null&&r.length))return t;for(n=0;n<r.length;n++)e=r.charCodeAt(n),t=(t<<5)-t+e,t|=0;return t},$d=()=>({}),ts=typeof window<"u"?window.__SCALAR__??$d():$d(),Gu=Symbol.for("yaml.alias"),kk=Symbol.for("yaml.document"),zn=Symbol.for("yaml.map"),i0=Symbol.for("yaml.pair"),Ju=Symbol.for("yaml.scalar"),Ii=Symbol.for("yaml.seq"),Sr=Symbol.for("yaml.node.type"),rs=r=>!!r&&typeof r=="object"&&r[Sr]===Gu,Fl=r=>!!r&&typeof r=="object"&&r[Sr]===kk,a0=r=>!!r&&typeof r=="object"&&r[Sr]===zn,nt=r=>!!r&&typeof r=="object"&&r[Sr]===i0,Ge=r=>!!r&&typeof r=="object"&&r[Sr]===Ju,Yu=r=>!!r&&typeof r=="object"&&r[Sr]===Ii;function xt(r){if(r&&typeof r=="object")switch(r[Sr]){case zn:case Ii:return!0}return!1}function bt(r){if(r&&typeof r=="object")switch(r[Sr]){case Gu:case zn:case Ju:case Ii:return!0}return!1}const Sk=r=>(Ge(r)||xt(r))&&!!r.anchor,Nn=Symbol("break visit"),xk=Symbol("skip children"),Zs=Symbol("remove node");function ui(r,e){const t=Ck(e);Fl(r)?Co(null,r.contents,t,Object.freeze([r]))===Zs&&(r.contents=null):Co(null,r,t,Object.freeze([]))}ui.BREAK=Nn;ui.SKIP=xk;ui.REMOVE=Zs;function Co(r,e,t,n){const o=Ek(r,e,t,n);if(bt(o)||nt(o))return $k(r,n,o),Co(r,o,t,n);if(typeof o!="symbol"){if(xt(e)){n=Object.freeze(n.concat(e));for(let s=0;s<e.items.length;++s){const a=Co(s,e.items[s],t,n);if(typeof a=="number")s=a-1;else{if(a===Nn)return Nn;a===Zs&&(e.items.splice(s,1),s-=1)}}}else if(nt(e)){n=Object.freeze(n.concat(e));const s=Co("key",e.key,t,n);if(s===Nn)return Nn;s===Zs&&(e.key=null);const a=Co("value",e.value,t,n);if(a===Nn)return Nn;a===Zs&&(e.value=null)}}return o}function Ck(r){return typeof r=="object"&&(r.Collection||r.Node||r.Value)?Object.assign({Alias:r.Node,Map:r.Node,Scalar:r.Node,Seq:r.Node},r.Value&&{Map:r.Value,Scalar:r.Value,Seq:r.Value},r.Collection&&{Map:r.Collection,Seq:r.Collection},r):r}function Ek(r,e,t,n){var o,s,a,l,c;if(typeof t=="function")return t(r,e,n);if(a0(e))return(o=t.Map)==null?void 0:o.call(t,r,e,n);if(Yu(e))return(s=t.Seq)==null?void 0:s.call(t,r,e,n);if(nt(e))return(a=t.Pair)==null?void 0:a.call(t,r,e,n);if(Ge(e))return(l=t.Scalar)==null?void 0:l.call(t,r,e,n);if(rs(e))return(c=t.Alias)==null?void 0:c.call(t,r,e,n)}function $k(r,e,t){const n=e[e.length-1];if(xt(n))n.items[r]=t;else if(nt(n))r==="key"?n.key=t:n.value=t;else if(Fl(n))n.contents=t;else{const o=rs(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}function l0(r){if(/[\x00-\x19\s,[\]{}]/.test(r)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(r)}`;throw new Error(t)}return!0}function Hs(r,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,s=n.length;o<s;++o){const a=n[o],l=Hs(r,n,String(o),a);l===void 0?delete n[o]:l!==a&&(n[o]=l)}else if(n instanceof Map)for(const o of Array.from(n.keys())){const s=n.get(o),a=Hs(r,n,o,s);a===void 0?n.delete(o):a!==s&&n.set(o,a)}else if(n instanceof Set)for(const o of Array.from(n)){const s=Hs(r,n,o,o);s===void 0?n.delete(o):s!==o&&(n.delete(o),n.add(s))}else for(const[o,s]of Object.entries(n)){const a=Hs(r,n,o,s);a===void 0?delete n[o]:a!==s&&(n[o]=a)}return r.call(e,t,n)}function Yt(r,e,t){if(Array.isArray(r))return r.map((n,o)=>Yt(n,String(o),t));if(r&&typeof r.toJSON=="function"){if(!t||!Sk(r))return r.toJSON(e,t);const n={aliasCount:0,count:1,res:void 0};t.anchors.set(r,n),t.onCreate=s=>{n.res=s,delete t.onCreate};const o=r.toJSON(e,t);return t.onCreate&&t.onCreate(o),o}return typeof r=="bigint"&&!(t!=null&&t.keep)?Number(r):r}class Xu{constructor(e){Object.defineProperty(this,Sr,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:o,reviver:s}={}){if(!Fl(e))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},l=Yt(this,"",a);if(typeof o=="function")for(const{count:c,res:d}of a.anchors.values())o(d,c);return typeof s=="function"?Hs(s,{"":l},"",l):l}}class _k extends Xu{constructor(e){super(Gu),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return ui(e,{Node:(n,o)=>{if(o===this)return ui.BREAK;o.anchor===this.source&&(t=o)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:o,maxAliasCount:s}=t,a=this.resolve(o);if(!a){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let l=n.get(a);if(l||(Yt(a,null,t),l=n.get(a)),!l||l.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=Fa(o,a,n)),l.count*l.aliasCount>s)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return l.res}toString(e,t,n){const o=`*${this.source}`;if(e){if(l0(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${o} `}return o}}function Fa(r,e,t){if(rs(e)){const n=e.resolve(r),o=t&&n&&t.get(n);return o?o.count*o.aliasCount:0}else if(xt(e)){let n=0;for(const o of e.items){const s=Fa(r,o,t);s>n&&(n=s)}return n}else if(nt(e)){const n=Fa(r,e.key,t),o=Fa(r,e.value,t);return Math.max(n,o)}return 1}const c0=r=>!r||typeof r!="function"&&typeof r!="object";class ze extends Xu{constructor(e){super(Ju),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:Yt(this.value,e,t)}toString(){return String(this.value)}}ze.BLOCK_FOLDED="BLOCK_FOLDED";ze.BLOCK_LITERAL="BLOCK_LITERAL";ze.PLAIN="PLAIN";ze.QUOTE_DOUBLE="QUOTE_DOUBLE";ze.QUOTE_SINGLE="QUOTE_SINGLE";const Nk="tag:yaml.org,2002:";function Ak(r,e,t){if(e){const n=t.filter(s=>s.tag===e),o=n.find(s=>!s.format)??n[0];if(!o)throw new Error(`Tag ${e} not found`);return o}return t.find(n=>{var o;return((o=n.identify)==null?void 0:o.call(n,r))&&!n.format})}function ll(r,e,t){var h,f,p;if(Fl(r)&&(r=r.contents),bt(r))return r;if(nt(r)){const y=(f=(h=t.schema[zn]).createNode)==null?void 0:f.call(h,t.schema,null,t);return y.items.push(r),y}(r instanceof String||r instanceof Number||r instanceof Boolean||typeof BigInt<"u"&&r instanceof BigInt)&&(r=r.valueOf());const{aliasDuplicateObjects:n,onAnchor:o,onTagObj:s,schema:a,sourceObjects:l}=t;let c;if(n&&r&&typeof r=="object"){if(c=l.get(r),c)return c.anchor||(c.anchor=o(r)),new _k(c.anchor);c={anchor:null,node:null},l.set(r,c)}e!=null&&e.startsWith("!!")&&(e=Nk+e.slice(2));let d=Ak(r,e,a.tags);if(!d){if(r&&typeof r.toJSON=="function"&&(r=r.toJSON()),!r||typeof r!="object"){const y=new ze(r);return c&&(c.node=y),y}d=r instanceof Map?a[zn]:Symbol.iterator in Object(r)?a[Ii]:a[zn]}s&&(s(d),delete t.onTagObj);const u=d!=null&&d.createNode?d.createNode(t.schema,r,t):typeof((p=d==null?void 0:d.nodeClass)==null?void 0:p.from)=="function"?d.nodeClass.from(t.schema,r,t):new ze(r);return e?u.tag=e:d.default||(u.tag=d.tag),c&&(c.node=u),u}function gp(r,e,t){let n=t;for(let o=e.length-1;o>=0;--o){const s=e[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const a=[];a[s]=n,n=a}else n=new Map([[s,n]])}return ll(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:r,sourceObjects:new Map})}const Ok=r=>r==null||typeof r=="object"&&!!r[Symbol.iterator]().next().done;class Qu extends Xu{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>bt(n)||nt(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Ok(e))this.add(t);else{const[n,...o]=e,s=this.get(n,!0);if(xt(s))s.addIn(o,t);else if(s===void 0&&this.schema)this.set(n,gp(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(e){const[t,...n]=e;if(n.length===0)return this.delete(t);const o=this.get(t,!0);if(xt(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...o]=e,s=this.get(n,!0);return o.length===0?!t&&Ge(s)?s.value:s:xt(s)?s.getIn(o,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!nt(t))return!1;const n=t.value;return n==null||e&&Ge(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[t,...n]=e;if(n.length===0)return this.has(t);const o=this.get(t,!0);return xt(o)?o.hasIn(n):!1}setIn(e,t){const[n,...o]=e;if(o.length===0)this.set(n,t);else{const s=this.get(n,!0);if(xt(s))s.setIn(o,t);else if(s===void 0&&this.schema)this.set(n,gp(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}}Qu.maxFlowStringSingleLineLength=60;const Tk=r=>r.replace(/^(?!$)(?: $)?/gm,"#");function hi(r,e){return/^\n+$/.test(r)?r.substring(1):e?r.replace(/^(?! *$)/gm,e):r}const Eo=(r,e,t)=>r.endsWith(`
|
|
3
3
|
`)?hi(t,e):t.includes(`
|
|
4
4
|
`)?`
|
|
@@ -212,11 +212,11 @@ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.pus
|
|
|
212
212
|
|
|
213
213
|
`):f.map(h)}function Qs(r,e){return typeof e=="string"?[{start:{line:1,column:1,offset:0},error:e,path:""}]:A5(r,null,e,{format:"js",indent:2,colorize:!1}).map(t=>(t.error=t.error.trim(),t))}function O5(r){try{return A1(r),{valid:!0}}catch(e){return{valid:!1,errors:Qs(r,e.message)}}}class Ff{constructor(){Yr(this,"version"),Yr(this,"ajvValidators",{}),Yr(this,"externalRefs",{}),Yr(this,"errors"),Yr(this,"specificationVersion"),Yr(this,"specificationType"),Yr(this,"specification")}resolveReferences(e){return A1(e.find(t=>t.isEntrypoint===!0).specification)}async validate(e){var t;const n=e.find(s=>s.isEntrypoint),o=n==null?void 0:n.specification;this.specification=o,(t=this.specification)!=null&&t.info&&!this.specification.info.version&&(this.specification.info.version="0.0.1");try{if(o==null)return{valid:!1,errors:Qs(n,Iu.EMPTY_OR_INVALID)};Object.keys(this.externalRefs).length>0&&(o[gM]=this.externalRefs);const{version:s,specificationType:a,specificationVersion:l}=N1(o);if(this.version=s,this.specificationVersion=l,this.specificationType=a,!s)return{valid:!1,errors:Qs(n,Iu.OPENAPI_VERSION_NOT_SUPPORTED)};const c=await this.getAjvValidator(s);return c(o)?O5(n.specification):c.errors&&c.errors.length>0?{valid:!1,errors:Qs(n,c.errors)}:{valid:!1}}catch(s){return{valid:!1,errors:Qs(n,s.message??s)}}}async getAjvValidator(e){if(this.ajvValidators[e])return this.ajvValidators[e];const t=await $N(Object.assign({"../../../schemas/v2.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BQQoKgNw-CyFt8nZw.cjs")),"../../../schemas/v3.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BjykgtPd-C_N_PTsi.cjs")),"../../../schemas/v3.1/schema.json":()=>Promise.resolve().then(()=>require("./schema-ZROhtp0X-DL6m5HXA.cjs"))}),`../../../schemas/v${e}/schema.json`),n=mM[t.$schema],o=new n({strict:!1});return wB(o),e==="3.1"&&o.addFormat("media-range",!0),this.ajvValidators[e]=o.compile(t)}}Yr(Ff,"supportedVersions",Bb);function T5(){return{load:B5}}function B5(r){const e=$1(r);return{get:()=>e,details:()=>Dc(e),filter:t=>Yi(e,t),upgrade:()=>F1(e),validate:()=>qf(e),resolve:()=>Mc(e),toJson:()=>Xi(e),toYaml:()=>Qi(e)}}function F1(r){const e=PD(r);return{get:()=>e,details:()=>Dc(e),filter:t=>Yi(e,t),validate:()=>qf(e),resolve:()=>Mc(e),toJson:()=>Xi(e),toYaml:()=>Qi(e)}}async function qf(r){return{...await ID(r),filter:e=>Yi(r,e),get:()=>r,details:()=>Dc(r),resolve:()=>Mc(r),toJson:()=>Xi(r),toYaml:()=>Qi(r)}}async function Mc(r){return{...await ND(r),filter:e=>Yi(r,e),toJson:()=>Xi(r),toYaml:()=>Qi(r)}}function Yi(r,e){const t=yM(r,e);return{get:()=>t,details:()=>Dc(t),filter:()=>Yi(t,e),upgrade:()=>F1(t),validate:()=>qf(t),resolve:()=>Mc(t),toJson:()=>Xi(t),toYaml:()=>Qi(t)}}function Dc(r){return N1(r)}function Xi(r){return AD(r)}function Qi(r){return OD(r)}const q1=r=>new Promise(async(e,t)=>{var n;try{if(!r)return e(Ra(Un()));const{schema:o,errors:s}=await T5().load(r).resolve();return s!=null&&s.length&&console.warn(`Please open an issue on https://github.com/scalar/scalar
|
|
214
214
|
`,`Scalar OpenAPI Parser Warning:
|
|
215
|
-
`,s),o===void 0?(t(((n=s==null?void 0:s[0])==null?void 0:n.error)??"Failed to parse the OpenAPI file."),e(Ra(Un()))):e(Ra(o))}catch(o){t(o)}return e(Ra(Un()))}),Ra=r=>{let e={};r&&typeof r=="object"?e=structuredClone(r):e=Un(),e.tags||(e.tags=[]),e.paths||(e.paths={});const t={};return Object.keys(e.webhooks??{}).forEach(o=>{var s;Object.keys(((s=e.webhooks)==null?void 0:s[o])??{}).forEach(a=>{var c,d,u;const l=(c=e.webhooks)==null?void 0:c[o][a];(l==null?void 0:l["x-internal"])!==!0&&(t[o]===void 0&&(t[o]={}),t[o][a]={httpVerb:a,path:o,operationId:(l==null?void 0:l.operationId)||o,name:(l==null?void 0:l.summary)||o||"",description:(l==null?void 0:l.description)||"",pathParameters:(u=(d=e.paths)==null?void 0:d[o])==null?void 0:u.parameters,information:{...l}})})}),Object.keys(e.paths).forEach(o=>{Object.keys(e.paths[o]).filter(a=>oh.includes(a.toUpperCase())).forEach(a=>{var d,u,h,f,p,y;const l=e.paths[o][a];if(l===void 0||l["x-internal"]===!0)return;const c={httpVerb:a,path:o,operationId:l.operationId||o,name:l.summary||o||"",description:l.description||"",information:{...l},pathParameters:(u=(d=e.paths)==null?void 0:d[o])==null?void 0:u.parameters};if(!l.tags||l.tags.length===0){(h=e.tags)!=null&&h.find(m=>m.name==="default")||(f=e.tags)==null||f.push({name:"default",description:"",operations:[]});const g=(p=e.tags)==null?void 0:p.findIndex(m=>m.name==="default");g>=0&&((y=e.tags[g])==null||y.operations.push(c))}else l.tags.forEach(g=>{var b,w,S;const m=(b=e.tags)==null?void 0:b.findIndex(x=>x.name===g);m===-1&&((w=e.tags)==null||w.push({name:g,description:""}));const v=m!==-1?m:e.tags.length-1;typeof((S=e.tags[v])==null?void 0:S.operations)>"u"&&(e.tags[v].operations=[]),e.tags[v].operations.push(c)})})}),{...e,webhooks:t}},Vc=Symbol(),zf=Symbol(),Ti=async r=>{var e;(e=document.getElementById(r))==null||e.scrollIntoView()},wr=r=>new Promise(e=>setTimeout(e,r)),P5=Symbol("downloadSpec"),Hf=Xe.useEventBus(P5);function z1(r,e){const t=m0(r),n=t?new Blob([r],{type:"application/json"}):new Blob([r],{type:"application/x-yaml"}),o=URL.createObjectURL(n),s=t?".json":".yaml",a="spec"+s,l=e?e+s:a,c=document.createElement("a");c.href=o,c.download=l,c.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(o),c.remove()},100)}function H1(r,e=1){const t=new RegExp(`^(?=#{${e}} )`,"m");return r.split(t).map(n=>n.trim()).filter(Boolean)}const ws=()=>{const{toast:r}=Eh();return{copyToClipboard:t=>{navigator.clipboard.writeText(t).then(()=>{r("Copied to the clipboard","info")})}}},Jr=i.ref(!1);function I5(r){var o;const e=()=>{var a,l;const s=typeof window<"u"?(a=window.localStorage)==null?void 0:a.getItem("isDark"):null;return typeof s=="string"?!!JSON.parse(s):!!(typeof window<"u"&&((l=window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)"))!=null&&l.matches))},t=()=>{var s;Jr.value=!Jr.value,typeof window<"u"&&((s=window==null?void 0:window.localStorage)==null||s.setItem("isDark",JSON.stringify(Jr.value)))};function n(s){var a;Jr.value=s,typeof window<"u"&&((a=window==null?void 0:window.localStorage)==null||a.setItem("isDark",JSON.stringify(Jr.value)))}return Jr.value=(typeof window>"u"?null:JSON.parse(((o=window.localStorage)==null?void 0:o.getItem("isDark"))||"null"))??r??e(),i.watch(Jr,s=>{typeof document>"u"||(document.body.classList.toggle("dark-mode",s),document.body.classList.toggle("light-mode",!s))},{immediate:!0}),{isDark:Jr,toggleDarkMode:t,setDarkMode:n}}const Ug="https://api.scalar.com/request-proxy",La="https://proxy.scalar.com",M5="http://localhost:5051";function D5(r){i.watch(()=>r,()=>{var e;r.proxy===Ug?(console.warn(`[DEPRECATED] Warning: configuration.proxy points to our old proxy (${Ug}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${La}) instead.`),r.proxy=La,console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${La}). Read more: https://github.com/scalar/scalar`)):(e=r.proxy)!=null&&e.length&&r.proxy!==La&&r.proxy!==M5&&(console.warn(`[DEPRECATED] Warning: configuration.proxy points to a custom proxy (${r==null?void 0:r.proxy}).`),console.warn("[DEPRECATED] Action Required: You need to use our new proxy (written in Go). Read more: https://github.com/scalar/scalar/tree/main/examples/proxy-server"))},{immediate:!0})}const Uf=i.ref(ts.hash??""),Dl=i.ref(),V5=i.ref(!1),R5=r=>r.slug?`description/${r.slug}`:"",U1=r=>{var t;if(!Dl.value)return"";const e=new RegExp("^"+((t=Dl.value)==null?void 0:t.basePath)+"/?");return decodeURIComponent(r.replace(e,""))},L5=(r,e)=>{if(!r)return"webhooks";const t=Pi.slug(r),n=encodeURIComponent(t);return`webhook/${e}/${n}`},j5=r=>{if(!r)return"models";const e=Pi.slug(r);return`model/${encodeURIComponent(e)}`},F5=(r,e)=>`${K1(e)}/${r.httpVerb}${r.path}`,K1=({name:r})=>{const e=Pi.slug(r);return`tag/${encodeURIComponent(e)}`},q5=(r=Uf.value)=>{var n;const e=(n=r.match(/(tag\/[^/]+)/))==null?void 0:n[0],t=r.startsWith("model")?"models":"";return e??t},z5=()=>{Uf.value=Dl.value?U1(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,""))},ct=()=>({hash:Uf,getWebhookId:L5,getModelId:j5,getHeadingId:R5,getOperationId:F5,getPathRoutingId:U1,getSectionId:q5,getTagId:K1,isIntersectionEnabled:V5,pathRouting:Dl,updateHash:z5});function Kf(r){return{parameterMap:i.computed(()=>{var o;const t=((o=r.operation.information)==null?void 0:o.parameters)??[],n={path:[],query:[],header:[],body:[],formData:[]};return r.operation.pathParameters&&r.operation.pathParameters.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),t&&t.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),n})}}const H5=async({url:r,content:e},t)=>{if(r)return Gv(r)?await bp(r,t):await bp(r);const n=typeof e=="function"?e():e;if(typeof n=="string")return n;if(typeof n=="object")return fi(n)};function W1({specConfig:r,proxy:e}){const t=i.ref(""),n=i.reactive(Un()),o=i.ref(null);function s(a){return a?q1(a).then(l=>{o.value=null,Object.assign(n,{servers:[],...l})}).catch(l=>{o.value=l.toString()}):Object.assign(n,Un())}return i.watch(()=>i.toValue(r),async a=>{var l;if(a){const c=(l=await H5(a,i.toValue(e)))==null?void 0:l.trim();typeof c=="string"&&(t.value=c)}},{immediate:!0,deep:!0}),i.watch(t,()=>{s(t.value)}),{rawSpec:t,parsedSpec:n,specErrors:o}}function Wf(r){return{responses:i.computed(()=>{if(!r.information)return[];const{responses:t}=r.information,n=[];return t&&Object.keys(t).forEach(o=>{n.push({name:o,description:t[o].description})}),n})}}const{getHeadingId:Kg,getModelId:Wg,getOperationId:Gg,getSectionId:U5,getTagId:G1,getWebhookId:xd,hash:qu}=ct(),Je=i.ref(void 0);function K5(r){return Je.value=r}const J1=i.ref(!1),Vl=i.reactive(ts["useSidebarContent-collapsedSidebarItems"]??{});function W5(r){Vl[r]=!Vl[r]}function Cd(r,e){Vl[r]=e}const Rl=i.ref([]),G5=async r=>{const e=await Ei(r),t=rc(e);return e.filter(n=>n.depth===t||n.depth===t+1)},Y1=i.computed(()=>{var h,f,p,y,g,m,v,b,w,S;const{state:r}=jl(),e={},{openApi:{globalSecurity:t}}=rh(),n=[];let o=null;Rl.value.forEach(x=>{var k;x.depth===rc(Rl.value)?(o={id:Kg(x),title:x.value,show:!r.showApiClient,children:[]},n.push(o)):o&&((k=o.children)==null||k.push({id:Kg(x),title:x.value,show:!r.showApiClient}))});const s=(f=(h=Je.value)==null?void 0:h.tags)==null?void 0:f[0],l=s&&(x=>(x==null?void 0:x.length)!==1||x[0].name!=="default"||x[0].description!=="")((p=Je.value)==null?void 0:p.tags)?(g=(y=Je.value)==null?void 0:y.tags)==null?void 0:g.filter(x=>{var k;return((k=x.operations)==null?void 0:k.length)>0}).map(x=>{var k;return{id:G1(x),title:x.name,displayTitle:x["x-displayName"]??x.name,show:!0,children:(k=x.operations)==null?void 0:k.map(C=>{var M;const N=Gg(C,x),P=C.name??C.path;return e[N]=P,{id:N,title:P,httpVerb:C.httpVerb,deprecated:((M=C.information)==null?void 0:M.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&$l(C,t)}}})}}):(m=s==null?void 0:s.operations)==null?void 0:m.map(x=>{var N;const k=Gg(x,s),C=x.name??x.path;return e[k]=C,{id:k,title:C,httpVerb:x.httpVerb,deprecated:((N=x.information)==null?void 0:N.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&$l(x,t)}}}),c=Ph(Je.value)&&!J1.value?[{id:Wg(),title:"Models",show:!r.showApiClient,children:Object.keys(Jt(Je.value)??{}).map(x=>{var C;const k=Wg(x);return e[k]=x,{id:k,title:((C=Jt(Je.value))==null?void 0:C[x]).title??x,show:!r.showApiClient}})}]:[],d=(v=Je.value)!=null&&v["x-tagGroups"]?(w=(b=Je.value)==null?void 0:b["x-tagGroups"])==null?void 0:w.map(x=>{const k=[];return x.tags.map(N=>{if(N==="models"&&c.length>0)k.push(c[0]);else{const P=l==null?void 0:l.find(M=>M.title===N);P&&k.push(P)}}),{id:x.name,title:x.name,children:k,show:!0,isGroup:!0}}):void 0,u=Wv(Je.value)?[{id:xd(),title:"Webhook",show:!r.showApiClient,children:Object.keys(((S=Je.value)==null?void 0:S.webhooks)??{}).map(x=>{var C,N;const k=xd(x);return e[k]=x,Object.keys(((N=(C=Je.value)==null?void 0:C.webhooks)==null?void 0:N[x])??{}).map(P=>{var M,j,I;return{id:xd(x,P),title:(I=(j=(M=Je.value)==null?void 0:M.webhooks)==null?void 0:j[x][P])==null?void 0:I.name,httpVerb:P,show:!r.showApiClient}})}).flat()}]:[];return{entries:[...n,...d??l??[],...d?[]:u,...d?[]:c],titles:e}}),J5=i.ref(!1),Y5=i.computed(()=>{var r,e;return((e=(r=Y1.value)==null?void 0:r.titles)==null?void 0:e[qu.value])??""});function tr(r){return r!=null&&r.parsedSpec&&(Je.value=r.parsedSpec,i.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t.length},()=>{var e,t;if(qu.value){const n=U5(qu.value);n&&Cd(n,!0)}else{const n=(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t[0];n&&Cd(G1(n),!0)}}),i.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.info)==null?void 0:t.description},async()=>{var t,n;const e=(n=(t=Je.value)==null?void 0:t.info)==null?void 0:n.description;return e?Rl.value=await G5(e):Rl.value=[]})),{breadcrumb:Y5,items:Y1,isSidebarOpen:J5,collapsedSidebarItems:Vl,toggleCollapsedSidebarItem:W5,setCollapsedSidebarItem:Cd,hideModels:J1,setParsedSpec:K5}}const X5=i.defineComponent({__name:"SidebarHttpBadge",props:{active:{type:Boolean},method:{}},setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.unref(oo),{class:i.normalizeClass(["sidebar-heading-type",{"sidebar-heading-type-active":e.active}]),method:e.method,property:"--method-color",short:""},null,8,["class","method"]))}}),X1=U(X5,[["__scopeId","data-v-9e6d2bc7"]]),Q5=["id"],Z5={key:0,class:"sidebar-heading-chevron"},eV=["href"],tV={class:"sidebar-heading-link-title"},rV={key:1,class:"sidebar-heading-link-method"},nV={key:1,class:"action-menu"},oV=i.defineComponent({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(r,{emit:e}){const t=r,n=e,{hash:o,isIntersectionEnabled:s,pathRouting:a}=ct(),l=async()=>{var u,h;t.hasChildren&&n("toggleOpen"),(h=(u=t.item)==null?void 0:u.select)==null||h.call(u),t.open&&(s.value=!1,await wr(100),s.value=!0)},c=()=>{if(a.value)return a.value.basePath+"/"+t.item.id;{const u=new URL(window.location.href);return u.hash=t.item.id,`${u.pathname}${u.search}${u.hash}`}},d=async u=>{var h,f;if(a.value){u.preventDefault(),t.hasChildren&&n("toggleOpen"),(f=(h=t.item)==null?void 0:h.select)==null||f.call(h),n("toggleOpen"),s.value=!1,o.value=t.item.id;const p=new URL(window.location.href);p.pathname=a.value.basePath+"/"+t.item.id,window.history.pushState({},"",p),Ti(t.item.id),await wr(100),s.value=!0}};return(u,h)=>{var f,p;return i.openBlock(),i.createElementBlock("li",{id:u.id,class:"sidebar-group-item"},[i.createElementVNode("div",{class:i.normalizeClass(["sidebar-heading",{"sidebar-group-item__folder":u.hasChildren,active_page:u.isActive,deprecated:u.item.deprecated??!1}]),onClick:l},[u.hasChildren?(i.openBlock(),i.createElementBlock("p",Z5,[i.createVNode(i.unref(ji),{class:"toggle-nested-icon",icon:u.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"xs",onClick:i.withModifiers(l,["stop"])},null,8,["icon"]),i.createTextVNode(" ")])):i.createCommentVNode("",!0),i.createElementVNode("a",{class:"sidebar-heading-link",href:c(),onClick:d},[(p=(f=u.item)==null?void 0:f.icon)!=null&&p.src?(i.openBlock(),i.createBlock(i.unref(Me),{key:0,class:"sidebar-icon",icon:u.item.icon.src},null,8,["icon"])):i.createCommentVNode("",!0),i.createElementVNode("p",tV,i.toDisplayString(u.item.title),1),u.item.httpVerb&&!u.hasChildren?(i.openBlock(),i.createElementBlock("p",rV,[i.createTextVNode(" "),i.createVNode(X1,{active:u.isActive,method:u.item.httpVerb},null,8,["active","method"])])):i.createCommentVNode("",!0)],8,eV)],2),u.open?i.renderSlot(u.$slots,"default",{key:0},void 0,!0):i.createCommentVNode("",!0),u.$slots["action-menu"]?(i.openBlock(),i.createElementBlock("div",nV,[i.renderSlot(u.$slots,"action-menu",{},void 0,!0)])):i.createCommentVNode("",!0)],8,Q5)}}}),ja=U(oV,[["__scopeId","data-v-4ed1078c"]]),sV=i.defineComponent({__name:"SidebarGroup",props:{level:{}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("ul",{class:"sidebar-group sidebar-indent-nested",style:i.normalizeStyle({"--scalar-sidebar-level":e.level})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),Ed=U(sV,[["__scopeId","data-v-39c84840"]]),iV={class:"sidebar"},aV={class:"sidebar-group-title"},lV=-160,cV=i.defineComponent({__name:"Sidebar",props:{parsedSpec:{}},setup(r){const e=r,{hash:t,isIntersectionEnabled:n}=ct(),{items:o,toggleCollapsedSidebarItem:s,collapsedSidebarItems:a}=tr({parsedSpec:e.parsedSpec}),l=i.ref(null),c=i.ref(!0);i.watch(t,u=>{!n.value||c.value||typeof window>"u"||d(u)});const d=u=>{var p,y,g,m;const h=document.getElementById(`sidebar-${u}`);if(!h||!l.value)return;let f=lV;h.getAttribute("data-sidebar-type")==="heading"?f+=h.offsetTop+((p=h.getElementsByClassName("sidebar-heading"))==null?void 0:p[0]).offsetHeight:f+=h.offsetTop+(((y=h.parentElement)==null?void 0:y.offsetTop)??0)+(((m=(g=h.parentElement)==null?void 0:g.parentElement)==null?void 0:m.offsetTop)??0),l.value.scrollTo({top:f,behavior:"smooth"})};return i.onMounted(()=>{setTimeout(()=>d(t.value),500),c.value=!1}),(u,h)=>(i.openBlock(),i.createElementBlock("div",iV,[i.renderSlot(u.$slots,"sidebar-start",{},void 0,!0),i.createElementVNode("div",{ref_key:"scrollerEl",ref:l,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[i.createVNode(Ed,{level:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o).entries,f=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f.id},[f.isGroup?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("li",aV,i.toDisplayString(f.displayTitle??f.title),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.children,p=>(i.openBlock(),i.createBlock(ja,{key:p.id,id:`sidebar-${p.id}`,"data-sidebar-type":"heading",hasChildren:p.children&&p.children.length>0,isActive:i.unref(t)===p.id,item:{id:p.id,title:p.displayTitle??p.title,select:p.select,httpVerb:p.httpVerb,deprecated:p.deprecated??!1},open:i.unref(a)[p.id]??!1,onToggleOpen:async()=>{c.value=!0,i.unref(s)(p.id),await i.unref(wr)(100),c.value=!1}},{default:i.withCtx(()=>{var y;return[p.children&&((y=p.children)==null?void 0:y.length)>0?(i.openBlock(),i.createBlock(Ed,{key:0,level:1},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.children,g=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:g.id},[f.show?(i.openBlock(),i.createBlock(ja,{key:0,id:`sidebar-${g.id}`,isActive:i.unref(t)===g.id,item:{id:g.id,title:g.displayTitle??g.title,select:g.select,httpVerb:g.httpVerb,deprecated:g.deprecated??!1}},null,8,["id","isActive","item"])):i.createCommentVNode("",!0)],64))),128))]),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))),128))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[f.show?(i.openBlock(),i.createBlock(ja,{key:0,id:`sidebar-${f.id}`,"data-sidebar-type":"heading",hasChildren:f.children&&f.children.length>0,isActive:i.unref(t)===f.id,item:{id:f.id,title:f.displayTitle??f.title,select:f.select,httpVerb:f.httpVerb,deprecated:f.deprecated??!1},open:i.unref(a)[f.id]??!1,onToggleOpen:async()=>{c.value=!0,i.unref(s)(f.id),await i.unref(wr)(100),c.value=!1}},{default:i.withCtx(()=>{var p;return[f.children&&((p=f.children)==null?void 0:p.length)>0?(i.openBlock(),i.createBlock(Ed,{key:0,level:1},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.children,y=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:y.id},[f.show?(i.openBlock(),i.createBlock(ja,{key:0,id:`sidebar-${y.id}`,isActive:i.unref(t)===y.id,item:{id:y.id,title:y.displayTitle??y.title,select:y.select,httpVerb:y.httpVerb,deprecated:y.deprecated??!1}},null,8,["id","isActive","item"])):i.createCommentVNode("",!0)],64))),128))]),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):i.createCommentVNode("",!0)],64))],64))),128))]),_:1})],512),i.renderSlot(u.$slots,"sidebar-end",{},void 0,!0)]))}}),Gf=U(cV,[["__scopeId","data-v-e68ba74a"]]),dV={key:0,class:"api-client-drawer"},uV={class:"api-client-container"},hV={class:"scalar-api-client-height"},fV={class:"scalar-api-client-states"},pV={class:"t-doc__sidebar"},mV=i.defineComponent({__name:"ApiClientModal",props:{parsedSpec:{},overloadShow:{type:Boolean},proxyUrl:{},theme:{}},emits:["toggleDarkMode"],setup(r){const e=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DeQVZoi9.cjs")).then(a=>a.ApiClient)),{hideApiClient:t,state:n}=jl(),o=Xe.useMediaQuery("(max-width: 1000px)"),s=i.ref(!1);return(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(n).showApiClient||a.overloadShow?(i.openBlock(),i.createElementBlock("div",dV,[i.createElementVNode("div",uV,[i.renderSlot(a.$slots,"header",{},void 0,!0),i.createElementVNode("div",hV,[i.createVNode(i.unref(e),{proxyUrl:a.proxyUrl,showSideBar:s.value,theme:a.theme??"none",withDefaultFonts:!1,onEscapeKeyPress:i.unref(t),onToggleSidebar:l[2]||(l[2]=c=>s.value=!s.value)},{"address-bar-controls":i.withCtx(()=>[i.createElementVNode("div",fV,[i.createElementVNode("button",{class:"scalar-api-client-states-button scalar-api-client-states-button__endpoints",type:"button",onClick:l[0]||(l[0]=c=>s.value=!s.value)},[i.createVNode(i.unref(Me),{icon:s.value?"SideBarClosed":"SideBarOpen",size:"sm"},null,8,["icon"])]),i.createElementVNode("button",{class:"scalar-api-client-states-button",type:"button",onClick:l[1]||(l[1]=(...c)=>i.unref(t)&&i.unref(t)(...c))},[i.createVNode(i.unref(Me),{icon:"Close",size:"sm"})])])]),sidebar:i.withCtx(()=>[i.createElementVNode("div",pV,[i.withDirectives(i.createVNode(i.unref(Gf),{parsedSpec:a.parsedSpec},{"sidebar-start":i.withCtx(()=>[i.renderSlot(a.$slots,"sidebar-start",{},void 0,!0)]),_:3},8,["parsedSpec"]),[[i.vShow,!i.unref(o)]])])]),_:3},8,["proxyUrl","showSideBar","theme","onEscapeKeyPress"])])])])):i.createCommentVNode("",!0),i.unref(n).showApiClient?(i.openBlock(),i.createElementBlock("div",{key:1,class:"api-client-drawer-exit",onClick:l[3]||(l[3]=(...c)=>i.unref(t)&&i.unref(t)(...c))})):i.createCommentVNode("",!0)],64))}}),Q1=U(mV,[["__scopeId","data-v-206ad1a1"]]);function Z1(r){var e;return((e=zo.value.find(t=>t.key===r.targetKey))==null?void 0:e.title)??r.targetKey}function ew(r){var e,t;return((t=(e=zo.value.find(n=>n.key===r.targetKey))==null?void 0:e.clients.find(n=>n.key===r.clientKey))==null?void 0:t.title)??r.clientKey}const gV=i.computed(()=>Z1(ro)),yV=i.computed(()=>ew(ro));function tw(r,e){return e.value===!0?[]:r.flatMap(t=>{var n;return typeof e.value!="object"?[]:Array.isArray(e.value)?(t.clients=t.clients.filter(o=>!e.value.includes(o.key)),[t]):e.value[t.key]===!0?[]:(Array.isArray(e.value[t.key])&&(t.clients=t.clients.filter(o=>!e.value[t.key].includes(o.key))),(n=t==null?void 0:t.clients)!=null&&n.length?[t]:[])})}const zo=i.computed(()=>{var e;const r=e0.availableTargets();return(e=r.find(t=>t.key==="node"))==null||e.clients.unshift({description:"An HTTP/1.1 client, written from scratch for Node.js.",key:"undici",link:"https://github.com/nodejs/undici",title:"undici"}),tw(r,zu)}),Jg={node:["unirest"]},zu=i.ref({...Jg===!0?{}:Jg}),Jf=()=>{var e,t,n,o;return zo.value.find(s=>s.key==="shell"&&s.clients.find(a=>a.key==="curl"))?{targetKey:"shell",clientKey:"curl"}:{targetKey:(e=zo.value[0])==null?void 0:e.key,clientKey:(o=(n=(t=zo.value[0])==null?void 0:t.clients)==null?void 0:n[0])==null?void 0:o.key}},ro=i.reactive(Jf());function vV(){nc(ro,Jf())}const bV=r=>{Object.assign(ro,{...ro,...r})},ks=()=>({httpClient:i.readonly(ro),resetState:vV,setHttpClient:bV,excludedClients:i.readonly(zu),setExcludedClients:r=>{zu.value=r,nc(ro,Jf())},availableTargets:zo,getClientTitle:ew,getTargetTitle:Z1,httpTargetTitle:gV,httpClientTitle:yV}),wV={key:0},kV={class:"authentication-header"},SV={class:"selector"},xV={key:0,class:"authentication-content"},CV=i.defineComponent({__name:"Authentication",props:{parsedSpec:{},proxy:{}},setup(r){const e=r,{authentication:t,setAuthentication:n}=ns(),o=i.computed(()=>{var a,l,c;if(!t.preferredSecurityScheme)return!1;const s=(c=(l=(a=e.parsedSpec)==null?void 0:a.components)==null?void 0:l.securitySchemes)==null?void 0:c[t.preferredSecurityScheme];return!!s&&"type"in s&&!!s.type});return i.watch(()=>{var s,a;return(a=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:a.securitySchemes},()=>{var s,a;n({securitySchemes:(a=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:a.securitySchemes})},{deep:!0,immediate:!0}),i.onServerPrefetch(async()=>{const s=i.useSSRContext();await wr(1),s.payload.data["useGlobalStore-authentication"]=t}),(s,a)=>{var l,c,d,u,h;return i.unref(Kv)(s.parsedSpec)?(i.openBlock(),i.createElementBlock("div",wV,[i.createElementVNode("div",kV,[i.createElementVNode("div",SV,[i.createVNode(i.unref(Hv),{value:(c=(l=s.parsedSpec)==null?void 0:l.components)==null?void 0:c.securitySchemes},null,8,["value"])])]),o.value?(i.openBlock(),i.createElementBlock("div",xV,[i.unref(t).preferredSecurityScheme?(i.openBlock(),i.createBlock(i.unref(zv),{key:0,proxy:s.proxy,value:(h=(u=(d=s.parsedSpec)==null?void 0:d.components)==null?void 0:u.securitySchemes)==null?void 0:h[i.unref(t).preferredSecurityScheme]},null,8,["proxy","value"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}}),EV=U(CV,[["__scopeId","data-v-adb00e96"]]),$V=["innerHTML"],_V=i.defineComponent({__name:"MarkdownRenderer",props:{value:{},withImages:{type:Boolean,default:!1}},setup(r){const e=r,t=i.ref(""),n=e.withImages?[]:["img","picture"],o={...la.defaultSchema,tagNames:[...(la.defaultSchema.tagNames||[]).filter(s=>!n.includes(s)),"abbr"],attributes:{...la.defaultSchema.attributes,abbr:["title"]}};return i.watch(()=>e.value,async()=>{const s=await Zg.unified().use(Qg).use(zw).use(Hw,{allowDangerousHtml:!0}).use(Fw).use(la,o).use(jw,{detect:!0}).use(Rw,{target:"_blank"}).use(Lw).use(qw).process(e.value);t.value=String(s.value)},{immediate:!0}),i.onServerPrefetch(async()=>await wr(1)),(s,a)=>(i.openBlock(),i.createElementBlock("div",{class:"markdown",innerHTML:t.value},null,8,$V))}}),wt=U(_V,[["__scopeId","data-v-5a5f5321"]]),NV=["title","innerHTML"],AV=i.defineComponent({__name:"ServerItem",props:{value:{},variables:{}},setup(r){const e=r,{copyToClipboard:t}=ws(),n=i.computed(()=>{var l;const a=(((l=e.value)==null?void 0:l.url)??"").replace(/(<([^>]+)>)/gi,"");return Ch(a,c=>{var u;const d=(u=e.variables)==null?void 0:u.find(h=>h.name===c);return`<span class="base-url-variable">${((d==null?void 0:d.value)??"")!==""?d==null?void 0:d.value:`{${c}}`}</span>`})}),o=i.computed(()=>n.value.replace(/(<([^>]+)>)/gi,""));return(s,a)=>s.value?(i.openBlock(),i.createElementBlock("a",{key:0,class:"base-url",title:s.value.description,onClick:a[0]||(a[0]=l=>i.unref(t)(o.value)),innerHTML:n.value},null,8,NV)):i.createCommentVNode("",!0)}}),OV=U(AV,[["__scopeId","data-v-41c016dc"]]),TV={key:0},BV=["for"],PV=["id","value","onInput"],IV=["value"],MV={class:"input-value"},DV=["id","value","onInput"],VV=i.defineComponent({__name:"ServerVariables",props:{value:{}},setup(r){const{server:e,setServer:t}=no(),n=(s,a)=>{const l=a.target.value,c=[...e.variables],d=c.findIndex(u=>u.name===s);c[d].value=l,t({variables:c})},o=s=>{const a=e.variables.findIndex(l=>l.name===s);return e.variables[a].value??""};return(s,a)=>s.value?(i.openBlock(),i.createElementBlock("div",TV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,l=>(i.openBlock(),i.createElementBlock("div",{key:l.name,class:"input"},[i.createElementVNode("label",{for:`variable-${l.name}`},[i.createElementVNode("code",null,i.toDisplayString(l.name),1)],8,BV),l.enum?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("select",{id:`variable-${l.name}`,value:o(l.name),onInput:c=>n(l.name,c)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.enum,c=>(i.openBlock(),i.createElementBlock("option",{key:c,value:c},i.toDisplayString(c),9,IV))),128))],40,PV),i.createElementVNode("div",MV,i.toDisplayString(l.default),1)],64)):(i.openBlock(),i.createElementBlock("input",{key:1,id:`variable-${l.name}`,autocomplete:"off",placeholder:"value",spellcheck:"false",type:"text",value:o(l.name),onInput:c=>n(l.name,c)},null,40,DV))]))),128))])):i.createCommentVNode("",!0)}}),RV=U(VV,[["__scopeId","data-v-2e5f4fe1"]]),LV=r=>(i.pushScopeId("data-v-1634f7d3"),r=r(),i.popScopeId(),r),jV={key:0},FV=LV(()=>i.createElementVNode("span",{class:"scalar-card-serverlist-title"},"Base URL",-1)),qV={class:"scalar-card-serverlist"},zV={class:"scalar-card-serverlist-container"},HV={class:"server-item"},UV={class:"server-selector"},KV=["value"],WV=["value"],GV={key:0,muted:""},JV={class:"description"},YV=i.defineComponent({__name:"BaseUrl",setup(r){const{server:e,setServer:t}=no(),n=i.ref(0);return i.watch([n,()=>e.servers],()=>{var l,c,d;if(!e.servers.length)return;const o=((l=e.servers[n.value])==null?void 0:l.variables)??{},s=o?Object.keys(o).map(u=>{var h;return{name:u,value:((h=o[u].default)==null?void 0:h.toString())??""}}):[];vv((c=e.servers[n.value])==null?void 0:c.url).filter(u=>!o[u]).forEach(u=>{s.push({name:u,value:""})}),t({selectedServer:n.value,description:(d=e.servers[n.value])==null?void 0:d.description,variables:s})},{immediate:!0,deep:!0}),(o,s)=>i.unref(e).servers.length>0?(i.openBlock(),i.createElementBlock("div",jV,[FV,i.createElementVNode("div",qV,[i.createElementVNode("div",zV,[i.createElementVNode("div",HV,[i.createElementVNode("div",UV,[i.unref(e).servers.length>1?(i.openBlock(),i.createElementBlock("select",{key:0,value:n.value,onInput:s[0]||(s[0]=a=>n.value=parseInt(a.target.value,10))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(e).servers,(a,l)=>(i.openBlock(),i.createElementBlock("option",{key:l,value:l},i.toDisplayString(a.url),9,WV))),128))],40,KV)):i.createCommentVNode("",!0),i.createVNode(OV,{value:i.unref(e).servers[n.value],variables:i.unref(e).variables},null,8,["value","variables"]),i.unref(e).servers.length>1?(i.openBlock(),i.createBlock(i.unref(Me),{key:1,icon:"ChevronDown"})):i.createCommentVNode("",!0)])]),i.createVNode(RV,{value:i.unref(e).variables},null,8,["value"])])]),i.unref(e).description?(i.openBlock(),i.createElementBlock("div",GV,[i.createElementVNode("div",JV,[i.createVNode(i.unref(wt),{value:i.unref(e).description},null,8,["value"])])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}),XV=U(YV,[["__scopeId","data-v-1634f7d3"]]),QV=r=>(i.pushScopeId("data-v-09827b05"),r=r(),i.popScopeId(),r),ZV=["onClick"],eR=["value"],tR=["label"],rR=["value"],nR={class:"client-libraries-icon__more"},oR={key:1,class:"client-libraries-icon",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},sR=QV(()=>i.createElementVNode("g",{fill:"currentColor","fill-rule":"nonzero"},[i.createElementVNode("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)),iR=[sR],aR={key:0},lR=i.defineComponent({__name:"ClientSelector",setup(r){const{httpClient:e,setHttpClient:t,availableTargets:n,getClientTitle:o,getTargetTitle:s}=ks(),a=i.ref(),l=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"}].filter(h=>n.value.find(f=>f.key===h.targetKey&&f.clients.find(p=>p.key===h.clientKey))),c=h=>`programming-language-${h}`,d=h=>h.targetKey===e.targetKey&&h.clientKey===e.clientKey,u=h=>l.some(f=>f.targetKey===h.targetKey&&f.clientKey===h.clientKey);return(h,f)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"containerRef",ref:a,class:"client-libraries-content"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(l),p=>(i.openBlock(),i.createElementBlock("div",{key:p.clientKey,class:i.normalizeClass(["client-libraries rendered-code-sdks",{"client-libraries__active":d(p)}]),onClick:()=>i.unref(t)(p)},[i.createElementVNode("div",{class:i.normalizeClass(`client-libraries-icon__${p.targetKey}`)},[i.createVNode(i.unref(Me),{class:"client-libraries-icon",icon:c(p.targetKey)},null,8,["icon"])],2),i.createElementVNode("span",null,i.toDisplayString(i.unref(s)(p)),1)],10,ZV))),128)),i.createElementVNode("div",{class:i.normalizeClass(["client-libraries client-libraries__select",{"client-libraries__active":i.unref(e)&&!u(i.unref(e))}])},[i.createElementVNode("select",{class:"language-select",value:JSON.stringify(i.unref(e)),onInput:f[0]||(f[0]=p=>i.unref(t)(JSON.parse(p.target.value)))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(n),p=>(i.openBlock(),i.createElementBlock("optgroup",{key:p.key,label:p.title},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.clients,y=>(i.openBlock(),i.createElementBlock("option",{key:y.key,value:JSON.stringify({targetKey:p.key,clientKey:y.key})},i.toDisplayString(i.unref(o)({targetKey:p.key,clientKey:y.key})),9,rR))),128))],8,tR))),128))],40,eR),i.createElementVNode("div",nR,[i.unref(e)&&!u(i.unref(e))?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`client-libraries-icon__${i.unref(e).targetKey}`)},[i.createVNode(i.unref(Me),{class:"client-libraries-icon",icon:c(i.unref(e).targetKey)},null,8,["icon"])],2)):(i.openBlock(),i.createElementBlock("svg",oR,iR))]),i.unref(n).length?(i.openBlock(),i.createElementBlock("span",aR,"More")):i.createCommentVNode("",!0)],2)],512))}}),cR=U(lR,[["__scopeId","data-v-09827b05"]]),dR=r=>(i.pushScopeId("data-v-301043da"),r=r(),i.popScopeId(),r),uR=dR(()=>i.createElementVNode("div",{class:"client-libraries-heading"},"Client Libraries",-1)),hR={class:"selected-client card-footer",muted:""},fR=i.defineComponent({__name:"ClientLibraries",setup(r){const{availableTargets:e,httpTargetTitle:t,httpClientTitle:n}=ks();return(o,s)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(e).length?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[uR,i.createElementVNode("div",null,[i.createVNode(cR)]),i.createElementVNode("div",hR,i.toDisplayString(i.unref(n))+" "+i.toDisplayString(i.unref(t)),1)],64)):i.createCommentVNode("",!0)]))}}),pR=U(fR,[["__scopeId","data-v-301043da"]]),mR={},gR={class:"badge"};function yR(r,e){return i.openBlock(),i.createElementBlock("div",gR,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Bi=U(mR,[["render",yR],["__scopeId","data-v-190574ac"]]),Yf=i.defineComponent({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(r,{emit:e}){const t=r,n=e,o=i.ref(),s=l=>{const c=l.offsetHeight;return`${c/2}px 0px ${c/2}px 0px`},a=l=>l.offsetHeight<window.innerHeight?.8:.5;return i.onMounted(()=>{if(o.value){const l={rootMargin:s(o.value),threshold:a(o.value)};Xe.useIntersectionObserver(o,([{isIntersecting:c}])=>{c&&t.id&&n("intersecting")},l)}}),(l,c)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(l.is??"div"),{id:l.id,ref_key:"intersectionObserverRef",ref:o},{default:i.withCtx(()=>[i.renderSlot(l.$slots,"default")]),_:3},8,["id"]))}}),vR=i.defineComponent({__name:"Section",props:{id:{},label:{}},setup(r){const e=r,{getSectionId:t,hash:n,isIntersectionEnabled:o,pathRouting:s}=ct(),{setCollapsedSidebarItem:a}=tr();function l(){var u;if(!e.label||!o.value)return;const c=new URL(window.location.href),d=e.id??"";s.value?c.pathname=s.value.basePath+"/"+d:c.hash=d,n.value=d,window.history.replaceState({},"",c),(u=e.id)!=null&&u.startsWith("model")&&a(t(e.id),!0)}return(c,d)=>(i.openBlock(),i.createBlock(Yf,{is:"section",id:c.id,class:"section",onIntersecting:l},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},8,["id"]))}}),Ss=U(vR,[["__scopeId","data-v-0494f9f3"]]),bR={class:"section-accordion-button-content"},wR={key:0,class:"section-accordion-button-actions"},kR={key:0,class:"section-accordion-description"},SR={class:"section-accordion-content-card"},xR=i.defineComponent({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(r){const e=i.ref(),t=Xe.useElementHover(e);return(n,o)=>(i.openBlock(),i.createBlock(Yf,{id:n.id,class:"section-wrapper"},{default:i.withCtx(()=>[i.createVNode(i.unref(Le.Disclosure),{as:"section",class:i.normalizeClass(["section-accordion",{"section-accordion-transparent":n.transparent}])},{default:i.withCtx(({open:s})=>[i.createVNode(i.unref(Le.DisclosureButton),{ref_key:"button",ref:e,class:"section-accordion-button"},{default:i.withCtx(()=>[i.createElementVNode("div",bR,[i.renderSlot(n.$slots,"title",{},void 0,!0)]),n.$slots.actions?(i.openBlock(),i.createElementBlock("div",wR,[i.renderSlot(n.$slots,"actions",{active:i.unref(t)||s},void 0,!0)])):i.createCommentVNode("",!0),i.createVNode(i.unref(Me),{class:"section-accordion-chevron",icon:s?"ChevronDown":"ChevronRight"},null,8,["icon"])]),_:2},1536),i.createVNode(i.unref(Le.DisclosurePanel),{class:"section-accordion-content"},{default:i.withCtx(()=>[n.$slots.description?(i.openBlock(),i.createElementBlock("div",kR,[i.renderSlot(n.$slots,"description",{},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",SR,[i.renderSlot(n.$slots,"default",{},void 0,!0)])]),_:3})]),_:3},8,["class"])]),_:3},8,["id"]))}}),rw=U(xR,[["__scopeId","data-v-07cabcb0"]]),CR={},ER={class:"section-column"};function $R(r,e){return i.openBlock(),i.createElementBlock("div",ER,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const es=U(CR,[["render",$R],["__scopeId","data-v-d64e7382"]]),_R={},NR={class:"section-columns"};function AR(r,e){return i.openBlock(),i.createElementBlock("div",NR,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Xf=U(_R,[["render",AR],["__scopeId","data-v-8b9602bf"]]),OR={},TR={class:"section-container"};function BR(r,e){return i.openBlock(),i.createElementBlock("div",TR,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Zi=U(OR,[["render",BR],["__scopeId","data-v-34b26958"]]),PR={class:"section-accordion-wrapper"},IR={class:"section-accordion-title"},MR=i.defineComponent({__name:"SectionContainerAccordion",setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",PR,[i.createVNode(i.unref(Le.Disclosure),{as:"div",class:"section-accordion",defaultOpen:""},{default:i.withCtx(({open:n})=>[i.createVNode(i.unref(Le.DisclosureButton),{class:"section-accordion-button"},{default:i.withCtx(()=>[i.createVNode(i.unref(Me),{class:"section-accordion-chevron",icon:n?"ChevronDown":"ChevronRight"},null,8,["icon"]),i.createElementVNode("div",IR,[i.renderSlot(e.$slots,"title",{},void 0,!0)])]),_:2},1024),i.createVNode(i.unref(Le.DisclosurePanel),{class:"section-accordion-content"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]))}}),nw=U(MR,[["__scopeId","data-v-2049975e"]]),DR=i.defineComponent({__name:"LoadingSkeleton",props:{lines:{default:1}},setup(r){return(e,t)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList([...Array(e.lines).keys()],n=>(i.openBlock(),i.createElementBlock("div",{key:n,class:i.normalizeClass(["loading",{"single-line":e.lines===1}])},null,2))),128))}}),ow=U(DR,[["__scopeId","data-v-c90b2c46"]]),VR={class:"section-content"},RR=i.defineComponent({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",VR,[e.loading?(i.openBlock(),i.createBlock(ow,{key:1,lines:8})):i.renderSlot(e.$slots,"default",{key:0},void 0,!0)]))}}),xs=U(RR,[["__scopeId","data-v-9735459e"]]),LR=i.defineComponent({__name:"SectionHeader",props:{loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{default:1}},setup(r){return(e,t)=>e.loading?(i.openBlock(),i.createBlock(ow,{key:0})):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(`h${e.level}`),{key:1,class:i.normalizeClass(["section-header",{tight:e.tight}])},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),bn=U(LR,[["__scopeId","data-v-3bd1b9f0"]]),jR={key:0,class:"introduction-description"},FR=i.defineComponent({__name:"Description",props:{value:{}},setup(r){const e=r,n=`components-Content-Introduction-Description-sections${Wu(e.value)}`,o=Xe.computedAsync(async()=>{if(!e.value)return[];const u=await Ei(e.value),h=rc(u);return await Promise.all(H1(e.value,h).map(async f=>({heading:(await Ei(f))[0],content:f})))},ts[n]??[]),{getHeadingId:s,hash:a,isIntersectionEnabled:l,pathRouting:c}=ct();function d(u=""){if(!l.value)return;const h=new URL(window.location.href);c.value?h.pathname=c.value.basePath+"/"+u:h.hash=u,a.value=u,window.history.replaceState({},"",h)}return i.onServerPrefetch(async()=>{const u=i.useSSRContext();await wr(1),u.payload.data[n]=o.value}),(u,h)=>u.value?(i.openBlock(),i.createElementBlock("div",jR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o),(f,p)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:p},[f.heading?(i.openBlock(),i.createBlock(Yf,{key:0,id:i.unref(s)(f.heading),class:"introduction-description-heading",onIntersecting:()=>d(i.unref(s)(f.heading))},{default:i.withCtx(()=>[i.createVNode(i.unref(wt),{value:f.content,withImages:""},null,8,["value"])]),_:2},1032,["id","onIntersecting"])):(i.openBlock(),i.createBlock(i.unref(wt),{key:1,value:f.content,withImages:""},null,8,["value"]))],64))),128))])):i.createCommentVNode("",!0)}}),qR=U(FR,[["__scopeId","data-v-5e475391"]]),zR={class:"download"},HR={class:"download-cta"},UR=i.defineComponent({__name:"DownloadSpec",props:{specTitle:{}},setup(r){const e=r,t=i.inject(zf),n=()=>{Hf.emit({id:"",specTitle:e.specTitle})};return(o,s)=>{var a;return i.openBlock(),i.createElementBlock("div",zR,[i.createElementVNode("div",HR,[(a=i.unref(t))!=null&&a()?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:0,class:"download-button",type:"button",onClick:n}," Download OpenAPI Spec "))])])}}}),KR=U(UR,[["__scopeId","data-v-810904a4"]]),WR={class:"badges"},GR={class:"sticky-cards"},JR=i.defineComponent({__name:"Introduction",props:{info:{},parsedSpec:{}},setup(r){const e=r,t=new Pi,n=i.computed(()=>e.parsedSpec.openapi??e.parsedSpec.swagger??""),o=i.computed(()=>t.slug(e.info.title??""));return(s,a)=>(i.openBlock(),i.createBlock(i.unref(Zi),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Ss),{class:"introduction-section"},{default:i.withCtx(()=>[i.createVNode(i.unref(xs),{loading:!s.info.description&&!s.info.title},{default:i.withCtx(()=>[i.createVNode(i.unref(Xf),null,{default:i.withCtx(()=>[i.createVNode(i.unref(es),null,{default:i.withCtx(()=>[i.createElementVNode("div",WR,[s.info.version?(i.openBlock(),i.createBlock(i.unref(Bi),{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.info.version),1)]),_:1})):i.createCommentVNode("",!0),n.value?(i.openBlock(),i.createBlock(i.unref(Bi),{key:1},{default:i.withCtx(()=>[i.createTextVNode(" OAS "+i.toDisplayString(n.value),1)]),_:1})):i.createCommentVNode("",!0)]),i.createVNode(i.unref(bn),{level:1,loading:!s.info.title,tight:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.info.title),1)]),_:1},8,["loading"]),i.createVNode(KR,{specTitle:o.value},null,8,["specTitle"]),i.createVNode(qR,{value:s.info.description},null,8,["value"])]),_:1}),s.$slots.aside?(i.openBlock(),i.createBlock(i.unref(es),{key:0},{default:i.withCtx(()=>[i.createElementVNode("div",GR,[i.renderSlot(s.$slots,"aside",{},void 0,!0)])]),_:3})):i.createCommentVNode("",!0)]),_:3})]),_:3},8,["loading"]),i.renderSlot(s.$slots,"after",{},void 0,!0)]),_:3})]),_:3}))}}),YR=U(JR,[["__scopeId","data-v-30c2e131"]]),XR=Symbol(),Hu=Xe.useEventBus(XR),Ll=i.defineComponent({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(r){const e=r,t=(o=()=>{})=>{typeof window>"u"||("requestIdleCallback"in window?setTimeout(()=>window.requestIdleCallback(o),e.lazyTimeout):setTimeout(()=>i.nextTick(o),e.lazyTimeout??300))},n=i.ref(!e.isLazy);return e.isLazy?t(()=>{n.value=!0,e.id&&i.nextTick(()=>Hu.emit({id:e.id}))}):e.id&&i.nextTick(()=>Hu.emit({id:e.id})),(o,s)=>n.value?i.renderSlot(o.$slots,"default",{key:0}):i.createCommentVNode("",!0)}}),QR={key:0,class:"screenreader-only"},ZR=i.defineComponent({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup(r){return(e,t)=>e.$props.if?(i.openBlock(),i.createElementBlock("span",QR,[i.renderSlot(e.$slots,"default",{},void 0,!0)])):i.renderSlot(e.$slots,"default",{key:1},void 0,!0)}}),sw=U(ZR,[["__scopeId","data-v-681ebf2c"]]),e3=r=>(i.pushScopeId("data-v-d9801d4e"),r=r(),i.popScopeId(),r),t3={class:"label"},r3={class:"anchor"},n3=e3(()=>i.createElementVNode("span",null,"",-1)),o3=i.defineComponent({__name:"Anchor",props:{id:{}},setup(r){const{copyToClipboard:e}=ws(),t=n=>{const o=new URL(window.location.href);return o.hash=n,o.toString()};return(n,o)=>(i.openBlock(),i.createElementBlock("span",t3,[i.renderSlot(n.$slots,"default",{},void 0,!0),i.createElementVNode("span",r3,[n3,i.createElementVNode("button",{class:"anchor-copy",type:"button",onClick:o[0]||(o[0]=i.withModifiers(s=>i.unref(e)(t(n.id)),["stop"]))},[i.createTextVNode(" # "),i.createVNode(sw,null,{default:i.withCtx(()=>[i.createTextVNode('Copy link to "'),i.renderSlot(n.$slots,"default",{},void 0,!0),i.createTextVNode('"')]),_:3})])])]))}}),wn=U(o3,[["__scopeId","data-v-d9801d4e"]]),s3={},i3={class:"scalar-card"};function a3(r,e){return i.openBlock(),i.createElementBlock("div",i3,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const ea=U(s3,[["render",a3],["__scopeId","data-v-dcabb131"]]),l3=i.defineComponent({__name:"CardContent",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["scalar-card-content",{"scalar-card--muted":e.muted,"scalar-card--contrast":e.contrast,"scalar-card--frameless":e.frameless,"scalar-card--transparent":e.transparent,"scalar-card--borderless":e.borderless}])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),lo=U(l3,[["__scopeId","data-v-5312c2e0"]]),c3={class:"scalar-card-header-slots"},d3={class:"scalar-card-header-slot scalar-card-header-title"},u3={class:"scalar-card-header-slot scalar-card-header-actions"},h3=i.defineComponent({__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(i.openBlock(),i.createBlock(lo,i.mergeProps(e,{class:"scalar-card-header"}),{default:i.withCtx(()=>[i.createElementVNode("div",c3,[i.createElementVNode("div",d3,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",u3,[i.renderSlot(t.$slots,"actions",{},void 0,!0)])])]),_:3},16))}}),ta=U(h3,[["__scopeId","data-v-bbd0c20a"]]),f3=i.defineComponent({__name:"CardFooter",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(i.openBlock(),i.createBlock(lo,i.normalizeProps(i.guardReactiveProps(e)),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16))}}),Rc=U(f3,[["__scopeId","data-v-918ab8d6"]]),p3=i.defineComponent({__name:"CardTabHeader",emits:["change"],setup(r,{emit:e}){const t=e,n=o=>{t("change",o)};return(o,s)=>(i.openBlock(),i.createBlock(ta,{class:"scalar-card-header-tabs"},{actions:i.withCtx(()=>[i.renderSlot(o.$slots,"actions",{},void 0,!0)]),default:i.withCtx(()=>[i.createVNode(i.unref(Le.TabGroup),{onChange:n},{default:i.withCtx(()=>[i.createVNode(i.unref(Le.TabList),{class:"tab-list custom-scroll"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),iw=U(p3,[["__scopeId","data-v-6a91b57c"]]),m3=i.defineComponent({__name:"CardTab",setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.unref(Le.Tab),{as:"template"},{default:i.withCtx(({selected:n})=>[i.createElementVNode("button",{class:i.normalizeClass({tab:!0,"tab-selected":n}),type:"button"},[i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],2)]),_:3}))}}),aw=U(m3,[["__scopeId","data-v-f373ecc2"]]),g3=["value"],y3=["label"],v3=["value"],b3=["value"],Qf=i.defineComponent({__name:"TextSelect",props:{modelValue:{},options:{}},emits:["update:modelValue"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["text-select",e.options.length===1?"text-select--single-option":""])},[i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default")]),i.createElementVNode("select",{value:e.modelValue,onInput:t[0]||(t[0]=n=>e.$emit("update:modelValue",n.target.value))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.options,n=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:n.value},[n.options?(i.openBlock(),i.createElementBlock("optgroup",{key:0,label:n.label},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.options,o=>(i.openBlock(),i.createElementBlock("option",{key:o.value,value:o.value},i.toDisplayString(o.label),9,v3))),128))],8,y3)):(i.openBlock(),i.createElementBlock("option",{key:n.value,value:n.value},i.toDisplayString(n.label),9,b3))],64))),128))],40,g3)],2))}}),w3={class:"request-header"},k3=i.defineComponent({__name:"CustomRequestExamples",props:{operation:{},examples:{}},setup(r){const e=r,t=i.ref(0),n=i.computed(()=>({C:"c","C#":"csharp",Go:"go",HTML:"html",Java:"java",JavaScript:"javascript",Kotlin:"kotlin","Objective-C":"objc",PowerShell:"powershell",Python:"python",Ruby:"ruby",Shell:"shell",Swift:"swift",TypeScript:"javascript",cURL:"shell"})[e.examples[t.value].lang]??e.examples[t.value].lang),o=i.computed(()=>e.examples[t.value]);i.watch(e.examples,()=>{e.examples[t.value]==="undefined"&&(t.value=0)});const{copyToClipboard:s}=ws();return(a,l)=>(i.openBlock(),i.createBlock(i.unref(ea),{class:"dark-mode"},{default:i.withCtx(()=>[i.createVNode(i.unref(ta),{muted:""},{actions:i.withCtx(()=>[i.createVNode(Qf,{class:"request-client-picker",modelValue:t.value,options:a.examples.map((c,d)=>({value:d.toString(),label:c.label})),"onUpdate:modelValue":l[0]||(l[0]=c=>(t.value=parseInt(c),10))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.value.label),1)]),_:1},8,["modelValue","options"]),i.createElementVNode("button",{class:"copy-button",type:"button",onClick:l[1]||(l[1]=c=>i.unref(s)(o.value.source.trim()))},[i.createVNode(i.unref(Me),{icon:"Clipboard",width:"10px"})])]),default:i.withCtx(()=>[i.createElementVNode("div",w3,[i.createVNode(i.unref(oo),{class:"request-method",method:a.operation.httpVerb},null,8,["method"]),i.renderSlot(a.$slots,"header",{},void 0,!0)])]),_:3}),i.createVNode(i.unref(lo),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:i.withCtx(()=>[i.createVNode(i.unref(Nr),{content:o.value.source.trim(),lang:n.value,lineNumbers:""},null,8,["content","lang"])]),_:1}),a.$slots.footer?(i.openBlock(),i.createBlock(i.unref(Rc),{key:0,class:"scalar-card-footer",contrast:""},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"footer",{},void 0,!0)]),_:3})):i.createCommentVNode("",!0)]),_:3}))}}),S3=U(k3,[["__scopeId","data-v-18ba624d"]]),x3={class:"schema-type"},C3=["title"],E3=i.defineComponent({__name:"SchemaHeading",props:{value:{},name:{}},setup(r){return(e,t)=>{var n,o,s,a,l,c;return i.openBlock(),i.createElementBlock("span",x3,[i.createElementVNode("span",{class:"schema-type-icon",title:typeof e.value.type=="string"?e.value.type:Array.isArray(e.value.type)?e.value.type.join(" | "):"unkown type"},[e.value.type==="object"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" {} ")],64)):i.createCommentVNode("",!0),e.value.type==="array"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" [] ")],64)):i.createCommentVNode("",!0),e.value.enum?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(" enum ")],64)):i.createCommentVNode("",!0)],8,C3),(o=(n=e.value)==null?void 0:n.xml)!=null&&o.name&&((a=(s=e.value)==null?void 0:s.xml)==null?void 0:a.name)!=="##default"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" <"+i.toDisplayString((c=(l=e.value)==null?void 0:l.xml)==null?void 0:c.name)+" /> ",1)],64)):e.name?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(e.name),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(e.value.type),1)],64))])}}}),lw=U(E3,[["__scopeId","data-v-6c5c3c96"]]),$3={key:0,class:"property-detail-prefix"},_3={key:1,class:"property-detail-value"},N3={key:2,class:"property-detail-value"},A3=i.defineComponent({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(["property-detail",{"property-detail-truncate":e.truncate}])},[e.$slots.prefix?(i.openBlock(),i.createElementBlock("div",$3,[i.renderSlot(e.$slots,"prefix",{},void 0,!0),i.createTextVNode(" ")])):i.createCommentVNode("",!0),e.code?(i.openBlock(),i.createElementBlock("code",_3,[i.renderSlot(e.$slots,"default",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("span",N3,[i.renderSlot(e.$slots,"default",{},void 0,!0)]))],2))}}),Bt=U(A3,[["__scopeId","data-v-16d94ef5"]]),O3={class:"property-heading"},T3={key:0,class:"property-name"},B3={key:1,class:"property-additional"},P3={key:2,class:"property-deprecated"},I3={key:3,class:"property-required"},M3={key:4,class:"property-const"},D3={key:5,class:"property-details"},V3={key:6,class:"property-write-only"},R3={key:7,class:"property-read-only"},L3=i.defineComponent({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1},additional:{type:Boolean}},setup(r){const e=["oneOf","anyOf","allOf","not"];return(t,n)=>{var o,s,a,l,c,d,u;return i.openBlock(),i.createElementBlock("div",O3,[t.$slots.name?(i.openBlock(),i.createElementBlock("div",T3,[i.renderSlot(t.$slots,"name",{},void 0,!0)])):i.createCommentVNode("",!0),t.additional?(i.openBlock(),i.createElementBlock("div",B3,[(o=t.value)!=null&&o["x-additionalPropertiesName"]?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.value["x-additionalPropertiesName"]),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" additional properties ")],64))])):i.createCommentVNode("",!0),(s=t.value)!=null&&s.deprecated?(i.openBlock(),i.createElementBlock("div",P3,[i.createVNode(i.unref(Bi),null,{default:i.withCtx(()=>[i.createTextVNode("deprecated")]),_:1})])):i.createCommentVNode("",!0),t.required?(i.openBlock(),i.createElementBlock("div",I3," required ")):i.createCommentVNode("",!0),(a=t.value)!=null&&a.const||(l=t.value)!=null&&l.enum&&t.value.enum.length===1?(i.openBlock(),i.createElementBlock("div",M3,[i.createVNode(Bt,{truncate:""},{prefix:i.withCtx(()=>[i.createTextVNode("const:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.const??t.value.enum[0]),1)]),_:1})])):(c=t.value)!=null&&c.type?(i.openBlock(),i.createElementBlock("div",D3,[t.additional?(i.openBlock(),i.createBlock(Bt,{key:0},{prefix:i.withCtx(()=>[i.createTextVNode("key:")]),default:i.withCtx(()=>[i.createTextVNode(" string ")]),_:1})):i.createCommentVNode("",!0),i.createVNode(Bt,null,i.createSlots({default:i.withCtx(()=>{var h,f,p;return[(f=(h=t.value)==null?void 0:h.items)!=null&&f.type?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.value.type)+" "+i.toDisplayString(t.value.items.type)+"[] ",1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(Array.isArray(t.value.type)?t.value.type.join(" | "):t.value.type)+" "+i.toDisplayString((p=t.value)!=null&&p.nullable?" | nullable":""),1)],64)),t.value.minItems||t.value.maxItems?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(t.value.minItems)+"…"+i.toDisplayString(t.value.maxItems),1)],64)):i.createCommentVNode("",!0)]}),_:2},[t.additional?{name:"prefix",fn:i.withCtx(()=>[i.createTextVNode("value:")]),key:"0"}:void 0]),1024),t.value.minLength?(i.openBlock(),i.createBlock(Bt,{key:1},{prefix:i.withCtx(()=>[i.createTextVNode("min:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.minLength),1)]),_:1})):i.createCommentVNode("",!0),t.value.maxLength?(i.openBlock(),i.createBlock(Bt,{key:2},{prefix:i.withCtx(()=>[i.createTextVNode("max:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.maxLength),1)]),_:1})):i.createCommentVNode("",!0),t.value.uniqueItems?(i.openBlock(),i.createBlock(Bt,{key:3},{default:i.withCtx(()=>[i.createTextVNode(" unique! ")]),_:1})):i.createCommentVNode("",!0),t.value.format?(i.openBlock(),i.createBlock(Bt,{key:4},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.value.format),1)]),_:1})):i.createCommentVNode("",!0),t.value.minimum?(i.openBlock(),i.createBlock(Bt,{key:5},{prefix:i.withCtx(()=>[i.createTextVNode("min:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.minimum),1)]),_:1})):i.createCommentVNode("",!0),t.value.maximum?(i.openBlock(),i.createBlock(Bt,{key:6},{prefix:i.withCtx(()=>[i.createTextVNode("max:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.maximum),1)]),_:1})):i.createCommentVNode("",!0),t.value.pattern?(i.openBlock(),i.createBlock(Bt,{key:7,code:"",truncate:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.value.pattern),1)]),_:1})):i.createCommentVNode("",!0),t.$props.enum?(i.openBlock(),i.createBlock(Bt,{key:8},{default:i.withCtx(()=>[i.createTextVNode("enum")]),_:1})):i.createCommentVNode("",!0),t.value.default?(i.openBlock(),i.createBlock(Bt,{key:9,truncate:""},{prefix:i.withCtx(()=>[i.createTextVNode("default:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.default),1)]),_:1})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),(d=t.value)!=null&&d.writeOnly?(i.openBlock(),i.createElementBlock("div",V3," write-only ")):(u=t.value)!=null&&u.readOnly?(i.openBlock(),i.createElementBlock("div",R3," read-only ")):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.filter(h=>{var f,p,y;return((f=t.value)==null?void 0:f[h])||((y=(p=t.value)==null?void 0:p.items)==null?void 0:y[h])}),h=>(i.openBlock(),i.createBlock(i.unref(Bi),{key:h},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h),1)]),_:2},1024))),128))])}}}),j3=U(L3,[["__scopeId","data-v-c1c21610"]]),F3=r=>(i.pushScopeId("data-v-9c7a15fe"),r=r(),i.popScopeId(),r),q3={key:0,class:"property-description"},z3={key:1,class:"property-description"},H3={key:2,class:"property-example custom-scroll"},U3=F3(()=>i.createElementVNode("span",{class:"property-example-label"},"Example",-1)),K3={class:"property-example-value"},W3={key:3,class:"property-enum"},G3={key:0,class:"property-list"},J3={class:"property-heading"},Y3={class:"property-name"},X3={class:"property-description"},Q3={key:1,class:"property-enum-values"},Z3={key:4,class:"children"},eL={key:0,class:"children"},tL={key:0,class:"property-rule"},rL={key:1,class:"property-rule"},nL=i.defineComponent({__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},additional:{type:Boolean}},setup(r){const e={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},t=function(a,l){return l!=null&&l.properties||l!=null&&l.additionalProperties?null:a||(l==null?void 0:l.description)||null},n=function(a){return!a||!e[a.type]?null:e[a.type][a.format||"_default"]},o=function(a){var l;return(a==null?void 0:a.enum)||((l=a==null?void 0:a.items)==null?void 0:l.enum)||[]},s=["oneOf","anyOf","allOf","not"];return(a,l)=>{var c,d,u,h,f,p,y,g,m,v,b;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["property",[`property--level-${a.level}`,{"property--compact":a.compact,"property--deprecated":(c=a.value)==null?void 0:c.deprecated}]])},[i.createVNode(j3,{additional:a.additional,enum:o(a.value).length>1,required:a.required,value:a.value},i.createSlots({_:2},[a.name?{name:"name",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.name),1)]),key:"0"}:void 0]),1032,["additional","enum","required","value"]),t(a.description,a.value)?(i.openBlock(),i.createElementBlock("div",q3,[i.createVNode(i.unref(wt),{value:t(a.description,a.value)},null,8,["value"])])):n(a.value)?(i.openBlock(),i.createElementBlock("div",z3,[i.createVNode(i.unref(wt),{value:n(a.value)||""},null,8,["value"])])):i.createCommentVNode("",!0),(d=a.value)!=null&&d.example||(h=(u=a.value)==null?void 0:u.items)!=null&&h.example?(i.openBlock(),i.createElementBlock("div",H3,[U3,i.createElementVNode("code",K3,i.toDisplayString(a.value.example||((f=a.value)==null?void 0:f.items.example)),1)])):i.createCommentVNode("",!0),((p=o(a.value))==null?void 0:p.length)>1?(i.openBlock(),i.createElementBlock("div",W3,[(y=a.value)!=null&&y["x-enumDescriptions"]?(i.openBlock(),i.createElementBlock("div",G3,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o(a.value),w=>(i.openBlock(),i.createElementBlock("div",{key:w,class:"property"},[i.createElementVNode("div",J3,[i.createElementVNode("div",Y3,i.toDisplayString(w),1)]),i.createElementVNode("div",X3,[i.createVNode(i.unref(wt),{value:a.value["x-enumDescriptions"][w]},null,8,["value"])])]))),128))])):(i.openBlock(),i.createElementBlock("ul",Q3,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o(a.value),w=>(i.openBlock(),i.createElementBlock("li",{key:w,class:"property-enum-value"},i.toDisplayString(w),1))),128))]))])):i.createCommentVNode("",!0),((g=a.value)==null?void 0:g.type)==="object"&&((m=a.value)!=null&&m.properties||(v=a.value)!=null&&v.additionalProperties)?(i.openBlock(),i.createElementBlock("div",Z3,[i.createVNode(qn,{compact:a.compact,level:a.level+1,value:a.value},null,8,["compact","level","value"])])):i.createCommentVNode("",!0),(b=a.value)!=null&&b.items?(i.openBlock(),i.createElementBlock(i.Fragment,{key:5},[["object"].includes(a.value.items.type)?(i.openBlock(),i.createElementBlock("div",eL,[i.createVNode(qn,{compact:a.compact,level:a.level+1,value:a.value.items},null,8,["compact","level","value"])])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(s,w=>{var S,x,k;return i.openBlock(),i.createElementBlock(i.Fragment,{key:w},[(S=a.value)!=null&&S[w]?(i.openBlock(),i.createElementBlock("div",tL,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value[w],(C,N)=>(i.openBlock(),i.createBlock(qn,{key:N,compact:a.compact,level:a.level+1,value:C},null,8,["compact","level","value"]))),128))])):i.createCommentVNode("",!0),(k=(x=a.value)==null?void 0:x.items)!=null&&k[w]&&a.level<3?(i.openBlock(),i.createElementBlock("div",rL,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value.items[w],(C,N)=>(i.openBlock(),i.createBlock(qn,{key:N,compact:a.compact,level:a.level+1,value:C},null,8,["compact","level","value"]))),128))])):i.createCommentVNode("",!0)],64)}),64))],2)}}}),Fn=U(nL,[["__scopeId","data-v-9c7a15fe"]]),oL=r=>(i.pushScopeId("data-v-7f5d0941"),r=r(),i.popScopeId(),r),sL={key:0,class:"schema-card-description"},iL=oL(()=>i.createElementVNode("polygon",{"fill-rule":"nonzero",points:"14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"},null,-1)),aL=[iL],lL=i.defineComponent({__name:"Schema",props:{value:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean}},setup(r){const e=r,t=i.computed(()=>!(e.noncollapsible||e.level===0)),n=o=>e.noncollapsible&&o.stopPropagation();return(o,s)=>typeof o.value=="object"&&Object.keys(o.value).length?(i.openBlock(),i.createBlock(i.unref(Le.Disclosure),{key:0,defaultOpen:o.noncollapsible},{default:i.withCtx(({open:a})=>{var l;return[i.createElementVNode("div",{class:i.normalizeClass(["schema-card",[`schema-card--level-${o.level}`,{"schema-card--compact":o.compact,"schema-card--open":a}]])},[(l=o.value)!=null&&l.description?(i.openBlock(),i.createElementBlock("div",sL,[i.createVNode(i.unref(wt),{value:o.value.description},null,8,["value"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["schema-properties",{"schema-properties-open":a}])},[i.withDirectives(i.createVNode(i.unref(Le.DisclosureButton),{as:o.noncollapsible?"div":"button",class:i.normalizeClass(["schema-card-title",{"schema-card-title--compact":o.compact}]),style:i.normalizeStyle({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${o.level}))`}),onClickCapture:n},{default:i.withCtx(()=>{var c,d,u;return[o.compact?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[t.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:i.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":a}]),fill:"currentColor",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg"},aL,2)):i.createCommentVNode("",!0),a?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Hide "+i.toDisplayString(((c=o.value)==null?void 0:c.title)??"Child Attributes"),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(" Show "+i.toDisplayString(((d=o.value)==null?void 0:d.title)??"Child Attributes"),1)],64))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[t.value?(i.openBlock(),i.createBlock(i.unref(Me),{key:0,class:i.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":a}]),icon:"ChevronRight",size:"md"},null,8,["class"])):i.createCommentVNode("",!0),i.createVNode(lw,{name:((u=o.value)==null?void 0:u.title)??o.name,value:o.value},null,8,["name","value"])],64))]}),_:2},1032,["as","class","style"]),[[i.vShow,!(o.noncollapsible&&o.compact)]]),i.createVNode(i.unref(Le.DisclosurePanel),{static:o.noncollapsible},{default:i.withCtx(()=>{var c;return[o.value.properties||o.value.additionalProperties?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.value.properties?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(Object.keys((c=o.value)==null?void 0:c.properties),d=>{var u;return i.openBlock(),i.createBlock(Fn,{key:d,compact:o.compact,level:o.level,name:d,required:o.value.required&&o.value.required.length&&o.value.required.includes(d),value:(u=o.value.properties)==null?void 0:u[d]},null,8,["compact","level","name","required","value"])}),128)):i.createCommentVNode("",!0),o.value.additionalProperties?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[o.value.additionalProperties===!0||Object.keys(o.value.additionalProperties).length===0||!o.value.additionalProperties.type?(i.openBlock(),i.createBlock(Fn,{key:0,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:{type:"any",...o.value.additionalProperties}},null,8,["compact","level","value"])):(i.openBlock(),i.createBlock(Fn,{key:1,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:o.value.additionalProperties},null,8,["compact","level","value"]))],64)):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createBlock(Fn,{key:1,compact:o.compact,level:o.level,name:o.value.name,value:o.value},null,8,["compact","level","name","value"]))]}),_:1},8,["static"])],2)],2)]}),_:1},8,["defaultOpen"])):i.createCommentVNode("",!0)}}),qn=U(lL,[["__scopeId","data-v-7f5d0941"]]),cL={class:"parameter-item"},dL={class:"parameter-item-container"},uL=i.defineComponent({__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("li",cL,[i.createElementVNode("div",dL,[i.createVNode(i.unref(Fn),{compact:"",description:e.parameter.description,level:0,name:e.parameter.name,noncollapsible:e.showChildren,required:e.parameter.required,value:e.parameter.schema},null,8,["description","name","noncollapsible","required","value"])])]))}}),hL=U(uL,[["__scopeId","data-v-f70ee55c"]]),fL={key:0,class:"parameters"},pL={class:"parameters-title"},mL={class:"parameter-list"},gL=i.defineComponent({__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>{var n;return(n=e.parameters)!=null&&n.length?(i.openBlock(),i.createElementBlock("div",fL,[i.createElementVNode("div",pL,[i.renderSlot(e.$slots,"title",{},void 0,!0)]),i.createElementVNode("ul",mL,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.parameters,o=>(i.openBlock(),i.createBlock(hL,{key:o.name,parameter:o,showChildren:e.showChildren},null,8,["parameter","showChildren"]))),128))])])):i.createCommentVNode("",!0)}}}),Kt=U(gL,[["__scopeId","data-v-45fca787"]]),yL={key:0},vL={class:"request-body-title"},bL=["value"],wL={key:0,class:"request-body-description"},kL={key:0,class:"request-body-schema"},SL=i.defineComponent({__name:"RequestBody",props:{requestBody:{}},setup(r){var o;const e=r,t=i.computed(()=>{var s;return(s=e.requestBody)!=null&&s.content?Object.keys(e.requestBody.content):[]}),n=i.ref("application/json");return(o=e.requestBody)!=null&&o.content&&t.value.length>0&&(n.value=t.value[0]),(s,a)=>{var l,c,d,u;return e!=null&&e.requestBody?(i.openBlock(),i.createElementBlock("div",yL,[i.createElementVNode("div",vL,[i.renderSlot(s.$slots,"title",{},void 0,!0),i.createElementVNode("div",{class:i.normalizeClass(["request-body-title-select",{"request-body-title-no-select":t.value.length<=1}])},[i.createElementVNode("span",null,i.toDisplayString(n.value),1),e!=null&&e.requestBody&&t.value.length>1?i.withDirectives((i.openBlock(),i.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=h=>n.value=h)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((l=e.requestBody)==null?void 0:l.content,(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,value:f},i.toDisplayString(f),9,bL))),128))],512)),[[i.vModelSelect,n.value]]):i.createCommentVNode("",!0)],2),e!=null&&e.requestBody.description?(i.openBlock(),i.createElementBlock("div",wL,[i.createVNode(i.unref(wt),{value:e.requestBody.description},null,8,["value"])])):i.createCommentVNode("",!0)]),(c=e==null?void 0:e.requestBody.content)!=null&&c[n.value]?(i.openBlock(),i.createElementBlock("div",kL,[i.createVNode(i.unref(qn),{compact:"",noncollapsible:"",value:(u=(d=e==null?void 0:e.requestBody.content)==null?void 0:d[n.value])==null?void 0:u.schema},null,8,["value"])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}}),Zf=U(SL,[["__scopeId","data-v-e095eb63"]]),xL={class:"endpoint-details"},CL={class:"endpoint-description"},EL=i.defineComponent({__name:"EndpointDetails",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Kf(e),{responses:n}=Wf(e.operation);return(o,s)=>{var a,l;return i.openBlock(),i.createElementBlock("div",xL,[i.createElementVNode("div",CL,[i.createVNode(i.unref(wt),{value:o.operation.description,withImages:""},null,8,["value"])]),i.createVNode(Kt,{parameters:i.unref(t).path},{title:i.withCtx(()=>[i.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).query},{title:i.withCtx(()=>[i.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).header},{title:i.withCtx(()=>[i.createTextVNode("Headers")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).body,showChildren:""},{title:i.withCtx(()=>[i.createTextVNode("Body Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).formData},{title:i.withCtx(()=>[i.createTextVNode("Form Data")]),_:1},8,["parameters"]),(a=o.operation.information)!=null&&a.requestBody?(i.openBlock(),i.createBlock(Zf,{key:0,requestBody:(l=o.operation.information)==null?void 0:l.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Body")]),_:1},8,["requestBody"])):i.createCommentVNode("",!0),i.createVNode(Kt,{parameters:i.unref(n)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),$L={key:0},_L=i.defineComponent({__name:"EndpointPath",props:{path:{},deprecated:{type:Boolean}},setup(r){const e=r,t=o=>o.startsWith("{")&&o.endsWith("}"),n=i.computed(()=>e.path.split(/({[^}]+})/));return(o,s)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(["endpoint-path",{deprecated:o.deprecated}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:l},[t(a)?(i.openBlock(),i.createElementBlock("em",$L,i.toDisplayString(a),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(a),1)],64))],64))),128))],2))}}),Uu=U(_L,[["__scopeId","data-v-a4eadd9b"]]);function ra(r){return r.reduce((e,t)=>(e[t.name]=t.value,e),{})}function NL(r){return/\s|-/.test(r)}function kr(r,e=0){let t=[],n=" ".repeat(e),o=" ".repeat(e+2);for(const[s,a]of Object.entries(r)){let l=NL(s)?`'${s}'`:s;if(Array.isArray(a)){const c=a.map(d=>typeof d=="string"?`'${d}'`:d&&typeof d=="object"?kr(d,e+2):d).join(`, ${o}`);t.push(`${o}${l}: [${c}]`)}else if(a&&typeof a=="object")t.push(`${o}${l}: ${kr(a,e+2)}`);else if(typeof a=="string"){let c=`${a}`;if(a.startsWith("JSON.stringify")){const d=a.split(`
|
|
215
|
+
`,s),o===void 0?(t(((n=s==null?void 0:s[0])==null?void 0:n.error)??"Failed to parse the OpenAPI file."),e(Ra(Un()))):e(Ra(o))}catch(o){t(o)}return e(Ra(Un()))}),Ra=r=>{let e={};r&&typeof r=="object"?e=structuredClone(r):e=Un(),e.tags||(e.tags=[]),e.paths||(e.paths={});const t={};return Object.keys(e.webhooks??{}).forEach(o=>{var s;Object.keys(((s=e.webhooks)==null?void 0:s[o])??{}).forEach(a=>{var c,d,u;const l=(c=e.webhooks)==null?void 0:c[o][a];(l==null?void 0:l["x-internal"])!==!0&&(t[o]===void 0&&(t[o]={}),t[o][a]={httpVerb:a,path:o,operationId:(l==null?void 0:l.operationId)||o,name:(l==null?void 0:l.summary)||o||"",description:(l==null?void 0:l.description)||"",pathParameters:(u=(d=e.paths)==null?void 0:d[o])==null?void 0:u.parameters,information:{...l}})})}),Object.keys(e.paths).forEach(o=>{Object.keys(e.paths[o]).filter(a=>oh.includes(a.toUpperCase())).forEach(a=>{var d,u,h,f,p,y;const l=e.paths[o][a];if(l===void 0||l["x-internal"]===!0)return;const c={httpVerb:a,path:o,operationId:l.operationId||o,name:l.summary||o||"",description:l.description||"",information:{...l},pathParameters:(u=(d=e.paths)==null?void 0:d[o])==null?void 0:u.parameters};if(!l.tags||l.tags.length===0){(h=e.tags)!=null&&h.find(m=>m.name==="default")||(f=e.tags)==null||f.push({name:"default",description:"",operations:[]});const g=(p=e.tags)==null?void 0:p.findIndex(m=>m.name==="default");g>=0&&((y=e.tags[g])==null||y.operations.push(c))}else l.tags.forEach(g=>{var b,w,S;const m=(b=e.tags)==null?void 0:b.findIndex(x=>x.name===g);m===-1&&((w=e.tags)==null||w.push({name:g,description:""}));const v=m!==-1?m:e.tags.length-1;typeof((S=e.tags[v])==null?void 0:S.operations)>"u"&&(e.tags[v].operations=[]),e.tags[v].operations.push(c)})})}),{...e,webhooks:t}},Vc=Symbol(),zf=Symbol(),Ti=async r=>{var e;(e=document.getElementById(r))==null||e.scrollIntoView()},wr=r=>new Promise(e=>setTimeout(e,r)),P5=Symbol("downloadSpec"),Hf=Xe.useEventBus(P5);function z1(r,e){const t=m0(r),n=t?new Blob([r],{type:"application/json"}):new Blob([r],{type:"application/x-yaml"}),o=URL.createObjectURL(n),s=t?".json":".yaml",a="spec"+s,l=e?e+s:a,c=document.createElement("a");c.href=o,c.download=l,c.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(o),c.remove()},100)}function H1(r,e=1){const t=new RegExp(`^(?=#{${e}} )`,"m");return r.split(t).map(n=>n.trim()).filter(Boolean)}const ws=()=>{const{toast:r}=Eh();return{copyToClipboard:t=>{navigator.clipboard.writeText(t).then(()=>{r("Copied to the clipboard","info")})}}},Jr=i.ref(!1);function I5(r){var o;const e=()=>{var a,l;const s=typeof window<"u"?(a=window.localStorage)==null?void 0:a.getItem("isDark"):null;return typeof s=="string"?!!JSON.parse(s):!!(typeof window<"u"&&((l=window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)"))!=null&&l.matches))},t=()=>{var s;Jr.value=!Jr.value,typeof window<"u"&&((s=window==null?void 0:window.localStorage)==null||s.setItem("isDark",JSON.stringify(Jr.value)))};function n(s){var a;Jr.value=s,typeof window<"u"&&((a=window==null?void 0:window.localStorage)==null||a.setItem("isDark",JSON.stringify(Jr.value)))}return Jr.value=(typeof window>"u"?null:JSON.parse(((o=window.localStorage)==null?void 0:o.getItem("isDark"))||"null"))??r??e(),i.watch(Jr,s=>{typeof document>"u"||(document.body.classList.toggle("dark-mode",s),document.body.classList.toggle("light-mode",!s))},{immediate:!0}),{isDark:Jr,toggleDarkMode:t,setDarkMode:n}}const Ug="https://api.scalar.com/request-proxy",La="https://proxy.scalar.com",M5="http://localhost:5051";function D5(r){i.watch(()=>r,()=>{var e;r.proxy===Ug?(console.warn(`[DEPRECATED] Warning: configuration.proxy points to our old proxy (${Ug}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${La}) instead.`),r.proxy=La,console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${La}). Read more: https://github.com/scalar/scalar`)):(e=r.proxy)!=null&&e.length&&r.proxy!==La&&r.proxy!==M5&&(console.warn(`[DEPRECATED] Warning: configuration.proxy points to a custom proxy (${r==null?void 0:r.proxy}).`),console.warn("[DEPRECATED] Action Required: You need to use our new proxy (written in Go). Read more: https://github.com/scalar/scalar/tree/main/examples/proxy-server"))},{immediate:!0})}const Uf=i.ref(ts.hash??""),Dl=i.ref(),V5=i.ref(!1),R5=r=>r.slug?`description/${r.slug}`:"",U1=r=>{var t;if(!Dl.value)return"";const e=new RegExp("^"+((t=Dl.value)==null?void 0:t.basePath)+"/?");return decodeURIComponent(r.replace(e,""))},L5=(r,e)=>{if(!r)return"webhooks";const t=Pi.slug(r),n=encodeURIComponent(t);return`webhook/${e}/${n}`},j5=r=>{if(!r)return"models";const e=Pi.slug(r);return`model/${encodeURIComponent(e)}`},F5=(r,e)=>`${K1(e)}/${r.httpVerb}${r.path}`,K1=({name:r})=>{const e=Pi.slug(r);return`tag/${encodeURIComponent(e)}`},q5=(r=Uf.value)=>{var n;const e=(n=r.match(/(tag\/[^/]+)/))==null?void 0:n[0],t=r.startsWith("model")?"models":"";return e??t},z5=()=>{Uf.value=Dl.value?U1(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,""))},ct=()=>({hash:Uf,getWebhookId:L5,getModelId:j5,getHeadingId:R5,getOperationId:F5,getPathRoutingId:U1,getSectionId:q5,getTagId:K1,isIntersectionEnabled:V5,pathRouting:Dl,updateHash:z5});function Kf(r){return{parameterMap:i.computed(()=>{var o;const t=((o=r.operation.information)==null?void 0:o.parameters)??[],n={path:[],query:[],header:[],body:[],formData:[]};return r.operation.pathParameters&&r.operation.pathParameters.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),t&&t.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),n})}}const H5=async({url:r,content:e},t)=>{if(r)return Gv(r)?await bp(r,t):await bp(r);const n=typeof e=="function"?e():e;if(typeof n=="string")return n;if(typeof n=="object")return fi(n)};function W1({specConfig:r,proxy:e}){const t=i.ref(""),n=i.reactive(Un()),o=i.ref(null);function s(a){return a?q1(a).then(l=>{o.value=null,Object.assign(n,{servers:[],...l})}).catch(l=>{o.value=l.toString()}):Object.assign(n,Un())}return i.watch(()=>i.toValue(r),async a=>{var l;if(a){const c=(l=await H5(a,i.toValue(e)))==null?void 0:l.trim();typeof c=="string"&&(t.value=c)}},{immediate:!0,deep:!0}),i.watch(t,()=>{s(t.value)}),{rawSpec:t,parsedSpec:n,specErrors:o}}function Wf(r){return{responses:i.computed(()=>{if(!r.information)return[];const{responses:t}=r.information,n=[];return t&&Object.keys(t).forEach(o=>{n.push({name:o,description:t[o].description})}),n})}}const{getHeadingId:Kg,getModelId:Wg,getOperationId:Gg,getSectionId:U5,getTagId:G1,getWebhookId:xd,hash:qu}=ct(),Je=i.ref(void 0);function K5(r){return Je.value=r}const J1=i.ref(!1),Vl=i.reactive(ts["useSidebarContent-collapsedSidebarItems"]??{});function W5(r){Vl[r]=!Vl[r]}function Cd(r,e){Vl[r]=e}const Rl=i.ref([]),G5=async r=>{const e=await Ei(r),t=rc(e);return e.filter(n=>n.depth===t||n.depth===t+1)},Y1=i.computed(()=>{var h,f,p,y,g,m,v,b,w,S;const{state:r}=jl(),e={},{openApi:{globalSecurity:t}}=rh(),n=[];let o=null;Rl.value.forEach(x=>{var k;x.depth===rc(Rl.value)?(o={id:Kg(x),title:x.value,show:!r.showApiClient,children:[]},n.push(o)):o&&((k=o.children)==null||k.push({id:Kg(x),title:x.value,show:!r.showApiClient}))});const s=(f=(h=Je.value)==null?void 0:h.tags)==null?void 0:f[0],l=s&&(x=>(x==null?void 0:x.length)!==1||x[0].name!=="default"||x[0].description!=="")((p=Je.value)==null?void 0:p.tags)?(g=(y=Je.value)==null?void 0:y.tags)==null?void 0:g.filter(x=>{var k;return((k=x.operations)==null?void 0:k.length)>0}).map(x=>{var k;return{id:G1(x),title:x.name,displayTitle:x["x-displayName"]??x.name,show:!0,children:(k=x.operations)==null?void 0:k.map(C=>{var M;const N=Gg(C,x),P=C.name??C.path;return e[N]=P,{id:N,title:P,httpVerb:C.httpVerb,deprecated:((M=C.information)==null?void 0:M.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&$l(C,t)}}})}}):(m=s==null?void 0:s.operations)==null?void 0:m.map(x=>{var N;const k=Gg(x,s),C=x.name??x.path;return e[k]=C,{id:k,title:C,httpVerb:x.httpVerb,deprecated:((N=x.information)==null?void 0:N.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&$l(x,t)}}}),c=Ph(Je.value)&&!J1.value?[{id:Wg(),title:"Models",show:!r.showApiClient,children:Object.keys(Jt(Je.value)??{}).map(x=>{var C;const k=Wg(x);return e[k]=x,{id:k,title:((C=Jt(Je.value))==null?void 0:C[x]).title??x,show:!r.showApiClient}})}]:[],d=(v=Je.value)!=null&&v["x-tagGroups"]?(w=(b=Je.value)==null?void 0:b["x-tagGroups"])==null?void 0:w.map(x=>{const k=[];return x.tags.map(N=>{if(N==="models"&&c.length>0)k.push(c[0]);else{const P=l==null?void 0:l.find(M=>M.title===N);P&&k.push(P)}}),{id:x.name,title:x.name,children:k,show:!0,isGroup:!0}}):void 0,u=Wv(Je.value)?[{id:xd(),title:"Webhook",show:!r.showApiClient,children:Object.keys(((S=Je.value)==null?void 0:S.webhooks)??{}).map(x=>{var C,N;const k=xd(x);return e[k]=x,Object.keys(((N=(C=Je.value)==null?void 0:C.webhooks)==null?void 0:N[x])??{}).map(P=>{var M,j,I;return{id:xd(x,P),title:(I=(j=(M=Je.value)==null?void 0:M.webhooks)==null?void 0:j[x][P])==null?void 0:I.name,httpVerb:P,show:!r.showApiClient}})}).flat()}]:[];return{entries:[...n,...d??l??[],...d?[]:u,...d?[]:c],titles:e}}),J5=i.ref(!1),Y5=i.computed(()=>{var r,e;return((e=(r=Y1.value)==null?void 0:r.titles)==null?void 0:e[qu.value])??""});function tr(r){return r!=null&&r.parsedSpec&&(Je.value=r.parsedSpec,i.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t.length},()=>{var e,t;if(qu.value){const n=U5(qu.value);n&&Cd(n,!0)}else{const n=(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t[0];n&&Cd(G1(n),!0)}}),i.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.info)==null?void 0:t.description},async()=>{var t,n;const e=(n=(t=Je.value)==null?void 0:t.info)==null?void 0:n.description;return e?Rl.value=await G5(e):Rl.value=[]})),{breadcrumb:Y5,items:Y1,isSidebarOpen:J5,collapsedSidebarItems:Vl,toggleCollapsedSidebarItem:W5,setCollapsedSidebarItem:Cd,hideModels:J1,setParsedSpec:K5}}const X5=i.defineComponent({__name:"SidebarHttpBadge",props:{active:{type:Boolean},method:{}},setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.unref(oo),{class:i.normalizeClass(["sidebar-heading-type",{"sidebar-heading-type-active":e.active}]),method:e.method,property:"--method-color",short:""},null,8,["class","method"]))}}),X1=U(X5,[["__scopeId","data-v-9e6d2bc7"]]),Q5=["id"],Z5={key:0,class:"sidebar-heading-chevron"},eV=["href"],tV={class:"sidebar-heading-link-title"},rV={key:1,class:"sidebar-heading-link-method"},nV={key:1,class:"action-menu"},oV=i.defineComponent({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(r,{emit:e}){const t=r,n=e,{hash:o,isIntersectionEnabled:s,pathRouting:a}=ct(),l=async()=>{var u,h;t.hasChildren&&n("toggleOpen"),(h=(u=t.item)==null?void 0:u.select)==null||h.call(u),t.open&&(s.value=!1,await wr(100),s.value=!0)},c=()=>{if(a.value)return a.value.basePath+"/"+t.item.id;{const u=new URL(window.location.href);return u.hash=t.item.id,`${u.pathname}${u.search}${u.hash}`}},d=async u=>{var h,f;if(a.value){u.preventDefault(),t.hasChildren&&n("toggleOpen"),(f=(h=t.item)==null?void 0:h.select)==null||f.call(h),n("toggleOpen"),s.value=!1,o.value=t.item.id;const p=new URL(window.location.href);p.pathname=a.value.basePath+"/"+t.item.id,window.history.pushState({},"",p),Ti(t.item.id),await wr(100),s.value=!0}};return(u,h)=>{var f,p;return i.openBlock(),i.createElementBlock("li",{id:u.id,class:"sidebar-group-item"},[i.createElementVNode("div",{class:i.normalizeClass(["sidebar-heading",{"sidebar-group-item__folder":u.hasChildren,active_page:u.isActive,deprecated:u.item.deprecated??!1}]),onClick:l},[u.hasChildren?(i.openBlock(),i.createElementBlock("p",Z5,[i.createVNode(i.unref(ji),{class:"toggle-nested-icon",icon:u.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"xs",onClick:i.withModifiers(l,["stop"])},null,8,["icon"]),i.createTextVNode(" ")])):i.createCommentVNode("",!0),i.createElementVNode("a",{class:"sidebar-heading-link",href:c(),onClick:d},[(p=(f=u.item)==null?void 0:f.icon)!=null&&p.src?(i.openBlock(),i.createBlock(i.unref(Me),{key:0,class:"sidebar-icon",icon:u.item.icon.src},null,8,["icon"])):i.createCommentVNode("",!0),i.createElementVNode("p",tV,i.toDisplayString(u.item.title),1),u.item.httpVerb&&!u.hasChildren?(i.openBlock(),i.createElementBlock("p",rV,[i.createTextVNode(" "),i.createVNode(X1,{active:u.isActive,method:u.item.httpVerb},null,8,["active","method"])])):i.createCommentVNode("",!0)],8,eV)],2),u.open?i.renderSlot(u.$slots,"default",{key:0},void 0,!0):i.createCommentVNode("",!0),u.$slots["action-menu"]?(i.openBlock(),i.createElementBlock("div",nV,[i.renderSlot(u.$slots,"action-menu",{},void 0,!0)])):i.createCommentVNode("",!0)],8,Q5)}}}),ja=U(oV,[["__scopeId","data-v-4ed1078c"]]),sV=i.defineComponent({__name:"SidebarGroup",props:{level:{}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("ul",{class:"sidebar-group sidebar-indent-nested",style:i.normalizeStyle({"--scalar-sidebar-level":e.level})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),Ed=U(sV,[["__scopeId","data-v-39c84840"]]),iV={class:"sidebar"},aV={class:"sidebar-group-title"},lV=-160,cV=i.defineComponent({__name:"Sidebar",props:{parsedSpec:{}},setup(r){const e=r,{hash:t,isIntersectionEnabled:n}=ct(),{items:o,toggleCollapsedSidebarItem:s,collapsedSidebarItems:a}=tr({parsedSpec:e.parsedSpec}),l=i.ref(null),c=i.ref(!0);i.watch(t,u=>{!n.value||c.value||typeof window>"u"||d(u)});const d=u=>{var p,y,g,m;const h=document.getElementById(`sidebar-${u}`);if(!h||!l.value)return;let f=lV;h.getAttribute("data-sidebar-type")==="heading"?f+=h.offsetTop+((p=h.getElementsByClassName("sidebar-heading"))==null?void 0:p[0]).offsetHeight:f+=h.offsetTop+(((y=h.parentElement)==null?void 0:y.offsetTop)??0)+(((m=(g=h.parentElement)==null?void 0:g.parentElement)==null?void 0:m.offsetTop)??0),l.value.scrollTo({top:f,behavior:"smooth"})};return i.onMounted(()=>{setTimeout(()=>d(t.value),500),c.value=!1}),(u,h)=>(i.openBlock(),i.createElementBlock("div",iV,[i.renderSlot(u.$slots,"sidebar-start",{},void 0,!0),i.createElementVNode("div",{ref_key:"scrollerEl",ref:l,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[i.createVNode(Ed,{level:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o).entries,f=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f.id},[f.isGroup?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("li",aV,i.toDisplayString(f.displayTitle??f.title),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.children,p=>(i.openBlock(),i.createBlock(ja,{key:p.id,id:`sidebar-${p.id}`,"data-sidebar-type":"heading",hasChildren:p.children&&p.children.length>0,isActive:i.unref(t)===p.id,item:{id:p.id,title:p.displayTitle??p.title,select:p.select,httpVerb:p.httpVerb,deprecated:p.deprecated??!1},open:i.unref(a)[p.id]??!1,onToggleOpen:async()=>{c.value=!0,i.unref(s)(p.id),await i.unref(wr)(100),c.value=!1}},{default:i.withCtx(()=>{var y;return[p.children&&((y=p.children)==null?void 0:y.length)>0?(i.openBlock(),i.createBlock(Ed,{key:0,level:1},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.children,g=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:g.id},[f.show?(i.openBlock(),i.createBlock(ja,{key:0,id:`sidebar-${g.id}`,isActive:i.unref(t)===g.id,item:{id:g.id,title:g.displayTitle??g.title,select:g.select,httpVerb:g.httpVerb,deprecated:g.deprecated??!1}},null,8,["id","isActive","item"])):i.createCommentVNode("",!0)],64))),128))]),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))),128))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[f.show?(i.openBlock(),i.createBlock(ja,{key:0,id:`sidebar-${f.id}`,"data-sidebar-type":"heading",hasChildren:f.children&&f.children.length>0,isActive:i.unref(t)===f.id,item:{id:f.id,title:f.displayTitle??f.title,select:f.select,httpVerb:f.httpVerb,deprecated:f.deprecated??!1},open:i.unref(a)[f.id]??!1,onToggleOpen:async()=>{c.value=!0,i.unref(s)(f.id),await i.unref(wr)(100),c.value=!1}},{default:i.withCtx(()=>{var p;return[f.children&&((p=f.children)==null?void 0:p.length)>0?(i.openBlock(),i.createBlock(Ed,{key:0,level:1},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.children,y=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:y.id},[f.show?(i.openBlock(),i.createBlock(ja,{key:0,id:`sidebar-${y.id}`,isActive:i.unref(t)===y.id,item:{id:y.id,title:y.displayTitle??y.title,select:y.select,httpVerb:y.httpVerb,deprecated:y.deprecated??!1}},null,8,["id","isActive","item"])):i.createCommentVNode("",!0)],64))),128))]),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):i.createCommentVNode("",!0)],64))],64))),128))]),_:1})],512),i.renderSlot(u.$slots,"sidebar-end",{},void 0,!0)]))}}),Gf=U(cV,[["__scopeId","data-v-e68ba74a"]]),dV={key:0,class:"api-client-drawer"},uV={class:"api-client-container"},hV={class:"scalar-api-client-height"},fV={class:"scalar-api-client-states"},pV={class:"t-doc__sidebar"},mV=i.defineComponent({__name:"ApiClientModal",props:{parsedSpec:{},overloadShow:{type:Boolean},proxyUrl:{},theme:{}},emits:["toggleDarkMode"],setup(r){const e=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-5LEUeUWq.cjs")).then(a=>a.ApiClient)),{hideApiClient:t,state:n}=jl(),o=Xe.useMediaQuery("(max-width: 1000px)"),s=i.ref(!1);return(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(n).showApiClient||a.overloadShow?(i.openBlock(),i.createElementBlock("div",dV,[i.createElementVNode("div",uV,[i.renderSlot(a.$slots,"header",{},void 0,!0),i.createElementVNode("div",hV,[i.createVNode(i.unref(e),{proxyUrl:a.proxyUrl,showSideBar:s.value,theme:a.theme??"none",withDefaultFonts:!1,onEscapeKeyPress:i.unref(t),onToggleSidebar:l[2]||(l[2]=c=>s.value=!s.value)},{"address-bar-controls":i.withCtx(()=>[i.createElementVNode("div",fV,[i.createElementVNode("button",{class:"scalar-api-client-states-button scalar-api-client-states-button__endpoints",type:"button",onClick:l[0]||(l[0]=c=>s.value=!s.value)},[i.createVNode(i.unref(Me),{icon:s.value?"SideBarClosed":"SideBarOpen",size:"sm"},null,8,["icon"])]),i.createElementVNode("button",{class:"scalar-api-client-states-button",type:"button",onClick:l[1]||(l[1]=(...c)=>i.unref(t)&&i.unref(t)(...c))},[i.createVNode(i.unref(Me),{icon:"Close",size:"sm"})])])]),sidebar:i.withCtx(()=>[i.createElementVNode("div",pV,[i.withDirectives(i.createVNode(i.unref(Gf),{parsedSpec:a.parsedSpec},{"sidebar-start":i.withCtx(()=>[i.renderSlot(a.$slots,"sidebar-start",{},void 0,!0)]),_:3},8,["parsedSpec"]),[[i.vShow,!i.unref(o)]])])]),_:3},8,["proxyUrl","showSideBar","theme","onEscapeKeyPress"])])])])):i.createCommentVNode("",!0),i.unref(n).showApiClient?(i.openBlock(),i.createElementBlock("div",{key:1,class:"api-client-drawer-exit",onClick:l[3]||(l[3]=(...c)=>i.unref(t)&&i.unref(t)(...c))})):i.createCommentVNode("",!0)],64))}}),Q1=U(mV,[["__scopeId","data-v-206ad1a1"]]);function Z1(r){var e;return((e=zo.value.find(t=>t.key===r.targetKey))==null?void 0:e.title)??r.targetKey}function ew(r){var e,t;return((t=(e=zo.value.find(n=>n.key===r.targetKey))==null?void 0:e.clients.find(n=>n.key===r.clientKey))==null?void 0:t.title)??r.clientKey}const gV=i.computed(()=>Z1(ro)),yV=i.computed(()=>ew(ro));function tw(r,e){return e.value===!0?[]:r.flatMap(t=>{var n;return typeof e.value!="object"?[]:Array.isArray(e.value)?(t.clients=t.clients.filter(o=>!e.value.includes(o.key)),[t]):e.value[t.key]===!0?[]:(Array.isArray(e.value[t.key])&&(t.clients=t.clients.filter(o=>!e.value[t.key].includes(o.key))),(n=t==null?void 0:t.clients)!=null&&n.length?[t]:[])})}const zo=i.computed(()=>{var e;const r=e0.availableTargets();return(e=r.find(t=>t.key==="node"))==null||e.clients.unshift({description:"An HTTP/1.1 client, written from scratch for Node.js.",key:"undici",link:"https://github.com/nodejs/undici",title:"undici"}),tw(r,zu)}),Jg={node:["unirest"]},zu=i.ref({...Jg===!0?{}:Jg}),Jf=()=>{var e,t,n,o;return zo.value.find(s=>s.key==="shell"&&s.clients.find(a=>a.key==="curl"))?{targetKey:"shell",clientKey:"curl"}:{targetKey:(e=zo.value[0])==null?void 0:e.key,clientKey:(o=(n=(t=zo.value[0])==null?void 0:t.clients)==null?void 0:n[0])==null?void 0:o.key}},ro=i.reactive(Jf());function vV(){nc(ro,Jf())}const bV=r=>{Object.assign(ro,{...ro,...r})},ks=()=>({httpClient:i.readonly(ro),resetState:vV,setHttpClient:bV,excludedClients:i.readonly(zu),setExcludedClients:r=>{zu.value=r,nc(ro,Jf())},availableTargets:zo,getClientTitle:ew,getTargetTitle:Z1,httpTargetTitle:gV,httpClientTitle:yV}),wV={key:0},kV={class:"authentication-header"},SV={class:"selector"},xV={key:0,class:"authentication-content"},CV=i.defineComponent({__name:"Authentication",props:{parsedSpec:{},proxy:{}},setup(r){const e=r,{authentication:t,setAuthentication:n}=ns(),o=i.computed(()=>{var a,l,c;if(!t.preferredSecurityScheme)return!1;const s=(c=(l=(a=e.parsedSpec)==null?void 0:a.components)==null?void 0:l.securitySchemes)==null?void 0:c[t.preferredSecurityScheme];return!!s&&"type"in s&&!!s.type});return i.watch(()=>{var s,a;return(a=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:a.securitySchemes},()=>{var s,a;n({securitySchemes:(a=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:a.securitySchemes})},{deep:!0,immediate:!0}),i.onServerPrefetch(async()=>{const s=i.useSSRContext();await wr(1),s.payload.data["useGlobalStore-authentication"]=t}),(s,a)=>{var l,c,d,u,h;return i.unref(Kv)(s.parsedSpec)?(i.openBlock(),i.createElementBlock("div",wV,[i.createElementVNode("div",kV,[i.createElementVNode("div",SV,[i.createVNode(i.unref(Hv),{value:(c=(l=s.parsedSpec)==null?void 0:l.components)==null?void 0:c.securitySchemes},null,8,["value"])])]),o.value?(i.openBlock(),i.createElementBlock("div",xV,[i.unref(t).preferredSecurityScheme?(i.openBlock(),i.createBlock(i.unref(zv),{key:0,proxy:s.proxy,value:(h=(u=(d=s.parsedSpec)==null?void 0:d.components)==null?void 0:u.securitySchemes)==null?void 0:h[i.unref(t).preferredSecurityScheme]},null,8,["proxy","value"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}}),EV=U(CV,[["__scopeId","data-v-adb00e96"]]),$V=["innerHTML"],_V=i.defineComponent({__name:"MarkdownRenderer",props:{value:{},withImages:{type:Boolean,default:!1}},setup(r){const e=r,t=i.ref(""),n=e.withImages?[]:["img","picture"],o={...la.defaultSchema,tagNames:[...(la.defaultSchema.tagNames||[]).filter(s=>!n.includes(s)),"abbr"],attributes:{...la.defaultSchema.attributes,abbr:["title"]}};return i.watch(()=>e.value,async()=>{const s=await Zg.unified().use(Qg).use(zw).use(Hw,{allowDangerousHtml:!0}).use(Fw).use(la,o).use(jw,{detect:!0}).use(Rw,{target:"_blank"}).use(Lw).use(qw).process(e.value);t.value=String(s.value)},{immediate:!0}),i.onServerPrefetch(async()=>await wr(1)),(s,a)=>(i.openBlock(),i.createElementBlock("div",{class:"markdown",innerHTML:t.value},null,8,$V))}}),wt=U(_V,[["__scopeId","data-v-5a5f5321"]]),NV=["title","innerHTML"],AV=i.defineComponent({__name:"ServerItem",props:{value:{},variables:{}},setup(r){const e=r,{copyToClipboard:t}=ws(),n=i.computed(()=>{var l;const a=(((l=e.value)==null?void 0:l.url)??"").replace(/(<([^>]+)>)/gi,"");return Ch(a,c=>{var u;const d=(u=e.variables)==null?void 0:u.find(h=>h.name===c);return`<span class="base-url-variable">${((d==null?void 0:d.value)??"")!==""?d==null?void 0:d.value:`{${c}}`}</span>`})}),o=i.computed(()=>n.value.replace(/(<([^>]+)>)/gi,""));return(s,a)=>s.value?(i.openBlock(),i.createElementBlock("a",{key:0,class:"base-url",title:s.value.description,onClick:a[0]||(a[0]=l=>i.unref(t)(o.value)),innerHTML:n.value},null,8,NV)):i.createCommentVNode("",!0)}}),OV=U(AV,[["__scopeId","data-v-41c016dc"]]),TV={key:0},BV=["for"],PV=["id","value","onInput"],IV=["value"],MV={class:"input-value"},DV=["id","value","onInput"],VV=i.defineComponent({__name:"ServerVariables",props:{value:{}},setup(r){const{server:e,setServer:t}=no(),n=(s,a)=>{const l=a.target.value,c=[...e.variables],d=c.findIndex(u=>u.name===s);c[d].value=l,t({variables:c})},o=s=>{const a=e.variables.findIndex(l=>l.name===s);return e.variables[a].value??""};return(s,a)=>s.value?(i.openBlock(),i.createElementBlock("div",TV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,l=>(i.openBlock(),i.createElementBlock("div",{key:l.name,class:"input"},[i.createElementVNode("label",{for:`variable-${l.name}`},[i.createElementVNode("code",null,i.toDisplayString(l.name),1)],8,BV),l.enum?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("select",{id:`variable-${l.name}`,value:o(l.name),onInput:c=>n(l.name,c)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.enum,c=>(i.openBlock(),i.createElementBlock("option",{key:c,value:c},i.toDisplayString(c),9,IV))),128))],40,PV),i.createElementVNode("div",MV,i.toDisplayString(l.default),1)],64)):(i.openBlock(),i.createElementBlock("input",{key:1,id:`variable-${l.name}`,autocomplete:"off",placeholder:"value",spellcheck:"false",type:"text",value:o(l.name),onInput:c=>n(l.name,c)},null,40,DV))]))),128))])):i.createCommentVNode("",!0)}}),RV=U(VV,[["__scopeId","data-v-2e5f4fe1"]]),LV=r=>(i.pushScopeId("data-v-1634f7d3"),r=r(),i.popScopeId(),r),jV={key:0},FV=LV(()=>i.createElementVNode("span",{class:"scalar-card-serverlist-title"},"Base URL",-1)),qV={class:"scalar-card-serverlist"},zV={class:"scalar-card-serverlist-container"},HV={class:"server-item"},UV={class:"server-selector"},KV=["value"],WV=["value"],GV={key:0,muted:""},JV={class:"description"},YV=i.defineComponent({__name:"BaseUrl",setup(r){const{server:e,setServer:t}=no(),n=i.ref(0);return i.watch([n,()=>e.servers],()=>{var l,c,d;if(!e.servers.length)return;const o=((l=e.servers[n.value])==null?void 0:l.variables)??{},s=o?Object.keys(o).map(u=>{var h;return{name:u,value:((h=o[u].default)==null?void 0:h.toString())??""}}):[];vv((c=e.servers[n.value])==null?void 0:c.url).filter(u=>!o[u]).forEach(u=>{s.push({name:u,value:""})}),t({selectedServer:n.value,description:(d=e.servers[n.value])==null?void 0:d.description,variables:s})},{immediate:!0,deep:!0}),(o,s)=>i.unref(e).servers.length>0?(i.openBlock(),i.createElementBlock("div",jV,[FV,i.createElementVNode("div",qV,[i.createElementVNode("div",zV,[i.createElementVNode("div",HV,[i.createElementVNode("div",UV,[i.unref(e).servers.length>1?(i.openBlock(),i.createElementBlock("select",{key:0,value:n.value,onInput:s[0]||(s[0]=a=>n.value=parseInt(a.target.value,10))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(e).servers,(a,l)=>(i.openBlock(),i.createElementBlock("option",{key:l,value:l},i.toDisplayString(a.url),9,WV))),128))],40,KV)):i.createCommentVNode("",!0),i.createVNode(OV,{value:i.unref(e).servers[n.value],variables:i.unref(e).variables},null,8,["value","variables"]),i.unref(e).servers.length>1?(i.openBlock(),i.createBlock(i.unref(Me),{key:1,icon:"ChevronDown"})):i.createCommentVNode("",!0)])]),i.createVNode(RV,{value:i.unref(e).variables},null,8,["value"])])]),i.unref(e).description?(i.openBlock(),i.createElementBlock("div",GV,[i.createElementVNode("div",JV,[i.createVNode(i.unref(wt),{value:i.unref(e).description},null,8,["value"])])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}),XV=U(YV,[["__scopeId","data-v-1634f7d3"]]),QV=r=>(i.pushScopeId("data-v-09827b05"),r=r(),i.popScopeId(),r),ZV=["onClick"],eR=["value"],tR=["label"],rR=["value"],nR={class:"client-libraries-icon__more"},oR={key:1,class:"client-libraries-icon",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},sR=QV(()=>i.createElementVNode("g",{fill:"currentColor","fill-rule":"nonzero"},[i.createElementVNode("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)),iR=[sR],aR={key:0},lR=i.defineComponent({__name:"ClientSelector",setup(r){const{httpClient:e,setHttpClient:t,availableTargets:n,getClientTitle:o,getTargetTitle:s}=ks(),a=i.ref(),l=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"}].filter(h=>n.value.find(f=>f.key===h.targetKey&&f.clients.find(p=>p.key===h.clientKey))),c=h=>`programming-language-${h}`,d=h=>h.targetKey===e.targetKey&&h.clientKey===e.clientKey,u=h=>l.some(f=>f.targetKey===h.targetKey&&f.clientKey===h.clientKey);return(h,f)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"containerRef",ref:a,class:"client-libraries-content"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(l),p=>(i.openBlock(),i.createElementBlock("div",{key:p.clientKey,class:i.normalizeClass(["client-libraries rendered-code-sdks",{"client-libraries__active":d(p)}]),onClick:()=>i.unref(t)(p)},[i.createElementVNode("div",{class:i.normalizeClass(`client-libraries-icon__${p.targetKey}`)},[i.createVNode(i.unref(Me),{class:"client-libraries-icon",icon:c(p.targetKey)},null,8,["icon"])],2),i.createElementVNode("span",null,i.toDisplayString(i.unref(s)(p)),1)],10,ZV))),128)),i.createElementVNode("div",{class:i.normalizeClass(["client-libraries client-libraries__select",{"client-libraries__active":i.unref(e)&&!u(i.unref(e))}])},[i.createElementVNode("select",{class:"language-select",value:JSON.stringify(i.unref(e)),onInput:f[0]||(f[0]=p=>i.unref(t)(JSON.parse(p.target.value)))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(n),p=>(i.openBlock(),i.createElementBlock("optgroup",{key:p.key,label:p.title},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.clients,y=>(i.openBlock(),i.createElementBlock("option",{key:y.key,value:JSON.stringify({targetKey:p.key,clientKey:y.key})},i.toDisplayString(i.unref(o)({targetKey:p.key,clientKey:y.key})),9,rR))),128))],8,tR))),128))],40,eR),i.createElementVNode("div",nR,[i.unref(e)&&!u(i.unref(e))?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`client-libraries-icon__${i.unref(e).targetKey}`)},[i.createVNode(i.unref(Me),{class:"client-libraries-icon",icon:c(i.unref(e).targetKey)},null,8,["icon"])],2)):(i.openBlock(),i.createElementBlock("svg",oR,iR))]),i.unref(n).length?(i.openBlock(),i.createElementBlock("span",aR,"More")):i.createCommentVNode("",!0)],2)],512))}}),cR=U(lR,[["__scopeId","data-v-09827b05"]]),dR=r=>(i.pushScopeId("data-v-301043da"),r=r(),i.popScopeId(),r),uR=dR(()=>i.createElementVNode("div",{class:"client-libraries-heading"},"Client Libraries",-1)),hR={class:"selected-client card-footer",muted:""},fR=i.defineComponent({__name:"ClientLibraries",setup(r){const{availableTargets:e,httpTargetTitle:t,httpClientTitle:n}=ks();return(o,s)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(e).length?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[uR,i.createElementVNode("div",null,[i.createVNode(cR)]),i.createElementVNode("div",hR,i.toDisplayString(i.unref(n))+" "+i.toDisplayString(i.unref(t)),1)],64)):i.createCommentVNode("",!0)]))}}),pR=U(fR,[["__scopeId","data-v-301043da"]]),mR={},gR={class:"badge"};function yR(r,e){return i.openBlock(),i.createElementBlock("div",gR,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Bi=U(mR,[["render",yR],["__scopeId","data-v-190574ac"]]),Yf=i.defineComponent({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(r,{emit:e}){const t=r,n=e,o=i.ref(),s=l=>{const c=l.offsetHeight;return`${c/2}px 0px ${c/2}px 0px`},a=l=>l.offsetHeight<window.innerHeight?.8:.5;return i.onMounted(()=>{if(o.value){const l={rootMargin:s(o.value),threshold:a(o.value)};Xe.useIntersectionObserver(o,([{isIntersecting:c}])=>{c&&t.id&&n("intersecting")},l)}}),(l,c)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(l.is??"div"),{id:l.id,ref_key:"intersectionObserverRef",ref:o},{default:i.withCtx(()=>[i.renderSlot(l.$slots,"default")]),_:3},8,["id"]))}}),vR=i.defineComponent({__name:"Section",props:{id:{},label:{}},setup(r){const e=r,{getSectionId:t,hash:n,isIntersectionEnabled:o,pathRouting:s}=ct(),{setCollapsedSidebarItem:a}=tr();function l(){var u;if(!e.label||!o.value)return;const c=new URL(window.location.href),d=e.id??"";s.value?c.pathname=s.value.basePath+"/"+d:c.hash=d,n.value=d,window.history.replaceState({},"",c),(u=e.id)!=null&&u.startsWith("model")&&a(t(e.id),!0)}return(c,d)=>(i.openBlock(),i.createBlock(Yf,{is:"section",id:c.id,class:"section",onIntersecting:l},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},8,["id"]))}}),Ss=U(vR,[["__scopeId","data-v-0494f9f3"]]),bR={class:"section-accordion-button-content"},wR={key:0,class:"section-accordion-button-actions"},kR={key:0,class:"section-accordion-description"},SR={class:"section-accordion-content-card"},xR=i.defineComponent({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(r){const e=i.ref(),t=Xe.useElementHover(e);return(n,o)=>(i.openBlock(),i.createBlock(Yf,{id:n.id,class:"section-wrapper"},{default:i.withCtx(()=>[i.createVNode(i.unref(Le.Disclosure),{as:"section",class:i.normalizeClass(["section-accordion",{"section-accordion-transparent":n.transparent}])},{default:i.withCtx(({open:s})=>[i.createVNode(i.unref(Le.DisclosureButton),{ref_key:"button",ref:e,class:"section-accordion-button"},{default:i.withCtx(()=>[i.createElementVNode("div",bR,[i.renderSlot(n.$slots,"title",{},void 0,!0)]),n.$slots.actions?(i.openBlock(),i.createElementBlock("div",wR,[i.renderSlot(n.$slots,"actions",{active:i.unref(t)||s},void 0,!0)])):i.createCommentVNode("",!0),i.createVNode(i.unref(Me),{class:"section-accordion-chevron",icon:s?"ChevronDown":"ChevronRight"},null,8,["icon"])]),_:2},1536),i.createVNode(i.unref(Le.DisclosurePanel),{class:"section-accordion-content"},{default:i.withCtx(()=>[n.$slots.description?(i.openBlock(),i.createElementBlock("div",kR,[i.renderSlot(n.$slots,"description",{},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",SR,[i.renderSlot(n.$slots,"default",{},void 0,!0)])]),_:3})]),_:3},8,["class"])]),_:3},8,["id"]))}}),rw=U(xR,[["__scopeId","data-v-07cabcb0"]]),CR={},ER={class:"section-column"};function $R(r,e){return i.openBlock(),i.createElementBlock("div",ER,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const es=U(CR,[["render",$R],["__scopeId","data-v-d64e7382"]]),_R={},NR={class:"section-columns"};function AR(r,e){return i.openBlock(),i.createElementBlock("div",NR,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Xf=U(_R,[["render",AR],["__scopeId","data-v-8b9602bf"]]),OR={},TR={class:"section-container"};function BR(r,e){return i.openBlock(),i.createElementBlock("div",TR,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Zi=U(OR,[["render",BR],["__scopeId","data-v-34b26958"]]),PR={class:"section-accordion-wrapper"},IR={class:"section-accordion-title"},MR=i.defineComponent({__name:"SectionContainerAccordion",setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",PR,[i.createVNode(i.unref(Le.Disclosure),{as:"div",class:"section-accordion",defaultOpen:""},{default:i.withCtx(({open:n})=>[i.createVNode(i.unref(Le.DisclosureButton),{class:"section-accordion-button"},{default:i.withCtx(()=>[i.createVNode(i.unref(Me),{class:"section-accordion-chevron",icon:n?"ChevronDown":"ChevronRight"},null,8,["icon"]),i.createElementVNode("div",IR,[i.renderSlot(e.$slots,"title",{},void 0,!0)])]),_:2},1024),i.createVNode(i.unref(Le.DisclosurePanel),{class:"section-accordion-content"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]))}}),nw=U(MR,[["__scopeId","data-v-2049975e"]]),DR=i.defineComponent({__name:"LoadingSkeleton",props:{lines:{default:1}},setup(r){return(e,t)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList([...Array(e.lines).keys()],n=>(i.openBlock(),i.createElementBlock("div",{key:n,class:i.normalizeClass(["loading",{"single-line":e.lines===1}])},null,2))),128))}}),ow=U(DR,[["__scopeId","data-v-c90b2c46"]]),VR={class:"section-content"},RR=i.defineComponent({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",VR,[e.loading?(i.openBlock(),i.createBlock(ow,{key:1,lines:8})):i.renderSlot(e.$slots,"default",{key:0},void 0,!0)]))}}),xs=U(RR,[["__scopeId","data-v-9735459e"]]),LR=i.defineComponent({__name:"SectionHeader",props:{loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{default:1}},setup(r){return(e,t)=>e.loading?(i.openBlock(),i.createBlock(ow,{key:0})):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(`h${e.level}`),{key:1,class:i.normalizeClass(["section-header",{tight:e.tight}])},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),bn=U(LR,[["__scopeId","data-v-3bd1b9f0"]]),jR={key:0,class:"introduction-description"},FR=i.defineComponent({__name:"Description",props:{value:{}},setup(r){const e=r,n=`components-Content-Introduction-Description-sections${Wu(e.value)}`,o=Xe.computedAsync(async()=>{if(!e.value)return[];const u=await Ei(e.value),h=rc(u);return await Promise.all(H1(e.value,h).map(async f=>({heading:(await Ei(f))[0],content:f})))},ts[n]??[]),{getHeadingId:s,hash:a,isIntersectionEnabled:l,pathRouting:c}=ct();function d(u=""){if(!l.value)return;const h=new URL(window.location.href);c.value?h.pathname=c.value.basePath+"/"+u:h.hash=u,a.value=u,window.history.replaceState({},"",h)}return i.onServerPrefetch(async()=>{const u=i.useSSRContext();await wr(1),u.payload.data[n]=o.value}),(u,h)=>u.value?(i.openBlock(),i.createElementBlock("div",jR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o),(f,p)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:p},[f.heading?(i.openBlock(),i.createBlock(Yf,{key:0,id:i.unref(s)(f.heading),class:"introduction-description-heading",onIntersecting:()=>d(i.unref(s)(f.heading))},{default:i.withCtx(()=>[i.createVNode(i.unref(wt),{value:f.content,withImages:""},null,8,["value"])]),_:2},1032,["id","onIntersecting"])):(i.openBlock(),i.createBlock(i.unref(wt),{key:1,value:f.content,withImages:""},null,8,["value"]))],64))),128))])):i.createCommentVNode("",!0)}}),qR=U(FR,[["__scopeId","data-v-5e475391"]]),zR={class:"download"},HR={class:"download-cta"},UR=i.defineComponent({__name:"DownloadSpec",props:{specTitle:{}},setup(r){const e=r,t=i.inject(zf),n=()=>{Hf.emit({id:"",specTitle:e.specTitle})};return(o,s)=>{var a;return i.openBlock(),i.createElementBlock("div",zR,[i.createElementVNode("div",HR,[(a=i.unref(t))!=null&&a()?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:0,class:"download-button",type:"button",onClick:n}," Download OpenAPI Spec "))])])}}}),KR=U(UR,[["__scopeId","data-v-810904a4"]]),WR={class:"badges"},GR={class:"sticky-cards"},JR=i.defineComponent({__name:"Introduction",props:{info:{},parsedSpec:{}},setup(r){const e=r,t=new Pi,n=i.computed(()=>e.parsedSpec.openapi??e.parsedSpec.swagger??""),o=i.computed(()=>t.slug(e.info.title??""));return(s,a)=>(i.openBlock(),i.createBlock(i.unref(Zi),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Ss),{class:"introduction-section"},{default:i.withCtx(()=>[i.createVNode(i.unref(xs),{loading:!s.info.description&&!s.info.title},{default:i.withCtx(()=>[i.createVNode(i.unref(Xf),null,{default:i.withCtx(()=>[i.createVNode(i.unref(es),null,{default:i.withCtx(()=>[i.createElementVNode("div",WR,[s.info.version?(i.openBlock(),i.createBlock(i.unref(Bi),{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.info.version),1)]),_:1})):i.createCommentVNode("",!0),n.value?(i.openBlock(),i.createBlock(i.unref(Bi),{key:1},{default:i.withCtx(()=>[i.createTextVNode(" OAS "+i.toDisplayString(n.value),1)]),_:1})):i.createCommentVNode("",!0)]),i.createVNode(i.unref(bn),{level:1,loading:!s.info.title,tight:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.info.title),1)]),_:1},8,["loading"]),i.createVNode(KR,{specTitle:o.value},null,8,["specTitle"]),i.createVNode(qR,{value:s.info.description},null,8,["value"])]),_:1}),s.$slots.aside?(i.openBlock(),i.createBlock(i.unref(es),{key:0},{default:i.withCtx(()=>[i.createElementVNode("div",GR,[i.renderSlot(s.$slots,"aside",{},void 0,!0)])]),_:3})):i.createCommentVNode("",!0)]),_:3})]),_:3},8,["loading"]),i.renderSlot(s.$slots,"after",{},void 0,!0)]),_:3})]),_:3}))}}),YR=U(JR,[["__scopeId","data-v-30c2e131"]]),XR=Symbol(),Hu=Xe.useEventBus(XR),Ll=i.defineComponent({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(r){const e=r,t=(o=()=>{})=>{typeof window>"u"||("requestIdleCallback"in window?setTimeout(()=>window.requestIdleCallback(o),e.lazyTimeout):setTimeout(()=>i.nextTick(o),e.lazyTimeout??300))},n=i.ref(!e.isLazy);return e.isLazy?t(()=>{n.value=!0,e.id&&i.nextTick(()=>Hu.emit({id:e.id}))}):e.id&&i.nextTick(()=>Hu.emit({id:e.id})),(o,s)=>n.value?i.renderSlot(o.$slots,"default",{key:0}):i.createCommentVNode("",!0)}}),QR={key:0,class:"screenreader-only"},ZR=i.defineComponent({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup(r){return(e,t)=>e.$props.if?(i.openBlock(),i.createElementBlock("span",QR,[i.renderSlot(e.$slots,"default",{},void 0,!0)])):i.renderSlot(e.$slots,"default",{key:1},void 0,!0)}}),sw=U(ZR,[["__scopeId","data-v-681ebf2c"]]),e3=r=>(i.pushScopeId("data-v-d9801d4e"),r=r(),i.popScopeId(),r),t3={class:"label"},r3={class:"anchor"},n3=e3(()=>i.createElementVNode("span",null,"",-1)),o3=i.defineComponent({__name:"Anchor",props:{id:{}},setup(r){const{copyToClipboard:e}=ws(),t=n=>{const o=new URL(window.location.href);return o.hash=n,o.toString()};return(n,o)=>(i.openBlock(),i.createElementBlock("span",t3,[i.renderSlot(n.$slots,"default",{},void 0,!0),i.createElementVNode("span",r3,[n3,i.createElementVNode("button",{class:"anchor-copy",type:"button",onClick:o[0]||(o[0]=i.withModifiers(s=>i.unref(e)(t(n.id)),["stop"]))},[i.createTextVNode(" # "),i.createVNode(sw,null,{default:i.withCtx(()=>[i.createTextVNode('Copy link to "'),i.renderSlot(n.$slots,"default",{},void 0,!0),i.createTextVNode('"')]),_:3})])])]))}}),wn=U(o3,[["__scopeId","data-v-d9801d4e"]]),s3={},i3={class:"scalar-card"};function a3(r,e){return i.openBlock(),i.createElementBlock("div",i3,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const ea=U(s3,[["render",a3],["__scopeId","data-v-dcabb131"]]),l3=i.defineComponent({__name:"CardContent",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["scalar-card-content",{"scalar-card--muted":e.muted,"scalar-card--contrast":e.contrast,"scalar-card--frameless":e.frameless,"scalar-card--transparent":e.transparent,"scalar-card--borderless":e.borderless}])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),lo=U(l3,[["__scopeId","data-v-5312c2e0"]]),c3={class:"scalar-card-header-slots"},d3={class:"scalar-card-header-slot scalar-card-header-title"},u3={class:"scalar-card-header-slot scalar-card-header-actions"},h3=i.defineComponent({__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(i.openBlock(),i.createBlock(lo,i.mergeProps(e,{class:"scalar-card-header"}),{default:i.withCtx(()=>[i.createElementVNode("div",c3,[i.createElementVNode("div",d3,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",u3,[i.renderSlot(t.$slots,"actions",{},void 0,!0)])])]),_:3},16))}}),ta=U(h3,[["__scopeId","data-v-bbd0c20a"]]),f3=i.defineComponent({__name:"CardFooter",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(i.openBlock(),i.createBlock(lo,i.normalizeProps(i.guardReactiveProps(e)),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16))}}),Rc=U(f3,[["__scopeId","data-v-918ab8d6"]]),p3=i.defineComponent({__name:"CardTabHeader",emits:["change"],setup(r,{emit:e}){const t=e,n=o=>{t("change",o)};return(o,s)=>(i.openBlock(),i.createBlock(ta,{class:"scalar-card-header-tabs"},{actions:i.withCtx(()=>[i.renderSlot(o.$slots,"actions",{},void 0,!0)]),default:i.withCtx(()=>[i.createVNode(i.unref(Le.TabGroup),{onChange:n},{default:i.withCtx(()=>[i.createVNode(i.unref(Le.TabList),{class:"tab-list custom-scroll"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),iw=U(p3,[["__scopeId","data-v-6a91b57c"]]),m3=i.defineComponent({__name:"CardTab",setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.unref(Le.Tab),{as:"template"},{default:i.withCtx(({selected:n})=>[i.createElementVNode("button",{class:i.normalizeClass({tab:!0,"tab-selected":n}),type:"button"},[i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],2)]),_:3}))}}),aw=U(m3,[["__scopeId","data-v-f373ecc2"]]),g3=["value"],y3=["label"],v3=["value"],b3=["value"],Qf=i.defineComponent({__name:"TextSelect",props:{modelValue:{},options:{}},emits:["update:modelValue"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["text-select",e.options.length===1?"text-select--single-option":""])},[i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default")]),i.createElementVNode("select",{value:e.modelValue,onInput:t[0]||(t[0]=n=>e.$emit("update:modelValue",n.target.value))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.options,n=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:n.value},[n.options?(i.openBlock(),i.createElementBlock("optgroup",{key:0,label:n.label},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.options,o=>(i.openBlock(),i.createElementBlock("option",{key:o.value,value:o.value},i.toDisplayString(o.label),9,v3))),128))],8,y3)):(i.openBlock(),i.createElementBlock("option",{key:n.value,value:n.value},i.toDisplayString(n.label),9,b3))],64))),128))],40,g3)],2))}}),w3={class:"request-header"},k3=i.defineComponent({__name:"CustomRequestExamples",props:{operation:{},examples:{}},setup(r){const e=r,t=i.ref(0),n=i.computed(()=>({C:"c","C#":"csharp",Go:"go",HTML:"html",Java:"java",JavaScript:"javascript",Kotlin:"kotlin","Objective-C":"objc",PowerShell:"powershell",Python:"python",Ruby:"ruby",Shell:"shell",Swift:"swift",TypeScript:"javascript",cURL:"shell"})[e.examples[t.value].lang]??e.examples[t.value].lang),o=i.computed(()=>e.examples[t.value]);i.watch(e.examples,()=>{e.examples[t.value]==="undefined"&&(t.value=0)});const{copyToClipboard:s}=ws();return(a,l)=>(i.openBlock(),i.createBlock(i.unref(ea),{class:"dark-mode"},{default:i.withCtx(()=>[i.createVNode(i.unref(ta),{muted:""},{actions:i.withCtx(()=>[i.createVNode(Qf,{class:"request-client-picker",modelValue:t.value,options:a.examples.map((c,d)=>({value:d.toString(),label:c.label})),"onUpdate:modelValue":l[0]||(l[0]=c=>(t.value=parseInt(c),10))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.value.label),1)]),_:1},8,["modelValue","options"]),i.createElementVNode("button",{class:"copy-button",type:"button",onClick:l[1]||(l[1]=c=>i.unref(s)(o.value.source.trim()))},[i.createVNode(i.unref(Me),{icon:"Clipboard",width:"10px"})])]),default:i.withCtx(()=>[i.createElementVNode("div",w3,[i.createVNode(i.unref(oo),{class:"request-method",method:a.operation.httpVerb},null,8,["method"]),i.renderSlot(a.$slots,"header",{},void 0,!0)])]),_:3}),i.createVNode(i.unref(lo),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:i.withCtx(()=>[i.createVNode(i.unref(Nr),{content:o.value.source.trim(),lang:n.value,lineNumbers:""},null,8,["content","lang"])]),_:1}),a.$slots.footer?(i.openBlock(),i.createBlock(i.unref(Rc),{key:0,class:"scalar-card-footer",contrast:""},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"footer",{},void 0,!0)]),_:3})):i.createCommentVNode("",!0)]),_:3}))}}),S3=U(k3,[["__scopeId","data-v-18ba624d"]]),x3={class:"schema-type"},C3=["title"],E3=i.defineComponent({__name:"SchemaHeading",props:{value:{},name:{}},setup(r){return(e,t)=>{var n,o,s,a,l,c;return i.openBlock(),i.createElementBlock("span",x3,[i.createElementVNode("span",{class:"schema-type-icon",title:typeof e.value.type=="string"?e.value.type:Array.isArray(e.value.type)?e.value.type.join(" | "):"unkown type"},[e.value.type==="object"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" {} ")],64)):i.createCommentVNode("",!0),e.value.type==="array"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" [] ")],64)):i.createCommentVNode("",!0),e.value.enum?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(" enum ")],64)):i.createCommentVNode("",!0)],8,C3),(o=(n=e.value)==null?void 0:n.xml)!=null&&o.name&&((a=(s=e.value)==null?void 0:s.xml)==null?void 0:a.name)!=="##default"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" <"+i.toDisplayString((c=(l=e.value)==null?void 0:l.xml)==null?void 0:c.name)+" /> ",1)],64)):e.name?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(e.name),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(e.value.type),1)],64))])}}}),lw=U(E3,[["__scopeId","data-v-6c5c3c96"]]),$3={key:0,class:"property-detail-prefix"},_3={key:1,class:"property-detail-value"},N3={key:2,class:"property-detail-value"},A3=i.defineComponent({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(["property-detail",{"property-detail-truncate":e.truncate}])},[e.$slots.prefix?(i.openBlock(),i.createElementBlock("div",$3,[i.renderSlot(e.$slots,"prefix",{},void 0,!0),i.createTextVNode(" ")])):i.createCommentVNode("",!0),e.code?(i.openBlock(),i.createElementBlock("code",_3,[i.renderSlot(e.$slots,"default",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("span",N3,[i.renderSlot(e.$slots,"default",{},void 0,!0)]))],2))}}),Bt=U(A3,[["__scopeId","data-v-16d94ef5"]]),O3={class:"property-heading"},T3={key:0,class:"property-name"},B3={key:1,class:"property-additional"},P3={key:2,class:"property-deprecated"},I3={key:3,class:"property-required"},M3={key:4,class:"property-const"},D3={key:5,class:"property-details"},V3={key:6,class:"property-write-only"},R3={key:7,class:"property-read-only"},L3=i.defineComponent({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1},additional:{type:Boolean}},setup(r){const e=["oneOf","anyOf","allOf","not"];return(t,n)=>{var o,s,a,l,c,d,u;return i.openBlock(),i.createElementBlock("div",O3,[t.$slots.name?(i.openBlock(),i.createElementBlock("div",T3,[i.renderSlot(t.$slots,"name",{},void 0,!0)])):i.createCommentVNode("",!0),t.additional?(i.openBlock(),i.createElementBlock("div",B3,[(o=t.value)!=null&&o["x-additionalPropertiesName"]?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.value["x-additionalPropertiesName"]),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" additional properties ")],64))])):i.createCommentVNode("",!0),(s=t.value)!=null&&s.deprecated?(i.openBlock(),i.createElementBlock("div",P3,[i.createVNode(i.unref(Bi),null,{default:i.withCtx(()=>[i.createTextVNode("deprecated")]),_:1})])):i.createCommentVNode("",!0),t.required?(i.openBlock(),i.createElementBlock("div",I3," required ")):i.createCommentVNode("",!0),(a=t.value)!=null&&a.const||(l=t.value)!=null&&l.enum&&t.value.enum.length===1?(i.openBlock(),i.createElementBlock("div",M3,[i.createVNode(Bt,{truncate:""},{prefix:i.withCtx(()=>[i.createTextVNode("const:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.const??t.value.enum[0]),1)]),_:1})])):(c=t.value)!=null&&c.type?(i.openBlock(),i.createElementBlock("div",D3,[t.additional?(i.openBlock(),i.createBlock(Bt,{key:0},{prefix:i.withCtx(()=>[i.createTextVNode("key:")]),default:i.withCtx(()=>[i.createTextVNode(" string ")]),_:1})):i.createCommentVNode("",!0),i.createVNode(Bt,null,i.createSlots({default:i.withCtx(()=>{var h,f,p;return[(f=(h=t.value)==null?void 0:h.items)!=null&&f.type?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.value.type)+" "+i.toDisplayString(t.value.items.type)+"[] ",1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(Array.isArray(t.value.type)?t.value.type.join(" | "):t.value.type)+" "+i.toDisplayString((p=t.value)!=null&&p.nullable?" | nullable":""),1)],64)),t.value.minItems||t.value.maxItems?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(t.value.minItems)+"…"+i.toDisplayString(t.value.maxItems),1)],64)):i.createCommentVNode("",!0)]}),_:2},[t.additional?{name:"prefix",fn:i.withCtx(()=>[i.createTextVNode("value:")]),key:"0"}:void 0]),1024),t.value.minLength?(i.openBlock(),i.createBlock(Bt,{key:1},{prefix:i.withCtx(()=>[i.createTextVNode("min:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.minLength),1)]),_:1})):i.createCommentVNode("",!0),t.value.maxLength?(i.openBlock(),i.createBlock(Bt,{key:2},{prefix:i.withCtx(()=>[i.createTextVNode("max:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.maxLength),1)]),_:1})):i.createCommentVNode("",!0),t.value.uniqueItems?(i.openBlock(),i.createBlock(Bt,{key:3},{default:i.withCtx(()=>[i.createTextVNode(" unique! ")]),_:1})):i.createCommentVNode("",!0),t.value.format?(i.openBlock(),i.createBlock(Bt,{key:4},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.value.format),1)]),_:1})):i.createCommentVNode("",!0),t.value.minimum?(i.openBlock(),i.createBlock(Bt,{key:5},{prefix:i.withCtx(()=>[i.createTextVNode("min:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.minimum),1)]),_:1})):i.createCommentVNode("",!0),t.value.maximum?(i.openBlock(),i.createBlock(Bt,{key:6},{prefix:i.withCtx(()=>[i.createTextVNode("max:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.maximum),1)]),_:1})):i.createCommentVNode("",!0),t.value.pattern?(i.openBlock(),i.createBlock(Bt,{key:7,code:"",truncate:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.value.pattern),1)]),_:1})):i.createCommentVNode("",!0),t.$props.enum?(i.openBlock(),i.createBlock(Bt,{key:8},{default:i.withCtx(()=>[i.createTextVNode("enum")]),_:1})):i.createCommentVNode("",!0),t.value.default?(i.openBlock(),i.createBlock(Bt,{key:9,truncate:""},{prefix:i.withCtx(()=>[i.createTextVNode("default:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.default),1)]),_:1})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),(d=t.value)!=null&&d.writeOnly?(i.openBlock(),i.createElementBlock("div",V3," write-only ")):(u=t.value)!=null&&u.readOnly?(i.openBlock(),i.createElementBlock("div",R3," read-only ")):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.filter(h=>{var f,p,y;return((f=t.value)==null?void 0:f[h])||((y=(p=t.value)==null?void 0:p.items)==null?void 0:y[h])}),h=>(i.openBlock(),i.createBlock(i.unref(Bi),{key:h},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h),1)]),_:2},1024))),128))])}}}),j3=U(L3,[["__scopeId","data-v-c1c21610"]]),F3=r=>(i.pushScopeId("data-v-9c7a15fe"),r=r(),i.popScopeId(),r),q3={key:0,class:"property-description"},z3={key:1,class:"property-description"},H3={key:2,class:"property-example custom-scroll"},U3=F3(()=>i.createElementVNode("span",{class:"property-example-label"},"Example",-1)),K3={class:"property-example-value"},W3={key:3,class:"property-enum"},G3={key:0,class:"property-list"},J3={class:"property-heading"},Y3={class:"property-name"},X3={class:"property-description"},Q3={key:1,class:"property-enum-values"},Z3={key:4,class:"children"},eL={key:0,class:"children"},tL={key:0,class:"property-rule"},rL={key:1,class:"property-rule"},nL=i.defineComponent({__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},additional:{type:Boolean}},setup(r){const e={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},t=function(a,l){return l!=null&&l.properties||l!=null&&l.additionalProperties?null:a||(l==null?void 0:l.description)||null},n=function(a){return!a||!e[a.type]?null:e[a.type][a.format||"_default"]},o=function(a){var l;return(a==null?void 0:a.enum)||((l=a==null?void 0:a.items)==null?void 0:l.enum)||[]},s=["oneOf","anyOf","allOf","not"];return(a,l)=>{var c,d,u,h,f,p,y,g,m,v,b;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["property",[`property--level-${a.level}`,{"property--compact":a.compact,"property--deprecated":(c=a.value)==null?void 0:c.deprecated}]])},[i.createVNode(j3,{additional:a.additional,enum:o(a.value).length>1,required:a.required,value:a.value},i.createSlots({_:2},[a.name?{name:"name",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.name),1)]),key:"0"}:void 0]),1032,["additional","enum","required","value"]),t(a.description,a.value)?(i.openBlock(),i.createElementBlock("div",q3,[i.createVNode(i.unref(wt),{value:t(a.description,a.value)},null,8,["value"])])):n(a.value)?(i.openBlock(),i.createElementBlock("div",z3,[i.createVNode(i.unref(wt),{value:n(a.value)||""},null,8,["value"])])):i.createCommentVNode("",!0),(d=a.value)!=null&&d.example||(h=(u=a.value)==null?void 0:u.items)!=null&&h.example?(i.openBlock(),i.createElementBlock("div",H3,[U3,i.createElementVNode("code",K3,i.toDisplayString(a.value.example||((f=a.value)==null?void 0:f.items.example)),1)])):i.createCommentVNode("",!0),((p=o(a.value))==null?void 0:p.length)>1?(i.openBlock(),i.createElementBlock("div",W3,[(y=a.value)!=null&&y["x-enumDescriptions"]?(i.openBlock(),i.createElementBlock("div",G3,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o(a.value),w=>(i.openBlock(),i.createElementBlock("div",{key:w,class:"property"},[i.createElementVNode("div",J3,[i.createElementVNode("div",Y3,i.toDisplayString(w),1)]),i.createElementVNode("div",X3,[i.createVNode(i.unref(wt),{value:a.value["x-enumDescriptions"][w]},null,8,["value"])])]))),128))])):(i.openBlock(),i.createElementBlock("ul",Q3,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o(a.value),w=>(i.openBlock(),i.createElementBlock("li",{key:w,class:"property-enum-value"},i.toDisplayString(w),1))),128))]))])):i.createCommentVNode("",!0),((g=a.value)==null?void 0:g.type)==="object"&&((m=a.value)!=null&&m.properties||(v=a.value)!=null&&v.additionalProperties)?(i.openBlock(),i.createElementBlock("div",Z3,[i.createVNode(qn,{compact:a.compact,level:a.level+1,value:a.value},null,8,["compact","level","value"])])):i.createCommentVNode("",!0),(b=a.value)!=null&&b.items?(i.openBlock(),i.createElementBlock(i.Fragment,{key:5},[["object"].includes(a.value.items.type)?(i.openBlock(),i.createElementBlock("div",eL,[i.createVNode(qn,{compact:a.compact,level:a.level+1,value:a.value.items},null,8,["compact","level","value"])])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(s,w=>{var S,x,k;return i.openBlock(),i.createElementBlock(i.Fragment,{key:w},[(S=a.value)!=null&&S[w]?(i.openBlock(),i.createElementBlock("div",tL,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value[w],(C,N)=>(i.openBlock(),i.createBlock(qn,{key:N,compact:a.compact,level:a.level+1,value:C},null,8,["compact","level","value"]))),128))])):i.createCommentVNode("",!0),(k=(x=a.value)==null?void 0:x.items)!=null&&k[w]&&a.level<3?(i.openBlock(),i.createElementBlock("div",rL,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value.items[w],(C,N)=>(i.openBlock(),i.createBlock(qn,{key:N,compact:a.compact,level:a.level+1,value:C},null,8,["compact","level","value"]))),128))])):i.createCommentVNode("",!0)],64)}),64))],2)}}}),Fn=U(nL,[["__scopeId","data-v-9c7a15fe"]]),oL=r=>(i.pushScopeId("data-v-7f5d0941"),r=r(),i.popScopeId(),r),sL={key:0,class:"schema-card-description"},iL=oL(()=>i.createElementVNode("polygon",{"fill-rule":"nonzero",points:"14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"},null,-1)),aL=[iL],lL=i.defineComponent({__name:"Schema",props:{value:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean}},setup(r){const e=r,t=i.computed(()=>!(e.noncollapsible||e.level===0)),n=o=>e.noncollapsible&&o.stopPropagation();return(o,s)=>typeof o.value=="object"&&Object.keys(o.value).length?(i.openBlock(),i.createBlock(i.unref(Le.Disclosure),{key:0,defaultOpen:o.noncollapsible},{default:i.withCtx(({open:a})=>{var l;return[i.createElementVNode("div",{class:i.normalizeClass(["schema-card",[`schema-card--level-${o.level}`,{"schema-card--compact":o.compact,"schema-card--open":a}]])},[(l=o.value)!=null&&l.description?(i.openBlock(),i.createElementBlock("div",sL,[i.createVNode(i.unref(wt),{value:o.value.description},null,8,["value"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["schema-properties",{"schema-properties-open":a}])},[i.withDirectives(i.createVNode(i.unref(Le.DisclosureButton),{as:o.noncollapsible?"div":"button",class:i.normalizeClass(["schema-card-title",{"schema-card-title--compact":o.compact}]),style:i.normalizeStyle({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${o.level}))`}),onClickCapture:n},{default:i.withCtx(()=>{var c,d,u;return[o.compact?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[t.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:i.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":a}]),fill:"currentColor",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg"},aL,2)):i.createCommentVNode("",!0),a?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Hide "+i.toDisplayString(((c=o.value)==null?void 0:c.title)??"Child Attributes"),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(" Show "+i.toDisplayString(((d=o.value)==null?void 0:d.title)??"Child Attributes"),1)],64))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[t.value?(i.openBlock(),i.createBlock(i.unref(Me),{key:0,class:i.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":a}]),icon:"ChevronRight",size:"md"},null,8,["class"])):i.createCommentVNode("",!0),i.createVNode(lw,{name:((u=o.value)==null?void 0:u.title)??o.name,value:o.value},null,8,["name","value"])],64))]}),_:2},1032,["as","class","style"]),[[i.vShow,!(o.noncollapsible&&o.compact)]]),i.createVNode(i.unref(Le.DisclosurePanel),{static:o.noncollapsible},{default:i.withCtx(()=>{var c;return[o.value.properties||o.value.additionalProperties?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.value.properties?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(Object.keys((c=o.value)==null?void 0:c.properties),d=>{var u;return i.openBlock(),i.createBlock(Fn,{key:d,compact:o.compact,level:o.level,name:d,required:o.value.required&&o.value.required.length&&o.value.required.includes(d),value:(u=o.value.properties)==null?void 0:u[d]},null,8,["compact","level","name","required","value"])}),128)):i.createCommentVNode("",!0),o.value.additionalProperties?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[o.value.additionalProperties===!0||Object.keys(o.value.additionalProperties).length===0||!o.value.additionalProperties.type?(i.openBlock(),i.createBlock(Fn,{key:0,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:{type:"any",...o.value.additionalProperties}},null,8,["compact","level","value"])):(i.openBlock(),i.createBlock(Fn,{key:1,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:o.value.additionalProperties},null,8,["compact","level","value"]))],64)):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createBlock(Fn,{key:1,compact:o.compact,level:o.level,name:o.value.name,value:o.value},null,8,["compact","level","name","value"]))]}),_:1},8,["static"])],2)],2)]}),_:1},8,["defaultOpen"])):i.createCommentVNode("",!0)}}),qn=U(lL,[["__scopeId","data-v-7f5d0941"]]),cL={class:"parameter-item"},dL={class:"parameter-item-container"},uL=i.defineComponent({__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("li",cL,[i.createElementVNode("div",dL,[i.createVNode(i.unref(Fn),{compact:"",description:e.parameter.description,level:0,name:e.parameter.name,noncollapsible:e.showChildren,required:e.parameter.required,value:e.parameter.schema},null,8,["description","name","noncollapsible","required","value"])])]))}}),hL=U(uL,[["__scopeId","data-v-f70ee55c"]]),fL={key:0,class:"parameters"},pL={class:"parameters-title"},mL={class:"parameter-list"},gL=i.defineComponent({__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>{var n;return(n=e.parameters)!=null&&n.length?(i.openBlock(),i.createElementBlock("div",fL,[i.createElementVNode("div",pL,[i.renderSlot(e.$slots,"title",{},void 0,!0)]),i.createElementVNode("ul",mL,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.parameters,o=>(i.openBlock(),i.createBlock(hL,{key:o.name,parameter:o,showChildren:e.showChildren},null,8,["parameter","showChildren"]))),128))])])):i.createCommentVNode("",!0)}}}),Kt=U(gL,[["__scopeId","data-v-45fca787"]]),yL={key:0},vL={class:"request-body-title"},bL=["value"],wL={key:0,class:"request-body-description"},kL={key:0,class:"request-body-schema"},SL=i.defineComponent({__name:"RequestBody",props:{requestBody:{}},setup(r){var o;const e=r,t=i.computed(()=>{var s;return(s=e.requestBody)!=null&&s.content?Object.keys(e.requestBody.content):[]}),n=i.ref("application/json");return(o=e.requestBody)!=null&&o.content&&t.value.length>0&&(n.value=t.value[0]),(s,a)=>{var l,c,d,u;return e!=null&&e.requestBody?(i.openBlock(),i.createElementBlock("div",yL,[i.createElementVNode("div",vL,[i.renderSlot(s.$slots,"title",{},void 0,!0),i.createElementVNode("div",{class:i.normalizeClass(["request-body-title-select",{"request-body-title-no-select":t.value.length<=1}])},[i.createElementVNode("span",null,i.toDisplayString(n.value),1),e!=null&&e.requestBody&&t.value.length>1?i.withDirectives((i.openBlock(),i.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=h=>n.value=h)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((l=e.requestBody)==null?void 0:l.content,(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,value:f},i.toDisplayString(f),9,bL))),128))],512)),[[i.vModelSelect,n.value]]):i.createCommentVNode("",!0)],2),e!=null&&e.requestBody.description?(i.openBlock(),i.createElementBlock("div",wL,[i.createVNode(i.unref(wt),{value:e.requestBody.description},null,8,["value"])])):i.createCommentVNode("",!0)]),(c=e==null?void 0:e.requestBody.content)!=null&&c[n.value]?(i.openBlock(),i.createElementBlock("div",kL,[i.createVNode(i.unref(qn),{compact:"",noncollapsible:"",value:(u=(d=e==null?void 0:e.requestBody.content)==null?void 0:d[n.value])==null?void 0:u.schema},null,8,["value"])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}}),Zf=U(SL,[["__scopeId","data-v-e095eb63"]]),xL={class:"endpoint-details"},CL={class:"endpoint-description"},EL=i.defineComponent({__name:"EndpointDetails",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Kf(e),{responses:n}=Wf(e.operation);return(o,s)=>{var a,l;return i.openBlock(),i.createElementBlock("div",xL,[i.createElementVNode("div",CL,[i.createVNode(i.unref(wt),{value:o.operation.description,withImages:""},null,8,["value"])]),i.createVNode(Kt,{parameters:i.unref(t).path},{title:i.withCtx(()=>[i.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).query},{title:i.withCtx(()=>[i.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).header},{title:i.withCtx(()=>[i.createTextVNode("Headers")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).body,showChildren:""},{title:i.withCtx(()=>[i.createTextVNode("Body Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).formData},{title:i.withCtx(()=>[i.createTextVNode("Form Data")]),_:1},8,["parameters"]),(a=o.operation.information)!=null&&a.requestBody?(i.openBlock(),i.createBlock(Zf,{key:0,requestBody:(l=o.operation.information)==null?void 0:l.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Body")]),_:1},8,["requestBody"])):i.createCommentVNode("",!0),i.createVNode(Kt,{parameters:i.unref(n)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),$L={key:0},_L=i.defineComponent({__name:"EndpointPath",props:{path:{},deprecated:{type:Boolean}},setup(r){const e=r,t=o=>o.startsWith("{")&&o.endsWith("}"),n=i.computed(()=>e.path.split(/({[^}]+})/));return(o,s)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(["endpoint-path",{deprecated:o.deprecated}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:l},[t(a)?(i.openBlock(),i.createElementBlock("em",$L,i.toDisplayString(a),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(a),1)],64))],64))),128))],2))}}),Uu=U(_L,[["__scopeId","data-v-a4eadd9b"]]);function ra(r){return r.reduce((e,t)=>(e[t.name]=t.value,e),{})}function NL(r){return/\s|-/.test(r)}function kr(r,e=0){let t=[],n=" ".repeat(e),o=" ".repeat(e+2);for(const[s,a]of Object.entries(r)){let l=NL(s)?`'${s}'`:s;if(Array.isArray(a)){const c=a.map(d=>typeof d=="string"?`'${d}'`:d&&typeof d=="object"?kr(d,e+2):d).join(`, ${o}`);t.push(`${o}${l}: [${c}]`)}else if(a&&typeof a=="object")t.push(`${o}${l}: ${kr(a,e+2)}`);else if(typeof a=="string"){let c=`${a}`;if(a.startsWith("JSON.stringify")){const d=a.split(`
|
|
216
216
|
`);d.length>1&&(c=d.map((u,h)=>h===0?u:`${o}${u}`).join(`
|
|
217
217
|
`))}else c=`'${a}'`;t.push(`${o}${l}: ${c}`)}else t.push(`${o}${l}: ${a}`)}return`{
|
|
218
218
|
${t.join(`,
|
|
219
219
|
`)}
|
|
220
220
|
${n}}`}function AL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?ra(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${kr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"node",client:"undici",code:`import { request } from 'undici'
|
|
221
221
|
|
|
222
|
-
const { statusCode, body } = await request('${n.url}${a}'${l})`}}function OL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?ra(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${kr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"node",client:"fetch",code:`fetch('${n.url}${a}'${l})`}}function TL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?ra(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${kr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"js",client:"fetch",code:`fetch('${n.url}${a}'${l})`}}function BL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?ra(n.queryString):void 0);s.size&&(o.query={},s.forEach((l,c)=>{o.query[c]=l})),(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(l=>{o.headers[l.name]=l.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(l=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(o).forEach(l=>{o[l]===void 0&&delete o[l]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=JSON.parse(o.body)));const a=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"js",client:"ofetch",code:`ofetch('${n.url}'${a})`}}function PL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?ra(n.queryString):void 0);s.size&&(o.query={},s.forEach((l,c)=>{o.query[c]=l})),(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(l=>{o.headers[l.name]=l.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(l=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(o).forEach(l=>{o[l]===void 0&&delete o[l]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=JSON.parse(o.body)));const a=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"node",client:"ofetch",code:`ofetch('${n.url}'${a})`}}function Yg(){const r=[AL,OL,TL,BL,PL];return{get(e,t,n){const o=this.findPlugin(e,t);if(o)return o(n)},print(e,t,n){var o;return(o=this.get(e,t,n))==null?void 0:o.code},targets(){return r.map(e=>e().target).filter((e,t,n)=>n.indexOf(e)===t)},clients(){return r.map(e=>e().client)},plugins(){return r.map(e=>{const t=e();return{target:t.target,client:t.client}})},findPlugin(e,t){return r.find(n=>{const o=n();return o.target===e&&o.client===t})},hasPlugin(e,t){return!!this.findPlugin(e,t)}}}const IL=i.defineComponent({__name:"ExamplePicker",props:{examples:{}},emits:["update:modelValue"],setup(r,{emit:e}){const t=r,n=e,o=i.ref(Object.keys(t.examples)[0]);function s(l){l&&(o.value=l)}i.watch(()=>t.examples,()=>{s(Object.keys(t.examples)[0])},{immediate:!0}),i.watch(o,()=>{o.value&&n("update:modelValue",o.value)},{immediate:!0});function a(l){if(!l)return"Select an example";const c=t.examples[l];return(c==null?void 0:c.summary)??l}return(l,c)=>(i.openBlock(),i.createBlock(Qf,{modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=d=>o.value=d),class:"example-selector",options:Object.keys(l.examples).map(d=>({label:a(d),value:d}))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a(o.value)),1)]),_:1},8,["modelValue","options"]))}}),cw=U(IL,[["__scopeId","data-v-652a7e14"]]),ML={class:"request-header"},DL={class:"code-snippet"},VL={key:0,class:"request-card-footer-addon"},RL=i.defineComponent({__name:"ExampleRequest",props:{operation:{}},setup(r){const e=r,n=`components-Content-Operation-Example-Request${Wu(e.operation.path+e.operation.httpVerb+e.operation.operationId)}`,o=i.ref(ts[n]??""),s=i.ref(),{copyToClipboard:a}=ws(),{httpClient:l,setHttpClient:c,availableTargets:d,httpTargetTitle:u,httpClientTitle:h}=ks(),{server:f}=no(),{authentication:p}=ns(),y=i.computed(()=>{var v,b,w,S,x,k,C;return((S=(w=(b=(v=e.operation.information)==null?void 0:v.requestBody)==null?void 0:b.content)==null?void 0:w["application/json"])==null?void 0:S.examples)&&Object.keys((C=(k=(x=e.operation.information)==null?void 0:x.requestBody)==null?void 0:k.content)==null?void 0:C["application/json"].examples).length>1}),g=i.inject(Vc),m=async()=>{var b;const v=g0({url:xi(f)},Od(e.operation,{replaceVariables:!0},s.value),Sh(p,((b=e.operation.information)==null?void 0:b.security)??(g==null?void 0:g())));try{return Yg().hasPlugin(l.targetKey.replace("javascript","js"),l.clientKey)?Yg().print(l.targetKey.replace("javascript","js"),l.clientKey,v)??"":await new e0.HTTPSnippet(v).convert(l.targetKey,l.clientKey)}catch(w){return console.error("[ExampleRequest]",w),""}};return i.watch([()=>l,()=>f,()=>p,()=>s],async()=>{o.value=await m()},{deep:!0,immediate:!0}),i.onServerPrefetch(async()=>{const v=i.useSSRContext();await wr(1),v.payload.data[n]=o.value}),i.computed(()=>Bh({serverState:f,authenticationState:p,operation:e.operation,globalSecurity:g==null?void 0:g()})),(v,b)=>(i.openBlock(),i.createBlock(i.unref(ea),{class:"dark-mode"},{default:i.withCtx(()=>[i.createVNode(i.unref(ta),{muted:""},{actions:i.withCtx(()=>[i.createVNode(Qf,{class:"request-client-picker",modelValue:JSON.stringify(i.unref(l)),options:i.unref(d).map(w=>({value:w.key,label:w.title,options:w.clients.map(S=>({value:JSON.stringify({targetKey:w.key,clientKey:S.key}),label:S.title}))})),"onUpdate:modelValue":b[0]||(b[0]=w=>i.unref(c)(JSON.parse(w)))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(u))+" "+i.toDisplayString(i.unref(h)),1)]),_:1},8,["modelValue","options"]),i.createElementVNode("button",{class:"copy-button",type:"button",onClick:b[1]||(b[1]=w=>i.unref(a)(o.value))},[i.createVNode(i.unref(Me),{icon:"Clipboard",width:"10px"})])]),default:i.withCtx(()=>[i.createElementVNode("div",ML,[i.createVNode(i.unref(oo),{as:"span",class:"request-method",method:v.operation.httpVerb},null,8,["method"]),i.renderSlot(v.$slots,"header",{},void 0,!0)])]),_:3}),i.createVNode(i.unref(lo),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:i.withCtx(()=>[i.createElementVNode("div",DL,[i.createVNode(i.unref(Nr),{content:o.value,hideCredentials:i.unref(bv)(i.unref(p)),lang:i.unref(l).targetKey,lineNumbers:""},null,8,["content","hideCredentials","lang"])])]),_:1}),y.value||v.$slots.footer?(i.openBlock(),i.createBlock(i.unref(Rc),{key:0,class:"request-card-footer",contrast:""},{default:i.withCtx(()=>{var w,S,x,k;return[y.value?(i.openBlock(),i.createElementBlock("div",VL,[i.createVNode(cw,{class:"request-example-selector",examples:((k=(x=(S=(w=v.operation.information)==null?void 0:w.requestBody)==null?void 0:S.content)==null?void 0:x["application/json"])==null?void 0:k.examples)??[],"onUpdate:modelValue":b[2]||(b[2]=C=>s.value=C)},null,8,["examples"])])):i.createCommentVNode("",!0),i.renderSlot(v.$slots,"footer",{},void 0,!0)]}),_:3})):i.createCommentVNode("",!0)]),_:3}))}}),dw=U(RL,[["__scopeId","data-v-23a139ed"]]),LL={key:0},jL={key:1},FL={key:0,class:"rule"},qL={class:"rule-title"},zL={class:"rule-items"},HL={key:2,class:"empty-state"},UL=i.defineComponent({__name:"ExampleResponse",props:{response:{}},setup(r){const e=["oneOf","anyOf","not"],t=n=>n.reduce((o,s)=>({...o,...s}),{});return(n,o)=>{var s,a,l,c,d,u,h;return(s=n.response)!=null&&s.example?(i.openBlock(),i.createElementBlock("div",LL,[i.createVNode(i.unref(Nr),{content:i.unref(fi)((a=n.response)==null?void 0:a.example),lang:"json"},null,8,["content"])])):(l=n.response)!=null&&l.schema?(i.openBlock(),i.createElementBlock("div",jL,[(c=n.response)!=null&&c.schema.type?(i.openBlock(),i.createBlock(i.unref(Nr),{key:0,content:i.unref(fi)(i.unref(Ue)((d=n.response)==null?void 0:d.schema,{emptyString:"…",mode:"read"})),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(e,f=>{var p,y,g,m,v,b;return i.openBlock(),i.createElementBlock(i.Fragment,{key:f},[(p=n.response)!=null&&p.schema[f]&&(((y=n.response)==null?void 0:y.schema[f].length)>1||f==="not")?(i.openBlock(),i.createElementBlock("div",FL,[i.createElementVNode("div",qL,i.toDisplayString(f),1),i.createElementVNode("ol",zL,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((g=n.response)==null?void 0:g.schema[f],(w,S)=>(i.openBlock(),i.createElementBlock("li",{key:S,class:"rule-item"},[i.createVNode(i.unref(Nr),{content:i.unref(Ue)(w,{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])]))),128))])])):(m=n.response)!=null&&m.schema[f]&&((v=n.response)==null?void 0:v.schema[f].length)===1?(i.openBlock(),i.createBlock(i.unref(Nr),{key:1,content:i.unref(Ue)((b=n.response)==null?void 0:b.schema[f][0],{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0)],64)}),64)),(u=n.response)!=null&&u.schema.allOf?(i.openBlock(),i.createBlock(i.unref(Nr),{key:1,content:t((h=n.response)==null?void 0:h.schema.allOf.map(f=>i.unref(Ue)(f,{emptyString:"…",mode:"read"}))),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",HL," No Body "))}}}),Xg=U(UL,[["__scopeId","data-v-800e8c7d"]]),KL=r=>(i.pushScopeId("data-v-314905de"),r=r(),i.popScopeId(),r),WL={key:1,class:"scalar-card-checkbox"},GL=KL(()=>i.createElementVNode("span",{class:"scalar-card-checkbox-checkmark"},null,-1)),JL={class:"scalar-card-container custom-scroll"},YL={key:1,class:"response-description"},XL=i.defineComponent({__name:"PathResponses",props:{operation:{}},setup(r){const e=r,{copyToClipboard:t}=ws(),n=i.ref(),o=i.computed(()=>{var f,p;return Object.keys(((p=(f=e==null?void 0:e.operation)==null?void 0:f.information)==null?void 0:p.responses)??{}).sort(y=>y==="default"?-1:0)}),s=i.computed(()=>!!c.value.examples),a=i.ref(0),l=i.computed(()=>{var p,y;const f=o.value[a.value];return(y=(p=e.operation.information)==null?void 0:p.responses)==null?void 0:y[f]}),c=i.computed(()=>{var p;const f=v0((p=l.value)==null?void 0:p.content);return(f==null?void 0:f["application/json"])??(f==null?void 0:f["text/plain"])??l.value}),d=i.computed(()=>({...c.value,example:s.value&&n.value?c.value.examples[n.value].value??c.value.examples[n.value]:c.value.example})),u=f=>{a.value=f},h=i.ref(!1);return(f,p)=>o.value.length?(i.openBlock(),i.createBlock(i.unref(ea),{key:0},{default:i.withCtx(()=>{var y;return[i.createVNode(i.unref(iw),{muted:"",x:"as",onChange:u},{actions:i.withCtx(()=>{var g,m;return[(g=c.value)!=null&&g.example?(i.openBlock(),i.createElementBlock("button",{key:0,class:"code-copy",type:"button",onClick:p[0]||(p[0]=()=>{var v;return i.unref(t)((v=c.value)==null?void 0:v.example)})},[i.createVNode(i.unref(Me),{icon:"Clipboard",width:"10px",x:"asd"})])):i.createCommentVNode("",!0),(m=c.value)!=null&&m.schema?(i.openBlock(),i.createElementBlock("label",WL,[i.createTextVNode(" Show Schema "),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":p[1]||(p[1]=v=>h.value=v),class:"scalar-card-checkbox-input",type:"checkbox"},null,512),[[i.vModelCheckbox,h.value]]),GL])):i.createCommentVNode("",!0)]}),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,g=>(i.openBlock(),i.createBlock(i.unref(aw),{key:g},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(g),1)]),_:2},1024))),128))]),_:1}),i.createElementVNode("div",JL,[i.createVNode(i.unref(lo),{muted:""},{default:i.withCtx(()=>{var g;return[(g=c.value)!=null&&g.schema?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[h.value&&d.value?(i.openBlock(),i.createBlock(i.unref(Nr),{key:0,content:d.value,lang:"json"},null,8,["content"])):(i.openBlock(),i.createBlock(Xg,{key:1,response:d.value},null,8,["response"]))],64)):(i.openBlock(),i.createBlock(Xg,{key:1,response:d.value},null,8,["response"]))]}),_:1})]),(y=l.value)!=null&&y.description||s.value?(i.openBlock(),i.createBlock(i.unref(Rc),{key:0,class:"response-card-footer",muted:""},{default:i.withCtx(()=>{var g,m;return[s.value?(i.openBlock(),i.createBlock(cw,{key:0,class:"response-example-selector",examples:(g=c.value)==null?void 0:g.examples,"onUpdate:modelValue":p[2]||(p[2]=v=>n.value=v)},null,8,["examples"])):(m=l.value)!=null&&m.description?(i.openBlock(),i.createElementBlock("div",YL,[i.createVNode(i.unref(wt),{class:"markdown",value:l.value.description},null,8,["value"])])):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0)}}),uw=U(XL,[["__scopeId","data-v-314905de"]]),QL=r=>(i.pushScopeId("data-v-f44e2b65"),r=r(),i.popScopeId(),r),ZL=QL(()=>i.createElementVNode("span",null,"Test Request",-1)),ej=i.defineComponent({__name:"TryRequestButton",props:{operation:{}},setup(r){const e=i.inject(Vc);return(t,n)=>(i.openBlock(),i.createBlock(i.unref(oo),{as:"button",class:"show-api-client-button",method:t.operation.httpVerb,type:"button",onClick:n[0]||(n[0]=i.withModifiers(o=>{var s;return i.unref($l)(t.operation,(s=i.unref(e))==null?void 0:s())},["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(Me),{icon:"PaperAirplane"}),ZL]),_:1},8,["method"]))}}),Ku=U(ej,[["__scopeId","data-v-f44e2b65"]]),tj={class:"examples"},rj=i.defineComponent({__name:"Operation",props:{id:{},operation:{}},setup(r){const e=r,{availableTargets:t}=ks(),n=i.computed(()=>{var s;const o=["x-custom-examples","x-codeSamples","x-code-samples"];for(const a of o)if((s=e.operation.information)!=null&&s[a])return e.operation.information[a];return null});return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Ss),{id:o.id,label:o.operation.name},{default:i.withCtx(()=>[i.createVNode(i.unref(xs),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Xf),null,{default:i.withCtx(()=>[i.createVNode(i.unref(es),null,{default:i.withCtx(()=>{var a,l;return[(a=o.operation.information)!=null&&a.deprecated?(i.openBlock(),i.createBlock(i.unref(Bi),{key:0},{default:i.withCtx(()=>[i.createTextVNode(" Deprecated ")]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass((l=o.operation.information)!=null&&l.deprecated?"deprecated":"")},[i.createVNode(i.unref(bn),{level:3},{default:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:o.id??""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.operation.name),1)]),_:1},8,["id"])]),_:1})],2),i.createVNode(EL,{operation:o.operation},null,8,["operation"])]}),_:1}),i.createVNode(i.unref(es),null,{default:i.withCtx(()=>[i.createElementVNode("div",tj,[n.value?(i.openBlock(),i.createBlock(S3,{key:0,examples:n.value,operation:o.operation},{header:i.withCtx(()=>{var a;return[i.createVNode(Uu,{class:"example-path",deprecated:(a=o.operation.information)==null?void 0:a.deprecated,path:o.operation.path},null,8,["deprecated","path"])]}),footer:i.withCtx(()=>[i.createVNode(Ku,{operation:o.operation},null,8,["operation"])]),_:1},8,["examples","operation"])):i.unref(t).length?(i.openBlock(),i.createBlock(dw,{key:1,operation:o.operation},{header:i.withCtx(()=>{var a;return[i.createVNode(Uu,{class:"example-path",deprecated:(a=o.operation.information)==null?void 0:a.deprecated,path:o.operation.path},null,8,["deprecated","path"])]}),footer:i.withCtx(()=>[i.createVNode(Ku,{operation:o.operation},null,8,["operation"])]),_:1},8,["operation"])):i.createCommentVNode("",!0),i.createVNode(i.unref(uw),{operation:o.operation,style:{"margin-top":"12px"}},null,8,["operation"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),hw=U(rj,[["__scopeId","data-v-c4d55ce0"]]),nj={class:"endpoint-details-card"},oj=i.defineComponent({__name:"EndpointDetailsCard",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Kf(e),{responses:n}=Wf(e.operation);return(o,s)=>{var a;return i.openBlock(),i.createElementBlock("div",nj,[i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(t).path},{title:i.withCtx(()=>[i.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(t).query},{title:i.withCtx(()=>[i.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(t).header},{title:i.withCtx(()=>[i.createTextVNode("Headers")]),_:1},8,["parameters"]),i.createVNode(Zf,{class:"endpoint-details-card-item",requestBody:(a=o.operation.information)==null?void 0:a.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Body")]),_:1},8,["requestBody"]),i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(n)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),sj=U(oj,[["__scopeId","data-v-f94bee14"]]),ij={class:"endpoint-header"},aj={class:"endpoint-details"},lj={class:"endpoint-label"},cj={class:"endpoint-label-path"},dj={class:"endpoint-label-name"},uj={class:"endpoint-content"},hj=i.defineComponent({__name:"OperationAccordion",props:{id:{},operation:{}},setup(r){const{copyToClipboard:e}=ws();return(t,n)=>(i.openBlock(),i.createBlock(i.unref(rw),{id:t.id,class:"reference-endpoint",transparent:""},i.createSlots({title:i.withCtx(()=>[i.createElementVNode("h3",ij,[i.createElementVNode("div",aj,[i.createVNode(i.unref(oo),{class:"endpoint-type",method:t.operation.httpVerb,short:""},null,8,["method"]),i.createVNode(i.unref(wn),{id:t.id??"",class:"endpoint-anchor"},{default:i.withCtx(()=>{var o;return[i.createElementVNode("div",lj,[i.createElementVNode("div",cj,[i.createVNode(Uu,{deprecated:(o=t.operation.information)==null?void 0:o.deprecated,path:t.operation.path},null,8,["deprecated","path"])]),i.createElementVNode("div",dj,i.toDisplayString(t.operation.name),1)])]}),_:1},8,["id"])])])]),actions:i.withCtx(({active:o})=>[o?(i.openBlock(),i.createBlock(Ku,{key:0,operation:t.operation},null,8,["operation"])):(i.openBlock(),i.createBlock(i.unref(Me),{key:1,class:"endpoint-try-hint",icon:"PaperAirplane"})),i.createVNode(i.unref(ji),{class:"endpoint-copy",icon:"Clipboard",label:"Copy endpoint URL",size:"xs",variant:"ghost",onClick:n[0]||(n[0]=i.withModifiers(s=>i.unref(e)(t.operation.path),["stop"]))})]),default:i.withCtx(()=>[i.createElementVNode("div",uj,[i.createVNode(sj,{operation:t.operation},null,8,["operation"]),i.createVNode(i.unref(uw),{operation:t.operation},null,8,["operation"]),i.createVNode(dw,{operation:t.operation},null,8,["operation"])])]),_:2},[t.operation.description?{name:"description",fn:i.withCtx(()=>[i.createVNode(i.unref(wt),{value:t.operation.description,withImages:""},null,8,["value"])]),key:"0"}:void 0]),1032,["id"]))}}),fj=U(hj,[["__scopeId","data-v-f61893df"]]),pj=i.defineComponent({__name:"ShowMoreButton",props:{id:{}},setup(r){const{setCollapsedSidebarItem:e}=tr();return(t,n)=>(i.openBlock(),i.createElementBlock("button",{class:"show-more",type:"button",onClick:n[0]||(n[0]=o=>i.unref(e)(t.id,!0))},[i.createTextVNode(" Show More "),i.createVNode(i.unref(Me),{class:"show-more-icon",icon:"ChevronDown"})]))}}),fw=U(pj,[["__scopeId","data-v-60a9fbab"]]),mj={class:"endpoints"},gj=["onClick"],yj=i.defineComponent({__name:"Endpoints",props:{id:{},tag:{}},emits:["observeAndNavigate"],setup(r,{emit:e}){const t=r,n=e,{getOperationId:o,getTagId:s}=ct(),{setCollapsedSidebarItem:a}=tr(),l=d=>{n("observeAndNavigate",d)};async function c(d){l(o(d,t.tag)),a(s(t.tag),!0)}return(d,u)=>(i.openBlock(),i.createBlock(i.unref(Ss),{id:d.id,label:d.tag.name.toUpperCase()},{default:i.withCtx(()=>[i.createVNode(i.unref(xs),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Xf),null,{default:i.withCtx(()=>[i.createVNode(i.unref(es),null,{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:i.unref(s)(d.tag)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(d.tag["x-displayName"]??d.tag.name),1)]),_:1},8,["id"])]),_:1}),i.createVNode(i.unref(wt),{value:d.tag.description,withImages:""},null,8,["value"])]),_:1}),i.createVNode(i.unref(es),null,{default:i.withCtx(()=>{var h;return[((h=d.tag.operations)==null?void 0:h.length)>0?(i.openBlock(),i.createBlock(i.unref(ea),{key:0,class:"scalar-card-sticky"},{default:i.withCtx(()=>[i.createVNode(i.unref(ta),{muted:""},{default:i.withCtx(()=>[i.createTextVNode("Endpoints")]),_:1}),i.createVNode(i.unref(lo),{class:"custom-scroll",muted:""},{default:i.withCtx(()=>[i.createElementVNode("div",mj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.tag.operations,f=>(i.openBlock(),i.createElementBlock("a",{key:i.unref(o)(f,d.tag),class:"endpoint",onClick:p=>c(f)},[i.createVNode(i.unref(oo),{method:f.httpVerb},null,8,["method"]),i.createElementVNode("span",null,i.toDisplayString(f.path),1)],8,gj))),128))])]),_:1})]),_:1})):i.createCommentVNode("",!0)]}),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),vj=U(yj,[["__scopeId","data-v-b209ef2d"]]),bj=(r,e)=>{Xe.useMutationObserver(r,e,{childList:!0,subtree:!0})},wj=i.defineComponent({__name:"Tag",props:{id:{},tag:{},spec:{}},setup(r){const e=r,t=i.ref(null),{collapsedSidebarItems:n}=tr(),{getTagId:o}=ct(),s=d=>{var u;return((u=e.spec.tags)==null?void 0:u.length)!==1||(d==null?void 0:d.name)!=="default"||(d==null?void 0:d.description)!==""},a=d=>{window.location.href=`#${d}`},l=d=>{bj(t,(u,h)=>{u.forEach(f=>{Array.from(f.addedNodes).some(y=>y instanceof HTMLElement&&y.id===d)&&(a(d),h.disconnect())})})},c=d=>{document.getElementById(d)?a(d):l(d)};return(d,u)=>(i.openBlock(),i.createBlock(i.unref(Zi),{ref_key:"sectionContainerRef",ref:t,class:"tag-section-container"},{default:i.withCtx(()=>{var h;return[s(d.tag)?(i.openBlock(),i.createBlock(vj,{key:0,id:d.id,tag:d.tag,onObserveAndNavigate:c},null,8,["id","tag"])):i.createCommentVNode("",!0),!i.unref(n)[i.unref(o)(d.tag)]&&((h=d.tag.operations)==null?void 0:h.length)>1?(i.openBlock(),i.createBlock(fw,{key:1,id:d.id??""},null,8,["id"])):i.renderSlot(d.$slots,"default",{key:2},void 0,!0)]}),_:3},512))}}),pw=U(wj,[["__scopeId","data-v-7fef7ce7"]]),kj=i.defineComponent({__name:"TagAccordion",props:{tag:{},spec:{}},setup(r){const{getTagId:e}=ct();return(t,n)=>(i.openBlock(),i.createBlock(i.unref(nw),{class:"tag-section"},{title:i.withCtx(()=>[i.createVNode(i.unref(bn),{class:"tag-name",level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:i.unref(e)(t.tag)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.tag.name),1)]),_:1},8,["id"])]),_:1}),i.createVNode(i.unref(wt),{class:"tag-description",value:t.tag.description,withImages:""},null,8,["value"])]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3}))}}),Sj=U(kj,[["__scopeId","data-v-f11e3b56"]]),xj=i.defineComponent({__name:"Loading",props:{layout:{default:"default"},parsedSpec:{}},setup(r){const e=r,t=i.ref(!1),n=i.ref([]),o=i.ref([]),{getModelId:s,getSectionId:a,getTagId:l,hash:c,isIntersectionEnabled:d}=ct(),u=i.ref(e.layout!=="accordion"&&c.value);i.watch(()=>{var f;return(f=e.parsedSpec.tags)==null?void 0:f.length},f=>{var y,g;if(!c.value||typeof f!="number"||!e.parsedSpec.tags)return;const p=a();if(p.startsWith("tag")){let m=0;const v=((y=e.parsedSpec.tags)==null?void 0:y.findIndex(S=>l(S)===p))??0,b=c.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);if((b==null?void 0:b.length)===4){const S=b[2],x="/"+b[3];m=(g=e.parsedSpec.tags[v])==null?void 0:g.operations.findIndex(({httpVerb:k,path:C})=>S===k&&x===C)}const w=e.parsedSpec.tags[v];if(!w)return;w.name!=="default"&&(t.value=p!==c.value&&p.startsWith("tag")),n.value.push({...w,lazyOperations:w.operations.slice(m,m+2)})}else if(c.value.startsWith("model")){const m=Object.keys(Jt(e.parsedSpec)??{}),[,v]=c.value.toLowerCase().split("/"),b=c.value==="models"?0:m.findIndex(w=>w.toLowerCase()===v);if(b===-1)return;o.value=m.slice(b,b+3)}else Ti(c.value),setTimeout(()=>d.value=!0,1e3)},{immediate:!0});const h=Hu.on(({id:f})=>{const p=c.value;!p||f!==p||(h(),setTimeout(()=>{typeof window<"u"&&Ti(p),u.value=!1,setTimeout(()=>d.value=!0,1e3)},300))});return i.onMounted(()=>{c.value||setTimeout(()=>d.value=!0,1e3)}),(f,p)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["references-loading",{"references-loading-hidden-tag":t.value,"references-loading-top-spacer":n.value.length}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,y=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:y.id},[y.operations&&y.operations.length>0?(i.openBlock(),i.createBlock(i.unref(pw),{key:0,spec:f.parsedSpec,tag:y},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.lazyOperations,g=>(i.openBlock(),i.createBlock(i.unref(hw),{key:`${g.httpVerb}-${g.operationId}`,operation:g,tag:y},null,8,["operation","tag"]))),128))]),_:2},1032,["spec","tag"])):i.createCommentVNode("",!0)],64))),128)),o.value.length?(i.openBlock(),i.createBlock(i.unref(Zi),{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,y=>(i.openBlock(),i.createBlock(i.unref(Ss),{key:y,label:y},{default:i.withCtx(()=>{var g;return[(g=i.unref(Jt)(f.parsedSpec))!=null&&g[y]?(i.openBlock(),i.createBlock(i.unref(xs),{key:0},{default:i.withCtx(()=>{var m;return[i.createVNode(i.unref(bn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:i.unref(s)(y)},{default:i.withCtx(()=>{var v;return[i.createTextVNode(i.toDisplayString(((v=i.unref(Jt)(f.parsedSpec))==null?void 0:v[y]).title??y),1)]}),_:2},1032,["id"])]),_:2},1024),i.createVNode(i.unref(qn),{name:y,noncollapsible:"",value:(m=i.unref(Jt)(f.parsedSpec))==null?void 0:m[y]},null,8,["name","value"])]}),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["label"]))),128))]),_:1})):i.createCommentVNode("",!0)],2)),[[i.vShow,u.value]])}}),Cj=r=>(i.pushScopeId("data-v-f19478dd"),r=r(),i.popScopeId(),r),Ej=Cj(()=>i.createElementVNode("div",{id:"models"},null,-1)),$j=i.defineComponent({__name:"Models",props:{schemas:{}},setup(r){const e=r,{collapsedSidebarItems:t}=tr(),{getModelId:n}=ct(),o=i.computed(()=>Object.keys(e.schemas??{}).length<=3||t[n()]),s=i.computed(()=>{const a=Object.keys(e.schemas??{});return o.value?a:a.slice(0,3)});return(a,l)=>a.schemas?(i.openBlock(),i.createBlock(i.unref(Zi),{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(Ll),{id:"models",isLazy:!1},{default:i.withCtx(()=>[Ej]),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(c,d)=>(i.openBlock(),i.createBlock(i.unref(Ll),{id:i.unref(n)(c),key:c,isLazy:""},{default:i.withCtx(()=>[i.createVNode(i.unref(Ss),{id:i.unref(n)(c),label:c},{default:i.withCtx(()=>[a.schemas[c]?(i.openBlock(),i.createBlock(i.unref(xs),{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:i.unref(n)(c)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.schemas[c].title??c),1)]),_:2},1032,["id"])]),_:2},1024),i.createVNode(i.unref(qn),{name:c,noncollapsible:"",value:a.schemas[c]},null,8,["name","value"]),!o.value&&d===s.value.length-1?(i.openBlock(),i.createBlock(fw,{key:0,id:i.unref(n)(),class:"something-special"},null,8,["id"])):i.createCommentVNode("",!0)]),_:2},1024)):i.createCommentVNode("",!0)]),_:2},1032,["id","label"])]),_:2},1032,["id"]))),128))]),_:1})):i.createCommentVNode("",!0)}}),_j=U($j,[["__scopeId","data-v-f19478dd"]]),Nj={key:0,class:"properties"},Aj={key:1},Oj=i.defineComponent({__name:"ModelsAccordion",props:{schemas:{}},setup(r){const e=r,t=i.computed(()=>e.schemas?Object.entries(e.schemas).map(([o,s])=>({name:o,schema:s})):[]),{getModelId:n}=ct();return(o,s)=>e.schemas?(i.openBlock(),i.createBlock(i.unref(nw),{key:0,class:"reference-models"},{title:i.withCtx(()=>[i.createVNode(i.unref(bn),{level:2},{default:i.withCtx(()=>[i.createTextVNode("Models")]),_:1})]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value,({name:a,schema:l})=>(i.openBlock(),i.createBlock(i.unref(rw),{id:i.unref(n)(a),key:a,label:a},{title:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:i.unref(n)(a),class:"reference-models-anchor"},{default:i.withCtx(()=>[i.createVNode(i.unref(lw),{class:"reference-models-label",name:a,value:l},null,8,["name","value"])]),_:2},1032,["id"])]),default:i.withCtx(()=>[l!=null&&l.properties?(i.openBlock(),i.createElementBlock("div",Nj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.entries(l.properties),([c,d])=>(i.openBlock(),i.createBlock(i.unref(Fn),{key:c,name:c,required:l.required&&!!l.required.length&&l.required.includes(c),value:d},null,8,["name","required","value"]))),128))])):(i.openBlock(),i.createElementBlock("div",Aj,[i.createVNode(i.unref(Fn),{value:l},null,8,["value"])]))]),_:2},1032,["id","label"]))),128))]),_:1})):i.createCommentVNode("",!0)}}),Tj=U(Oj,[["__scopeId","data-v-2399f144"]]),Bj=i.defineComponent({__name:"Webhook",props:{webhook:{}},setup(r){const e=r,{responses:t}=Wf(e.webhook);return(n,o)=>{var s;return n.webhook?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(Zf,{requestBody:(s=n.webhook.information)==null?void 0:s.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Payload")]),_:1},8,["requestBody"]),i.createVNode(Kt,{parameters:i.unref(t)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])],64)):i.createCommentVNode("",!0)}}}),Pj=i.defineComponent({__name:"Webhooks",props:{webhooks:{}},setup(r){const e=r,t=i.computed(()=>Object.keys(e.webhooks??{})),{getWebhookId:n}=ct();return(o,s)=>t.value.length?(i.openBlock(),i.createBlock(i.unref(Zi),{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value,a=>{var l;return i.openBlock(),i.createElementBlock(i.Fragment,{key:a},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.keys((l=o.webhooks)==null?void 0:l[a]),c=>(i.openBlock(),i.createBlock(i.unref(Ss),{id:i.unref(n)(a,c),key:c,label:a},{default:i.withCtx(()=>{var d;return[(d=o.webhooks)!=null&&d[a]?(i.openBlock(),i.createBlock(i.unref(xs),{key:0},{default:i.withCtx(()=>{var u,h;return[i.createVNode(i.unref(bn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:i.unref(n)(a,c)},{default:i.withCtx(()=>{var f;return[i.createTextVNode(i.toDisplayString((f=o.webhooks[a][c])==null?void 0:f.name),1)]}),_:2},1032,["id"])]),_:2},1024),(u=o.webhooks[a][c])!=null&&u.description?(i.openBlock(),i.createBlock(i.unref(wt),{key:0,value:(h=o.webhooks[a][c])==null?void 0:h.description,withImages:""},null,8,["value"])):i.createCommentVNode("",!0),i.createVNode(Bj,{webhook:o.webhooks[a][c]},null,8,["webhook"])]}),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","label"]))),128))],64)}),128))]),_:1})):i.createCommentVNode("",!0)}}),Ij=i.createStaticVNode('<div class="section-flare" data-v-055e26bb><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div></div>',1),Mj={class:"narrow-references-container"},Dj=i.defineComponent({__name:"Content",props:{parsedSpec:{},layout:{},baseServerURL:{},proxy:{}},setup(r){const e=r,{getOperationId:t,getTagId:n,hash:o}=ct(),{setServer:s}=no(),{hideModels:a,collapsedSidebarItems:l}=tr(),c=p=>{if(p.url.match(/^(?!(https?|file):\/\/|{).+/)){let y=e.baseServerURL??window.location.origin;y=y.replace(/\/$/,"");const g=p.url.startsWith("/")?p.url:`/${p.url}`;p.url=`${y}${g}`.replace(/\/$/,"")}return p};i.watch(()=>e.parsedSpec,p=>{var g,m;let y=[{url:typeof window<"u"?window.location.origin:"/"}];p.servers&&p.servers.length>0?y=p.servers:e.parsedSpec.host&&(y=[{url:`${((g=e.parsedSpec.schemes)==null?void 0:g[0])??"http"}://${e.parsedSpec.host}${((m=e.parsedSpec)==null?void 0:m.basePath)??""}`}]),(e.baseServerURL||typeof window<"u")&&(y=y.map(c)),s({servers:y})},{deep:!0,immediate:!0});const d=i.computed(()=>e.layout==="accordion"?Sj:pw),u=i.computed(()=>e.layout==="accordion"?fj:hw),h=i.computed(()=>e.layout==="accordion"?"after":"aside"),f=e.layout!=="accordion"&&!o.value.startsWith("model");return(p,y)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[Ij,i.createElementVNode("div",Mj,[i.renderSlot(p.$slots,"start",{},void 0,!0),i.createVNode(i.unref(xj),{layout:p.layout,parsedSpec:p.parsedSpec},null,8,["layout","parsedSpec"]),p.parsedSpec.info.title||p.parsedSpec.info.description?(i.openBlock(),i.createBlock(i.unref(YR),{key:0,info:p.parsedSpec.info,parsedSpec:p.parsedSpec},{[h.value]:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["introduction-card",{"introduction-card-row":p.layout==="accordion"}])},[i.createVNode(i.unref(XV)),i.createVNode(i.unref(EV),{parsedSpec:p.parsedSpec,proxy:p.proxy},null,8,["parsedSpec","proxy"]),i.createVNode(i.unref(pR))],2)]),_:2},1032,["info","parsedSpec"])):i.renderSlot(p.$slots,"empty-state",{key:1},void 0,!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.parsedSpec.tags,g=>(i.openBlock(),i.createBlock(i.unref(Ll),{id:i.unref(n)(g),key:i.unref(n)(g),isLazy:i.unref(f)&&!i.unref(l)[i.unref(n)(g)]},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.value),{id:i.unref(n)(g),spec:p.parsedSpec,tag:g},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.operations,(m,v)=>(i.openBlock(),i.createBlock(i.unref(Ll),{id:i.unref(t)(m,g),key:`${m.httpVerb}-${m.operationId}`,isLazy:v>0},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.value),{id:i.unref(t)(m,g),operation:m,tag:g},null,8,["id","operation","tag"]))]),_:2},1032,["id","isLazy"]))),128))]),_:2},1032,["id","spec","tag"]))]),_:2},1032,["id","isLazy"]))),128)),p.parsedSpec.webhooks?(i.openBlock(),i.createBlock(i.unref(Pj),{key:2,webhooks:p.parsedSpec.webhooks},null,8,["webhooks"])):i.createCommentVNode("",!0),i.unref(Ph)(p.parsedSpec)&&!i.unref(a)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[p.layout==="accordion"?(i.openBlock(),i.createBlock(i.unref(Tj),{key:0,schemas:i.unref(Jt)(p.parsedSpec)},null,8,["schemas"])):(i.openBlock(),i.createBlock(i.unref(_j),{key:1,schemas:i.unref(Jt)(p.parsedSpec)},null,8,["schemas"]))],64)):i.createCommentVNode("",!0),i.renderSlot(p.$slots,"end",{},void 0,!0)])],64))}}),mw=U(Dj,[["__scopeId","data-v-055e26bb"]]),Vj=r=>(i.pushScopeId("data-v-391b4e37"),r=r(),i.popScopeId(),r),Rj={class:"start custom-scroll"},Lj={class:"start-copy"},jj=i.createStaticVNode('<div class="start-logo" data-v-391b4e37><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-391b4e37></path></svg></div><h1 class="start-h1" data-v-391b4e37>Swagger Editor</h1><p class="start-p" data-v-391b4e37> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3),Fj={class:"start-cta"},qj={class:"start-row"},zj=i.createStaticVNode('<div class="start-section start-section-integrations" data-v-391b4e37><div class="start-h2" data-v-391b4e37>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-391b4e37><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-391b4e37></path></svg><span data-v-391b4e37>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-391b4e37><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g data-v-391b4e37><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path></g></svg><span data-v-391b4e37>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-391b4e37><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="currentColor" fill-rule="nonzero" data-v-391b4e37><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-391b4e37></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-391b4e37></polygon></g></svg><span data-v-391b4e37>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-391b4e37><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="none" fill-rule="evenodd" data-v-391b4e37><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-391b4e37></circle><g stroke="currentColor" data-v-391b4e37><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-391b4e37></ellipse></g></g></svg><span data-v-391b4e37>React</span></a></div>',1),Hj={class:"start-section start-section-colors"},Uj=Vj(()=>i.createElementVNode("p",{class:"start-h2"},"THEMING",-1)),Kj=["onClick"],Wj=i.createStaticVNode('<p class="start-h1" data-v-391b4e37>Features</p><ul class="start-ul" data-v-391b4e37><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2),Gj=i.defineComponent({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(r,{emit:e}){const t=e,n=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];async function o(){const s=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml");t("updateContent",await s.text())}return(s,a)=>(i.openBlock(),i.createElementBlock("div",Rj,[i.createElementVNode("div",Lj,[jj,i.createElementVNode("div",Fj,[i.createVNode(i.unref(wu),{fullWidth:"",onClick:o},{default:i.withCtx(()=>[i.createTextVNode(" Show Example ")]),_:1}),i.createVNode(i.unref(wu),{fullWidth:"",variant:"outlined",onClick:a[0]||(a[0]=l=>s.$emit("loadSwaggerFile"))},{default:i.withCtx(()=>[i.createTextVNode(" Upload File ")]),_:1})])]),i.createElementVNode("div",qj,[zj,i.createElementVNode("div",Hj,[Uj,(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,l=>i.createElementVNode("div",{key:l,class:i.normalizeClass(["start-item",{"start-item-active":l===s.theme}]),onClick:c=>s.$emit("changeTheme",{id:l,label:i.unref(mp)[l]})},i.toDisplayString(i.unref(mp)[l]),11,Kj)),64))])]),Wj]))}}),gw=U(Gj,[["__scopeId","data-v-391b4e37"]]),Jj={class:"references-header"},Yj={key:0,class:"references-navigation t-doc__sidebar"},Xj={class:"references-navigation-list"},Qj={class:"references-editor"},Zj={class:"references-editor-textarea"},e4={class:"references-rendered"},t4={key:0,class:"references-footer"},r4=i.defineComponent({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},parsedSpec:{},rawSpec:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(r){const e=r,t=Xe.useMediaQuery("(min-width: 1150px)"),n=i.ref("100dvh"),o=i.ref(null);Xe.useResizeObserver(o,k=>{n.value=k[0].contentRect.height+"px"});const{breadcrumb:s,collapsedSidebarItems:a,isSidebarOpen:l,setCollapsedSidebarItem:c,hideModels:d,setParsedSpec:u}=tr(),{getPathRoutingId:h,getSectionId:f,getTagId:p,hash:y,isIntersectionEnabled:g,pathRouting:m,updateHash:v}=ct();m.value=e.configuration.pathRouting,i.onBeforeMount(()=>v());const b=async k=>{var C;g.value=!1,v(),k?Ti(k):(C=o.value)==null||C.scrollTo(0,0),await wr(100),g.value=!0};i.onMounted(()=>{Hf.on(({specTitle:k})=>{z1(e.rawSpec,k)}),window.onhashchange=()=>b(decodeURIComponent(window.location.hash.replace(/^#/,""))),window.onpopstate=()=>m.value&&b(h(window.location.pathname))});const w=i.computed(()=>t.value||!e.configuration.isEditable),S=Xe.useDebounceFn(k=>{if((k.target.scrollTop??0)<50){const N=e.configuration.pathRouting?e.configuration.pathRouting.basePath:window.location.pathname;window.history.replaceState({},"",N+window.location.search),y.value=""}}),x=i.computed(()=>({breadcrumb:s.value,spec:e.parsedSpec}));return i.watch(()=>e.parsedSpec,u,{deep:!0}),i.onServerPrefetch(()=>{var C,N;const k=i.useSSRContext();if(k&&((C=k.payload).data||(C.data=$d()),e.configuration.pathRouting)){const P=h(k.url);y.value=P,k.payload.data.hash=P;for(const M in a)Object.hasOwn(a,M)&&delete a[M];if(P)c(f(P),!0);else{const M=(N=e.parsedSpec.tags)==null?void 0:N[0];M&&c(p(M),!0)}k.payload.data["useSidebarContent-collapsedSidebarItems"]=a}}),Le.provideUseId(()=>{var P;const k=i.getCurrentInstance(),C="scalar-instance-id";if(!k)return C;let N=k.uid;return typeof window>"u"?(k.attrs||(k.attrs={}),k.attrs[C]=N):(P=k.vnode.el)!=null&&P.getAttribute&&(N=k.vnode.el.getAttribute(C)),`${C}-${N}`}),i.provide(Vc,()=>e.parsedSpec.security),i.provide(zf,()=>e.configuration.hideDownloadButton),d.value=e.configuration.hideModels??!1,D5(e.configuration),(k,C)=>{var N,P;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(r0),{id:(N=k.configuration)==null?void 0:N.theme,withDefaultFonts:(P=k.configuration)==null?void 0:P.withDefaultFonts},null,8,["id","withDefaultFonts"]),i.createVNode(i.unref(o0),null,{default:i.withCtx(({styles:M})=>[i.createVNode(i.unref(uk),null,{default:i.withCtx(({styles:j})=>{var I,X;return[i.createElementVNode("div",{ref_key:"documentEl",ref:o,class:i.normalizeClass(["scalar-api-reference references-layout",[{"references-editable":k.configuration.isEditable,"references-sidebar":k.configuration.showSidebar,"references-sidebar-mobile-open":i.unref(l),"references-classic":k.configuration.layout==="classic"},M,j,k.$attrs.class]]),style:i.normalizeStyle({"--full-height":n.value}),onScrollPassive:C[4]||(C[4]=(...W)=>i.unref(S)&&i.unref(S)(...W))},[i.createElementVNode("div",Jj,[i.renderSlot(k.$slots,"header",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),k.configuration.showSidebar?(i.openBlock(),i.createElementBlock("aside",Yj,[i.createElementVNode("div",Xj,[i.createVNode(i.unref(Gf),{parsedSpec:k.parsedSpec},{"sidebar-start":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-start",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),"sidebar-end":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-end",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),_:3},8,["parsedSpec"])])])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",Qj,[i.createElementVNode("div",Zj,[i.renderSlot(k.$slots,"editor",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)])],512),[[i.vShow,k.configuration.isEditable]]),w.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",e4,[i.createVNode(i.unref(mw),{baseServerURL:k.configuration.baseServerURL,layout:k.configuration.layout==="classic"?"accordion":"default",parsedSpec:k.parsedSpec,proxy:k.configuration.proxy},i.createSlots({start:i.withCtx(()=>[i.renderSlot(k.$slots,"content-start",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),end:i.withCtx(()=>[i.renderSlot(k.$slots,"content-end",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),_:2},[(I=k.configuration)!=null&&I.isEditable?{name:"empty-state",fn:i.withCtx(()=>{var W;return[i.createVNode(gw,{theme:((W=k.configuration)==null?void 0:W.theme)||"default",onChangeTheme:C[0]||(C[0]=te=>k.$emit("changeTheme",te)),onLinkSwaggerFile:C[1]||(C[1]=te=>k.$emit("linkSwaggerFile")),onLoadSwaggerFile:C[2]||(C[2]=te=>k.$emit("loadSwaggerFile")),onUpdateContent:C[3]||(C[3]=te=>k.$emit("updateContent",te))},null,8,["theme"])]}),key:"0"}:void 0]),1032,["baseServerURL","layout","parsedSpec","proxy"])]),k.$slots.footer?(i.openBlock(),i.createElementBlock("div",t4,[i.renderSlot(k.$slots,"footer",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(Q1,{parsedSpec:k.parsedSpec,proxyUrl:(X=k.configuration)==null?void 0:X.proxy},{"sidebar-start":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-start",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),"sidebar-end":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-end",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),_:3},8,["parsedSpec","proxyUrl"])],38)]}),_:2},1024)]),_:3}),i.createVNode(i.unref(UE))],64)}}}),ep=U(r4,[["__scopeId","data-v-92461e11"]]),n4={},o4={class:"references-classic-header-container"},s4={class:"references-classic-header"};function i4(r,e){return i.openBlock(),i.createElementBlock("div",o4,[i.createElementVNode("div",s4,[i.renderSlot(r.$slots,"default",{},void 0,!0),i.renderSlot(r.$slots,"dark-mode-toggle",{},void 0,!0)])])}const a4=U(n4,[["render",i4],["__scopeId","data-v-a860f78f"]]),l4=r=>(i.pushScopeId("data-v-559a0a79"),r=r(),i.popScopeId(),r),c4={class:"darklight-reference"},d4={key:0},u4={key:1},h4=l4(()=>i.createElementVNode("a",{class:"darklight-reference-promo",href:"https://www.scalar.com",target:"_blank"}," Powered by scalar.com ",-1)),f4=i.defineComponent({__name:"DarkModeToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",c4,[i.createElementVNode("button",{class:"darklight",type:"button",onClick:t[0]||(t[0]=n=>e.$emit("toggleDarkMode"))},[i.createVNode(i.unref(Me),{icon:"LightDarkModeToggle"}),e.isDarkMode?(i.openBlock(),i.createElementBlock("span",d4,"Light Mode")):(i.openBlock(),i.createElementBlock("span",u4,"Dark Mode"))]),h4]))}}),yw=U(f4,[["__scopeId","data-v-559a0a79"]]),p4=i.defineComponent({__name:"DarkModeIconToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("button",{class:"darklight",type:"button",onClick:t[0]||(t[0]=n=>e.$emit("toggleDarkMode"))},[i.createVNode(i.unref(Me),{icon:e.isDarkMode?"DarkMode":"LightMode"},null,8,["icon"]),i.createVNode(sw,null,{default:i.withCtx(()=>[i.createTextVNode(" Switch to "+i.toDisplayString(e.isDarkMode?"Light":"Dark")+" Mode ",1)]),_:1})]))}}),vw=U(p4,[["__scopeId","data-v-8f61ca56"]]);function m4(r,e){let t=r;const n=e.required&&e.required.includes(r);return t+=n?" REQUIRED ":" optional ",e.properties[r]&&(t+=e.properties[r].type,e.properties[r].description&&(t+=" "+e.properties[r].description)),t}function g4(r){var n;const e=["Body"],t=(n=r==null?void 0:r.schema)==null?void 0:n.properties;return t&&Object.keys(t).forEach(o=>{if(!r.schema)return;e.push(m4(o,r.schema));const s=t[o];s.type==="object"&&!!s.properties&&s.properties&&Object.keys(s.properties).forEach(l=>{var c,d;e.push(`${l} ${(d=(c=s.properties)==null?void 0:c[l])==null?void 0:d.type}`)})}),e}function y4(r){var e,t,n;try{const o=(n=(t=(e=r==null?void 0:r.information)==null?void 0:e.requestBody)==null?void 0:t.content)==null?void 0:n["application/json"];if(!o)throw new Error("Body not found");return g4(o)}catch{return!1}}const v4=r=>(i.pushScopeId("data-v-3445e6c6"),r=r(),i.popScopeId(),r),b4=v4(()=>i.createElementVNode("div",{class:"ref-search-meta"},[i.createElementVNode("span",null,"↑↓ Navigate"),i.createElementVNode("span",null,"⏎ Select")],-1)),w4=i.defineComponent({__name:"SearchModal",props:{parsedSpec:{},modalState:{}},setup(r){const e=r,t=i.toRef(e,"parsedSpec"),n={heading:"DocsPage",model:"JsonObject",req:"Terminal",tag:"CodeFolder",webhook:"Terminal"},o=Xe.useMagicKeys(),s=i.ref([]),a=i.ref([]),l=i.ref(0),c=i.ref(""),d=i.ref(null),u=new Uw(s.value,{keys:["title","description","body"]}),h=()=>{l.value=0,a.value=u.search(c.value)},f=i.computed(()=>S.value[l.value]),{getHeadingId:p,getWebhookId:y,getModelId:g,getOperationId:m,getTagId:v}=ct();i.watch(()=>e.modalState.open,N=>{N&&(c.value="",l.value=0,a.value=[])});const{setCollapsedSidebarItem:b,hideModels:w}=tr();i.watch(t.value,async()=>{var W,te,me,ke,Se;if(s.value=[],!((te=(W=e.parsedSpec)==null?void 0:W.tags)!=null&&te.length)&&!((me=e.parsedSpec)!=null&&me.webhooks)){u.setCollection([]);return}const N=[],P=await Ei(((ke=e.parsedSpec.info)==null?void 0:ke.description)??"");P.length&&(P.forEach(se=>{N.push({type:"heading",title:`Info > ${se.value}`,description:"",href:`#${p(se)}`,tag:se.slug,body:""})}),s.value=s.value.concat(N)),(Se=e.parsedSpec.tags)==null||Se.forEach(se=>{const q={title:se["x-displayName"]??se.name,href:`#${v(se)}`,description:se.description,type:"tag",tag:se.name,body:""};s.value.push(q),se.operations&&se.operations.forEach(T=>{const{parameterMap:V}=Kf({operation:T}),D=y4(T)||V.value;let E=null;typeof D!="boolean"&&(E=D);const A={type:"req",title:T.name??T.path,href:`#${m(T,se)}`,operationId:T.operationId,description:T.description??"",httpVerb:T.httpVerb,path:T.path,tag:se.name,operation:T};E&&(A.body=E),s.value.push(A)})});const M=e.parsedSpec.webhooks,j=[];M&&Object.keys(M).forEach(se=>{Object.keys(M[se]).forEach(T=>{var V;j.push({type:"webhook",title:`Webhook: ${(V=M[se][T])==null?void 0:V.name}`,href:`#${y(se,T)}`,description:se,httpVerb:T,tag:se,body:""})}),s.value=s.value.concat(j)});const I=w.value?{}:Jt(e.parsedSpec),X=[];I&&(Object.keys(I).forEach(se=>{X.push({type:"model",title:"Model",href:`#${g(se)}`,description:I[se].title??se,tag:se,body:""})}),s.value=s.value.concat(X)),u.setCollection(s.value)},{immediate:!0}),Xe.whenever(o.enter,()=>{e.modalState.open&&window&&(k(f.value),window.location.hash=f.value.item.href,e.modalState.hide())}),Xe.whenever(o.ArrowDown,()=>{var N;e.modalState.open&&window&&(l.value<S.value.length-1?l.value++:l.value=0,(N=document.getElementById(f.value.item.href))==null||N.scrollIntoView({behavior:"smooth",block:"center"}))}),Xe.whenever(o.ArrowUp,()=>{var N;e.modalState.open&&window&&(l.value>0?l.value--:l.value=S.value.length-1,(N=document.getElementById(f.value.item.href))==null||N.scrollIntoView({behavior:"smooth",block:"center"}))});const S=i.computed(()=>c.value.length===0?s.value.map(N=>({item:N})):a.value),x=/#(tag\/[^/]*)/,k=N=>{let P="models";const M=N.item.href.match(x);M!=null&&M.length&&M.length>1&&(P=M[1]),b(P,!0),e.modalState.hide()};function C(N){const P=new URL(window.location.href);return P.hash=N,P.toString()}return(N,P)=>(i.openBlock(),i.createBlock(i.unref(pv),{state:N.modalState,variant:"search"},{default:i.withCtx(()=>[i.createElementVNode("div",{ref_key:"searchModalRef",ref:d,class:"ref-search-container"},[i.createVNode(i.unref(D_),{modelValue:c.value,"onUpdate:modelValue":P[0]||(P[0]=M=>c.value=M),onInput:h},null,8,["modelValue"])],512),i.createVNode(i.unref(R_),{class:"ref-search-results custom-scroll",noResults:!S.value.length},{query:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(c.value),1)]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(S.value,(M,j)=>(i.openBlock(),i.createBlock(i.unref(K_),{id:M.item.href,key:M.refIndex,active:l.value===j,href:C(M.item.href),icon:n[M.item.type],onClick:I=>k(M),onFocus:I=>l.value=j},i.createSlots({default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(M.item.title)+" ",1)]),_:2},[(M.item.httpVerb||M.item.path)&&M.item.path!==M.item.title?{name:"description",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(M.item.path),1)]),key:"0"}:M.item.description?{name:"description",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(M.item.description),1)]),key:"1"}:void 0,M.item.type==="req"?{name:"addon",fn:i.withCtx(()=>[i.createVNode(X1,{method:M.item.httpVerb??"get"},null,8,["method"])]),key:"2"}:void 0]),1032,["id","active","href","icon","onClick","onFocus"]))),128))]),_:1},8,["noResults"]),b4]),_:1},8,["state"]))}}),bw=U(w4,[["__scopeId","data-v-3445e6c6"]]),k4=r=>(i.pushScopeId("data-v-edb0a931"),r=r(),i.popScopeId(),r),S4={class:"sidebar-search-input"},x4=k4(()=>i.createElementVNode("span",{class:"sidebar-search-placeholder"},"Search",-1)),C4={class:"sidebar-search-shortcut"},E4={class:"sidebar-search-key"},$4=i.defineComponent({__name:"SearchButton",props:{spec:{},searchHotKey:{default:"k"}},setup(r){const e=r,t=mv(),n=Xe.useMagicKeys({passive:!1,onEventFired(o){!Qa()&&o.ctrlKey&&o.key===e.searchHotKey&&(o.preventDefault(),o.stopPropagation())}});return Xe.whenever(n[`${Qa()?"meta":"control"}_${e.searchHotKey}`],()=>t.open?t.hide():t.show()),(o,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("button",{class:i.normalizeClass(["sidebar-search",o.$attrs.class]),type:"button",onClick:s[0]||(s[0]=(...a)=>i.unref(t).show&&i.unref(t).show(...a))},[i.createVNode(i.unref(Me),{class:"search-icon",icon:"Search",size:"sm"}),i.createElementVNode("div",S4,[x4,i.createElementVNode("span",C4,[i.createElementVNode("span",E4,i.toDisplayString(i.unref(Qa)()?"⌘":"⌃")+i.toDisplayString(o.searchHotKey),1)])])],2),i.createVNode(bw,{modalState:i.unref(t),parsedSpec:o.spec},null,8,["modalState","parsedSpec"])],64))}}),tp=U($4,[["__scopeId","data-v-edb0a931"]]),_4=i.defineComponent({__name:"ClassicLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(r){const e=r,t=i.computed(()=>({...e.configuration,showSidebar:!1}));return(n,o)=>(i.openBlock(),i.createBlock(ep,{configuration:t.value,parsedSpec:n.parsedSpec,rawSpec:n.rawSpec},{"content-start":i.withCtx(({spec:s})=>[i.createVNode(a4,null,{"dark-mode-toggle":i.withCtx(()=>[i.createVNode(i.unref(vw),{isDarkMode:n.isDark,onToggleDarkMode:o[0]||(o[0]=a=>n.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),default:i.withCtx(()=>[i.createVNode(tp,{class:"t-doc__sidebar",searchHotKey:t.value.searchHotKey,spec:s},null,8,["searchHotKey","spec"])]),_:2},1024)]),"content-end":i.withCtx(()=>[i.renderSlot(n.$slots,"footer")]),_:3},8,["configuration","parsedSpec","rawSpec"]))}}),N4={class:"references-mobile-header t-doc__header"},A4={class:"references-mobile-breadcrumbs"},O4={class:"references-mobile-header-actions"},T4=i.defineComponent({__name:"MobileHeader",props:{open:{type:Boolean}},emits:["update:open"],setup(r){const{breadcrumb:e}=tr();return(t,n)=>(i.openBlock(),i.createElementBlock("div",N4,[i.createVNode(i.unref(ji),{icon:t.open?"Close":"Menu",label:t.open?"Close Menu":"Open Menu",size:"md",onClick:n[0]||(n[0]=o=>t.$emit("update:open",!t.open))},null,8,["icon","label"]),i.createElementVNode("span",A4,i.toDisplayString(i.unref(e)),1),i.createElementVNode("div",O4,[i.renderSlot(t.$slots,"actions",{},void 0,!0)])]))}}),B4=U(T4,[["__scopeId","data-v-0242e3de"]]),P4={class:"scalar-api-references-standalone-search"},I4=i.defineComponent({__name:"ModernLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(r){const e=r,t=Xe.useMediaQuery("(max-width: 1000px)"),{isSidebarOpen:n}=tr();i.watch(t,(s,a)=>{s&&!a&&(n.value=!1)});const{hash:o}=ct();return i.watch(o,(s,a)=>{s&&s!==a&&(n.value=!1)}),(s,a)=>(i.openBlock(),i.createBlock(ep,{class:i.normalizeClass({"scalar-api-references-standalone-mobile":s.configuration.showSidebar}),configuration:s.configuration,parsedSpec:s.parsedSpec,rawSpec:s.rawSpec},{header:i.withCtx(()=>[e.configuration.showSidebar?(i.openBlock(),i.createBlock(B4,{key:0,open:i.unref(n),"onUpdate:open":a[0]||(a[0]=l=>i.isRef(n)?n.value=l:null)},null,8,["open"])):i.createCommentVNode("",!0)]),"sidebar-start":i.withCtx(({spec:l})=>{var c;return[i.createElementVNode("div",P4,[i.createVNode(tp,{searchHotKey:(c=e.configuration)==null?void 0:c.searchHotKey,spec:l},null,8,["searchHotKey","spec"])])]}),"sidebar-end":i.withCtx(()=>[i.createVNode(i.unref(yw),{isDarkMode:s.isDark,onToggleDarkMode:a[1]||(a[1]=l=>s.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),"content-end":i.withCtx(()=>[i.renderSlot(s.$slots,"footer",{},void 0,!0)]),_:3},8,["class","configuration","parsedSpec","rawSpec"]))}}),ww=U(I4,[["__scopeId","data-v-333fecad"]]),M4={modern:ww,classic:_4},kw=i.defineComponent({__name:"ApiReference",props:{configuration:{}},emits:["updateContent"],setup(r){var h,f;const e=r,{toggleDarkMode:t,isDark:n}=I5((h=e.configuration)==null?void 0:h.darkMode);i.watch(()=>{var p;return(p=e.configuration)==null?void 0:p.darkMode},p=>{p!==n.value&&t()});const o=i.computed(()=>{var p,y;if((p=e.configuration)!=null&&p.customCss)return fk((y=e.configuration)==null?void 0:y.customCss)});i.watch(o,()=>console.log(o.value));const s=i.computed(()=>{var p;return{spec:{content:void 0,url:void 0,...(p=e.configuration)==null?void 0:p.spec},proxy:void 0,theme:"default",showSidebar:!0,isEditable:!1,...e.configuration,customCss:o.value}});(f=s.value)!=null&&f.metaData&&(pp.createHead(),pp.useSeoMeta(s.value.metaData));function a(p,y){i.watch(()=>{var g;return(g=s.value)==null?void 0:g[p]},g=>{typeof g<"u"&&y(g)},{immediate:!0})}const{setAuthentication:l}=ns();a("authentication",l);const{setExcludedClients:c}=ks();a("hiddenClients",c);const{parsedSpec:d,rawSpec:u}=W1({proxy:i.toRef(()=>{var p;return((p=e.configuration)==null?void 0:p.proxy)||""}),specConfig:i.toRef(()=>{var p;return((p=e.configuration)==null?void 0:p.spec)||{}})});return(p,y)=>{var g,m;return i.openBlock(),i.createElementBlock(i.Fragment,null,[(g=s.value)!=null&&g.customCss?(i.openBlock(),i.createBlock(i.resolveDynamicComponent("style"),{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.value.customCss),1)]),_:1})):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(M4)[((m=s.value)==null?void 0:m.layout)||"modern"]),{configuration:s.value,isDark:i.unref(n),parsedSpec:i.unref(d),rawSpec:i.unref(u),onToggleDarkMode:y[0]||(y[0]=()=>i.unref(t)()),onUpdateContent:y[1]||(y[1]=v=>p.$emit("updateContent",v))},{footer:i.withCtx(()=>[i.renderSlot(p.$slots,"footer")]),_:3},40,["configuration","isDark","parsedSpec","rawSpec"]))],64)}}});function D4(r,e,t=!0){const n=i.reactive(e),o=i.createApp(kw,{configuration:n});function s(a=r){if(!a){console.warn("Invalid HTML element provided. Cannot mount Scalar References");return}o.mount(a)}return t&&s(),{updateConfig(a,l=!0){l?Object.assign(n,a):nc(n,a)},updateSpec(a){n.spec=a},mount:s,unmount:()=>o.unmount()}}exports.Annotation=so;exports.ApiClientModal=Q1;exports.ApiReferenceLayout=ep;exports.Card=ea;exports.CardContent=lo;exports.CardFooter=Rc;exports.CardHeader=ta;exports.CardTab=aw;exports.CardTabHeader=iw;exports.Content=mw;exports.DarkModeIconToggle=vw;exports.DarkModeToggle=yw;exports.Decoration=Be;exports.DefaultBufferLength=Hy;exports.EditorSelection=Y;exports.EditorView=ue;exports.Et=Nr;exports.Facet=Z;exports.FlowModal=pv;exports.GLOBAL_SECURITY_SYMBOL=Vc;exports.GettingStarted=gw;exports.HIDE_DOWNLOAD_BUTTON_SYMBOL=zf;exports.LRLanguage=wl;exports.LanguageSupport=nC;exports.ModernLayout=ww;exports.NodeProp=fe;exports.NodeSet=gh;exports.NodeType=mt;exports.NodeWeakMap=R2;exports.Parser=Gy;exports.Prec=Kl;exports.RangeSet=be;exports.RangeValue=Wn;exports.SearchButton=tp;exports.SearchModal=bw;exports.SecurityScheme=zv;exports.SecuritySchemeSelector=Hv;exports.Sidebar=Gf;exports.StateEffect=We;exports.StateField=qr;exports.Text=we;exports.Transaction=rt;exports.Tree=He;exports.ViewPlugin=Rt;exports.WidgetType=os;exports.Y=Me;exports._export_sfc=U;exports._sfc_main=r0;exports._sfc_main$1=oo;exports._sfc_main$2=kw;exports.bracketMatching=NC;exports.bracketMatchingHandle=fv;exports.clickGeneratedParameter=jC;exports.codePointAt=Mo;exports.codePointSize=ul;exports.combineConfig=Gl;exports.concatenateUrlAndPath=gv;exports.continuedIndent=pC;exports.countColumn=lh;exports.createEmptyAuthenticationState=b0;exports.createEmptyOpenApiState=k0;exports.createEmptyServerState=E0;exports.createEmptySpecification=Un;exports.createPlaceholderRequest=S0;exports.createScalarReferences=D4;exports.customTheme=MC;exports.deepMerge=Uv;exports.defaultHighlightStyle=kC;exports.defineLanguageFacet=Zy;exports.delimitedIndent=hC;exports.downloadSpecBus=Hf;exports.downloadSpecFile=z1;exports.encodeStringAsBase64=yv;exports.filterHiddenClients=tw;exports.findVariables=vv;exports.flatIndent=fC;exports.foldInside=vC;exports.foldNodeProp=yC;exports.fromCodePoint=hS;exports.getApiClientRequest=Bh;exports.getBase64Token=xh;exports.getHeadingsFromMarkdown=Ei;exports.getIndentUnit=rv;exports.getLowestHeadingLevel=rc;exports.getModels=Jt;exports.getRequestFromAuthentication=Sh;exports.getSecretCredentialsFromAuthentication=bv;exports.getTooltip=C2;exports.getUrlFromServerState=xi;exports.getVariableNames=mN;exports.hasModels=Ph;exports.hasSecuritySchemes=Kv;exports.hasWebhooks=Wv;exports.highlightSpecialChars=p2;exports.indentNodeProp=sv;exports.indentOnInput=gC;exports.indentString=nv;exports.indentUnit=wh;exports.isJsonString=m0;exports.isMacOS=Qa;exports.isRequestMethod=Bd;exports.isValidUrl=Gv;exports.keymap=Ly;exports.kt=wu;exports.lineNumbers=T2;exports.logException=Br;exports.mapFromObject=gN;exports.mergeAllObjects=yN;exports.normalizeMimeType=y0;exports.objectMerge=nc;exports.openClientFor=$l;exports.parse=q1;exports.parseMixed=j2;exports.redirectToProxy=wv;exports.replaceVariables=Ch;exports.requestMethodAbbreviations=_0;exports.requestMethodColors=$0;exports.scrollToId=Ti;exports.showTooltip=qy;exports.sleep=wr;exports.splitMarkdownInSections=H1;exports.styleTags=Yy;exports.sublanguageProp=ev;exports.syntaxHighlighting=cv;exports.syntaxTree=mn;exports.tags=F;exports.useApiClientStore=jl;exports.useAuthenticationStore=ns;exports.useHttpClientStore=ks;exports.useModal=mv;exports.useOpenApiStore=rh;exports.useReactiveSpec=W1;exports.useRequestStore=C0;exports.useServerStore=no;exports.validRequestMethods=oh;exports.variables=DC;
|
|
222
|
+
const { statusCode, body } = await request('${n.url}${a}'${l})`}}function OL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?ra(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${kr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"node",client:"fetch",code:`fetch('${n.url}${a}'${l})`}}function TL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?ra(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${kr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"js",client:"fetch",code:`fetch('${n.url}${a}'${l})`}}function BL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?ra(n.queryString):void 0);s.size&&(o.query={},s.forEach((l,c)=>{o.query[c]=l})),(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(l=>{o.headers[l.name]=l.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(l=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(o).forEach(l=>{o[l]===void 0&&delete o[l]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=JSON.parse(o.body)));const a=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"js",client:"ofetch",code:`ofetch('${n.url}'${a})`}}function PL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?ra(n.queryString):void 0);s.size&&(o.query={},s.forEach((l,c)=>{o.query[c]=l})),(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(l=>{o.headers[l.name]=l.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(l=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(o).forEach(l=>{o[l]===void 0&&delete o[l]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=JSON.parse(o.body)));const a=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"node",client:"ofetch",code:`ofetch('${n.url}'${a})`}}function Yg(){const r=[AL,OL,TL,BL,PL];return{get(e,t,n){const o=this.findPlugin(e,t);if(o)return o(n)},print(e,t,n){var o;return(o=this.get(e,t,n))==null?void 0:o.code},targets(){return r.map(e=>e().target).filter((e,t,n)=>n.indexOf(e)===t)},clients(){return r.map(e=>e().client)},plugins(){return r.map(e=>{const t=e();return{target:t.target,client:t.client}})},findPlugin(e,t){return r.find(n=>{const o=n();return o.target===e&&o.client===t})},hasPlugin(e,t){return!!this.findPlugin(e,t)}}}const IL=i.defineComponent({__name:"ExamplePicker",props:{examples:{}},emits:["update:modelValue"],setup(r,{emit:e}){const t=r,n=e,o=i.ref(Object.keys(t.examples)[0]);function s(l){l&&(o.value=l)}i.watch(()=>t.examples,()=>{s(Object.keys(t.examples)[0])},{immediate:!0}),i.watch(o,()=>{o.value&&n("update:modelValue",o.value)},{immediate:!0});function a(l){if(!l)return"Select an example";const c=t.examples[l];return(c==null?void 0:c.summary)??l}return(l,c)=>(i.openBlock(),i.createBlock(Qf,{modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=d=>o.value=d),class:"example-selector",options:Object.keys(l.examples).map(d=>({label:a(d),value:d}))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a(o.value)),1)]),_:1},8,["modelValue","options"]))}}),cw=U(IL,[["__scopeId","data-v-652a7e14"]]),ML={class:"request-header"},DL={class:"code-snippet"},VL={key:0,class:"request-card-footer-addon"},RL=i.defineComponent({__name:"ExampleRequest",props:{operation:{}},setup(r){const e=r,n=`components-Content-Operation-Example-Request${Wu(e.operation.path+e.operation.httpVerb+e.operation.operationId)}`,o=i.ref(ts[n]??""),s=i.ref(),{copyToClipboard:a}=ws(),{httpClient:l,setHttpClient:c,availableTargets:d,httpTargetTitle:u,httpClientTitle:h}=ks(),{server:f}=no(),{authentication:p}=ns(),y=i.computed(()=>{var v,b,w,S,x,k,C;return((S=(w=(b=(v=e.operation.information)==null?void 0:v.requestBody)==null?void 0:b.content)==null?void 0:w["application/json"])==null?void 0:S.examples)&&Object.keys((C=(k=(x=e.operation.information)==null?void 0:x.requestBody)==null?void 0:k.content)==null?void 0:C["application/json"].examples).length>1}),g=i.inject(Vc),m=async()=>{var b;const v=g0({url:xi(f)},Od(e.operation,{replaceVariables:!0},s.value),Sh(p,((b=e.operation.information)==null?void 0:b.security)??(g==null?void 0:g())));try{return Yg().hasPlugin(l.targetKey.replace("javascript","js"),l.clientKey)?Yg().print(l.targetKey.replace("javascript","js"),l.clientKey,v)??"":await new e0.HTTPSnippet(v).convert(l.targetKey,l.clientKey)}catch(w){return console.error("[ExampleRequest]",w),""}};return i.watch([()=>l,()=>f,()=>p,()=>s],async()=>{o.value=await m()},{deep:!0,immediate:!0}),i.onServerPrefetch(async()=>{const v=i.useSSRContext();await wr(1),v.payload.data[n]=o.value}),i.computed(()=>Bh({serverState:f,authenticationState:p,operation:e.operation,globalSecurity:g==null?void 0:g()})),(v,b)=>(i.openBlock(),i.createBlock(i.unref(ea),{class:"dark-mode"},{default:i.withCtx(()=>[i.createVNode(i.unref(ta),{muted:""},{actions:i.withCtx(()=>[i.createVNode(Qf,{class:"request-client-picker",modelValue:JSON.stringify(i.unref(l)),options:i.unref(d).map(w=>({value:w.key,label:w.title,options:w.clients.map(S=>({value:JSON.stringify({targetKey:w.key,clientKey:S.key}),label:S.title}))})),"onUpdate:modelValue":b[0]||(b[0]=w=>i.unref(c)(JSON.parse(w)))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(u))+" "+i.toDisplayString(i.unref(h)),1)]),_:1},8,["modelValue","options"]),i.createElementVNode("button",{class:"copy-button",type:"button",onClick:b[1]||(b[1]=w=>i.unref(a)(o.value))},[i.createVNode(i.unref(Me),{icon:"Clipboard",width:"10px"})])]),default:i.withCtx(()=>[i.createElementVNode("div",ML,[i.createVNode(i.unref(oo),{as:"span",class:"request-method",method:v.operation.httpVerb},null,8,["method"]),i.renderSlot(v.$slots,"header",{},void 0,!0)])]),_:3}),i.createVNode(i.unref(lo),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:i.withCtx(()=>[i.createElementVNode("div",DL,[i.createVNode(i.unref(Nr),{content:o.value,hideCredentials:i.unref(bv)(i.unref(p)),lang:i.unref(l).targetKey,lineNumbers:""},null,8,["content","hideCredentials","lang"])])]),_:1}),y.value||v.$slots.footer?(i.openBlock(),i.createBlock(i.unref(Rc),{key:0,class:"request-card-footer",contrast:""},{default:i.withCtx(()=>{var w,S,x,k;return[y.value?(i.openBlock(),i.createElementBlock("div",VL,[i.createVNode(cw,{class:"request-example-selector",examples:((k=(x=(S=(w=v.operation.information)==null?void 0:w.requestBody)==null?void 0:S.content)==null?void 0:x["application/json"])==null?void 0:k.examples)??[],"onUpdate:modelValue":b[2]||(b[2]=C=>s.value=C)},null,8,["examples"])])):i.createCommentVNode("",!0),i.renderSlot(v.$slots,"footer",{},void 0,!0)]}),_:3})):i.createCommentVNode("",!0)]),_:3}))}}),dw=U(RL,[["__scopeId","data-v-23a139ed"]]),LL={key:0},jL={key:1},FL={key:0,class:"rule"},qL={class:"rule-title"},zL={class:"rule-items"},HL={key:2,class:"empty-state"},UL=i.defineComponent({__name:"ExampleResponse",props:{response:{}},setup(r){const e=["oneOf","anyOf","not"],t=n=>n.reduce((o,s)=>({...o,...s}),{});return(n,o)=>{var s,a,l,c,d,u,h;return(s=n.response)!=null&&s.example?(i.openBlock(),i.createElementBlock("div",LL,[i.createVNode(i.unref(Nr),{content:i.unref(fi)((a=n.response)==null?void 0:a.example),lang:"json"},null,8,["content"])])):(l=n.response)!=null&&l.schema?(i.openBlock(),i.createElementBlock("div",jL,[(c=n.response)!=null&&c.schema.type?(i.openBlock(),i.createBlock(i.unref(Nr),{key:0,content:i.unref(fi)(i.unref(Ue)((d=n.response)==null?void 0:d.schema,{emptyString:"…",mode:"read"})),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(e,f=>{var p,y,g,m,v,b;return i.openBlock(),i.createElementBlock(i.Fragment,{key:f},[(p=n.response)!=null&&p.schema[f]&&(((y=n.response)==null?void 0:y.schema[f].length)>1||f==="not")?(i.openBlock(),i.createElementBlock("div",FL,[i.createElementVNode("div",qL,i.toDisplayString(f),1),i.createElementVNode("ol",zL,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((g=n.response)==null?void 0:g.schema[f],(w,S)=>(i.openBlock(),i.createElementBlock("li",{key:S,class:"rule-item"},[i.createVNode(i.unref(Nr),{content:i.unref(Ue)(w,{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])]))),128))])])):(m=n.response)!=null&&m.schema[f]&&((v=n.response)==null?void 0:v.schema[f].length)===1?(i.openBlock(),i.createBlock(i.unref(Nr),{key:1,content:i.unref(Ue)((b=n.response)==null?void 0:b.schema[f][0],{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0)],64)}),64)),(u=n.response)!=null&&u.schema.allOf?(i.openBlock(),i.createBlock(i.unref(Nr),{key:1,content:t((h=n.response)==null?void 0:h.schema.allOf.map(f=>i.unref(Ue)(f,{emptyString:"…",mode:"read"}))),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",HL," No Body "))}}}),Xg=U(UL,[["__scopeId","data-v-800e8c7d"]]),KL=r=>(i.pushScopeId("data-v-314905de"),r=r(),i.popScopeId(),r),WL={key:1,class:"scalar-card-checkbox"},GL=KL(()=>i.createElementVNode("span",{class:"scalar-card-checkbox-checkmark"},null,-1)),JL={class:"scalar-card-container custom-scroll"},YL={key:1,class:"response-description"},XL=i.defineComponent({__name:"PathResponses",props:{operation:{}},setup(r){const e=r,{copyToClipboard:t}=ws(),n=i.ref(),o=i.computed(()=>{var f,p;return Object.keys(((p=(f=e==null?void 0:e.operation)==null?void 0:f.information)==null?void 0:p.responses)??{}).sort(y=>y==="default"?-1:0)}),s=i.computed(()=>!!c.value.examples),a=i.ref(0),l=i.computed(()=>{var p,y;const f=o.value[a.value];return(y=(p=e.operation.information)==null?void 0:p.responses)==null?void 0:y[f]}),c=i.computed(()=>{var p;const f=v0((p=l.value)==null?void 0:p.content);return(f==null?void 0:f["application/json"])??(f==null?void 0:f["text/plain"])??l.value}),d=i.computed(()=>({...c.value,example:s.value&&n.value?c.value.examples[n.value].value??c.value.examples[n.value]:c.value.example})),u=f=>{a.value=f},h=i.ref(!1);return(f,p)=>o.value.length?(i.openBlock(),i.createBlock(i.unref(ea),{key:0},{default:i.withCtx(()=>{var y;return[i.createVNode(i.unref(iw),{muted:"",x:"as",onChange:u},{actions:i.withCtx(()=>{var g,m;return[(g=c.value)!=null&&g.example?(i.openBlock(),i.createElementBlock("button",{key:0,class:"code-copy",type:"button",onClick:p[0]||(p[0]=()=>{var v;return i.unref(t)((v=c.value)==null?void 0:v.example)})},[i.createVNode(i.unref(Me),{icon:"Clipboard",width:"10px",x:"asd"})])):i.createCommentVNode("",!0),(m=c.value)!=null&&m.schema?(i.openBlock(),i.createElementBlock("label",WL,[i.createTextVNode(" Show Schema "),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":p[1]||(p[1]=v=>h.value=v),class:"scalar-card-checkbox-input",type:"checkbox"},null,512),[[i.vModelCheckbox,h.value]]),GL])):i.createCommentVNode("",!0)]}),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,g=>(i.openBlock(),i.createBlock(i.unref(aw),{key:g},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(g),1)]),_:2},1024))),128))]),_:1}),i.createElementVNode("div",JL,[i.createVNode(i.unref(lo),{muted:""},{default:i.withCtx(()=>{var g;return[(g=c.value)!=null&&g.schema?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[h.value&&d.value?(i.openBlock(),i.createBlock(i.unref(Nr),{key:0,content:d.value,lang:"json"},null,8,["content"])):(i.openBlock(),i.createBlock(Xg,{key:1,response:d.value},null,8,["response"]))],64)):(i.openBlock(),i.createBlock(Xg,{key:1,response:d.value},null,8,["response"]))]}),_:1})]),(y=l.value)!=null&&y.description||s.value?(i.openBlock(),i.createBlock(i.unref(Rc),{key:0,class:"response-card-footer",muted:""},{default:i.withCtx(()=>{var g,m;return[s.value?(i.openBlock(),i.createBlock(cw,{key:0,class:"response-example-selector",examples:(g=c.value)==null?void 0:g.examples,"onUpdate:modelValue":p[2]||(p[2]=v=>n.value=v)},null,8,["examples"])):(m=l.value)!=null&&m.description?(i.openBlock(),i.createElementBlock("div",YL,[i.createVNode(i.unref(wt),{class:"markdown",value:l.value.description},null,8,["value"])])):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0)}}),uw=U(XL,[["__scopeId","data-v-314905de"]]),QL=r=>(i.pushScopeId("data-v-f44e2b65"),r=r(),i.popScopeId(),r),ZL=QL(()=>i.createElementVNode("span",null,"Test Request",-1)),ej=i.defineComponent({__name:"TryRequestButton",props:{operation:{}},setup(r){const e=i.inject(Vc);return(t,n)=>(i.openBlock(),i.createBlock(i.unref(oo),{as:"button",class:"show-api-client-button",method:t.operation.httpVerb,type:"button",onClick:n[0]||(n[0]=i.withModifiers(o=>{var s;return i.unref($l)(t.operation,(s=i.unref(e))==null?void 0:s())},["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(Me),{icon:"PaperAirplane"}),ZL]),_:1},8,["method"]))}}),Ku=U(ej,[["__scopeId","data-v-f44e2b65"]]),tj={class:"examples"},rj=i.defineComponent({__name:"Operation",props:{id:{},operation:{}},setup(r){const e=r,{availableTargets:t}=ks(),n=i.computed(()=>{var s;const o=["x-custom-examples","x-codeSamples","x-code-samples"];for(const a of o)if((s=e.operation.information)!=null&&s[a])return e.operation.information[a];return null});return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Ss),{id:o.id,label:o.operation.name},{default:i.withCtx(()=>[i.createVNode(i.unref(xs),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Xf),null,{default:i.withCtx(()=>[i.createVNode(i.unref(es),null,{default:i.withCtx(()=>{var a,l;return[(a=o.operation.information)!=null&&a.deprecated?(i.openBlock(),i.createBlock(i.unref(Bi),{key:0},{default:i.withCtx(()=>[i.createTextVNode(" Deprecated ")]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass((l=o.operation.information)!=null&&l.deprecated?"deprecated":"")},[i.createVNode(i.unref(bn),{level:3},{default:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:o.id??""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.operation.name),1)]),_:1},8,["id"])]),_:1})],2),i.createVNode(EL,{operation:o.operation},null,8,["operation"])]}),_:1}),i.createVNode(i.unref(es),null,{default:i.withCtx(()=>[i.createElementVNode("div",tj,[n.value?(i.openBlock(),i.createBlock(S3,{key:0,examples:n.value,operation:o.operation},{header:i.withCtx(()=>{var a;return[i.createVNode(Uu,{class:"example-path",deprecated:(a=o.operation.information)==null?void 0:a.deprecated,path:o.operation.path},null,8,["deprecated","path"])]}),footer:i.withCtx(()=>[i.createVNode(Ku,{operation:o.operation},null,8,["operation"])]),_:1},8,["examples","operation"])):i.unref(t).length?(i.openBlock(),i.createBlock(dw,{key:1,operation:o.operation},{header:i.withCtx(()=>{var a;return[i.createVNode(Uu,{class:"example-path",deprecated:(a=o.operation.information)==null?void 0:a.deprecated,path:o.operation.path},null,8,["deprecated","path"])]}),footer:i.withCtx(()=>[i.createVNode(Ku,{operation:o.operation},null,8,["operation"])]),_:1},8,["operation"])):i.createCommentVNode("",!0),i.createVNode(i.unref(uw),{operation:o.operation,style:{"margin-top":"12px"}},null,8,["operation"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),hw=U(rj,[["__scopeId","data-v-c4d55ce0"]]),nj={class:"endpoint-details-card"},oj=i.defineComponent({__name:"EndpointDetailsCard",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Kf(e),{responses:n}=Wf(e.operation);return(o,s)=>{var a;return i.openBlock(),i.createElementBlock("div",nj,[i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(t).path},{title:i.withCtx(()=>[i.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(t).query},{title:i.withCtx(()=>[i.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(t).header},{title:i.withCtx(()=>[i.createTextVNode("Headers")]),_:1},8,["parameters"]),i.createVNode(Zf,{class:"endpoint-details-card-item",requestBody:(a=o.operation.information)==null?void 0:a.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Body")]),_:1},8,["requestBody"]),i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(n)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),sj=U(oj,[["__scopeId","data-v-f94bee14"]]),ij={class:"endpoint-header"},aj={class:"endpoint-details"},lj={class:"endpoint-label"},cj={class:"endpoint-label-path"},dj={class:"endpoint-label-name"},uj={class:"endpoint-content"},hj=i.defineComponent({__name:"OperationAccordion",props:{id:{},operation:{}},setup(r){const{copyToClipboard:e}=ws();return(t,n)=>(i.openBlock(),i.createBlock(i.unref(rw),{id:t.id,class:"reference-endpoint",transparent:""},i.createSlots({title:i.withCtx(()=>[i.createElementVNode("h3",ij,[i.createElementVNode("div",aj,[i.createVNode(i.unref(oo),{class:"endpoint-type",method:t.operation.httpVerb,short:""},null,8,["method"]),i.createVNode(i.unref(wn),{id:t.id??"",class:"endpoint-anchor"},{default:i.withCtx(()=>{var o;return[i.createElementVNode("div",lj,[i.createElementVNode("div",cj,[i.createVNode(Uu,{deprecated:(o=t.operation.information)==null?void 0:o.deprecated,path:t.operation.path},null,8,["deprecated","path"])]),i.createElementVNode("div",dj,i.toDisplayString(t.operation.name),1)])]}),_:1},8,["id"])])])]),actions:i.withCtx(({active:o})=>[o?(i.openBlock(),i.createBlock(Ku,{key:0,operation:t.operation},null,8,["operation"])):(i.openBlock(),i.createBlock(i.unref(Me),{key:1,class:"endpoint-try-hint",icon:"PaperAirplane"})),i.createVNode(i.unref(ji),{class:"endpoint-copy",icon:"Clipboard",label:"Copy endpoint URL",size:"xs",variant:"ghost",onClick:n[0]||(n[0]=i.withModifiers(s=>i.unref(e)(t.operation.path),["stop"]))})]),default:i.withCtx(()=>[i.createElementVNode("div",uj,[i.createVNode(sj,{operation:t.operation},null,8,["operation"]),i.createVNode(i.unref(uw),{operation:t.operation},null,8,["operation"]),i.createVNode(dw,{operation:t.operation},null,8,["operation"])])]),_:2},[t.operation.description?{name:"description",fn:i.withCtx(()=>[i.createVNode(i.unref(wt),{value:t.operation.description,withImages:""},null,8,["value"])]),key:"0"}:void 0]),1032,["id"]))}}),fj=U(hj,[["__scopeId","data-v-f61893df"]]),pj=i.defineComponent({__name:"ShowMoreButton",props:{id:{}},setup(r){const{setCollapsedSidebarItem:e}=tr();return(t,n)=>(i.openBlock(),i.createElementBlock("button",{class:"show-more",type:"button",onClick:n[0]||(n[0]=o=>i.unref(e)(t.id,!0))},[i.createTextVNode(" Show More "),i.createVNode(i.unref(Me),{class:"show-more-icon",icon:"ChevronDown"})]))}}),fw=U(pj,[["__scopeId","data-v-60a9fbab"]]),mj={class:"endpoints"},gj=["onClick"],yj=i.defineComponent({__name:"Endpoints",props:{id:{},tag:{}},emits:["observeAndNavigate"],setup(r,{emit:e}){const t=r,n=e,{getOperationId:o,getTagId:s}=ct(),{setCollapsedSidebarItem:a}=tr(),l=d=>{n("observeAndNavigate",d)};async function c(d){l(o(d,t.tag)),a(s(t.tag),!0)}return(d,u)=>(i.openBlock(),i.createBlock(i.unref(Ss),{id:d.id,label:d.tag.name.toUpperCase()},{default:i.withCtx(()=>[i.createVNode(i.unref(xs),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Xf),null,{default:i.withCtx(()=>[i.createVNode(i.unref(es),null,{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:i.unref(s)(d.tag)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(d.tag["x-displayName"]??d.tag.name),1)]),_:1},8,["id"])]),_:1}),i.createVNode(i.unref(wt),{value:d.tag.description,withImages:""},null,8,["value"])]),_:1}),i.createVNode(i.unref(es),null,{default:i.withCtx(()=>{var h;return[((h=d.tag.operations)==null?void 0:h.length)>0?(i.openBlock(),i.createBlock(i.unref(ea),{key:0,class:"scalar-card-sticky"},{default:i.withCtx(()=>[i.createVNode(i.unref(ta),{muted:""},{default:i.withCtx(()=>[i.createTextVNode("Endpoints")]),_:1}),i.createVNode(i.unref(lo),{class:"custom-scroll",muted:""},{default:i.withCtx(()=>[i.createElementVNode("div",mj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.tag.operations,f=>(i.openBlock(),i.createElementBlock("a",{key:i.unref(o)(f,d.tag),class:"endpoint",onClick:p=>c(f)},[i.createVNode(i.unref(oo),{method:f.httpVerb},null,8,["method"]),i.createElementVNode("span",null,i.toDisplayString(f.path),1)],8,gj))),128))])]),_:1})]),_:1})):i.createCommentVNode("",!0)]}),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),vj=U(yj,[["__scopeId","data-v-b209ef2d"]]),bj=(r,e)=>{Xe.useMutationObserver(r,e,{childList:!0,subtree:!0})},wj=i.defineComponent({__name:"Tag",props:{id:{},tag:{},spec:{}},setup(r){const e=r,t=i.ref(null),{collapsedSidebarItems:n}=tr(),{getTagId:o}=ct(),s=d=>{var u;return((u=e.spec.tags)==null?void 0:u.length)!==1||(d==null?void 0:d.name)!=="default"||(d==null?void 0:d.description)!==""},a=d=>{window.location.href=`#${d}`},l=d=>{bj(t,(u,h)=>{u.forEach(f=>{Array.from(f.addedNodes).some(y=>y instanceof HTMLElement&&y.id===d)&&(a(d),h.disconnect())})})},c=d=>{document.getElementById(d)?a(d):l(d)};return(d,u)=>(i.openBlock(),i.createBlock(i.unref(Zi),{ref_key:"sectionContainerRef",ref:t,class:"tag-section-container"},{default:i.withCtx(()=>{var h;return[s(d.tag)?(i.openBlock(),i.createBlock(vj,{key:0,id:d.id,tag:d.tag,onObserveAndNavigate:c},null,8,["id","tag"])):i.createCommentVNode("",!0),!i.unref(n)[i.unref(o)(d.tag)]&&((h=d.tag.operations)==null?void 0:h.length)>1?(i.openBlock(),i.createBlock(fw,{key:1,id:d.id??""},null,8,["id"])):i.renderSlot(d.$slots,"default",{key:2},void 0,!0)]}),_:3},512))}}),pw=U(wj,[["__scopeId","data-v-7fef7ce7"]]),kj=i.defineComponent({__name:"TagAccordion",props:{tag:{},spec:{}},setup(r){const{getTagId:e}=ct();return(t,n)=>(i.openBlock(),i.createBlock(i.unref(nw),{class:"tag-section"},{title:i.withCtx(()=>[i.createVNode(i.unref(bn),{class:"tag-name",level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:i.unref(e)(t.tag)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.tag.name),1)]),_:1},8,["id"])]),_:1}),i.createVNode(i.unref(wt),{class:"tag-description",value:t.tag.description,withImages:""},null,8,["value"])]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3}))}}),Sj=U(kj,[["__scopeId","data-v-f11e3b56"]]),xj=i.defineComponent({__name:"Loading",props:{layout:{default:"default"},parsedSpec:{}},setup(r){const e=r,t=i.ref(!1),n=i.ref([]),o=i.ref([]),{getModelId:s,getSectionId:a,getTagId:l,hash:c,isIntersectionEnabled:d}=ct(),u=i.ref(e.layout!=="accordion"&&c.value);i.watch(()=>{var f;return(f=e.parsedSpec.tags)==null?void 0:f.length},f=>{var y,g;if(!c.value||typeof f!="number"||!e.parsedSpec.tags)return;const p=a();if(p.startsWith("tag")){let m=0;const v=((y=e.parsedSpec.tags)==null?void 0:y.findIndex(S=>l(S)===p))??0,b=c.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);if((b==null?void 0:b.length)===4){const S=b[2],x="/"+b[3];m=(g=e.parsedSpec.tags[v])==null?void 0:g.operations.findIndex(({httpVerb:k,path:C})=>S===k&&x===C)}const w=e.parsedSpec.tags[v];if(!w)return;w.name!=="default"&&(t.value=p!==c.value&&p.startsWith("tag")),n.value.push({...w,lazyOperations:w.operations.slice(m,m+2)})}else if(c.value.startsWith("model")){const m=Object.keys(Jt(e.parsedSpec)??{}),[,v]=c.value.toLowerCase().split("/"),b=c.value==="models"?0:m.findIndex(w=>w.toLowerCase()===v);if(b===-1)return;o.value=m.slice(b,b+3)}else Ti(c.value),setTimeout(()=>d.value=!0,1e3)},{immediate:!0});const h=Hu.on(({id:f})=>{const p=c.value;!p||f!==p||(h(),setTimeout(()=>{typeof window<"u"&&Ti(p),u.value=!1,setTimeout(()=>d.value=!0,1e3)},300))});return i.onMounted(()=>{c.value||setTimeout(()=>d.value=!0,1e3)}),(f,p)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["references-loading",{"references-loading-hidden-tag":t.value,"references-loading-top-spacer":n.value.length}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,y=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:y.id},[y.operations&&y.operations.length>0?(i.openBlock(),i.createBlock(i.unref(pw),{key:0,spec:f.parsedSpec,tag:y},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.lazyOperations,g=>(i.openBlock(),i.createBlock(i.unref(hw),{key:`${g.httpVerb}-${g.operationId}`,operation:g,tag:y},null,8,["operation","tag"]))),128))]),_:2},1032,["spec","tag"])):i.createCommentVNode("",!0)],64))),128)),o.value.length?(i.openBlock(),i.createBlock(i.unref(Zi),{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,y=>(i.openBlock(),i.createBlock(i.unref(Ss),{key:y,label:y},{default:i.withCtx(()=>{var g;return[(g=i.unref(Jt)(f.parsedSpec))!=null&&g[y]?(i.openBlock(),i.createBlock(i.unref(xs),{key:0},{default:i.withCtx(()=>{var m;return[i.createVNode(i.unref(bn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:i.unref(s)(y)},{default:i.withCtx(()=>{var v;return[i.createTextVNode(i.toDisplayString(((v=i.unref(Jt)(f.parsedSpec))==null?void 0:v[y]).title??y),1)]}),_:2},1032,["id"])]),_:2},1024),i.createVNode(i.unref(qn),{name:y,noncollapsible:"",value:(m=i.unref(Jt)(f.parsedSpec))==null?void 0:m[y]},null,8,["name","value"])]}),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["label"]))),128))]),_:1})):i.createCommentVNode("",!0)],2)),[[i.vShow,u.value]])}}),Cj=r=>(i.pushScopeId("data-v-f19478dd"),r=r(),i.popScopeId(),r),Ej=Cj(()=>i.createElementVNode("div",{id:"models"},null,-1)),$j=i.defineComponent({__name:"Models",props:{schemas:{}},setup(r){const e=r,{collapsedSidebarItems:t}=tr(),{getModelId:n}=ct(),o=i.computed(()=>Object.keys(e.schemas??{}).length<=3||t[n()]),s=i.computed(()=>{const a=Object.keys(e.schemas??{});return o.value?a:a.slice(0,3)});return(a,l)=>a.schemas?(i.openBlock(),i.createBlock(i.unref(Zi),{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(Ll),{id:"models",isLazy:!1},{default:i.withCtx(()=>[Ej]),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(c,d)=>(i.openBlock(),i.createBlock(i.unref(Ll),{id:i.unref(n)(c),key:c,isLazy:""},{default:i.withCtx(()=>[i.createVNode(i.unref(Ss),{id:i.unref(n)(c),label:c},{default:i.withCtx(()=>[a.schemas[c]?(i.openBlock(),i.createBlock(i.unref(xs),{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:i.unref(n)(c)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.schemas[c].title??c),1)]),_:2},1032,["id"])]),_:2},1024),i.createVNode(i.unref(qn),{name:c,noncollapsible:"",value:a.schemas[c]},null,8,["name","value"]),!o.value&&d===s.value.length-1?(i.openBlock(),i.createBlock(fw,{key:0,id:i.unref(n)(),class:"something-special"},null,8,["id"])):i.createCommentVNode("",!0)]),_:2},1024)):i.createCommentVNode("",!0)]),_:2},1032,["id","label"])]),_:2},1032,["id"]))),128))]),_:1})):i.createCommentVNode("",!0)}}),_j=U($j,[["__scopeId","data-v-f19478dd"]]),Nj={key:0,class:"properties"},Aj={key:1},Oj=i.defineComponent({__name:"ModelsAccordion",props:{schemas:{}},setup(r){const e=r,t=i.computed(()=>e.schemas?Object.entries(e.schemas).map(([o,s])=>({name:o,schema:s})):[]),{getModelId:n}=ct();return(o,s)=>e.schemas?(i.openBlock(),i.createBlock(i.unref(nw),{key:0,class:"reference-models"},{title:i.withCtx(()=>[i.createVNode(i.unref(bn),{level:2},{default:i.withCtx(()=>[i.createTextVNode("Models")]),_:1})]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value,({name:a,schema:l})=>(i.openBlock(),i.createBlock(i.unref(rw),{id:i.unref(n)(a),key:a,label:a},{title:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:i.unref(n)(a),class:"reference-models-anchor"},{default:i.withCtx(()=>[i.createVNode(i.unref(lw),{class:"reference-models-label",name:a,value:l},null,8,["name","value"])]),_:2},1032,["id"])]),default:i.withCtx(()=>[l!=null&&l.properties?(i.openBlock(),i.createElementBlock("div",Nj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.entries(l.properties),([c,d])=>(i.openBlock(),i.createBlock(i.unref(Fn),{key:c,name:c,required:l.required&&!!l.required.length&&l.required.includes(c),value:d},null,8,["name","required","value"]))),128))])):(i.openBlock(),i.createElementBlock("div",Aj,[i.createVNode(i.unref(Fn),{value:l},null,8,["value"])]))]),_:2},1032,["id","label"]))),128))]),_:1})):i.createCommentVNode("",!0)}}),Tj=U(Oj,[["__scopeId","data-v-2399f144"]]),Bj=i.defineComponent({__name:"Webhook",props:{webhook:{}},setup(r){const e=r,{responses:t}=Wf(e.webhook);return(n,o)=>{var s;return n.webhook?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(Zf,{requestBody:(s=n.webhook.information)==null?void 0:s.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Payload")]),_:1},8,["requestBody"]),i.createVNode(Kt,{parameters:i.unref(t)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])],64)):i.createCommentVNode("",!0)}}}),Pj=i.defineComponent({__name:"Webhooks",props:{webhooks:{}},setup(r){const e=r,t=i.computed(()=>Object.keys(e.webhooks??{})),{getWebhookId:n}=ct();return(o,s)=>t.value.length?(i.openBlock(),i.createBlock(i.unref(Zi),{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value,a=>{var l;return i.openBlock(),i.createElementBlock(i.Fragment,{key:a},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.keys((l=o.webhooks)==null?void 0:l[a]),c=>(i.openBlock(),i.createBlock(i.unref(Ss),{id:i.unref(n)(a,c),key:c,label:a},{default:i.withCtx(()=>{var d;return[(d=o.webhooks)!=null&&d[a]?(i.openBlock(),i.createBlock(i.unref(xs),{key:0},{default:i.withCtx(()=>{var u,h;return[i.createVNode(i.unref(bn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(wn),{id:i.unref(n)(a,c)},{default:i.withCtx(()=>{var f;return[i.createTextVNode(i.toDisplayString((f=o.webhooks[a][c])==null?void 0:f.name),1)]}),_:2},1032,["id"])]),_:2},1024),(u=o.webhooks[a][c])!=null&&u.description?(i.openBlock(),i.createBlock(i.unref(wt),{key:0,value:(h=o.webhooks[a][c])==null?void 0:h.description,withImages:""},null,8,["value"])):i.createCommentVNode("",!0),i.createVNode(Bj,{webhook:o.webhooks[a][c]},null,8,["webhook"])]}),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","label"]))),128))],64)}),128))]),_:1})):i.createCommentVNode("",!0)}}),Ij=i.createStaticVNode('<div class="section-flare" data-v-055e26bb><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div><div class="section-flare-item" data-v-055e26bb></div></div>',1),Mj={class:"narrow-references-container"},Dj=i.defineComponent({__name:"Content",props:{parsedSpec:{},layout:{},baseServerURL:{},proxy:{}},setup(r){const e=r,{getOperationId:t,getTagId:n,hash:o}=ct(),{setServer:s}=no(),{hideModels:a,collapsedSidebarItems:l}=tr(),c=p=>{if(p.url.match(/^(?!(https?|file):\/\/|{).+/)){let y=e.baseServerURL??window.location.origin;y=y.replace(/\/$/,"");const g=p.url.startsWith("/")?p.url:`/${p.url}`;p.url=`${y}${g}`.replace(/\/$/,"")}return p};i.watch(()=>e.parsedSpec,p=>{var g,m;let y=[{url:typeof window<"u"?window.location.origin:"/"}];p.servers&&p.servers.length>0?y=p.servers:e.parsedSpec.host&&(y=[{url:`${((g=e.parsedSpec.schemes)==null?void 0:g[0])??"http"}://${e.parsedSpec.host}${((m=e.parsedSpec)==null?void 0:m.basePath)??""}`}]),(e.baseServerURL||typeof window<"u")&&(y=y.map(c)),s({servers:y})},{deep:!0,immediate:!0});const d=i.computed(()=>e.layout==="accordion"?Sj:pw),u=i.computed(()=>e.layout==="accordion"?fj:hw),h=i.computed(()=>e.layout==="accordion"?"after":"aside"),f=e.layout!=="accordion"&&!o.value.startsWith("model");return(p,y)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[Ij,i.createElementVNode("div",Mj,[i.renderSlot(p.$slots,"start",{},void 0,!0),i.createVNode(i.unref(xj),{layout:p.layout,parsedSpec:p.parsedSpec},null,8,["layout","parsedSpec"]),p.parsedSpec.info.title||p.parsedSpec.info.description?(i.openBlock(),i.createBlock(i.unref(YR),{key:0,info:p.parsedSpec.info,parsedSpec:p.parsedSpec},{[h.value]:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["introduction-card",{"introduction-card-row":p.layout==="accordion"}])},[i.createVNode(i.unref(XV)),i.createVNode(i.unref(EV),{parsedSpec:p.parsedSpec,proxy:p.proxy},null,8,["parsedSpec","proxy"]),i.createVNode(i.unref(pR))],2)]),_:2},1032,["info","parsedSpec"])):i.renderSlot(p.$slots,"empty-state",{key:1},void 0,!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.parsedSpec.tags,g=>(i.openBlock(),i.createBlock(i.unref(Ll),{id:i.unref(n)(g),key:i.unref(n)(g),isLazy:i.unref(f)&&!i.unref(l)[i.unref(n)(g)]},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.value),{id:i.unref(n)(g),spec:p.parsedSpec,tag:g},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.operations,(m,v)=>(i.openBlock(),i.createBlock(i.unref(Ll),{id:i.unref(t)(m,g),key:`${m.httpVerb}-${m.operationId}`,isLazy:v>0},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.value),{id:i.unref(t)(m,g),operation:m,tag:g},null,8,["id","operation","tag"]))]),_:2},1032,["id","isLazy"]))),128))]),_:2},1032,["id","spec","tag"]))]),_:2},1032,["id","isLazy"]))),128)),p.parsedSpec.webhooks?(i.openBlock(),i.createBlock(i.unref(Pj),{key:2,webhooks:p.parsedSpec.webhooks},null,8,["webhooks"])):i.createCommentVNode("",!0),i.unref(Ph)(p.parsedSpec)&&!i.unref(a)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[p.layout==="accordion"?(i.openBlock(),i.createBlock(i.unref(Tj),{key:0,schemas:i.unref(Jt)(p.parsedSpec)},null,8,["schemas"])):(i.openBlock(),i.createBlock(i.unref(_j),{key:1,schemas:i.unref(Jt)(p.parsedSpec)},null,8,["schemas"]))],64)):i.createCommentVNode("",!0),i.renderSlot(p.$slots,"end",{},void 0,!0)])],64))}}),mw=U(Dj,[["__scopeId","data-v-055e26bb"]]),Vj=r=>(i.pushScopeId("data-v-391b4e37"),r=r(),i.popScopeId(),r),Rj={class:"start custom-scroll"},Lj={class:"start-copy"},jj=i.createStaticVNode('<div class="start-logo" data-v-391b4e37><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-391b4e37></path></svg></div><h1 class="start-h1" data-v-391b4e37>Swagger Editor</h1><p class="start-p" data-v-391b4e37> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3),Fj={class:"start-cta"},qj={class:"start-row"},zj=i.createStaticVNode('<div class="start-section start-section-integrations" data-v-391b4e37><div class="start-h2" data-v-391b4e37>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-391b4e37><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-391b4e37></path></svg><span data-v-391b4e37>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-391b4e37><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g data-v-391b4e37><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path></g></svg><span data-v-391b4e37>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-391b4e37><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="currentColor" fill-rule="nonzero" data-v-391b4e37><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-391b4e37></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-391b4e37></polygon></g></svg><span data-v-391b4e37>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-391b4e37><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="none" fill-rule="evenodd" data-v-391b4e37><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-391b4e37></circle><g stroke="currentColor" data-v-391b4e37><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-391b4e37></ellipse></g></g></svg><span data-v-391b4e37>React</span></a></div>',1),Hj={class:"start-section start-section-colors"},Uj=Vj(()=>i.createElementVNode("p",{class:"start-h2"},"THEMING",-1)),Kj=["onClick"],Wj=i.createStaticVNode('<p class="start-h1" data-v-391b4e37>Features</p><ul class="start-ul" data-v-391b4e37><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2),Gj=i.defineComponent({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(r,{emit:e}){const t=e,n=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];async function o(){const s=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml");t("updateContent",await s.text())}return(s,a)=>(i.openBlock(),i.createElementBlock("div",Rj,[i.createElementVNode("div",Lj,[jj,i.createElementVNode("div",Fj,[i.createVNode(i.unref(wu),{fullWidth:"",onClick:o},{default:i.withCtx(()=>[i.createTextVNode(" Show Example ")]),_:1}),i.createVNode(i.unref(wu),{fullWidth:"",variant:"outlined",onClick:a[0]||(a[0]=l=>s.$emit("loadSwaggerFile"))},{default:i.withCtx(()=>[i.createTextVNode(" Upload File ")]),_:1})])]),i.createElementVNode("div",qj,[zj,i.createElementVNode("div",Hj,[Uj,(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,l=>i.createElementVNode("div",{key:l,class:i.normalizeClass(["start-item",{"start-item-active":l===s.theme}]),onClick:c=>s.$emit("changeTheme",{id:l,label:i.unref(mp)[l]})},i.toDisplayString(i.unref(mp)[l]),11,Kj)),64))])]),Wj]))}}),gw=U(Gj,[["__scopeId","data-v-391b4e37"]]),Jj={class:"references-header"},Yj={key:0,class:"references-navigation t-doc__sidebar"},Xj={class:"references-navigation-list"},Qj={class:"references-editor"},Zj={class:"references-editor-textarea"},e4={class:"references-rendered"},t4={key:0,class:"references-footer"},r4=i.defineComponent({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},parsedSpec:{},rawSpec:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(r){const e=r,t=Xe.useMediaQuery("(min-width: 1150px)"),n=i.ref("100dvh"),o=i.ref(null);Xe.useResizeObserver(o,k=>{n.value=k[0].contentRect.height+"px"});const{breadcrumb:s,collapsedSidebarItems:a,isSidebarOpen:l,setCollapsedSidebarItem:c,hideModels:d,setParsedSpec:u}=tr(),{getPathRoutingId:h,getSectionId:f,getTagId:p,hash:y,isIntersectionEnabled:g,pathRouting:m,updateHash:v}=ct();m.value=e.configuration.pathRouting,i.onBeforeMount(()=>v());const b=async k=>{var C;g.value=!1,v(),k?Ti(k):(C=o.value)==null||C.scrollTo(0,0),await wr(100),g.value=!0};i.onMounted(()=>{Hf.on(({specTitle:k})=>{z1(e.rawSpec,k)}),window.onhashchange=()=>b(decodeURIComponent(window.location.hash.replace(/^#/,""))),window.onpopstate=()=>m.value&&b(h(window.location.pathname))});const w=i.computed(()=>t.value||!e.configuration.isEditable),S=Xe.useDebounceFn(k=>{if((k.target.scrollTop??0)<50){const N=e.configuration.pathRouting?e.configuration.pathRouting.basePath:window.location.pathname;window.history.replaceState({},"",N+window.location.search),y.value=""}}),x=i.computed(()=>({breadcrumb:s.value,spec:e.parsedSpec}));return i.watch(()=>e.parsedSpec,u,{deep:!0}),i.onServerPrefetch(()=>{var C,N;const k=i.useSSRContext();if(k&&((C=k.payload).data||(C.data=$d()),e.configuration.pathRouting)){const P=h(k.url);y.value=P,k.payload.data.hash=P;for(const M in a)Object.hasOwn(a,M)&&delete a[M];if(P)c(f(P),!0);else{const M=(N=e.parsedSpec.tags)==null?void 0:N[0];M&&c(p(M),!0)}k.payload.data["useSidebarContent-collapsedSidebarItems"]=a}}),Le.provideUseId(()=>{var P;const k=i.getCurrentInstance(),C="scalar-instance-id";if(!k)return C;let N=k.uid;return typeof window>"u"?(k.attrs||(k.attrs={}),k.attrs[C]=N):(P=k.vnode.el)!=null&&P.getAttribute&&(N=k.vnode.el.getAttribute(C)),`${C}-${N}`}),i.provide(Vc,()=>e.parsedSpec.security),i.provide(zf,()=>e.configuration.hideDownloadButton),d.value=e.configuration.hideModels??!1,D5(e.configuration),(k,C)=>{var N,P;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(r0),{id:(N=k.configuration)==null?void 0:N.theme,withDefaultFonts:(P=k.configuration)==null?void 0:P.withDefaultFonts},null,8,["id","withDefaultFonts"]),i.createVNode(i.unref(o0),null,{default:i.withCtx(({styles:M})=>[i.createVNode(i.unref(uk),null,{default:i.withCtx(({styles:j})=>{var I,X;return[i.createElementVNode("div",{ref_key:"documentEl",ref:o,class:i.normalizeClass(["scalar-api-reference references-layout",[{"references-editable":k.configuration.isEditable,"references-sidebar":k.configuration.showSidebar,"references-sidebar-mobile-open":i.unref(l),"references-classic":k.configuration.layout==="classic"},M,j,k.$attrs.class]]),style:i.normalizeStyle({"--full-height":n.value}),onScrollPassive:C[4]||(C[4]=(...W)=>i.unref(S)&&i.unref(S)(...W))},[i.createElementVNode("div",Jj,[i.renderSlot(k.$slots,"header",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),k.configuration.showSidebar?(i.openBlock(),i.createElementBlock("aside",Yj,[i.createElementVNode("div",Xj,[i.createVNode(i.unref(Gf),{parsedSpec:k.parsedSpec},{"sidebar-start":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-start",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),"sidebar-end":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-end",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),_:3},8,["parsedSpec"])])])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",Qj,[i.createElementVNode("div",Zj,[i.renderSlot(k.$slots,"editor",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)])],512),[[i.vShow,k.configuration.isEditable]]),w.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",e4,[i.createVNode(i.unref(mw),{baseServerURL:k.configuration.baseServerURL,layout:k.configuration.layout==="classic"?"accordion":"default",parsedSpec:k.parsedSpec,proxy:k.configuration.proxy},i.createSlots({start:i.withCtx(()=>[i.renderSlot(k.$slots,"content-start",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),end:i.withCtx(()=>[i.renderSlot(k.$slots,"content-end",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),_:2},[(I=k.configuration)!=null&&I.isEditable?{name:"empty-state",fn:i.withCtx(()=>{var W;return[i.createVNode(gw,{theme:((W=k.configuration)==null?void 0:W.theme)||"default",onChangeTheme:C[0]||(C[0]=te=>k.$emit("changeTheme",te)),onLinkSwaggerFile:C[1]||(C[1]=te=>k.$emit("linkSwaggerFile")),onLoadSwaggerFile:C[2]||(C[2]=te=>k.$emit("loadSwaggerFile")),onUpdateContent:C[3]||(C[3]=te=>k.$emit("updateContent",te))},null,8,["theme"])]}),key:"0"}:void 0]),1032,["baseServerURL","layout","parsedSpec","proxy"])]),k.$slots.footer?(i.openBlock(),i.createElementBlock("div",t4,[i.renderSlot(k.$slots,"footer",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(Q1,{parsedSpec:k.parsedSpec,proxyUrl:(X=k.configuration)==null?void 0:X.proxy},{"sidebar-start":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-start",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),"sidebar-end":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-end",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),_:3},8,["parsedSpec","proxyUrl"])],38)]}),_:2},1024)]),_:3}),i.createVNode(i.unref(UE))],64)}}}),ep=U(r4,[["__scopeId","data-v-34f73cf2"]]),n4={},o4={class:"references-classic-header-container"},s4={class:"references-classic-header"};function i4(r,e){return i.openBlock(),i.createElementBlock("div",o4,[i.createElementVNode("div",s4,[i.renderSlot(r.$slots,"default",{},void 0,!0),i.renderSlot(r.$slots,"dark-mode-toggle",{},void 0,!0)])])}const a4=U(n4,[["render",i4],["__scopeId","data-v-a860f78f"]]),l4=r=>(i.pushScopeId("data-v-559a0a79"),r=r(),i.popScopeId(),r),c4={class:"darklight-reference"},d4={key:0},u4={key:1},h4=l4(()=>i.createElementVNode("a",{class:"darklight-reference-promo",href:"https://www.scalar.com",target:"_blank"}," Powered by scalar.com ",-1)),f4=i.defineComponent({__name:"DarkModeToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",c4,[i.createElementVNode("button",{class:"darklight",type:"button",onClick:t[0]||(t[0]=n=>e.$emit("toggleDarkMode"))},[i.createVNode(i.unref(Me),{icon:"LightDarkModeToggle"}),e.isDarkMode?(i.openBlock(),i.createElementBlock("span",d4,"Light Mode")):(i.openBlock(),i.createElementBlock("span",u4,"Dark Mode"))]),h4]))}}),yw=U(f4,[["__scopeId","data-v-559a0a79"]]),p4=i.defineComponent({__name:"DarkModeIconToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("button",{class:"darklight",type:"button",onClick:t[0]||(t[0]=n=>e.$emit("toggleDarkMode"))},[i.createVNode(i.unref(Me),{icon:e.isDarkMode?"DarkMode":"LightMode"},null,8,["icon"]),i.createVNode(sw,null,{default:i.withCtx(()=>[i.createTextVNode(" Switch to "+i.toDisplayString(e.isDarkMode?"Light":"Dark")+" Mode ",1)]),_:1})]))}}),vw=U(p4,[["__scopeId","data-v-8f61ca56"]]);function m4(r,e){let t=r;const n=e.required&&e.required.includes(r);return t+=n?" REQUIRED ":" optional ",e.properties[r]&&(t+=e.properties[r].type,e.properties[r].description&&(t+=" "+e.properties[r].description)),t}function g4(r){var n;const e=["Body"],t=(n=r==null?void 0:r.schema)==null?void 0:n.properties;return t&&Object.keys(t).forEach(o=>{if(!r.schema)return;e.push(m4(o,r.schema));const s=t[o];s.type==="object"&&!!s.properties&&s.properties&&Object.keys(s.properties).forEach(l=>{var c,d;e.push(`${l} ${(d=(c=s.properties)==null?void 0:c[l])==null?void 0:d.type}`)})}),e}function y4(r){var e,t,n;try{const o=(n=(t=(e=r==null?void 0:r.information)==null?void 0:e.requestBody)==null?void 0:t.content)==null?void 0:n["application/json"];if(!o)throw new Error("Body not found");return g4(o)}catch{return!1}}const v4=r=>(i.pushScopeId("data-v-3445e6c6"),r=r(),i.popScopeId(),r),b4=v4(()=>i.createElementVNode("div",{class:"ref-search-meta"},[i.createElementVNode("span",null,"↑↓ Navigate"),i.createElementVNode("span",null,"⏎ Select")],-1)),w4=i.defineComponent({__name:"SearchModal",props:{parsedSpec:{},modalState:{}},setup(r){const e=r,t=i.toRef(e,"parsedSpec"),n={heading:"DocsPage",model:"JsonObject",req:"Terminal",tag:"CodeFolder",webhook:"Terminal"},o=Xe.useMagicKeys(),s=i.ref([]),a=i.ref([]),l=i.ref(0),c=i.ref(""),d=i.ref(null),u=new Uw(s.value,{keys:["title","description","body"]}),h=()=>{l.value=0,a.value=u.search(c.value)},f=i.computed(()=>S.value[l.value]),{getHeadingId:p,getWebhookId:y,getModelId:g,getOperationId:m,getTagId:v}=ct();i.watch(()=>e.modalState.open,N=>{N&&(c.value="",l.value=0,a.value=[])});const{setCollapsedSidebarItem:b,hideModels:w}=tr();i.watch(t.value,async()=>{var W,te,me,ke,Se;if(s.value=[],!((te=(W=e.parsedSpec)==null?void 0:W.tags)!=null&&te.length)&&!((me=e.parsedSpec)!=null&&me.webhooks)){u.setCollection([]);return}const N=[],P=await Ei(((ke=e.parsedSpec.info)==null?void 0:ke.description)??"");P.length&&(P.forEach(se=>{N.push({type:"heading",title:`Info > ${se.value}`,description:"",href:`#${p(se)}`,tag:se.slug,body:""})}),s.value=s.value.concat(N)),(Se=e.parsedSpec.tags)==null||Se.forEach(se=>{const q={title:se["x-displayName"]??se.name,href:`#${v(se)}`,description:se.description,type:"tag",tag:se.name,body:""};s.value.push(q),se.operations&&se.operations.forEach(T=>{const{parameterMap:V}=Kf({operation:T}),D=y4(T)||V.value;let E=null;typeof D!="boolean"&&(E=D);const A={type:"req",title:T.name??T.path,href:`#${m(T,se)}`,operationId:T.operationId,description:T.description??"",httpVerb:T.httpVerb,path:T.path,tag:se.name,operation:T};E&&(A.body=E),s.value.push(A)})});const M=e.parsedSpec.webhooks,j=[];M&&Object.keys(M).forEach(se=>{Object.keys(M[se]).forEach(T=>{var V;j.push({type:"webhook",title:`Webhook: ${(V=M[se][T])==null?void 0:V.name}`,href:`#${y(se,T)}`,description:se,httpVerb:T,tag:se,body:""})}),s.value=s.value.concat(j)});const I=w.value?{}:Jt(e.parsedSpec),X=[];I&&(Object.keys(I).forEach(se=>{X.push({type:"model",title:"Model",href:`#${g(se)}`,description:I[se].title??se,tag:se,body:""})}),s.value=s.value.concat(X)),u.setCollection(s.value)},{immediate:!0}),Xe.whenever(o.enter,()=>{e.modalState.open&&window&&(k(f.value),window.location.hash=f.value.item.href,e.modalState.hide())}),Xe.whenever(o.ArrowDown,()=>{var N;e.modalState.open&&window&&(l.value<S.value.length-1?l.value++:l.value=0,(N=document.getElementById(f.value.item.href))==null||N.scrollIntoView({behavior:"smooth",block:"center"}))}),Xe.whenever(o.ArrowUp,()=>{var N;e.modalState.open&&window&&(l.value>0?l.value--:l.value=S.value.length-1,(N=document.getElementById(f.value.item.href))==null||N.scrollIntoView({behavior:"smooth",block:"center"}))});const S=i.computed(()=>c.value.length===0?s.value.map(N=>({item:N})):a.value),x=/#(tag\/[^/]*)/,k=N=>{let P="models";const M=N.item.href.match(x);M!=null&&M.length&&M.length>1&&(P=M[1]),b(P,!0),e.modalState.hide()};function C(N){const P=new URL(window.location.href);return P.hash=N,P.toString()}return(N,P)=>(i.openBlock(),i.createBlock(i.unref(pv),{state:N.modalState,variant:"search"},{default:i.withCtx(()=>[i.createElementVNode("div",{ref_key:"searchModalRef",ref:d,class:"ref-search-container"},[i.createVNode(i.unref(D_),{modelValue:c.value,"onUpdate:modelValue":P[0]||(P[0]=M=>c.value=M),onInput:h},null,8,["modelValue"])],512),i.createVNode(i.unref(R_),{class:"ref-search-results custom-scroll",noResults:!S.value.length},{query:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(c.value),1)]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(S.value,(M,j)=>(i.openBlock(),i.createBlock(i.unref(K_),{id:M.item.href,key:M.refIndex,active:l.value===j,href:C(M.item.href),icon:n[M.item.type],onClick:I=>k(M),onFocus:I=>l.value=j},i.createSlots({default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(M.item.title)+" ",1)]),_:2},[(M.item.httpVerb||M.item.path)&&M.item.path!==M.item.title?{name:"description",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(M.item.path),1)]),key:"0"}:M.item.description?{name:"description",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(M.item.description),1)]),key:"1"}:void 0,M.item.type==="req"?{name:"addon",fn:i.withCtx(()=>[i.createVNode(X1,{method:M.item.httpVerb??"get"},null,8,["method"])]),key:"2"}:void 0]),1032,["id","active","href","icon","onClick","onFocus"]))),128))]),_:1},8,["noResults"]),b4]),_:1},8,["state"]))}}),bw=U(w4,[["__scopeId","data-v-3445e6c6"]]),k4=r=>(i.pushScopeId("data-v-edb0a931"),r=r(),i.popScopeId(),r),S4={class:"sidebar-search-input"},x4=k4(()=>i.createElementVNode("span",{class:"sidebar-search-placeholder"},"Search",-1)),C4={class:"sidebar-search-shortcut"},E4={class:"sidebar-search-key"},$4=i.defineComponent({__name:"SearchButton",props:{spec:{},searchHotKey:{default:"k"}},setup(r){const e=r,t=mv(),n=Xe.useMagicKeys({passive:!1,onEventFired(o){!Qa()&&o.ctrlKey&&o.key===e.searchHotKey&&(o.preventDefault(),o.stopPropagation())}});return Xe.whenever(n[`${Qa()?"meta":"control"}_${e.searchHotKey}`],()=>t.open?t.hide():t.show()),(o,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("button",{class:i.normalizeClass(["sidebar-search",o.$attrs.class]),type:"button",onClick:s[0]||(s[0]=(...a)=>i.unref(t).show&&i.unref(t).show(...a))},[i.createVNode(i.unref(Me),{class:"search-icon",icon:"Search",size:"sm"}),i.createElementVNode("div",S4,[x4,i.createElementVNode("span",C4,[i.createElementVNode("span",E4,i.toDisplayString(i.unref(Qa)()?"⌘":"⌃")+i.toDisplayString(o.searchHotKey),1)])])],2),i.createVNode(bw,{modalState:i.unref(t),parsedSpec:o.spec},null,8,["modalState","parsedSpec"])],64))}}),tp=U($4,[["__scopeId","data-v-edb0a931"]]),_4=i.defineComponent({__name:"ClassicLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(r){const e=r,t=i.computed(()=>({...e.configuration,showSidebar:!1}));return(n,o)=>(i.openBlock(),i.createBlock(ep,{configuration:t.value,parsedSpec:n.parsedSpec,rawSpec:n.rawSpec},{"content-start":i.withCtx(({spec:s})=>[i.createVNode(a4,null,{"dark-mode-toggle":i.withCtx(()=>[i.createVNode(i.unref(vw),{isDarkMode:n.isDark,onToggleDarkMode:o[0]||(o[0]=a=>n.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),default:i.withCtx(()=>[i.createVNode(tp,{class:"t-doc__sidebar",searchHotKey:t.value.searchHotKey,spec:s},null,8,["searchHotKey","spec"])]),_:2},1024)]),"content-end":i.withCtx(()=>[i.renderSlot(n.$slots,"footer")]),_:3},8,["configuration","parsedSpec","rawSpec"]))}}),N4={class:"references-mobile-header t-doc__header"},A4={class:"references-mobile-breadcrumbs"},O4={class:"references-mobile-header-actions"},T4=i.defineComponent({__name:"MobileHeader",props:{open:{type:Boolean}},emits:["update:open"],setup(r){const{breadcrumb:e}=tr();return(t,n)=>(i.openBlock(),i.createElementBlock("div",N4,[i.createVNode(i.unref(ji),{icon:t.open?"Close":"Menu",label:t.open?"Close Menu":"Open Menu",size:"md",onClick:n[0]||(n[0]=o=>t.$emit("update:open",!t.open))},null,8,["icon","label"]),i.createElementVNode("span",A4,i.toDisplayString(i.unref(e)),1),i.createElementVNode("div",O4,[i.renderSlot(t.$slots,"actions",{},void 0,!0)])]))}}),B4=U(T4,[["__scopeId","data-v-0242e3de"]]),P4={class:"scalar-api-references-standalone-search"},I4=i.defineComponent({__name:"ModernLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(r){const e=r,t=Xe.useMediaQuery("(max-width: 1000px)"),{isSidebarOpen:n}=tr();i.watch(t,(s,a)=>{s&&!a&&(n.value=!1)});const{hash:o}=ct();return i.watch(o,(s,a)=>{s&&s!==a&&(n.value=!1)}),(s,a)=>(i.openBlock(),i.createBlock(ep,{class:i.normalizeClass({"scalar-api-references-standalone-mobile":s.configuration.showSidebar}),configuration:s.configuration,parsedSpec:s.parsedSpec,rawSpec:s.rawSpec},{header:i.withCtx(()=>[e.configuration.showSidebar?(i.openBlock(),i.createBlock(B4,{key:0,open:i.unref(n),"onUpdate:open":a[0]||(a[0]=l=>i.isRef(n)?n.value=l:null)},null,8,["open"])):i.createCommentVNode("",!0)]),"sidebar-start":i.withCtx(({spec:l})=>{var c;return[i.createElementVNode("div",P4,[i.createVNode(tp,{searchHotKey:(c=e.configuration)==null?void 0:c.searchHotKey,spec:l},null,8,["searchHotKey","spec"])])]}),"sidebar-end":i.withCtx(()=>[i.createVNode(i.unref(yw),{isDarkMode:s.isDark,onToggleDarkMode:a[1]||(a[1]=l=>s.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),"content-end":i.withCtx(()=>[i.renderSlot(s.$slots,"footer",{},void 0,!0)]),_:3},8,["class","configuration","parsedSpec","rawSpec"]))}}),ww=U(I4,[["__scopeId","data-v-333fecad"]]),M4={modern:ww,classic:_4},kw=i.defineComponent({__name:"ApiReference",props:{configuration:{}},emits:["updateContent"],setup(r){var h,f;const e=r,{toggleDarkMode:t,isDark:n}=I5((h=e.configuration)==null?void 0:h.darkMode);i.watch(()=>{var p;return(p=e.configuration)==null?void 0:p.darkMode},p=>{p!==n.value&&t()});const o=i.computed(()=>{var p,y;if((p=e.configuration)!=null&&p.customCss)return fk((y=e.configuration)==null?void 0:y.customCss)});i.watch(o,()=>console.log(o.value));const s=i.computed(()=>{var p;return{spec:{content:void 0,url:void 0,...(p=e.configuration)==null?void 0:p.spec},proxy:void 0,theme:"default",showSidebar:!0,isEditable:!1,...e.configuration,customCss:o.value}});(f=s.value)!=null&&f.metaData&&(pp.createHead(),pp.useSeoMeta(s.value.metaData));function a(p,y){i.watch(()=>{var g;return(g=s.value)==null?void 0:g[p]},g=>{typeof g<"u"&&y(g)},{immediate:!0})}const{setAuthentication:l}=ns();a("authentication",l);const{setExcludedClients:c}=ks();a("hiddenClients",c);const{parsedSpec:d,rawSpec:u}=W1({proxy:i.toRef(()=>{var p;return((p=e.configuration)==null?void 0:p.proxy)||""}),specConfig:i.toRef(()=>{var p;return((p=e.configuration)==null?void 0:p.spec)||{}})});return(p,y)=>{var g,m;return i.openBlock(),i.createElementBlock(i.Fragment,null,[(g=s.value)!=null&&g.customCss?(i.openBlock(),i.createBlock(i.resolveDynamicComponent("style"),{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.value.customCss),1)]),_:1})):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(M4)[((m=s.value)==null?void 0:m.layout)||"modern"]),{configuration:s.value,isDark:i.unref(n),parsedSpec:i.unref(d),rawSpec:i.unref(u),onToggleDarkMode:y[0]||(y[0]=()=>i.unref(t)()),onUpdateContent:y[1]||(y[1]=v=>p.$emit("updateContent",v))},{footer:i.withCtx(()=>[i.renderSlot(p.$slots,"footer")]),_:3},40,["configuration","isDark","parsedSpec","rawSpec"]))],64)}}});function D4(r,e,t=!0){const n=i.reactive(e),o=i.createApp(kw,{configuration:n});function s(a=r){if(!a){console.warn("Invalid HTML element provided. Cannot mount Scalar References");return}o.mount(a)}return t&&s(),{updateConfig(a,l=!0){l?Object.assign(n,a):nc(n,a)},updateSpec(a){n.spec=a},mount:s,unmount:()=>o.unmount()}}exports.Annotation=so;exports.ApiClientModal=Q1;exports.ApiReferenceLayout=ep;exports.Card=ea;exports.CardContent=lo;exports.CardFooter=Rc;exports.CardHeader=ta;exports.CardTab=aw;exports.CardTabHeader=iw;exports.Content=mw;exports.DarkModeIconToggle=vw;exports.DarkModeToggle=yw;exports.Decoration=Be;exports.DefaultBufferLength=Hy;exports.EditorSelection=Y;exports.EditorView=ue;exports.Et=Nr;exports.Facet=Z;exports.FlowModal=pv;exports.GLOBAL_SECURITY_SYMBOL=Vc;exports.GettingStarted=gw;exports.HIDE_DOWNLOAD_BUTTON_SYMBOL=zf;exports.LRLanguage=wl;exports.LanguageSupport=nC;exports.ModernLayout=ww;exports.NodeProp=fe;exports.NodeSet=gh;exports.NodeType=mt;exports.NodeWeakMap=R2;exports.Parser=Gy;exports.Prec=Kl;exports.RangeSet=be;exports.RangeValue=Wn;exports.SearchButton=tp;exports.SearchModal=bw;exports.SecurityScheme=zv;exports.SecuritySchemeSelector=Hv;exports.Sidebar=Gf;exports.StateEffect=We;exports.StateField=qr;exports.Text=we;exports.Transaction=rt;exports.Tree=He;exports.ViewPlugin=Rt;exports.WidgetType=os;exports.Y=Me;exports._export_sfc=U;exports._sfc_main=r0;exports._sfc_main$1=oo;exports._sfc_main$2=kw;exports.bracketMatching=NC;exports.bracketMatchingHandle=fv;exports.clickGeneratedParameter=jC;exports.codePointAt=Mo;exports.codePointSize=ul;exports.combineConfig=Gl;exports.concatenateUrlAndPath=gv;exports.continuedIndent=pC;exports.countColumn=lh;exports.createEmptyAuthenticationState=b0;exports.createEmptyOpenApiState=k0;exports.createEmptyServerState=E0;exports.createEmptySpecification=Un;exports.createPlaceholderRequest=S0;exports.createScalarReferences=D4;exports.customTheme=MC;exports.deepMerge=Uv;exports.defaultHighlightStyle=kC;exports.defineLanguageFacet=Zy;exports.delimitedIndent=hC;exports.downloadSpecBus=Hf;exports.downloadSpecFile=z1;exports.encodeStringAsBase64=yv;exports.filterHiddenClients=tw;exports.findVariables=vv;exports.flatIndent=fC;exports.foldInside=vC;exports.foldNodeProp=yC;exports.fromCodePoint=hS;exports.getApiClientRequest=Bh;exports.getBase64Token=xh;exports.getHeadingsFromMarkdown=Ei;exports.getIndentUnit=rv;exports.getLowestHeadingLevel=rc;exports.getModels=Jt;exports.getRequestFromAuthentication=Sh;exports.getSecretCredentialsFromAuthentication=bv;exports.getTooltip=C2;exports.getUrlFromServerState=xi;exports.getVariableNames=mN;exports.hasModels=Ph;exports.hasSecuritySchemes=Kv;exports.hasWebhooks=Wv;exports.highlightSpecialChars=p2;exports.indentNodeProp=sv;exports.indentOnInput=gC;exports.indentString=nv;exports.indentUnit=wh;exports.isJsonString=m0;exports.isMacOS=Qa;exports.isRequestMethod=Bd;exports.isValidUrl=Gv;exports.keymap=Ly;exports.kt=wu;exports.lineNumbers=T2;exports.logException=Br;exports.mapFromObject=gN;exports.mergeAllObjects=yN;exports.normalizeMimeType=y0;exports.objectMerge=nc;exports.openClientFor=$l;exports.parse=q1;exports.parseMixed=j2;exports.redirectToProxy=wv;exports.replaceVariables=Ch;exports.requestMethodAbbreviations=_0;exports.requestMethodColors=$0;exports.scrollToId=Ti;exports.showTooltip=qy;exports.sleep=wr;exports.splitMarkdownInSections=H1;exports.styleTags=Yy;exports.sublanguageProp=ev;exports.syntaxHighlighting=cv;exports.syntaxTree=mn;exports.tags=F;exports.useApiClientStore=jl;exports.useAuthenticationStore=ns;exports.useHttpClientStore=ks;exports.useModal=mv;exports.useOpenApiStore=rh;exports.useReactiveSpec=W1;exports.useRequestStore=C0;exports.useServerStore=no;exports.validRequestMethods=oh;exports.variables=DC;
|